Function Mechatronix::minModel

Function Documentation

real_type Mechatronix::minModel(real_type f0, real_type Df0, real_type l, real_type fl, real_type p, real_type fp, real_type smin)

find the minimum of a model curve passing by 3 points and 1 tangen

Parameters
  • f0 – the value \( f(0) \)

  • Df0 – the value \( f'(0) \)

  • l – the value \( l \)

  • fl – the value \( f(l) \)

  • p – the value \( p \)

  • fp – the value \( f(p) \)

  • smin – the value \( s_{\min} \)

Returns

-1 = minimum on the left 0 = minimum on cubic 1 = minimum on cubic 2 = minimum on cubic