Hi,
Sage behavior seems to be different on the console:
~/sage-9.6/b01$ ./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.6.beta1, Release Date: 2022-02-13 │
│ Using Python 3.8.10. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: A = matrix([[1,2],[3,4]])
sage: A^0; A^1; A^2; A^3; A^4
[1 0]
[0 1]
[1 2]
[3 4]
[ 7 10]
[15 22]
[ 37 54]
[ 81 118]
[199 290]
[435 634]
sage: for i in [0,1,2,3,4]:
....: A^i
....:
[1 0]
[0 1]
[1 2]
[3 4]
[ 7 10]
[15 22]
[ 37 54]
[ 81 118]
[199 290]
[435 634]
sage: for i in [0..4]:
....: det(A^i)
....:
1
-2
4
-8
16
sage:
A clarification is much appreciated if the 'sage help' is applicable to sage console only:
Do we have different documentation for the sage console and Jupyter notebook?
Regards,
phiho