|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.math.functions.Function
com.hedgehog.math.functions.LegendrePolynomialFunction
public class LegendrePolynomialFunction
Title: LegendrePolynomialFunction - represents the Legendre polynomial function.<
Description: Legendre polynomial function.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary | |
|---|---|
protected int |
n_order
Order of polynomial. |
| Fields inherited from class com.hedgehog.math.functions.Function |
|---|
method |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
LegendrePolynomialFunction()
Default constructor. |
|
LegendrePolynomialFunction(int n)
Constructor. |
|
LegendrePolynomialFunction(LegendrePolynomialFunction object)
Copy constructor. |
|
| Method Summary | |
|---|---|
double |
derivative(int k,
double x)
Returns the kth derivative of Pn(x). |
double |
firstDerivative(double x)
Returns the first derivative of Pn(x). |
boolean |
isValid()
Returns logical-true if a valid object, else logical-false. |
OneVariablePolynomial |
legendrePolynomial()
Returns the Legendre polynomials (default is linear). |
java.util.Vector<HDouble> |
rootsInIntervalAToB(double a,
double b)
Returns the roots of Pn(x)=0 in the interval [a:b] for n=2,4,6,8,10,12,14 and 16. |
java.util.Vector<HDouble> |
rootsInIntervalMinus1ToPlus1()
Returns the Vector |
java.lang.String |
toString()
Returns a String representation of a LegendrePolynomialFunction object. |
double |
value(double x)
Returns the value of a Legendre polynomial given x. |
| Methods inherited from class com.hedgehog.math.functions.Function |
|---|
getMethod, setMethod |
| 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 |
| Field Detail |
|---|
protected int n_order
| Constructor Detail |
|---|
public LegendrePolynomialFunction()
public LegendrePolynomialFunction(int n)
throws java.lang.IllegalArgumentException
n - Order of polynomial.
java.lang.IllegalArgumentException - Thrown if n<0.public LegendrePolynomialFunction(LegendrePolynomialFunction object)
object - Object to copy.| Method Detail |
|---|
public double derivative(int k,
double x)
k - Order of derivative.x - Value to evaluate kth derivative.
public double firstDerivative(double x)
x - Value of x to evaluate first derivative
public OneVariablePolynomial legendrePolynomial()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic java.util.Vector<HDouble> rootsInIntervalMinus1ToPlus1()
public java.util.Vector<HDouble> rootsInIntervalAToB(double a,
double b)
a - Minimum interval value.b - Maximum interval value.
public double value(double x)
throws java.lang.IllegalArgumentException
x - Value of x to evaluate polynomial.
java.lang.IllegalArgumentExceptionpublic boolean isValid()
isValid in class Functionpublic java.lang.String toString()
toString in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||