@Test public void testExpLn() { assertComplexEquals(ComplexMathUtils.log(ComplexMathUtils.exp(Z1)), Z1); //TODO test principal value }
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)))); }
public static ComplexNumber asinh(ComplexNumber z) { ArgChecker.notNull(z, "z"); return ComplexMathUtils.log( ComplexMathUtils.add( z, ComplexMathUtils.sqrt(ComplexMathUtils.add(ComplexMathUtils.multiply(z, z), 1)))); }
public static ComplexNumber atanh(ComplexNumber z) { ArgChecker.notNull(z, "z"); return ComplexMathUtils.multiply( 0.5, ComplexMathUtils.log(ComplexMathUtils.divide(ComplexMathUtils.add(1, z), ComplexMathUtils.subtract(1, z)))); }
/** * arccos - the inverse of cos. * @param z A complex number * @return acos(z) */ public static ComplexNumber acos(ComplexNumber z) { ArgChecker.notNull(z, "z"); return ComplexMathUtils.multiply( NEGATIVE_I, ComplexMathUtils.log( ComplexMathUtils.add( z, ComplexMathUtils.sqrt(ComplexMathUtils.subtract(ComplexMathUtils.multiply(z, z), 1))))); }
public static ComplexNumber atan(ComplexNumber z) { ArgChecker.notNull(z, "z"); ComplexNumber iZ = ComplexMathUtils.multiply(z, I); ComplexNumber half = new ComplexNumber(0, 0.5); return ComplexMathUtils.multiply( half, ComplexMathUtils.log(ComplexMathUtils.divide(ComplexMathUtils.subtract(1, iZ), ComplexMathUtils.add(1, iZ)))); }
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)))))); }
ComplexMathUtils.log(null); } catch (final IllegalArgumentException e) { assertStackTraceElement(e.getStackTrace());