|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.math.polynomials.NVariablePolynomial
com.hedgehog.math.polynomials.TwoVariablePolynomial
public class TwoVariablePolynomial
Title: TwoVariablePolynomial - represents a 2-variable polynomial.
Description: A 2-variable polynomial class.
Polynomials of 2 variables are frequently used when modelling surfaces.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary |
|---|
| Fields inherited from class com.hedgehog.math.polynomials.NVariablePolynomial |
|---|
CONSTANT, CUBIC, LINEAR, QUADRATIC, terms |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
TwoVariablePolynomial()
Default constructor. |
|
TwoVariablePolynomial(TwoVariablePolynomial object)
Coy constructor. |
|
TwoVariablePolynomial(java.util.Vector<NVariableTerm> terms)
Constructor. |
|
| Method Summary | |
|---|---|
double |
evaluate(double x0,
double y0)
Evaluates the polynomial for the specified variable values. |
HDouble |
evaluate(HDouble x0,
HDouble y0)
HDouble version of evaluate(). |
TwoVariablePolynomial |
firstDerivativeWithRespectToX()
Returns the first derivative of this polynomial wrt x. |
TwoVariablePolynomial |
firstDerivativeWithRespectToY()
Returns the first derivative of this polynomial wrt y. |
NVariablePolynomial |
toNVariablePolynomial()
Converts this 2-vatiable polynomial to a general n-variable polynomial obect. |
org.w3c.dom.Element |
toXMLNode(org.w3c.dom.Document document,
org.w3c.dom.Element documentRootNode)
Returns the xml node of this object. |
| Methods inherited from class com.hedgehog.math.polynomials.NVariablePolynomial |
|---|
add, addTerm, addTo, childModelObjects, cube, databaseInsertStatement, databaseUpdateStatement, deleteTerm, evaluate, firstDerivative, fromDatabase, fromXMLNode, getTerm, getTerms, highestPower, highestPowerCoefficient, highestPowerTerm, integrate, lowestPower, lowestPowerTerm, lowesttPowerCoefficient, multiply, multiply, multiply, multiply, multiply, multiplyBy, multiplyBy, multiplyBy, nthDerivative, numberOfTerms, pow, secondDerivative, set, setTerms, square, subtract, subtract, termIDs, toString, toStringAllTerms, toX3DNode |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TwoVariablePolynomial()
public TwoVariablePolynomial(java.util.Vector<NVariableTerm> terms)
terms - Vectorpublic TwoVariablePolynomial(TwoVariablePolynomial object)
object - Object to copy.| Method Detail |
|---|
public TwoVariablePolynomial firstDerivativeWithRespectToX()
public TwoVariablePolynomial firstDerivativeWithRespectToY()
public NVariablePolynomial toNVariablePolynomial()
public double evaluate(double x0,
double y0)
x0 - x-variable value.y0 - y-variable value.
public HDouble evaluate(HDouble x0,
HDouble y0)
x0 - x-variable value.y0 - y-variable value.
public org.w3c.dom.Element toXMLNode(org.w3c.dom.Document document,
org.w3c.dom.Element documentRootNode)
throws InvalidObjectException
toXMLNode in interface ModelObjecttoXMLNode in class NVariablePolynomialdocument - XML document.documentRootNode - Douument root node.
InvalidObjectException - Thrown if this object is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||