ACOSH(3) - [MATHEMATICS:TRIGONOMETRIC] Inverse hyperbolic cosine function
result = acosh(x)
elemental TYPE(kind=KIND) function acosh(x)TYPE(kind=KIND),intent(in) :: x
o TYPE may be real or complex o KIND may be any kind supported by the associated type. o The returned value will be of the same type and kind as the argument.
ACOSH(3) computes the inverse hyperbolic cosine of X in radians.
o X : The value to compute the hyperbolic cosine of. A real value should be >= 1 or the result with be a Nan.
The result has a value equal to a processor-dependent approximation to the inverse hyperbolic cosine function of X.
If X is complex, the imaginary part of the result is in radians and lies between
0 <= aimag(acosh(x)) <= PI
Sample program:
program demo_acosh use,intrinsic :: iso_fortran_env, only : dp=>real64,sp=>real32 implicit none real(kind=dp), dimension(3) :: x = [ 1.0_dp, 2.0_dp, 3.0_dp ] if( any(x.lt.1) )then write (*,*) warning: values < 1 are present endif write (*,*) acosh(x) end program demo_acoshResults:
> 0.0000000000000000 1.3169578969248166 1.7627471740390861
Fortran 2008
Inverse function: COSH(3)
Fortran intrinsic descriptions (license: MIT) @urbanjost
o Wikipedia:hyperbolic functions
Nemo Release 3.1 | acosh (3fortran) | November 02, 2024 |