/src/main/java/net/finmath/interpolation/RationalFunctionInterpolation.java
numeratorPolynomCoeff[1] = derivative[i];numeratortorPolynomCoeff[2] = secondDerivativeVector[i] / 2;
numeratortorPolynomCoeff[2] = secondDerivativeVector[i] / 2;
secondDerivativeVector = LinearAlgebra.solveLinearEquationSymmetric(secondDerivativeMarix, v); interpolatingRationalFunctions = new RationalFunction[numberOfPoints-1]; for(int i = 0; i < numberOfPoints-1; i++ ) { final double[] numeratortorPolynomCoeff = new double[4]; numeratortorPolynomCoeff[0] = values[i]; numeratortorPolynomCoeff[1] = (values[i+1] - values[i])/step[i] - (secondDerivativeVector[i+1] + 2*secondDerivativeVector[i])*step[i]/6; <extra_id_0> numeratortorPolynomCoeff[3] = (secondDerivativeVector[i+1] - secondDerivativeVector[i]) / (6*step[i]); interpolatingRationalFunctions[i] = new RationalFunction(numeratortorPolynomCoeff); } } private void doCreateRationalFunctionsForAkimaInterpolation() {