예제 #1
0
        public static ComplexNumber tanh(ComplexNumber z)
        {
            ComplexNumber z2 = ComplexMathUtils.exp(z);
            ComplexNumber z3 = ComplexMathUtils.exp(ComplexMathUtils.multiply(z, -1));

            return(ComplexMathUtils.divide(ComplexMathUtils.subtract(z2, z3), ComplexMathUtils.add(z2, z3)));
        }
예제 #2
0
 public static ComplexNumber asin(ComplexNumber z)
 {
     ArgChecker.notNull(z, "z");
     return(ComplexMathUtils.multiply(NEGATIVE_I, ComplexMathUtils.log(ComplexMathUtils.add(ComplexMathUtils.multiply(I, z), ComplexMathUtils.sqrt(ComplexMathUtils.subtract(1, ComplexMathUtils.multiply(z, z)))))));
 }
예제 #3
0
 public static ComplexNumber acosh(ComplexNumber z)
 {
     ArgChecker.notNull(z, "z");
     return(ComplexMathUtils.log(ComplexMathUtils.add(z, ComplexMathUtils.sqrt(ComplexMathUtils.subtract(ComplexMathUtils.multiply(z, z), 1)))));
 }
예제 #4
0
        public static ComplexNumber tan(ComplexNumber z)
        {
            ComplexNumber b = ComplexMathUtils.exp(ComplexMathUtils.multiply(ComplexMathUtils.multiply(I, 2), z));

            return(ComplexMathUtils.divide(ComplexMathUtils.subtract(b, 1), ComplexMathUtils.multiply(I, ComplexMathUtils.add(b, 1))));
        }