Martin,
Le mer. 29 avr. 2026 à 13:42, 'Martin R' via FriCAS - computer algebra
system <
fricas...@googlegroups.com> a écrit :
I wonder why you want that in SageMath, there is an interface to
FLINT, no? I do not know exactly what it is interfaced. But FLINT
include now the Calcium library from Fredrik Johansson. As an example
using Julia in FriCAS, an extension, Julia has a Nemo package that
interfaces FLINT (NM means Nemo here):
(1) -> R:=NUP(NINT,'x)
(1) NMUnivariatePolynomial(NMInteger,x)
Type: Type
(2) -> x:=x::R
(2) x
Type: NMUnivariatePolynomial(NMInteger,x)
(3) -> p:=x^5+1
5
(3) x + 1
Type: NMUnivariatePolynomial(NMInteger,x)
(4) -> v:=roots p
(4)
5-element Vector{QQBarFieldElem}:
{a1: -1.00000}
{a4: 0.809017 + 0.587785*im}
{a4: 0.809017 - 0.587785*im}
{a4: -0.309017 + 0.951057*im}
{a4: -0.309017 - 0.951057*im}
Type: JLVector(NMAlgebraicNumber)
(5) -> minimalPolynomial(v.2)
4 3 2
(5) ? - ? + ? - ? + 1
Type: SparseUnivariatePolynomial(Integer)
(6) -> minimalPolynomial(v.2)@R
4 3 2
(6) x - x + x - x + 1
Type: NMUnivariatePolynomial(NMInteger,x)
(7) -> v.2::NMComplexField
(7)
[0.809016994374947424 +/- 1.04e-19] + [0.5877852522924731291
+/- 8.88e-20]*im
Type: NMComplexField
Is it just for better support of FriCAS AlgebraicNumber (AN) in
SageMath or to have another way to solve this?
Greg