sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.42k stars 478 forks source link

.value() for all continued fractions #18065

Closed videlec closed 9 years ago

videlec commented 9 years ago

We let .value() for continued fractions return a real lazy field element when there is no other possibilities. For example

sage: cf = continued_fraction(words.ThueMorseWord([1,2]))
sage: cf
[1; 2, 2, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 2, 2, 1, 2, 1, 1, 2...]
sage: v = cf.value()
sage: v
1.422388736882786?
sage: v.parent()
Real Lazy Field
sage: v.n(digits=30)
1.42238873688278548834154711602

CC: @sagetrac-tmonteil @seblabbe

Component: numerical

Author: Vincent Delecroix

Branch/Commit: d6bea26

Reviewer: Marc Mezzarobba

Issue created by migration from https://trac.sagemath.org/ticket/18065

videlec commented 9 years ago

Commit: d6bea26

videlec commented 9 years ago

Branch: u/vdelecroix/18065

videlec commented 9 years ago

New commits:

d6bea26Trac 18065: .value() for continued_fraction
mezzarobba commented 9 years ago

Reviewer: Marc Mezzarobba

vbraun commented 9 years ago

Changed branch from u/vdelecroix/18065 to d6bea26