Package edu.jas.root

Class Boundary<C extends RingElem<C> & Rational>

  • Type Parameters:
    C - coefficient type.
    All Implemented Interfaces:
    java.io.Serializable

    public class Boundary<C extends RingElem<C> & Rational>
    extends java.lang.Object
    implements java.io.Serializable
    Boundary determined by a rectangle and a polynomial. For a given complex polynomial A a closed path through the corners of the given rectangle is constructed. The path is represented by four polynomials, one for each side of the rectangle. For a real t in [0,1] the i-th polynomial describes the path of A from corner[i] to corner[i+1]. In particular polys[i](0) = A(corner[i]) and polys[i](1) = A(corner[i+1]), with corner[4] = corner[0]. If A would be zero on a point of the path, an InvalidBoundaryException is thrown.
    See Also:
    Serialized Form
    • Method Detail

      • toString

        public java.lang.String toString()
        String representation of Boundary.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • toScript

        public java.lang.String toScript()
        Get a scripting compatible string representation.
        Returns:
        script compatible representation for this Boundary.
      • getRealPart

        public GenPolynomial<C> getRealPart​(int i)
        Get real part for polynomial i.
        Parameters:
        i - index of polynomial.
        Returns:
        real part for polynomial i.
      • getImagPart

        public GenPolynomial<C> getImagPart​(int i)
        Get imaginary part for polynomial i.
        Parameters:
        i - index of polynomial.
        Returns:
        imaginary part for polynomial i.
      • copy

        public Boundary<C> copy()
        Copy this.
        Returns:
        a copy of this.
      • 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 Rectangle.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()