vmm.functions
Class ComplexFunction1

java.lang.Object
  extended by vmm.functions.ComplexFunction
      extended by vmm.functions.ComplexFunction1

public class ComplexFunction1
extends ComplexFunction

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

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

Field Summary
 
Fields inherited from class vmm.functions.ComplexFunction
func
 
Method Summary
 Complex value(Complex z)
          Evaluate this function at a specified argument, using an EvalStack that is unique to the current Thread..
 Complex value(Complex z, EvalStack stack)
          Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method.
 void value(Complex z, EvalStack stack, Complex answer)
          Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method, and placing the value in an existing Complex object.
 Complex value(double z_re, double z_im)
          Evaluate this function at a specified argument, using an EvalStack that is unique to the current Thread..
 Complex value(double z_re, double z_im, EvalStack stack)
          Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method.
 void value(double z_re, double z_im, EvalStack stack, Complex answer)
          Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method, and placing the value in an existing Complex object.
 
Methods inherited from class vmm.functions.ComplexFunction
getArity, getName, setName, value, value, value, value, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

value

public Complex value(Complex z)
Evaluate this function at a specified argument, using an EvalStack that is unique to the current Thread..

Parameters:
z - a non-null complex number that is passed as an argument to the function

value

public Complex value(double z_re,
                     double z_im)
Evaluate this function at a specified argument, using an EvalStack that is unique to the current Thread..

Parameters:
z_re - the real part of the argument where the function will be evaluated
z_im - the imaginary part of the argument where the function will be evaluated

value

public Complex value(Complex z,
                     EvalStack stack)
Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method.

Parameters:
z - a non-null complex number that is passed as an argument to the function

value

public Complex value(double z_re,
                     double z_im,
                     EvalStack stack)
Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method.

Parameters:
z_re - the real part of the argument where the function will be evaluated
z_im - the imaginary part of the argument where the function will be evaluated
stack - the non-null stack that will be used for computing the value
Returns:
the value of the function at the specified argument

value

public void value(Complex z,
                  EvalStack stack,
                  Complex answer)
Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method, and placing the value in an existing Complex object.

Parameters:
z - a non-null complex number that is passed as an argument to the function
stack - the non-null stack that will be used for computing the value
answer - the non-null Complex where the value will be placed

value

public void value(double z_re,
                  double z_im,
                  EvalStack stack,
                  Complex answer)
Evaluate this function at a specified argument, using an EvalStack that is passed as a parameter to this method, and placing the value in an existing Complex object.

Parameters:
z_re - the real part of the argument where the function will be evaluated
z_im - the imaginary part of the argument where the function will be evaluated
stack - the non-null stack that will be used for computing the value
answer - the non-null Complex where the value will be placed