/src/main/java/net/finmath/interpolation/RationalFunctionInterpolation.java
derivative[numberOfPoints-1] = 3 * values[numberOfPoints-2];
derivative[numberOfPoints-1] = 3 * slope[numberOfPoints-2];
} if( derivative[0]*slope[0] <= 0 ) { derivative[0] = 0; } if((derivative[numberOfPoints-1]*slope[numberOfPoints-2] > 0) && (slope[numberOfPoints-2]*slope[numberOfPoints-3] <= 0) && (Math.abs(derivative[numberOfPoints-1]) < 3*Math.abs(slope[numberOfPoints-2]))) { <extra_id_0> } if( derivative[numberOfPoints-1]*slope[numberOfPoints-2] <= 0 ) { derivative[numberOfPoints-1] = 0; } } for(int i = 1; i < numberOfPoints-1; i++){