chicken-janitors
[Top][All Lists]
Advanced

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

#1833: inaccuracy in exponential functions


From: Chicken Trac
Subject: #1833: inaccuracy in exponential functions
Date: Thu, 29 Feb 2024 13:58:37 -0000

#1833: inaccuracy in exponential functions
--------------------------------+---------------------
            Reporter:  sjain59  |       Type:  defect
              Status:  new      |   Priority:  minor
           Milestone:  someday  |  Component:  unknown
             Version:  5.3.0    |   Keywords:
Estimated difficulty:           |
--------------------------------+---------------------
 I wish to bring to your kind notice the following:

 (sin -1e-6i), whose magnitude should be sinh, gives inaccurate answer, in
 comparison SCM scheme for the same expression, gives the correct C
 function answer. The discrepancy is related to the C functions expm1 and
 log1p which are needed for small x.

 Another thing I noticed is the expression (sin 1e-6i) gives the error 1e-6
 unbound variable, whereas in the expression (sin +1e-6i) it is correctly
 recognized as a number.

 Thanks.

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1833>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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