On Sunday, July 28, 2013 6:22:30 PM UTC-4, Emil wrote:

> Thanks, Volker. I must say I find the K.<x> syntax makes me feel a bit 
> uneasy. Is there a way to do
>
>     sage: x = polygen(QQ)
>     sage: K.<x> = NumberField(x^2 + x - 1/2, embedding=0.366)
>
>  in straight Python?
>

Not straight Python, it does require the Sage library of course. But Python 
syntax:

sage: x = polygen(QQ)
sage: K = NumberField(x^2 + x - 1/2, embedding=0.366, names=('x',))
sage: K.inject_variables()
Defining x


 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to