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












Bits error versus x












Bits error versus y












Bits error versus z
Results
| Alternative 1 | |
|---|---|
| Error | 6.9 |
| Cost | 13762 |
| Alternative 2 | |
|---|---|
| Error | 12.7 |
| Cost | 8453 |
| Alternative 3 | |
|---|---|
| Error | 12.9 |
| Cost | 8204 |
| Alternative 4 | |
|---|---|
| Error | 12.3 |
| Cost | 6920 |
| Alternative 5 | |
|---|---|
| Error | 19.4 |
| Cost | 1032 |
| Alternative 6 | |
|---|---|
| Error | 19.3 |
| Cost | 776 |
| Alternative 7 | |
|---|---|
| Error | 24.7 |
| Cost | 192 |
| Alternative 8 | |
|---|---|
| Error | 25.6 |
| Cost | 706 |
| Alternative 9 | |
|---|---|
| Error | 50.4 |
| Cost | 64 |

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