Function Repository Resource:

# DoublePendulumFormula

Compute the final angles of a double pendulum based on initial conditions

Contributed by: Jason Martinez
 ResourceFunction["DoublePendulumFormula"][parameters,initalcond] computes the pendulum angles based on system parameters and initial conditions initialcond. ResourceFunction["DoublePendulumFormula"][property] returns the specified property of the double pendulum formula.

## Details and Options

To solve for the final angles of a double pendulum, the following system parameters must be defined in parameters:
 l1 pendulum 1 length l2 pendulum 2 length m1 pendulum 1 mass m2 pendulum 2 mass
Gravitational acceleration "g" can also be specified. If unspecified, it is assumed to be equal to the "StandardAccelerationOfGravity".
Additionally, the following initial conditions must be defined in initialcond:
 t time θ1,i pendulum 1 initial angle from vertical θ2,i pendulum 2 initial angle from vertical
In addition to the final pendulum angles, the solutions for the angle evolutions ("Angle1Solution", "Angle2Solution") from the inital time to the final time t are provided.
Properties include:
 "Formula" equations for double pendulum "QuantityVariableDimensions" list of base dimensions for all variables "QuantityVariableNames" English names for all variables "QuantityVariablePhysicalQuantities" physical quantities for all variables "QuantityVariables" list of all variables "QuantityVariableTable" details on all variables

## Examples

### Basic Examples (2)

Solve for the final angles from the vertical for a double pendulum:

 In[1]:=
 Out[1]=

Specify gravitational acceleration:

 In[2]:=
 Out[2]=

### Scope (3)

Examine the equations of motion for a double pendulum:

 In[3]:=
 Out[3]=

Find the quantity variables used by the DoublePendulumFormula:

 In[4]:=
 Out[4]=

Obtain their formal names:

 In[5]:=
 Out[5]=

Derive the physical quantities and unit dimensions of the variables:

 In[6]:=
 Out[6]=
 In[7]:=
 Out[7]=

A table combining all the information about the quantity variables used or derived by DoublePendulumFormula:

 In[8]:=
 Out[8]=

### Applications (1)

See how the pendulum angles evolve over time:

 In[9]:=
 In[10]:=
 Out[10]=

## Version History

• 1.0.0 – 11 November 2019