andrea valle venit, vidit, dixit 20060828 11:51:
> Hi to all,
>=20
> I have to generate a figure of a limacon:
> http://mathworld.wolfram.com/Limacon.html
>=20
> First, my math knowledge is really approximate...
> Then, I guess I need polar coordinates.
> mmmhhh, no way here...
>=20
> Of course, I can google for it but I prefer to use PyX
>=20
> Some ideas?
Of course I could provide you with the complete code, but I guess
pointing you at
http://pyx.sourceforge.net/examples/graphs/lissajous.html
will teach you more. Can't help it, being a dad and a teacher ;)
You may want to call your parameter t (for theta) instead of k, and keep
in mind that x=3Dr*cos(t) and y=3Dr*sin(t) for polar coordinates, where
r=3Db+a*cos(t) for the Lima=E7on.
Remember to read the full description of the example above, especially
regarding the issue of "context" if you want to specify a and b as
parameters.
Cheers,
Michael
