Skip to contents

Given the reaction order \(n\) , the function returns the equation corresponding to that particular n^th^-order kinetic model. For \(n\neq 1\): $$y(t)=((n-1)\,k\,t+y_0^{1-n}))^{\frac{1}{n-1}}$$ for \(n=1\): $$y(t)=y_0\,e^{-k\,t}$$

Usage

f_gen(n)

Arguments

n

reaction order

Value

A formula object containing the equation of the selected n^th^ order kinetic model.

Examples

nc <- 2
f_gen(nc)
#> y ~ (1 * (k * t + (y0^(-1))/1))^-1
#> <environment: 0x557aae2b6a40>

f_gen(1)
#> y ~ y0 * exp(-k * t)
#> <environment: 0x557aae23c218>