ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 24 Jul 2017 11:09:25 -0500Polynomials over number fieldshttp://ask.sagemath.org/question/38381/polynomials-over-number-fields/Below I define a polynomial ring K[s,t]. My goal is to compute the minors of a large matrix with entries in this ring.
var('x')
# K.<t> = NumberField(x^2-2)
K.<s,t> = NumberField([x^2-2,x^2-5])
R.<p0,p1,p2,p3,p4,p5> = K[]
M = Mat(R,10,10).random_element()
mins = M.minors(2)
This code works fine, but if I replace the last line with
mins = M.minors(7)
it fails with the error message
TypeError: no conversion to a Singular ring defined
Is it possible to avoid this error?coreyharrisMon, 24 Jul 2017 11:09:25 -0500http://ask.sagemath.org/question/38381/embeddings in NumberFieldTower?http://ask.sagemath.org/question/25312/embeddings-in-numberfieldtower/I'm trying to do my calculations in a number field tower (or some equivalent), then get the results in real form (or anything that the graphics functions will take). I'm extending the rationals twice.
I've tried constructing the first with NumberField, then using extension, but apparently embedding isn't implemented in extension.
I've tried using NumberFieldTower, but I can't find an equivalent to embedding.
I've tried using NumberField(poly_1, poly_2) or QQ[poly_1, poly_1], but can't figure out how to assign an embedding or something equivalent.
I've considered trying to construct a field homomorphism from the field to the reals, but I don't know sage well enough to figure out if this is possible.
Is there some equivalent way of getting the values that I want?
Thanks!apeirogonSat, 20 Dec 2014 22:37:28 -0600http://ask.sagemath.org/question/25312/