Search ProofOfProgress Blog

Tuesday, April 26, 2011

Graph of a circle as a function of X.

--Graph of a circle as a function of X.
for xIN = -100 to 100 do(
x = (xIN as float)/100.0; --x = 0 to 1.
r = 1; --radius of 1.
y = (1-(x*x))^(.5)

p = point();
p.centerMarker = true;
p.box = false;
p.cross = false;
p.pos.x = x;
p.pos.y = y;
)--[x]

No comments:

Post a Comment