\frac{\left(\frac{8}{3} \cdot \sin \left(x \cdot 0.5\right)\right) \cdot \sin \left(x \cdot 0.5\right)}{\sin x}\frac{1}{\sqrt[3]{1}} \cdot \frac{\frac{\sin \left(0.5 \cdot x\right)}{\sin x} \cdot \left(8 \cdot \sin \left(x \cdot 0.5\right)\right)}{3}double f(double x) {
double r508186 = 8.0;
double r508187 = 3.0;
double r508188 = r508186 / r508187;
double r508189 = x;
double r508190 = 0.5;
double r508191 = r508189 * r508190;
double r508192 = sin(r508191);
double r508193 = r508188 * r508192;
double r508194 = r508193 * r508192;
double r508195 = sin(r508189);
double r508196 = r508194 / r508195;
return r508196;
}
double f(double x) {
double r508197 = 1.0;
double r508198 = cbrt(r508197);
double r508199 = r508197 / r508198;
double r508200 = 0.5;
double r508201 = x;
double r508202 = r508200 * r508201;
double r508203 = sin(r508202);
double r508204 = sin(r508201);
double r508205 = r508203 / r508204;
double r508206 = 8.0;
double r508207 = r508201 * r508200;
double r508208 = sin(r508207);
double r508209 = r508206 * r508208;
double r508210 = r508205 * r508209;
double r508211 = 3.0;
double r508212 = r508210 / r508211;
double r508213 = r508199 * r508212;
return r508213;
}




Bits error versus x
Results
| Original | 14.9 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 14.9
rmApplied *-un-lft-identity14.9
Applied times-frac0.5
Simplified0.5
Simplified0.5
rmApplied associate-*l/0.3
rmApplied add-cube-cbrt0.3
Applied associate-/r*0.6
rmApplied *-un-lft-identity0.6
Applied cbrt-prod0.6
Applied *-un-lft-identity0.6
Applied times-frac0.6
Applied associate-*l*0.6
Simplified0.3
Final simplification0.3
herbie shell --seed 2020035
(FPCore (x)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, A"
:precision binary64
:herbie-target
(/ (/ (* 8 (sin (* x 0.5))) 3) (/ (sin x) (sin (* x 0.5))))
(/ (* (* (/ 8 3) (sin (* x 0.5))) (sin (* x 0.5))) (sin x)))