Exponentiation operator: Difference between revisions

m
add RPL
(add RPL)
m (add RPL)
Line 3,087:
</pre>
 
=={{header|RPL}}==
RPL can not overload operators, but does often handle many data types - including unsigned integers and floating-point numbers - with same methods, which makes code compact and versatile. The one-line program below can exponentiate real and complex numbers, but also matrices.
≪ 1 1 ROT '''START''' OVER * '''END''' SWAP DROP ≫ ‘'''POWER'''’ STO
1,150

edits