RosettaCodeData/Task/Exponentiation-order/00-TASK.txt

33 lines
1.3 KiB
Plaintext

This task will demonstrate the order of [[wp:Exponentiation|exponentiation]] &nbsp; <big>('''x<sup>y</sup>''') </big> &nbsp; when there are multiple exponents.
(Many programming languages, &nbsp; especially those with extended─precision integer arithmetic, &nbsp; usually support one of <big> <code>**</code>, <code>^</code>, <code>↑</code> </big> or some such for exponentiation.)
;Task requirements
Show the result of a language's evaluation of multiple exponentiation (either as an integer or floating point).
If your language's exponentiation operator is not one of the usual ones, please comment on how to recognize it.
Using whatever operator or syntax your language supports (if any), show the results in three lines (with identification):
<big>
::::* &nbsp; 5**3**2
::::* &nbsp; (5**3)**2
::::* &nbsp; 5**(3**2)
</big>
<br>
If there are other methods (or formats) of multiple exponentiations, show them as well.
;See also:
* MathWorld entry: &nbsp; [http://mathworld.wolfram.com/Exponentiation.html exponentiation]
;Related tasks:
* &nbsp; [[Exponentiation_operator|exponentiation operator]]
* &nbsp; [[Arbitrary-precision_integers_(included)|arbitrary-precision integers (included)]]
* &nbsp; [[Exponentiation with infix operators in (or operating on) the base]]
<br><br>