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

View source: R/utility.R

quad_pos_solveR 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


TheoMichelot/hmmTMB documentation built on Dec. 13, 2024, 11:52 a.m.