summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2025-12-27 15:55:26 +0000
committerJulian Weigt <juw@posteo.de>2026-02-04 15:55:47 +0100
commit32c7a6e84f67ec44fbb1b32801271aa096f407b2 (patch)
tree0025f94833ac94883e776305720af0fad24e4810
parenta821b9953f9386614fb7657919c431d0c90eece3 (diff)
Fix formula for max.
-rw-r--r--charf.c2
1 files changed, 1 insertions, 1 deletions
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]);