Exponentiation order: Difference between revisions

Exponentiation order in Dart
(Exponentiation order in various dialects BASIC (Chipmunk Basic, GW-BASIC, MSX Basic, PureBasic and XBasic))
(Exponentiation order in Dart)
Line 487:
5 ^^ (3 ^^ 2) = 1953125
[5, 3, 2].reduce!pow = 15625</pre>
 
=={{header|Dart}}==
<syntaxhighlight lang="dart">import 'dart:math' show pow;
 
void main() {
print('(5 ^ 3) ^ 2 = ${pow(pow(5, 3), 2)}');
print('5 ^ (3 ^ 2) = ${pow(5, (pow(3, 2)))}');
}</syntaxhighlight>
{{out}}
<pre>(5 ^ 3) ^ 2 = 15625
5 ^ (3 ^ 2) = 1953125</pre>
 
=={{header|EchoLisp}}==
2,130

edits