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