mirchaemanuel / symja

Automatically exported from code.google.com/p/symja
1 stars 0 forks source link

0^2 gives NaN+I*(NaN) instead of 0 #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Running the code put in second answer.

What is the expected output? What do you see instead?

The follwing code should print 0 as 0^2 = 0, but it instead prints NaN+I*(NaN)

ComplexEvaluator engine = new ComplexEvaluator();
Complex answer = engine.evaluate( "0^2");
System.out.println( ComplexEvaluator.toString( answer ) );

What version of the product are you using? On what operating system?

meparser-0.0.6.jar, Windows Vista

Please provide any additional information below.

Original issue reported on code.google.com by tusharsi...@gmail.com on 5 Aug 2010 at 9:13

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 5 Aug 2010 at 4:28

GoogleCodeExporter commented 8 years ago
Related to:
https://issues.apache.org/jira/browse/MATH-402

Original comment by axelclk@gmail.com on 5 Aug 2010 at 4:39

GoogleCodeExporter commented 8 years ago
Fixed in SVN
http://code.google.com/p/symja/source/detail?r=498

Original comment by axelclk@gmail.com on 7 Aug 2010 at 11:31

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 29 Nov 2010 at 9:10