Documentation of 'jsci.maths.polynomials.ComplexPolynomial' Java class
ComplexPolynomial
jsci.maths.polynomials

Class ComplexPolynomial

    • Constructor Detail

      • ComplexPolynomial

        public ComplexPolynomial(Complex[] coeff)
        Creates a new instance of ComplexPolynomial
      • ComplexPolynomial

        public ComplexPolynomial(Field.Member[] f)
        Creates a new ComplexPolynomial object.
        Parameters:
        f -
    • Method Detail

      • getCoefficient

        public Field.Member getCoefficient(int n)
        Description copied from interface: Polynomial
        Get the coefficient of degree k, i.e. a_k if P(x) := sum_{k=0}^n a_k x^k
        Specified by:
        getCoefficient in interface Polynomial
        Parameters:
        n -
        Returns:
        coefficient as described above
      • getCoefficientAsComplex

        public Complex getCoefficientAsComplex(int n)
        Parameters:
        n -
      • getCoefficientsAsComplexes

        public Complex[] getCoefficientsAsComplexes()
        Return the coefficients as an array of complex numbers.
      • map

        public Complex map(double x,
                           double y)
        Evaluates this polynomial.
      • degree

        public int degree()
        Description copied from interface: Polynomial
        The degree.
        Specified by:
        degree in interface Polynomial
        Returns:
        the degree
      • getSet

        public java.lang.Object getSet()
        Specified by:
        getSet in interface Member
      • isZero

        public boolean isZero()
        Returns:
        true if this is equal to zero.
      • isOne

        public boolean isOne()
        Returns:
        true if this is equal to one.
      • scalarDivide

        public Polynomial scalarDivide(Field.Member f)
        Returns the division of this polynomial by a scalar.
        Specified by:
        scalarDivide in interface Polynomial
        Parameters:
        f -
        Returns:
        new Polynomial with coefficients /= a
      • scalarDivide

        public ComplexPolynomial scalarDivide(Complex a)
        Returns the division of this polynomial by a scalar.
        Parameters:
        a -
      • scalarDivide

        public ComplexPolynomial scalarDivide(double a)
        Returns the division of this polynomial by a scalar.
        Parameters:
        a -
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o -
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • scalarMultiply

        public Polynomial scalarMultiply(Field.Member f)
        Returns the multiplication of this polynomial by a scalar.
        Specified by:
        scalarMultiply in interface Polynomial
        Parameters:
        f -
        Returns:
        new Polynomial with coefficients *= a
      • scalarMultiply

        public ComplexPolynomial scalarMultiply(double a)
        Returns the multiplication of this polynomial by a scalar.
        Parameters:
        a -
      • scalarMultiply

        public ComplexPolynomial scalarMultiply(Complex a)
        Returns the multiplication of this polynomial by a scalar.
        Parameters:
        a -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.