fr.expression4j.factory
Class NumberFactory

java.lang.Object
  extended by fr.expression4j.factory.NumberFactory

public class NumberFactory
extends java.lang.Object


Constructor Summary
NumberFactory()
           
 
Method Summary
static MathematicalElement createComplex(double realValue, double complexValue)
          create a complex (a,bi) or a+bi
static MathematicalElement createReal(double value)
          Create a real.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFactory

public NumberFactory()
Method Detail

createReal

public static MathematicalElement createReal(double value)
Create a real.

Parameters:
value - real value
Returns:
real as a number

createComplex

public static MathematicalElement createComplex(double realValue,
                                                double complexValue)
create a complex (a,bi) or a+bi

Parameters:
realValue - real complex value
complexValue - imaginary complex value
Returns:
the complex number created.