Class Bern2D

java.lang.Object
com.singularsys.extexamples.applets.Bern2D
Direct Known Subclasses:
Bern2D.NegBern2D, Bern2D.PosBern2D, Bern2D.ZeroBern2D

public class Bern2D extends Object
Two dimension Bernstein polynomial for implicit plotter app.
  • Field Details

  • Constructor Details

    • Bern2D

      public Bern2D(int xord, int yord)
  • Method Details

    • setCoeff

      public final void setCoeff(int i, int j, double coeff)
    • addCoeff

      public final void addCoeff(int i, int j, double val)
    • ele2D

      public final double ele2D(int i, int j)
    • allOneSign

      public short allOneSign()
      Test if all coefficient are strictly the same sign.
      Returns:
      tree if all positive or all negative false otherwise
    • diffX

      public Bern2D diffX() throws JepException
      Throws:
      JepException
    • diffY

      public Bern2D diffY() throws JepException
      Throws:
      JepException
    • reduce

      public Bern2D.QuadBern reduce() throws JepException
      Throws:
      JepException
    • fromPolyCoeffs

      public static Bern2D fromPolyCoeffs(double[][] aa, Range2D range)
      Note the order of x,y is reversed here.
      Parameters:
      aa -
      range -
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • symmetricDet2D

      public static Bern2D symmetricDet2D(Bern2D a, Bern2D b, Bern2D c)
    • evalbern2D

      public double evalbern2D(double[] vec)