Hàm tính hypebol sinx, cosx, tanx

double sinh(double x);
double cosh(double x);
double tanh(double x);

Parameter:

x: góc (radian)

Remark:

Các hàm trên trả về hypebol sin, cos, tan của x.

Ví dụ:

#include <math.h>
#include "conio.h"
#include <stdio.h>

void main( void )
{
    double pi = 3.1415926535;
    double x, y;

    x = pi / 2;
    y = sinh( x );
    printf( "sinh( %f ) = %f\n", x, y);
    y = cosh( x );
    printf( "cosh( %f ) = %f\n", x, y);
    y = tanh( x );
    printf( "tanh( %f ) = %f\n", x, y);
    getch();
}

Kết quả:

Hàm sinh, cosh, tanh

Be the first to comment

Leave a Reply