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.0d0, 2.0d0, 3.0d0 ]
       if( any(x.lt.1) )then
          write (*,*) ’ warning: values < 1 are present’
       endif
       write (*,*) acosh(x)
    end program demo_acosh

Results:

     0.000000000000000E+000   1.31695789692482        1.76274717403909

STANDARD

Fortran 2008

SEE ALSO

Inverse function: COSH(3)

RESOURCES

o Wikipedia:hyperbolic functions
fortran-lang intrinsic descriptions (license: MIT) @urbanjost


Nemo Release 3.1 acosh (3fortran) April 28, 2024
Generated by manServer 1.08 from d63628aa-7b4e-416a-8e61-d3b1d6833d4b using man macros.