You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/04/05 21:42:20 UTC
[commons-numbers] 05/05: Formatting in ContinuedFraction.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit a23596ae37ccba3657df18f01d02ca4ac5ef5dd3
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sun Apr 5 22:24:16 2020 +0100
Formatting in ContinuedFraction.
Use https for javadoc link.
Wrap the exception message and exception format argument to the same
line.
---
.../apache/commons/numbers/fraction/ContinuedFraction.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ContinuedFraction.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ContinuedFraction.java
index cf04ddb..cd98311 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ContinuedFraction.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ContinuedFraction.java
@@ -20,13 +20,13 @@ import org.apache.commons.numbers.core.Precision;
/**
* Provides a generic means to evaluate
- * <a href="http://mathworld.wolfram.com/ContinuedFraction.html">continued fractions</a>.
+ * <a href="https://mathworld.wolfram.com/ContinuedFraction.html">continued fractions</a>.
* Subclasses must provide the {@link #getA(int,double) a} and {@link #getB(int,double) b}
* coefficients to evaluate the continued fraction.
*/
public abstract class ContinuedFraction {
/**
- * Defines the <a href="http://mathworld.wolfram.com/ContinuedFraction.html">
+ * Defines the <a href="https://mathworld.wolfram.com/ContinuedFraction.html">
* {@code n}-th "a" coefficient</a> of the continued fraction.
*
* @param n Index of the coefficient to retrieve.
@@ -36,7 +36,7 @@ public abstract class ContinuedFraction {
protected abstract double getA(int n, double x);
/**
- * Defines the <a href="http://mathworld.wolfram.com/ContinuedFraction.html">
+ * Defines the <a href="https://mathworld.wolfram.com/ContinuedFraction.html">
* {@code n}-th "b" coefficient</a> of the continued fraction.
*
* @param n Index of the coefficient to retrieve.
@@ -116,12 +116,12 @@ public abstract class ContinuedFraction {
hN = hPrev * deltaN;
if (Double.isInfinite(hN)) {
- throw new FractionException("Continued fraction convergents diverged to +/- infinity for value {0}",
- x);
+ throw new FractionException(
+ "Continued fraction convergents diverged to +/- infinity for value {0}", x);
}
if (Double.isNaN(hN)) {
- throw new FractionException("Continued fraction diverged to NaN for value {0}",
- x);
+ throw new FractionException(
+ "Continued fraction diverged to NaN for value {0}", x);
}
if (Math.abs(deltaN - 1) < epsilon) {