You are browsing as a guest. Sign up (or log in) to start making projects!

2h 3m 16s logged

Learning Shunting yard algorithms

I am making a calculator like CalcX and for that i need to find a way to teach computer PEDMAS

we think of
4 + 18/(9-3)
as
4 + 18 / 6
4 + 3
7

But how will a computer decided it??

Thats where the Shunting yard Algorithm comes.. it utilises stack and queue.. that soo lit

Qalc : MY inspiration

0
15

Comments 0

No comments yet. Be the first!