RosettaCodeData/Task/Exponentiation-order/Mathematica/exponentiation-order.math

7 lines
184 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
a = "5^3^2";
Print[a <> " = " <> ToString[ToExpression[a]]]
b = "(5^3)^2";
Print[b <> " = " <> ToString[ToExpression[b]]]
c = "5^(3^2)";
Print[c <> " = " <> ToString[ToExpression[c]]]