\mathsf{min}\left(\mathsf{max}\left(\mathsf{min}\left(x, x\right), x\right), x\right)\mathsf{min}\left(\mathsf{max}\left(\mathsf{min}\left(x, x\right), x\right), x\right)double code(double x) {
return ((double) fmin(((double) fmax(((double) fmin(x, x)), x)), x));
}
double code(double x) {
return ((double) fmin(((double) fmax(((double) fmin(x, x)), x)), x));
}



Bits error versus x
Results
Initial program 0
Final simplification0
herbie shell --seed 2020152
(FPCore (x)
:name "(fmin (fmax (fmin x x) x) x)"
:precision binary64
(fmin (fmax (fmin x x) x) x))