(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
(FPCore (x y z t a b c i) :precision binary64 (fma y i (- (+ a (+ t (+ (* (log y) x) (fma (log c) b z)))) (* (log c) 0.5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(y, i, ((a + (t + ((log(y) * x) + fma(log(c), b, z)))) - (log(c) * 0.5)));
}
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function code(x, y, z, t, a, b, c, i) return fma(y, i, Float64(Float64(a + Float64(t + Float64(Float64(log(y) * x) + fma(log(c), b, z)))) - Float64(log(c) * 0.5))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i + N[(N[(a + N[(t + N[(N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * b + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[Log[c], $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\mathsf{fma}\left(y, i, \left(a + \left(t + \left(\log y \cdot x + \mathsf{fma}\left(\log c, b, z\right)\right)\right)\right) - \log c \cdot 0.5\right)



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a



Bits error versus b



Bits error versus c



Bits error versus i
Initial program 0.1
Simplified0.1
Taylor expanded in b around 0 0.1
Applied fma-def_binary640.1
Final simplification0.1
herbie shell --seed 2022131
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
:precision binary64
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))