tan (マクロ)
パッケージ: CURL.LANGUAGE.COMPILER

角度の正接を計算します。

シグネチャ

{tan x}:result
x: Angle 型または FloatAngle 型の角度です。

戻り値

x の正接です。

xFloatAngle の場合、結果は float です。それ以外の場合、結果は double です。

説明

x が有限数でない場合は、nan が返されます。


例: tan を各種の値と共に使用
{import * from CURL.LANGUAGE.MATH-CONSTANT}
{text
    {br} tangent of pi/4 is {tan quarter-pi * 1rad}
    {br} tangent of 0 is {tan 0rad}
    {br} tangent of -pi/4 is {tan -quarter-pi * 1rad}
}