vmm.functions
Class Function1

java.lang.Object
  extended by vmm.functions.Function
      extended by vmm.functions.Function1

public class Function1
extends Function

Represents a real-valued function of one real argument. A Function1 can only be created by a Parser.

See Also:
Parser.parseFunction1(String, String, String)

Field Summary
 
Fields inherited from class vmm.functions.Function
func
 
Method Summary
 double value(double x)
          Find the value of this Function at a specified argument value, using an EvalStack that is unique to the current Thread.
 double value(double x, EvalStack stack)
          Find the value of this Function at a specified argument value, using an EvalStack that is provided as a parameter to this method.
 
Methods inherited from class vmm.functions.Function
getArity, getName, setName, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

value

public double value(double x)
Find the value of this Function at a specified argument value, using an EvalStack that is unique to the current Thread.

Parameters:
x - the argument value for which the function will be evaluated

value

public double value(double x,
                    EvalStack stack)
Find the value of this Function at a specified argument value, using an EvalStack that is provided as a parameter to this method.

Parameters:
x - the argument value for which the function will be evaluated
stack - a non-null EvalStack that will be used for computing the value