|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.ps.MultiVarPowerSeriesRing<C>
C
- ring element typepublic class MultiVarPowerSeriesRing<C extends RingElem<C>>
Multivariate power series ring implementation. Uses lazy evaluated generating function for coefficients.
Field Summary | |
---|---|
RingFactory<C> |
coFac
Coefficient ring factory. |
static int |
DEFAULT_TRUNCATE
Default truncate. |
ExpVector |
EVZERO
Zero ExpVector. |
int |
nvar
The number of variables. |
MultiVarPowerSeries<C> |
ONE
The constant power series 1 for this ring. |
protected static java.util.Random |
random
A default random sequence generator. |
protected java.lang.String[] |
vars
The names of the variables. |
MultiVarPowerSeries<C> |
ZERO
The constant power series 0 for this ring. |
Constructor Summary | |
---|---|
MultiVarPowerSeriesRing(GenPolynomialRing<C> fac)
Constructor. |
|
MultiVarPowerSeriesRing(RingFactory<C> coFac,
int nv)
Constructor. |
|
MultiVarPowerSeriesRing(RingFactory<C> coFac,
int nv,
int truncate)
Constructor. |
|
MultiVarPowerSeriesRing(RingFactory<C> cofac,
int nv,
int truncate,
java.lang.String[] names)
Constructor. |
|
MultiVarPowerSeriesRing(RingFactory<C> cofac,
int nv,
java.lang.String[] names)
Constructor. |
|
MultiVarPowerSeriesRing(RingFactory<C> coFac,
java.lang.String[] names)
Constructor. |
Method Summary | |
---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring. |
MultiVarPowerSeries<C> |
copy(MultiVarPowerSeries<C> c)
Copy power series. |
boolean |
equals(java.lang.Object B)
Comparison with any other object. |
MultiVarPowerSeries<C> |
fixPoint(MultiVarPowerSeriesMap<C> map)
Fixed point construction. |
MultiVarPowerSeries<C> |
fromInteger(java.math.BigInteger a)
Get a (constant) MultiVarPowerSeries<C> from a java.math.BigInteger. |
MultiVarPowerSeries<C> |
fromInteger(long a)
Get a (constant) MultiVarPowerSeries<C> from a long value. |
MultiVarPowerSeries<C> |
fromPolynomial(GenPolynomial<C> a)
Get a MultiVarPowerSeries<C> from a GenPolynomial<C>. |
java.util.List<MultiVarPowerSeries<C>> |
fromPolynomial(java.util.List<GenPolynomial<C>> A)
Get a list of MultiVarPowerSeries<C> from a list of GenPolynomial<C>. |
MultiVarPowerSeries<C> |
fromPowerSeries(UnivPowerSeries<C> ps,
int r)
Get a MultiVarPowerSeries<C> from a univariate power series. |
java.util.List<MultiVarPowerSeries<C>> |
generators()
Get a list of the generating elements. |
MultiVarPowerSeries<C> |
getCOS(int r)
Get the power series of the cosinus function. |
MultiVarPowerSeries<C> |
getEXP(int r)
Get the power series of the exponential function. |
MultiVarPowerSeries<C> |
getONE()
Get the one element. |
MultiVarPowerSeries<C> |
getSIN(int r)
Get the power series of the sinus function. |
MultiVarPowerSeries<C> |
getTAN(int r)
Get the power series of the tangens function. |
java.lang.String[] |
getVars()
Get a variable names. |
MultiVarPowerSeries<C> |
getZERO()
Get the zero element. |
int |
hashCode()
Hash code for this . |
boolean |
isAssociative()
Query if this ring is associative. |
boolean |
isCommutative()
Query if this ring is commuative. |
boolean |
isField()
Query if this ring is a field. |
boolean |
isFinite()
Is this structure finite or infinite. |
MultiVarPowerSeries<C> |
parse(java.io.Reader r)
Parse a power series. |
MultiVarPowerSeries<C> |
parse(java.lang.String s)
Parse a power series. |
GenPolynomialRing<C> |
polyRing()
Get the corresponding GenPolynomialRing<C>. |
MultiVarPowerSeries<C> |
random()
Generate a random power series with k = 5, d = 0.7. |
MultiVarPowerSeries<C> |
random(int k)
Generate a random power series with d = 0.7. |
MultiVarPowerSeries<C> |
random(int k,
float d)
Generate a random power series. |
MultiVarPowerSeries<C> |
random(int k,
float d,
java.util.Random rnd)
Generate a random power series. |
MultiVarPowerSeries<C> |
random(int k,
java.util.Random rnd)
Generate a random power series with d = 0.7. |
MultiVarPowerSeries<C> |
seriesOfTaylor(TaylorFunction<C> f,
java.util.List<C> a)
Taylor power series. |
int |
setTruncate(int t)
Set truncate. |
MultiVarPowerSeries<C> |
solvePDE(MultiVarPowerSeries<C> f,
C c,
int r)
Solve an partial differential equation. y_r' = f(y_r) with y_r(0) = c. |
java.lang.String |
toScript()
Get a scripting compatible string representation. |
java.lang.String |
toString()
To String. |
int |
truncate()
Truncate. |
java.lang.String |
varsToString()
Get a String representation of the variable names. |
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 final ExpVector EVZERO
public final RingFactory<C extends RingElem<C>> coFac
public final int nvar
protected java.lang.String[] vars
public final MultiVarPowerSeries<C extends RingElem<C>> ONE
public final MultiVarPowerSeries<C extends RingElem<C>> ZERO
Constructor Detail |
---|
public MultiVarPowerSeriesRing(GenPolynomialRing<C> fac)
fac
- polynomial ring factory.public MultiVarPowerSeriesRing(RingFactory<C> coFac, int nv)
coFac
- coefficient ring factory.public MultiVarPowerSeriesRing(RingFactory<C> coFac, int nv, int truncate)
coFac
- coefficient ring factory.truncate
- index of truncation.public MultiVarPowerSeriesRing(RingFactory<C> coFac, java.lang.String[] names)
coFac
- coefficient ring factory.names
- of the variables.public MultiVarPowerSeriesRing(RingFactory<C> cofac, int nv, java.lang.String[] names)
cofac
- coefficient ring factory.nv
- number of variables.names
- of the variables.public MultiVarPowerSeriesRing(RingFactory<C> cofac, int nv, int truncate, java.lang.String[] names)
cofac
- coefficient ring factory.truncate
- index of truncation.names
- of the variables.Method Detail |
---|
public MultiVarPowerSeries<C> fixPoint(MultiVarPowerSeriesMap<C> map)
map
- a mapping of power series.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String varsToString()
public java.lang.String[] getVars()
public java.lang.String toScript()
toScript
in interface ElemFactory<MultiVarPowerSeries<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 MultiVarPowerSeries<C> getZERO()
getZERO
in interface AbelianGroupFactory<MultiVarPowerSeries<C extends RingElem<C>>>
public MultiVarPowerSeries<C> getONE()
getONE
in interface MonoidFactory<MultiVarPowerSeries<C extends RingElem<C>>>
public java.util.List<MultiVarPowerSeries<C>> generators()
generators
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
ElemFactory.generators()
public boolean isFinite()
isFinite
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
ElemFactory.isFinite()
public int truncate()
public int setTruncate(int t)
t
- new truncate index.
public MultiVarPowerSeries<C> getEXP(int r)
r
- variable for the direction.
public MultiVarPowerSeries<C> getSIN(int r)
r
- variable for the direction.
public MultiVarPowerSeries<C> getCOS(int r)
r
- variable for the direction.
public MultiVarPowerSeries<C> getTAN(int r)
r
- variable for the direction.
public MultiVarPowerSeries<C> solvePDE(MultiVarPowerSeries<C> f, C c, int r)
f
- a MultiVarPowerSeriesc
- integration constant.r
- variable for the direction.
public boolean isCommutative()
isCommutative
in interface MonoidFactory<MultiVarPowerSeries<C extends RingElem<C>>>
public boolean isAssociative()
isAssociative
in interface MonoidFactory<MultiVarPowerSeries<C extends RingElem<C>>>
public boolean isField()
isField
in interface RingFactory<MultiVarPowerSeries<C extends RingElem<C>>>
public java.math.BigInteger characteristic()
characteristic
in interface RingFactory<MultiVarPowerSeries<C extends RingElem<C>>>
public MultiVarPowerSeries<C> fromInteger(long a)
fromInteger
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
a
- long.
public MultiVarPowerSeries<C> fromInteger(java.math.BigInteger a)
fromInteger
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
a
- BigInteger.
public GenPolynomialRing<C> polyRing()
public MultiVarPowerSeries<C> fromPolynomial(GenPolynomial<C> a)
a
- GenPolynomial<C>.
public java.util.List<MultiVarPowerSeries<C>> fromPolynomial(java.util.List<GenPolynomial<C>> A)
A
- list of GenPolynomial<C>.
public MultiVarPowerSeries<C> fromPowerSeries(UnivPowerSeries<C> ps, int r)
ps
- UnivPowerSeries<C>.r
- variable for the direction.
public MultiVarPowerSeries<C> random()
public MultiVarPowerSeries<C> random(int k)
random
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
k
- bit-size of random coefficients.
public MultiVarPowerSeries<C> random(int k, java.util.Random rnd)
random
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
k
- bit-size of random coefficients.rnd
- is a source for random bits.
public MultiVarPowerSeries<C> random(int k, float d)
k
- bit-size of random coefficients.d
- density of non-zero coefficients.
public MultiVarPowerSeries<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 MultiVarPowerSeries<C> copy(MultiVarPowerSeries<C> c)
copy
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
c
- a power series.
public MultiVarPowerSeries<C> parse(java.lang.String s)
parse
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
s
- String.
public MultiVarPowerSeries<C> parse(java.io.Reader r)
parse
in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
r
- Reader.
public MultiVarPowerSeries<C> seriesOfTaylor(TaylorFunction<C> f, java.util.List<C> a)
f
- function.a
- expansion point.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |