solv.2dg.polynom: Real solutions of quadratic equation

Description Usage Arguments Details Value Examples

View source: R/solv.2dg.polynom.R

Description

Computes real solutions of quadratic equation

Usage

1
solv.2dg.polynom(a_fun,b_fun,c_fun)

Arguments

a_fun

Numeric. The quadratic coefficient applied to x^2

b_fun

Numeric. The linear coefficient applied to x

c_fun

Numeric. The free term

Details

Quadratic equation is a second-degree polynomial equation of type a x^2 + b x + c = 0, where a is the quadratic coefficient, b the linear coefficient and c the free term.

Value

Three possible vectors:

Examples

1
2
3
4
5
6
7
8
solv.2dg.polynom(3,2,1)
#result : NULL

solv.2dg.polynom(1,2,1)
#result : -1

solv.2dg.polynom(1,0,-1)
#result : c(1,-1)

SimEvolEnzCons documentation built on Oct. 29, 2021, 1:07 a.m.