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

Method acosh

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

Source from the content-addressed store, hash-verified

728 }
729
730 public Complex acosh() {
731 Complex result;
732 // acosh(z) = log(z + sqrt(z*z - 1))
733 result = new Complex(((re*re)-(im*im))-1, (re*im)+(im*re));
734 result = result.sqrt();
735 result.re += re;
736 result.im += im;
737 double temp = result.arg();
738 result.re = Math.log(result.abs());
739 result.im = temp;
740 return result;
741 }
742
743 public Complex atanh() {
744 // atanh(z) = 1/2 * log( (1+z)/(1-z) )

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