logo


math
Class ConstantEvaluation

java.lang.Object
  extended by math.complex
      extended by math.ConstantEvaluation
All Implemented Interfaces:
Evaluation

public class ConstantEvaluation
extends complex
implements Evaluation

Represents a constant value in an equation tree.

Originally of the ResFracti project

Created by Michael Rule on Mon Apr 04 2005. Copyright (c) 2005. All rights reserved.


Field Summary
 
Fields inherited from class math.complex
e, E, I, imag, PHI, pi, PI, real, two_pi
 
Fields inherited from interface math.Evaluation
CONSTANT, FUNCTION, OPERATION, VARIABLE
 
Constructor Summary
ConstantEvaluation(complex x)
          Forewards to complex(complex) constructor
ConstantEvaluation(float x)
          Forewards to complex(float) constructor
 
Method Summary
 boolean equals(int id)
          Node type is 0.
 boolean is_analytic()
          True : constand lookip is an analytic function
 complex operate(ComplexVarList variables)
          Returns the constant value stored here
 
Methods inherited from class math.complex
abs, acos, acosh, acot, acoth, acsc, acsch, arg, asec, asech, asin, asinh, atan, atanh, conj, cos, cosh, cosh, cot, coth, csc, csch, devidedBy, eToThe, factorial, fromPolar, integer, ln, log, log, minus, mod, oneOver, over, parseComplex, plus, rotate, round, rSquared, scale, sec, sech, setComplex, sign, sign, sign2, sin, sinh, sinh, sqrt, squared, tan, tanh, tanh, times, timesI, toString, toThe, toThe, zeta
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantEvaluation

public ConstantEvaluation(float x)
Forewards to complex(float) constructor

Parameters:
x -

ConstantEvaluation

public ConstantEvaluation(complex x)
Forewards to complex(complex) constructor

Parameters:
x -
Method Detail

equals

public boolean equals(int id)
Node type is 0. Returns true on argument 0 else false.

Specified by:
equals in interface Evaluation
Parameters:
id -
Returns:

operate

public complex operate(ComplexVarList variables)
Returns the constant value stored here

Specified by:
operate in interface Evaluation
Parameters:
variables -
Returns:

is_analytic

public boolean is_analytic()
True : constand lookip is an analytic function

Specified by:
is_analytic in interface Evaluation
Returns: