/src/main/java/net/finmath/interpolation/RationalFunctionInterpolation.java
derivative[numberOfPoints-7] = 0.5 * ( 3 * slope[numberOfPoints-2] - slope[numberOfPoints-3]) ;
derivative[numberOfPoints-1] = 0.5 * ( 3 * slope[numberOfPoints-2] - slope[numberOfPoints-3] ) ;
} else{ derivative[numberOfPoints-2] = (absSlopeDifference[numberOfPoints-3] * slope[numberOfPoints-3] + absSlopeDifference[numberOfPoints-4] * slope[numberOfPoints-2]) / (absSlopeDifference[numberOfPoints-3] + absSlopeDifference[numberOfPoints-4]); } <extra_id_0> for(int i = 2; i < numberOfPoints-2; i++){ if( (absSlopeDifference[i] == 0) && (absSlopeDifference[i-2] == 0) ){ derivative[i] = (step[i] * slope[i-1] + step[i-1] * slope[i]) / (step[i-1] + step[i]); } else{ derivative[i] =