diff options
| author | wukong <wukong@longaeva> | 2018-06-16 23:38:02 -0700 |
|---|---|---|
| committer | wukong <wukong@longaeva> | 2018-06-16 23:38:02 -0700 |
| commit | 4916e9b13765de970deff094abb3eb50c663834a (patch) | |
| tree | 11d90adf7b1d7179298550bee866aa2ed7aa8a75 /lin_reg1.awk | |
| parent | 39d1486694b3baac5bfafe11f73e179530d6c109 (diff) | |
bumped up number of printed digits
Diffstat (limited to '')
| -rwxr-xr-x | lin_reg1.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lin_reg1.awk b/lin_reg1.awk index 2d21c29..cf3e69a 100755 --- a/lin_reg1.awk +++ b/lin_reg1.awk @@ -4,7 +4,7 @@ # simple linear regression between columns BEGIN { - OFS = "%.9g" + OFS = "%.18g" sign = "[+-]?" decimal = "[0-9]+[.]?[0-9]*" fraction = "[.][0-9]*" @@ -68,7 +68,7 @@ END { for (x=1; x<=nf_max; x++) { if (x != y && r[x,y]) { r2[x,y] = r[x,y]*r[x,y] - printf("\n %.9g \t (%s) \t = %.9g(%s) \t + %.9g", + printf("\n %.18g \t (%s) \t = %.18g(%s) \t + %.18g", 10.0*log(r2[x,y])/log(10), header[y], b[x,y], header[x], a[x,y]) } } |
