Solver DRAW any ellipse
Algebra
->
Quadratic-relations-and-conic-sections
-> Solver DRAW any ellipse
Log On
Algebra: Conic sections - ellipse, parabola, hyperbola
Section
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'DRAW any ellipse'
This Solver (DRAW any ellipse)
was created by by
ichudov(507)
:
View Source
,
Show
,
Put on YOUR site
About ichudov
:
I am not a paid tutor, I am the owner of this web site!
==section input Draw an ellipse with center in point (*[input x=2], *[input y=1]) and radiuses *[input rx=2], *[input ry=1]. ==section solution perl $z = 1; print " This ellipse is described by equation {{{(x-$x)^2/$rx^2 + (y-$y)^2/$ry^2 = 0}}} {{{ drawing( 700, 700, -10, 10, -10, 10, grid( 1 ), red( ellipse( $x, $y, $rx, $ry ) ) ) }}} "; ==section output z ==section check x=1 y=1 rx=1 ry=1 z=1 ==section practice $x = randint( -2, 6 ); $y = randint( -2, 6 ); $rx = randint( 2, 6 ); $ry = randint( 2, 6 );