Documentation of 'edu.jas.ps.MultiVarPowerSeriesRing' Java class
MultiVarPowerSeriesRing
edu.jas.ps

Class MultiVarPowerSeriesRing<C extends RingElem<C>>

    • Constructor Detail

      • MultiVarPowerSeriesRing

        public MultiVarPowerSeriesRing(GenPolynomialRing<C> fac)
        Constructor.
        Parameters:
        fac - polynomial ring factory.
      • MultiVarPowerSeriesRing

        public MultiVarPowerSeriesRing(RingFactory<C> coFac,
                                       int nv)
        Constructor.
        Parameters:
        coFac - coefficient ring factory.
      • MultiVarPowerSeriesRing

        public MultiVarPowerSeriesRing(RingFactory<C> coFac,
                                       int nv,
                                       int truncate)
        Constructor.
        Parameters:
        coFac - coefficient ring factory.
        truncate - index of truncation.
      • MultiVarPowerSeriesRing

        public MultiVarPowerSeriesRing(RingFactory<C> coFac,
                                       java.lang.String[] names)
        Constructor.
        Parameters:
        coFac - coefficient ring factory.
        names - of the variables.
      • MultiVarPowerSeriesRing

        public MultiVarPowerSeriesRing(RingFactory<C> cofac,
                                       int nv,
                                       java.lang.String[] names)
        Constructor.
        Parameters:
        cofac - coefficient ring factory.
        nv - number of variables.
        names - of the variables.
      • MultiVarPowerSeriesRing

        public MultiVarPowerSeriesRing(RingFactory<C> cofac,
                                       int nv,
                                       int truncate,
                                       java.lang.String[] names)
        Constructor.
        Parameters:
        cofac - coefficient ring factory.
        truncate - index of truncation.
        names - of the variables.
    • Method Detail

      • toString

        public java.lang.String toString()
        To String.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of this.
      • varsToString

        public java.lang.String varsToString()
        Get a String representation of the variable names.
        Returns:
        names separated by commas.
      • getVars

        public java.lang.String[] getVars()
        Get the variable names.
        Returns:
        names.
      • equals

        public boolean equals(java.lang.Object B)
        Comparison with any other object.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Hash code for this .
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • truncate

        public int truncate()
        Truncate.
        Returns:
        truncate index of power series.
      • setTruncate

        public int setTruncate(int t)
        Set truncate.
        Parameters:
        t - new truncate index.
        Returns:
        old truncate index of power series.
      • getEXP

        public MultiVarPowerSeries<C> getEXP(int r)
        Get the power series of the exponential function.
        Parameters:
        r - variable for the direction.
        Returns:
        exp(x_r) as MultiVarPowerSeries.
      • getSIN

        public MultiVarPowerSeries<C> getSIN(int r)
        Get the power series of the sinus function.
        Parameters:
        r - variable for the direction.
        Returns:
        sin(x_r) as MultiVarPowerSeries.
      • getCOS

        public MultiVarPowerSeries<C> getCOS(int r)
        Get the power series of the cosinus function.
        Parameters:
        r - variable for the direction.
        Returns:
        cos(x_r) as MultiVarPowerSeries.
      • getTAN

        public MultiVarPowerSeries<C> getTAN(int r)
        Get the power series of the tangens function.
        Parameters:
        r - variable for the direction.
        Returns:
        tan(x_r) as MultiVarPowerSeries.
      • solvePDE

        public 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.
        Parameters:
        f - a MultiVarPowerSeries.
        c - integration constant.
        r - variable for the direction.
        Returns:
        f.integrate(c).
      • polyRing

        public GenPolynomialRing<C> polyRing()
        Get the corresponding GenPolynomialRing<C>.
        Returns:
        GenPolynomialRing<C>.
      • fromPolynomial

        public MultiVarPowerSeries<C> fromPolynomial(GenPolynomial<C> a)
        Get a MultiVarPowerSeries<C> from a GenPolynomial<C>.
        Parameters:
        a - GenPolynomial<C>.
        Returns:
        a MultiVarPowerSeries<C>.
      • fromPolynomial

        public java.util.List<MultiVarPowerSeries<C>> fromPolynomial(java.util.List<GenPolynomial<C>> A)
        Get a list of MultiVarPowerSeries<C> from a list of GenPolynomial<C>.
        Parameters:
        A - list of GenPolynomial<C>.
        Returns:
        a list of MultiVarPowerSeries<C>.
      • fromPowerSeries

        public MultiVarPowerSeries<C> fromPowerSeries(UnivPowerSeries<C> ps,
                                                      int r)
        Get a MultiVarPowerSeries<C> from a univariate power series.
        Parameters:
        ps - UnivPowerSeries<C>.
        r - variable for the direction.
        Returns:
        a MultiVarPowerSeries<C>.
      • random

        public MultiVarPowerSeries<C> random()
        Generate a random power series with k = 5, d = 0.7.
        Returns:
        a random power series.
      • random

        public MultiVarPowerSeries<C> random(int k,
                                             java.util.Random rnd)
        Generate a random power series with d = 0.7.
        Specified by:
        random in interface ElemFactory<MultiVarPowerSeries<C extends RingElem<C>>>
        Parameters:
        k - bit-size of random coefficients.
        rnd - is a source for random bits.
        Returns:
        a random power series.
      • random

        public MultiVarPowerSeries<C> random(int k,
                                             float d)
        Generate a random power series.
        Parameters:
        k - bit-size of random coefficients.
        d - density of non-zero coefficients.
        Returns:
        a random power series.
      • random

        public MultiVarPowerSeries<C> random(int k,
                                             float d,
                                             java.util.Random rnd)
        Generate a random power series.
        Parameters:
        k - bit-size of random coefficients.
        d - density of non-zero coefficients.
        rnd - is a source for random bits.
        Returns:
        a random power series.
      • seriesOfTaylor

        public MultiVarPowerSeries<C> seriesOfTaylor(TaylorFunction<C> f,
                                                     java.util.List<C> a)
        Taylor power series.
        Parameters:
        f - function.
        a - expansion point.
        Returns:
        Taylor series of f.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.