Hello, everyone,
I would like to create a real number from its continued fraction
expansion. I know it is possible to call ``CFF([0,1,1,1,1,1,1]).value()
`` to have an approximation of the golden ratio, but I would like to
pass an iterator as an argument to the function ``CFF(...)`` so that I
can get a real number ``x`` represented by its continued fraction
expansion. As a consequence, for instance, I could get an arbitrary
precision about its digits by calling something like ``x.value(bits=50)
``.
Does it already exist in Sage ? Or do I need to create such a
function ? Thank you !
Alexandre Blondin Massé

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to