A circle can be modeled in Zoom as following:

circle.png
(Image courtesy of Wikipedia)

class Circle
{
factor r,d,c,a;

d = 2*r;
c = 3.14*d;
a = 3.14*r^2;
}

Randomly selects a factor, a, which is the area of the circle, to be 5, the system finds all values as following:

a = 5
r = 1.26188616281267
d = 2.52377232562534
c = 7.9246451024635676

Last edited Jan 30, 2009 at 5:17 AM by samhuang, version 3

Comments

No comments yet.