public class Real extends Object
double
value. In opposite to the
wrapper class Double
, in this class the value can be changed any
time. This class has methods like Complex
to provide
mathematical operations on the value.
Evaluators
to provide
working on Objects
if the Expression
contains double values.RealType
Constructor and Description |
---|
Real()
Creates a new
Real object with value==0.0. |
Real(double initValue) |
Real(Real initValue) |
Modifier and Type | Method and Description |
---|---|
void |
assign(double newValue) |
void |
assign(Real newValue) |
void |
assignATan(Real real) |
void |
assignCos() |
void |
assignCos(Real real) |
void |
assignDivide(double denominator) |
void |
assignDivide(Real denominator) |
void |
assignDivide(Real nominator,
Real denominator) |
void |
assignExp() |
void |
assignExp(Real real) |
void |
assignLog() |
void |
assignLog(Real real) |
void |
assignMinus(double subtrahend) |
void |
assignMinus(Real subtrahend) |
void |
assignMinus(Real minuend,
Real subtrahend) |
void |
assignNeg() |
void |
assignNeg(Real real) |
void |
assignPlus(double addend) |
void |
assignPlus(Real addend) |
void |
assignPlus(Real addend1,
Real addend2) |
void |
assignPow(double exponent) |
void |
assignPow(Real exponent) |
void |
assignPow(Real basis,
Real exponent) |
void |
assignSin() |
void |
assignSin(Real real) |
void |
assignSqrt() |
void |
assignSqrt(Real real) |
void |
assignTan(Real real) |
void |
assignTimes(double multiplier) |
void |
assignTimes(Real multiplier) |
void |
assignTimes(Real multiplier1,
Real multiplier2) |
Real |
cos() |
Real |
divide(double denominator) |
Real |
divide(Real denominator) |
boolean |
equals(Object obj) |
Real |
exp() |
double |
getValue() |
Real |
log() |
Real |
minus(double subtrahend) |
Real |
minus(Real subtrahend) |
Real |
plus(double addend) |
Real |
plus(Real addend) |
Real |
pow(double exponent) |
Real |
pow(Real exponent) |
Real |
sin() |
Real |
sqrt() |
Real |
times(double multiplier) |
Real |
times(Real multiplier) |
String |
toString() |
public Real()
Real
object with value==0.0.public Real(double initValue)
public Real(Real initValue)
public void assign(double newValue)
public void assign(Real newValue)
public void assignATan(Real real)
public void assignCos()
public void assignCos(Real real)
public void assignDivide(double denominator)
public void assignDivide(Real denominator)
public void assignExp()
public void assignExp(Real real)
public void assignLog()
public void assignLog(Real real)
public void assignMinus(double subtrahend)
public void assignMinus(Real subtrahend)
public void assignNeg()
public void assignNeg(Real real)
public void assignPlus(double addend)
public void assignPlus(Real addend)
public void assignPow(double exponent)
public void assignPow(Real exponent)
public void assignSin()
public void assignSin(Real real)
public void assignSqrt()
public void assignSqrt(Real real)
public void assignTan(Real real)
public void assignTimes(double multiplier)
public void assignTimes(Real multiplier)
public Real cos()
public Real divide(double denominator)
public Real exp()
public double getValue()
public Real log()
public Real minus(double subtrahend)
public Real plus(double addend)
public Real pow(double exponent)
public Real sin()
public Real sqrt()
public Real times(double multiplier)