[Mathlib-commitlog] SF.net SVN: mathlib:[717] JMathLib/trunk/src/jmathlib/toolbox/general
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-23 13:22:10
|
Revision: 717
http://mathlib.svn.sourceforge.net/mathlib/?rev=717&view=rev
Author: st_mueller
Date: 2009-01-23 12:26:46 +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/general/bitand.java
JMathLib/trunk/src/jmathlib/toolbox/general/bitor.java
JMathLib/trunk/src/jmathlib/toolbox/general/bitshift.java
JMathLib/trunk/src/jmathlib/toolbox/general/bitxor.java
JMathLib/trunk/src/jmathlib/toolbox/general/cell.java
JMathLib/trunk/src/jmathlib/toolbox/general/clear.java
JMathLib/trunk/src/jmathlib/toolbox/general/clock.java
JMathLib/trunk/src/jmathlib/toolbox/general/combinations.java
JMathLib/trunk/src/jmathlib/toolbox/general/complex.java
JMathLib/trunk/src/jmathlib/toolbox/general/conj.java
JMathLib/trunk/src/jmathlib/toolbox/general/factor.java
JMathLib/trunk/src/jmathlib/toolbox/general/fft.java
JMathLib/trunk/src/jmathlib/toolbox/general/fibonacci.java
JMathLib/trunk/src/jmathlib/toolbox/general/fix.java
JMathLib/trunk/src/jmathlib/toolbox/general/func2str.java
JMathLib/trunk/src/jmathlib/toolbox/general/getpfilecaching.java
JMathLib/trunk/src/jmathlib/toolbox/general/global.java
JMathLib/trunk/src/jmathlib/toolbox/general/harmonic.java
JMathLib/trunk/src/jmathlib/toolbox/general/imag.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/bitand.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/bitand.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/bitand.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.tokens.numbertokens.*;
import jmathlib.core.interpreter.Errors;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.functions.*;
/**An external function to compute the binary and of two numbers*/
@@ -13,7 +14,7 @@
@param operands[0] - The first number
@param operands[1] - The second number
@return the result of the function as an OperandToken*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
DoubleNumberToken result = DoubleNumberToken.zero;
if (getNArgIn(operands) != 2)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/bitor.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/bitor.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/bitor.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.tokens.numbertokens.*;
import jmathlib.core.interpreter.Errors;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.functions.*;
/**An external function to compute the binary inclusive or of two numbers*/
@@ -13,7 +14,7 @@
@param operands[0] - The first number
@param operands[1] - The second number
@return the result of the function as an OperandToken*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
DoubleNumberToken result = DoubleNumberToken.zero;
if (getNArgIn(operands) != 2)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/bitshift.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/bitshift.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/bitshift.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.tokens.numbertokens.*;
import jmathlib.core.interpreter.Errors;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.functions.*;
/**An external function to shift the bit pattern of a number*/
@@ -13,7 +14,7 @@
@param operands[0] - The number to shift
@param operands[1] - The number of binary places to shift
@return the result of the function as an OperandToken*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
DoubleNumberToken result = DoubleNumberToken.zero;
if (getNArgIn(operands) != 2)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/bitxor.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/bitxor.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/bitxor.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.tokens.numbertokens.*;
import jmathlib.core.interpreter.Errors;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.functions.*;
/**An external function to compute the binary exclusive or of two numbers*/
@@ -13,7 +14,7 @@
@param operands[0] - The first number
@param operands[1] - The second number
@return the result of the function as an OperandToken*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
DoubleNumberToken result = DoubleNumberToken.zero;
if (getNArgIn(operands) != 2)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/cell.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/cell.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/cell.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -3,6 +3,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 creating matrices that consist of zeros *
* everywhere except in the diagonal. The diagonal consists of ones. *
@@ -13,7 +14,7 @@
/**returns a cell array
@param operands[0] = number of rows
@param operands[1] = number of columns */
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
// at least one operands (e.g. cell(n) )
if (getNArgIn(operands) < 1)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/clear.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/clear.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/clear.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -10,7 +10,7 @@
/**An external function for clearing stored variables*/
public class clear extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
Variable var;
@@ -34,38 +34,38 @@
if (s.equals("variables"))
{
// only clear local variables
- getLocalVariables().clear();
+ globals.getLocalVariables().clear();
}
else if (s.equals("globals"))
{
// clear global variables
- getGlobalVariables().clear();
- getLocalVariables().clear();
+ globals.getGlobalVariables().clear();
+ globals.getLocalVariables().clear();
//TODO: when removing global variables also remove
// pointers from local to global varaibles in "getLocalVariables"
}
else if (s.equals("functions"))
{
// clear cache for m-files, class-files, script-files
- getFunctionManager().clear();
+ globals.getFunctionManager().clear();
}
else if (s.equals("all"))
{
// clear everything
- getLocalVariables().clear();
- getGlobalVariables().clear();
- getFunctionManager().clear();
+ globals.getLocalVariables().clear();
+ globals.getGlobalVariables().clear();
+ globals.getFunctionManager().clear();
}
else if (!s.equals(" "))
{
// remove one variable from local workspace
- getLocalVariables().remove(s);
+ globals.getLocalVariables().remove(s);
}
else
{
// clear without any arguments only clears the local workspace
- getLocalVariables().clear();
+ globals.getLocalVariables().clear();
}
return null;
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/clock.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/clock.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/clock.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,8 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
+
import java.util.Date;
import java.util.Calendar;
@@ -12,7 +14,7 @@
{
/**@return the current date and time as a 6 by 1 vector containing
[year month day hours minutes seconds]*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
Date now = new Date();
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/combinations.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/combinations.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/combinations.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**External function to calculate the number of combinations
when k objects are taken from a set of k*/
@@ -14,7 +15,7 @@
@param operand[1] = The total number of objects
@return the number of combinations
*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
OperandToken result = new DoubleNumberToken(0);
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/complex.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/complex.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/complex.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**Display the debug information of an expression*/
public class complex extends ExternalFunction
@@ -12,7 +13,7 @@
@param operand[0] = real part
@param operand[2] = imaginary part
@return the complex number*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
OperandToken result = null;
if (getNArgIn(operands) != 2)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/conj.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/conj.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/conj.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,10 +4,11 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
public class conj extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1 )
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/factor.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/factor.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/factor.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**External function to create a vector of the prime
factors of a number*/
@@ -11,7 +12,7 @@
{
/**@param operands[0] = the number
@return a vector containing the prime factors*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
DoubleNumberToken result = null;
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/fft.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/fft.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/fft.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,11 +4,12 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**An external function which checks if the argument is a struct*/
public class fft extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/fibonacci.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/fibonacci.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/fibonacci.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**External function to calculate the nth fibonacci number*/
public class fibonacci extends ExternalFunction
@@ -12,7 +13,7 @@
@param operand[0] = The index of the Fibonacci number
@return the Fibonacci number
*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1)
throwMathLibException("fibonacci: number of arguments != 1");
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/fix.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/fix.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/fix.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
public class fix extends ExternalFunction
@@ -11,7 +12,7 @@
/**rounds the element to the nearest element towards zero.
@param operands[0] = value to round
@return a matrix of the same size as the operands*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
// exactly one operand
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/func2str.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/func2str.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/func2str.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -5,13 +5,14 @@
import jmathlib.core.tokens.CharToken;
import jmathlib.core.tokens.FunctionHandleToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**External function */
public class func2str extends ExternalFunction
{
/**@param operands[0] = a matrix of numbers
@return a matrix the same size with 1 if the number is a prime*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1)
throwMathLibException("func2str: number of arguments != 1");
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/getpfilecaching.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/getpfilecaching.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/getpfilecaching.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -5,6 +5,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 enabling/disabling of caching of p-files */
public class getpfilecaching extends ExternalFunction
@@ -12,12 +13,12 @@
/**status of caching of p-files
* @return whether or not caching of p-files is enabled/disabled
*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands)!=0)
throwMathLibException("getPFileCaching: number of input arguments != 0");
- boolean cachingEnabled = getFunctionManager().getPFileCaching();
+ boolean cachingEnabled = globals.getFunctionManager().getPFileCaching();
if (cachingEnabled)
return new DoubleNumberToken(1);
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/global.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/global.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/global.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -3,13 +3,14 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.VariableToken;
import jmathlib.core.tokens.OperandToken;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.interpreter.Variable;
import jmathlib.core.functions.ExternalFunction;
/**An external function which checks if the argument is numeric*/
public class global extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1)
@@ -23,8 +24,8 @@
debugLine("global "+operands[0].toString());
- debugLine("global: local variable:"+getLocalVariables().isVariable(var.getName()));
- debugLine("global: global variable:"+getGlobalVariables().isVariable(var.getName()));
+ debugLine("global: local variable:"+globals.getLocalVariables().isVariable(var.getName()));
+ debugLine("global: global variable:"+globals.getGlobalVariables().isVariable(var.getName()));
// this is the procedure for global variables:
// - normally all variables a local to each workspace
@@ -40,22 +41,22 @@
// check if variable is already created in global context
- if (getGlobalVariables().isVariable(name))
+ if (globals.getGlobalVariables().isVariable(name))
{
// variable is already created in global context
// check if local context already contains variable
- if (getLocalVariables().isVariable(name))
+ if (globals.getLocalVariables().isVariable(name))
{
// variable is already created in local context
// remove variable from current workspace (may delete current value)
// create empty variable and set pointer to "global" property
- getLocalVariables().remove(name);
- getLocalVariables().createVariable(name);
- getLocalVariables().getVariable(name).setGlobal(true);
+ globals.getLocalVariables().remove(name);
+ globals.getLocalVariables().createVariable(name);
+ globals.getLocalVariables().getVariable(name).setGlobal(true);
- getInterpreter().displayText("WARNING global: variable "+name+
+ globals.getInterpreter().displayText("WARNING global: variable "+name+
" already existed in the local workspace. \n"+
" It has been overwritten with the value from"+
" the global workspace.\n" +
@@ -67,8 +68,8 @@
// variable is not yet created in local context
// create empty variable and set "global" property
- getLocalVariables().createVariable(name);
- getLocalVariables().getVariable(name).setGlobal(true);
+ globals.getLocalVariables().createVariable(name);
+ globals.getLocalVariables().getVariable(name).setGlobal(true);
}
}
@@ -77,28 +78,28 @@
// variable not yet created in global context
// create variable in global context (data only in global context)
- getGlobalVariables().createVariable(name);
- getGlobalVariables().getVariable(name).setGlobal(true);
+ globals.getGlobalVariables().createVariable(name);
+ globals.getGlobalVariables().getVariable(name).setGlobal(true);
// check if current context already contains variable
- if (getLocalVariables().isVariable(name))
+ if (globals.getLocalVariables().isVariable(name))
{
// current context already contains variable
- Variable varCurrent = getLocalVariables().getVariable(name);
- getGlobalVariables().getVariable(name).assign(varCurrent.getData());
+ Variable varCurrent = globals.getLocalVariables().getVariable(name);
+ globals.getGlobalVariables().getVariable(name).assign(varCurrent.getData());
// remove variable, create new one and set variable to global
- getLocalVariables().remove(name);
+ globals.getLocalVariables().remove(name);
}
}
// create new variable in current context and set variable to global
- getLocalVariables().createVariable(name);
- getLocalVariables().getVariable(name).setGlobal(true);
+ globals.getLocalVariables().createVariable(name);
+ globals.getLocalVariables().getVariable(name).setGlobal(true);
- debugLine("global:global var:"+name+" global="+getGlobalVariables().getVariable(name).isGlobal());
- debugLine("global:local var:"+name+" global="+getLocalVariables().getVariable(name).isGlobal());
+ debugLine("global:global var:"+name+" global="+globals.getGlobalVariables().getVariable(name).isGlobal());
+ debugLine("global:local var:"+name+" global="+globals.getLocalVariables().getVariable(name).isGlobal());
return null;
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/harmonic.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/harmonic.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/harmonic.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**External function to calculate the nth harmonic number*/
public class harmonic extends ExternalFunction
@@ -12,7 +13,7 @@
@param operand[0] = The index of the harmonic number
@return the harmonic number
*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
OperandToken result = new DoubleNumberToken(0);
if(operands.length >= 1 && operands[0] instanceof DoubleNumberToken)
Modified: JMathLib/trunk/src/jmathlib/toolbox/general/imag.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/general/imag.java 2009-01-23 12:24:35 UTC (rev 716)
+++ JMathLib/trunk/src/jmathlib/toolbox/general/imag.java 2009-01-23 12:26:46 UTC (rev 717)
@@ -3,10 +3,11 @@
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
public class imag extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1 )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|