State-Space Transformation
Obtain the governing equations of a spherical pendulum in Cartesian coordinates, put them into the affine state-space form, and convert them to spherical coordinates.
The governing equations from the Lagrangian.
Out[2]//Short= |
| |
The affine representation with states and inputs .
Out[3]= | |
The transformation between spherical and Cartesian coordinates.
Out[4]= | |
The transformation of the coordinate derivatives.
Out[5]= | |
The complete state transformation.
Out[6]= | |
The expressions in spherical coordinates are much simpler.
Out[7]= | |