any python module to calculate sin, cos, arctan?

D

Dennis Benzinger

Shi said:
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
 
J

Juho Schultz

Shi said:
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)
 
M

Mikael Olofsson

Shi said:
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
 
R

Robert Kern

Matt said:
On Tue, 08 Nov 2005 12:30:35 GMT, "Raymond L. Buvel"


Unless you're using Windows.

Why? Have you tried compiling it and failed?

--
Robert Kern
(e-mail address removed)

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
 
M

Matt Feinstein

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
 
R

Robert Kern

Matt said:
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
(e-mail address removed)

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top