any python module to calculate sin, cos, arctan?
any python module to calculate sin, cos, arctan? -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
Shi Mu schrieb: any python module to calculate sin, cos, arctan? Yes. Use the math module or the cmath module if you need mathematical functions for complex numbers. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
On 08/11/05, Shi Mu [EMAIL PROTECTED] wrote: any python module to calculate sin, cos, arctan? http://docs.python.org/lib/module-math.html I seem to be posting loads of links to the docs today... -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
Shi Mu wrote: any python module to calculate sin, cos, arctan? math There are two versions of arctan: atan and atan2. atan2(y,x) does the quadrant selection you do not get from atan(y/x) -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
Shi Mu wrote: any python module to calculate sin, cos, arctan? Try module math. Or cmath if you want the functions to be aware of complex numbers. /MiO -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
Shi Mu wrote: any python module to calculate sin, cos, arctan? The other answers in this thread point you to the standard modules. If you need arbitrary precision floating point versions of these functions check out: http://calcrpnpy.sourceforge.net/clnumManual.html -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
On Tue, 08 Nov 2005 12:30:35 GMT, Raymond L. Buvel [EMAIL PROTECTED] wrote: Shi Mu wrote: any python module to calculate sin, cos, arctan? The other answers in this thread point you to the standard modules. If you need arbitrary precision floating point versions of these functions check out: http://calcrpnpy.sourceforge.net/clnumManual.html Unless you're using Windows. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
Matt Feinstein wrote: On Tue, 08 Nov 2005 12:30:35 GMT, Raymond L. Buvel [EMAIL PROTECTED] wrote: http://calcrpnpy.sourceforge.net/clnumManual.html Unless you're using Windows. Why? Have you tried compiling it and failed? -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
On Tue, 08 Nov 2005 06:43:51 -0800, Robert Kern [EMAIL PROTECTED] wrote: Matt Feinstein wrote: On Tue, 08 Nov 2005 12:30:35 GMT, Raymond L. Buvel [EMAIL PROTECTED] wrote: http://calcrpnpy.sourceforge.net/clnumManual.html Unless you're using Windows. Why? Have you tried compiling it and failed? Copied from the linked site: Windows is not supported but it may be possible to get this module to work. You will need to use the GNU tools and figure out how to build the CLN library. Then you need to figure out how to compile and link the clnum extension module for the standard Python. If anyone gets this to work and wants to contribute the results, contact me at rlbuvel at gmail dot com. Note: may be possible, you need to figure out, if anyone gets this to work. The message seems clear to me-- 'If you want this capability, you can either-- 1) install all the development tools, 2) compile all the relevant libraries, and then 3) link and compile the Python extension module at your own risk and on your own (or on your company's) time-- or, use Linux. Personally, I'd use Linux. On the other hand, not everyone has that option, it seems reasonable to me to point out that there's a non-trivial difficulty here. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list
Re: any python module to calculate sin, cos, arctan?
Matt Feinstein wrote: On Tue, 08 Nov 2005 06:43:51 -0800, Robert Kern [EMAIL PROTECTED] wrote: Matt Feinstein wrote: On Tue, 08 Nov 2005 12:30:35 GMT, Raymond L. Buvel [EMAIL PROTECTED] wrote: http://calcrpnpy.sourceforge.net/clnumManual.html Unless you're using Windows. Why? Have you tried compiling it and failed? Copied from the linked site: Windows is not supported but it may be possible to get this module to work. You will need to use the GNU tools and figure out how to build the CLN library. Then you need to figure out how to compile and link the clnum extension module for the standard Python. If anyone gets this to work and wants to contribute the results, contact me at rlbuvel at gmail dot com. Note: may be possible, you need to figure out, if anyone gets this to work. The message seems clear to me-- 'If you want this capability, you can either-- 1) install all the development tools, 2) compile all the relevant libraries, and then 3) link and compile the Python extension module at your own risk and on your own (or on your company's) time-- or, use Linux. Personally, I'd use Linux. On the other hand, not everyone has that option, it seems reasonable to me to point out that there's a non-trivial difficulty here. Okay. I thought you might be adding something substantive more than what was plainly stated on the linked page. Guess not. -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list