Mail Archives: djgpp-workers/1999/01/14/10:48:04
> awk 'BEGIN { print log(0), log(-1), log(100) }'
> awk 'BEGIN { print exp(0), exp(1000000), exp(0.5) }'
Redhat 5.1: GNU Awk 3.0.3
$ awk 'BEGIN { print log(0), log(-1), log(100) }'
awk: cmd. line:1: warning: log called with negative argument -1
-Inf NaN 4.60517
$ awk 'BEGIN { print exp(0), exp(1000000), exp(0.5) }'
awk: cmd. line:1: warning: exp argument 1e+06 is out of range
1 Inf 1.64872
SGI IRIX 5.3: native awk
$ awk 'BEGIN { print log(0), log(-1), log(100) }'
-inf nan0x10000000 4.60517
$ awk 'BEGIN { print exp(0), exp(1000000), exp(0.5) }'
1 inf 1.64872
- Raw text -