--- プログラム ---

BEGIN{
for(i=0;i<30;i=i+0.3)
{
printf "%010d %+1.5f",10**int(((sin(i)+1)/2)*10),sin(i)
print
}
}


--- 実行結果 ---

0000100000 +0.00000
0001000000 +0.29552
0010000000 +0.56464
0100000000 +0.78333
1000000000 +0.93204
1000000000 +0.99749
1000000000 +0.97385
1000000000 +0.86321
0100000000 +0.67546
0010000000 +0.42738
0000100000 +0.14112
0000010000 -0.15775
0000000100 -0.44252
0000000010 -0.68777
0000000001 -0.87158
0000000001 -0.97753
0000000001 -0.99616
0000000001 -0.92581
0000000010 -0.77276
0000000100 -0.55069
0000001000 -0.27942
0000100000 +0.01681
0001000000 +0.31154
0010000000 +0.57844
0100000000 +0.79367
1000000000 +0.93800
1000000000 +0.99854
1000000000 +0.96989
1000000000 +0.85460
0100000000 +0.66297
0010000000 +0.41212
0000100000 +0.12445
0000010000 -0.17433
0000000100 -0.45754
0000000010 -0.69987
0000000001 -0.87970
0000000001 -0.98094
0000000001 -0.99455
0000000001 -0.91933
0000000010 -0.76198
0000000100 -0.53657
0000001000 -0.26323
0000100000 +0.03362
0001000000 +0.32747
0010000000 +0.59207
1000000000 +0.80378
1000000000 +0.94370
1000000000 +0.99931
1000000000 +0.96566
1000000000 +0.84575
0100000000 +0.65029
0001000000 +0.39674
0000100000 +0.10775
0000010000 -0.19086
0000000100 -0.47242
0000000010 -0.71179
0000000001 -0.88757
0000000001 -0.98407
0000000001 -0.99266
0000000001 -0.91258
0000000010 -0.75099
0000000100 -0.52231
0000001000 -0.24697
0000100000 +0.05042
0001000000 +0.34331
0100000000 +0.60554
1000000000 +0.81367
1000000000 +0.94912
1000000000 +0.99979
1000000000 +0.96115
1000000000 +0.83666
0100000000 +0.63742
0001000000 +0.38125
0000100000 +0.09102
0000001000 -0.20734
0000000100 -0.48717
0000000010 -0.72349
0000000001 -0.89519
0000000001 -0.98692
0000000001 -0.99049
0000000001 -0.90558
0000000010 -0.73978
0000000100 -0.50790
0000001000 -0.23065
0000100000 +0.06721
0001000000 +0.35906
0100000000 +0.61884
1000000000 +0.82333
1000000000 +0.95429
1000000000 +0.99999
1000000000 +0.95638
1000000000 +0.82733
0100000000 +0.62438
0001000000 +0.36565
0000100000 +0.07427
0000001000 -0.22376
0000000100 -0.50179
0000000010 -0.73500
0000000001 -0.90255
0000000001 -0.98949






戻る