Solver PLOT any circle and describe it
Algebra
->
Circles
-> Solver PLOT any circle and describe it
Log On
Geometry: Circles and their properties
Geometry
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'PLOT any circle and describe it'
This Solver (PLOT any circle and describe it)
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 Plot a circle with a center in point (*[input 10 x=2], *[input 10 y=1]), and radius *[input r=4] ==section solution perl $z = 1; my $d = 2*$r; my $pi = 3.141592693989397; my $area = $pi*$r*$r; my $perimeter = $pi*$d; print " Diameter: {{{d = 2r = 2*$r = $d}}}. Area: {{{area = pi\\r^2 = pi*$r^2 = $area}}} Perimeter: {{{perimeter = 2\\pi\\r = 2\\pi*$r = $perimeter}}} {{{ drawing( 300, 300, -10, 10, -10, 10, grid( 1 ), red( circle( $x, $y, $r ) ), blue( circle( $x, $y, 0.1 ) ), blue( circle( $x, $y, 0.2 ) ) ) }}} "; ==section output z ==section check x=2 y=3 z=1 ==section practice $x = randint( -2, 4 ); $y = randint( -2, 4 ); $r = randint( 1, 7 );