From: <ha...@us...> - 2012-09-09 18:21:23
|
Revision: 17544 http://jmol.svn.sourceforge.net/jmol/?rev=17544&view=rev Author: hansonr Date: 2012-09-09 18:21:16 +0000 (Sun, 09 Sep 2012) Log Message: ----------- -1/0 = -Infinity, 0/0 = NaN Modified Paths: -------------- branches/v13_0/Jmol/src/org/jmol/script/ScriptMathProcessor.java Modified: branches/v13_0/Jmol/src/org/jmol/script/ScriptMathProcessor.java =================================================================== --- branches/v13_0/Jmol/src/org/jmol/script/ScriptMathProcessor.java 2012-09-09 03:02:20 UTC (rev 17543) +++ branches/v13_0/Jmol/src/org/jmol/script/ScriptMathProcessor.java 2012-09-09 18:21:16 UTC (rev 17544) @@ -3214,9 +3214,6 @@ switch (x1.tok) { default: float f1 = ScriptVariable.fValue(x1); - if (f2 == 0) - return addX(f1 == 0 ? 0f : f1 < 0 ? Float.POSITIVE_INFINITY - : Float.POSITIVE_INFINITY); return addX(f1 / f2); case Token.point3f: pt = new Point3f((Point3f) x1.value); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |