migrated math functions in Awk and StdAwk
This commit is contained in:
13
qse/regress/awk/lang-045.awk
Normal file
13
qse/regress/awk/lang-045.awk
Normal file
@ -0,0 +1,13 @@
|
||||
BEGIN {
|
||||
for (i = -10.0; i < 10.0; i++)
|
||||
{
|
||||
print sin(i);
|
||||
print cos(i);
|
||||
print tan(i);
|
||||
print atan(i);
|
||||
print atan2(i, 1);
|
||||
print log(i);
|
||||
print exp(i);
|
||||
print sqrt(i);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user