Ask Your Question
0

how to get frobenius_element() in numberfield?

asked 2013-12-11 02:45:58 +0100

cjsh gravatar image

updated 2013-12-11 11:15:31 +0100

William Stein gravatar image
CLO7.<u> = CyclotomicField(7)

CLO7().***frobenius_element***() 

Traceback (click to the left of this block for traceback)
...
AttributeError:
'sage.rings.number_field.number_field_element.NumberFieldElement_abs\
olute' object has no attribute 'frobenius_element'
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-12-11 10:28:40 +0100

John Cremona gravatar image

updated 2013-12-11 11:37:02 +0100

Here is way to do it.

sage: F.<z> = CyclotomicField(7)
sage: def Frob(p):                                                                                       
    return F.hom([z^p])
....: 
sage: Frob(2)
Ring endomorphism of Cyclotomic Field of order 7 and degree 6
  Defn: z |--> z^2
sage: Frob(3)                                                                                            
Ring endomorphism of Cyclotomic Field of order 7 and degree 6
  Defn: z |--> z^3
sage: Frob(5)                                                                                            
Ring endomorphism of Cyclotomic Field of order 7 and degree 6
  Defn: z |--> z^5
sage: Frob(97)    
Ring endomorphism of Cyclotomic Field of order 7 and degree 6
  Defn: z |--> -z^5 - z^4 - z^3 - z^2 - z - 1
edit flag offensive delete link more

Comments

thank you very much!

cjsh gravatar imagecjsh ( 2013-12-12 02:35:21 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-12-11 02:45:58 +0100

Seen: 590 times

Last updated: Dec 12 '13