first and second derivatives generates at kernel file if the method is newton rampston