Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

too small values
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



Report this thread to moderator Post Follow-up to this message
Old Post
Hans Herrmann
07-06-04 09:11 PM


Re: too small values
Hans 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 |
 |_______________________________________
_______________________________|

Report this thread to moderator Post Follow-up to this message
Old Post
Don Porter
07-06-04 09:11 PM


Re: too small values
In 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?

Report this thread to moderator Post Follow-up to this message
Old Post
Cameron Laird
07-06-04 09:11 PM


Re: too small values
Hans 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

Report this thread to moderator Post Follow-up to this message
Old Post
Arjen Markus
07-07-04 09:00 AM


Re: too small values
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Hans Herrmann
07-07-04 09:03 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:18 AM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.