Pendulum

class otp.pendulum.PendulumProblem

Bases: otp.Problem

Constructor Summary
PendulumProblem(timeSpan, y0, parameters)

Constructs a problem

Parameters

class otp.pendulum.PendulumParameters

Bases: otp.Parameters

Parameters for the pendulum problem.

Constructor Summary
PendulumParameters(varargin)

Create a pendulum parameters object.

Parameters:

varargin – A variable number of name-value pairs. A name can be any property of this class, and the subsequent value initializes that property.

Property Summary
Gravity

GRAVITY is acceleration due to gravity

Masses

MASSES of the nodes of the pendulum

Lengths

LENGTHS between the nodes of the pendulums

Presets