Finding the Inverse Hyperbolic Sine of Complex Number in Golang
Go language provides inbuilt support for basic constants and mathematical functions for complex numbers with the help of the cmplx package. You are allowed to find the inverse hyperbolic sine of the specified complex number with the help of Asinh() function provided by the math/cmplx package. So, you need to add a math/cmplx package in your program with the help of the import keyword to access the Asinh() function.
func Asinh(x complex128) complex128
Let us discuss this concept with the help of the given examples:
Result 1: (2.37054853731792+1.184231684275022i) Result 2: (-3.1817205225071747+0.7249311476979132i) Result 3: (-2.8440976626506607-0.9473406443130534i)
Complex Number 1: (2+3i) Inverse hyperbolic sine 1: (1.9686379257930964+0.9646585044076027i) Complex Number 2: (6+8i) Inverse hyperbolic sine 2: (2.995040217583994+0.9248902126310973i) Sum of inverse hyperbolic sines : (4.9636781433770905+1.8895487170387i)