On Wed, Apr 29, 2009 at 6:17 PM, Alasdair <amc...@gmail.com> wrote: > > Here's my input: > > h=10.0^(-20) > ex=(2.7^h-1)/h > > and my output: > > 0.000000000000000 > > How to I coerce Sage to work with arbitrary precision, and to return > the correct value, which is about 0.99?
Here's one way: sage: R = RealField(200) sage: h = R(10^(-20)) sage: (R(2.7)^h-1)/h 0.99325177301028339017267700150615326394159909466200116916687 --Mike --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---