Description Usage Arguments Value Examples
View source: R/createOscillators.R
Creates the set of differential equations of order one from the ODEnetwork
.
1 | createOscillators(odenet)
|
odenet |
[ |
a function with a set of differential equations of order one to use in a numerical step
1 2 3 4 5 6 7 8 9 | if (interactive()) {
masses <- c(1, 2)
dampers <- diag(c(0.1, 0.5))
dampers[1, 2] <- 0.05
springs <- diag(c(4, 10))
springs[1, 2] <- 6
odenet <- ODEnetwork(masses, dampers, springs)
createOscillators(odenet)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.