|
D.7.5.5 RootsProcedure from library
Example: LIB "zeroset.lib"; ring R = (0,a), x, lp; minpoly = a2+1; poly f = x3 - a; def R1 = Roots(f); → → // 'Roots' created a new ring which contains the list 'roots' and → // the polynomials 'f' and 'newA' → // To access the roots, newA and the new representation of f, type → def R = Roots(f); setring R; roots; newA; f; → setring R1; minpoly; → (a4-a2+1) newA; → (a3) f; → x3+(-a3) roots; → [1]: → (-a3) → [2]: → (a3-a) → [3]: → (a) map F; F[1] = roots[1]; F(f); → 0 |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |