📄 log2.gml
字号:
.func log2
#include <math.h>
double log2( double x );
.ixfunc2 '&Math' &func
.funcend
.desc begin
The &func function computes the logarithm (base 2) of
.arg x.
A domain error occurs if the argument is negative.
A range error occurs if the argument is zero.
.desc end
.return begin
The &func function returns the logarithm (base 2) of the argument.
.im errnodom
.return end
.see begin
.seelist log2 exp log log10 pow matherr
.see end
.exmp begin
#include <stdio.h>
#include <math.h>
void main()
{
printf( "%f\n", log2(.25) );
}
.exmp output
-2.000000
.exmp end
.class WATCOM
.system
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -