source: vendor/gawk/3.1.5/test/math.awk@ 3076

Last change on this file since 3076 was 3076, checked in by bird, 19 years ago

gawk 3.1.5

File size: 262 bytes
Line 
1BEGIN {
2 pi = 3.1415927
3 printf "cos(%f) = %f\n", pi/4, cos(pi/4)
4 printf "sin(%f) = %f\n", pi/4, sin(pi/4)
5 e = exp(1)
6 printf "e = %f\n", e
7 printf "log(e) = %f\n", log(e)
8 printf "sqrt(pi ^ 2) = %f\n", sqrt(pi ^ 2)
9 printf "atan2(1, 1) = %f\n", atan2(1, 1)
10}
Note: See TracBrowser for help on using the repository browser.