|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.ps.UnivPowerSeriesRing<C>
C
- ring element typepublic class UnivPowerSeriesRing<C extends RingElem<C>>
Univariate power series ring implementation. Uses lazy evaluated generating function for coefficients.
Field Summary | |
---|---|
RingFactory<C> |
coFac
Coefficient ring factory. |
static java.lang.String |
DEFAULT_NAME
Default variable name. |
static int |
DEFAULT_TRUNCATE
Default truncate. |
UnivPowerSeries<C> |
ONE
The constant power series 1 for this ring. |
protected static java.util.Random |
random
A default random sequence generator. |
UnivPowerSeries<C> |
ZERO
The constant power series 0 for this ring. |
Constructor Summary | |
---|---|
UnivPowerSeriesRing(GenPolynomialRing<C> pfac)
Constructor. |
|
UnivPowerSeriesRing(RingFactory<C> coFac)
Constructor. |
|
UnivPowerSeriesRing(RingFactory<C> coFac,
int truncate)
Constructor. |
|
UnivPowerSeriesRing(RingFactory<C> cofac,
int truncate,
java.lang.String name)
Constructor. |
|
UnivPowerSeriesRing(RingFactory<C> coFac,
java.lang.String name)
Constructor. |
Method Summary | |
---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring. |
UnivPowerSeries<C> |
copy(UnivPowerSeries<C> c)
Copy power series. |
boolean |
equals(java.lang.Object B)
Comparison with any other object. |
UnivPowerSeries<C> |
fixPoint(UnivPowerSeriesMap<C> map)
Fixed point construction. |
UnivPowerSeries<C> |
fromInteger(java.math.BigInteger a)
Get a (constant) UnivPowerSeries<C> from a java.math.BigInteger. |
UnivPowerSeries<C> |
fromInteger(long a)
Get a (constant) UnivPowerSeries<C> from a long value. |
UnivPowerSeries<C> |
fromPolynomial(GenPolynomial<C> a)
Get a UnivPowerSeries<C> from a GenPolynomial<C>. |
java.util.List<UnivPowerSeries<C>> |
generators()
Get a list of the generating elements. |
UnivPowerSeries<C> |
getCOS()
Get the power series of the cosine function. |
UnivPowerSeries<C> |
getEXP()
Get the power series of the exponential function. |
UnivPowerSeries<C> |
getONE()
Get the one element. |
UnivPowerSeries<C> |
getSIN()
Get the power series of the sinus function. |
UnivPowerSeries<C> |
getTAN()
Get the power series of the tangens function. |
UnivPowerSeries<C> |
getZERO()
Get the zero element. |
int |
hashCode()
Hash code for this . |
boolean |
isAssociative()
Query if this ring is associative. |
boolean |
isCommutative()
Is commutative. |
boolean |
isField()
Query if this ring is a field. |
boolean |
isFinite()
Is this structure finite or infinite. |
UnivPowerSeries<C> |
parse(java.io.Reader r)
Parse a power series. |
UnivPowerSeries<C> |
parse(java.lang.String s)
Parse a power series. |
GenPolynomialRing<C> |
polyRing()
Get the corresponding GenPolynomialRing<C>. |
UnivPowerSeries<C> |
random()
Generate a random power series with k = 5, d = 0.7. |
UnivPowerSeries<C> |
random(int k)
Generate a random power series with d = 0.7. |
UnivPowerSeries<C> |
random(int k,
float d)
Generate a random power series. |
UnivPowerSeries<C> |
random(int k,
float d,
java.util.Random rnd)
Generate a random power series. |
UnivPowerSeries<C> |
random(int k,
java.util.Random rnd)
Generate a random power series with d = 0.7. |
UnivPowerSeries<C> |
seriesOfTaylor(TaylorFunction<C> f,
C a)
Taylor power series. |
UnivPowerSeries<C> |
solveODE(UnivPowerSeries<C> f,
C c)
Solve an ordinary differential equation. y' = f(y) with y(0) = c. |
java.lang.String |
toScript()
Get a scripting compatible string representation. |
java.lang.String |
toString()
To String. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.util.Random random
public static final int DEFAULT_TRUNCATE
public static final java.lang.String DEFAULT_NAME
public final RingFactory<C extends RingElem<C>> coFac
public final UnivPowerSeries<C extends RingElem<C>> ONE
public final UnivPowerSeries<C extends RingElem<C>> ZERO
Constructor Detail |
---|
public UnivPowerSeriesRing(RingFactory<C> coFac)
coFac
- coefficient ring factory.public UnivPowerSeriesRing(RingFactory<C> coFac, int truncate)
coFac
- coefficient ring factory.truncate
- index of truncation.public UnivPowerSeriesRing(RingFactory<C> coFac, java.lang.String name)
coFac
- coefficient ring factory.name
- of the variable.public UnivPowerSeriesRing(GenPolynomialRing<C> pfac)
pfac
- polynomial ring factory.public UnivPowerSeriesRing(RingFactory<C> cofac, int truncate, java.lang.String name)
cofac
- coefficient ring factory.truncate
- index of truncation.name
- of the variable.Method Detail |
---|
public UnivPowerSeries<C> fixPoint(UnivPowerSeriesMap<C> map)
map
- a mapping of power series.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toScript()
toScript
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
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 UnivPowerSeries<C> getZERO()
getZERO
in interface AbelianGroupFactory<UnivPowerSeries<C extends RingElem<C>>>
public UnivPowerSeries<C> getONE()
getONE
in interface MonoidFactory<UnivPowerSeries<C extends RingElem<C>>>
public java.util.List<UnivPowerSeries<C>> generators()
generators
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
ElemFactory.generators()
public boolean isFinite()
isFinite
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
ElemFactory.isFinite()
public UnivPowerSeries<C> getEXP()
public UnivPowerSeries<C> getSIN()
public UnivPowerSeries<C> getCOS()
public UnivPowerSeries<C> getTAN()
public UnivPowerSeries<C> solveODE(UnivPowerSeries<C> f, C c)
f
- a UnivPowerSeriesc
- integration constant.
public boolean isCommutative()
isCommutative
in interface MonoidFactory<UnivPowerSeries<C extends RingElem<C>>>
public boolean isAssociative()
isAssociative
in interface MonoidFactory<UnivPowerSeries<C extends RingElem<C>>>
public boolean isField()
isField
in interface RingFactory<UnivPowerSeries<C extends RingElem<C>>>
public java.math.BigInteger characteristic()
characteristic
in interface RingFactory<UnivPowerSeries<C extends RingElem<C>>>
public UnivPowerSeries<C> fromInteger(long a)
fromInteger
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
a
- long.
public UnivPowerSeries<C> fromInteger(java.math.BigInteger a)
fromInteger
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
a
- BigInteger.
public GenPolynomialRing<C> polyRing()
public UnivPowerSeries<C> fromPolynomial(GenPolynomial<C> a)
a
- GenPolynomial<C>.
public UnivPowerSeries<C> random()
public UnivPowerSeries<C> random(int k)
random
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
k
- bitsize of random coefficients.
public UnivPowerSeries<C> random(int k, java.util.Random rnd)
random
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
k
- bit-size of random coefficients.rnd
- is a source for random bits.
public UnivPowerSeries<C> random(int k, float d)
k
- bit-size of random coefficients.d
- density of non-zero coefficients.
public UnivPowerSeries<C> random(int k, float d, java.util.Random rnd)
k
- bit-size of random coefficients.d
- density of non-zero coefficients.rnd
- is a source for random bits.
public UnivPowerSeries<C> copy(UnivPowerSeries<C> c)
copy
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
c
- a power series.
public UnivPowerSeries<C> parse(java.lang.String s)
parse
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
s
- String.
public UnivPowerSeries<C> parse(java.io.Reader r)
parse
in interface ElemFactory<UnivPowerSeries<C extends RingElem<C>>>
r
- Reader.
public UnivPowerSeries<C> seriesOfTaylor(TaylorFunction<C> f, C a)
f
- function.a
- expansion point.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |