exp.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 33 行

GML
33
字号
.func exp
#include <math.h>
double exp( double x );
.ixfunc2 '&Math' &func
.funcend
.desc begin
The &func function computes the exponential function of
.arg x.
A range error occurs if the magnitude of
.arg x
is too large.
.desc end
.return begin
The &func function returns the exponential value.
.im errnorng
.return end
.see begin
.seelist exp log matherr
.see end
.exmp begin
#include <stdio.h>
#include <math.h>

void main()
  {
    printf( "%f\n", exp(.5) );
  }
.exmp output
1.648721
.exmp end
.class ANSI
.system

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?