This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git

commit 9b1b88700a43a618c7a67590f0dbdba1302f956f
Author: Alex Herbert <[email protected]>
AuthorDate: Sun Dec 8 23:52:45 2019 +0000

    Added TODO notes on special case for imaginary only numbers.
    
    asinh(iy) = i asin(y)
    atanh(iy) = i atan(y)
    
    do not work.
---
 .../src/main/java/org/apache/commons/numbers/complex/Complex.java       | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
index ab28944..873db5f 100644
--- 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
+++ 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
@@ -1125,6 +1125,7 @@ public final class Complex implements Serializable  {
                     if (imaginary == 0) {
                         return constructor.create(real, imaginary);
                     }
+                    // TODO: Check why this does not work
 //                    // asinh(iy) = i asin(y)
 //                    final double re = -Math.asin(b);
 //                    return constructor.create(changeSign(re, real),
@@ -1220,6 +1221,7 @@ public final class Complex implements Serializable  {
                     if (imaginary == 0) {
                         return constructor.create(real, imaginary);
                     }
+                    // TODO: Check why this does not work
 //                    // atanh(iy) = i atan(y)
 //                    final double re = -Math.atan(b);
 //                    return constructor.create(changeSign(re, real),

Reply via email to