summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
33b5476)
if not n.mod(2).is_zero():
raise ValueError("the matrix 'M' must be a complex embedding")
if not n.mod(2).is_zero():
raise ValueError("the matrix 'M' must be a complex embedding")
+ field = M.base_ring() # This should already have sqrt2
R = PolynomialRing(field, 'z')
z = R.gen()
F = NumberField(z**2 + 1,'i', embedding=CLF(-1).sqrt())
R = PolynomialRing(field, 'z')
z = R.gen()
F = NumberField(z**2 + 1,'i', embedding=CLF(-1).sqrt())
- R = PolynomialRing(QQ, 'z')
+ R = PolynomialRing(field, 'z')
z = R.gen()
F = NumberField(z**2 + 1, 'I', embedding=CLF(-1).sqrt())
I = F.gen()
z = R.gen()
F = NumberField(z**2 + 1, 'I', embedding=CLF(-1).sqrt())
I = F.gen()