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 2023/09/07 17:03:32 UTC
[commons-math] branch master updated: Correct code example
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-math.git
The following commit(s) were added to refs/heads/master by this push:
new 8ea48b398 Correct code example
8ea48b398 is described below
commit 8ea48b398ed377ca77f7fde861b73306ee8e1358
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Sep 7 18:03:18 2023 +0100
Correct code example
---
.../commons/math4/legacy/analysis/RealFieldUnivariateFunction.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/RealFieldUnivariateFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/RealFieldUnivariateFunction.java
index 5c0a9a390..1f9a36692 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/RealFieldUnivariateFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/RealFieldUnivariateFunction.java
@@ -34,16 +34,19 @@ import org.apache.commons.math4.legacy.core.RealFieldElement;
* // The x value that caused the problem.
* private final SomeFieldType x;
*
- * public LocalException(SomeFieldType x) {
+ * LocalException(SomeFieldType x) {
* this.x = x;
* }
*
- * public double getX() {
+ * SomeFieldType getX() {
* return x;
* }
* }
*
* private static class MyFunction implements FieldUnivariateFunction<SomeFieldType> {
+ *
+ * // ... function set-up
+ *
* public SomeFieldType value(SomeFieldType x) {
* SomeFieldType y = hugeFormula(x);
* if (somethingBadHappens) {