HAMA-760: add the calculateDerivative to DoubleFunction