From: andrea valle <valle@di...> - 2006-08-28 09:52:45
Hi to all,
I have to generate a figure of a limacon:
First, my math knowledge is really approximate...
Then, I guess I need polar coordinates.
mmmhhh, no way here...
Of course, I can google for it but I prefer to use PyX
DAMS - Facolt=E0 di Scienze della Formazione
Universit=E0 degli Studi di Torino
From: Michael J Gruber <michaeljgruber+<pyx@fa...> - 2006-08-28 10:08:51
andrea valle venit, vidit, dixit 2006-08-28 11:51:
> Hi to all,
> I have to generate a figure of a limacon:
> First, my math knowledge is really approximate...
> Then, I guess I need polar coordinates.
> mmmhhh, no way here...
> Of course, I can google for it but I prefer to use PyX
> Some ideas?
Of course I could provide you with the complete code, but I guess
pointing you at
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