
(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 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -1.7e+56)
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))
(if (<= x 8.5e+14)
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (* x (+ 4.16438922228 (/ 78.6994924154 x))))))))))
t_0)
(* x (* y (+ (/ x t_0) (+ (/ z (* y t_0)) (/ 4.16438922228 y)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.7e+56) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} else if (x <= 8.5e+14) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0;
} else {
tmp = x * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-1.7d+56)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
else if (x <= 8.5d+14) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * (x * (4.16438922228d0 + (78.6994924154d0 / x)))))))))) / t_0
else
tmp = x * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228d0 / y))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.7e+56) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} else if (x <= 8.5e+14) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0;
} else {
tmp = x * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -1.7e+56: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) elif x <= 8.5e+14: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0 else: tmp = x * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -1.7e+56) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); elseif (x <= 8.5e+14) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(x * Float64(4.16438922228 + Float64(78.6994924154 / x)))))))))) / t_0); else tmp = Float64(x * Float64(y * Float64(Float64(x / t_0) + Float64(Float64(z / Float64(y * t_0)) + Float64(4.16438922228 / y))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -1.7e+56) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); elseif (x <= 8.5e+14) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0; else tmp = x * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -1.7e+56], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+14], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(x * N[(4.16438922228 + N[(78.6994924154 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(x * N[(y * N[(N[(x / t$95$0), $MachinePrecision] + N[(N[(z / N[(y * t$95$0), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+56}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+14}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot \left(4.16438922228 + \frac{78.6994924154}{x}\right)\right)\right)\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(\frac{x}{t\_0} + \left(\frac{z}{y \cdot t\_0} + \frac{4.16438922228}{y}\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.7e56Initial program 0.4%
associate-/l*11.4%
sub-neg11.4%
metadata-eval11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
Simplified11.4%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
if -1.7e56 < x < 8.5e14Initial program 99.6%
add-cube-cbrt99.6%
pow399.6%
Applied egg-rr99.6%
Taylor expanded in x around inf 99.6%
rem-cube-cbrt99.6%
+-commutative99.6%
associate-*r/99.6%
metadata-eval99.6%
Simplified99.6%
if 8.5e14 < x Initial program 16.2%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
Simplified18.0%
Taylor expanded in y around inf 19.8%
Taylor expanded in x around inf 99.3%
Taylor expanded in x around inf 99.3%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
5e+305)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+305) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+305) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 5e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000009e305Initial program 96.2%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
if 5.00000000000000009e305 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.3%
sub-neg2.3%
metadata-eval2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
Simplified2.3%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 (- INFINITY))
(*
x
(+
4.16438922228
(/
(-
(/
(+ 3451.550173699799 (* y (/ (- 1.0 (/ 124074.40615218398 y)) x)))
x)
101.7851458539211)
x)))
(if (<= t_1 5e+305)
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (* x (+ 4.16438922228 (/ 78.6994924154 x))))))))))
t_0)
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
} else if (t_1 <= 5e+305) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
} else if (t_1 <= 5e+305) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= -math.inf: tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)) elif t_1 <= 5e+305: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0 else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y * Float64(Float64(1.0 - Float64(124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x))); elseif (t_1 <= 5e+305) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(x * Float64(4.16438922228 + Float64(78.6994924154 / x)))))))))) / t_0); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= -Inf) tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)); elseif (t_1 <= 5e+305) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (x * (4.16438922228 + (78.6994924154 / x)))))))))) / t_0; else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(y * N[(N[(1.0 - N[(124074.40615218398 / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+305], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(x * N[(4.16438922228 + N[(78.6994924154 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + y \cdot \frac{1 - \frac{124074.40615218398}{y}}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot \left(4.16438922228 + \frac{78.6994924154}{x}\right)\right)\right)\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 3.8%
associate-/l*83.3%
sub-neg83.3%
metadata-eval83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
Simplified83.3%
Taylor expanded in y around inf 84.0%
Taylor expanded in x around inf 84.0%
Taylor expanded in x around -inf 99.0%
Simplified99.2%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000009e305Initial program 99.6%
add-cube-cbrt99.6%
pow399.6%
Applied egg-rr99.6%
Taylor expanded in x around inf 99.6%
rem-cube-cbrt99.6%
+-commutative99.6%
associate-*r/99.6%
metadata-eval99.6%
Simplified99.6%
if 5.00000000000000009e305 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.3%
sub-neg2.3%
metadata-eval2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
Simplified2.3%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 (- INFINITY))
(*
x
(+
4.16438922228
(/
(-
(/
(+ 3451.550173699799 (* y (/ (- 1.0 (/ 124074.40615218398 y)) x)))
x)
101.7851458539211)
x)))
(if (<= t_0 5e+305)
t_0
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+305) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+305) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= -math.inf: tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)) elif t_0 <= 5e+305: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y * Float64(Float64(1.0 - Float64(124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x))); elseif (t_0 <= 5e+305) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= -Inf) tmp = x * (4.16438922228 + ((((3451.550173699799 + (y * ((1.0 - (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)); elseif (t_0 <= 5e+305) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(y * N[(N[(1.0 - N[(124074.40615218398 / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+305], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + y \cdot \frac{1 - \frac{124074.40615218398}{y}}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 3.8%
associate-/l*83.3%
sub-neg83.3%
metadata-eval83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
fma-define83.3%
Simplified83.3%
Taylor expanded in y around inf 84.0%
Taylor expanded in x around inf 84.0%
Taylor expanded in x around -inf 99.0%
Simplified99.2%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000009e305Initial program 99.6%
if 5.00000000000000009e305 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.3%
sub-neg2.3%
metadata-eval2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
Simplified2.3%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (<= x -1.6e+33)
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))
(if (<= x 114000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
x
(+
4.16438922228
(/
(-
(/
(+ 3655.1204654076414 (+ (/ y x) (* 130977.50649958357 (/ -1.0 x))))
x)
110.1139242984811)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.6e+33) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} else if (x <= 114000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) + (130977.50649958357 * (-1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.6d+33)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
else if (x <= 114000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = x * (4.16438922228d0 + ((((3655.1204654076414d0 + ((y / x) + (130977.50649958357d0 * ((-1.0d0) / x)))) / x) - 110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.6e+33) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} else if (x <= 114000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) + (130977.50649958357 * (-1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.6e+33: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) elif x <= 114000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) + (130977.50649958357 * (-1.0 / x)))) / x) - 110.1139242984811) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.6e+33) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); elseif (x <= 114000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3655.1204654076414 + Float64(Float64(y / x) + Float64(130977.50649958357 * Float64(-1.0 / x)))) / x) - 110.1139242984811) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.6e+33) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); elseif (x <= 114000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) + (130977.50649958357 * (-1.0 / x)))) / x) - 110.1139242984811) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.6e+33], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 114000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3655.1204654076414 + N[(N[(y / x), $MachinePrecision] + N[(130977.50649958357 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{+33}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 114000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414 + \left(\frac{y}{x} + 130977.50649958357 \cdot \frac{-1}{x}\right)}{x} - 110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.60000000000000009e33Initial program 10.7%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around -inf 97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
neg-mul-197.4%
unsub-neg97.4%
Simplified97.4%
if -1.60000000000000009e33 < x < 114000Initial program 99.6%
Taylor expanded in x around 0 97.8%
*-commutative97.8%
Simplified97.8%
if 114000 < x Initial program 19.3%
associate-/l*21.1%
sub-neg21.1%
metadata-eval21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
fma-define21.1%
Simplified21.1%
Taylor expanded in x around -inf 97.1%
Final simplification97.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(-
(* y -0.0424927283095952)
(*
x
(+
(* y -0.28294182010212804)
(* 0.0212463641547976 (- 275.038832832 y)))))))
(t_1
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))))
(if (<= x -42000.0)
t_1
(if (<= x -5.9e-50)
t_0
(if (<= x 1.6e-79)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 5200.0) t_0 t_1))))))
double code(double x, double y, double z) {
double t_0 = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y)))));
double t_1 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
double tmp;
if (x <= -42000.0) {
tmp = t_1;
} else if (x <= -5.9e-50) {
tmp = t_0;
} else if (x <= 1.6e-79) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 5200.0) {
tmp = t_0;
} else {
tmp = 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 = x * ((y * (-0.0424927283095952d0)) - (x * ((y * (-0.28294182010212804d0)) + (0.0212463641547976d0 * (275.038832832d0 - y)))))
t_1 = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
if (x <= (-42000.0d0)) then
tmp = t_1
else if (x <= (-5.9d-50)) then
tmp = t_0
else if (x <= 1.6d-79) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 5200.0d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y)))));
double t_1 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
double tmp;
if (x <= -42000.0) {
tmp = t_1;
} else if (x <= -5.9e-50) {
tmp = t_0;
} else if (x <= 1.6e-79) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 5200.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y))))) t_1 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) tmp = 0 if x <= -42000.0: tmp = t_1 elif x <= -5.9e-50: tmp = t_0 elif x <= 1.6e-79: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 5200.0: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(x * Float64(Float64(y * -0.28294182010212804) + Float64(0.0212463641547976 * Float64(275.038832832 - y)))))) t_1 = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))) tmp = 0.0 if (x <= -42000.0) tmp = t_1; elseif (x <= -5.9e-50) tmp = t_0; elseif (x <= 1.6e-79) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 5200.0) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y))))); t_1 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); tmp = 0.0; if (x <= -42000.0) tmp = t_1; elseif (x <= -5.9e-50) tmp = t_0; elseif (x <= 1.6e-79) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 5200.0) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(y * -0.28294182010212804), $MachinePrecision] + N[(0.0212463641547976 * N[(275.038832832 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -42000.0], t$95$1, If[LessEqual[x, -5.9e-50], t$95$0, If[LessEqual[x, 1.6e-79], 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], If[LessEqual[x, 5200.0], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y \cdot -0.0424927283095952 - x \cdot \left(y \cdot -0.28294182010212804 + 0.0212463641547976 \cdot \left(275.038832832 - y\right)\right)\right)\\
t_1 := \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{if}\;x \leq -42000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.9 \cdot 10^{-50}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-79}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 5200:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -42000 or 5200 < x Initial program 19.1%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around -inf 87.8%
mul-1-neg87.8%
unsub-neg87.8%
sub-neg87.8%
associate-*r/87.8%
metadata-eval87.8%
distribute-neg-frac87.8%
metadata-eval87.8%
Simplified87.8%
if -42000 < x < -5.9e-50 or 1.59999999999999994e-79 < x < 5200Initial program 99.3%
Taylor expanded in x around 0 89.6%
*-commutative89.6%
Simplified89.6%
Taylor expanded in z around 0 59.9%
Taylor expanded in x around 0 55.2%
if -5.9e-50 < x < 1.59999999999999994e-79Initial program 99.8%
Taylor expanded in x around 0 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 79.9%
Final simplification80.2%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 105.0)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 105.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (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 <= (-5.5d0)) .or. (.not. (x <= 105.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (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 <= -5.5) || !(x <= 105.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 105.0): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 105.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / 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 <= -5.5) || ~((x <= 105.0))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 105.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $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 -5.5 \lor \neg \left(x \leq 105\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\end{array}
\end{array}
if x < -5.5 or 105 < x Initial program 20.4%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
Simplified26.1%
Taylor expanded in x around -inf 94.3%
mul-1-neg94.3%
unsub-neg94.3%
mul-1-neg94.3%
unsub-neg94.3%
mul-1-neg94.3%
unsub-neg94.3%
neg-mul-194.3%
unsub-neg94.3%
Simplified94.3%
if -5.5 < x < 105Initial program 99.7%
Taylor expanded in x around 0 98.6%
*-commutative98.6%
Simplified98.6%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
Final simplification96.5%
(FPCore (x y z)
:precision binary64
(if (<= x -0.0155)
(*
(+ x -2.0)
(*
y
(+
(/
x
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* 4.16438922228 (/ 1.0 y)))))
(if (<= x 120.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.0155) {
tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y))));
} else if (x <= 120.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.0155d0)) then
tmp = (x + (-2.0d0)) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) + (4.16438922228d0 * (1.0d0 / y))))
else if (x <= 120.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.0155) {
tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y))));
} else if (x <= 120.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.0155: tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y)))) elif x <= 120.0: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.0155) tmp = Float64(Float64(x + -2.0) * Float64(y * Float64(Float64(x / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + Float64(4.16438922228 * Float64(1.0 / y))))); elseif (x <= 120.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.0155) tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y)))); elseif (x <= 120.0) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.0155], N[(N[(x + -2.0), $MachinePrecision] * N[(y * N[(N[(x / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 120.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $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[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0155:\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(\frac{x}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} + 4.16438922228 \cdot \frac{1}{y}\right)\right)\\
\mathbf{elif}\;x \leq 120:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\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{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -0.0155Initial program 21.3%
associate-/l*30.0%
sub-neg30.0%
metadata-eval30.0%
fma-define30.0%
fma-define30.0%
fma-define30.0%
fma-define30.0%
fma-define30.0%
fma-define30.0%
fma-define30.0%
Simplified30.0%
Taylor expanded in y around inf 28.7%
Taylor expanded in x around inf 96.9%
Taylor expanded in z around 0 92.2%
if -0.0155 < x < 120Initial program 99.7%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
if 120 < x Initial program 20.8%
associate-/l*22.6%
sub-neg22.6%
metadata-eval22.6%
fma-define22.6%
fma-define22.6%
fma-define22.6%
fma-define22.6%
fma-define22.6%
fma-define22.6%
fma-define22.6%
Simplified22.6%
Taylor expanded in x around -inf 95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
neg-mul-195.8%
unsub-neg95.8%
Simplified95.8%
Final simplification96.6%
(FPCore (x y z)
:precision binary64
(if (or (<= x -112.0) (not (<= x 75.0)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))
(/
(* (- 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 <= -112.0) || !(x <= 75.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} 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 <= (-112.0d0)) .or. (.not. (x <= 75.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
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 <= -112.0) || !(x <= 75.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} 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 <= -112.0) or not (x <= 75.0): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) 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 <= -112.0) || !(x <= 75.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); 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 <= -112.0) || ~((x <= 75.0))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); 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, -112.0], N[Not[LessEqual[x, 75.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $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 -112 \lor \neg \left(x \leq 75\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\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 < -112 or 75 < x Initial program 20.4%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
fma-define26.1%
Simplified26.1%
Taylor expanded in x around -inf 94.3%
mul-1-neg94.3%
unsub-neg94.3%
mul-1-neg94.3%
unsub-neg94.3%
mul-1-neg94.3%
unsub-neg94.3%
neg-mul-194.3%
unsub-neg94.3%
Simplified94.3%
if -112 < x < 75Initial program 99.7%
Taylor expanded in x around 0 98.6%
*-commutative98.6%
Simplified98.6%
Taylor expanded in x around 0 98.0%
*-commutative99.0%
Simplified98.0%
Final simplification96.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))))
(if (<= x -1.35)
t_0
(if (<= x -1.9e-47)
(/ (* x (* (- x 2.0) y)) (+ 47.066876606 (* x 313.399215894)))
(if (<= x 5200.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
t_0)))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
double tmp;
if (x <= -1.35) {
tmp = t_0;
} else if (x <= -1.9e-47) {
tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894));
} else if (x <= 5200.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} 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 = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
if (x <= (-1.35d0)) then
tmp = t_0
else if (x <= (-1.9d-47)) then
tmp = (x * ((x - 2.0d0) * y)) / (47.066876606d0 + (x * 313.399215894d0))
else if (x <= 5200.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
double tmp;
if (x <= -1.35) {
tmp = t_0;
} else if (x <= -1.9e-47) {
tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894));
} else if (x <= 5200.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) tmp = 0 if x <= -1.35: tmp = t_0 elif x <= -1.9e-47: tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894)) elif x <= 5200.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))) tmp = 0.0 if (x <= -1.35) tmp = t_0; elseif (x <= -1.9e-47) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / Float64(47.066876606 + Float64(x * 313.399215894))); elseif (x <= 5200.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); tmp = 0.0; if (x <= -1.35) tmp = t_0; elseif (x <= -1.9e-47) tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894)); elseif (x <= 5200.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35], t$95$0, If[LessEqual[x, -1.9e-47], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5200.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], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-47}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 5200:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.3500000000000001 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around -inf 87.1%
mul-1-neg87.1%
unsub-neg87.1%
sub-neg87.1%
associate-*r/87.1%
metadata-eval87.1%
distribute-neg-frac87.1%
metadata-eval87.1%
Simplified87.1%
if -1.3500000000000001 < x < -1.90000000000000007e-47Initial program 99.3%
Taylor expanded in x around 0 94.4%
*-commutative94.4%
Simplified94.4%
Taylor expanded in y around inf 64.2%
Taylor expanded in x around 0 60.0%
*-commutative60.0%
Simplified60.0%
if -1.90000000000000007e-47 < x < 5200Initial program 99.7%
Taylor expanded in x around 0 98.3%
*-commutative98.3%
Simplified98.3%
Taylor expanded in z around inf 71.3%
Final simplification77.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 0.195)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x)))
(*
(+ 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 <= -5.5) || !(x <= 0.195)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} 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 <= (-5.5d0)) .or. (.not. (x <= 0.195d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
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 <= -5.5) || !(x <= 0.195)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
} 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 <= -5.5) or not (x <= 0.195): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) 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 <= -5.5) || !(x <= 0.195)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); 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 <= -5.5) || ~((x <= 0.195))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); 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, -5.5], N[Not[LessEqual[x, 0.195]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $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 -5.5 \lor \neg \left(x \leq 0.195\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\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 < -5.5 or 0.19500000000000001 < x Initial program 21.1%
associate-/l*26.7%
sub-neg26.7%
metadata-eval26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
Simplified26.7%
Taylor expanded in x around -inf 93.5%
mul-1-neg93.5%
unsub-neg93.5%
mul-1-neg93.5%
unsub-neg93.5%
mul-1-neg93.5%
unsub-neg93.5%
neg-mul-193.5%
unsub-neg93.5%
Simplified93.5%
if -5.5 < x < 0.19500000000000001Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 91.8%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))))
(if (<= x -1.35)
t_0
(if (<= x -2.65e-39)
(/ (* x (* (- x 2.0) y)) (+ 47.066876606 (* x 313.399215894)))
(if (<= x 5200.0) (* (+ x -2.0) (* z 0.0212463641547976)) t_0)))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
double tmp;
if (x <= -1.35) {
tmp = t_0;
} else if (x <= -2.65e-39) {
tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894));
} else if (x <= 5200.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
if (x <= (-1.35d0)) then
tmp = t_0
else if (x <= (-2.65d-39)) then
tmp = (x * ((x - 2.0d0) * y)) / (47.066876606d0 + (x * 313.399215894d0))
else if (x <= 5200.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
double tmp;
if (x <= -1.35) {
tmp = t_0;
} else if (x <= -2.65e-39) {
tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894));
} else if (x <= 5200.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) tmp = 0 if x <= -1.35: tmp = t_0 elif x <= -2.65e-39: tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894)) elif x <= 5200.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))) tmp = 0.0 if (x <= -1.35) tmp = t_0; elseif (x <= -2.65e-39) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / Float64(47.066876606 + Float64(x * 313.399215894))); elseif (x <= 5200.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); tmp = 0.0; if (x <= -1.35) tmp = t_0; elseif (x <= -2.65e-39) tmp = (x * ((x - 2.0) * y)) / (47.066876606 + (x * 313.399215894)); elseif (x <= 5200.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35], t$95$0, If[LessEqual[x, -2.65e-39], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5200.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -2.65 \cdot 10^{-39}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 5200:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.3500000000000001 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around -inf 87.1%
mul-1-neg87.1%
unsub-neg87.1%
sub-neg87.1%
associate-*r/87.1%
metadata-eval87.1%
distribute-neg-frac87.1%
metadata-eval87.1%
Simplified87.1%
if -1.3500000000000001 < x < -2.65000000000000002e-39Initial program 99.3%
Taylor expanded in x around 0 94.4%
*-commutative94.4%
Simplified94.4%
Taylor expanded in y around inf 64.2%
Taylor expanded in x around 0 60.0%
*-commutative60.0%
Simplified60.0%
if -2.65000000000000002e-39 < x < 5200Initial program 99.7%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
Simplified70.9%
Final simplification77.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -42000.0) (not (<= x 5200.0)))
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(*
(+ 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 <= -42000.0) || !(x <= 5200.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} 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 <= (-42000.0d0)) .or. (.not. (x <= 5200.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
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 <= -42000.0) || !(x <= 5200.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} 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 <= -42000.0) or not (x <= 5200.0): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) 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 <= -42000.0) || !(x <= 5200.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); 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 <= -42000.0) || ~((x <= 5200.0))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); 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, -42000.0], N[Not[LessEqual[x, 5200.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $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 -42000 \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\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 < -42000 or 5200 < x Initial program 19.1%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around -inf 87.8%
mul-1-neg87.8%
unsub-neg87.8%
sub-neg87.8%
associate-*r/87.8%
metadata-eval87.8%
distribute-neg-frac87.8%
metadata-eval87.8%
Simplified87.8%
if -42000 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 90.0%
Final simplification89.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 5200.0)))
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
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 <= 5200.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 5200.0): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 5200.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 5200.0))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 5200.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -5.5 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around -inf 87.1%
mul-1-neg87.1%
unsub-neg87.1%
sub-neg87.1%
associate-*r/87.1%
metadata-eval87.1%
distribute-neg-frac87.1%
metadata-eval87.1%
Simplified87.1%
if -5.5 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.7%
*-commutative66.7%
Simplified66.7%
Final simplification76.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 5200.0)))
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
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 <= 5200.0d0))) then
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 5200.0): tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 5200.0)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 5200.0))) tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 5200.0]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -5.5 or 5200 < x Initial program 19.8%
Taylor expanded in x around inf 19.8%
associate-*r/19.8%
metadata-eval19.8%
Simplified19.8%
Taylor expanded in x around inf 87.1%
associate--l+87.1%
unpow287.1%
associate-/r*87.1%
metadata-eval87.1%
associate-*r/87.1%
associate-*r/87.1%
metadata-eval87.1%
div-sub87.1%
sub-neg87.1%
associate-*r/87.1%
metadata-eval87.1%
metadata-eval87.1%
Simplified87.1%
if -5.5 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.7%
*-commutative66.7%
Simplified66.7%
Final simplification76.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 5200.0))) (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
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 <= 5200.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 5200.0): tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 5200.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 5200.0))) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 5200.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -5.5 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
if -5.5 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.7%
*-commutative66.7%
Simplified66.7%
Final simplification75.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 5200.0))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
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 <= 5200.0d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 5200.0): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 5200.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 5200.0))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 5200.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -5.5 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
if -5.5 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.7%
*-commutative66.7%
Simplified66.7%
Final simplification75.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 5200.0))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} 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 <= 5200.0d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
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 <= 5200.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 5200.0): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 5200.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); 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 <= 5200.0))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 5200.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
if -5.5 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.7%
Final simplification75.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 5200.0))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.0)) {
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 <= (-5.5d0)) .or. (.not. (x <= 5200.0d0))) 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 <= -5.5) || !(x <= 5200.0)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 5200.0): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 5200.0)) 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 <= -5.5) || ~((x <= 5200.0))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 5200.0]], $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 -5.5 \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 86.1%
if -5.5 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.7%
Final simplification75.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 5200.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 5200.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 <= 5200.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 <= 5200.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 <= 5200.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 <= 5200.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 <= 5200.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, 5200.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 5200\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 5200 < x Initial program 19.8%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 86.1%
*-commutative86.1%
Simplified86.1%
if -5.5 < x < 5200Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.7%
Final simplification75.6%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 63.2%
associate-/l*65.8%
sub-neg65.8%
metadata-eval65.8%
fma-define65.8%
fma-define65.8%
fma-define65.8%
fma-define65.8%
fma-define65.8%
fma-define65.8%
fma-define65.8%
Simplified65.8%
Taylor expanded in x around 0 37.6%
Final simplification37.6%
(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 2024137
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))