s.txt为数组
20190101 12588.2 20190101 18820.9 20190101 -61195.7
20190102 12436.5 20190102 18645.8 20190102 -61264.1
20190103 12326.7 20190103 18504.4 20190103 -61480.9
20190104 12219.4 20190104 18347.3 20190104 -61760.8

A=0.64 
B=0.65
C=-65
cat s.txt 
awk '{print $6/4A + sqrt($2^2+$4^2)/4B}' s > a1
awk '{print $6/4A - sqrt($2^2+$4^2)/4B}' s > a2
awk '{print atan2($4/$2)/2 + C}' s > b
我要求a1 a2 b,请教各位大神怎么计算得到-15298.95660.66的数字,是不是哪里没运算,还有atan2提示:1 is invalid as number of arguments for atan2???
请各位大神帮忙看一下,谢谢!
09-26 02:01