|author||aherbert <email@example.com>||Wed Jan 15 15:14:15 2020 +0000|
|committer||aherbert <firstname.lastname@example.org>||Wed Jan 15 15:14:15 2020 +0000|
Approximation of sinh/cosh using exp can be overflow/underflow safe. Updated the sinh(), cosh() and tanh() methods for large absolute real to avoid overflow of exp(x) to infinite. sinh()/cosh() now use a common function to compute the result as only the sign of the result components differs. The computation of e^x can be made in stages to allow computation of results even when e^x / 2 overflows. tanh() now computes e^x in stages. Added edge cases where exp(x) overflows but the result can be computed.
The Apache Commons Numbers project provides number types and utilities.
You can download source and binaries from our download page.
Alternatively you can pull it from the central Maven repositories:
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-numbers</artifactId> <version>1.0</version> </dependency>
We accept PRs via github. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
mvn clean test.
Code is under the Apache Licence v2.
You like Apache Commons Numbers? Then donate back to the ASF to support the development.