Description Usage Arguments Value Examples

View source: R/createJacobian.R

Creates the Jacobian matrix for a special set of parameters of the ODE. The first n columns contain the derivatives with respect to d_ii, followed by the derivatives with respect to k_ii. The last 2*n columns include the derivatives with respect to the states.

1 | ```
createJacobian(odenet, ParamVec = NA)
``` |

`odenet` |
[ |

`ParamVec` |
[ |

the Jacobian matrix of size 2n*4n.

1 2 3 4 5 6 7 8 | ```
masses <- 4:6
dampers <- diag(1:3)
springs <- diag(7:9)
odenet <- ODEnetwork(masses, dampers, springs)
position <- rep(10, 3)
velocity <- rep(0, 3)
odenet <- setState(odenet, position, velocity)
jac <- createJacobian(odenet)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.