
(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 26 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))
(t_1 (/ z (* y t_0)))
(t_2 (/ x t_0)))
(if (<= x -1.02e+24)
(* (+ x -2.0) (* y (+ t_2 (+ t_1 (/ 4.16438922228 y)))))
(if (<= x 1.5e+15)
(+
(/ (* x (* (- x 2.0) y)) t_0)
(/
(*
(- x 2.0)
(+
z
(*
(pow x 2.0)
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
t_0))
(*
(+ x -2.0)
(*
y
(-
t_2
(- (- (/ 101.7851458539211 (* x y)) (/ 4.16438922228 y)) t_1))))))))
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 = z / (y * t_0);
double t_2 = x / t_0;
double tmp;
if (x <= -1.02e+24) {
tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y))));
} else if (x <= 1.5e+15) {
tmp = ((x * ((x - 2.0) * y)) / t_0) + (((x - 2.0) * (z + (pow(x, 2.0) * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) / t_0);
} else {
tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - 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) :: t_2
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = z / (y * t_0)
t_2 = x / t_0
if (x <= (-1.02d+24)) then
tmp = (x + (-2.0d0)) * (y * (t_2 + (t_1 + (4.16438922228d0 / y))))
else if (x <= 1.5d+15) then
tmp = ((x * ((x - 2.0d0) * y)) / t_0) + (((x - 2.0d0) * (z + ((x ** 2.0d0) * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))) / t_0)
else
tmp = (x + (-2.0d0)) * (y * (t_2 - (((101.7851458539211d0 / (x * y)) - (4.16438922228d0 / y)) - t_1)))
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 t_1 = z / (y * t_0);
double t_2 = x / t_0;
double tmp;
if (x <= -1.02e+24) {
tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y))));
} else if (x <= 1.5e+15) {
tmp = ((x * ((x - 2.0) * y)) / t_0) + (((x - 2.0) * (z + (Math.pow(x, 2.0) * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) / t_0);
} else {
tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - t_1)));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = z / (y * t_0) t_2 = x / t_0 tmp = 0 if x <= -1.02e+24: tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y)))) elif x <= 1.5e+15: tmp = ((x * ((x - 2.0) * y)) / t_0) + (((x - 2.0) * (z + (math.pow(x, 2.0) * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) / t_0) else: tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - t_1))) 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(z / Float64(y * t_0)) t_2 = Float64(x / t_0) tmp = 0.0 if (x <= -1.02e+24) tmp = Float64(Float64(x + -2.0) * Float64(y * Float64(t_2 + Float64(t_1 + Float64(4.16438922228 / y))))); elseif (x <= 1.5e+15) tmp = Float64(Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / t_0) + Float64(Float64(Float64(x - 2.0) * Float64(z + Float64((x ^ 2.0) * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) / t_0)); else tmp = Float64(Float64(x + -2.0) * Float64(y * Float64(t_2 - Float64(Float64(Float64(101.7851458539211 / Float64(x * y)) - Float64(4.16438922228 / y)) - t_1)))); 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 = z / (y * t_0); t_2 = x / t_0; tmp = 0.0; if (x <= -1.02e+24) tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y)))); elseif (x <= 1.5e+15) tmp = ((x * ((x - 2.0) * y)) / t_0) + (((x - 2.0) * (z + ((x ^ 2.0) * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) / t_0); else tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - t_1))); 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[(z / N[(y * t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / t$95$0), $MachinePrecision]}, If[LessEqual[x, -1.02e+24], N[(N[(x + -2.0), $MachinePrecision] * N[(y * N[(t$95$2 + N[(t$95$1 + N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e+15], N[(N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(N[Power[x, 2.0], $MachinePrecision] * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(y * N[(t$95$2 - N[(N[(N[(101.7851458539211 / N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision] - t$95$1), $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\\
t_1 := \frac{z}{y \cdot t\_0}\\
t_2 := \frac{x}{t\_0}\\
\mathbf{if}\;x \leq -1.02 \cdot 10^{+24}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(t\_2 + \left(t\_1 + \frac{4.16438922228}{y}\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+15}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{t\_0} + \frac{\left(x - 2\right) \cdot \left(z + {x}^{2} \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(t\_2 - \left(\left(\frac{101.7851458539211}{x \cdot y} - \frac{4.16438922228}{y}\right) - t\_1\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.02000000000000004e24Initial program 5.4%
associate-/l*13.2%
sub-neg13.2%
metadata-eval13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
Simplified13.2%
Taylor expanded in y around inf 11.6%
Taylor expanded in x around inf 97.6%
if -1.02000000000000004e24 < x < 1.5e15Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around 0 99.6%
if 1.5e15 < x Initial program 14.9%
associate-/l*16.4%
sub-neg16.4%
metadata-eval16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
Simplified16.4%
Taylor expanded in y around inf 17.8%
Taylor expanded in x around inf 99.2%
associate-*r/99.3%
metadata-eval99.3%
associate-*r/99.3%
metadata-eval99.3%
Simplified99.3%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))
y))
z))
t_0)
4e+273)
(*
(+ x -2.0)
(/
(fma
(fma
(fma
(/
(+ (* (pow x 2.0) 17.342137594641823) -6193.6101064416025)
(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)
(*
z
(+
(/ 1.0 t_0)
(- (/ 4.16438922228 z) (/ 101.7851458539211 (* x z)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0) <= 4e+273) {
tmp = (x + -2.0) * (fma(fma(fma((((pow(x, 2.0) * 17.342137594641823) + -6193.6101064416025) / 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) * (z * ((1.0 / t_0) + ((4.16438922228 / z) - (101.7851458539211 / (x * z)))));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))) + y)) + z)) / t_0) <= 4e+273) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(Float64(Float64(Float64((x ^ 2.0) * 17.342137594641823) + -6193.6101064416025) / 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(z * Float64(Float64(1.0 / t_0) + Float64(Float64(4.16438922228 / z) - Float64(101.7851458539211 / Float64(x * z)))))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 4e+273], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[Power[x, 2.0], $MachinePrecision] * 17.342137594641823), $MachinePrecision] + -6193.6101064416025), $MachinePrecision] / N[(x * 4.16438922228 + -78.6994924154), $MachinePrecision]), $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[(z * N[(N[(1.0 / t$95$0), $MachinePrecision] + N[(N[(4.16438922228 / z), $MachinePrecision] - N[(101.7851458539211 / N[(x * z), $MachinePrecision]), $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}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right) + y\right) + z\right)}{t\_0} \leq 4 \cdot 10^{+273}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\frac{{x}^{2} \cdot 17.342137594641823 + -6193.6101064416025}{\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(z \cdot \left(\frac{1}{t\_0} + \left(\frac{4.16438922228}{z} - \frac{101.7851458539211}{x \cdot z}\right)\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 3.99999999999999978e273Initial program 96.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
Simplified98.8%
fma-define98.8%
flip-+98.8%
div-inv98.8%
sub-neg98.8%
pow298.8%
metadata-eval98.8%
metadata-eval98.8%
fmm-def98.8%
metadata-eval98.8%
Applied egg-rr98.8%
associate-*r/98.8%
*-rgt-identity98.8%
unpow298.8%
swap-sqr98.8%
unpow298.8%
metadata-eval98.9%
Simplified98.9%
if 3.99999999999999978e273 < (/.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 1.9%
associate-/l*3.6%
sub-neg3.6%
metadata-eval3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
Simplified3.6%
Taylor expanded in z around inf 3.6%
Taylor expanded in x around inf 98.2%
associate-*r/98.4%
metadata-eval98.4%
associate-*r/98.4%
metadata-eval98.4%
*-commutative98.4%
Simplified98.4%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))
y))
z))
t_0)
4e+273)
(*
(+ 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)
(*
z
(+
(/ 1.0 t_0)
(- (/ 4.16438922228 z) (/ 101.7851458539211 (* x z)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0) <= 4e+273) {
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) * (z * ((1.0 / t_0) + ((4.16438922228 / z) - (101.7851458539211 / (x * z)))));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))) + y)) + z)) / t_0) <= 4e+273) 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(z * Float64(Float64(1.0 / t_0) + Float64(Float64(4.16438922228 / z) - Float64(101.7851458539211 / Float64(x * z)))))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 4e+273], 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[(z * N[(N[(1.0 / t$95$0), $MachinePrecision] + N[(N[(4.16438922228 / z), $MachinePrecision] - N[(101.7851458539211 / N[(x * z), $MachinePrecision]), $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}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right) + y\right) + z\right)}{t\_0} \leq 4 \cdot 10^{+273}:\\
\;\;\;\;\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(z \cdot \left(\frac{1}{t\_0} + \left(\frac{4.16438922228}{z} - \frac{101.7851458539211}{x \cdot z}\right)\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 3.99999999999999978e273Initial program 96.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
fma-define98.8%
Simplified98.8%
if 3.99999999999999978e273 < (/.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 1.9%
associate-/l*3.6%
sub-neg3.6%
metadata-eval3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
Simplified3.6%
Taylor expanded in z around inf 3.6%
Taylor expanded in x around inf 98.2%
associate-*r/98.4%
metadata-eval98.4%
associate-*r/98.4%
metadata-eval98.4%
*-commutative98.4%
Simplified98.4%
Final simplification98.6%
(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
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))
y))
z))
t_0)))
(if (<= t_1 4e+273)
t_1
(*
(+ x -2.0)
(*
z
(+
(/ 1.0 t_0)
(- (/ 4.16438922228 z) (/ 101.7851458539211 (* x z)))))))))
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 * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 4e+273) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (z * ((1.0 / t_0) + ((4.16438922228 / z) - (101.7851458539211 / (x * z)))));
}
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 * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = ((x - 2.0d0) * ((x * ((x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))) + y)) + z)) / t_0
if (t_1 <= 4d+273) then
tmp = t_1
else
tmp = (x + (-2.0d0)) * (z * ((1.0d0 / t_0) + ((4.16438922228d0 / z) - (101.7851458539211d0 / (x * z)))))
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 t_1 = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 4e+273) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (z * ((1.0 / t_0) + ((4.16438922228 / z) - (101.7851458539211 / (x * z)))));
}
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 * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0 tmp = 0 if t_1 <= 4e+273: tmp = t_1 else: tmp = (x + -2.0) * (z * ((1.0 / t_0) + ((4.16438922228 / z) - (101.7851458539211 / (x * z))))) 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(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= 4e+273) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(z * Float64(Float64(1.0 / t_0) + Float64(Float64(4.16438922228 / z) - Float64(101.7851458539211 / Float64(x * z)))))); 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 * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= 4e+273) tmp = t_1; else tmp = (x + -2.0) * (z * ((1.0 / t_0) + ((4.16438922228 / z) - (101.7851458539211 / (x * z))))); 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[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, 4e+273], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(z * N[(N[(1.0 / t$95$0), $MachinePrecision] + N[(N[(4.16438922228 / z), $MachinePrecision] - N[(101.7851458539211 / N[(x * z), $MachinePrecision]), $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\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right) + y\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq 4 \cdot 10^{+273}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot \left(\frac{1}{t\_0} + \left(\frac{4.16438922228}{z} - \frac{101.7851458539211}{x \cdot z}\right)\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 3.99999999999999978e273Initial program 96.2%
if 3.99999999999999978e273 < (/.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 1.9%
associate-/l*3.6%
sub-neg3.6%
metadata-eval3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
Simplified3.6%
Taylor expanded in z around inf 3.6%
Taylor expanded in x around inf 98.2%
associate-*r/98.4%
metadata-eval98.4%
associate-*r/98.4%
metadata-eval98.4%
*-commutative98.4%
Simplified98.4%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1 (/ z (* y t_0)))
(t_2 (/ x t_0)))
(if (<= x -3e+22)
(* (+ x -2.0) (* y (+ t_2 (+ t_1 (/ 4.16438922228 y)))))
(if (<= x 9e+15)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))
y))
z))
t_0)
(*
(+ x -2.0)
(*
y
(-
t_2
(- (- (/ 101.7851458539211 (* x y)) (/ 4.16438922228 y)) t_1))))))))
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 = z / (y * t_0);
double t_2 = x / t_0;
double tmp;
if (x <= -3e+22) {
tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y))));
} else if (x <= 9e+15) {
tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0;
} else {
tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - 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) :: t_2
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = z / (y * t_0)
t_2 = x / t_0
if (x <= (-3d+22)) then
tmp = (x + (-2.0d0)) * (y * (t_2 + (t_1 + (4.16438922228d0 / y))))
else if (x <= 9d+15) then
tmp = ((x - 2.0d0) * ((x * ((x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))) + y)) + z)) / t_0
else
tmp = (x + (-2.0d0)) * (y * (t_2 - (((101.7851458539211d0 / (x * y)) - (4.16438922228d0 / y)) - t_1)))
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 t_1 = z / (y * t_0);
double t_2 = x / t_0;
double tmp;
if (x <= -3e+22) {
tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y))));
} else if (x <= 9e+15) {
tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0;
} else {
tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - t_1)));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = z / (y * t_0) t_2 = x / t_0 tmp = 0 if x <= -3e+22: tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y)))) elif x <= 9e+15: tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0 else: tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - t_1))) 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(z / Float64(y * t_0)) t_2 = Float64(x / t_0) tmp = 0.0 if (x <= -3e+22) tmp = Float64(Float64(x + -2.0) * Float64(y * Float64(t_2 + Float64(t_1 + Float64(4.16438922228 / y))))); elseif (x <= 9e+15) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))) + y)) + z)) / t_0); else tmp = Float64(Float64(x + -2.0) * Float64(y * Float64(t_2 - Float64(Float64(Float64(101.7851458539211 / Float64(x * y)) - Float64(4.16438922228 / y)) - t_1)))); 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 = z / (y * t_0); t_2 = x / t_0; tmp = 0.0; if (x <= -3e+22) tmp = (x + -2.0) * (y * (t_2 + (t_1 + (4.16438922228 / y)))); elseif (x <= 9e+15) tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0; else tmp = (x + -2.0) * (y * (t_2 - (((101.7851458539211 / (x * y)) - (4.16438922228 / y)) - t_1))); 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[(z / N[(y * t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / t$95$0), $MachinePrecision]}, If[LessEqual[x, -3e+22], N[(N[(x + -2.0), $MachinePrecision] * N[(y * N[(t$95$2 + N[(t$95$1 + N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e+15], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(y * N[(t$95$2 - N[(N[(N[(101.7851458539211 / N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision] - t$95$1), $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\\
t_1 := \frac{z}{y \cdot t\_0}\\
t_2 := \frac{x}{t\_0}\\
\mathbf{if}\;x \leq -3 \cdot 10^{+22}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(t\_2 + \left(t\_1 + \frac{4.16438922228}{y}\right)\right)\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+15}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right) + y\right) + z\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(t\_2 - \left(\left(\frac{101.7851458539211}{x \cdot y} - \frac{4.16438922228}{y}\right) - t\_1\right)\right)\right)\\
\end{array}
\end{array}
if x < -3e22Initial program 5.4%
associate-/l*13.2%
sub-neg13.2%
metadata-eval13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
fma-define13.2%
Simplified13.2%
Taylor expanded in y around inf 11.6%
Taylor expanded in x around inf 97.6%
if -3e22 < x < 9e15Initial program 99.5%
if 9e15 < x Initial program 14.9%
associate-/l*16.4%
sub-neg16.4%
metadata-eval16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
Simplified16.4%
Taylor expanded in y around inf 17.8%
Taylor expanded in x around inf 99.2%
associate-*r/99.3%
metadata-eval99.3%
associate-*r/99.3%
metadata-eval99.3%
Simplified99.3%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (or (<= x -6.5e+23) (not (<= x 2.6e+16)))
(* (+ x -2.0) (* y (+ (/ x t_0) (+ (/ z (* y t_0)) (/ 4.16438922228 y)))))
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))
y))
z))
t_0))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -6.5e+23) || !(x <= 2.6e+16)) {
tmp = (x + -2.0) * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y))));
} else {
tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((x <= (-6.5d+23)) .or. (.not. (x <= 2.6d+16))) then
tmp = (x + (-2.0d0)) * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228d0 / y))))
else
tmp = ((x - 2.0d0) * ((x * ((x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))) + y)) + z)) / t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -6.5e+23) || !(x <= 2.6e+16)) {
tmp = (x + -2.0) * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y))));
} else {
tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (x <= -6.5e+23) or not (x <= 2.6e+16): tmp = (x + -2.0) * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y)))) else: tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if ((x <= -6.5e+23) || !(x <= 2.6e+16)) tmp = Float64(Float64(x + -2.0) * Float64(y * Float64(Float64(x / t_0) + Float64(Float64(z / Float64(y * t_0)) + Float64(4.16438922228 / y))))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))) + y)) + z)) / t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((x <= -6.5e+23) || ~((x <= 2.6e+16))) tmp = (x + -2.0) * (y * ((x / t_0) + ((z / (y * t_0)) + (4.16438922228 / y)))); else tmp = ((x - 2.0) * ((x * ((x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) + y)) + z)) / t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[Or[LessEqual[x, -6.5e+23], N[Not[LessEqual[x, 2.6e+16]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * 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], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+23} \lor \neg \left(x \leq 2.6 \cdot 10^{+16}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(\frac{x}{t\_0} + \left(\frac{z}{y \cdot t\_0} + \frac{4.16438922228}{y}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right) + y\right) + z\right)}{t\_0}\\
\end{array}
\end{array}
if x < -6.4999999999999996e23 or 2.6e16 < x Initial program 9.7%
associate-/l*14.2%
sub-neg14.2%
metadata-eval14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
Simplified14.2%
Taylor expanded in y around inf 14.2%
Taylor expanded in x around inf 98.5%
if -6.4999999999999996e23 < x < 2.6e16Initial program 99.5%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -4.8e-10) (not (<= x 5.6e-9)))
(*
(+ x -2.0)
(*
y
(+
(/
x
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* 4.16438922228 (/ 1.0 y)))))
(*
(+ 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 <= -4.8e-10) || !(x <= 5.6e-9)) {
tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y))));
} 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 <= (-4.8d-10)) .or. (.not. (x <= 5.6d-9))) 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
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 <= -4.8e-10) || !(x <= 5.6e-9)) {
tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y))));
} 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 <= -4.8e-10) or not (x <= 5.6e-9): tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y)))) 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 <= -4.8e-10) || !(x <= 5.6e-9)) 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))))); 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 <= -4.8e-10) || ~((x <= 5.6e-9))) tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y)))); 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, -4.8e-10], N[Not[LessEqual[x, 5.6e-9]], $MachinePrecision]], 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], 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 -4.8 \cdot 10^{-10} \lor \neg \left(x \leq 5.6 \cdot 10^{-9}\right):\\
\;\;\;\;\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{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 < -4.8e-10 or 5.59999999999999969e-9 < x Initial program 21.4%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in y around inf 24.0%
Taylor expanded in x around inf 94.9%
Taylor expanded in z around 0 91.4%
if -4.8e-10 < x < 5.59999999999999969e-9Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 95.9%
Final simplification93.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -4.8e-10) (not (<= x 1.18e-5)))
(*
(+ x -2.0)
(*
y
(+
(/
x
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* 4.16438922228 (/ 1.0 y)))))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(-
(* z 0.14147091005106402)
(-
(* y 0.0212463641547976)
(*
x
(-
(+ (* z 0.11894829608144908) (* z -0.9419973339841735))
2.9217875995295866)))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.8e-10) || !(x <= 1.18e-5)) {
tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) - (x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866))))));
}
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 <= (-4.8d-10)) .or. (.not. (x <= 1.18d-5))) 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
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - ((y * 0.0212463641547976d0) - (x * (((z * 0.11894829608144908d0) + (z * (-0.9419973339841735d0))) - 2.9217875995295866d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -4.8e-10) || !(x <= 1.18e-5)) {
tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) - (x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4.8e-10) or not (x <= 1.18e-5): tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y)))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) - (x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866)))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -4.8e-10) || !(x <= 1.18e-5)) 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))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(Float64(y * 0.0212463641547976) - Float64(x * Float64(Float64(Float64(z * 0.11894829608144908) + Float64(z * -0.9419973339841735)) - 2.9217875995295866))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -4.8e-10) || ~((x <= 1.18e-5))) tmp = (x + -2.0) * (y * ((x / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 * (1.0 / y)))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) - (x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866)))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -4.8e-10], N[Not[LessEqual[x, 1.18e-5]], $MachinePrecision]], 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], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(N[(z * 0.11894829608144908), $MachinePrecision] + N[(z * -0.9419973339841735), $MachinePrecision]), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10} \lor \neg \left(x \leq 1.18 \cdot 10^{-5}\right):\\
\;\;\;\;\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{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - \left(y \cdot 0.0212463641547976 - x \cdot \left(\left(z \cdot 0.11894829608144908 + z \cdot -0.9419973339841735\right) - 2.9217875995295866\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < -4.8e-10 or 1.18000000000000005e-5 < x Initial program 20.9%
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 y around inf 23.4%
Taylor expanded in x around inf 95.5%
Taylor expanded in z around 0 92.0%
if -4.8e-10 < x < 1.18000000000000005e-5Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 99.0%
Taylor expanded in y around 0 99.0%
*-commutative99.0%
Simplified99.0%
Final simplification95.1%
(FPCore (x y z)
:precision binary64
(if (<= x -61000000000.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= x 6.5e+14)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/
(- 3451.550173699799 (* y (/ (+ (/ 124074.40615218398 y) -1.0) x)))
x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -61000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 6.5e+14) {
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 + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / 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 <= (-61000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 6.5d+14) 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 + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - (y * (((124074.40615218398d0 / y) + (-1.0d0)) / x))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -61000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 6.5e+14) {
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 + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -61000000000.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif x <= 6.5e+14: 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 + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -61000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 6.5e+14) 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(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(y * Float64(Float64(Float64(124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -61000000000.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 6.5e+14) 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 + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -61000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e+14], 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[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(y * N[(N[(N[(124074.40615218398 / y), $MachinePrecision] + -1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -61000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+14}:\\
\;\;\;\;\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}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - y \cdot \frac{\frac{124074.40615218398}{y} + -1}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -6.1e10Initial program 11.3%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.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%
mul-1-neg95.8%
unsub-neg95.8%
Simplified95.8%
if -6.1e10 < x < 6.5e14Initial program 99.5%
Taylor expanded in x around 0 96.4%
*-commutative96.4%
Simplified96.4%
if 6.5e14 < x Initial program 14.9%
associate-/l*16.4%
sub-neg16.4%
metadata-eval16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
fma-define16.4%
Simplified16.4%
Taylor expanded in y around inf 17.8%
Taylor expanded in x around -inf 97.8%
Simplified97.8%
Final simplification96.6%
(FPCore (x y z)
:precision binary64
(if (<= x -40.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= x 46.0)
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/
(- 3451.550173699799 (* y (/ (+ (/ 124074.40615218398 y) -1.0) x)))
x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -40.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 46.0) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / 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 <= (-40.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 46.0d0) then
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - (y * (((124074.40615218398d0 / y) + (-1.0d0)) / x))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -40.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 46.0) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -40.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif x <= 46.0: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -40.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 46.0) tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(y * Float64(Float64(Float64(124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -40.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 46.0) tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * (((124074.40615218398 / y) + -1.0) / x))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -40.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 46.0], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(y * N[(N[(N[(124074.40615218398 / y), $MachinePrecision] + -1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -40:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 46:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - y \cdot \frac{\frac{124074.40615218398}{y} + -1}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -40Initial program 16.5%
associate-/l*23.3%
sub-neg23.3%
metadata-eval23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
Simplified23.3%
Taylor expanded in x around -inf 93.4%
mul-1-neg93.4%
unsub-neg93.4%
mul-1-neg93.4%
unsub-neg93.4%
mul-1-neg93.4%
unsub-neg93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
if -40 < x < 46Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.2%
if 46 < x Initial program 19.6%
associate-/l*21.0%
sub-neg21.0%
metadata-eval21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.1%
fma-define21.1%
fma-define21.1%
Simplified21.1%
Taylor expanded in y around inf 21.0%
Taylor expanded in x around -inf 94.0%
Simplified94.0%
Final simplification93.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -23.5) (not (<= x 46.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -23.5) || !(x <= 46.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (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 <= (-23.5d0)) .or. (.not. (x <= 46.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -23.5) || !(x <= 46.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -23.5) or not (x <= 46.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -23.5) || !(x <= 46.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -23.5) || ~((x <= 46.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -23.5], N[Not[LessEqual[x, 46.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -23.5 \lor \neg \left(x \leq 46\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -23.5 or 46 < x Initial program 18.1%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.2%
Simplified22.2%
Taylor expanded in x around -inf 93.7%
mul-1-neg93.7%
unsub-neg93.7%
mul-1-neg93.7%
unsub-neg93.7%
mul-1-neg93.7%
unsub-neg93.7%
mul-1-neg93.7%
unsub-neg93.7%
Simplified93.7%
if -23.5 < x < 46Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.2%
Final simplification93.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -920.0) (not (<= x 170.0)))
(*
x
(-
4.16438922228
(/ (+ 110.1139242984811 (* 3655.1204654076414 (/ -1.0 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 <= -920.0) || !(x <= 170.0)) {
tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / 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 <= (-920.0d0)) .or. (.not. (x <= 170.0d0))) then
tmp = x * (4.16438922228d0 - ((110.1139242984811d0 + (3655.1204654076414d0 * ((-1.0d0) / 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 <= -920.0) || !(x <= 170.0)) {
tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / 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 <= -920.0) or not (x <= 170.0): tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / 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 <= -920.0) || !(x <= 170.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(Float64(110.1139242984811 + Float64(3655.1204654076414 * Float64(-1.0 / 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 <= -920.0) || ~((x <= 170.0))) tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / 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, -920.0], N[Not[LessEqual[x, 170.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(N[(110.1139242984811 + N[(3655.1204654076414 * N[(-1.0 / x), $MachinePrecision]), $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 -920 \lor \neg \left(x \leq 170\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811 + 3655.1204654076414 \cdot \frac{-1}{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 < -920 or 170 < x Initial program 17.5%
associate-/l*21.6%
sub-neg21.6%
metadata-eval21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
Simplified21.6%
Taylor expanded in x around -inf 88.9%
if -920 < x < 170Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.5%
Final simplification90.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -82.0) (not (<= x 4100000000000.0)))
(*
x
(-
4.16438922228
(/ (+ 110.1139242984811 (* 3655.1204654076414 (/ -1.0 x))) x)))
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -82.0) || !(x <= 4100000000000.0)) {
tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (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 <= (-82.0d0)) .or. (.not. (x <= 4100000000000.0d0))) then
tmp = x * (4.16438922228d0 - ((110.1139242984811d0 + (3655.1204654076414d0 * ((-1.0d0) / x))) / x))
else
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -82.0) || !(x <= 4100000000000.0)) {
tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -82.0) or not (x <= 4100000000000.0): tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x)) else: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -82.0) || !(x <= 4100000000000.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(Float64(110.1139242984811 + Float64(3655.1204654076414 * Float64(-1.0 / x))) / x))); else tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -82.0) || ~((x <= 4100000000000.0))) tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x)); else tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -82.0], N[Not[LessEqual[x, 4100000000000.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(N[(110.1139242984811 + N[(3655.1204654076414 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -82 \lor \neg \left(x \leq 4100000000000\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811 + 3655.1204654076414 \cdot \frac{-1}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -82 or 4.1e12 < x Initial program 16.9%
associate-/l*21.0%
sub-neg21.0%
metadata-eval21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
Simplified21.0%
Taylor expanded in x around -inf 89.5%
if -82 < x < 4.1e12Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.8%
Final simplification90.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -4.8e-10)
t_0
(if (<= x 4.1e-113)
(* z -0.0424927283095952)
(if (<= x 4100000000000.0)
(* (* x (* (- x 2.0) y)) 0.0212463641547976)
t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -4.8e-10) {
tmp = t_0;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 4100000000000.0) {
tmp = (x * ((x - 2.0) * y)) * 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 * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-4.8d-10)) then
tmp = t_0
else if (x <= 4.1d-113) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 4100000000000.0d0) then
tmp = (x * ((x - 2.0d0) * y)) * 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 * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -4.8e-10) {
tmp = t_0;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 4100000000000.0) {
tmp = (x * ((x - 2.0) * y)) * 0.0212463641547976;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -4.8e-10: tmp = t_0 elif x <= 4.1e-113: tmp = z * -0.0424927283095952 elif x <= 4100000000000.0: tmp = (x * ((x - 2.0) * y)) * 0.0212463641547976 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -4.8e-10) tmp = t_0; elseif (x <= 4.1e-113) tmp = Float64(z * -0.0424927283095952); elseif (x <= 4100000000000.0) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) * 0.0212463641547976); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -4.8e-10) tmp = t_0; elseif (x <= 4.1e-113) tmp = z * -0.0424927283095952; elseif (x <= 4100000000000.0) tmp = (x * ((x - 2.0) * y)) * 0.0212463641547976; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.8e-10], t$95$0, If[LessEqual[x, 4.1e-113], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 4100000000000.0], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * 0.0212463641547976), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-113}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 4100000000000:\\
\;\;\;\;\left(x \cdot \left(\left(x - 2\right) \cdot y\right)\right) \cdot 0.0212463641547976\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4.8e-10 or 4.1e12 < x Initial program 18.0%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
Simplified22.1%
Taylor expanded in x around inf 88.2%
associate-*r/88.2%
metadata-eval88.2%
Simplified88.2%
if -4.8e-10 < x < 4.1e-113Initial 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 74.5%
*-commutative74.5%
Simplified74.5%
if 4.1e-113 < x < 4.1e12Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in x around 0 73.4%
Taylor expanded in y around inf 72.4%
Taylor expanded in z around 0 48.0%
Final simplification78.3%
(FPCore (x y z)
:precision binary64
(if (<= x -4.8e-10)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 3.4e-113)
(* z -0.0424927283095952)
(if (<= x 4100000000000.0)
(* (* x (* (- x 2.0) y)) 0.0212463641547976)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 3.4e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 4100000000000.0) {
tmp = (x * ((x - 2.0) * y)) * 0.0212463641547976;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.8d-10)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 3.4d-113) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 4100000000000.0d0) then
tmp = (x * ((x - 2.0d0) * y)) * 0.0212463641547976d0
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 3.4e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 4100000000000.0) {
tmp = (x * ((x - 2.0) * y)) * 0.0212463641547976;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.8e-10: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 3.4e-113: tmp = z * -0.0424927283095952 elif x <= 4100000000000.0: tmp = (x * ((x - 2.0) * y)) * 0.0212463641547976 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.8e-10) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 3.4e-113) tmp = Float64(z * -0.0424927283095952); elseif (x <= 4100000000000.0) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) * 0.0212463641547976); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.8e-10) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 3.4e-113) tmp = z * -0.0424927283095952; elseif (x <= 4100000000000.0) tmp = (x * ((x - 2.0) * y)) * 0.0212463641547976; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.8e-10], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e-113], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 4100000000000.0], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * 0.0212463641547976), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-113}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 4100000000000:\\
\;\;\;\;\left(x \cdot \left(\left(x - 2\right) \cdot y\right)\right) \cdot 0.0212463641547976\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -4.8e-10Initial program 18.8%
associate-/l*25.4%
sub-neg25.4%
metadata-eval25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
Simplified25.4%
Taylor expanded in x around inf 84.2%
associate-*r/84.2%
metadata-eval84.2%
Simplified84.2%
if -4.8e-10 < x < 3.4000000000000002e-113Initial 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 74.5%
*-commutative74.5%
Simplified74.5%
if 3.4000000000000002e-113 < x < 4.1e12Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in x around 0 73.4%
Taylor expanded in y around inf 72.4%
Taylor expanded in z around 0 48.0%
if 4.1e12 < x Initial program 17.3%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around inf 92.3%
associate-*r/92.3%
metadata-eval92.3%
Simplified92.3%
Final simplification78.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -100.0) (not (<= x 4100000000000.0)))
(*
x
(-
4.16438922228
(/ (+ 110.1139242984811 (* 3655.1204654076414 (/ -1.0 x))) x)))
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* (* x y) 0.0212463641547976)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -100.0) || !(x <= 4100000000000.0)) {
tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 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 <= (-100.0d0)) .or. (.not. (x <= 4100000000000.0d0))) then
tmp = x * (4.16438922228d0 - ((110.1139242984811d0 + (3655.1204654076414d0 * ((-1.0d0) / x))) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + ((x * y) * 0.0212463641547976d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -100.0) || !(x <= 4100000000000.0)) {
tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -100.0) or not (x <= 4100000000000.0): tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -100.0) || !(x <= 4100000000000.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(Float64(110.1139242984811 + Float64(3655.1204654076414 * Float64(-1.0 / x))) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(Float64(x * y) * 0.0212463641547976))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -100.0) || ~((x <= 4100000000000.0))) tmp = x * (4.16438922228 - ((110.1139242984811 + (3655.1204654076414 * (-1.0 / x))) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -100.0], N[Not[LessEqual[x, 4100000000000.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(N[(110.1139242984811 + N[(3655.1204654076414 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -100 \lor \neg \left(x \leq 4100000000000\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811 + 3655.1204654076414 \cdot \frac{-1}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + \left(x \cdot y\right) \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -100 or 4.1e12 < x Initial program 16.9%
associate-/l*21.0%
sub-neg21.0%
metadata-eval21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
Simplified21.0%
Taylor expanded in x around -inf 89.5%
if -100 < x < 4.1e12Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.7%
Taylor expanded in y around inf 90.4%
Final simplification89.9%
(FPCore (x y z)
:precision binary64
(if (<= x -260.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 4100000000000.0)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* (* x y) 0.0212463641547976)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -260.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 4100000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-260.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 4100000000000.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + ((x * y) * 0.0212463641547976d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -260.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 4100000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -260.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 4100000000000.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -260.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 4100000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(Float64(x * y) * 0.0212463641547976))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -260.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 4100000000000.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -260.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4100000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -260:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 4100000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + \left(x \cdot y\right) \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -260Initial program 16.5%
associate-/l*23.3%
sub-neg23.3%
metadata-eval23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
Simplified23.3%
Taylor expanded in x around inf 86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
if -260 < x < 4.1e12Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.7%
Taylor expanded in y around inf 90.4%
if 4.1e12 < x Initial program 17.3%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around inf 92.3%
associate-*r/92.3%
metadata-eval92.3%
Simplified92.3%
Final simplification89.9%
(FPCore (x y z)
:precision binary64
(if (<= x -820.0)
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x 4100000000000.0)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* (* x y) 0.0212463641547976)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -820.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 4100000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-820.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= 4100000000000.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + ((x * y) * 0.0212463641547976d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -820.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 4100000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -820.0: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= 4100000000000.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -820.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= 4100000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(Float64(x * y) * 0.0212463641547976))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -820.0) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= 4100000000000.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((x * y) * 0.0212463641547976)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -820.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, 4100000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -820:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 4100000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + \left(x \cdot y\right) \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -820Initial program 16.5%
associate-/l*23.3%
sub-neg23.3%
metadata-eval23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
Simplified23.3%
Taylor expanded in x around -inf 86.8%
mul-1-neg86.8%
unsub-neg86.8%
sub-neg86.8%
associate-*r/86.8%
metadata-eval86.8%
distribute-neg-frac86.8%
metadata-eval86.8%
Simplified86.8%
if -820 < x < 4.1e12Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.7%
Taylor expanded in y around inf 90.4%
if 4.1e12 < x Initial program 17.3%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around inf 92.3%
associate-*r/92.3%
metadata-eval92.3%
Simplified92.3%
Final simplification89.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -4.8e-10)
t_0
(if (<= x 4.1e-113)
(* z -0.0424927283095952)
(if (<= x 0.0075) (* (* x y) -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -4.8e-10) {
tmp = t_0;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0075) {
tmp = (x * y) * -0.0424927283095952;
} 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 * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-4.8d-10)) then
tmp = t_0
else if (x <= 4.1d-113) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.0075d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -4.8e-10) {
tmp = t_0;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0075) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -4.8e-10: tmp = t_0 elif x <= 4.1e-113: tmp = z * -0.0424927283095952 elif x <= 0.0075: tmp = (x * y) * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -4.8e-10) tmp = t_0; elseif (x <= 4.1e-113) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.0075) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -4.8e-10) tmp = t_0; elseif (x <= 4.1e-113) tmp = z * -0.0424927283095952; elseif (x <= 0.0075) tmp = (x * y) * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.8e-10], t$95$0, If[LessEqual[x, 4.1e-113], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.0075], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-113}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.0075:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4.8e-10 or 0.0074999999999999997 < x Initial program 20.3%
associate-/l*24.3%
sub-neg24.3%
metadata-eval24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
Simplified24.3%
Taylor expanded in x around inf 85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
if -4.8e-10 < x < 4.1e-113Initial 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 74.5%
*-commutative74.5%
Simplified74.5%
if 4.1e-113 < x < 0.0074999999999999997Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in y around inf 55.2%
Taylor expanded in x around 0 53.5%
*-commutative53.5%
Simplified53.5%
Final simplification78.2%
(FPCore (x y z)
:precision binary64
(if (<= x -4.8e-10)
(* x 4.16438922228)
(if (<= x 4.1e-113)
(* z -0.0424927283095952)
(if (<= x 0.0195) (* x (* y -0.0424927283095952)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = x * 4.16438922228;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = x * (y * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.8d-10)) then
tmp = x * 4.16438922228d0
else if (x <= 4.1d-113) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.0195d0) then
tmp = x * (y * (-0.0424927283095952d0))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = x * 4.16438922228;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = x * (y * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.8e-10: tmp = x * 4.16438922228 elif x <= 4.1e-113: tmp = z * -0.0424927283095952 elif x <= 0.0195: tmp = x * (y * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.8e-10) tmp = Float64(x * 4.16438922228); elseif (x <= 4.1e-113) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.0195) tmp = Float64(x * Float64(y * -0.0424927283095952)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.8e-10) tmp = x * 4.16438922228; elseif (x <= 4.1e-113) tmp = z * -0.0424927283095952; elseif (x <= 0.0195) tmp = x * (y * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.8e-10], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 4.1e-113], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.0195], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-113}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.0195:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -4.8e-10 or 0.0195 < x Initial program 20.3%
associate-/l*24.3%
sub-neg24.3%
metadata-eval24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
Simplified24.3%
Taylor expanded in x around inf 85.1%
Taylor expanded in x around inf 85.1%
if -4.8e-10 < x < 4.1e-113Initial 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 74.5%
*-commutative74.5%
Simplified74.5%
if 4.1e-113 < x < 0.0195Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in y around inf 55.2%
Taylor expanded in x around 0 53.5%
*-commutative53.5%
associate-*r*53.4%
Simplified53.4%
Final simplification77.9%
(FPCore (x y z)
:precision binary64
(if (<= x -4.8e-10)
(* x 4.16438922228)
(if (<= x 2.6e-113)
(* z -0.0424927283095952)
(if (<= x 0.0195) (* (* x y) -0.0424927283095952) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = x * 4.16438922228;
} else if (x <= 2.6e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.8d-10)) then
tmp = x * 4.16438922228d0
else if (x <= 2.6d-113) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.0195d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = x * 4.16438922228;
} else if (x <= 2.6e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.8e-10: tmp = x * 4.16438922228 elif x <= 2.6e-113: tmp = z * -0.0424927283095952 elif x <= 0.0195: tmp = (x * y) * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.8e-10) tmp = Float64(x * 4.16438922228); elseif (x <= 2.6e-113) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.0195) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.8e-10) tmp = x * 4.16438922228; elseif (x <= 2.6e-113) tmp = z * -0.0424927283095952; elseif (x <= 0.0195) tmp = (x * y) * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.8e-10], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.6e-113], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.0195], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-113}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.0195:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -4.8e-10 or 0.0195 < x Initial program 20.3%
associate-/l*24.3%
sub-neg24.3%
metadata-eval24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
Simplified24.3%
Taylor expanded in x around inf 85.1%
Taylor expanded in x around inf 85.1%
if -4.8e-10 < x < 2.5999999999999999e-113Initial 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 74.5%
*-commutative74.5%
Simplified74.5%
if 2.5999999999999999e-113 < x < 0.0195Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in y around inf 55.2%
Taylor expanded in x around 0 53.5%
*-commutative53.5%
Simplified53.5%
Final simplification77.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* 4.16438922228 (+ x -2.0))))
(if (<= x -4.8e-10)
t_0
(if (<= x 4.1e-113)
(* z -0.0424927283095952)
(if (<= x 0.0195) (* (* x y) -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -4.8e-10) {
tmp = t_0;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = (x * y) * -0.0424927283095952;
} 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 = 4.16438922228d0 * (x + (-2.0d0))
if (x <= (-4.8d-10)) then
tmp = t_0
else if (x <= 4.1d-113) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.0195d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -4.8e-10) {
tmp = t_0;
} else if (x <= 4.1e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 * (x + -2.0) tmp = 0 if x <= -4.8e-10: tmp = t_0 elif x <= 4.1e-113: tmp = z * -0.0424927283095952 elif x <= 0.0195: tmp = (x * y) * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 * Float64(x + -2.0)) tmp = 0.0 if (x <= -4.8e-10) tmp = t_0; elseif (x <= 4.1e-113) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.0195) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 * (x + -2.0); tmp = 0.0; if (x <= -4.8e-10) tmp = t_0; elseif (x <= 4.1e-113) tmp = z * -0.0424927283095952; elseif (x <= 0.0195) tmp = (x * y) * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.8e-10], t$95$0, If[LessEqual[x, 4.1e-113], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.0195], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-113}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.0195:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4.8e-10 or 0.0195 < x Initial program 20.3%
associate-/l*24.3%
sub-neg24.3%
metadata-eval24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
fma-define24.3%
Simplified24.3%
Taylor expanded in x around inf 85.1%
if -4.8e-10 < x < 4.1e-113Initial 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 74.5%
*-commutative74.5%
Simplified74.5%
if 4.1e-113 < x < 0.0195Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in y around inf 55.2%
Taylor expanded in x around 0 53.5%
*-commutative53.5%
Simplified53.5%
Final simplification77.9%
(FPCore (x y z)
:precision binary64
(if (<= x -4.8e-10)
(* 4.16438922228 (+ x -2.0))
(if (<= x 3.9e-113)
(* z -0.0424927283095952)
(if (<= x 0.0195)
(* (* x y) -0.0424927283095952)
(- (* x 4.16438922228) 8.32877844456)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 3.9e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 8.32877844456;
}
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 <= (-4.8d-10)) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else if (x <= 3.9d-113) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.0195d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 8.32877844456d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e-10) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 3.9e-113) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.0195) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 8.32877844456;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.8e-10: tmp = 4.16438922228 * (x + -2.0) elif x <= 3.9e-113: tmp = z * -0.0424927283095952 elif x <= 0.0195: tmp = (x * y) * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 8.32877844456 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.8e-10) tmp = Float64(4.16438922228 * Float64(x + -2.0)); elseif (x <= 3.9e-113) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.0195) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 8.32877844456); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.8e-10) tmp = 4.16438922228 * (x + -2.0); elseif (x <= 3.9e-113) tmp = z * -0.0424927283095952; elseif (x <= 0.0195) tmp = (x * y) * -0.0424927283095952; else tmp = (x * 4.16438922228) - 8.32877844456; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.8e-10], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.9e-113], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.0195], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 8.32877844456), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{elif}\;x \leq 3.9 \cdot 10^{-113}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.0195:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 8.32877844456\\
\end{array}
\end{array}
if x < -4.8e-10Initial program 18.8%
associate-/l*25.4%
sub-neg25.4%
metadata-eval25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
Simplified25.4%
Taylor expanded in x around inf 83.2%
if -4.8e-10 < x < 3.8999999999999999e-113Initial 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 74.5%
*-commutative74.5%
Simplified74.5%
if 3.8999999999999999e-113 < x < 0.0195Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in y around inf 55.2%
Taylor expanded in x around 0 53.5%
*-commutative53.5%
Simplified53.5%
if 0.0195 < x Initial program 21.8%
associate-/l*23.2%
sub-neg23.2%
metadata-eval23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
Simplified23.2%
Taylor expanded in x around inf 87.0%
Taylor expanded in x around 0 87.0%
Final simplification77.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -4.8e-10) (not (<= x 145.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.8e-10) || !(x <= 145.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 <= (-4.8d-10)) .or. (.not. (x <= 145.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 <= -4.8e-10) || !(x <= 145.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4.8e-10) or not (x <= 145.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -4.8e-10) || !(x <= 145.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 <= -4.8e-10) || ~((x <= 145.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -4.8e-10], N[Not[LessEqual[x, 145.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-10} \lor \neg \left(x \leq 145\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -4.8e-10 or 145 < x Initial program 18.6%
associate-/l*22.7%
sub-neg22.7%
metadata-eval22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
Simplified22.7%
Taylor expanded in x around inf 86.9%
Taylor expanded in x around inf 86.9%
if -4.8e-10 < x < 145Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 60.9%
*-commutative60.9%
Simplified60.9%
Final simplification75.1%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 55.3%
associate-/l*57.5%
sub-neg57.5%
metadata-eval57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
Simplified57.5%
Taylor expanded in x around inf 49.1%
Taylor expanded in x around inf 49.0%
Final simplification49.0%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 55.3%
associate-/l*57.5%
sub-neg57.5%
metadata-eval57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
fma-define57.5%
Simplified57.5%
Taylor expanded in x around inf 49.1%
Taylor expanded in x around 0 3.2%
Final simplification3.2%
(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 2024130
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))