Learn R Programming

chemdeg (version 0.1.2)

f_gen: Formula of an n-order model.

Description

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)

Value

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

Arguments

n

reaction order

Examples

Run this code
nc <- 2
f_gen(nc)

f_gen(1)

Run the code above in your browser using DataLab