public class DoubleDoubleRealElement extends Object implements org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>, Comparable<DoubleDoubleRealElement>
This class is a simple wrapper around the standard DoubleDouble
in order to implement the FieldElement interface.
| Modifier and Type | Field and Description |
|---|---|
static DoubleDoubleRealElement |
ONE
A DoubleDouble representing 1.
|
static DoubleDoubleRealElement |
ZERO
A DoubleDouble representing 0.
|
| Constructor and Description |
|---|
DoubleDoubleRealElement(com.accelad.math.nilgiri.DoubleDoubleReal val)
Build an instance from a DoubleDouble.
|
DoubleDoubleRealElement(String string) |
| Modifier and Type | Method and Description |
|---|---|
DoubleDoubleRealElement |
add(DoubleDoubleRealElement a) |
int |
compareTo(DoubleDoubleRealElement a) |
DoubleDoubleRealElement |
divide(DoubleDoubleRealElement a) |
com.accelad.math.DoubleDouble |
doubleDoubleValue()
Get the BigDecimal value corresponding to the instance.
|
double |
doubleValue()
Get the double value corresponding to the instance.
|
boolean |
equals(Object other) |
org.apache.commons.math3.Field<DoubleDoubleRealElement> |
getField() |
com.accelad.math.nilgiri.DoubleDoubleReal |
getValue() |
int |
hashCode() |
DoubleDoubleRealElement |
multiply(DoubleDoubleRealElement a) |
DoubleDoubleRealElement |
multiply(int n) |
DoubleDoubleRealElement |
negate() |
DoubleDoubleRealElement |
reciprocal() |
DoubleDoubleRealElement |
subtract(DoubleDoubleRealElement a) |
String |
toString() |
public static final DoubleDoubleRealElement ZERO
public static final DoubleDoubleRealElement ONE
public DoubleDoubleRealElement(com.accelad.math.nilgiri.DoubleDoubleReal val)
val - value of the instancepublic DoubleDoubleRealElement(String string)
public DoubleDoubleRealElement add(DoubleDoubleRealElement a)
add in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>public DoubleDoubleRealElement subtract(DoubleDoubleRealElement a)
subtract in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>public DoubleDoubleRealElement negate()
negate in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>public DoubleDoubleRealElement divide(DoubleDoubleRealElement a) throws org.apache.commons.math3.exception.MathArithmeticException
divide in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>org.apache.commons.math3.exception.MathArithmeticException - if a is zeropublic DoubleDoubleRealElement reciprocal() throws org.apache.commons.math3.exception.MathArithmeticException
reciprocal in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>org.apache.commons.math3.exception.MathArithmeticException - if this is zeropublic DoubleDoubleRealElement multiply(DoubleDoubleRealElement a)
multiply in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>public DoubleDoubleRealElement multiply(int n)
multiply in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>public int compareTo(DoubleDoubleRealElement a)
compareTo in interface Comparable<DoubleDoubleRealElement>public com.accelad.math.nilgiri.DoubleDoubleReal getValue()
public double doubleValue()
public com.accelad.math.DoubleDouble doubleDoubleValue()
public org.apache.commons.math3.Field<DoubleDoubleRealElement> getField()
getField in interface org.apache.commons.math3.FieldElement<DoubleDoubleRealElement>Copyright © 2016–2017 AccelaD. All rights reserved.