com.singularsys.extexamples.applets

## Class Bern2D

• java.lang.Object
• com.singularsys.extexamples.applets.Bern2D
• ### Nested Class Summary

Nested Classes
Modifier and Type Class and Description
`static class ` `Bern2D.DerivBits`
sign bits for derivatives
`static class ` `Bern2D.NegBern2D`
An always negative polynomial
`static class ` `Bern2D.PosBern2D`
An always posative polynomial
`static class ` `Bern2D.QuadBern`
Four Bernstring polynomials
`static class ` `Bern2D.Tower`
Derivatives of a polynomial
`static class ` `Bern2D.ZeroBern2D`
An always zero polynomial
• ### Field Summary

Fields
Modifier and Type Field and Description
`double[][]` `coeffs`
`static Bern2D.NegBern2D` `negBern2D`
`static Bern2D.QuadBern` `negQuad`
`static Bern2D.PosBern2D` `posBern2D`
`static Bern2D.QuadBern` `posQuad`
`int` `xord`
`int` `yord`
`static Bern2D.ZeroBern2D` `zeroBern2D`
• ### Constructor Summary

Constructors
Constructor and Description
```Bern2D(int xord, int yord)```
• ### Method Summary

All Methods
Modifier and Type Method and Description
`void` ```addCoeff(int i, int j, double val)```
`short` `allOneSign()`
Test if all coefficient are strictly the same sign.
`Bern2D` `diffX()`
`Bern2D` `diffY()`
`double` ```ele2D(int i, int j)```
`double` `evalbern2D(double[] vec)`
`static Bern2D` ```fromPolyCoeffs(double[][] aa, Range2D range)```
Note the order of x,y is reversed here.
`Bern2D.QuadBern` `reduce()`
`void` ```setCoeff(int i, int j, double coeff)```
`static Bern2D` ```symetricDet2D(Bern2D a, Bern2D b, Bern2D c)```
`java.lang.String` `toString()`
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
• ### Field Detail

• #### xord

`public int xord`
• #### yord

`public int yord`
• #### coeffs

`public double[][] coeffs`
• #### posBern2D

`public static final Bern2D.PosBern2D posBern2D`
• #### negBern2D

`public static final Bern2D.NegBern2D negBern2D`
• #### zeroBern2D

`public static final Bern2D.ZeroBern2D zeroBern2D`

`public static final Bern2D.QuadBern negQuad`

`public static final Bern2D.QuadBern posQuad`
• ### Constructor Detail

• #### Bern2D

```public Bern2D(int xord,
int yord)```
• ### Method Detail

• #### setCoeff

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

```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 java.lang.String toString()`
Overrides:
`toString` in class `java.lang.Object`
• #### symetricDet2D

```public static Bern2D symetricDet2D(Bern2D a,
Bern2D b,
Bern2D c)```
• #### evalbern2D

`public double evalbern2D(double[] vec)`