This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git.
from aa58ab0 Updated tests to use factory constructors for Statistics distributions new 5460d4d Use "valueOf". new 6e745db Javadoc. new cb5f001 Spurious "throws" clauses. new 39c4767 MATH-1629: Throw "ArithmeticException" instead of "MathArithmeticException". new 21e230a MATH-1630: Runtime switch between JDK and CM implementations of the methods defined in "java.lang.Math". new ea8730a Track changes. new 26708f4 Adapt configuration to class being moved to another package. new 82ab48c Remove non-applicable rules (SpotBugs). new b351676 Add files in new maven module. new 2275353 Class "JdkMath" bridges user code and alternative implementations. new e052d9d Remove methods that were calling the "Math" implementation. The 11 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../LICENCE | 0 .../NOTICE | 0 .../pom.xml | 22 +- .../commons/math4}/core/jdkmath/AccurateMath.java | 193 ++-- .../math4}/core/jdkmath/AccurateMathCalc.java | 10 +- .../core/jdkmath/AccurateMathLiteralArrays.java | 2 +- .../apache/commons/math4/core/jdkmath/JdkMath.java | 1118 ++++++++++++++++++++ .../commons/math4/core/jdkmath}/package-info.java | 5 +- .../commons/math4/core/jdkmath/JdkMathTest.java | 70 ++ commons-math-legacy-core/pom.xml | 5 + .../commons/math4/legacy/core/MathArrays.java | 16 +- .../core/ExtendedFieldElementAbstractTest.java | 78 +- .../commons/math4/legacy/core/MathArraysTest.java | 98 +- .../apache/commons/math4/legacy/core/PairTest.java | 12 +- .../commons/math4/legacy/core/dfp/DfpTest.java | 6 +- .../jdkmath/AccurateMathStrictComparisonTest.java | 9 +- .../legacy/core/jdkmath/AccurateMathTest.java | 71 +- .../analysis/differentiation/DSCompiler.java | 94 +- .../differentiation/DerivativeStructure.java | 22 +- .../FiniteDifferencesDifferentiator.java | 10 +- .../analysis/differentiation/SparseGradient.java | 84 +- .../math4/legacy/analysis/function/Abs.java | 4 +- .../math4/legacy/analysis/function/Acos.java | 4 +- .../math4/legacy/analysis/function/Acosh.java | 4 +- .../math4/legacy/analysis/function/Asin.java | 4 +- .../math4/legacy/analysis/function/Asinh.java | 4 +- .../math4/legacy/analysis/function/Atan.java | 4 +- .../math4/legacy/analysis/function/Atan2.java | 4 +- .../math4/legacy/analysis/function/Atanh.java | 4 +- .../math4/legacy/analysis/function/Cbrt.java | 4 +- .../math4/legacy/analysis/function/Ceil.java | 4 +- .../math4/legacy/analysis/function/Cos.java | 4 +- .../math4/legacy/analysis/function/Cosh.java | 4 +- .../math4/legacy/analysis/function/Exp.java | 4 +- .../math4/legacy/analysis/function/Expm1.java | 4 +- .../math4/legacy/analysis/function/Floor.java | 4 +- .../math4/legacy/analysis/function/Gaussian.java | 8 +- .../analysis/function/HarmonicOscillator.java | 10 +- .../math4/legacy/analysis/function/Log.java | 4 +- .../math4/legacy/analysis/function/Log10.java | 4 +- .../math4/legacy/analysis/function/Log1p.java | 4 +- .../math4/legacy/analysis/function/Logistic.java | 10 +- .../math4/legacy/analysis/function/Logit.java | 6 +- .../math4/legacy/analysis/function/Max.java | 4 +- .../math4/legacy/analysis/function/Min.java | 4 +- .../math4/legacy/analysis/function/Pow.java | 4 +- .../math4/legacy/analysis/function/Power.java | 4 +- .../math4/legacy/analysis/function/Rint.java | 4 +- .../math4/legacy/analysis/function/Sigmoid.java | 8 +- .../math4/legacy/analysis/function/Signum.java | 4 +- .../math4/legacy/analysis/function/Sin.java | 4 +- .../math4/legacy/analysis/function/Sinc.java | 20 +- .../math4/legacy/analysis/function/Sinh.java | 4 +- .../math4/legacy/analysis/function/Sqrt.java | 4 +- .../math4/legacy/analysis/function/Tan.java | 4 +- .../math4/legacy/analysis/function/Tanh.java | 4 +- .../math4/legacy/analysis/function/Ulp.java | 4 +- .../IterativeLegendreGaussIntegrator.java | 12 +- .../analysis/integration/MidPointIntegrator.java | 8 +- .../analysis/integration/RombergIntegrator.java | 6 +- .../analysis/integration/SimpsonIntegrator.java | 6 +- .../analysis/integration/TrapezoidIntegrator.java | 6 +- .../integration/gauss/HermiteRuleFactory.java | 16 +- .../interpolation/AkimaSplineInterpolator.java | 6 +- .../interpolation/InterpolatingMicrosphere.java | 6 +- .../interpolation/InterpolatingMicrosphere2D.java | 6 +- .../analysis/interpolation/LoessInterpolator.java | 12 +- .../analysis/polynomials/PolynomialFunction.java | 16 +- .../PolynomialFunctionLagrangeForm.java | 4 +- .../analysis/polynomials/PolynomialsUtils.java | 8 +- .../legacy/analysis/solvers/BaseSecantSolver.java | 6 +- .../legacy/analysis/solvers/BisectionSolver.java | 4 +- .../solvers/BracketingNthOrderBrentSolver.java | 14 +- .../legacy/analysis/solvers/LaguerreSolver.java | 14 +- .../legacy/analysis/solvers/MullerSolver.java | 20 +- .../legacy/analysis/solvers/MullerSolver2.java | 24 +- .../analysis/solvers/NewtonRaphsonSolver.java | 4 +- .../legacy/analysis/solvers/RiddersSolver.java | 18 +- .../legacy/analysis/solvers/SecantSolver.java | 6 +- .../analysis/solvers/UnivariateSolverUtils.java | 18 +- .../distribution/AbstractIntegerDistribution.java | 12 +- .../distribution/AbstractRealDistribution.java | 10 +- .../legacy/distribution/EmpiricalDistribution.java | 4 +- .../MultivariateNormalDistribution.java | 12 +- ...ariateNormalMixtureExpectationMaximization.java | 8 +- .../math4/legacy/fitting/GaussianCurveFitter.java | 4 +- .../math4/legacy/fitting/HarmonicCurveFitter.java | 12 +- .../fitting/leastsquares/AbstractEvaluation.java | 8 +- .../fitting/leastsquares/LeastSquaresFactory.java | 4 +- .../leastsquares/LevenbergMarquardtOptimizer.java | 54 +- .../legacy/genetics/ElitisticListPopulation.java | 4 +- .../math4/legacy/genetics/OrderedCrossover.java | 6 +- .../math4/legacy/linear/AbstractRealMatrix.java | 8 +- .../math4/legacy/linear/ArrayRealVector.java | 20 +- .../math4/legacy/linear/BiDiagonalTransformer.java | 12 +- .../math4/legacy/linear/BlockFieldMatrix.java | 94 +- .../math4/legacy/linear/BlockRealMatrix.java | 100 +- .../math4/legacy/linear/CholeskyDecomposition.java | 8 +- .../math4/legacy/linear/DiagonalMatrix.java | 4 +- .../math4/legacy/linear/EigenDecomposition.java | 64 +- .../math4/legacy/linear/HessenbergTransformer.java | 6 +- .../math4/legacy/linear/LUDecomposition.java | 8 +- .../commons/math4/legacy/linear/MatrixUtils.java | 10 +- .../legacy/linear/OpenIntToDoubleHashMap.java | 4 +- .../math4/legacy/linear/OpenIntToFieldHashMap.java | 4 +- .../math4/legacy/linear/OpenMapRealVector.java | 14 +- .../math4/legacy/linear/QRDecomposition.java | 24 +- .../math4/legacy/linear/RRQRDecomposition.java | 4 +- .../commons/math4/legacy/linear/RealVector.java | 14 +- .../linear/RectangularCholeskyDecomposition.java | 4 +- .../math4/legacy/linear/SchurTransformer.java | 34 +- .../legacy/linear/SingularValueDecomposition.java | 52 +- .../apache/commons/math4/legacy/linear/SymmLQ.java | 38 +- .../legacy/linear/TriDiagonalTransformer.java | 4 +- .../legacy/ml/clustering/FuzzyKMeansClusterer.java | 16 +- .../math4/legacy/ml/distance/CanberraDistance.java | 6 +- .../legacy/ml/distance/EarthMoversDistance.java | 4 +- .../math4/legacy/ode/AbstractFieldIntegrator.java | 8 +- .../math4/legacy/ode/AbstractIntegrator.java | 8 +- .../legacy/ode/ContinuousOutputFieldModel.java | 8 +- .../math4/legacy/ode/ContinuousOutputModel.java | 14 +- .../commons/math4/legacy/ode/JacobianMatrices.java | 2 +- .../math4/legacy/ode/MultistepFieldIntegrator.java | 6 +- .../math4/legacy/ode/MultistepIntegrator.java | 8 +- .../math4/legacy/ode/events/EventState.java | 22 +- .../math4/legacy/ode/events/FieldEventState.java | 8 +- .../math4/legacy/ode/events/Transformer.java | 6 +- .../ode/nonstiff/AdamsBashforthIntegrator.java | 6 +- .../ode/nonstiff/AdamsMoultonIntegrator.java | 6 +- .../nonstiff/AdaptiveStepsizeFieldIntegrator.java | 10 +- .../ode/nonstiff/AdaptiveStepsizeIntegrator.java | 30 +- .../ode/nonstiff/DormandPrince54Integrator.java | 6 +- .../ode/nonstiff/DormandPrince853Integrator.java | 46 +- .../ode/nonstiff/EmbeddedRungeKuttaIntegrator.java | 12 +- .../math4/legacy/ode/nonstiff/GillIntegrator.java | 8 +- .../legacy/ode/nonstiff/GillStepInterpolator.java | 6 +- .../ode/nonstiff/GraggBulirschStoerIntegrator.java | 50 +- .../GraggBulirschStoerStepInterpolator.java | 6 +- .../ode/nonstiff/HighamHall54Integrator.java | 6 +- .../legacy/ode/nonstiff/LutherIntegrator.java | 4 +- .../ode/nonstiff/LutherStepInterpolator.java | 4 +- .../legacy/ode/nonstiff/RungeKuttaIntegrator.java | 4 +- .../legacy/ode/sampling/FieldStepNormalizer.java | 6 +- .../ode/sampling/NordsieckStepInterpolator.java | 4 +- .../math4/legacy/ode/sampling/StepNormalizer.java | 6 +- .../math4/legacy/optim/SimplePointChecker.java | 6 +- .../math4/legacy/optim/SimpleValueChecker.java | 6 +- .../legacy/optim/SimpleVectorValueChecker.java | 6 +- .../math4/legacy/optim/linear/SimplexSolver.java | 4 +- .../scalar/MultivariateFunctionMappingAdapter.java | 10 +- .../scalar/MultivariateFunctionPenaltyAdapter.java | 4 +- .../nonlinear/scalar/noderiv/BOBYQAOptimizer.java | 140 +-- .../nonlinear/scalar/noderiv/CMAESOptimizer.java | 46 +- .../nonlinear/scalar/noderiv/PowellOptimizer.java | 8 +- .../legacy/optim/univariate/BracketFinder.java | 4 +- .../legacy/optim/univariate/BrentOptimizer.java | 16 +- .../univariate/SimpleUnivariateValueChecker.java | 6 +- .../legacy/random/CorrelatedVectorFactory.java | 4 +- .../legacy/random/SobolSequenceGenerator.java | 4 +- .../commons/math4/legacy/special/BesselJ.java | 26 +- .../stat/correlation/KendallsCorrelation.java | 8 +- .../stat/correlation/PearsonsCorrelation.java | 10 +- .../stat/descriptive/DescriptiveStatistics.java | 6 +- .../descriptive/MultivariateSummaryStatistics.java | 4 +- .../stat/descriptive/ResizableDoubleArray.java | 8 +- .../stat/descriptive/StatisticalSummaryValues.java | 4 +- .../legacy/stat/descriptive/SummaryStatistics.java | 6 +- .../stat/descriptive/moment/GeometricMean.java | 6 +- .../legacy/stat/descriptive/moment/Kurtosis.java | 10 +- .../legacy/stat/descriptive/moment/Skewness.java | 6 +- .../stat/descriptive/moment/StandardDeviation.java | 12 +- .../legacy/stat/descriptive/rank/KthSelector.java | 6 +- .../legacy/stat/descriptive/rank/Percentile.java | 12 +- .../legacy/stat/descriptive/summary/Product.java | 4 +- .../legacy/stat/descriptive/summary/SumOfLogs.java | 8 +- .../math4/legacy/stat/inference/ChiSquareTest.java | 6 +- .../commons/math4/legacy/stat/inference/GTest.java | 14 +- .../stat/inference/KolmogorovSmirnovTest.java | 52 +- .../legacy/stat/inference/MannWhitneyUTest.java | 6 +- .../commons/math4/legacy/stat/inference/TTest.java | 14 +- .../stat/inference/WilcoxonSignedRankTest.java | 8 +- .../legacy/stat/interval/AgrestiCoullInterval.java | 6 +- .../stat/interval/NormalApproximationInterval.java | 4 +- .../legacy/stat/interval/WilsonScoreInterval.java | 4 +- .../math4/legacy/stat/ranking/NaturalRanking.java | 6 +- .../AbstractMultipleLinearRegression.java | 6 +- .../stat/regression/MillerUpdatingRegression.java | 30 +- .../legacy/stat/regression/RegressionResults.java | 6 +- .../legacy/stat/regression/SimpleRegression.java | 18 +- .../org/apache/commons/math4/legacy/TestUtils.java | 4 +- .../math4/legacy/analysis/FunctionUtilsTest.java | 26 +- .../differentiation/DerivativeStructureTest.java | 182 ++-- .../FiniteDifferencesDifferentiatorTest.java | 44 +- .../differentiation/GradientFunctionTest.java | 4 +- .../differentiation/JacobianFunctionTest.java | 18 +- .../differentiation/SparseGradientTest.java | 126 +-- .../analysis/function/BivariateFunctionTest.java | 4 +- .../legacy/analysis/function/GaussianTest.java | 6 +- .../analysis/function/HarmonicOscillatorTest.java | 20 +- .../legacy/analysis/function/LogisticTest.java | 12 +- .../math4/legacy/analysis/function/LogitTest.java | 4 +- .../math4/legacy/analysis/function/SincTest.java | 4 +- .../math4/legacy/analysis/function/SqrtTest.java | 8 +- .../UnivariateDifferentiableFunctionTest.java | 76 +- .../analysis/function/UnivariateFunctionTest.java | 4 +- .../IterativeLegendreGaussIntegratorTest.java | 18 +- .../integration/MidPointIntegratorTest.java | 20 +- .../integration/RombergIntegratorTest.java | 16 +- .../integration/SimpsonIntegratorTest.java | 36 +- .../integration/TrapezoidIntegratorTest.java | 16 +- .../gauss/GaussianQuadratureAbstractTest.java | 4 +- .../integration/gauss/HermiteParametricTest.java | 4 +- .../analysis/integration/gauss/HermiteTest.java | 10 +- .../analysis/integration/gauss/LaguerreTest.java | 4 +- .../interpolation/AkimaSplineInterpolatorTest.java | 4 +- .../BicubicInterpolatingFunctionTest.java | 4 +- .../DividedDifferenceInterpolatorTest.java | 20 +- .../FieldHermiteInterpolatorTest.java | 14 +- .../interpolation/HermiteInterpolatorTest.java | 30 +- .../interpolation/LoessInterpolatorTest.java | 18 +- .../MicrosphereProjectionInterpolatorTest.java | 6 +- .../interpolation/NevilleInterpolatorTest.java | 20 +- ...wiseBicubicSplineInterpolatingFunctionTest.java | 4 +- .../interpolation/SplineInterpolatorTest.java | 22 +- .../TricubicInterpolatingFunctionTest.java | 20 +- .../interpolation/TricubicInterpolatorTest.java | 4 +- .../UnivariatePeriodicInterpolatorTest.java | 8 +- .../polynomials/PolynomialFunctionTest.java | 10 +- .../analysis/polynomials/PolynomialsUtilsTest.java | 18 +- .../solvers/BaseSecantSolverAbstractTest.java | 6 +- .../analysis/solvers/BisectionSolverTest.java | 8 +- .../legacy/analysis/solvers/BrentSolverTest.java | 22 +- .../analysis/solvers/LaguerreSolverTest.java | 34 +- .../legacy/analysis/solvers/MullerSolver2Test.java | 36 +- .../legacy/analysis/solvers/MullerSolverTest.java | 36 +- .../analysis/solvers/NewtonRaphsonSolverTest.java | 6 +- .../analysis/solvers/RegulaFalsiSolverTest.java | 4 +- .../legacy/analysis/solvers/RiddersSolverTest.java | 36 +- .../solvers/UnivariateSolverUtilsTest.java | 6 +- .../distribution/EmpiricalDistributionTest.java | 8 +- .../EnumeratedIntegerDistributionTest.java | 4 +- .../EnumeratedRealDistributionTest.java | 4 +- .../IntegerDistributionAbstractTest.java | 4 +- .../distribution/RealDistributionAbstractTest.java | 8 +- .../field/ExtendedFieldElementAbstractTest.java | 78 +- .../math4/legacy/filter/KalmanFilterTest.java | 26 +- .../legacy/fitting/HarmonicCurveFitterTest.java | 4 +- .../legacy/fitting/PolynomialCurveFitterTest.java | 22 +- .../AbstractLeastSquaresOptimizerAbstractTest.java | 14 +- .../fitting/leastsquares/BevingtonProblem.java | 14 +- .../legacy/fitting/leastsquares/CircleProblem.java | 6 +- ...atorVectorMultivariateJacobianFunctionTest.java | 6 +- .../fitting/leastsquares/EvaluationTest.java | 10 +- .../leastsquares/EvaluationTestValidation.java | 4 +- .../GaussNewtonOptimizerWithSVDTest.java | 4 +- .../LevenbergMarquardtOptimizerTest.java | 8 +- .../legacy/fitting/leastsquares/MinpackTest.java | 80 +- .../leastsquares/RandomCirclePointGenerator.java | 6 +- .../StatisticalReferenceDatasetFactory.java | 22 +- .../legacy/genetics/FixedElapsedTimeTest.java | 4 +- .../genetics/GeneticAlgorithmTestPermutations.java | 4 +- .../legacy/linear/Array2DRowRealMatrixTest.java | 6 +- .../legacy/linear/BiDiagonalTransformerTest.java | 10 +- .../commons/math4/legacy/linear/BigRealTest.java | 10 +- .../math4/legacy/linear/BlockRealMatrixTest.java | 6 +- .../math4/legacy/linear/ConjugateGradientTest.java | 20 +- .../legacy/linear/EigenDecompositionTest.java | 20 +- .../legacy/linear/RealVectorAbstractTest.java | 28 +- .../commons/math4/legacy/linear/SymmLQTest.java | 20 +- .../legacy/linear/TriDiagonalTransformerTest.java | 4 +- .../linear/UnmodifiableRealVectorAbstractTest.java | 12 +- .../legacy/ml/distance/EuclideanDistanceTest.java | 4 +- .../legacy/ode/ContinuousOutputFieldModelTest.java | 18 +- .../legacy/ode/ContinuousOutputModelTest.java | 22 +- .../math4/legacy/ode/FirstOrderConverterTest.java | 20 +- .../math4/legacy/ode/JacobianMatricesTest.java | 46 +- .../math4/legacy/ode/TestFieldProblem4.java | 10 +- .../commons/math4/legacy/ode/TestProblem1.java | 4 +- .../commons/math4/legacy/ode/TestProblem2.java | 4 +- .../commons/math4/legacy/ode/TestProblem3.java | 20 +- .../commons/math4/legacy/ode/TestProblem4.java | 18 +- .../math4/legacy/ode/TestProblemHandler.java | 18 +- .../math4/legacy/ode/events/EventFilterTest.java | 52 +- ...tractEmbeddedRungeKuttaFieldIntegratorTest.java | 12 +- .../AbstractRungeKuttaFieldIntegratorTest.java | 16 +- .../ode/nonstiff/AdamsBashforthIntegratorTest.java | 8 +- .../nonstiff/AdamsFieldIntegratorAbstractTest.java | 4 +- .../ode/nonstiff/AdamsMoultonIntegratorTest.java | 8 +- .../ClassicalRungeKuttaIntegratorTest.java | 18 +- .../math4/legacy/ode/nonstiff/Decimal64.java | 76 +- .../nonstiff/DormandPrince54IntegratorTest.java | 12 +- .../DormandPrince54StepInterpolatorTest.java | 6 +- .../nonstiff/DormandPrince853IntegratorTest.java | 18 +- .../DormandPrince853StepInterpolatorTest.java | 6 +- ...eddedRungeKuttaFieldIntegratorAbstractTest.java | 12 +- .../legacy/ode/nonstiff/EulerIntegratorTest.java | 10 +- .../ode/nonstiff/EulerStepInterpolatorTest.java | 20 +- .../legacy/ode/nonstiff/GillIntegratorTest.java | 10 +- .../nonstiff/GraggBulirschStoerIntegratorTest.java | 16 +- .../GraggBulirschStoerStepInterpolatorTest.java | 6 +- .../ode/nonstiff/HighamHall54IntegratorTest.java | 4 +- .../nonstiff/HighamHall54StepInterpolatorTest.java | 6 +- .../legacy/ode/nonstiff/LutherIntegratorTest.java | 14 +- .../ode/nonstiff/MidpointIntegratorTest.java | 10 +- .../RungeKuttaFieldIntegratorAbstractTest.java | 16 +- ...ungeKuttaFieldStepInterpolatorAbstractTest.java | 14 +- .../ode/nonstiff/ThreeEighthesIntegratorTest.java | 10 +- .../ode/sampling/DummyStepInterpolatorTest.java | 10 +- .../ode/sampling/StepInterpolatorTestUtils.java | 6 +- .../legacy/ode/sampling/StepNormalizerTest.java | 4 +- .../scalar/noderiv/CMAESOptimizerTest.java | 8 +- .../nonlinear/scalar/noderiv/OptimTestUtils.java | 8 +- .../scalar/noderiv/PowellOptimizerTest.java | 4 +- .../SimplexOptimizerMultiDirectionalTest.java | 4 +- .../optim/univariate/BrentOptimizerTest.java | 4 +- .../MultiStartUnivariateOptimizerTest.java | 6 +- .../legacy/random/CorrelatedVectorFactoryTest.java | 8 +- .../commons/math4/legacy/stat/StatUtilsTest.java | 18 +- .../stat/correlation/PearsonsCorrelationTest.java | 4 +- .../MultivariateSummaryStatisticsTest.java | 6 +- .../StorelessUnivariateStatisticAbstractTest.java | 4 +- .../stat/descriptive/SummaryStatisticsTest.java | 6 +- .../UnivariateStatisticAbstractTest.java | 6 +- .../descriptive/moment/StandardDeviationTest.java | 4 +- .../descriptive/rank/PSquarePercentileTest.java | 10 +- .../math4/legacy/stat/inference/GTestTest.java | 20 +- .../stat/inference/InferenceTestUtilsTest.java | 20 +- .../stat/inference/KolmogorovSmirnovTestTest.java | 4 +- .../regression/MillerUpdatingRegressionTest.java | 124 +-- .../stat/regression/SimpleRegressionTest.java | 30 +- .../legacy/util/ComplexFormatAbstractTest.java | 4 +- .../RealFunctionValidation.java | 8 +- pom.xml | 7 + src/changes/changes.xml | 4 + .../checkstyle/checkstyle-suppressions.xml | 2 +- .../resources/spotbugs/spotbugs-exclude-filter.xml | 20 +- 336 files changed, 3767 insertions(+), 2637 deletions(-) copy {commons-math-transform => commons-math-core}/LICENCE (100%) copy {commons-math-transform => commons-math-core}/NOTICE (100%) copy {commons-math-neuralnet => commons-math-core}/pom.xml (70%) rename {commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy => commons-math-core/src/main/java/org/apache/commons/math4}/core/jdkmath/AccurateMath.java (95%) rename {commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy => commons-math-core/src/main/java/org/apache/commons/math4}/core/jdkmath/AccurateMathCalc.java (98%) rename {commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy => commons-math-core/src/main/java/org/apache/commons/math4}/core/jdkmath/AccurateMathLiteralArrays.java (99%) create mode 100644 commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java copy {commons-math-examples/examples-sofm/src/main/java/org/apache/commons/math4/examples/neuralnet/sofm/tsp => commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath}/package-info.java (86%) create mode 100644 commons-math-core/src/test/java/org/apache/commons/math4/core/jdkmath/JdkMathTest.java