libm_quadruple(3F)
名前
libm_quadruple - 4 倍精度関数への FORTRAN アクセス (SPARC のみ)
形式
非組み込み関数の例:
REAL*16 c, q_acosh, q_hypot, q_infinity, s, x, y, z
z = q_acosh( x )
i = iq_finite( x )
z = q_hypot( x, y )
z = q_infinity()
CALL q_sincos( x, s, c )
4 倍精度関数は REAL*16 文で使用されます。
説明
これらのサブプログラムを使用すると、4 倍精度の libm 関数にアクセスできます。asind(x)、sind(x) などには、ラジアン値ではなく、度数値が含まれます。
組み込み関数
組み込み関数
次の FORTRAN 組み込み関数は、引数が 4 倍精度の場合に 4 倍精度の値を返します。型文に挿入する必要はありません。必要な関数が組み込み関数として使用できる場合は、非組み込み関数よりも組み込み関数を使用する方が簡単です。
変数 c、l、p、s、u、x、y は REAL*16 です。
sqrt(x)
|
asin(x)
|
acosd(x)*
|
log(x)
|
acos(x)
|
asind(x)*
|
log10(x)
|
atan(x)
|
acosd(x)*
|
exp(x)
|
atan2(x,y)
|
atand(x)*
|
x**y
|
sinh(x)
|
atan2d(x,y)*
|
sin(x)
|
cosh(x)*
|
aint(x)
|
cos(x)
|
tanh(x)*
|
anint(x)
|
tan(x)
|
sind(x)*
|
nint(x)
|
|
* = 非標準: これが組み込み関数であることは拡張機能です。
非組み込み関数
非組み込み関数
これらの関数は標準 FORTRAN の一般的な組み込み関数に対応しないため、データ型は通常の FORTRAN データ型規則に従って決定されます。
これらの 4 倍精度関数のいずれかを使用する場合は、REAL*16 文に挿入するか、または IMPLICIT で入力してください。
ルーチンと引数の意味については、q_ が含まれないルーチン名で man コマンドを実行してください。出力は倍精度関数に関する C のマニュアルページですが、意味は同じです。
変数 c、l、p、s、u、x、y は REAL*16 です。
q_copysign( x, y )
|
real*16
|
function
|
q_fabs( x )
|
real*16
|
function
|
q_fmod( x )
|
real*16
|
function
|
q_infinity( )
|
real*16
|
function
|
iq_finite( x )
|
integer
|
function
|
iq_fp_class( x )
|
integer
|
function
|
iq_ilogb( x )
|
integer
|
function
|
iq_isinf( x )
|
integer
|
function
|
iq_isnan( x )
|
integer
|
function
|
iq_isnormal( x )
|
integer
|
function
|
iq_issubnormal( x )
|
integer
|
function
|
iq_iszero( x )
|
integer
|
function
|
iq_signbit( x )
|
integer
|
function
|
q_max_normal()
|
real*16
|
function
|
q_max_subnormal()
|
real*16
|
function
|
q_min_normal()
|
real*16
|
function
|
q_min_subnormal()
|
real*16
|
function
|
q_nextafter( x, y )
|
real*16
|
function
|
q_quiet_nan( n )
|
real*16
|
function
|
q_remainder( x, y )
|
real*16
|
function
|
q_scalbn( x, n )
|
real*16
|
function
|
q_signaling_nan( n )
|
real*16
|
function
|
|
その他の 4 倍精度 libm 関数を使用する必要がある場合は、libm 関数を呼び出す C 関数を呼び出すことができます。
ファイル
libm.a
関連項目
intro(3M)
『数値計算ガイド』
FORTRAN 77 リファレンスマニュアル