|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perisic.ring.Ring
com.perisic.ring.DoubleField
public class DoubleField
The real numbers. This is a wrapper class for the primitive Java data type double. This class is not yet fully documented, but methods are similar to the the methods of Ring.Z. This class cannot be instantiated as there is no public constructor. Use Ring.R instead.
Field Summary | |
---|---|
static DoubleField |
R
|
Fields inherited from class com.perisic.ring.Ring |
---|
C, F2, Q, Z |
Method Summary | |
---|---|
RingElt |
add(RingElt a,
RingElt b)
Addition. |
boolean |
equalZero(RingElt b)
true if b == 0. |
RingElt |
inv(RingElt a)
Multiplicative Inverse. |
boolean |
isField()
Returns true. |
RingElt |
map(double r)
Maps a double to this field. |
RingElt |
map(java.lang.String str)
Returns str as a DoubleField. |
RingElt |
mult(RingElt a,
RingElt b)
Multiplication. |
RingElt |
neg(RingElt b)
The additive inverse of b. |
RingElt |
one()
The 1 of the field. |
static double |
toDouble(RingElt b)
returns the double value of b. |
java.lang.String |
toString()
|
RingElt |
zero()
The 0 of the field. |
Methods inherited from class com.perisic.ring.Ring |
---|
div, ediv, eltToString, equal, evaluatePolynomial, gcd, isEuclidian, isUFD, map, map, map, map, mod, pow, pow, sub, tdiv |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DoubleField R
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isField()
isField
in class Ring
public RingElt add(RingElt a, RingElt b)
add
in class Ring
public RingElt mult(RingElt a, RingElt b)
mult
in class Ring
public RingElt inv(RingElt a)
inv
in class Ring
public RingElt one()
one
in class Ring
public RingElt zero()
zero
in class Ring
public RingElt neg(RingElt b)
neg
in class Ring
public boolean equalZero(RingElt b)
equalZero
in class Ring
public static double toDouble(RingElt b)
public RingElt map(double r)
public RingElt map(java.lang.String str)
map
in class Ring
Double.parseDouble(java.lang.String).
,
Ring.map(java.lang.String).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |