pow.gml

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

GML
45
字号
.func pow
#include <math.h>
double pow( double x, double y );
.ixfunc2 '&Math' &func
.funcend
.desc begin
The &func function computes
.arg x
raised to the power
.arg y.
A domain error occurs if
.arg x
is zero and
.arg y
is less than or equal to 0, or if
.arg x
is negative and
.arg y
is not an integer.
A range error may occur.
.desc end
.return begin
The &func function returns the value of
.arg x
raised to the power
.arg y.
.im errnodom
.return end
.see begin
.seelist pow exp log sqrt
.see end
.exmp begin
#include <stdio.h>
#include <math.h>

void main()
  {
    printf( "%f\n", pow( 1.5, 2.5 ) );
  }
.exmp output
2.755676
.exmp end
.class ANSI
.system

⌨️ 快捷键说明

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