Find the period of a simple pendulum from its length and the local gravitational acceleration using the small-angle approximation.
输入摆长 L 与重力加速度 g,求周期。