You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2022/07/27 15:06:09 UTC
[commons-math] 02/03: Use MathJax.
This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit 9946ec4e22a436adc1c2124c11109c8ffbd1a601
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Wed Jul 27 15:49:14 2022 +0200
Use MathJax.
---
.../BicubicInterpolatingFunctionTest.java | 28 ++++++++++++----------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java
index 6a17b44d9..e87a28aec 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java
@@ -174,8 +174,9 @@ public final class BicubicInterpolatingFunctionTest {
/**
* Interpolating a plane.
- * <p>
- * z = 2 x - 3 y + 5
+ * \[
+ * z = 2 x - 3 y + 5
+ * \]
*/
@Test
public void testPlane() {
@@ -232,8 +233,9 @@ public final class BicubicInterpolatingFunctionTest {
/**
* Interpolating a paraboloid.
- * <p>
- * z = 2 x<sup>2</sup> - 3 y<sup>2</sup> + 4 x y - 5
+ * \[
+ * z = 2 x^2 - 3 y^2 + 4 x y - 5
+ * \]
*/
@Test
public void testParaboloid() {
@@ -287,11 +289,12 @@ public final class BicubicInterpolatingFunctionTest {
maxTolerance,
false);
}
-
+
/**
* Test for partial derivatives of {@link BicubicFunction}.
- * <p>
- * f(x, y) = Σ<sub>i</sub>Σ<sub>j</sub> (i+1) (j+2) x<sup>i</sup> y<sup>j</sup>
+ * \[
+ * f(x, y) = \Sigma_i \Sigma_j (i+1) (j+2) x^i y^j
+ * \]
*/
@Test
public void testSplinePartialDerivatives() {
@@ -371,11 +374,12 @@ public final class BicubicInterpolatingFunctionTest {
/**
* Test that the partial derivatives computed from a
* {@link BicubicInterpolatingFunction} match the input data.
- * <p>
- * f(x, y) = 5
- * - 3 x + 2 y
- * - x y + 2 x<sup>2</sup> - 3 y<sup>2</sup>
- * + 4 x<sup>2</sup> y - x y<sup>2</sup> - 3 x<sup>3</sup> + y<sup>3</sup>
+ * \[
+ * f(x, y) = 5
+ * - 3 x + 2 y
+ * - x y + 2 x^2 - 3 y^2
+ * + 4 x^2 y - x y^2 - 3 x^3 + y^3
+ * \]
*/
@Test
public void testMatchingPartialDerivatives() {