Derv {EleChemr} | R Documentation |
Derivative calculation of concentration profile
Description
Return a the derivative of the concentration profile simulated
Usage
Derv(
npoints = 2,
h,
Ox,
mode = "Forward",
Derivative = "First",
CoefMat = FALSE
)
Arguments
npoints |
number of points to be used for the derivative |
h |
space for the finite difference |
Ox |
data upon the derivative is calculated |
mode |
"Forward" or "Backward" the derivative will be calculated for the npoints |
Derivative |
"First" or "Second" derivative to calculate |
CoefMat |
if T return the derivative coefficient matrix for selected derivative |
Value
a vector with the derivative requested or the coefficient of such derivative
Examples
Derv(npoints = 2, h = 0.13, Ox = matrix(c(1,2), nrow = 1), mode = "Forward", Derivative = "First")
[Package EleChemr version 1.2.0 Index]