commit | 3366f35d8120ddc5c52f991c1d120a7c7f95c72f | [log] [tgz] |
---|---|---|
author | aherbert <aherbert@apache.org> | Fri Dec 20 12:53:06 2019 +0000 |
committer | aherbert <aherbert@apache.org> | Fri Dec 20 13:11:18 2019 +0000 |
tree | ef43e96c4baa89ce33afec9838749fae098e4016 | |
parent | 8375852acc8b58f12b8f0acf51046753569e0e52 [diff] |
Fix overflow in tanh. Added edge case tests. Overflow is cause by computation of Math.sin(2a) or Math.cos(2a) when a is finite and 2a is infinite. This has been fixed to use trigonomic identities for sin(2a) and cos(2a) in this case.
The Apache Commons Numbers project provides number types and utilities.
More information can be found on the homepage. The JavaDoc can be browsed. Questions related to the usage of Apache Commons Numbers should be posted to the user mailing list.
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
.If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
Code is under the Apache Licence v2.
You like Apache Commons Numbers? Then donate back to the ASF to support the development.