chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] mathematical oddities


From: Felix
Subject: Re: [Chicken-users] mathematical oddities
Date: Thu, 15 Jul 2010 15:26:06 +0200 (CEST)

From: Shawn Rutledge <address@hidden>
Subject: [Chicken-users] mathematical oddities
Date: Wed, 14 Jul 2010 23:04:38 -0700

> Sorry for resurrecting such an old thread but I also noticed division
> by zero doesn't return infinity, and I sortof wish it did, or that it
> could be an option.
> 
> On Mon, Jun 19, 2006 at 11:53 PM, felix winkelmann <address@hidden> wrote:
>> On 6/20/06, Thomas Chust <address@hidden> wrote:
>>>
>>> Maybe something like that could be included in the library for
>>> completeness' sake. Or we should create an IEEE arithmetic egg (are there
>>> more functions than / in CHICKEN that are not IEEE compliant?). But I
>>> would really vote against modifying the behaviour of /.
>>>
>>
>> Additionally, you can of course do
>>
>> (condition-case (/ 1 0) (exn (exn arithmetic) "doh!"))
> 
> Can you detect the actual divide-by-zero error though as opposed to
> just a general arithmetic error?
> 

Currently this is the only arithmetic error that may be triggered. Do
you think it would be good to add a condition type for this?


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]