diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java index 979a6c0f1..6cbcc0160 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java @@ -43,7 +43,7 @@ import org.apache.commons.math4.util.MathArrays; * the responsibility of the caller. For each combination of number of free parameters and * derivation order, only one compiler is necessary, and this compiler will be used to * perform computations on all arrays provided to it, which can represent hundreds or - * thousands of different parameters kept together with all theur partial derivatives. + * thousands of different parameters kept together with all their partial derivatives. *

*

* The arrays on which compilers operate contain only the partial derivatives together @@ -555,7 +555,7 @@ public class DSCompiler { * @param order derivation order * @param sizes sizes array * @param orders derivation orders with respect to each parameter - * (the lenght of this array must match the number of parameters) + * (the length of this array must match the number of parameters) * @return index of the partial derivative * @exception NumberIsTooLargeException if sum of derivation orders is larger * than the instance limits diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java index b4f1457af..eaea818db 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java @@ -46,7 +46,7 @@ import org.apache.commons.math4.util.MathUtils; * methods by this class (+, -, *, /, %, sin, cos ...).

*

Implementing complex expressions by hand using these classes is * a tedious and error-prone task but has the advantage of having no limitation - * on the derivation order despite no requiring users to compute the derivatives by + * on the derivation order despite not requiring users to compute the derivatives by * themselves. Implementing complex expression can also be done by developing computation * code using standard primitive double values and to use {@link * UnivariateFunctionDifferentiator differentiators} to create the {@link