
(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 24 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
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))
(t_1 (+ 47.066876606 t_0))
(t_2 (/ z t_1)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ (* x (+ 78.6994924154 (* x 4.16438922228))) 137.519416416))))
z))
t_1)
INFINITY)
(*
(+ x -2.0)
(+
t_2
(/
x
(/
(- -47.066876606 t_0)
(-
(*
x
(- (* x (- (- 78.6994924154) (* x 4.16438922228))) 137.519416416))
y)))))
(/
(+ x -2.0)
(/
(+ (pow t_2 2.0) (- 17.342137594641823 (/ (* 4.16438922228 z) t_1)))
(+ (pow t_2 3.0) 72.2194108904232))))))
double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= ((double) INFINITY)) {
tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = (x + -2.0) / ((pow(t_2, 2.0) + (17.342137594641823 - ((4.16438922228 * z) / t_1))) / (pow(t_2, 3.0) + 72.2194108904232));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = (x + -2.0) / ((Math.pow(t_2, 2.0) + (17.342137594641823 - ((4.16438922228 * z) / t_1))) / (Math.pow(t_2, 3.0) + 72.2194108904232));
}
return tmp;
}
def code(x, y, z): t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))) t_1 = 47.066876606 + t_0 t_2 = z / t_1 tmp = 0 if (((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= math.inf: tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))) else: tmp = (x + -2.0) / ((math.pow(t_2, 2.0) + (17.342137594641823 - ((4.16438922228 * z) / t_1))) / (math.pow(t_2, 3.0) + 72.2194108904232)) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))) t_1 = Float64(47.066876606 + t_0) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(x / Float64(Float64(-47.066876606 - t_0) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(-78.6994924154) - Float64(x * 4.16438922228))) - 137.519416416)) - y))))); else tmp = Float64(Float64(x + -2.0) / Float64(Float64((t_2 ^ 2.0) + Float64(17.342137594641823 - Float64(Float64(4.16438922228 * z) / t_1))) / Float64((t_2 ^ 3.0) + 72.2194108904232))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))); t_1 = 47.066876606 + t_0; t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Inf) tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))); else tmp = (x + -2.0) / (((t_2 ^ 2.0) + (17.342137594641823 - ((4.16438922228 * z) / t_1))) / ((t_2 ^ 3.0) + 72.2194108904232)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(47.066876606 + t$95$0), $MachinePrecision]}, Block[{t$95$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(x / N[(N[(-47.066876606 - t$95$0), $MachinePrecision] / N[(N[(x * N[(N[(x * N[((-78.6994924154) - N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 137.519416416), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(N[Power[t$95$2, 2.0], $MachinePrecision] + N[(17.342137594641823 - N[(N[(4.16438922228 * z), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Power[t$95$2, 3.0], $MachinePrecision] + 72.2194108904232), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := 47.066876606 + t_0\\
t_2 := \frac{z}{t_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right) + 137.519416416\right)\right) + z\right)}{t_1} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t_2 + \frac{x}{\frac{-47.066876606 - t_0}{x \cdot \left(x \cdot \left(\left(-78.6994924154\right) - x \cdot 4.16438922228\right) - 137.519416416\right) - y}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{{t_2}^{2} + \left(17.342137594641823 - \frac{4.16438922228 \cdot z}{t_1}\right)}{{t_2}^{3} + 72.2194108904232}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 93.7%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
flip-+98.4%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
pow194.3%
+-commutative94.3%
pow194.3%
pow-sqr94.3%
metadata-eval94.3%
+-commutative94.3%
Applied egg-rr94.3%
associate-/l*98.4%
Simplified98.4%
Applied egg-rr98.4%
distribute-neg-frac98.4%
distribute-rgt-neg-out98.4%
associate-/l*99.5%
unsub-neg99.5%
+-commutative99.5%
*-commutative99.5%
Simplified99.5%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-*r/0.0%
sub-neg0.0%
metadata-eval0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
fma-def0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around 0 0.0%
Taylor expanded in x around inf 99.0%
Applied egg-rr99.2%
associate-/l*99.7%
+-commutative99.7%
*-commutative99.7%
Simplified99.7%
Final simplification99.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))
(t_1 (+ 47.066876606 t_0))
(t_2 (/ z t_1)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ (* x (+ 78.6994924154 (* x 4.16438922228))) 137.519416416))))
z))
t_1)
INFINITY)
(*
(+ x -2.0)
(+
t_2
(/
x
(/
(- -47.066876606 t_0)
(-
(*
x
(- (* x (- (- 78.6994924154) (* x 4.16438922228))) 137.519416416))
y)))))
(*
(/ (+ x -2.0) (+ t_2 -4.16438922228))
(+ (pow t_2 2.0) -17.342137594641823)))))
double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= ((double) INFINITY)) {
tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = ((x + -2.0) / (t_2 + -4.16438922228)) * (pow(t_2, 2.0) + -17.342137594641823);
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = ((x + -2.0) / (t_2 + -4.16438922228)) * (Math.pow(t_2, 2.0) + -17.342137594641823);
}
return tmp;
}
def code(x, y, z): t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))) t_1 = 47.066876606 + t_0 t_2 = z / t_1 tmp = 0 if (((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= math.inf: tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))) else: tmp = ((x + -2.0) / (t_2 + -4.16438922228)) * (math.pow(t_2, 2.0) + -17.342137594641823) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))) t_1 = Float64(47.066876606 + t_0) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(x / Float64(Float64(-47.066876606 - t_0) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(-78.6994924154) - Float64(x * 4.16438922228))) - 137.519416416)) - y))))); else tmp = Float64(Float64(Float64(x + -2.0) / Float64(t_2 + -4.16438922228)) * Float64((t_2 ^ 2.0) + -17.342137594641823)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))); t_1 = 47.066876606 + t_0; t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Inf) tmp = (x + -2.0) * (t_2 + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))); else tmp = ((x + -2.0) / (t_2 + -4.16438922228)) * ((t_2 ^ 2.0) + -17.342137594641823); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(47.066876606 + t$95$0), $MachinePrecision]}, Block[{t$95$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(x / N[(N[(-47.066876606 - t$95$0), $MachinePrecision] / N[(N[(x * N[(N[(x * N[((-78.6994924154) - N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 137.519416416), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$2 + -4.16438922228), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$2, 2.0], $MachinePrecision] + -17.342137594641823), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := 47.066876606 + t_0\\
t_2 := \frac{z}{t_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right) + 137.519416416\right)\right) + z\right)}{t_1} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t_2 + \frac{x}{\frac{-47.066876606 - t_0}{x \cdot \left(x \cdot \left(\left(-78.6994924154\right) - x \cdot 4.16438922228\right) - 137.519416416\right) - y}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{t_2 + -4.16438922228} \cdot \left({t_2}^{2} + -17.342137594641823\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 93.7%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
flip-+98.4%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
pow194.3%
+-commutative94.3%
pow194.3%
pow-sqr94.3%
metadata-eval94.3%
+-commutative94.3%
Applied egg-rr94.3%
associate-/l*98.4%
Simplified98.4%
Applied egg-rr98.4%
distribute-neg-frac98.4%
distribute-rgt-neg-out98.4%
associate-/l*99.5%
unsub-neg99.5%
+-commutative99.5%
*-commutative99.5%
Simplified99.5%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-*r/0.0%
sub-neg0.0%
metadata-eval0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
fma-def0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around 0 0.0%
Taylor expanded in x around inf 99.0%
flip-+99.0%
associate-*r/98.7%
Applied egg-rr99.2%
associate-/l*99.1%
associate-/r/99.2%
+-commutative99.2%
Simplified99.2%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))
(t_1 (+ 47.066876606 t_0)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ (* x (+ 78.6994924154 (* x 4.16438922228))) 137.519416416))))
z))
t_1)
5e+305)
(*
(+ x -2.0)
(+
(/ z t_1)
(/
x
(/
(- -47.066876606 t_0)
(-
(*
x
(- (* x (- (- 78.6994924154) (* x 4.16438922228))) 137.519416416))
y)))))
(-
(+
(/ (- y 130977.50649958357) (pow x 2.0))
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x))))
110.1139242984811))))
double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= 5e+305) {
tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = (((y - 130977.50649958357) / pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811;
}
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) :: tmp
t_0 = x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))
t_1 = 47.066876606d0 + t_0
if ((((x - 2.0d0) * ((x * (y + (x * ((x * (78.6994924154d0 + (x * 4.16438922228d0))) + 137.519416416d0)))) + z)) / t_1) <= 5d+305) then
tmp = (x + (-2.0d0)) * ((z / t_1) + (x / (((-47.066876606d0) - t_0) / ((x * ((x * (-78.6994924154d0 - (x * 4.16438922228d0))) - 137.519416416d0)) - y))))
else
tmp = (((y - 130977.50649958357d0) / (x ** 2.0d0)) + ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x)))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= 5e+305) {
tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = (((y - 130977.50649958357) / Math.pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))) t_1 = 47.066876606 + t_0 tmp = 0 if (((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= 5e+305: tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))) else: tmp = (((y - 130977.50649958357) / math.pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))) t_1 = Float64(47.066876606 + t_0) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= 5e+305) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_1) + Float64(x / Float64(Float64(-47.066876606 - t_0) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(-78.6994924154) - Float64(x * 4.16438922228))) - 137.519416416)) - y))))); else tmp = Float64(Float64(Float64(Float64(y - 130977.50649958357) / (x ^ 2.0)) + Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x)))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))); t_1 = 47.066876606 + t_0; tmp = 0.0; if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= 5e+305) tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))); else tmp = (((y - 130977.50649958357) / (x ^ 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(47.066876606 + t$95$0), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 5e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$1), $MachinePrecision] + N[(x / N[(N[(-47.066876606 - t$95$0), $MachinePrecision] / N[(N[(x * N[(N[(x * N[((-78.6994924154) - N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 137.519416416), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y - 130977.50649958357), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := 47.066876606 + t_0\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right) + 137.519416416\right)\right) + z\right)}{t_1} \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_1} + \frac{x}{\frac{-47.066876606 - t_0}{x \cdot \left(x \cdot \left(\left(-78.6994924154\right) - x \cdot 4.16438922228\right) - 137.519416416\right) - y}}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{y - 130977.50649958357}{{x}^{2}} + \left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right)\right) - 110.1139242984811\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 5.00000000000000009e305Initial program 96.6%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
flip-+98.4%
associate-*r/97.2%
metadata-eval97.2%
+-commutative97.2%
pow197.2%
+-commutative97.2%
pow197.2%
pow-sqr97.2%
metadata-eval97.2%
+-commutative97.2%
Applied egg-rr97.2%
associate-/l*98.4%
Simplified98.4%
Applied egg-rr98.4%
distribute-neg-frac98.4%
distribute-rgt-neg-out98.4%
associate-/l*99.6%
unsub-neg99.6%
+-commutative99.6%
*-commutative99.6%
Simplified99.6%
if 5.00000000000000009e305 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
associate-*r/5.0%
sub-neg5.0%
metadata-eval5.0%
*-commutative5.0%
fma-def5.0%
*-commutative5.0%
fma-def5.0%
*-commutative5.0%
fma-def5.0%
fma-def5.0%
*-commutative5.0%
Simplified5.0%
Taylor expanded in x around -inf 99.0%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))
(t_1 (+ 47.066876606 t_0)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ (* x (+ 78.6994924154 (* x 4.16438922228))) 137.519416416))))
z))
t_1)
INFINITY)
(*
(+ x -2.0)
(+
(/ z t_1)
(/
x
(/
(- -47.066876606 t_0)
(-
(*
x
(- (* x (- (- 78.6994924154) (* x 4.16438922228))) 137.519416416))
y)))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))));
double t_1 = 47.066876606 + t_0;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))) t_1 = 47.066876606 + t_0 tmp = 0 if (((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= math.inf: tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))) t_1 = Float64(47.066876606 + t_0) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_1) + Float64(x / Float64(Float64(-47.066876606 - t_0) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(-78.6994924154) - Float64(x * 4.16438922228))) - 137.519416416)) - y))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))); t_1 = 47.066876606 + t_0; tmp = 0.0; if ((((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_1) <= Inf) tmp = (x + -2.0) * ((z / t_1) + (x / ((-47.066876606 - t_0) / ((x * ((x * (-78.6994924154 - (x * 4.16438922228))) - 137.519416416)) - y)))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(47.066876606 + t$95$0), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$1), $MachinePrecision] + N[(x / N[(N[(-47.066876606 - t$95$0), $MachinePrecision] / N[(N[(x * N[(N[(x * N[((-78.6994924154) - N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 137.519416416), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := 47.066876606 + t_0\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right) + 137.519416416\right)\right) + z\right)}{t_1} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_1} + \frac{x}{\frac{-47.066876606 - t_0}{x \cdot \left(x \cdot \left(\left(-78.6994924154\right) - x \cdot 4.16438922228\right) - 137.519416416\right) - y}}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 93.7%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
flip-+98.4%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
pow194.3%
+-commutative94.3%
pow194.3%
pow-sqr94.3%
metadata-eval94.3%
+-commutative94.3%
Applied egg-rr94.3%
associate-/l*98.4%
Simplified98.4%
Applied egg-rr98.4%
distribute-neg-frac98.4%
distribute-rgt-neg-out98.4%
associate-/l*99.5%
unsub-neg99.5%
+-commutative99.5%
*-commutative99.5%
Simplified99.5%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-*r/0.0%
sub-neg0.0%
metadata-eval0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
fma-def0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around 0 0.0%
Taylor expanded in x around inf 99.0%
Taylor expanded in x around inf 99.0%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(+
y
(*
x
(+ (* x (+ 78.6994924154 (* x 4.16438922228))) 137.519416416)))))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) INFINITY)
(* (+ x -2.0) (+ (/ z t_0) (* x (/ t_1 t_0))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((z / t_0) + (x * (t_1 / t_0)));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((z / t_0) + (x * (t_1 / t_0)));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)) tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((z / t_0) + (x * (t_1 / t_0))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(y + Float64(x * Float64(Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))) + 137.519416416))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(x * Float64(t_1 / t_0)))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)); tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((z / t_0) + (x * (t_1 / t_0))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y + N[(x * N[(N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(x * N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := y + x \cdot \left(x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right) + 137.519416416\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_0} + x \cdot \frac{t_1}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 93.7%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
flip-+98.4%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
pow194.3%
+-commutative94.3%
pow194.3%
pow-sqr94.3%
metadata-eval94.3%
+-commutative94.3%
Applied egg-rr94.3%
associate-/l*98.4%
Simplified98.4%
Applied egg-rr99.5%
*-commutative99.5%
associate-/r/99.5%
associate-*r/99.5%
associate-*l/99.5%
*-rgt-identity99.5%
associate-/l*98.4%
associate-*r/99.5%
Simplified99.5%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-*r/0.0%
sub-neg0.0%
metadata-eval0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
fma-def0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around 0 0.0%
Taylor expanded in x around inf 99.0%
Taylor expanded in x around inf 99.0%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(+
y
(*
x
(+ (* x (+ 78.6994924154 (* x 4.16438922228))) 137.519416416)))))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) INFINITY)
(* (+ x -2.0) (+ (/ z t_0) (* t_1 (/ x t_0))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 * (x / t_0)));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 * (x / t_0)));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)) tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((z / t_0) + (t_1 * (x / t_0))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(y + Float64(x * Float64(Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))) + 137.519416416))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 * Float64(x / t_0)))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)); tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((z / t_0) + (t_1 * (x / t_0))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y + N[(x * N[(N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 * N[(x / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := y + x \cdot \left(x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right) + 137.519416416\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_0} + t_1 \cdot \frac{x}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 93.7%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
flip-+98.4%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
pow194.3%
+-commutative94.3%
pow194.3%
pow-sqr94.3%
metadata-eval94.3%
+-commutative94.3%
Applied egg-rr94.3%
associate-/l*98.4%
Simplified98.4%
Applied egg-rr99.5%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-*r/0.0%
sub-neg0.0%
metadata-eval0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
fma-def0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around 0 0.0%
Taylor expanded in x around inf 99.0%
Taylor expanded in x around inf 99.0%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ (* x (+ 78.6994924154 (* x 4.16438922228))) 137.519416416))))
z))
t_0)))
(if (<= t_1 4e+244) t_1 (* (+ x -2.0) (+ 4.16438922228 (/ z t_0))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = ((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_0;
double tmp;
if (t_1 <= 4e+244) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (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) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = ((x - 2.0d0) * ((x * (y + (x * ((x * (78.6994924154d0 + (x * 4.16438922228d0))) + 137.519416416d0)))) + z)) / t_0
if (t_1 <= 4d+244) then
tmp = t_1
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = ((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_0;
double tmp;
if (t_1 <= 4e+244) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = ((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_0 tmp = 0 if t_1 <= 4e+244: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))) + 137.519416416)))) + z)) / t_0) tmp = 0.0 if (t_1 <= 4e+244) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = ((x - 2.0) * ((x * (y + (x * ((x * (78.6994924154 + (x * 4.16438922228))) + 137.519416416)))) + z)) / t_0; tmp = 0.0; if (t_1 <= 4e+244) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, 4e+244], t$95$1, 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 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right) + 137.519416416\right)\right) + z\right)}{t_0}\\
\mathbf{if}\;t_1 \leq 4 \cdot 10^{+244}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.0000000000000003e244Initial program 96.4%
if 4.0000000000000003e244 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 6.0%
associate-*r/10.6%
sub-neg10.6%
metadata-eval10.6%
*-commutative10.6%
fma-def10.6%
*-commutative10.6%
fma-def10.6%
*-commutative10.6%
fma-def10.6%
fma-def10.6%
*-commutative10.6%
Simplified10.6%
Taylor expanded in z around 0 10.6%
Taylor expanded in x around inf 98.1%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1 (/ z t_0)))
(if (<= x -20000000000000.0)
(+ (+ (* x 4.16438922228) -8.32877844456) (* (+ x -2.0) t_1))
(if (<= x 2.7e+15)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0)
(* (+ x -2.0) (+ 4.16438922228 t_1))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = z / t_0;
double tmp;
if (x <= -20000000000000.0) {
tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_1);
} else if (x <= 2.7e+15) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + t_1);
}
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) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = z / t_0
if (x <= (-20000000000000.0d0)) then
tmp = ((x * 4.16438922228d0) + (-8.32877844456d0)) + ((x + (-2.0d0)) * t_1)
else if (x <= 2.7d+15) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = z / t_0;
double tmp;
if (x <= -20000000000000.0) {
tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_1);
} else if (x <= 2.7e+15) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + t_1);
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = z / t_0 tmp = 0 if x <= -20000000000000.0: tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_1) elif x <= 2.7e+15: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 else: tmp = (x + -2.0) * (4.16438922228 + t_1) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(z / t_0) tmp = 0.0 if (x <= -20000000000000.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + -8.32877844456) + Float64(Float64(x + -2.0) * t_1)); elseif (x <= 2.7e+15) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_1)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = z / t_0; tmp = 0.0; if (x <= -20000000000000.0) tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_1); elseif (x <= 2.7e+15) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; else tmp = (x + -2.0) * (4.16438922228 + t_1); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(z / t$95$0), $MachinePrecision]}, If[LessEqual[x, -20000000000000.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + -8.32877844456), $MachinePrecision] + N[(N[(x + -2.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e+15], 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], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := \frac{z}{t_0}\\
\mathbf{if}\;x \leq -20000000000000:\\
\;\;\;\;\left(x \cdot 4.16438922228 + -8.32877844456\right) + \left(x + -2\right) \cdot t_1\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+15}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t_1\right)\\
\end{array}
\end{array}
if x < -2e13Initial program 7.8%
associate-*r/13.2%
sub-neg13.2%
metadata-eval13.2%
*-commutative13.2%
fma-def13.2%
*-commutative13.2%
fma-def13.2%
*-commutative13.2%
fma-def13.2%
fma-def13.2%
*-commutative13.2%
Simplified13.2%
Taylor expanded in z around 0 13.2%
Taylor expanded in x around inf 93.6%
distribute-lft-in93.6%
+-commutative93.6%
*-commutative93.6%
distribute-rgt-in93.6%
metadata-eval93.6%
div-inv93.6%
div-inv93.6%
+-commutative93.6%
Applied egg-rr93.6%
if -2e13 < x < 2.7e15Initial program 99.6%
Taylor expanded in x around 0 98.4%
*-commutative93.5%
Simplified98.4%
if 2.7e15 < x Initial program 8.9%
associate-*r/17.0%
sub-neg17.0%
metadata-eval17.0%
*-commutative17.0%
fma-def17.0%
*-commutative17.0%
fma-def17.0%
*-commutative17.0%
fma-def17.0%
fma-def17.0%
*-commutative17.0%
Simplified17.0%
Taylor expanded in z around 0 17.0%
Taylor expanded in x around inf 93.9%
Final simplification96.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
z
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(if (<= x -0.0019)
(+ (+ (* x 4.16438922228) -8.32877844456) (* (+ x -2.0) t_0))
(if (<= x 0.00013)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* (+ x -2.0) (+ 4.16438922228 t_0))))))
double code(double x, double y, double z) {
double t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (x <= -0.0019) {
tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_0);
} else if (x <= 0.00013) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + 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 = z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
if (x <= (-0.0019d0)) then
tmp = ((x * 4.16438922228d0) + (-8.32877844456d0)) + ((x + (-2.0d0)) * t_0)
else if (x <= 0.00013d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (x <= -0.0019) {
tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_0);
} else if (x <= 0.00013) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_0);
}
return tmp;
}
def code(x, y, z): t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) tmp = 0 if x <= -0.0019: tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_0) elif x <= 0.00013: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 + t_0) return tmp
function code(x, y, z) t_0 = Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) tmp = 0.0 if (x <= -0.0019) tmp = Float64(Float64(Float64(x * 4.16438922228) + -8.32877844456) + Float64(Float64(x + -2.0) * t_0)); elseif (x <= 0.00013) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_0)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); tmp = 0.0; if (x <= -0.0019) tmp = ((x * 4.16438922228) + -8.32877844456) + ((x + -2.0) * t_0); elseif (x <= 0.00013) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 + t_0); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.0019], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + -8.32877844456), $MachinePrecision] + N[(N[(x + -2.0), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.00013], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{if}\;x \leq -0.0019:\\
\;\;\;\;\left(x \cdot 4.16438922228 + -8.32877844456\right) + \left(x + -2\right) \cdot t_0\\
\mathbf{elif}\;x \leq 0.00013:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t_0\right)\\
\end{array}
\end{array}
if x < -0.0019Initial program 12.5%
associate-*r/17.7%
sub-neg17.7%
metadata-eval17.7%
*-commutative17.7%
fma-def17.7%
*-commutative17.7%
fma-def17.7%
*-commutative17.7%
fma-def17.7%
fma-def17.7%
*-commutative17.7%
Simplified17.7%
Taylor expanded in z around 0 17.7%
Taylor expanded in x around inf 91.2%
distribute-lft-in91.2%
+-commutative91.2%
*-commutative91.2%
distribute-rgt-in91.2%
metadata-eval91.2%
div-inv91.2%
div-inv91.2%
+-commutative91.2%
Applied egg-rr91.2%
if -0.0019 < x < 1.29999999999999989e-4Initial program 99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
if 1.29999999999999989e-4 < x Initial program 19.8%
associate-*r/27.0%
sub-neg27.0%
metadata-eval27.0%
*-commutative27.0%
fma-def27.0%
*-commutative27.0%
fma-def27.0%
*-commutative27.0%
fma-def27.0%
fma-def27.0%
*-commutative27.0%
Simplified27.0%
Taylor expanded in z around 0 27.0%
Taylor expanded in x around inf 90.5%
Final simplification95.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))))
(if (<= x -0.0076)
(+ (/ (+ x -2.0) (/ t_0 z)) (- (* x 4.16438922228) 110.1139242984811))
(if (<= x 0.00013)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double tmp;
if (x <= -0.0076) {
tmp = ((x + -2.0) / (t_0 / z)) + ((x * 4.16438922228) - 110.1139242984811);
} else if (x <= 0.00013) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (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 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
if (x <= (-0.0076d0)) then
tmp = ((x + (-2.0d0)) / (t_0 / z)) + ((x * 4.16438922228d0) - 110.1139242984811d0)
else if (x <= 0.00013d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double tmp;
if (x <= -0.0076) {
tmp = ((x + -2.0) / (t_0 / z)) + ((x * 4.16438922228) - 110.1139242984811);
} else if (x <= 0.00013) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) tmp = 0 if x <= -0.0076: tmp = ((x + -2.0) / (t_0 / z)) + ((x * 4.16438922228) - 110.1139242984811) elif x <= 0.00013: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) tmp = 0.0 if (x <= -0.0076) tmp = Float64(Float64(Float64(x + -2.0) / Float64(t_0 / z)) + Float64(Float64(x * 4.16438922228) - 110.1139242984811)); elseif (x <= 0.00013) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); tmp = 0.0; if (x <= -0.0076) tmp = ((x + -2.0) / (t_0 / z)) + ((x * 4.16438922228) - 110.1139242984811); elseif (x <= 0.00013) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.0076], N[(N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 / z), $MachinePrecision]), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.00013], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $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 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
\mathbf{if}\;x \leq -0.0076:\\
\;\;\;\;\frac{x + -2}{\frac{t_0}{z}} + \left(x \cdot 4.16438922228 - 110.1139242984811\right)\\
\mathbf{elif}\;x \leq 0.00013:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t_0}\right)\\
\end{array}
\end{array}
if x < -0.00759999999999999998Initial program 12.5%
associate-*r/17.7%
sub-neg17.7%
metadata-eval17.7%
*-commutative17.7%
fma-def17.7%
*-commutative17.7%
fma-def17.7%
*-commutative17.7%
fma-def17.7%
fma-def17.7%
*-commutative17.7%
Simplified17.7%
Taylor expanded in z around 0 12.5%
Taylor expanded in x around inf 91.8%
cancel-sign-sub-inv91.8%
div-inv91.8%
metadata-eval91.8%
distribute-rgt-out91.8%
associate-*l*91.8%
div-inv91.8%
clear-num91.8%
associate-*l/91.8%
Applied egg-rr91.8%
if -0.00759999999999999998 < x < 1.29999999999999989e-4Initial program 99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
if 1.29999999999999989e-4 < x Initial program 19.8%
associate-*r/27.0%
sub-neg27.0%
metadata-eval27.0%
*-commutative27.0%
fma-def27.0%
*-commutative27.0%
fma-def27.0%
*-commutative27.0%
fma-def27.0%
fma-def27.0%
*-commutative27.0%
Simplified27.0%
Taylor expanded in z around 0 27.0%
Taylor expanded in x around inf 90.5%
Final simplification95.6%
(FPCore (x y z)
:precision binary64
(if (<= x -2600.0)
(+ (- (* x 4.16438922228) 110.1139242984811) (/ 3655.1204654076414 x))
(if (<= x 1.05e-5)
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))
(if (<= x 2100000000000.0)
(*
(+ x -2.0)
(/
z
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))))
(* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2600.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1.05e-5) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else if (x <= 2100000000000.0) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))));
} 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 <= (-2600.0d0)) then
tmp = ((x * 4.16438922228d0) - 110.1139242984811d0) + (3655.1204654076414d0 / x)
else if (x <= 1.05d-5) then
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
else if (x <= 2100000000000.0d0) then
tmp = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))))
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 <= -2600.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1.05e-5) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else if (x <= 2100000000000.0) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2600.0: tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x) elif x <= 1.05e-5: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) elif x <= 2100000000000.0: tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2600.0) tmp = Float64(Float64(Float64(x * 4.16438922228) - 110.1139242984811) + Float64(3655.1204654076414 / x)); elseif (x <= 1.05e-5) tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); elseif (x <= 2100000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2600.0) tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x); elseif (x <= 1.05e-5) tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); elseif (x <= 2100000000000.0) tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2600.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e-5], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2100000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2600:\\
\;\;\;\;\left(x \cdot 4.16438922228 - 110.1139242984811\right) + \frac{3655.1204654076414}{x}\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2100000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2600Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 90.0%
+-commutative90.0%
*-commutative90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
*-commutative90.0%
fma-neg90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in x around 0 90.0%
if -2600 < x < 1.04999999999999994e-5Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.0%
if 1.04999999999999994e-5 < x < 2.1e12Initial program 99.1%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around inf 71.8%
if 2.1e12 < x Initial program 10.4%
associate-*r/18.4%
sub-neg18.4%
metadata-eval18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
fma-def18.4%
*-commutative18.4%
Simplified18.4%
Taylor expanded in z around 0 18.4%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around inf 90.9%
Final simplification93.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -6.2e-6) (not (<= x 5.8e-7)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(*
(+ 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 <= -6.2e-6) || !(x <= 5.8e-7)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))));
} 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 <= (-6.2d-6)) .or. (.not. (x <= 5.8d-7))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))))
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 <= -6.2e-6) || !(x <= 5.8e-7)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))));
} 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 <= -6.2e-6) or not (x <= 5.8e-7): tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))))) 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 <= -6.2e-6) || !(x <= 5.8e-7)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))))); 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 <= -6.2e-6) || ~((x <= 5.8e-7))) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))))); 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, -6.2e-6], N[Not[LessEqual[x, 5.8e-7]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -6.2 \cdot 10^{-6} \lor \neg \left(x \leq 5.8 \cdot 10^{-7}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\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 < -6.1999999999999999e-6 or 5.7999999999999995e-7 < x Initial program 16.5%
associate-*r/22.7%
sub-neg22.7%
metadata-eval22.7%
*-commutative22.7%
fma-def22.7%
*-commutative22.7%
fma-def22.7%
*-commutative22.7%
fma-def22.7%
fma-def22.7%
*-commutative22.7%
Simplified22.7%
Taylor expanded in z around 0 22.7%
Taylor expanded in x around inf 90.8%
if -6.1999999999999999e-6 < x < 5.7999999999999995e-7Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.6%
Final simplification94.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.005) (not (<= x 0.00013)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.005) || !(x <= 0.00013)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
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.005d0)) .or. (.not. (x <= 0.00013d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.005) || !(x <= 0.00013)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.005) or not (x <= 0.00013): tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.005) || !(x <= 0.00013)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.005) || ~((x <= 0.00013))) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.005], N[Not[LessEqual[x, 0.00013]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.005 \lor \neg \left(x \leq 0.00013\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\end{array}
\end{array}
if x < -0.0050000000000000001 or 1.29999999999999989e-4 < x Initial program 16.5%
associate-*r/22.7%
sub-neg22.7%
metadata-eval22.7%
*-commutative22.7%
fma-def22.7%
*-commutative22.7%
fma-def22.7%
*-commutative22.7%
fma-def22.7%
fma-def22.7%
*-commutative22.7%
Simplified22.7%
Taylor expanded in z around 0 22.7%
Taylor expanded in x around inf 90.8%
if -0.0050000000000000001 < x < 1.29999999999999989e-4Initial program 99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
Final simplification95.5%
(FPCore (x y z)
:precision binary64
(if (<= x -235.0)
(+ (- (* x 4.16438922228) 110.1139242984811) (/ 3655.1204654076414 x))
(if (<= x 0.45)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -235.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 0.45) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} 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 <= (-235.0d0)) then
tmp = ((x * 4.16438922228d0) - 110.1139242984811d0) + (3655.1204654076414d0 / x)
else if (x <= 0.45d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
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 <= -235.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 0.45) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -235.0: tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x) elif x <= 0.45: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -235.0) tmp = Float64(Float64(Float64(x * 4.16438922228) - 110.1139242984811) + Float64(3655.1204654076414 / x)); elseif (x <= 0.45) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); 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 <= -235.0) tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x); elseif (x <= 0.45) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -235.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.45], 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], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -235:\\
\;\;\;\;\left(x \cdot 4.16438922228 - 110.1139242984811\right) + \frac{3655.1204654076414}{x}\\
\mathbf{elif}\;x \leq 0.45:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -235Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 90.0%
+-commutative90.0%
*-commutative90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
*-commutative90.0%
fma-neg90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in x around 0 90.0%
if -235 < x < 0.450000000000000011Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 96.6%
if 0.450000000000000011 < x Initial program 18.6%
associate-*r/25.9%
sub-neg25.9%
metadata-eval25.9%
*-commutative25.9%
fma-def25.9%
*-commutative25.9%
fma-def25.9%
*-commutative25.9%
fma-def25.9%
fma-def25.9%
*-commutative25.9%
Simplified25.9%
Taylor expanded in x around inf 82.9%
Final simplification91.7%
(FPCore (x y z)
:precision binary64
(if (<= x -1300.0)
(+ (- (* x 4.16438922228) 110.1139242984811) (/ 3655.1204654076414 x))
(if (<= x 1600000000000.0)
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1300.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (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 <= (-1300.0d0)) then
tmp = ((x * 4.16438922228d0) - 110.1139242984811d0) + (3655.1204654076414d0 / x)
else if (x <= 1600000000000.0d0) then
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (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 <= -1300.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1300.0: tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x) elif x <= 1600000000000.0: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1300.0) tmp = Float64(Float64(Float64(x * 4.16438922228) - 110.1139242984811) + Float64(3655.1204654076414 / x)); elseif (x <= 1600000000000.0) tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + 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 <= -1300.0) tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x); elseif (x <= 1600000000000.0) tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1300.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1600000000000.0], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1300:\\
\;\;\;\;\left(x \cdot 4.16438922228 - 110.1139242984811\right) + \frac{3655.1204654076414}{x}\\
\mathbf{elif}\;x \leq 1600000000000:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1300Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 90.0%
+-commutative90.0%
*-commutative90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
*-commutative90.0%
fma-neg90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in x around 0 90.0%
if -1300 < x < 1.6e12Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 92.8%
if 1.6e12 < x Initial program 10.4%
associate-*r/18.4%
sub-neg18.4%
metadata-eval18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
fma-def18.4%
*-commutative18.4%
Simplified18.4%
Taylor expanded in z around 0 18.4%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around inf 90.9%
Final simplification91.8%
(FPCore (x y z)
:precision binary64
(if (<= x -410.0)
(+ (- (* x 4.16438922228) 110.1139242984811) (/ 3655.1204654076414 x))
(if (<= x 1600000000000.0)
(*
(+ x -2.0)
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} 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 <= (-410.0d0)) then
tmp = ((x * 4.16438922228d0) - 110.1139242984811d0) + (3655.1204654076414d0 / x)
else if (x <= 1600000000000.0d0) then
tmp = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))))
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 <= -410.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410.0: tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x) elif x <= 1600000000000.0: tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410.0) tmp = Float64(Float64(Float64(x * 4.16438922228) - 110.1139242984811) + Float64(3655.1204654076414 / x)); elseif (x <= 1600000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -410.0) tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x); elseif (x <= 1600000000000.0) tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1600000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410:\\
\;\;\;\;\left(x \cdot 4.16438922228 - 110.1139242984811\right) + \frac{3655.1204654076414}{x}\\
\mathbf{elif}\;x \leq 1600000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -410Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 90.0%
+-commutative90.0%
*-commutative90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
*-commutative90.0%
fma-neg90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in x around 0 90.0%
if -410 < x < 1.6e12Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 75.9%
Taylor expanded in x around 0 72.7%
*-commutative72.7%
Simplified72.7%
if 1.6e12 < x Initial program 10.4%
associate-*r/18.4%
sub-neg18.4%
metadata-eval18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
fma-def18.4%
*-commutative18.4%
Simplified18.4%
Taylor expanded in z around 0 18.4%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around inf 90.9%
Final simplification80.6%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(+ (- (* x 4.16438922228) 110.1139242984811) (/ 3655.1204654076414 x))
(if (<= x 1600000000000.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} 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 <= (-5.5d0)) then
tmp = ((x * 4.16438922228d0) - 110.1139242984811d0) + (3655.1204654076414d0 / x)
else if (x <= 1600000000000.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
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 <= -5.5) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x) elif x <= 1600000000000.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(Float64(x * 4.16438922228) - 110.1139242984811) + Float64(3655.1204654076414 / x)); elseif (x <= 1600000000000.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x); elseif (x <= 1600000000000.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1600000000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x \cdot 4.16438922228 - 110.1139242984811\right) + \frac{3655.1204654076414}{x}\\
\mathbf{elif}\;x \leq 1600000000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 90.0%
+-commutative90.0%
*-commutative90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
*-commutative90.0%
fma-neg90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in x around 0 90.0%
if -5.5 < x < 1.6e12Initial program 99.6%
Taylor expanded in x around 0 95.3%
*-commutative95.3%
Simplified95.3%
Taylor expanded in z around inf 72.7%
if 1.6e12 < x Initial program 10.4%
associate-*r/18.4%
sub-neg18.4%
metadata-eval18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
fma-def18.4%
*-commutative18.4%
Simplified18.4%
Taylor expanded in z around 0 18.4%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around inf 90.9%
Final simplification80.6%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 1600000000000.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-5.5d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 1600000000000.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 1600000000000.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 1600000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 1600000000000.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 1600000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 1600000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 89.6%
if -5.5 < x < 1.6e12Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 72.2%
if 1.6e12 < x Initial program 10.4%
associate-*r/18.4%
sub-neg18.4%
metadata-eval18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
fma-def18.4%
*-commutative18.4%
Simplified18.4%
Taylor expanded in z around 0 18.4%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around inf 90.9%
Final simplification80.2%
(FPCore (x y z)
:precision binary64
(if (<= x -94.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 1600000000000.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -94.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-94.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 1600000000000.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -94.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -94.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 1600000000000.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -94.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 1600000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -94.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 1600000000000.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -94.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1600000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -94:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 1600000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -94Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 89.6%
associate-*r/89.6%
metadata-eval89.6%
Simplified89.6%
if -94 < x < 1.6e12Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 72.2%
if 1.6e12 < x Initial program 10.4%
associate-*r/18.4%
sub-neg18.4%
metadata-eval18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
fma-def18.4%
*-commutative18.4%
Simplified18.4%
Taylor expanded in z around 0 18.4%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around inf 90.9%
Final simplification80.2%
(FPCore (x y z)
:precision binary64
(if (<= x -40.0)
(+ (- (* x 4.16438922228) 110.1139242984811) (/ 3655.1204654076414 x))
(if (<= x 1600000000000.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -40.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-40.0d0)) then
tmp = ((x * 4.16438922228d0) - 110.1139242984811d0) + (3655.1204654076414d0 / x)
else if (x <= 1600000000000.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -40.0) {
tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x);
} else if (x <= 1600000000000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -40.0: tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x) elif x <= 1600000000000.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -40.0) tmp = Float64(Float64(Float64(x * 4.16438922228) - 110.1139242984811) + Float64(3655.1204654076414 / x)); elseif (x <= 1600000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -40.0) tmp = ((x * 4.16438922228) - 110.1139242984811) + (3655.1204654076414 / x); elseif (x <= 1600000000000.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -40.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1600000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -40:\\
\;\;\;\;\left(x \cdot 4.16438922228 - 110.1139242984811\right) + \frac{3655.1204654076414}{x}\\
\mathbf{elif}\;x \leq 1600000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -40Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 90.0%
+-commutative90.0%
*-commutative90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
*-commutative90.0%
fma-neg90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in x around 0 90.0%
if -40 < x < 1.6e12Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 72.2%
if 1.6e12 < x Initial program 10.4%
associate-*r/18.4%
sub-neg18.4%
metadata-eval18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
*-commutative18.4%
fma-def18.4%
fma-def18.4%
*-commutative18.4%
Simplified18.4%
Taylor expanded in z around 0 18.4%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around inf 90.9%
Final simplification80.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -1700.0) (not (<= x 0.041))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1700.0) || !(x <= 0.041)) {
tmp = 4.16438922228 * (x + -2.0);
} 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 <= (-1700.0d0)) .or. (.not. (x <= 0.041d0))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
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 <= -1700.0) || !(x <= 0.041)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1700.0) or not (x <= 0.041): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1700.0) || !(x <= 0.041)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1700.0) || ~((x <= 0.041))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1700.0], N[Not[LessEqual[x, 0.041]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1700 \lor \neg \left(x \leq 0.041\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1700 or 0.0410000000000000017 < x Initial program 15.2%
associate-*r/21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
fma-def21.5%
*-commutative21.5%
Simplified21.5%
Taylor expanded in x around inf 85.7%
if -1700 < x < 0.0410000000000000017Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 75.1%
*-commutative75.1%
Simplified75.1%
Final simplification80.1%
(FPCore (x y z) :precision binary64 (if (<= x -5.5) (- (* x 4.16438922228) 110.1139242984811) (if (<= x 1.05) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 1.05) {
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 <= (-5.5d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 1.05d0) 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 <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 1.05) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 1.05: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 1.05) 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 <= -5.5) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 1.05) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 1.05], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 1.05:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 11.1%
associate-*r/16.3%
sub-neg16.3%
metadata-eval16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
*-commutative16.3%
fma-def16.3%
fma-def16.3%
*-commutative16.3%
Simplified16.3%
Taylor expanded in x around inf 89.6%
if -5.5 < x < 1.05000000000000004Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 75.1%
*-commutative75.1%
Simplified75.1%
if 1.05000000000000004 < x Initial program 18.6%
associate-*r/25.9%
sub-neg25.9%
metadata-eval25.9%
*-commutative25.9%
fma-def25.9%
*-commutative25.9%
fma-def25.9%
*-commutative25.9%
fma-def25.9%
fma-def25.9%
*-commutative25.9%
Simplified25.9%
Taylor expanded in x around inf 82.9%
Final simplification80.2%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(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 <= (-5.5d0)) .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 <= -5.5) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) 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 <= -5.5) || !(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 <= -5.5) || ~((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, -5.5], 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 -5.5 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 14.5%
associate-*r/20.8%
sub-neg20.8%
metadata-eval20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
fma-def20.8%
*-commutative20.8%
Simplified20.8%
Taylor expanded in z around 0 20.8%
Taylor expanded in x around inf 91.4%
Taylor expanded in x around inf 86.3%
if -5.5 < x < 2Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 74.6%
*-commutative74.6%
Simplified74.6%
Final simplification80.0%
(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.0%
associate-*r/63.0%
sub-neg63.0%
metadata-eval63.0%
*-commutative63.0%
fma-def63.0%
*-commutative63.0%
fma-def63.0%
*-commutative63.0%
fma-def63.0%
fma-def63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in z around 0 63.0%
Taylor expanded in x around inf 68.2%
Taylor expanded in x around inf 42.0%
Final simplification42.0%
(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 2023301
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(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)))