Calculating the Length from the Swing Period

The period of a pendulum is calculated using the following formula:


We can rearrange the formula to calculate the length like this:


Note that the units in these formulas are meter and second, which is usually the case in physics. The constant g in this formula stands for the gravitational acceleration, and its value is 9.81 meters per square second. T stands for the period of the swing in seconds. This means the user needs to move the markers to two adjacent maximums and we need to calculate the ...

Get Build Location-Based Projects for iOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.