Description Usage Arguments Details Value Author(s)
damped harmonic oscillator, e.g. The dynamics of a spring-mass system with air friction.
1 |
x0 |
initial positions (x0,y0) |
y0 |
initial positions |
a |
entry (1,1) of the transformation matrix |
b |
entry (1,2) of the transformation matrix |
c |
entry (2,1) of the transformation matrix |
d |
entry (2,2) of the transformation matrix |
e |
x-offset for affine systems |
f |
y-offset for affine systems |
In physics, this sort of system is called a damped
harmonic oscillator. The x variable is the spring position,
the y variable is the spring velocity.
derivate function for system
dx = a*(x-x0) + b*(y-y0) + e
dy = c*(x-x0) + d*(y-y0) + f
closure calculating the derivative based on vector arguments (x,y).
Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.