\left(x + \sin y\right) + z \cdot \cos y
\left(x + \sin y\right) + z \cdot \cos y
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
double code(double x, double y, double z) {
return (x + sin(y)) + (z * cos(y));
}
double code(double x, double y, double z) {
return (x + sin(y)) + (z * cos(y));
}












Bits error versus x












Bits error versus y












Bits error versus z
Results
| Alternative 1 | |
|---|---|
| Error | 6.7 |
| Cost | 13762 |
| Alternative 2 | |
|---|---|
| Error | 6.7 |
| Cost | 7048 |
| Alternative 3 | |
|---|---|
| Error | 9.8 |
| Cost | 7876 |
| Alternative 4 | |
|---|---|
| Error | 11.9 |
| Cost | 6920 |
| Alternative 5 | |
|---|---|
| Error | 19.1 |
| Cost | 648 |
| Alternative 6 | |
|---|---|
| Error | 21.6 |
| Cost | 192 |
| Alternative 7 | |
|---|---|
| Error | 36.9 |
| Cost | 64 |
| Alternative 8 | |
|---|---|
| Error | 61.3 |
| Cost | 64 |
| Alternative 9 | |
|---|---|
| Error | 61.2 |
| Cost | 64 |

Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y z)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, C"
:precision binary64
(+ (+ x (sin y)) (* z (cos y))))