linear: linear

Description Usage Arguments Details Value Author(s)

Description

damped harmonic oscillator, e.g. The dynamics of a spring-mass system with air friction.

Usage

1
linear(x0, y0, a, b, c, d, e = 0, f = 0)

Arguments

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

Details

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

Value

closure calculating the derivative based on vector arguments (x,y).

Author(s)

Thomas Wutzler


pplane documentation built on May 2, 2019, 6:07 p.m.