Removed usage of MathJax where not strictly necessary (Javadoc).
Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/13facdc2 Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/13facdc2 Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/13facdc2 Branch: refs/heads/master Commit: 13facdc210893a886390cf94dd6f3f7562da1bbe Parents: 851b17e Author: Gilles Sadowski <gil...@harfang.homelinux.org> Authored: Tue May 9 14:28:41 2017 +0200 Committer: Gilles Sadowski <gil...@harfang.homelinux.org> Committed: Tue May 9 14:28:41 2017 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/commons/numbers/gamma/Digamma.java | 7 ++++--- .../java/org/apache/commons/numbers/gamma/InvGamma1pm1.java | 2 +- .../apache/commons/numbers/gamma/LanczosApproximation.java | 2 +- .../main/java/org/apache/commons/numbers/gamma/LogGamma.java | 7 +++---- .../main/java/org/apache/commons/numbers/gamma/Trigamma.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java ---------------------------------------------------------------------- diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java index 32d7bf5..7cff6ca 100644 --- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java +++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java @@ -46,12 +46,13 @@ public class Digamma { * reflection formula</a> is incorporated to improve performance on negative values. * * Some of the constants have been changed to increase accuracy at the moderate - * expense of run-time. The result should be accurate to within \( 10^{-8} \) - * relative tolerance for \( 0 < x < 10^{-5} \) and within \( 10^{-8} \) absolute + * expense of run-time. The result should be accurate to within {@code 1e-8}. + * relative tolerance for {@code 0 < x < 1e-5} and within {@code 1e-8} absolute * tolerance otherwise. * * @param x Argument. - * @return digamma(x) to within \( 10^{-8} \) relative or absolute error whichever is larger. + * @return digamma(x) to within {@code 1e-8} relative or absolute error whichever + * is larger. */ public double value(double x) { if (Double.isNaN(x) || Double.isInfinite(x)) { http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java ---------------------------------------------------------------------- diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java index 77203a0..43bfe2e 100644 --- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java +++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java @@ -101,7 +101,7 @@ class InvGamma1pm1 { private static final double INV_GAMMA1P_M1_C13 = -.205633841697760710345015413002057E-06; /** - * Computes the function \( \frac{1}{\Gamma(1 + x)} - 1 \) for \( -0.5 \leq x \leq 1.5 \). + * Computes the function \( \frac{1}{\Gamma(1 + x)} - 1 \) for {@code -0.5 <= x <= 1.5}. * * This implementation is based on the double precision implementation in * the <em>NSWC Library of Mathematics Subroutines</em>, {@code DGAM1}. http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java ---------------------------------------------------------------------- diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java index e21bc54..e974566 100644 --- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java +++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java @@ -25,7 +25,7 @@ package org.apache.commons.numbers.gamma; * \Gamma(x) = \sqrt{2\pi} \, \frac{(g + x + \frac{1}{2})^{x + \frac{1}{2}} \, e^{-(g + x + \frac{1}{2})} \, \mathrm{lanczos}(x)} * {x} * \] - * where \(g\) is the Lanczos constant. + * where \( g \) is the Lanczos constant. * * @see equations (1) through (5), and Paul Godfrey's * <a href="http://my.fit.edu/~gabdo/gamma.txt">Note on the computation http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java ---------------------------------------------------------------------- diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java index e4fac6e..6c2dd08 100644 --- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java +++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java @@ -34,12 +34,11 @@ public class LogGamma { private static final LogGamma1p LOG_GAMMA_1P = LogGamma1p.instance; /** - * Computes the function \( \ln \Gamma(x) \) for \( x > 0 \). + * Computes the function \( \ln \Gamma(x) \) for {@code x >= 0}. * - * For \( x \leq 8 \), the implementation is based on the double precision + * For {@code x <= 8}, the implementation is based on the double precision * implementation in the <em>NSWC Library of Mathematics Subroutines</em>, - * {@code DGAMLN}. For \( x \geq 8 \), the implementation is based on - * + * {@code DGAMLN}. For {@code x >= 8}, the implementation is based on * <ul> * <li><a href="http://mathworld.wolfram.com/GammaFunction.html">Gamma * Function</a>, equation (28).</li> http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java ---------------------------------------------------------------------- diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java index 8b1c277..a204cb7 100644 --- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java +++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java @@ -38,7 +38,7 @@ public class Trigamma { * Computes the trigamma function. * * @param x Argument. - * @return trigamma(x) to within \( 10^{-8} \) relative or absolute error whichever is larger. + * @return trigamma(x) to within {@code 1e-8} relative or absolute error whichever is larger. */ public double value(double x) { if (Double.isNaN(x) || Double.isInfinite(x)) {