quad_pos_solve function

Solve for positive root of quadratic ax^2 + bx + c = 0 when it exists

Solve for positive root of quadratic ax^2 + bx + c = 0 when it exists

quad_pos_solve(a, b, c)

Arguments

  • a: coefficient of x^2
  • b: coefficient of x
  • c: scalar coefficient

Returns

real positive root if it exists

Other functions in hmmTMB

Related functions from the same R package