Ask Your Question
1

AttributeError: 'NumberFieldFractionalIdeal' object has no attribute 'ray_class_number'

asked 11 years ago

cjsh gravatar image

updated 11 years ago

slelievre gravatar image

ray_class_number canot run.....

I tried an example from doc/reference:

K.<z> = QuadraticField(-23);
p = K.primes_above(3)[0];
p.ray_class_number()

x = polygen(K)
L.<w> = K.extension(x^3 - z)
I = L.ideal(5)
I.ray_class_number()
Preview: (hide)

Comments

It works for me, i got: sage: I.ray_class_number() 5184 Could you please send us the error message ?

tmonteil gravatar imagetmonteil ( 11 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

Jeroen Demeyer gravatar image

Version 5.12 of Sage is too old. This functionality was only added to Sage 5.13.

Preview: (hide)
link

Comments

thank you very much! I try sagecell ,it is ok! why sagenb,org main page is 5.11?

cjsh gravatar imagecjsh ( 11 years ago )
0

answered 11 years ago

cjsh gravatar image

updated 11 years ago

slelievre gravatar image

sorry, I see your reply today.

in sagecloud:

sage: K.<z> = QuadraticField(-23);K
Number Field in z with defining polynomial x^2 + 23
sage: p = K.primes_above(3)[0];p
Fractional ideal (3, 1/2*z - 1/2)
sage: p.ray_class_number()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-12-8ba0cf693043> in <module>()
----> 1 p.ray_class_number()

/usr/local/sage/sage-5.12/local/lib/python2.7/site-packages/sage/structure/element.so in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3871)()

/usr/local/sage/sage-5.12/local/lib/python2.7/site-packages/sage/structure/misc.so in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1696)()

AttributeError: 'NumberFieldFractionalIdeal' object has no attribute 'ray_class_number'

in http://sagenb.skku.edu/

K.<z> = QuadraticField(-23); 
p = K.primes_above(3)[0]; 
p.ray_class_number()

Traceback (click to the left of this block for traceback)
...
AttributeError: 'NumberFieldFractionalIdeal' object has no attribute 'ray_class_number'
Preview: (hide)
link

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: 11 years ago

Seen: 382 times

Last updated: Jan 30 '14