ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 27 Mar 2022 00:21:01 +0100Fix a number field embedding for a newform for $\Gamma_0(N)$https://ask.sagemath.org/question/61683/fix-a-number-field-embedding-for-a-newform-for-gamma_0n/I am trying to do some numerics with newforms for $\Gamma_0(N)$. E.g
sage: g=CuspForms(group=Gamma0(2),weight=26).newforms(names='a')[0].q_expansion(prec=10).truncate()
sage: g(exp(-10.))
gives me (an approximation) of the chosen newform at $10i/2\pi\in \mathbb H$. The chosen newform has coefficients in $\mathbb Q$
If instead I choose another newform
sage: g=CuspForms(group=Gamma0(2),weight=26).newforms(names='a')[1].q_expansion(prec=10).truncate()here
which has coefficients in the number field with defining polynomial $x^2 - 767888x - 9686519804864$ the command
sage:g(exp(-10.))
gives me an error which I interpret as Sage not knowing where to compute or that I have not fixed an embedding of the number field.
How do I fix an embedding and compute `g(exp(-10.))`?mrisagerSun, 27 Mar 2022 00:21:01 +0100https://ask.sagemath.org/question/61683/