diff options
| author | Julian Weigt <juw@posteo.de> | 2026-01-16 16:24:27 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:55:53 +0100 |
| commit | fe85dc4e65d2aea155fbe201ff6378fcc9af0718 (patch) | |
| tree | 9ddbcd961dd7d86215b293b2edba132d58f5e454 /charf.c | |
| parent | 45fd7ef76536fdf78810e63f978bd3fc0be43537 (diff) | |
s/to_double/valuetype_to_double/g
Diffstat (limited to 'charf.c')
| -rw-r--r-- | charf.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -57,7 +57,7 @@ void differentiate(VALUETYPE* f, VALUETYPE* df, int D, int k){ /* printf("df "); - for(int i=0;i<D;i++) printf("%+6.1f ",to_double(df[i])); + for(int i=0;i<D;i++) printf("%+6.1f ",valuetype_to_double(df[i])); printf("\n"); */ } @@ -110,10 +110,10 @@ void compute_maximalfunction(VALUETYPE* f, VALUETYPE* Mf, int D){ /*Print computed functions and averages*/ /* printf("Mf "); - for(int i=0;i<D;i++) printf("%+0.1f ",to_double(Mf[i])); + for(int i=0;i<D;i++) printf("%+0.1f ",valuetype_to_double(Mf[i])); printf("\n"); for(int i=0;i<D;i++){ - for(int j=0;j<D;j++) printf("%0.1f ",to_double(Af[i][j])); + for(int j=0;j<D;j++) printf("%0.1f ",valuetype_to_double(Af[i][j])); printf("\n"); } */ @@ -167,7 +167,7 @@ void format_result(char* s, int index, int k, EXPTYPE p, VALUETYPE r){ int d = generate_function(f,index); sprintf(s,"f: "); int l = 3; - for(int i=0; i<d; i++) l += sprintf(s+l,"%2.0f ",to_double(f[i])); + for(int i=0; i<d; i++) l += sprintf(s+l,"%2.0f ",valuetype_to_double(f[i])); for(int i=d; i<N; i++) l += sprintf(s+l," "); char rts[128]; root_to_string(rts,r,p); @@ -231,7 +231,7 @@ int compute(int index, int num_exponents[K+1], EXPTYPE exponents[K+1][P], VALUET VALUETYPE r = ratio(intdMfp, intdfp); if( - //over_threshold_charf(to_double(r),k) && + //over_threshold_charf(valuetype_to_double(r),k) && is_greater_possibly(r,(*records_ratio)[k][p])){ /*extra check for printing only because in error mode for some reason floats randomly seem to increase by tiny amounts*/ if(is_greater_certainly(r,(*records_ratio)[k][p])){ |
