33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
This task will demonstrate the order of [[wp:Exponentiation|exponentiation]] <big>('''x<sup>y</sup>''') </big> when there are multiple exponents.
|
|
|
|
(Many programming languages, especially those with extended─precision integer arithmetic, 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>
|
|
::::* 5**3**2
|
|
::::* (5**3)**2
|
|
::::* 5**(3**2)
|
|
</big>
|
|
|
|
<br>
|
|
If there are other methods (or formats) of multiple exponentiations, show them as well.
|
|
|
|
|
|
;See also:
|
|
* MathWorld entry: [http://mathworld.wolfram.com/Exponentiation.html exponentiation]
|
|
|
|
|
|
;Related tasks:
|
|
* [[Exponentiation_operator|exponentiation operator]]
|
|
* [[Arbitrary-precision_integers_(included)|arbitrary-precision integers (included)]]
|
|
* [[Exponentiation with infix operators in (or operating on) the base]]
|
|
<br><br>
|
|
|