Correct code example

This commit is contained in:
aherbert 2023-09-07 18:03:18 +01:00
parent 9e02432e06
commit 8ea48b398e
1 changed files with 5 additions and 2 deletions

View File

@ -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) {