I can confirm that the sagemath package in mantic-proposed has fixed the bug for me.
Test done according to the testplan:
$ sage ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 9.5, Release Date: 2022-01-30 │ │ Using Python 3.11.6. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ sage: 2 + 2 4 sage: factor(-2007) -1 * 3^2 * 223 sage: A = matrix(4,4, range(16)); A [ 0 1 2 3] [ 4 5 6 7] [ 8 9 10 11] [12 13 14 15] sage: factor(A.charpoly()) x^2 * (x^2 - 30*x - 80)
Test result: the errors with sagemath has been fixed.
Package tested:
$ apt-cache policy sagemath sagemath: Installed: 9.5-6ubuntu0.1.1 Candidate: 9.5-6ubuntu0.1.1 Version table: *** 9.5-6ubuntu0.1.1 100 100 http://us.archive.ubuntu.com/ubuntu mantic-proposed/universe amd64 Packages 100 /var/lib/dpkg/status 9.5-6 500 500 http://us.archive.ubuntu.com/ubuntu mantic/universe amd64 Packages
I can confirm that the sagemath package in mantic-proposed has fixed the bug for me.
Test done according to the testplan:
$ sage ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ──────┐ ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ──────┘ A.charpoly( ))
┌──────
│ SageMath version 9.5, Release Date: 2022-01-30 │
│ Using Python 3.11.6. Type "help()" for help. │
└──────
sage: 2 + 2
4
sage: factor(-2007)
-1 * 3^2 * 223
sage: A = matrix(4,4, range(16)); A
[ 0 1 2 3]
[ 4 5 6 7]
[ 8 9 10 11]
[12 13 14 15]
sage: factor(
x^2 * (x^2 - 30*x - 80)
Test result: the errors with sagemath has been fixed.
Package tested:
$ apt-cache policy sagemath us.archive. ubuntu. com/ubuntu mantic- proposed/ universe amd64 Packages dpkg/status us.archive. ubuntu. com/ubuntu mantic/universe amd64 Packages
sagemath:
Installed: 9.5-6ubuntu0.1.1
Candidate: 9.5-6ubuntu0.1.1
Version table:
*** 9.5-6ubuntu0.1.1 100
100 http://
100 /var/lib/
9.5-6 500
500 http://