Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
1

From number field to interval field

asked 12 years ago

vdelecroix gravatar image

Hello,

I would like to understand why the following works

sage: K1.<s1> = NumberField(x^3 - 2, 's1', embedding=RR(1.26))
sage: RIF(s1)
1.259921049894873?

and the following does not

sage: K2.<s2> =NumberField(x^3 - 2, 's2', embedding=CC(-0.63,1.09))
sage: CIF(s2) 
Traceback (most recent call last)
...
TypeError: unable to coerce to a ComplexIntervalFieldElement

Thank you, Vincent

Preview: (hide)

Comments

1

Looks like a bug to me. `CIF.coerce_map_from(K2)` shows that a sane conversion *should* happen, but then something goes wrong when actually coercing an element.

daniels gravatar imagedaniels ( 12 years ago )

Ok. Thanks. I sent a message on sage-devel and sage-nt.

vdelecroix gravatar imagevdelecroix ( 12 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 4 years ago

Sébastien gravatar image

I do not know when it was fixed, but It seems to be fixed now:

sage: K2.<s2> =NumberField(x^3 - 2, 's2', embedding=CC(-0.63,1.09))
sage: CIF(s2)
-0.6299605249474365? + 1.091123635971722?*I
Preview: (hide)
link

Comments

I have been getting bugs from time to time as well. There are times when Sagemath can't even call out digits of pi for me. I have to close out the program, and browser that does fix the issues most of the time, but not all the time.

nooniensoong97 gravatar imagenooniensoong97 ( 4 years ago )

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 12 years ago

Seen: 486 times

Last updated: Mar 26 '20