\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120a \cdot 120 + 60 \cdot \frac{x - y}{z - t}(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
(FPCore (x y z t a) :precision binary64 (+ (* a 120.0) (* 60.0 (/ (- x y) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 * ((x - y) / (z - t)));
}















Bits error versus x















Bits error versus y















Bits error versus z















Bits error versus t















Bits error versus a
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
| Alternative 1 | |
|---|---|
| Error | 0.2 |
| Cost | 832 |
| Alternative 2 | |
|---|---|
| Error | 6.7 |
| Cost | 1346 |
| Alternative 3 | |
|---|---|
| Error | 6.8 |
| Cost | 1032 |
| Alternative 4 | |
|---|---|
| Error | 10.9 |
| Cost | 1288 |
| Alternative 5 | |
|---|---|
| Error | 11.0 |
| Cost | 1288 |
| Alternative 6 | |
|---|---|
| Error | 15.0 |
| Cost | 1160 |
| Alternative 7 | |
|---|---|
| Error | 25.6 |
| Cost | 2693 |
| Alternative 8 | |
|---|---|
| Error | 25.4 |
| Cost | 1032 |
| Alternative 9 | |
|---|---|
| Error | 29.2 |
| Cost | 192 |
| Alternative 10 | |
|---|---|
| Error | 61.7 |
| Cost | 64 |
| Alternative 11 | |
|---|---|
| Error | 61.8 |
| Cost | 64 |

Initial program 0.4
rmApplied *-un-lft-identity_binary64_239480.4
Applied times-frac_binary64_239540.1
Simplified0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2021044
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:herbie-target
(+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))