MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / asinh

Method asinh

src/org/opensourcephysics/numerics/Complex.java:717–728  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

715 //------------------------------------------------------------------------
716 // Inverse hyperbolic trigonometric functions
717 public Complex asinh() {
718 Complex result;
719 // asinh(z) = log(z + sqrt(z*z + 1))
720 result = new Complex(((re*re)-(im*im))+1, (re*im)+(im*re));
721 result = result.sqrt();
722 result.re += re;
723 result.im += im;
724 double temp = result.arg();
725 result.re = Math.log(result.abs());
726 result.im = temp;
727 return result;
728 }
729
730 public Complex acosh() {
731 Complex result;

Callers

nothing calls this directly

Calls 4

sqrtMethod · 0.95
argMethod · 0.95
absMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected