Una applicazione per trasformare termini usuali in notazione polazza inversa, e viceversa
Reverse Polish notation calculator
Inserisci una espressione in una delle tre caselle.
Le altre espressioni saranno generate automaticamente.
Introduci solo numeri positivi.
Operatori utilizzabili: +, -, *, / e ^.
Infix notation / normal
[ (2 ^ 3 * 5 ) / (9 - 1) + 6 * 5 ]
Prefix notation / Polish notation
[ + * 5 6 / - 1 9 * 5 ^ 3 2 ]
Postfix notation / reverse Polish notation
[ 2 3 ^ 5 * 9 1 - / 6 5 * + ]
= 35
La rappresentazione con un grafo ad albero:
[ + ]
_________/ \_________
[ / ] [ * ]
_____/ \_____ _____/ \_____
[ * ] [ - ] 6 5
_/ \_ _/ \_
[ ^ ] 5 9 1
/ \
2 3
[ + ]
_________/ \_________
[ / ] 30
_____/ \_____
[ * ] 8
_/ \_
8 5
[ + ]
_________/ \_________
[ / ] 30
_____/ \_____
40 8
[ + ]
_________/ \_________
5 30
35