
(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 17 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
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)
4e+271)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) <= 4e+271) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) 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)) / t_0) <= 4e+271) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, 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] / t$95$0), $MachinePrecision], 4e+271], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\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)}{t\_0} \leq 4 \cdot 10^{+271}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\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))) < 3.99999999999999981e271Initial program 94.1%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
if 3.99999999999999981e271 < (/.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 5.2%
associate-/l*7.1%
sub-neg7.1%
metadata-eval7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
Simplified7.1%
Taylor expanded in z around 0 7.1%
Taylor expanded in x around inf 99.1%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_2 (/ z t_1)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_1) 4e+271)
(* (+ x -2.0) (+ t_2 (/ t_0 t_1)))
(* (+ x -2.0) (+ 4.16438922228 t_2)))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 4e+271) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_2 = z / t_1
if ((((x - 2.0d0) * (t_0 + z)) / t_1) <= 4d+271) then
tmp = (x + (-2.0d0)) * (t_2 + (t_0 / t_1))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 4e+271) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_2 = z / t_1 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_1) <= 4e+271: tmp = (x + -2.0) * (t_2 + (t_0 / t_1)) else: tmp = (x + -2.0) * (4.16438922228 + t_2) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_1) <= 4e+271) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(t_0 / t_1))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_2)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_1) <= 4e+271) tmp = (x + -2.0) * (t_2 + (t_0 / t_1)); else tmp = (x + -2.0) * (4.16438922228 + t_2); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = 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]}, Block[{t$95$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 4e+271], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_2 := \frac{z}{t\_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_1} \leq 4 \cdot 10^{+271}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + \frac{t\_0}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_2\right)\\
\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))) < 3.99999999999999981e271Initial program 94.1%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
if 3.99999999999999981e271 < (/.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 5.2%
associate-/l*7.1%
sub-neg7.1%
metadata-eval7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
Simplified7.1%
Taylor expanded in z around 0 7.1%
Taylor expanded in x around inf 99.1%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (or (<= x -6e+44) (not (<= x 4e+48)))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -6e+44) || !(x <= 4e+48)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / 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 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((x <= (-6d+44)) .or. (.not. (x <= 4d+48))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -6e+44) || !(x <= 4e+48)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (x <= -6e+44) or not (x <= 4e+48): tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) else: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if ((x <= -6e+44) || !(x <= 4e+48)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); else tmp = 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)) / t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((x <= -6e+44) || ~((x <= 4e+48))) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); else tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[Or[LessEqual[x, -6e+44], N[Not[LessEqual[x, 4e+48]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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] / t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -6 \cdot 10^{+44} \lor \neg \left(x \leq 4 \cdot 10^{+48}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\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)}{t\_0}\\
\end{array}
\end{array}
if x < -5.99999999999999974e44 or 4.00000000000000018e48 < x Initial program 2.3%
associate-/l*11.5%
sub-neg11.5%
metadata-eval11.5%
fma-define11.5%
fma-define11.5%
fma-define11.5%
fma-define11.5%
fma-define11.5%
fma-define11.5%
fma-define11.5%
Simplified11.5%
Taylor expanded in z around 0 11.5%
Taylor expanded in x around inf 98.2%
if -5.99999999999999974e44 < x < 4.00000000000000018e48Initial program 98.9%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (or (<= x -85000000000000.0) (not (<= x 6.4e+32)))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -85000000000000.0) || !(x <= 6.4e+32)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / 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 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((x <= (-85000000000000.0d0)) .or. (.not. (x <= 6.4d+32))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -85000000000000.0) || !(x <= 6.4e+32)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (x <= -85000000000000.0) or not (x <= 6.4e+32): tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if ((x <= -85000000000000.0) || !(x <= 6.4e+32)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((x <= -85000000000000.0) || ~((x <= 6.4e+32))) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[Or[LessEqual[x, -85000000000000.0], N[Not[LessEqual[x, 6.4e+32]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -85000000000000 \lor \neg \left(x \leq 6.4 \cdot 10^{+32}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\end{array}
\end{array}
if x < -8.5e13 or 6.3999999999999998e32 < x Initial program 9.2%
associate-/l*17.7%
sub-neg17.7%
metadata-eval17.7%
fma-define17.7%
fma-define17.7%
fma-define17.7%
fma-define17.7%
fma-define17.7%
fma-define17.7%
fma-define17.7%
Simplified17.7%
Taylor expanded in z around 0 17.7%
Taylor expanded in x around inf 96.5%
if -8.5e13 < x < 6.3999999999999998e32Initial program 99.6%
Taylor expanded in x around 0 97.5%
*-commutative97.5%
Simplified97.5%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
z
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= x -20000000000000.0)
(* (+ x -2.0) (+ 4.16438922228 t_0))
(if (<= x 28000.0)
(* (+ x -2.0) (+ t_0 (* y (* x 0.0212463641547976))))
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x)))))))
double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (x <= -20000000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else if (x <= 28000.0) {
tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
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 = z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (x <= (-20000000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_0)
else if (x <= 28000.0d0) then
tmp = (x + (-2.0d0)) * (t_0 + (y * (x * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - ((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (x <= -20000000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else if (x <= 28000.0) {
tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if x <= -20000000000000.0: tmp = (x + -2.0) * (4.16438922228 + t_0) elif x <= 28000.0: tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (x <= -20000000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_0)); elseif (x <= 28000.0) tmp = Float64(Float64(x + -2.0) * Float64(t_0 + Float64(y * Float64(x * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (x <= -20000000000000.0) tmp = (x + -2.0) * (4.16438922228 + t_0); elseif (x <= 28000.0) tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z / 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]}, If[LessEqual[x, -20000000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 28000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$0 + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;x \leq -20000000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_0\right)\\
\mathbf{elif}\;x \leq 28000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_0 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -2e13Initial program 11.1%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Taylor expanded in z around 0 21.2%
Taylor expanded in x around inf 95.8%
if -2e13 < x < 28000Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
Taylor expanded in x around 0 90.2%
associate-*r*90.2%
*-commutative90.2%
Simplified90.2%
if 28000 < x Initial program 16.3%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around -inf 92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
Simplified92.8%
Final simplification92.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 24.0)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x)))
(+
(* z -0.0424927283095952)
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 24.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
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 <= (-5.5d0)) .or. (.not. (x <= 24.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - ((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x)) / x))
else
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 24.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 24.0): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) else: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 24.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 24.0))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); else tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 24.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 24\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\end{array}
\end{array}
if x < -5.5 or 24 < x Initial program 14.5%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
Simplified22.4%
Taylor expanded in x around -inf 92.4%
mul-1-neg92.4%
unsub-neg92.4%
mul-1-neg92.4%
unsub-neg92.4%
mul-1-neg92.4%
unsub-neg92.4%
mul-1-neg92.4%
unsub-neg92.4%
Simplified92.4%
if -5.5 < x < 24Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 90.0%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(if (<= x -0.145)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 24.0)
(+
(* z -0.0424927283095952)
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804))))
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.145) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 24.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
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.145d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 24.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - ((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.145) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 24.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.145: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 24.0: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.145) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 24.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.145) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 24.0) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.145], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / 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]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 24.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.145:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 24:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -0.14499999999999999Initial program 14.1%
associate-/l*23.8%
sub-neg23.8%
metadata-eval23.8%
fma-define23.8%
fma-define23.8%
fma-define23.8%
fma-define23.8%
fma-define23.9%
fma-define23.9%
fma-define23.9%
Simplified23.9%
Taylor expanded in z around 0 23.8%
Taylor expanded in x around inf 92.9%
if -0.14499999999999999 < x < 24Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.7%
if 24 < x Initial program 16.3%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around -inf 92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
Simplified92.8%
Final simplification91.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -7.2) (not (<= x 2.0)))
(* x (- (/ (+ 78.6994924154 (/ (/ y x) x)) x) -4.16438922228))
(+
(* z -0.0424927283095952)
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7.2) || !(x <= 2.0)) {
tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228);
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
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 <= (-7.2d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * (((78.6994924154d0 + ((y / x) / x)) / x) - (-4.16438922228d0))
else
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7.2) || !(x <= 2.0)) {
tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228);
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7.2) or not (x <= 2.0): tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228) else: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7.2) || !(x <= 2.0)) tmp = Float64(x * Float64(Float64(Float64(78.6994924154 + Float64(Float64(y / x) / x)) / x) - -4.16438922228)); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7.2) || ~((x <= 2.0))) tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228); else tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7.2], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * N[(N[(N[(78.6994924154 + N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot \left(\frac{78.6994924154 + \frac{\frac{y}{x}}{x}}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\end{array}
\end{array}
if x < -7.20000000000000018 or 2 < x Initial program 14.5%
Simplified22.5%
Taylor expanded in x around inf 21.6%
Taylor expanded in x around -inf 92.3%
mul-1-neg92.3%
*-commutative92.3%
distribute-rgt-neg-in92.3%
Simplified92.3%
Taylor expanded in y around inf 92.3%
neg-mul-192.3%
distribute-neg-frac292.3%
Simplified92.3%
if -7.20000000000000018 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 90.0%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -27.0) (not (<= x 2.0)))
(* x (- (/ (+ 78.6994924154 (/ (/ y x) x)) x) -4.16438922228))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -27.0) || !(x <= 2.0)) {
tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
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 <= (-27.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * (((78.6994924154d0 + ((y / x) / x)) / x) - (-4.16438922228d0))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -27.0) || !(x <= 2.0)) {
tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -27.0) or not (x <= 2.0): tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -27.0) || !(x <= 2.0)) tmp = Float64(x * Float64(Float64(Float64(78.6994924154 + Float64(Float64(y / x) / x)) / x) - -4.16438922228)); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -27.0) || ~((x <= 2.0))) tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -27.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * N[(N[(N[(78.6994924154 + N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -27 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot \left(\frac{78.6994924154 + \frac{\frac{y}{x}}{x}}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -27 or 2 < x Initial program 14.5%
Simplified22.5%
Taylor expanded in x around inf 21.6%
Taylor expanded in x around -inf 92.3%
mul-1-neg92.3%
*-commutative92.3%
distribute-rgt-neg-in92.3%
Simplified92.3%
Taylor expanded in y around inf 92.3%
neg-mul-192.3%
distribute-neg-frac292.3%
Simplified92.3%
if -27 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 90.0%
Final simplification91.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -2.6) (not (<= x 2.0))) (* x (- (/ (+ 78.6994924154 (/ (/ y x) x)) x) -4.16438922228)) (+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.6) || !(x <= 2.0)) {
tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228);
} else {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
}
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 <= (-2.6d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * (((78.6994924154d0 + ((y / x) / x)) / x) - (-4.16438922228d0))
else
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.6) || !(x <= 2.0)) {
tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228);
} else {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.6) or not (x <= 2.0): tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228) else: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.6) || !(x <= 2.0)) tmp = Float64(x * Float64(Float64(Float64(78.6994924154 + Float64(Float64(y / x) / x)) / x) - -4.16438922228)); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.6) || ~((x <= 2.0))) tmp = x * (((78.6994924154 + ((y / x) / x)) / x) - -4.16438922228); else tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.6], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * N[(N[(N[(78.6994924154 + N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.6 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot \left(\frac{78.6994924154 + \frac{\frac{y}{x}}{x}}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\end{array}
\end{array}
if x < -2.60000000000000009 or 2 < x Initial program 14.5%
Simplified22.5%
Taylor expanded in x around inf 21.6%
Taylor expanded in x around -inf 92.3%
mul-1-neg92.3%
*-commutative92.3%
distribute-rgt-neg-in92.3%
Simplified92.3%
Taylor expanded in y around inf 92.3%
neg-mul-192.3%
distribute-neg-frac292.3%
Simplified92.3%
if -2.60000000000000009 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 90.0%
Taylor expanded in z around 0 89.7%
*-commutative89.7%
associate-*l*89.7%
Simplified89.7%
Final simplification90.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -20000000000000.0) (not (<= x 2.0))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -20000000000000.0) || !(x <= 2.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
}
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 <= (-20000000000000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -20000000000000.0) || !(x <= 2.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -20000000000000.0) or not (x <= 2.0): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -20000000000000.0) || !(x <= 2.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -20000000000000.0) || ~((x <= 2.0))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -20000000000000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -20000000000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\end{array}
\end{array}
if x < -2e13 or 2 < x Initial program 13.8%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around inf 87.8%
associate-*r/87.8%
metadata-eval87.8%
Simplified87.8%
if -2e13 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 89.5%
Taylor expanded in z around 0 89.1%
*-commutative89.1%
associate-*l*89.2%
Simplified89.2%
Final simplification88.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e-15)
(* x 4.16438922228)
(if (<= x 740000.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e-15) {
tmp = x * 4.16438922228;
} else if (x <= 740000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
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 <= (-1.65d-15)) then
tmp = x * 4.16438922228d0
else if (x <= 740000.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e-15) {
tmp = x * 4.16438922228;
} else if (x <= 740000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e-15: tmp = x * 4.16438922228 elif x <= 740000.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e-15) tmp = Float64(x * 4.16438922228); elseif (x <= 740000.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e-15) tmp = x * 4.16438922228; elseif (x <= 740000.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e-15], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 740000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{-15}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 740000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.65e-15Initial program 19.6%
Simplified28.8%
Taylor expanded in x around inf 21.3%
Taylor expanded in x around inf 80.8%
*-commutative80.8%
Simplified80.8%
if -1.65e-15 < x < 7.4e5Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 68.5%
if 7.4e5 < x Initial program 14.9%
associate-/l*21.1%
sub-neg21.1%
metadata-eval21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
Simplified21.1%
Taylor expanded in x around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
Simplified88.1%
Final simplification76.2%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e-15)
(* x 4.16438922228)
(if (<= x 26.0)
(* z -0.0424927283095952)
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e-15) {
tmp = x * 4.16438922228;
} else if (x <= 26.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
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 <= (-1.65d-15)) then
tmp = x * 4.16438922228d0
else if (x <= 26.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e-15) {
tmp = x * 4.16438922228;
} else if (x <= 26.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e-15: tmp = x * 4.16438922228 elif x <= 26.0: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e-15) tmp = Float64(x * 4.16438922228); elseif (x <= 26.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e-15) tmp = x * 4.16438922228; elseif (x <= 26.0) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e-15], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 26.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{-15}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 26:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.65e-15Initial program 19.6%
Simplified28.8%
Taylor expanded in x around inf 21.3%
Taylor expanded in x around inf 80.8%
*-commutative80.8%
Simplified80.8%
if -1.65e-15 < x < 26Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 69.0%
*-commutative69.0%
Simplified69.0%
if 26 < x Initial program 16.3%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around inf 86.8%
associate-*r/86.8%
metadata-eval86.8%
Simplified86.8%
(FPCore (x y z) :precision binary64 (if (<= x -1.65e-15) (* x 4.16438922228) (if (<= x 0.4) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e-15) {
tmp = x * 4.16438922228;
} else if (x <= 0.4) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.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) :: tmp
if (x <= (-1.65d-15)) then
tmp = x * 4.16438922228d0
else if (x <= 0.4d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e-15) {
tmp = x * 4.16438922228;
} else if (x <= 0.4) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e-15: tmp = x * 4.16438922228 elif x <= 0.4: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e-15) tmp = Float64(x * 4.16438922228); elseif (x <= 0.4) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e-15) tmp = x * 4.16438922228; elseif (x <= 0.4) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e-15], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 0.4], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{-15}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 0.4:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -1.65e-15Initial program 19.6%
Simplified28.8%
Taylor expanded in x around inf 21.3%
Taylor expanded in x around inf 80.8%
*-commutative80.8%
Simplified80.8%
if -1.65e-15 < x < 0.40000000000000002Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 69.0%
*-commutative69.0%
Simplified69.0%
if 0.40000000000000002 < x Initial program 16.3%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around inf 86.6%
Final simplification76.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.65e-15) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.65e-15) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
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 <= (-1.65d-15)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.65e-15) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.65e-15) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.65e-15) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.65e-15) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.65e-15], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{-15} \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.65e-15 or 2 < x Initial program 17.9%
Simplified25.6%
Taylor expanded in x around inf 21.0%
Taylor expanded in x around inf 83.7%
*-commutative83.7%
Simplified83.7%
if -1.65e-15 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 69.0%
*-commutative69.0%
Simplified69.0%
Final simplification76.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 60.1%
Simplified63.7%
Taylor expanded in x around inf 11.7%
Taylor expanded in x around inf 42.3%
*-commutative42.3%
Simplified42.3%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 60.1%
associate-/l*63.7%
sub-neg63.7%
metadata-eval63.7%
fma-define63.8%
fma-define63.8%
fma-define63.8%
fma-define63.8%
fma-define63.8%
fma-define63.8%
fma-define63.8%
Simplified63.8%
Taylor expanded in x around inf 42.3%
Taylor expanded in x around 0 3.1%
(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 2024087
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (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))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- 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)))