sin,sinl

提供: RAD Studio
移動先: 案内検索

math.h:インデックス への移動


ヘッダーファイル

math.h

カテゴリ

演算ルーチン

プロトタイプ

double sin(double x);

long double sinl(long double x);

説明

サインを計算します。

sin は,入力値のサインを計算します。角度は,ラジアン単位で指定されます。

sinl は long double バージョンです。long double 引数を受け取り,long double の結果を返します。これらの関数のエラー処理は,_matherr および _matherrl 関数を使って変更できます。

戻り値

sin および sinl は,入力値のサインを返します。



 #include <stdio.h>
 #include <math.h>
 int main(void)
 {
    double result, x = 0.5;
    result = sin(x);
    printf("The sin of %lf is %lf\n", x, result);
    return 0;
 }



移植性



POSIX Win32 ANSI C ANSI C++

sin

+

+

+

+

sinl

+

+

+