\frac{x - lo}{hi - lo}\frac{\sqrt{x - lo}}{\sqrt[3]{hi} \cdot \sqrt[3]{hi}} \cdot \frac{\sqrt{x - lo}}{{\left(e^{\sqrt[3]{\log \left(\sqrt[3]{hi}\right)} \cdot \sqrt[3]{\log \left(\sqrt[3]{hi}\right)}}\right)}^{\left(\sqrt[3]{\log \left(\sqrt[3]{hi}\right)}\right)}}(FPCore (lo hi x) :precision binary64 (/ (- x lo) (- hi lo)))
(FPCore (lo hi x)
:precision binary64
(*
(/ (sqrt (- x lo)) (* (cbrt hi) (cbrt hi)))
(/
(sqrt (- x lo))
(pow
(exp (* (cbrt (log (cbrt hi))) (cbrt (log (cbrt hi)))))
(cbrt (log (cbrt hi)))))))double code(double lo, double hi, double x) {
return (x - lo) / (hi - lo);
}
double code(double lo, double hi, double x) {
return (sqrt(x - lo) / (cbrt(hi) * cbrt(hi))) * (sqrt(x - lo) / pow(exp(cbrt(log(cbrt(hi))) * cbrt(log(cbrt(hi)))), cbrt(log(cbrt(hi)))));
}



Bits error versus lo



Bits error versus hi



Bits error versus x
Results
Initial program 62.0
Taylor expanded around inf 52.0
rmApplied add-cube-cbrt_binary64_79552.0
Applied add-sqr-sqrt_binary64_78252.0
Applied times-frac_binary64_76652.0
rmApplied add-exp-log_binary64_79852.0
rmApplied add-cube-cbrt_binary64_79552.0
Applied exp-prod_binary64_81252.0
Final simplification52.0
herbie shell --seed 2021015
(FPCore (lo hi x)
:name "(/ (- x lo) (- hi lo))"
:precision binary64
:pre (and (< lo -1e+308) (> hi 1e+308))
(/ (- x lo) (- hi lo)))