[Mathlib-commitlog] SF.net SVN: mathlib:[608] JMathLib/trunk/src/jmathlib/core/tokens/ VariableToke
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-04 08:48:40
|
Revision: 608
http://mathlib.svn.sourceforge.net/mathlib/?rev=608&view=rev
Author: st_mueller
Date: 2009-01-04 08:48:35 +0000 (Sun, 04 Jan 2009)
Log Message:
-----------
added the euler number "e"
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java
Modified: JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java 2009-01-04 08:48:03 UTC (rev 607)
+++ JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java 2009-01-04 08:48:35 UTC (rev 608)
@@ -162,8 +162,11 @@
if (name.equals("eps"))
return new DoubleNumberToken(2.2204e-016);
+
+ if (name.equals("e"))
+ return new DoubleNumberToken(2.718281828459046);
+
-
ErrorLogger.debugLine("VariableToken: var " + name + " not found: check functions");
// If it is not a variable maybe it's a function or script-file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|