Text this: Nonlinear Controller for an Inverted Pendulum Using the Trigonometric Function