Rate This Document
Findability
Accuracy
Completeness
Readability

v?sinh

Interface Definition

C interface:

void vssinh(const int len, const float* src, float* dst);

void vdsinh(const int len, const double* src, double* dst);

void vcsinh(const int len, const float complex *src, float complex *dst);

void vzsinh(const int len, const double complex *src, double complex *dst);

Fortran interface:

CALL VSSINH(LEN, SRC, DST);

CALL VDSINH(LEN, SRC, DST);

Parameters

Parameter

Type

Description

Input/Output

len

Integer

Number of elements in the input vector.

If len ≤ 0, the system displays a message indicating that the value of len is invalid.

Input

src

  • Single-precision floating-point type for vssinh
  • Double-precision floating-point type for vdsinh
  • Single-precision floating-point complex type for vcsinh
  • Double-precision floating-point complex type for vzsinh

Input vector src with length len.

If the pointer is null, the system prompts a null pointer error.

Input

dst

  • Single-precision floating-point type for vssinh
  • Double-precision floating-point type for vdsinh
  • Single-precision floating-point complex type for vcsinh
  • Double-precision floating-point complex type for vzsinh

Output vector dst with length len.

If the pointer is null, the system prompts a null pointer error.

Output

Return Value

  • The hyperbolic sine y of radian angle x is returned for each operation value, that is, y = sinh(x). y ∈ [-∞, +∞]
  • For special values, see the following table.

    Input Radian (src)

    Output Hyperbolic Sine (dst)

    +0

    +0

    -0

    -0

    +inf

    +inf

    -inf

    -inf

    nan

    nan

    x > 0x1.65a9f8p+6 (float)

    +inf

    x < -0x1.65a9f8p+6 (float)

    -inf

    x > 0x1.633ce8fb9f87dp9 (double)

    +inf

    x < -0x1.633ce8fb9f87dp9 (double)

    -inf

Dependency

C: "kvml.h"

Examples

C interface:

    int i, len = 4; 
    float src[len] = {0.0f, 1.0f, inf, nan}; 
    float* dst = (float*)malloc(sizeof(float) * len); 
    if (dst == NULL) { 
        printf("Malloc Failed!\n"); 
        return 0; 
    } 
    vssinh(len, src, dst); 
    /** 
     *  Output dst: 
     *     0.0  1.1752011936  inf  nan 
     * 
     */

Fortran interface:

    INTEGER :: LEN = 4 
    REAL(4) :: SRC(4)  
    REAL(4) :: DST(4) 
    DATA SRC/1, 2, 3, 4/ 
    CALL VSSINH(LEN, SRC, DST) 
    !  
    ! OUTPUT DST: 
    !     1.17520119, 3.62686041, 10.0178749, 27.2899172 
    !