Summary

inaccuracy in exponential functions

Metadata

Description

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.