|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--com.perisic.ring.Ring
|
+--com.perisic.ring.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,
R,
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 |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final DoubleField R
| Method Detail |
public java.lang.String toString()
public boolean isField()
public RingElt add(RingElt a,
RingElt b)
public RingElt mult(RingElt a,
RingElt b)
public RingElt inv(RingElt a)
public RingElt one()
public RingElt zero()
public RingElt neg(RingElt b)
public boolean equalZero(RingElt b)
public static double toDouble(RingElt b)
public RingElt map(double r)
public RingElt map(java.lang.String str)
java.lang.Double#parseDouble(java.lang.String).,
Ring.map(java.lang.String).
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||