From 32c7a6e84f67ec44fbb1b32801271aa096f407b2 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Sat, 27 Dec 2025 15:55:26 +0000 Subject: Fix formula for max. --- charf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'charf.c') diff --git a/charf.c b/charf.c index 6e860ca..b3e1244 100644 --- a/charf.c +++ b/charf.c @@ -169,7 +169,7 @@ void compute(EXPTYPE p, int t){ VALUETYPE intdfp = integratep(df,p); VALUETYPE intdMfp = integratep(dMf,p); - max = max*pow(D,to_double(ratio(convert_int(1),convert_int(p)))); + max = D*pow(max,p); max_operations_per_variable = D*(max_operations_per_variable+1) + D-1 + 1; //printf("%d: %f / %f = %f\n",k,intdMfp[k],intdfp[k],intdMfp[k]/intdfp[k]); -- cgit v1.2.3