On Wed, 05 Aug 2009 15:27:51 -0500, Robert Kern wrote:
> On 2009-08-05 15:16, Dr. Phillip M. Feldman wrote:
>> I am using Python 2.5, and most of the cmath functions are not yet
>> available in this version. Thanks!
>>
>> Phillip
>>
>> P.S. In your code, that should be x+= 0J
>>
>> P.P.S. I wish
On 2009-08-05 15:16, Dr. Phillip M. Feldman wrote:
I am using Python 2.5, and most of the cmath functions are not yet available
in this version. Thanks!
Phillip
P.S. In your code, that should be x+= 0J
P.P.S. I wish that the documentation indicated anything that is new.
It does.
http://doc
on-list
>
>
--
View this message in context:
http://www.nabble.com/trouble-with-complex-numbers-tp24821423p24835436.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 05 Aug 2009 08:18:55 -0700, Scott David Daniels
wrote:
>I think it explained in the complex math area, but basically EE types
>use j, math types use i for exactly the same thing. Since i is so
>frequently and index in CS, and there is another strong convention,
>why not let the EE types
On Aug 6, 1:18 am, Scott David Daniels wrote:
> I think it explained in the complex math area, but basically EE types
> use j, math types use i for exactly the same thing. Since i is so
> frequently and index in CS, and there is another strong convention,
> why not let the EE types win?
That 'i'
alex23 wrote:
Piet van Oostrum wrote:
That should be z += 0j
Pardon my ignorance, but could anyone explain the rationale behind
using 'j' to indicate the imaginary number (as opposed to the more
intuitive 'i')?
(Not that I've had much call to use complex numbers but I'm
curious)
I think
Piet van Oostrum wrote:
> That should be z += 0j
Pardon my ignorance, but could anyone explain the rationale behind
using 'j' to indicate the imaginary number (as opposed to the more
intuitive 'i')?
(Not that I've had much call to use complex numbers but I'm
curious)
--
http://mail.python.o
> Christian Heimes (CH) wrote:
>CH> You can write your own phase() function. This function is mostly correct
>CH> unless either the real and/or the imag part is NaN or INF.
>CH> from math import atan2
>CH> def phase(z):
>CH> z += 1j # convert int, long, float to complex
That should be
Dr. Phillip M. Feldman wrote:
When I try to compute the phase of a complex number, I get an error message:
In [3]: from cmath import *
In [4]: x=1+1J
In [5]: phase(x)
NameError: name 'phase' is not defined
AttributeError: 'complex' object has no attribute 'phase'
Any advice will be appreciate
On Aug 5, 4:28 pm, "Dr. Phillip M. Feldman"
wrote:
> When I try to compute the phase of a complex number, I get an error message:
> [...]
> Any advice will be appreciated.
1. What version of Python are you using, and on what platform?
2. What you snipped is necessary to help debug your problem.
On Tue, Aug 4, 2009 at 11:28 PM, Dr. Phillip M.
Feldman wrote:
>
> When I try to compute the phase of a complex number, I get an error message:
>
> In [3]: from cmath import *
> In [4]: x=1+1J
> In [5]: phase(x)
>
> NameError: name 'phase' is not defined
>
> AttributeError: 'complex' object has n
ated.
--
View this message in context:
http://www.nabble.com/trouble-with-complex-numbers-tp24821423p24821423.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo