Infix to postfix

The Shunting Yard

Dijkstra named the algorithm after a railroad yard. Numbers ride the output track. Operators wait on a siding until precedence says they may leave.

Expression

Angles for sin, cos, tan