net.von_gagern.martin.confoo.fun
Class Clausen
java.lang.Object
net.von_gagern.martin.confoo.fun.Clausen
public class Clausen
- extends Object
Clausen's integral.
This class calculates Clausen's integral defined by
CLAUSN(x) = integral 0 to x of (-ln(2*sin(t/2))) dt
The code uses Chebyshev expansions with the coefficients
given to 20 decimal places.
This is a Java port of code originally written in Fortran.
The Fortran code this is based upon was last modified 23 January, 1996.
- Author:
- Dr. Allan J. MacLeod
(original Fortran implementation), Martin von Gagern
(Java port)
- See Also:
- MISCFUN
|
Method Summary |
static double |
cl2(double x)
Calculate Clausen's integral. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Clausen
public Clausen()
cl2
public static double cl2(double x)
- Calculate Clausen's integral.
- Parameters:
x - the upper limit of Clausen's integral
- Returns:
- the value of Clausen's integral
- Throws:
ArithmeticException - if |x| is too large so that it is impossible to reduce the argument
to the range [0,2*pi] with any precision
Copyright © 2008 Martin von Gagern. All Rights Reserved.