Oracle Solaris Studio 12.4 Man Pages

Exit Print View

Updated: January 2015
 
 

libm_quadruple(3F)

Name

libm_quadruple - FORTRAN 对四精度函数的访问(仅限 SPARC)

Synopsis

非内部函数示例:
 
    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 )
使用的四精度函数位于 REAL*16 语句中。

Description

这些函数提供对四精度 libm 函数的访问。asind(x)sind(x) 等等涉及的是而不是弧度

内部函数

内部函数

以下 FORTRAN 内部函数在其参数为四精度时返回四精度值。不需要将它们放置在一个类型语句中。如果作为内部函数提供了所需的函数,则使用内部函数比使用非内部函数更简单。

变量 clpsuxyREAL*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 数据类型确定规则。

如果您使用这些四精度函数之一,请将其放置到一个 REAL*16 语句中,或者使用 IMPLICIT 确定其类型。

要了解例程和参数的含义,请对不带 q_ 的例程名执行 man 命令;输出是双精度函数的 C 手册页,但是含义是相同的。

变量 clpsuxyREAL*16

q_copysign( x, y )
real*16
函数
q_fabs( x )
real*16
函数
q_fmod( x )
real*16
函数
q_infinity( )
real*16
函数
iq_finite( x )
整数
函数
iq_fp_class( x )
整数
函数
iq_ilogb( x )
整数
函数
iq_isinf( x )
整数
函数
iq_isnan( x )
整数
函数
iq_isnormal( x )
整数
函数
iq_issubnormal( x )
整数
函数
iq_iszero( x )
整数
函数
iq_signbit( x )
整数
函数
q_max_normal()
real*16
函数
q_max_subnormal()
real*16
函数
q_min_normal()
real*16
函数
q_min_subnormal()
real*16
函数
q_nextafter( x, y )
real*16
函数
q_quiet_nan( n )
real*16
函数
q_remainder( x, y )
real*16
函数
q_scalbn( x, n )
real*16
函数
q_signaling_nan( n )
real*16
函数

如果需要使用任何其他四精度 libm 函数,则可以调用一个调用 libm 函数的 C 函数。

Files

libm.a

See also

intro(3M)

数值计算指南

《FORTRAN 77 Reference Manual》