simulate_duffing | R Documentation |
Describes certain damped and driven oscillators. Coded from http://paulbourke.net/fractals/duffing/.
simulate_duffing(
parameters,
start_coords = c(x = 0, y = 0),
t_max = 10,
t_step = 1/100
)
parameters |
a,b,c describe the amount of damping, the amplitude of the periodic driving force, and the angular frequency of the periodic driving force. |
start_coords |
initial conditions (numeric vector) |
t_max , t_step |
end time and step of the simulation (numeric). |
a dataframe with time, x, and y columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.