[Mathlib-commitlog] SF.net SVN: mathlib:[720] JMathLib/trunk/src/jmathlib/toolbox/funfun
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-23 12:42:27
|
Revision: 720
http://mathlib.svn.sourceforge.net/mathlib/?rev=720&view=rev
Author: st_mueller
Date: 2009-01-23 12:40:35 +0000 (Fri, 23 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/funfun/euler.java
JMathLib/trunk/src/jmathlib/toolbox/funfun/feval.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/funfun/euler.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/funfun/euler.java 2009-01-23 12:39:30 UTC (rev 719)
+++ JMathLib/trunk/src/jmathlib/toolbox/funfun/euler.java 2009-01-23 12:40:35 UTC (rev 720)
@@ -7,6 +7,7 @@
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**An external function for computing a mesh of a matrix */
@@ -15,7 +16,7 @@
/**integrates a "function" using the euler forward integration method
* [t,y] = euler (function, [t0 tf], y0, dt)
*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
// [t,y] = euler (function, [t0 tf], y0, dt)
@@ -96,7 +97,7 @@
function.setOperands(op);
//evaluate function
- OperandToken result = function.evaluate(null);
+ OperandToken result = function.evaluate(null, globals);
// retrieve output vector of integration
if ( !(result instanceof DoubleNumberToken) )
Modified: JMathLib/trunk/src/jmathlib/toolbox/funfun/feval.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/funfun/feval.java 2009-01-23 12:39:30 UTC (rev 719)
+++ JMathLib/trunk/src/jmathlib/toolbox/funfun/feval.java 2009-01-23 12:40:35 UTC (rev 720)
@@ -3,6 +3,7 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.tokens.FunctionToken;
import jmathlib.core.tokens.CharToken;
@@ -11,7 +12,7 @@
{
/**Perform the named function on the operands
@param operand[0] = the name of the function*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
FunctionToken function = null;
@@ -39,7 +40,7 @@
function.setOperands(op);
- return function.evaluate(null);
+ return function.evaluate(null, globals);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|