Text this: Modeling and control of a rotary inverted pendulum using various methods, comparative assessment and result analysis