Exponentiation order: Difference between revisions

m
RPL: add section
(RPL: add section)
m (RPL: add section)
Line 1,200:
</pre>
 
=={{header|RPL}}==
When using reverse Polish notation, there is no parenthesis: the user must decide the exponentiation order.
When using algebraic notation:
Line 1,212:
1: 1953125
</pre>
 
=={{header|Ruby}}==
<syntaxhighlight lang="ruby">ar = ["5**3**2", "(5**3)**2", "5**(3**2)", "[5,3,2].inject(:**)"]
1,150

edits