vmm.functions
Class ComplexFunction2

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

public class ComplexFunction2
extends ComplexFunction

Represents a complex-valued function of two complex arguments. A ComplexFunction2 can only be created by a Parser.

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

Field Summary
 
Fields inherited from class vmm.functions.ComplexFunction
func
 
Method Summary
 Complex value(Complex z, Complex w)
          Evaluate this function at a specified pair of arguments, using an EvalStack that is unique to the current Thread..
 Complex value(Complex z, Complex w, EvalStack stack)
          Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter.
 void value(Complex z, Complex w, EvalStack stack, Complex answer)
          Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter, placing the answer in an existing Complex object.
 Complex value(double z_re, double z_im, double w_re, double w_im)
          Evaluate this function at a specified pair of arguments, using an EvalStack that is unique to the current Thread..
 Complex value(double z_re, double z_im, double w_re, double w_im, EvalStack stack)
          Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter.
 void value(double z_re, double z_im, double w_re, double w_im, EvalStack stack, Complex answer)
          Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter, placing the answer 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,
                     Complex w)
Evaluate this function at a specified pair of arguments, using an EvalStack that is unique to the current Thread..

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

value

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

Parameters:
z_re - the real part of the first argument
z_im - the imaginary part of the first argument
w_re - the real part of the second argument
w_im - the imaginary part of the second argument

value

public Complex value(Complex z,
                     Complex w,
                     EvalStack stack)
Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter.

Parameters:
z - a non-null complex number that is passed as the first argument to the function
w - a non-null complex number that is passed as the second argument to the function
stack - a non-null EvalStack that will be used for computing the value.

value

public Complex value(double z_re,
                     double z_im,
                     double w_re,
                     double w_im,
                     EvalStack stack)
Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter.

Parameters:
z_re - the real part of the first argument
z_im - the imaginary part of the first argument
w_re - the real part of the second argument
w_im - the imaginary part of the second argument
stack - a non-null EvalStack that will be used for computing the value.

value

public void value(Complex z,
                  Complex w,
                  EvalStack stack,
                  Complex answer)
Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter, placing the answer in an existing Complex object.

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

value

public void value(double z_re,
                  double z_im,
                  double w_re,
                  double w_im,
                  EvalStack stack,
                  Complex answer)
Evaluate this function at a specified pair of arguments, using an EvalStack that is provided as a parameter, placing the answer in an existing Complex object.

Parameters:
z_re - the real part of the first argument
z_im - the imaginary part of the first argument
w_re - the real part of the second argument
w_im - the imaginary part of the second argument
stack - a non-null EvalStack that will be used for computing the value.
answer - the non-null Complex object where the answer will be placed.