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