|
||||||||||
| 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.LogarithmicIntegralFunction
public class LogarithmicIntegralFunction
Title: LogarithmicIntegralFunction - represents the logarithmic integral function li(x).
Description: Represents the logarithmic integral function li(x), which is sometimes referred to as the "American" definition.
The function is evaluated using the Nielsen-Ramanujan formula.
Some special case values are:
li(0.0) : 0.0 li(1.0) : -1.0E20 li(2.0) : 1.045163768060353 li(1.451...) : 0.0
For further details refer to MathWorld.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary | |
|---|---|
protected double |
mTolerance
Tolerance used for convergence. |
| Fields inherited from class com.hedgehog.math.functions.Function |
|---|
method |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
LogarithmicIntegralFunction(double tolerance)
Constructor. |
|
LogarithmicIntegralFunction(LogarithmicIntegralFunction object)
Copy constructor. |
|
| Method Summary | |
|---|---|
double |
getValue(double x)
Evaluates li(x). |
boolean |
isValid()
Tests whether or not a valid object. |
double |
Li(double x)
Evaluates Li(x)=li(x)-li(2), which is sometimes referred to as the "European" definition. |
| Methods inherited from class com.hedgehog.math.functions.Function |
|---|
getMethod, setMethod, toString |
| 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 double mTolerance
| Constructor Detail |
|---|
public LogarithmicIntegralFunction(double tolerance)
tolerance - Required tolerance of accuracy of evaluation of li(x).public LogarithmicIntegralFunction(LogarithmicIntegralFunction object)
object - Object to copy.| Method Detail |
|---|
public double getValue(double x)
x - Value at which li(x) is to evaluated.
public double Li(double x)
x - Value at which to evaluate Li(x).
public boolean isValid()
isValid in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||