|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.application.RealAlgebraicRing<C>
public class RealAlgebraicRing<C extends GcdRingElem<C> & Rational>
Real algebraic number factory class based on bi-variate real algebraic numbers. Objects of this class are immutable with the exception of the isolating intervals. Bi-variate ideal implementation is in version 3614 2011-04-28 09:20:34Z.
Field Summary | |
---|---|
protected C |
eps
Epsilon of the isolating rectangle for a complex root. |
int |
PRECISION
Precision of the isolating rectangle for a complex root. |
RealAlgebraicRing<RealAlgebraicNumber<C>> |
realRing
Recursive real root ring. |
Constructor Summary | |
---|---|
RealAlgebraicRing(IdealWithUniv<C> m,
RealRootTuple<C> root)
The constructor creates a RealAlgebraicNumber factory object from a IdealWithUniv and a root tuple. |
|
RealAlgebraicRing(IdealWithUniv<C> m,
RealRootTuple<C> root,
boolean isField)
The constructor creates a RealAlgebraicNumber factory object from a IdealWithUniv and a root tuple. |
|
RealAlgebraicRing(IdealWithUniv<C> m,
ResidueRing<C> a,
RealRootTuple<C> r)
The constructor creates a RealAlgebraicNumber factory object from a IdealWithUniv, ResidueRing and a root tuple. |
Method Summary | |
---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring. |
RealAlgebraicNumber<C> |
copy(RealAlgebraicNumber<C> c)
Copy RealAlgebraicNumber element c. |
boolean |
equals(java.lang.Object b)
Comparison with any other object. |
RealAlgebraicNumber<C> |
fromInteger(java.math.BigInteger a)
Get a RealAlgebraicNumber element from a BigInteger value. |
RealAlgebraicNumber<C> |
fromInteger(long a)
Get a RealAlgebraicNumber element from a long value. |
java.util.List<RealAlgebraicNumber<C>> |
generators()
Get a list of the generating elements. |
C |
getEps()
Get epsilon. |
RealAlgebraicNumber<C> |
getONE()
Get the one element. |
RealRootTuple<C> |
getRoot()
Get rectangle for the complex root. |
RealAlgebraicNumber<C> |
getZERO()
Get the zero element. |
int |
hashCode()
Hash code for this RealAlgebraicNumber. |
boolean |
isAssociative()
Query if this ring is associative. |
boolean |
isCommutative()
Query if this ring is commutative. |
boolean |
isField()
Query if this ring is a field. |
boolean |
isFinite()
Is this structure finite or infinite. |
RealAlgebraicNumber<C> |
parse(java.io.Reader r)
Parse RealAlgebraicNumber from Reader. |
RealAlgebraicNumber<C> |
parse(java.lang.String s)
Parse RealAlgebraicNumber from String. |
RealAlgebraicNumber<C> |
random(int n)
RealAlgebraicNumber random. |
RealAlgebraicNumber<C> |
random(int n,
java.util.Random rnd)
RealAlgebraicNumber random. |
void |
setEps(BigRational e)
Set a new epsilon. |
void |
setEps(C e)
Set a new epsilon. |
void |
setRoot(RealRootTuple<C> v)
Set a refined rectangle for the complex root. |
java.lang.String |
toScript()
Get a scripting compatible string representation. |
java.lang.String |
toString()
Get the String representation as RingFactory. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final RealAlgebraicRing<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>> realRing
protected C extends GcdRingElem<C> & Rational eps
public final int PRECISION
Constructor Detail |
---|
public RealAlgebraicRing(IdealWithUniv<C> m, ResidueRing<C> a, RealRootTuple<C> r)
m
- module IdealWithUniv<C>.a
- module ResidueRing<C>.r
- isolating rectangle for a complex root.public RealAlgebraicRing(IdealWithUniv<C> m, RealRootTuple<C> root)
m
- module IdealWithUniv<C>.root
- isolating rectangle for a complex root.public RealAlgebraicRing(IdealWithUniv<C> m, RealRootTuple<C> root, boolean isField)
m
- module IdealWithUniv<C>.root
- isolating rectangle for a complex root.isField
- indicator if m is maximal.Method Detail |
---|
public void setRoot(RealRootTuple<C> v)
v
- rectangle.public RealRootTuple<C> getRoot()
public C getEps()
public void setEps(C e)
e
- epsilon.public void setEps(BigRational e)
e
- epsilon.public boolean isFinite()
isFinite
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
ElemFactory.isFinite()
public RealAlgebraicNumber<C> copy(RealAlgebraicNumber<C> c)
copy
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
c
-
public RealAlgebraicNumber<C> getZERO()
getZERO
in interface AbelianGroupFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
public RealAlgebraicNumber<C> getONE()
getONE
in interface MonoidFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
public java.util.List<RealAlgebraicNumber<C>> generators()
generators
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
ElemFactory.generators()
public boolean isCommutative()
isCommutative
in interface MonoidFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
public boolean isAssociative()
isAssociative
in interface MonoidFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
public boolean isField()
isField
in interface RingFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
public java.math.BigInteger characteristic()
characteristic
in interface RingFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
public RealAlgebraicNumber<C> fromInteger(java.math.BigInteger a)
fromInteger
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
a
- BigInteger.
public RealAlgebraicNumber<C> fromInteger(long a)
fromInteger
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
a
- long.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
ElemFactory.toScript()
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public RealAlgebraicNumber<C> random(int n)
random
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
n
- such that 0 ≤ v ≤ (2n-1).
public RealAlgebraicNumber<C> random(int n, java.util.Random rnd)
random
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
n
- such that 0 ≤ v ≤ (2n-1).rnd
- is a source for random bits.
public RealAlgebraicNumber<C> parse(java.lang.String s)
parse
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
s
- String.
public RealAlgebraicNumber<C> parse(java.io.Reader r)
parse
in interface ElemFactory<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
r
- Reader.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |