Code Comments
Programming Forum and web based access to our favorite programming groups.Hi tcl guys, I know there is mpexpr to handle too small numbers - but I 'm working with windows xp and I think there is no version? Perhaps you know another application/plugin? I have two very little values one in numerator the other in denominator - but the quotient isn't small. How can I solve this problem with tcl? error message with tcl and expr: divide by zero. Thanks in advance Hans
Post Follow-up to this messageHans Herrmann wrote: > I know there is mpexpr to handle too small numbers - but I 'm working wit h > Windows XP and I think there is no version? > Perhaps you know another application/plugin? > I have two very little values one in numerator the other in denominator - > but the quotient isn't small. > How can I solve this problem with tcl? > error message with tcl and expr: divide by zero. You are experiencing floating point underflow? Is that what you mean? If you are underflowing a double-precision IEEE floating point value, that same problem is going to present in most programming languages. Perhaps you need to re-cast your calculations in terms of logarithms? -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter@nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |_______________________________________ _______________________________|
Post Follow-up to this messageIn article <slrncelpt7.dai.dgp@clover.cam.nist.gov>, Don Porter <dgp@nist.gov> wrote: >Hans Herrmann wrote: > >You are experiencing floating point underflow? Is that what you mean? > >If you are underflowing a double-precision IEEE floating point value, >that same problem is going to present in most programming languages. > >Perhaps you need to re-cast your calculations in terms of logarithms?
Post Follow-up to this messageHans Herrmann wrote: > > Hi tcl guys, > I know there is mpexpr to handle too small numbers - but I 'm working wit h > Windows XP and I think there is no version? > Perhaps you know another application/plugin? > I have two very little values one in numerator the other in denominator - > but the quotient isn't small. > How can I solve this problem with tcl? > error message with tcl and expr: divide by zero. > Thanks in advance > Hans If speed is not an issue, then there is the MPA package (http://wiki.tcl.tk/10764) It is a multiple-precision arithmetic package in pure Tcl. Regards, Arjen
Post Follow-up to this message"Arjen Markus" <arjen.markus@wldelft.nl> schrieb im Newsbeitrag news:40EB97A2.B4001C99@wldelft.nl... > Hans Herrmann wrote: with denominator - > > If speed is not an issue, then there is the MPA package > (http://wiki.tcl.tk/10764) > It is a multiple-precision arithmetic package in pure Tcl. > > Regards, > > Arjen Hi Arjen, hi all other guys, thanks for your help - I will test your suggestion! Hans
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.