double code(double x, double y, double z, double t) {
return (((x - 1.0) * log(y)) + ((z - 1.0) * log(1.0 - y))) - t;
}
double code(double x, double y, double z, double t) {
return (((x - 1.0) * log(sqrt(y))) + (((x - 1.0) * (log(fabs(pow(y, 0.3333333333333333))) + log(sqrt(cbrt(y))))) + ((z - 1.0) * (log(1.0) - ((1.0 * y) + (0.5 * ((y * y) / (1.0 * 1.0)))))))) - t;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
Initial program 6.8
Taylor expanded around 0 0.4
Simplified0.4
rmApplied add-sqr-sqrt0.4
Applied log-prod0.4
Applied distribute-lft-in0.4
Applied associate-+l+0.4
rmApplied add-cube-cbrt0.4
Applied sqrt-prod0.4
Applied log-prod0.4
Simplified0.4
rmApplied pow1/30.4
Final simplification0.4
herbie shell --seed 2020338
(FPCore (x y z t)
:name "Statistics.Distribution.Beta:$cdensity from math-functions-0.1.5.2"
:precision binary64
(- (+ (* (- x 1.0) (log y)) (* (- z 1.0) (log (- 1.0 y)))) t))