Re: complex numbers should respect the "I" representation

2008-06-30 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > > I think complex numbers should respect the "i" or "I" representation, > instead of "j". > No reason being cute and using a different character instead of the > traditional representation? At least have the d

Re: complex numbers should respect the "I" representation

2008-06-29 Thread Lie
On Jun 29, 8:39 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-06-29, Roy Smith <[EMAIL PROTECTED]> wrote: > > >> I think complex numbers should respect the "i" or "I" > >> representation, instead of "j". No reason being cute and using > >> a different character instead of the traditional >

Re: complex numbers should respect the "I" representation

2008-06-29 Thread Grant Edwards
On 2008-06-29, Roy Smith <[EMAIL PROTECTED]> wrote: >> I think complex numbers should respect the "i" or "I" >> representation, instead of "j". No reason being cute and using >> a different character instead of the traditional >> representation? > > Ask any electrical engineer what j means. And a

Re: complex numbers should respect the "I" representation

2008-06-28 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > > I think complex numbers should respect the "i" or "I" representation, > instead of "j". > No reason being cute and using a different character instead of the > traditional representation? Ask any electrical

Re: complex numbers should respect the "I" representation

2008-06-28 Thread Mark Dickinson
On Jun 28, 1:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > > I think complex numbers should respect the "i" or "I" representation, > instead of "j". > No reason being cute and using a different character instead of the > traditional representation? At least have the decency of suppor

Re: complex numbers should respect the "I" representation

2008-06-28 Thread Ant
On Jun 28, 1:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I think complex numbers should respect the "i" or "I" representation, > instead of "j". > No reason being cute and using a different character instead of the > traditional representation? At least have the decency of supporting >

Re: complex numbers

2005-01-13 Thread Antoon Pardon
Op 2005-01-12, It's me schreef <[EMAIL PROTECTED]>: > Precisely. One have to convert complex number into vectors, and vector of > complex numbers into vector of vectors, list of complex numbers into list of > vectors, , you get the idea. Wrong. My vector example was an illustration that you

Re: complex numbers

2005-01-12 Thread Scott David Daniels
Robert Kern wrote: Let's presume for a moment that complex is *not* a native data type in Python. How would we implement the above - cleanly? The reason for making complex a builtin is _not_ to ease a single program, but to create a convention allowing different modules which operate on complex nu

Re: complex numbers

2005-01-12 Thread Carl Banks
It's me wrote: > The world would come to a halt if all of a sudden nobody understands complex > numbers anymore. :-) Actually, it would oscillate out of control. -- CARL BANKS -- http://mail.python.org/mailman/listinfo/python-list

Re: complex numbers

2005-01-12 Thread Terry Reedy
"It's me" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Precisely. One have to convert complex number into vectors, and vector > of > complex numbers into vector of vectors, list of complex numbers into list > of > vectors, , you get the idea. No, one would have a class w

Re: complex numbers

2005-01-12 Thread Robert Kern
It's me wrote: "Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] That's *it*. So, how would you overload an operator to do: With native complex support: def twice(a): return 2*a print twice(3+4j), twice(2), twice("abc") Let's presume for a moment that complex is *not*

Re: complex numbers

2005-01-12 Thread It's me
Precisely. One have to convert complex number into vectors, and vector of complex numbers into vector of vectors, list of complex numbers into list of vectors, , you get the idea. And my code no longer look like the equation I have on paper... Like I said, I've travelled down that path befo

Re: complex numbers

2005-01-12 Thread Antoon Pardon
Op 2005-01-12, It's me schreef <[EMAIL PROTECTED]>: > > "Robert Kern" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> That's *it*. > > So, how would you overload an operator to do: > > With native complex support: > > def twice(a): > return 2*a > > print twice(3+4j), twice(

Re: complex numbers

2005-01-11 Thread It's me
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > That's *it*. So, how would you overload an operator to do: With native complex support: def twice(a): return 2*a print twice(3+4j), twice(2), twice("abc") Let's presume for a moment that complex is *not* a nati

Re: complex numbers

2005-01-11 Thread Robert Kern
It's me wrote: You are focusing on computational type applications of complex numbers. For those, you can do it with any languages - including machine language. It's just a matter of how much headache you want. For instance, when constructing "software lego parts" (such as the Matlab/Simulink typ

Re: complex numbers

2005-01-11 Thread It's me
You are focusing on computational type applications of complex numbers. For those, you can do it with any languages - including machine language. It's just a matter of how much headache you want. For instance, when constructing "software lego parts" (such as the Matlab/Simulink type), it's very

Re: complex numbers

2005-01-11 Thread It's me
"Big and Blue" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's me wrote: > > > > I am very happy that Python included *native* complex number > > support. > > And I have always been happy that FORTRAN supports them. > > > I really like Python's notion of hav

Re: complex numbers

2005-01-11 Thread Big and Blue
It's me wrote: > I am very happy that Python included *native* complex number support. And I have always been happy that FORTRAN supports them. I really like Python's notion of having just one data type: the duck. So have you considered using Python for your problem? --

Re: complex numbers

2005-01-11 Thread Anno Siegel
It's me <[EMAIL PROTECTED]> wrote in comp.lang.perl.misc: [reply moved into context] > "Anno Siegel" <[EMAIL PROTECTED]> wrote in message > news:cs145l$8d6 > > > > > > > Like this? > > > > use Math::Complex; > > > > my $z = sqrt( -1); > > print 1 + $z, "\n"; # prints "1+i" > > > >

Re: complex numbers

2005-01-11 Thread It's me
Operator overloading (and function overloading) helps but not enough.You have to be aware of the complex type *everywhere* you go and that's very annoying and error prone. I've been the works with C++, and later with Modelica. I am very happy that Python included *native* complex number supp

Re: complex numbers

2005-01-11 Thread Anno Siegel
It's me <[EMAIL PROTECTED]> wrote in comp.lang.perl.misc: [reply moved to bottom into context] > "Jürgen Exner" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > [EMAIL PROTECTED] wrote: > > > #python supports complex numbers. > > [...] > > > > So? > > > > The world would come to

Re: complex numbers

2005-01-10 Thread It's me
For those of us that works with complex numbers, having complex number as a natively supported data type is a big advantage. Non-native add-ons are not sufficient and lead to very awkward program code. "Jürgen Exner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED]

Re: complex numbers

2005-01-10 Thread Alfred Z. Newmane
J|rgen Exner wrote: > [EMAIL PROTECTED] wrote: >> #python supports complex numbers. > [...] > > So? > >> # Perl doesn't support complex numbers. But there are packages that >> supports it. > > The Math::Complex module is part of the standard installation > already, no need for any "packages" (whate

Re: complex numbers

2005-01-09 Thread Jürgen Exner
[EMAIL PROTECTED] wrote: > #python supports complex numbers. [...] So? > # Perl doesn't support complex numbers. But there are packages that > supports it. The Math::Complex module is part of the standard installation already, no need for any "packages" (whatever that might be). Did you check "