
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(/
(/
(fma
x
(fma
x
(fma
x
(/
(fma (* x x) 17.342137594641823 -6193.6101064416025)
(fma x 4.16438922228 -78.6994924154))
137.519416416)
y)
z)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606))
(/ 1.0 (+ x -2.0)))
(/ 1.0 (/ 0.24013125253755718 x))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (fma(x, fma(x, fma(x, (fma((x * x), 17.342137594641823, -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), 137.519416416), y), z) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606)) / (1.0 / (x + -2.0));
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(Float64(fma(x, fma(x, fma(x, Float64(fma(Float64(x * x), 17.342137594641823, -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), 137.519416416), y), z) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606)) / Float64(1.0 / Float64(x + -2.0))); else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(x * N[(x * N[(x * N[(N[(N[(x * x), $MachinePrecision] * 17.342137594641823 + -6193.6101064416025), $MachinePrecision] / N[(x * 4.16438922228 + -78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\frac{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\mathsf{fma}\left(x \cdot x, 17.342137594641823, -6193.6101064416025\right)}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}}{\frac{1}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < +inf.0Initial program 92.5%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr98.9%
flip-+N/A
/-lowering-/.f64N/A
sub-negN/A
swap-sqrN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
metadata-evalN/A
metadata-evalN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
metadata-eval98.9
Applied egg-rr98.9%
if +inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.0%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
Taylor expanded in x around inf
/-lowering-/.f6499.4
Simplified99.4%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(/
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(/
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)
(+ x -2.0)))
(/ 1.0 (/ 0.24013125253755718 x))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / (fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / (x + -2.0));
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / Float64(x + -2.0))); else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < +inf.0Initial program 92.5%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr98.9%
associate-/l/N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f64N/A
Applied egg-rr98.9%
if +inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.0%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
Taylor expanded in x around inf
/-lowering-/.f6499.4
Simplified99.4%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(/
(+ x -2.0)
(/
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)))
(/ 1.0 (/ 0.24013125253755718 x))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (x + -2.0) / (fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z));
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(Float64(x + -2.0) / Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z))); else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\frac{x + -2}{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < +inf.0Initial program 92.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Applied egg-rr98.7%
if +inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.0%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
Taylor expanded in x around inf
/-lowering-/.f6499.4
Simplified99.4%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(/
(+ x -2.0)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(/ 1.0 (/ 0.24013125253755718 x))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * ((x + -2.0) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * Float64(Float64(x + -2.0) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < +inf.0Initial program 92.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Applied egg-rr98.6%
if +inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.0%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr0.0%
Taylor expanded in x around inf
/-lowering-/.f6499.4
Simplified99.4%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1.35)
(/
1.0
(/
(-
(/ (+ 6.349501247902845 (/ -42.87307123793778 x)) x)
-0.24013125253755718)
x))
(if (<= x 9.5)
(/
(* (- x 2.0) (+ z (* x (fma x 137.519416416 y))))
(fma x 313.399215894 47.066876606))
(if (<= x 8.5e+73)
(/
1.0
(/
(* x (* x x))
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)))
(/ 1.0 (/ 0.24013125253755718 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.35) {
tmp = 1.0 / ((((6.349501247902845 + (-42.87307123793778 / x)) / x) - -0.24013125253755718) / x);
} else if (x <= 9.5) {
tmp = ((x - 2.0) * (z + (x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606);
} else if (x <= 8.5e+73) {
tmp = 1.0 / ((x * (x * x)) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z));
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -1.35) tmp = Float64(1.0 / Float64(Float64(Float64(Float64(6.349501247902845 + Float64(-42.87307123793778 / x)) / x) - -0.24013125253755718) / x)); elseif (x <= 9.5) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606)); elseif (x <= 8.5e+73) tmp = Float64(1.0 / Float64(Float64(x * Float64(x * x)) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z))); else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -1.35], N[(1.0 / N[(N[(N[(N[(6.349501247902845 + N[(-42.87307123793778 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -0.24013125253755718), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(x * 137.519416416 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * 313.399215894 + 47.066876606), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+73], N[(1.0 / N[(N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;\frac{1}{\frac{\frac{6.349501247902845 + \frac{-42.87307123793778}{x}}{x} - -0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq 9.5:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \mathsf{fma}\left(x, 137.519416416, y\right)\right)}{\mathsf{fma}\left(x, 313.399215894, 47.066876606\right)}\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+73}:\\
\;\;\;\;\frac{1}{\frac{x \cdot \left(x \cdot x\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if x < -1.3500000000000001Initial program 17.8%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr25.3%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr25.3%
Taylor expanded in x around -inf
mul-1-negN/A
distribute-neg-frac2N/A
mul-1-negN/A
/-lowering-/.f64N/A
Simplified90.3%
if -1.3500000000000001 < x < 9.5Initial program 99.6%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6499.2
Simplified99.2%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6498.2
Simplified98.2%
if 9.5 < x < 8.4999999999999998e73Initial program 65.7%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr93.9%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr93.9%
Taylor expanded in x around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6486.0
Simplified86.0%
if 8.4999999999999998e73 < x Initial program 0.1%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr1.7%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr1.8%
Taylor expanded in x around inf
/-lowering-/.f6499.4
Simplified99.4%
Final simplification95.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(-
(/
(+
(/ (- (/ (+ y -130977.50649958357) x) -3655.1204654076414) x)
-110.1139242984811)
x)
-4.16438922228))))
(if (<= x -105000000000.0)
t_0
(if (<= x 140000.0)
(/
(* (- x 2.0) (+ z (* x (fma x 137.519416416 y))))
(fma
(fma x (+ x 43.3400022514) 263.505074721)
(* x x)
(fma x 313.399215894 47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = x * (((((((y + -130977.50649958357) / x) - -3655.1204654076414) / x) + -110.1139242984811) / x) - -4.16438922228);
double tmp;
if (x <= -105000000000.0) {
tmp = t_0;
} else if (x <= 140000.0) {
tmp = ((x - 2.0) * (z + (x * fma(x, 137.519416416, y)))) / fma(fma(x, (x + 43.3400022514), 263.505074721), (x * x), fma(x, 313.399215894, 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + -130977.50649958357) / x) - -3655.1204654076414) / x) + -110.1139242984811) / x) - -4.16438922228)) tmp = 0.0 if (x <= -105000000000.0) tmp = t_0; elseif (x <= 140000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * fma(x, 137.519416416, y)))) / fma(fma(x, Float64(x + 43.3400022514), 263.505074721), Float64(x * x), fma(x, 313.399215894, 47.066876606))); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(N[(N[(N[(N[(N[(y + -130977.50649958357), $MachinePrecision] / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -105000000000.0], t$95$0, If[LessEqual[x, 140000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(x * 137.519416416 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] * N[(x * x), $MachinePrecision] + N[(x * 313.399215894 + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(\frac{\frac{\frac{y + -130977.50649958357}{x} - -3655.1204654076414}{x} + -110.1139242984811}{x} - -4.16438922228\right)\\
\mathbf{if}\;x \leq -105000000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 140000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \mathsf{fma}\left(x, 137.519416416, y\right)\right)}{\mathsf{fma}\left(\mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), x \cdot x, \mathsf{fma}\left(x, 313.399215894, 47.066876606\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.05e11 or 1.4e5 < x Initial program 16.7%
Taylor expanded in z around 0
Simplified16.0%
Taylor expanded in x around -inf
Simplified95.3%
if -1.05e11 < x < 1.4e5Initial program 99.6%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6499.2
Simplified99.2%
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*l*N/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
accelerator-lowering-fma.f6499.2
Applied egg-rr99.2%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(-
(/
(+
(/ (- (/ (+ y -130977.50649958357) x) -3655.1204654076414) x)
-110.1139242984811)
x)
-4.16438922228))))
(if (<= x -40000000000.0)
t_0
(if (<= x 140000.0)
(/
(* (- x 2.0) (fma x (fma x 137.519416416 y) z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
t_0))))
double code(double x, double y, double z) {
double t_0 = x * (((((((y + -130977.50649958357) / x) - -3655.1204654076414) / x) + -110.1139242984811) / x) - -4.16438922228);
double tmp;
if (x <= -40000000000.0) {
tmp = t_0;
} else if (x <= 140000.0) {
tmp = ((x - 2.0) * fma(x, fma(x, 137.519416416, y), z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + -130977.50649958357) / x) - -3655.1204654076414) / x) + -110.1139242984811) / x) - -4.16438922228)) tmp = 0.0 if (x <= -40000000000.0) tmp = t_0; elseif (x <= 140000.0) tmp = Float64(Float64(Float64(x - 2.0) * fma(x, fma(x, 137.519416416, y), z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(N[(N[(N[(N[(N[(y + -130977.50649958357), $MachinePrecision] / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -40000000000.0], t$95$0, If[LessEqual[x, 140000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(x * N[(x * 137.519416416 + y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(\frac{\frac{\frac{y + -130977.50649958357}{x} - -3655.1204654076414}{x} + -110.1139242984811}{x} - -4.16438922228\right)\\
\mathbf{if}\;x \leq -40000000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 140000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \mathsf{fma}\left(x, \mathsf{fma}\left(x, 137.519416416, y\right), z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4e10 or 1.4e5 < x Initial program 16.7%
Taylor expanded in z around 0
Simplified16.0%
Taylor expanded in x around -inf
Simplified95.3%
if -4e10 < x < 1.4e5Initial program 99.6%
Taylor expanded in x around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6499.2
Simplified99.2%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(-
(/
(+
(/ (- (/ (+ y -130977.50649958357) x) -3655.1204654076414) x)
-110.1139242984811)
x)
-4.16438922228))))
(if (<= x -1.35)
t_0
(if (<= x 38.0)
(/
(* (- x 2.0) (+ z (* x (fma x 137.519416416 y))))
(fma x 313.399215894 47.066876606))
t_0))))
double code(double x, double y, double z) {
double t_0 = x * (((((((y + -130977.50649958357) / x) - -3655.1204654076414) / x) + -110.1139242984811) / x) - -4.16438922228);
double tmp;
if (x <= -1.35) {
tmp = t_0;
} else if (x <= 38.0) {
tmp = ((x - 2.0) * (z + (x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + -130977.50649958357) / x) - -3655.1204654076414) / x) + -110.1139242984811) / x) - -4.16438922228)) tmp = 0.0 if (x <= -1.35) tmp = t_0; elseif (x <= 38.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(N[(N[(N[(N[(N[(y + -130977.50649958357), $MachinePrecision] / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35], t$95$0, If[LessEqual[x, 38.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(x * 137.519416416 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * 313.399215894 + 47.066876606), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(\frac{\frac{\frac{y + -130977.50649958357}{x} - -3655.1204654076414}{x} + -110.1139242984811}{x} - -4.16438922228\right)\\
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 38:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \mathsf{fma}\left(x, 137.519416416, y\right)\right)}{\mathsf{fma}\left(x, 313.399215894, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.3500000000000001 or 38 < x Initial program 17.4%
Taylor expanded in z around 0
Simplified16.7%
Taylor expanded in x around -inf
Simplified94.9%
if -1.3500000000000001 < x < 38Initial program 99.6%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6499.2
Simplified99.2%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6498.2
Simplified98.2%
Final simplification96.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
1.0
(/
(-
(/ (+ 6.349501247902845 (/ -42.87307123793778 x)) x)
-0.24013125253755718)
x))))
(if (<= x -1.35)
t_0
(if (<= x 420.0)
(/
(* (- x 2.0) (+ z (* x (fma x 137.519416416 y))))
(fma x 313.399215894 47.066876606))
t_0))))
double code(double x, double y, double z) {
double t_0 = 1.0 / ((((6.349501247902845 + (-42.87307123793778 / x)) / x) - -0.24013125253755718) / x);
double tmp;
if (x <= -1.35) {
tmp = t_0;
} else if (x <= 420.0) {
tmp = ((x - 2.0) * (z + (x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(1.0 / Float64(Float64(Float64(Float64(6.349501247902845 + Float64(-42.87307123793778 / x)) / x) - -0.24013125253755718) / x)) tmp = 0.0 if (x <= -1.35) tmp = t_0; elseif (x <= 420.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(1.0 / N[(N[(N[(N[(6.349501247902845 + N[(-42.87307123793778 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -0.24013125253755718), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35], t$95$0, If[LessEqual[x, 420.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(x * 137.519416416 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * 313.399215894 + 47.066876606), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{\frac{\frac{6.349501247902845 + \frac{-42.87307123793778}{x}}{x} - -0.24013125253755718}{x}}\\
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 420:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \mathsf{fma}\left(x, 137.519416416, y\right)\right)}{\mathsf{fma}\left(x, 313.399215894, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.3500000000000001 or 420 < x Initial program 17.4%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr25.5%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr25.5%
Taylor expanded in x around -inf
mul-1-negN/A
distribute-neg-frac2N/A
mul-1-negN/A
/-lowering-/.f64N/A
Simplified89.0%
if -1.3500000000000001 < x < 420Initial program 99.6%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6499.2
Simplified99.2%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6498.2
Simplified98.2%
Final simplification93.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
4.16438922228
(/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)))))
(if (<= x -37.0)
t_0
(if (<= x 5800.0)
(/
(* (- x 2.0) (+ z (* x (fma x 137.519416416 y))))
(fma x 313.399215894 47.066876606))
t_0))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
double tmp;
if (x <= -37.0) {
tmp = t_0;
} else if (x <= 5800.0) {
tmp = ((x - 2.0) * (z + (x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))) tmp = 0.0 if (x <= -37.0) tmp = t_0; elseif (x <= 5800.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * fma(x, 137.519416416, y)))) / fma(x, 313.399215894, 47.066876606)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -37.0], t$95$0, If[LessEqual[x, 5800.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(x * 137.519416416 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * 313.399215894 + 47.066876606), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\mathbf{if}\;x \leq -37:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 5800:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \mathsf{fma}\left(x, 137.519416416, y\right)\right)}{\mathsf{fma}\left(x, 313.399215894, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -37 or 5800 < x Initial program 17.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
div-subN/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval88.8
Simplified88.8%
if -37 < x < 5800Initial program 99.6%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6499.2
Simplified99.2%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6498.2
Simplified98.2%
Final simplification93.5%
(FPCore (x y z)
:precision binary64
(if (<= x -7500000.0)
(fma x 4.16438922228 -110.1139242984811)
(if (<= x 2400.0)
(/ (* (- x 2.0) (+ z (* x (fma x 137.519416416 y)))) 47.066876606)
(*
x
(+
4.16438922228
(/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7500000.0) {
tmp = fma(x, 4.16438922228, -110.1139242984811);
} else if (x <= 2400.0) {
tmp = ((x - 2.0) * (z + (x * fma(x, 137.519416416, y)))) / 47.066876606;
} else {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -7500000.0) tmp = fma(x, 4.16438922228, -110.1139242984811); elseif (x <= 2400.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * fma(x, 137.519416416, y)))) / 47.066876606); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -7500000.0], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision], If[LessEqual[x, 2400.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(x * 137.519416416 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 47.066876606), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7500000:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\mathbf{elif}\;x \leq 2400:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \mathsf{fma}\left(x, 137.519416416, y\right)\right)}{47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -7.5e6Initial program 16.2%
Taylor expanded in z around inf
Simplified12.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6464.2
Simplified64.2%
Taylor expanded in x around 0
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6491.8
Simplified91.8%
if -7.5e6 < x < 2400Initial program 99.6%
Taylor expanded in x around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6499.2
Simplified99.2%
Taylor expanded in x around 0
Simplified96.3%
if 2400 < x Initial program 17.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
div-subN/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval87.9
Simplified87.9%
Final simplification92.9%
(FPCore (x y z)
:precision binary64
(if (<= x -7500000.0)
(fma x 4.16438922228 -110.1139242984811)
(if (<= x 7.0)
(fma
-0.0424927283095952
z
(*
x
(fma
z
0.28294182010212804
(fma z 0.0212463641547976 (* y -0.0424927283095952)))))
(*
x
(+
4.16438922228
(/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7500000.0) {
tmp = fma(x, 4.16438922228, -110.1139242984811);
} else if (x <= 7.0) {
tmp = fma(-0.0424927283095952, z, (x * fma(z, 0.28294182010212804, fma(z, 0.0212463641547976, (y * -0.0424927283095952)))));
} else {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -7500000.0) tmp = fma(x, 4.16438922228, -110.1139242984811); elseif (x <= 7.0) tmp = fma(-0.0424927283095952, z, Float64(x * fma(z, 0.28294182010212804, fma(z, 0.0212463641547976, Float64(y * -0.0424927283095952))))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -7500000.0], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision], If[LessEqual[x, 7.0], N[(-0.0424927283095952 * z + N[(x * N[(z * 0.28294182010212804 + N[(z * 0.0212463641547976 + N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7500000:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\mathbf{elif}\;x \leq 7:\\
\;\;\;\;\mathsf{fma}\left(-0.0424927283095952, z, x \cdot \mathsf{fma}\left(z, 0.28294182010212804, \mathsf{fma}\left(z, 0.0212463641547976, y \cdot -0.0424927283095952\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -7.5e6Initial program 16.2%
Taylor expanded in z around inf
Simplified12.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6464.2
Simplified64.2%
Taylor expanded in x around 0
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6491.8
Simplified91.8%
if -7.5e6 < x < 7Initial program 99.6%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr99.6%
flip-+N/A
/-lowering-/.f64N/A
sub-negN/A
swap-sqrN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
metadata-evalN/A
metadata-evalN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
metadata-eval99.6
Applied egg-rr99.6%
Taylor expanded in x around 0
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
accelerator-lowering-fma.f64N/A
metadata-evalN/A
distribute-lft-inN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f6492.7
Simplified92.7%
if 7 < x Initial program 17.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
div-subN/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval87.9
Simplified87.9%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(if (<= x -7500000.0)
(fma x 4.16438922228 -110.1139242984811)
(if (<= x -6.5e-78)
(* x (fma x (* y 0.3041881842569256) (* y -0.0424927283095952)))
(if (<= x 0.000155)
(/ 1.0 (/ -23.533438303 z))
(fma x 4.16438922228 -110.1139242984811)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7500000.0) {
tmp = fma(x, 4.16438922228, -110.1139242984811);
} else if (x <= -6.5e-78) {
tmp = x * fma(x, (y * 0.3041881842569256), (y * -0.0424927283095952));
} else if (x <= 0.000155) {
tmp = 1.0 / (-23.533438303 / z);
} else {
tmp = fma(x, 4.16438922228, -110.1139242984811);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -7500000.0) tmp = fma(x, 4.16438922228, -110.1139242984811); elseif (x <= -6.5e-78) tmp = Float64(x * fma(x, Float64(y * 0.3041881842569256), Float64(y * -0.0424927283095952))); elseif (x <= 0.000155) tmp = Float64(1.0 / Float64(-23.533438303 / z)); else tmp = fma(x, 4.16438922228, -110.1139242984811); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -7500000.0], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision], If[LessEqual[x, -6.5e-78], N[(x * N[(x * N[(y * 0.3041881842569256), $MachinePrecision] + N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.000155], N[(1.0 / N[(-23.533438303 / z), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7500000:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-78}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(x, y \cdot 0.3041881842569256, y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.000155:\\
\;\;\;\;\frac{1}{\frac{-23.533438303}{z}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\end{array}
\end{array}
if x < -7.5e6 or 1.55e-4 < x Initial program 17.4%
Taylor expanded in z around inf
Simplified14.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6457.4
Simplified57.4%
Taylor expanded in x around 0
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6488.6
Simplified88.6%
if -7.5e6 < x < -6.5000000000000003e-78Initial program 99.4%
Taylor expanded in y around inf
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
+-lowering-+.f6469.1
Simplified69.1%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.4
Simplified56.4%
if -6.5000000000000003e-78 < x < 1.55e-4Initial program 99.7%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr99.6%
associate-/l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
Applied egg-rr99.5%
Taylor expanded in x around 0
/-lowering-/.f6467.1
Simplified67.1%
Final simplification77.2%
(FPCore (x y z)
:precision binary64
(if (<= x -7500000.0)
(fma x 4.16438922228 -110.1139242984811)
(if (<= x 0.000155)
(fma
-0.0424927283095952
z
(*
x
(fma
z
0.28294182010212804
(fma z 0.0212463641547976 (* y -0.0424927283095952)))))
(fma x 4.16438922228 -110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7500000.0) {
tmp = fma(x, 4.16438922228, -110.1139242984811);
} else if (x <= 0.000155) {
tmp = fma(-0.0424927283095952, z, (x * fma(z, 0.28294182010212804, fma(z, 0.0212463641547976, (y * -0.0424927283095952)))));
} else {
tmp = fma(x, 4.16438922228, -110.1139242984811);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -7500000.0) tmp = fma(x, 4.16438922228, -110.1139242984811); elseif (x <= 0.000155) tmp = fma(-0.0424927283095952, z, Float64(x * fma(z, 0.28294182010212804, fma(z, 0.0212463641547976, Float64(y * -0.0424927283095952))))); else tmp = fma(x, 4.16438922228, -110.1139242984811); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -7500000.0], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision], If[LessEqual[x, 0.000155], N[(-0.0424927283095952 * z + N[(x * N[(z * 0.28294182010212804 + N[(z * 0.0212463641547976 + N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7500000:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\mathbf{elif}\;x \leq 0.000155:\\
\;\;\;\;\mathsf{fma}\left(-0.0424927283095952, z, x \cdot \mathsf{fma}\left(z, 0.28294182010212804, \mathsf{fma}\left(z, 0.0212463641547976, y \cdot -0.0424927283095952\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\end{array}
\end{array}
if x < -7.5e6 or 1.55e-4 < x Initial program 17.4%
Taylor expanded in z around inf
Simplified14.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6457.4
Simplified57.4%
Taylor expanded in x around 0
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6488.6
Simplified88.6%
if -7.5e6 < x < 1.55e-4Initial program 99.6%
associate-/l*N/A
*-commutativeN/A
flip3--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr99.6%
flip-+N/A
/-lowering-/.f64N/A
sub-negN/A
swap-sqrN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
metadata-evalN/A
metadata-evalN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
metadata-eval99.6
Applied egg-rr99.6%
Taylor expanded in x around 0
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
accelerator-lowering-fma.f64N/A
metadata-evalN/A
distribute-lft-inN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f6493.4
Simplified93.4%
Final simplification91.0%
(FPCore (x y z)
:precision binary64
(if (<= x -7500000.0)
(fma x 4.16438922228 -110.1139242984811)
(if (<= x -4.4e-79)
(* x (fma x (* y 0.3041881842569256) (* y -0.0424927283095952)))
(if (<= x 0.000155)
(* z -0.0424927283095952)
(fma x 4.16438922228 -110.1139242984811)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7500000.0) {
tmp = fma(x, 4.16438922228, -110.1139242984811);
} else if (x <= -4.4e-79) {
tmp = x * fma(x, (y * 0.3041881842569256), (y * -0.0424927283095952));
} else if (x <= 0.000155) {
tmp = z * -0.0424927283095952;
} else {
tmp = fma(x, 4.16438922228, -110.1139242984811);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -7500000.0) tmp = fma(x, 4.16438922228, -110.1139242984811); elseif (x <= -4.4e-79) tmp = Float64(x * fma(x, Float64(y * 0.3041881842569256), Float64(y * -0.0424927283095952))); elseif (x <= 0.000155) tmp = Float64(z * -0.0424927283095952); else tmp = fma(x, 4.16438922228, -110.1139242984811); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -7500000.0], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision], If[LessEqual[x, -4.4e-79], N[(x * N[(x * N[(y * 0.3041881842569256), $MachinePrecision] + N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.000155], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7500000:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-79}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(x, y \cdot 0.3041881842569256, y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.000155:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\end{array}
\end{array}
if x < -7.5e6 or 1.55e-4 < x Initial program 17.4%
Taylor expanded in z around inf
Simplified14.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6457.4
Simplified57.4%
Taylor expanded in x around 0
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6488.6
Simplified88.6%
if -7.5e6 < x < -4.3999999999999998e-79Initial program 99.4%
Taylor expanded in y around inf
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
+-lowering-+.f6469.1
Simplified69.1%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.4
Simplified56.4%
if -4.3999999999999998e-79 < x < 1.55e-4Initial program 99.7%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6467.1
Simplified67.1%
Final simplification77.2%
(FPCore (x y z)
:precision binary64
(if (<= x -7500000.0)
(fma x 4.16438922228 -110.1139242984811)
(if (<= x -7.8e-78)
(* x (* y (fma x 0.3041881842569256 -0.0424927283095952)))
(if (<= x 0.000155)
(* z -0.0424927283095952)
(fma x 4.16438922228 -110.1139242984811)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7500000.0) {
tmp = fma(x, 4.16438922228, -110.1139242984811);
} else if (x <= -7.8e-78) {
tmp = x * (y * fma(x, 0.3041881842569256, -0.0424927283095952));
} else if (x <= 0.000155) {
tmp = z * -0.0424927283095952;
} else {
tmp = fma(x, 4.16438922228, -110.1139242984811);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -7500000.0) tmp = fma(x, 4.16438922228, -110.1139242984811); elseif (x <= -7.8e-78) tmp = Float64(x * Float64(y * fma(x, 0.3041881842569256, -0.0424927283095952))); elseif (x <= 0.000155) tmp = Float64(z * -0.0424927283095952); else tmp = fma(x, 4.16438922228, -110.1139242984811); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -7500000.0], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision], If[LessEqual[x, -7.8e-78], N[(x * N[(y * N[(x * 0.3041881842569256 + -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.000155], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7500000:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\mathbf{elif}\;x \leq -7.8 \cdot 10^{-78}:\\
\;\;\;\;x \cdot \left(y \cdot \mathsf{fma}\left(x, 0.3041881842569256, -0.0424927283095952\right)\right)\\
\mathbf{elif}\;x \leq 0.000155:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\end{array}
\end{array}
if x < -7.5e6 or 1.55e-4 < x Initial program 17.4%
Taylor expanded in z around inf
Simplified14.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6457.4
Simplified57.4%
Taylor expanded in x around 0
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6488.6
Simplified88.6%
if -7.5e6 < x < -7.8000000000000004e-78Initial program 99.4%
Taylor expanded in z around 0
Simplified75.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6462.7
Simplified62.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6456.4
Simplified56.4%
if -7.8000000000000004e-78 < x < 1.55e-4Initial program 99.7%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6467.1
Simplified67.1%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(fma x 4.16438922228 -110.1139242984811)
(if (<= x 0.000155)
(* z -0.0424927283095952)
(fma x 4.16438922228 -110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = fma(x, 4.16438922228, -110.1139242984811);
} else if (x <= 0.000155) {
tmp = z * -0.0424927283095952;
} else {
tmp = fma(x, 4.16438922228, -110.1139242984811);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = fma(x, 4.16438922228, -110.1139242984811); elseif (x <= 0.000155) tmp = Float64(z * -0.0424927283095952); else tmp = fma(x, 4.16438922228, -110.1139242984811); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision], If[LessEqual[x, 0.000155], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\mathbf{elif}\;x \leq 0.000155:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\\
\end{array}
\end{array}
if x < -5.5 or 1.55e-4 < x Initial program 18.0%
Taylor expanded in z around inf
Simplified14.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6457.0
Simplified57.0%
Taylor expanded in x around 0
sub-negN/A
*-commutativeN/A
metadata-evalN/A
accelerator-lowering-fma.f6488.0
Simplified88.0%
if -5.5 < x < 1.55e-4Initial program 99.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6462.6
Simplified62.6%
(FPCore (x y z) :precision binary64 (if (<= x -0.039) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.039) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.039d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.039) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.039: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.039) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.039) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.039], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.039:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -0.0389999999999999999 or 2 < x Initial program 17.4%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6487.7
Simplified87.7%
if -0.0389999999999999999 < x < 2Initial program 99.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6462.1
Simplified62.1%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 58.5%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6445.5
Simplified45.5%
(FPCore (x y z) :precision binary64 -110.1139242984811)
double code(double x, double y, double z) {
return -110.1139242984811;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -110.1139242984811d0
end function
public static double code(double x, double y, double z) {
return -110.1139242984811;
}
def code(x, y, z): return -110.1139242984811
function code(x, y, z) return -110.1139242984811 end
function tmp = code(x, y, z) tmp = -110.1139242984811; end
code[x_, y_, z_] := -110.1139242984811
\begin{array}{l}
\\
-110.1139242984811
\end{array}
Initial program 58.5%
Taylor expanded in z around inf
Simplified55.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6430.2
Simplified30.2%
Taylor expanded in x around 0
Simplified3.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024204
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))