public static double quadratic( double f0 , double g0 , double x0 , double f1 , double x1 ) {

		return x0 + ((g0/((f0-f1)/(x1-x0)+g0))/2.0)*(x1-x0);
	}
public static double quadratic ( double f0 , double g0 , double x0 , double f1 , double x1 ) { return x0 + ( ( g0 / ( ( f0 - f1 ) / ( x1 - x0 ) + g0 ) ) / 2.0 ) * ( x1 - x0 ) ; }
<p>
Quadratic interpolation using two function values and one derivative.
</p>

@param f0 Value of f(x0)
@param g0 Derivative f'(x0)
@param x0 First sample point
@param f1 Value of f(x1)
@param x1 Second sample point
@return Interpolated point