Java-complex numbers

Jaap Spies j.spies at hccnet.nl
Wed Jan 31 10:46:05 EST 2001


Paul Schlyter wrote:

> In article <957b1q$m1h$1 at camelot.unirioja.es>,
> Jesus Maria Aransay <jesus-maria.aransay at dmc.unirioja.es> wrote:
>  
> 
>> I need some help for working in JAVA with complex numbers.
>> Could I find some classes or libraries for doing easier my work?
> 
>  
> You could hack such a class yourself in an hour or two, and it
> would be a good experience for you to do it.  It would also teach
> you that Java isn't really suitable for computation with complex
> numbers, because Java cannot overload infix operators.
>

 
I  agree!

 
> Why do you want to do this?  To learn Java?  Well, go ahead and do
> it!  Or because you need to do the computations?  If the latter, it's
> better to switch to a language with better supoport (either built-in
> or through classes) for complex numbers, such as C++ or Fortran.

No, no, no! Try Python or Jython

http://www.python.org/
http://www.jython.org/

Jaap Spies




More information about the Python-list mailing list