/src/main/java/net/finmath/interpolation/RationalFunctionInterpolation.java
numeratortorPolynomCoeff[1] = derivative[i];numeratortorPolynomCoeff[0] = values[i];
numeratortorPolynomCoeff[0] = values[i];
secondDerivativeMarix[numberOfPoints-2][numberOfPoints-1] = secondDerivativeMarix[numberOfPoints-1][numberOfPoints-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]; <extra_id_0> numeratortorPolynomCoeff[1] = (values[i+1] - values[i])/step[i] - (secondDerivativeVector[i+1] + 2*secondDerivativeVector[i])*step[i]/6; numeratortorPolynomCoeff[2] = secondDerivativeVector[i] / 2; numeratortorPolynomCoeff[3] = (secondDerivativeVector[i+1] - secondDerivativeVector[i]) / (6*step[i]); interpolatingRationalFunctions[i] = new RationalFunction(numeratortorPolynomCoeff); } }