quad_pos_solve {hmmTMB}R Documentation

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)

Arguments

a

coefficient of x^2

b

coefficient of x

c

scalar coefficient

Value

real positive root if it exists


[Package hmmTMB version 1.0.2 Index]