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










Bits error versus x










Bits error versus y










Bits error versus z
Results
| Alternative 1 | |
|---|---|
| Error | 0.0 |
| Cost | 448 |
| Alternative 2 | |
|---|---|
| Error | 1.1 |
| Cost | 648 |
| Alternative 3 | |
|---|---|
| Error | 12.5 |
| Cost | 1604 |
| Alternative 4 | |
|---|---|
| Error | 12.6 |
| Cost | 1604 |
| Alternative 5 | |
|---|---|
| Error | 24.1 |
| Cost | 785 |
| Alternative 6 | |
|---|---|
| Error | 34.7 |
| Cost | 64 |
| Alternative 7 | |
|---|---|
| Error | 61.8 |
| Cost | 64 |

Initial program 0.0
rmApplied sub-neg_binary64_710.0
Applied distribute-rgt-in_binary64_280.0
Simplified0.0
Simplified0.0
rmApplied distribute-rgt-neg-out_binary64_380.0
Applied unsub-neg_binary64_720.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y z)
:name "SynthBasics:oscSampleBasedAux from YampaSynth-0.2"
:precision binary64
(+ x (* y (- z x))))