Manual Reference Pages  - acosh (3fortran)

NAME

ACOSH(3) - [MATHEMATICS:TRIGONOMETRIC] Inverse hyperbolic cosine function

SYNOPSIS

result = acosh(x)

         elemental TYPE(kind=KIND) function acosh(x)

TYPE(kind=KIND),intent(in) :: x

CHARACTERISTICS

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.

DESCRIPTION

ACOSH(3) computes the inverse hyperbolic cosine of X in radians.

OPTIONS

o X : The value to compute the hyperbolic cosine of. A real value should be >= 1 or the result with be a Nan.

RESULT

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

EXAMPLES

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_acosh

Results:

     >    0.0000000000000000 1.3169578969248166 1.7627471740390861

STANDARD

Fortran 2008

SEE ALSO

Inverse function: COSH(3)

RESOURCES

o Wikipedia:hyperbolic functions
Fortran intrinsic descriptions (license: MIT) @urbanjost


Nemo Release 3.1 acosh (3fortran) November 02, 2024
Generated by manServer 1.08 from a847f744-9096-4db0-ad53-086f59499539 using man macros.