mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 10:09:26 +00:00
added missing since tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@778092 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9989286b49
commit
879d61962b
@ -33,7 +33,10 @@ public class Gamma implements Serializable {
|
|||||||
/** Serializable version identifier */
|
/** Serializable version identifier */
|
||||||
private static final long serialVersionUID = -6587513359895466954L;
|
private static final long serialVersionUID = -6587513359895466954L;
|
||||||
|
|
||||||
/** <a href="http://en.wikipedia.org/wiki/Euler-Mascheroni_constant">Euler-Mascheroni constant</a> */
|
/**
|
||||||
|
* <a href="http://en.wikipedia.org/wiki/Euler-Mascheroni_constant">Euler-Mascheroni constant</a>
|
||||||
|
* @since 2.0
|
||||||
|
*/
|
||||||
public static final double GAMMA = 0.577215664901532860606512090082;
|
public static final double GAMMA = 0.577215664901532860606512090082;
|
||||||
|
|
||||||
/** Maximum allowed numerical error. */
|
/** Maximum allowed numerical error. */
|
||||||
@ -284,8 +287,10 @@ public class Gamma implements Serializable {
|
|||||||
* <p> Performance for large negative values of x will be quite expensive (proportional to
|
* <p> Performance for large negative values of x will be quite expensive (proportional to
|
||||||
* |x|). Accuracy for negative values of x should be about 10^-8 absolute for results
|
* |x|). Accuracy for negative values of x should be about 10^-8 absolute for results
|
||||||
* less than 10^5 and 10^-8 relative for results larger than that.
|
* less than 10^5 and 10^-8 relative for results larger than that.
|
||||||
|
*
|
||||||
* @param x argument
|
* @param x argument
|
||||||
* @return value of the digamma function
|
* @return value of the digamma function
|
||||||
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
public static double digamma(double x) {
|
public static double digamma(double x) {
|
||||||
if (x > 0 && x <= S_LIMIT) {
|
if (x > 0 && x <= S_LIMIT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user