numericalMethods.algebra.polynomial
Class ComplexLaurentPolynomial

java.lang.Object
  |
  +--numericalMethods.algebra.polynomial.ComplexLaurentPolynomial

public final class ComplexLaurentPolynomial
extends java.lang.Object

This is provides routines for complex laurent polynomials.


Constructor Summary
ComplexLaurentPolynomial()
           
 
Method Summary
static void derivative(double[] aRe, double[] aIm, int lowerDegOfA, int degOfA, int n, double[] bRe, double[] bIm)
          computes the nth derivative of given polynomial.
static void eval(double[] aRe, double[] aIm, int lowerDegOfA, int degOfA, double x, double y, double[] aAtZ)
          evaluates the polynomial a with the coefficients a_k = aRe[k] + i aIm[k] and degree degOfA at z = x + i y and returns the result in aAtZ.
static void evalDerivative(double[] aRe, double[] aIm, int lowerDegOfA, int degOfA, int n, double x, double y, double[] dAAtZ)
          evaluates the n-the derivative of the polynomial a with the coefficients a_k = aRe[k + offsetOfA ] + i aIm[k + offsetOfA] and degree degOfA at z = x + i y and returns the result in dAAtZ.
static java.lang.String toString(double[] re, double[] im, int lowerDegree, int degree)
           
static java.lang.String toString(double[] re, double[] im, int lowerDegree, int degree, double eps)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexLaurentPolynomial

public ComplexLaurentPolynomial()
Method Detail

eval

public static void eval(double[] aRe,
                        double[] aIm,
                        int lowerDegOfA,
                        int degOfA,
                        double x,
                        double y,
                        double[] aAtZ)
evaluates the polynomial a with the coefficients a_k = aRe[k] + i aIm[k] and degree degOfA at z = x + i y and returns the result in aAtZ. The polynomial is evaluated using Hornerīs method.

evalDerivative

public static void evalDerivative(double[] aRe,
                                  double[] aIm,
                                  int lowerDegOfA,
                                  int degOfA,
                                  int n,
                                  double x,
                                  double y,
                                  double[] dAAtZ)
evaluates the n-the derivative of the polynomial a with the coefficients a_k = aRe[k + offsetOfA ] + i aIm[k + offsetOfA] and degree degOfA at z = x + i y and returns the result in dAAtZ. The polynomial is evaluated using Hornerīs method.

derivative

public static void derivative(double[] aRe,
                              double[] aIm,
                              int lowerDegOfA,
                              int degOfA,
                              int n,
                              double[] bRe,
                              double[] bIm)
computes the nth derivative of given polynomial. aRe(aIm) and aIm(bIm) may coinside.
Parameters:
aRe - real part of coefficients of polynomial that is to differentiate
aIm - imaginary part of coefficients of polynomial that is to differentiate
degOfA - degree of polynomial which is to differentiate
n - number of differentiations
bRe - real part of the derivative
bIm - imaginary part of the derivative

toString

public static java.lang.String toString(double[] re,
                                        double[] im,
                                        int lowerDegree,
                                        int degree)

toString

public static java.lang.String toString(double[] re,
                                        double[] im,
                                        int lowerDegree,
                                        int degree,
                                        double eps)