RosettaCodeData/Task/Exponentiation-operator/00DESCRIPTION

9 lines
542 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
Most programming languages have a built-in implementation of exponentiation.
2013-04-10 16:57:12 -07:00
2016-12-05 22:15:40 +01:00
;Task:
Re-implement integer exponentiation for both &nbsp; <big>int<sup>int</sup></big> &nbsp; and &nbsp; <big>float<sup>int</sup></big> &nbsp; as both a procedure, &nbsp; and an operator (if your language supports operator definition).
If the language supports operator (or procedure) overloading, then an overloaded form should be provided for both &nbsp; <big>int<sup>int</sup></big> &nbsp; and &nbsp; <big>float<sup>int</sup></big> &nbsp; variants.
<br><br>