andrea valle venit, vidit, dixit 2006-08-28 11:51:
> Hi to all,
> 
> I have to generate a figure of a limacon:
> http://mathworld.wolfram.com/Limacon.html
> 
> 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

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=r*cos(t) and y=r*sin(t) for polar coordinates, where
r=b+a*cos(t) for the Limaçon.

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to