Description Usage Arguments Examples
The solution.matrix
function returns the solution to a linear ODE of the form P' = MP,
which is merely P(t) = exp(Mt)p0 where p0 is the initial condition
1 | solution.matrix(p0, M, times = c(1:10))
|
p0 |
initial condition, as an array |
M |
a square matrix with as many rows as P0 |
times |
an array containing the times in which to calculate the solution |
1 2 | mat <- mat.model.base(5)
solution.matrix(c(1,0,0,0,0),mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.