Python complaints
skaller
skaller at maxtal.com.au
Thu Dec 16 13:25:34 EST 1999
Ivan Van Laningham wrote:
> > However, sin(complex) is a perfectly good mathematical
> > operation. It should work.
> >
>
> Use
> import cmath
>
> and
> s=cmath.sin(c)
Or use Viper, which understands complex numbers.
--
John Skaller, mailto:skaller at maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia
homepage: http://www.maxtal.com.au/~skaller
voice: 61-2-9660-0850
More information about the Python-list
mailing list