JAutoDiff

nilgiri.math
Class DoubleReal

java.lang.Object
  extended by nilgiri.math.DoubleReal
All Implemented Interfaces:
CommutativeGroup<DoubleReal>, CommutativeRing<DoubleReal>, Field<DoubleReal>, Group<DoubleReal>, RealNumber<DoubleReal>, Ring<DoubleReal>

public class DoubleReal
extends java.lang.Object
implements RealNumber<DoubleReal>


Constructor Summary
DoubleReal()
           
DoubleReal(double i_v)
           
DoubleReal(DoubleReal i_rd)
           
 
Method Summary
 void assign(DoubleReal i_rd)
           
 DoubleReal clone()
           
 DoubleReal div(double i_v)
           
 DoubleReal div(DoubleReal i_rd)
          Returns an object of X whose value is (this / i_v).
 double doubleValue()
           
 DoubleReal inverse()
          Returns an object of X whose value is (1 / this).
 DoubleReal minus(double i_v)
           
 DoubleReal minus(DoubleReal i_rd)
          Returns an object of X whose value is (this - i_v).
 double modulus()
           
 DoubleReal mul(DoubleReal i_rd)
          Returns an object of X whose value is the product (this * i_v).
 DoubleReal mul(long i_n)
          Returns an object of X whose value is the summation (sum_{1}^{i_n}(this)).
 DoubleReal negate()
          Returns an object of X whose value is (- this).
 DoubleReal plus(double i_v)
           
 DoubleReal plus(DoubleReal i_rd)
          Returns an object of X whose value is (this + i_v).
 DoubleReal pow(double i_v)
           
 DoubleReal pow(int i_n)
          Returns an object of X whose value is the power (this ^ i_n).
 DoubleReal prod(double i_v)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleReal

public DoubleReal()

DoubleReal

public DoubleReal(double i_v)

DoubleReal

public DoubleReal(DoubleReal i_rd)
Method Detail

assign

public void assign(DoubleReal i_rd)

doubleValue

public double doubleValue()

modulus

public double modulus()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public DoubleReal clone()
Overrides:
clone in class java.lang.Object

inverse

public DoubleReal inverse()
Description copied from interface: Field
Returns an object of X whose value is (1 / this).

Specified by:
inverse in interface Field<DoubleReal>
Returns:
1 / this

negate

public DoubleReal negate()
Description copied from interface: Group
Returns an object of X whose value is (- this).

Specified by:
negate in interface Group<DoubleReal>
Returns:
- this

plus

public DoubleReal plus(DoubleReal i_rd)
Description copied from interface: Group
Returns an object of X whose value is (this + i_v).

Specified by:
plus in interface Group<DoubleReal>
Returns:
this + i_v

minus

public DoubleReal minus(DoubleReal i_rd)
Description copied from interface: Group
Returns an object of X whose value is (this - i_v).

Specified by:
minus in interface Group<DoubleReal>
Returns:
this - i_v

mul

public DoubleReal mul(DoubleReal i_rd)
Description copied from interface: Ring
Returns an object of X whose value is the product (this * i_v).

Specified by:
mul in interface Ring<DoubleReal>
Returns:
this * i_v

div

public DoubleReal div(DoubleReal i_rd)
Description copied from interface: Field
Returns an object of X whose value is (this / i_v).

Specified by:
div in interface Field<DoubleReal>
Returns:
this / i_v

plus

public DoubleReal plus(double i_v)

minus

public DoubleReal minus(double i_v)

prod

public DoubleReal prod(double i_v)

div

public DoubleReal div(double i_v)

pow

public DoubleReal pow(double i_v)

pow

public DoubleReal pow(int i_n)
Description copied from interface: Ring
Returns an object of X whose value is the power (this ^ i_n). Ring guarantees the results for natural numbers only.

Specified by:
pow in interface Ring<DoubleReal>
Parameters:
i_n - a natural number
Returns:
this ^ i_n

mul

public DoubleReal mul(long i_n)
Description copied from interface: Group
Returns an object of X whose value is the summation (sum_{1}^{i_n}(this)). Group<X&rt guarantees the results for natural numbers only.

Specified by:
mul in interface Group<DoubleReal>
Parameters:
i_n - a natural number
Returns:
sum_{1}^{i_n}(this)

JAutoDiff

JAutoDiff website