Function Mechatronix::minQuadratic

Function Documentation

inline real_type Mechatronix::minQuadratic(real_type a, real_type fa, real_type Dfa, real_type b, real_type fb)

Find the minum of the parabola \( p(x) = f(a) + f'(a) (x-a) + B (x-a)^2 \) where \( B \) is choosen in such a way \( p(b) = f(b) \)

Parameters
  • a – the value \( a \)

  • fa – the value \( f(a) \)

  • Dfa – the value \( f'(a) \)

  • b – the value \( b \)

  • fb – the value \( f(b) \)

Returns

the minimum found