diff options
| author | Julian Weigt <juw@posteo.de> | 2025-12-28 15:40:34 +0000 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:55:49 +0100 |
| commit | 3cff2acc8eec95183fe4cd3dcc3a3bf30b37ce66 (patch) | |
| tree | d2f3627b2d6c1a0a65c3713ab9bb687ea2c1d1b0 /charf.c | |
| parent | 634f01454f1c0f1a33adc50b5f584e39748ff832 (diff) | |
Add root_to_string function to enable printing of roots.
Diffstat (limited to 'charf.c')
| -rw-r--r-- | charf.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -177,13 +177,14 @@ void compute(EXPTYPE p, int t){ /*Print f and ||Mf^{(k)}||_p/||f^{(k)}||_p if the latter is close to 1/2.*/ //if(to_double(r)>.4997) if(to_double(r)>.65) + //if(to_double(r)>.30) { printf("f: "); for(int i=0;i<D;i++) printf("%1.0f ",to_double(f[i])); printf("\n"); char s[128]; - to_string(s,r); - printf("%.4f (%s)\n",to_double(r),s); + root_to_string(s,r,p); + printf("%s\n",s); } } |
