Function Mechatronix::minQuadratic2

Function Documentation

inline real_type Mechatronix::minQuadratic2(real_type a, real_type Dfa, real_type b, real_type Dfb)

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

Parameters
  • a – the value \( a \)

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

  • b – the value \( b \)

  • Dfb – the value \( f'(b) \)

Returns

the minimum found