This is not just about the exponent being an integer, but being a specific integer. Cf. Confusing difference: ^literal vs ^variable - #6 by StefanKarpinski for some rationale.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| REPL domain error for exponentiation | 4 | 769 | November 23, 2019 | |
| Pi raised to negative integer powers produces a strange error message, and the literal_pow obfuscation | 3 | 992 | April 12, 2020 | |
| Element-wise exponentiation | 9 | 2236 | July 22, 2020 | |
| Confusing difference: ^literal vs ^variable | 6 | 1098 | August 16, 2018 | |
| Weird floating point under/overflow behavior | 3 | 297 | March 31, 2024 |