chicken-hackers
[Top][All Lists]
Advanced

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

Hyperbolic Functions Patch Set


From: Christian Himpe
Subject: Hyperbolic Functions Patch Set
Date: Sat, 3 Jun 2023 08:38:24 +0200

Dear Maintainers,
Attached you find a change-set adding the hyperbolic functions (sinh, cosh, 
tanh) and inverse hyperbolic functions (asking, cosh, atanh) to the included 
(chicken flonum) module. This implementations follows the trigonometric 
function using the math library calls. I also added some basic domain tests for 
each of these function.

IMHO this is a useful addition, first, because these functions are part of the 
standard C math library and second, even though there are closed forms, the 
cmath functions are tuned to use different computations depending on the 
magnitude of the input argument to counteract floating point inaccuracies.

Let me know if you require any changes.

Best

Christian (gramian)

Attachment: hyperbolic-flonum-functions.patch
Description: Binary data


reply via email to

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