Learn R Programming

hmmTMB (version 1.0.2)

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

Description

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

Usage

quad_pos_solve(a, b, c)

Value

real positive root if it exists

Arguments

a

coefficient of x^2

b

coefficient of x

c

scalar coefficient