How to use the model from Python
> curl -s "https://ehw.fit.vutbr.cz/evoapprox8b/master?folder=multipliers_8&file=source_c/mul8_CarrySaveArrayMultiplier_Using_CarrySelectAdder.c&pyx=bash" | bash
> python
import pyximport; pyximport.install()
import mul8_CarrySaveArrayMultiplier_Using_CarrySelectAdder
wce = e = 0
for i in range(0,2**8):
for j in range(0,2**8):
diff = abs(mul8_CarrySaveArrayMultiplier_Using_CarrySelectAdder.mul(i,j) - (i*j))
if diff > wce: wce = diff
e += diff
print('average error magnitude (mae)',e/(2.0**(16)))
print('worst-case error magnitude (wce)',wce)