On Jun 13, 7:32 pm, rjf <fate...@gmail.com> wrote: > If you want a Sage number X of n (binary) bits precision to be converted to > a Maxima bigfloat of n bits, > then you can do this. > First in Sage compute Xrat which is an exact rational that is equal to X. > It could be computed > by something like (some integer) times 2^(some power): > > then in maxima, you utter the program fragment: > > block([?fpprec:n], bfloat(Xrat)) > > note ?fpprec is the BINARY version of fpprec.
For the benefit of people who want to work on this: There is code on http://trac.sagemath.org/sage_trac/ticket/11643 for converting between MPFR and maxima BFLOAT. The problem that needs to be figured out is how to set fpprec to a reasonable value. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org