quad_roots: Function to Solve Quadratic Equations

Description Usage Arguments Value Examples

View source: R/quad_roots_function.R

Description

Finds the positive root of a quadratic equation ax^2 + bx + c .

Usage

1
quad_roots(a, b, c)

Arguments

a

the coefficient for x^2

b

the coefficient for x

c

the constant

Value

The positive root of the quadratic equation ax^2 + bx + c

Examples

1
2
3
pw<-power.calc(N=c(1000,2000), Case.Rate=c(0.5), 
	k=NULL, MAF=seq(0.05, 0.1, 0.01), OR=c(3,4),
	Alpha=c(0.05), True.Model='All', Test.Model='All')

genpwr documentation built on March 31, 2021, 1:06 a.m.