
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+305)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(- (+ (* x 4.16438922228) (/ y (pow x 2.0))) 8.32877844456)))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+305) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = ((x * 4.16438922228) + (y / pow(x, 2.0))) - 8.32877844456;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+305) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(y / (x ^ 2.0))) - 8.32877844456); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $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], 1e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 8.32877844456), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{y}{{x}^{2}}\right) - 8.32877844456\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 9.9999999999999994e304Initial program 98.4%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
if 9.9999999999999994e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around 0 3.1%
Taylor expanded in x around inf 61.9%
Taylor expanded in x around inf 99.2%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606)))
(if (<= (/ (* (- x 2.0) (+ z (* x (+ y (* x t_0))))) t_2) 1e+305)
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_1))))))
(+ (/ (* x y) t_2) (/ (* (pow x 2.0) t_0) t_2))))
(- (+ (* x 4.16438922228) (/ y (pow x 2.0))) 8.32877844456))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_2) <= 1e+305) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (((x * y) / t_2) + ((pow(x, 2.0) * t_0) / t_2)));
} else {
tmp = ((x * 4.16438922228) + (y / pow(x, 2.0))) - 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) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0
t_1 = x * (x + 43.3400022514d0)
t_2 = (x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((((x - 2.0d0) * (z + (x * (y + (x * t_0))))) / t_2) <= 1d+305) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_1)))))) + (((x * y) / t_2) + (((x ** 2.0d0) * t_0) / t_2)))
else
tmp = ((x * 4.16438922228d0) + (y / (x ** 2.0d0))) - 8.32877844456d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_2) <= 1e+305) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (((x * y) / t_2) + ((Math.pow(x, 2.0) * t_0) / t_2)));
} else {
tmp = ((x * 4.16438922228) + (y / Math.pow(x, 2.0))) - 8.32877844456;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416 t_1 = x * (x + 43.3400022514) t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_2) <= 1e+305: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (((x * y) / t_2) + ((math.pow(x, 2.0) * t_0) / t_2))) else: tmp = ((x * 4.16438922228) + (y / math.pow(x, 2.0))) - 8.32877844456 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416) t_1 = Float64(x * Float64(x + 43.3400022514)) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * t_0))))) / t_2) <= 1e+305) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * 263.505074721) + Float64(x * t_1)))))) + Float64(Float64(Float64(x * y) / t_2) + Float64(Float64((x ^ 2.0) * t_0) / t_2)))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(y / (x ^ 2.0))) - 8.32877844456); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416; t_1 = x * (x + 43.3400022514); t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_2) <= 1e+305) tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (((x * y) / t_2) + (((x ^ 2.0) * t_0) / t_2))); else tmp = ((x * 4.16438922228) + (y / (x ^ 2.0))) - 8.32877844456; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 1e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * 263.505074721), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(N[Power[x, 2.0], $MachinePrecision] * t$95$0), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 8.32877844456), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
t_2 := x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot t\_0\right)\right)}{t\_2} \leq 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot 263.505074721 + x \cdot t\_1\right)\right)} + \left(\frac{x \cdot y}{t\_2} + \frac{{x}^{2} \cdot t\_0}{t\_2}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{y}{{x}^{2}}\right) - 8.32877844456\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 9.9999999999999994e304Initial program 98.4%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in y around 0 98.9%
distribute-lft-in98.9%
+-commutative98.9%
Applied egg-rr98.9%
if 9.9999999999999994e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around 0 3.1%
Taylor expanded in x around inf 61.9%
Taylor expanded in x around inf 99.2%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= (/ (* (- x 2.0) (+ z (* x (+ y (* x t_0))))) t_1) 1e+305)
(*
(+ x -2.0)
(+ (+ (/ (* x y) t_1) (/ (* (pow x 2.0) t_0) t_1)) (/ z t_1)))
(- (+ (* x 4.16438922228) (/ y (pow x 2.0))) 8.32877844456))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 1e+305) {
tmp = (x + -2.0) * ((((x * y) / t_1) + ((pow(x, 2.0) * t_0) / t_1)) + (z / t_1));
} else {
tmp = ((x * 4.16438922228) + (y / pow(x, 2.0))) - 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) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((((x - 2.0d0) * (z + (x * (y + (x * t_0))))) / t_1) <= 1d+305) then
tmp = (x + (-2.0d0)) * ((((x * y) / t_1) + (((x ** 2.0d0) * t_0) / t_1)) + (z / t_1))
else
tmp = ((x * 4.16438922228d0) + (y / (x ** 2.0d0))) - 8.32877844456d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 1e+305) {
tmp = (x + -2.0) * ((((x * y) / t_1) + ((Math.pow(x, 2.0) * t_0) / t_1)) + (z / t_1));
} else {
tmp = ((x * 4.16438922228) + (y / Math.pow(x, 2.0))) - 8.32877844456;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416 t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 1e+305: tmp = (x + -2.0) * ((((x * y) / t_1) + ((math.pow(x, 2.0) * t_0) / t_1)) + (z / t_1)) else: tmp = ((x * 4.16438922228) + (y / math.pow(x, 2.0))) - 8.32877844456 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416) t_1 = 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(z + Float64(x * Float64(y + Float64(x * t_0))))) / t_1) <= 1e+305) tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(Float64(x * y) / t_1) + Float64(Float64((x ^ 2.0) * t_0) / t_1)) + Float64(z / t_1))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(y / (x ^ 2.0))) - 8.32877844456); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416; t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 1e+305) tmp = (x + -2.0) * ((((x * y) / t_1) + (((x ^ 2.0) * t_0) / t_1)) + (z / t_1)); else tmp = ((x * 4.16438922228) + (y / (x ^ 2.0))) - 8.32877844456; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 1e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(x * y), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(N[(N[Power[x, 2.0], $MachinePrecision] * t$95$0), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 8.32877844456), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\\
t_1 := 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(z + x \cdot \left(y + x \cdot t\_0\right)\right)}{t\_1} \leq 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\left(\frac{x \cdot y}{t\_1} + \frac{{x}^{2} \cdot t\_0}{t\_1}\right) + \frac{z}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{y}{{x}^{2}}\right) - 8.32877844456\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 9.9999999999999994e304Initial program 98.4%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in y around 0 98.9%
if 9.9999999999999994e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around 0 3.1%
Taylor expanded in x around inf 61.9%
Taylor expanded in x around inf 99.2%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
(* x (+ (* x 4.16438922228) 78.6994924154))
137.519416416))))))))
(if (<=
(/
t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+305)
(/
t_0
(+
47.066876606
(*
x
(+ 313.399215894 (* x (fma x (+ x 43.3400022514) 263.505074721))))))
(- (+ (* x 4.16438922228) (/ y (pow x 2.0))) 8.32877844456))))
double code(double x, double y, double z) {
double t_0 = (x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))));
double tmp;
if ((t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+305) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + (x * fma(x, (x + 43.3400022514), 263.505074721)))));
} else {
tmp = ((x * 4.16438922228) + (y / pow(x, 2.0))) - 8.32877844456;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) tmp = 0.0 if (Float64(t_0 / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+305) tmp = Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * fma(x, Float64(x + 43.3400022514), 263.505074721)))))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(y / (x ^ 2.0))) - 8.32877844456); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(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]), $MachinePrecision], 1e+305], N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 8.32877844456), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right)\right)\\
\mathbf{if}\;\frac{t\_0}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+305}:\\
\;\;\;\;\frac{t\_0}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{y}{{x}^{2}}\right) - 8.32877844456\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 9.9999999999999994e304Initial program 98.4%
Taylor expanded in x around 0 98.4%
+-commutative98.4%
associate-+l+98.4%
*-commutative98.4%
cube-mult98.4%
unpow298.4%
distribute-rgt-out98.4%
unpow298.4%
associate-*r*98.4%
+-commutative98.4%
distribute-lft-in98.4%
+-commutative98.4%
+-commutative98.4%
fma-undefine98.4%
Simplified98.4%
if 9.9999999999999994e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around 0 3.1%
Taylor expanded in x around inf 61.9%
Taylor expanded in x around inf 99.2%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
(* x (+ (* x 4.16438922228) 78.6994924154))
137.519416416))))))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 1e+305)
t_0
(- (+ (* x 4.16438922228) (/ y (pow x 2.0))) 8.32877844456))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+305) {
tmp = t_0;
} else {
tmp = ((x * 4.16438922228) + (y / pow(x, 2.0))) - 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) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+305) then
tmp = t_0
else
tmp = ((x * 4.16438922228d0) + (y / (x ** 2.0d0))) - 8.32877844456d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+305) {
tmp = t_0;
} else {
tmp = ((x * 4.16438922228) + (y / Math.pow(x, 2.0))) - 8.32877844456;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 1e+305: tmp = t_0 else: tmp = ((x * 4.16438922228) + (y / math.pow(x, 2.0))) - 8.32877844456 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 1e+305) tmp = t_0; else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(y / (x ^ 2.0))) - 8.32877844456); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 1e+305) tmp = t_0; else tmp = ((x * 4.16438922228) + (y / (x ^ 2.0))) - 8.32877844456; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $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]}, If[LessEqual[t$95$0, 1e+305], t$95$0, N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 8.32877844456), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq 10^{+305}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{y}{{x}^{2}}\right) - 8.32877844456\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 9.9999999999999994e304Initial program 98.4%
if 9.9999999999999994e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around 0 3.1%
Taylor expanded in x around inf 61.9%
Taylor expanded in x around inf 99.2%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
(* x (+ (* x 4.16438922228) 78.6994924154))
137.519416416))))))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 1e+305) t_0 (* x 4.16438922228))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+305) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+305) then
tmp = t_0
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+305) {
tmp = t_0;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 1e+305: tmp = t_0 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 1e+305) tmp = t_0; else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * (z + (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 1e+305) tmp = t_0; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $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]}, If[LessEqual[t$95$0, 1e+305], t$95$0, N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq 10^{+305}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 9.9999999999999994e304Initial program 98.4%
if 9.9999999999999994e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around 0 0.1%
Taylor expanded in x around inf 98.3%
*-commutative98.3%
Simplified98.3%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -1e+65)
(* x 4.16438922228)
(if (<= x -620000000000.0)
(* (- x 2.0) (+ 4.16438922228 (/ (* x y) t_0)))
(if (<= x -0.225)
(* (+ x -2.0) (/ z t_0))
(if (<= x 50000000000000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x 43.3400022514)))))))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1e+65) {
tmp = x * 4.16438922228;
} else if (x <= -620000000000.0) {
tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0));
} else if (x <= -0.225) {
tmp = (x + -2.0) * (z / t_0);
} else if (x <= 50000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514))))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (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) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-1d+65)) then
tmp = x * 4.16438922228d0
else if (x <= (-620000000000.0d0)) then
tmp = (x - 2.0d0) * (4.16438922228d0 + ((x * y) / t_0))
else if (x <= (-0.225d0)) then
tmp = (x + (-2.0d0)) * (z / t_0)
else if (x <= 50000000000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * 43.3400022514d0))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
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 <= -1e+65) {
tmp = x * 4.16438922228;
} else if (x <= -620000000000.0) {
tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0));
} else if (x <= -0.225) {
tmp = (x + -2.0) * (z / t_0);
} else if (x <= 50000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514))))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
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 <= -1e+65: tmp = x * 4.16438922228 elif x <= -620000000000.0: tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0)) elif x <= -0.225: tmp = (x + -2.0) * (z / t_0) elif x <= 50000000000000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514)))))) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -1e+65) tmp = Float64(x * 4.16438922228); elseif (x <= -620000000000.0) tmp = Float64(Float64(x - 2.0) * Float64(4.16438922228 + Float64(Float64(x * y) / t_0))); elseif (x <= -0.225) tmp = Float64(Float64(x + -2.0) * Float64(z / t_0)); elseif (x <= 50000000000000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * 43.3400022514))))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -1e+65) tmp = x * 4.16438922228; elseif (x <= -620000000000.0) tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0)); elseif (x <= -0.225) tmp = (x + -2.0) * (z / t_0); elseif (x <= 50000000000000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514)))))); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -1e+65], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -620000000000.0], N[(N[(x - 2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(x * y), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -0.225], N[(N[(x + -2.0), $MachinePrecision] * N[(z / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 50000000000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -620000000000:\\
\;\;\;\;\left(x - 2\right) \cdot \left(4.16438922228 + \frac{x \cdot y}{t\_0}\right)\\
\mathbf{elif}\;x \leq -0.225:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{t\_0}\\
\mathbf{elif}\;x \leq 50000000000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.1%
associate-/l*0.1%
sub-neg0.1%
metadata-eval0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
Simplified0.1%
Taylor expanded in y around 0 0.1%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
if -9.9999999999999999e64 < x < -6.2e11Initial program 99.1%
associate-/l*98.7%
sub-neg98.7%
metadata-eval98.7%
fma-define98.7%
fma-define98.7%
fma-define98.7%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in y around 0 98.8%
Taylor expanded in x around inf 98.0%
Taylor expanded in z around 0 88.9%
if -6.2e11 < x < -0.225000000000000006Initial program 80.2%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define99.2%
Simplified99.2%
Taylor expanded in z around inf 79.5%
if -0.225000000000000006 < x < 5e13Initial program 99.6%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 97.1%
*-commutative97.1%
Simplified97.1%
if 5e13 < x Initial program 7.5%
associate-/l*12.8%
sub-neg12.8%
metadata-eval12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
Simplified12.8%
Taylor expanded in x around inf 97.5%
associate-*r/97.5%
metadata-eval97.5%
Simplified97.5%
Final simplification96.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -1.95e+65)
(* x 4.16438922228)
(if (<= x -620000000000.0)
(* (- x 2.0) (+ 4.16438922228 (/ (* x y) t_0)))
(if (<= x -0.2)
(* (+ x -2.0) (/ z t_0))
(if (<= x 50000000000000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.95e+65) {
tmp = x * 4.16438922228;
} else if (x <= -620000000000.0) {
tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0));
} else if (x <= -0.2) {
tmp = (x + -2.0) * (z / t_0);
} else if (x <= 50000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (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) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-1.95d+65)) then
tmp = x * 4.16438922228d0
else if (x <= (-620000000000.0d0)) then
tmp = (x - 2.0d0) * (4.16438922228d0 + ((x * y) / t_0))
else if (x <= (-0.2d0)) then
tmp = (x + (-2.0d0)) * (z / t_0)
else if (x <= 50000000000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.95e+65) {
tmp = x * 4.16438922228;
} else if (x <= -620000000000.0) {
tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0));
} else if (x <= -0.2) {
tmp = (x + -2.0) * (z / t_0);
} else if (x <= 50000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -1.95e+65: tmp = x * 4.16438922228 elif x <= -620000000000.0: tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0)) elif x <= -0.2: tmp = (x + -2.0) * (z / t_0) elif x <= 50000000000000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -1.95e+65) tmp = Float64(x * 4.16438922228); elseif (x <= -620000000000.0) tmp = Float64(Float64(x - 2.0) * Float64(4.16438922228 + Float64(Float64(x * y) / t_0))); elseif (x <= -0.2) tmp = Float64(Float64(x + -2.0) * Float64(z / t_0)); elseif (x <= 50000000000000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -1.95e+65) tmp = x * 4.16438922228; elseif (x <= -620000000000.0) tmp = (x - 2.0) * (4.16438922228 + ((x * y) / t_0)); elseif (x <= -0.2) tmp = (x + -2.0) * (z / t_0); elseif (x <= 50000000000000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -1.95e+65], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -620000000000.0], N[(N[(x - 2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(x * y), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -0.2], N[(N[(x + -2.0), $MachinePrecision] * N[(z / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 50000000000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -1.95 \cdot 10^{+65}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -620000000000:\\
\;\;\;\;\left(x - 2\right) \cdot \left(4.16438922228 + \frac{x \cdot y}{t\_0}\right)\\
\mathbf{elif}\;x \leq -0.2:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{t\_0}\\
\mathbf{elif}\;x \leq 50000000000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.9499999999999999e65Initial program 0.1%
associate-/l*0.1%
sub-neg0.1%
metadata-eval0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
fma-define0.1%
Simplified0.1%
Taylor expanded in y around 0 0.1%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
if -1.9499999999999999e65 < x < -6.2e11Initial program 99.1%
associate-/l*98.7%
sub-neg98.7%
metadata-eval98.7%
fma-define98.7%
fma-define98.7%
fma-define98.7%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in y around 0 98.8%
Taylor expanded in x around inf 98.0%
Taylor expanded in z around 0 88.9%
if -6.2e11 < x < -0.20000000000000001Initial program 80.2%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define99.2%
Simplified99.2%
Taylor expanded in z around inf 79.5%
if -0.20000000000000001 < x < 5e13Initial program 99.6%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 96.8%
*-commutative96.8%
Simplified96.8%
if 5e13 < x Initial program 7.5%
associate-/l*12.8%
sub-neg12.8%
metadata-eval12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
Simplified12.8%
Taylor expanded in x around inf 97.5%
associate-*r/97.5%
metadata-eval97.5%
Simplified97.5%
Final simplification96.0%
(FPCore (x y z)
:precision binary64
(if (<= x -2.9e+41)
(* x 4.16438922228)
(if (<= x 61000000000000.0)
(/
(* (- 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 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.9e+41) {
tmp = x * 4.16438922228;
} else if (x <= 61000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - (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 <= (-2.9d+41)) then
tmp = x * 4.16438922228d0
else if (x <= 61000000000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.9e+41) {
tmp = x * 4.16438922228;
} else if (x <= 61000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.9e+41: tmp = x * 4.16438922228 elif x <= 61000000000000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.9e+41) tmp = Float64(x * 4.16438922228); elseif (x <= 61000000000000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.9e+41) tmp = x * 4.16438922228; elseif (x <= 61000000000000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.9e+41], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 61000000000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.9 \cdot 10^{+41}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 61000000000000:\\
\;\;\;\;\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{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -2.89999999999999988e41Initial program 7.9%
associate-/l*7.9%
sub-neg7.9%
metadata-eval7.9%
fma-define7.9%
fma-define7.9%
fma-define7.9%
fma-define7.9%
fma-define7.9%
fma-define7.9%
fma-define7.9%
Simplified7.9%
Taylor expanded in y around 0 6.7%
Taylor expanded in x around inf 92.7%
*-commutative92.7%
Simplified92.7%
if -2.89999999999999988e41 < x < 6.1e13Initial program 98.9%
Taylor expanded in x around 0 96.6%
*-commutative96.6%
Simplified96.6%
if 6.1e13 < x Initial program 7.5%
associate-/l*12.8%
sub-neg12.8%
metadata-eval12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
Simplified12.8%
Taylor expanded in x around inf 97.5%
associate-*r/97.5%
metadata-eval97.5%
Simplified97.5%
Final simplification96.0%
(FPCore (x y z)
:precision binary64
(if (<= x -145000.0)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 50000000000000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 50000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (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 <= (-145000.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 50000000000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 50000000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -145000.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 50000000000000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -145000.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 50000000000000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -145000.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 50000000000000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -145000.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 50000000000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 50000000000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -145000Initial program 18.6%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-define20.1%
fma-define20.1%
fma-define20.1%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
Simplified20.2%
Taylor expanded in x around inf 85.2%
if -145000 < x < 5e13Initial program 99.6%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 95.1%
*-commutative95.1%
Simplified95.1%
if 5e13 < x Initial program 7.5%
associate-/l*12.8%
sub-neg12.8%
metadata-eval12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
Simplified12.8%
Taylor expanded in x around inf 97.5%
associate-*r/97.5%
metadata-eval97.5%
Simplified97.5%
Final simplification93.3%
(FPCore (x y z)
:precision binary64
(if (<= x -145000.0)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 2.0)
(+
(*
-0.0424927283095952
(*
x
(+
y
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416)))))
(* z -0.0424927283095952))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = (-0.0424927283095952 * (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416))))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - (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 <= (-145000.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 2.0d0) then
tmp = ((-0.0424927283095952d0) * (x * (y + (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0))))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = (-0.0424927283095952 * (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416))))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -145000.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 2.0: tmp = (-0.0424927283095952 * (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416))))) + (z * -0.0424927283095952) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -145000.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 2.0) tmp = Float64(Float64(-0.0424927283095952 * Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416))))) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -145000.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 2.0) tmp = (-0.0424927283095952 * (x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416))))) + (z * -0.0424927283095952); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -145000.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(-0.0424927283095952 * N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right)\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -145000Initial program 18.6%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-define20.1%
fma-define20.1%
fma-define20.1%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
Simplified20.2%
Taylor expanded in x around inf 85.2%
if -145000 < x < 2Initial program 99.6%
Simplified99.3%
Taylor expanded in x around 0 94.8%
Taylor expanded in z around 0 94.8%
if 2 < x Initial program 10.8%
associate-/l*15.9%
sub-neg15.9%
metadata-eval15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
Simplified15.9%
Taylor expanded in x around inf 94.1%
associate-*r/94.1%
metadata-eval94.1%
Simplified94.1%
Final simplification92.5%
(FPCore (x y z)
:precision binary64
(if (<= x -145000.0)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 6500000000000.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 6500000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (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 <= (-145000.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 6500000000000.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 6500000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -145000.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 6500000000000.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -145000.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 6500000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -145000.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 6500000000000.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -145000.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 6500000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 6500000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -145000Initial program 18.6%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-define20.1%
fma-define20.1%
fma-define20.1%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
Simplified20.2%
Taylor expanded in x around inf 85.2%
if -145000 < x < 6.5e12Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 89.4%
if 6.5e12 < x Initial program 9.2%
associate-/l*14.3%
sub-neg14.3%
metadata-eval14.3%
fma-define14.3%
fma-define14.3%
fma-define14.3%
fma-define14.4%
fma-define14.4%
fma-define14.4%
fma-define14.4%
Simplified14.4%
Taylor expanded in x around inf 95.8%
associate-*r/95.8%
metadata-eval95.8%
Simplified95.8%
Final simplification89.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -145000.0) (not (<= x 2.0))) (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))) (* -0.0424927283095952 (+ z (* x y)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 2.0)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = -0.0424927283095952 * (z + (x * y));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-145000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else
tmp = (-0.0424927283095952d0) * (z + (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 2.0)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = -0.0424927283095952 * (z + (x * y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -145000.0) or not (x <= 2.0): tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) else: tmp = -0.0424927283095952 * (z + (x * y)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -145000.0) || !(x <= 2.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); else tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -145000.0) || ~((x <= 2.0))) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); else tmp = -0.0424927283095952 * (z + (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -145000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\end{array}
\end{array}
if x < -145000 or 2 < x Initial program 14.8%
associate-/l*18.1%
sub-neg18.1%
metadata-eval18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around inf 89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
if -145000 < x < 2Initial program 99.6%
Simplified99.3%
Taylor expanded in x around 0 94.8%
Taylor expanded in x around 0 89.9%
+-commutative89.9%
distribute-lft-out89.9%
Simplified89.9%
Final simplification89.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -145000.0) (not (<= x 2.5))) (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))) (+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 2.5)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = (x * (y * -0.0424927283095952)) + (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 <= (-145000.0d0)) .or. (.not. (x <= 2.5d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else
tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 2.5)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -145000.0) or not (x <= 2.5): tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) else: tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -145000.0) || !(x <= 2.5)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); else tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -145000.0) || ~((x <= 2.5))) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); else tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -145000.0], N[Not[LessEqual[x, 2.5]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000 \lor \neg \left(x \leq 2.5\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -145000 or 2.5 < x Initial program 14.8%
associate-/l*18.1%
sub-neg18.1%
metadata-eval18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around inf 89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
if -145000 < x < 2.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 90.0%
Taylor expanded in z around 0 89.9%
*-commutative89.9%
associate-*l*89.9%
Simplified89.9%
Final simplification89.7%
(FPCore (x y z)
:precision binary64
(if (<= x -145000.0)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 2.5)
(+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2.5) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - (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 <= (-145000.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 2.5d0) then
tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -145000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2.5) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -145000.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 2.5: tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -145000.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 2.5) tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -145000.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 2.5) tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -145000.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.5], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 2.5:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -145000Initial program 18.6%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-define20.1%
fma-define20.1%
fma-define20.1%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
Simplified20.2%
Taylor expanded in x around inf 85.2%
if -145000 < x < 2.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 90.0%
Taylor expanded in z around 0 89.9%
*-commutative89.9%
associate-*l*89.9%
Simplified89.9%
if 2.5 < x Initial program 10.8%
associate-/l*15.9%
sub-neg15.9%
metadata-eval15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
fma-define15.9%
Simplified15.9%
Taylor expanded in x around inf 94.1%
associate-*r/94.1%
metadata-eval94.1%
Simplified94.1%
Final simplification89.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -145000.0) (not (<= x 2.2))) (- (* x 4.16438922228) 110.1139242984811) (* -0.0424927283095952 (+ z (* x y)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 2.2)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = -0.0424927283095952 * (z + (x * y));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-145000.0d0)) .or. (.not. (x <= 2.2d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = (-0.0424927283095952d0) * (z + (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 2.2)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = -0.0424927283095952 * (z + (x * y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -145000.0) or not (x <= 2.2): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = -0.0424927283095952 * (z + (x * y)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -145000.0) || !(x <= 2.2)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -145000.0) || ~((x <= 2.2))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = -0.0424927283095952 * (z + (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -145000.0], N[Not[LessEqual[x, 2.2]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000 \lor \neg \left(x \leq 2.2\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\end{array}
\end{array}
if x < -145000 or 2.2000000000000002 < x Initial program 14.8%
associate-/l*18.1%
sub-neg18.1%
metadata-eval18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around inf 89.3%
if -145000 < x < 2.2000000000000002Initial program 99.6%
Simplified99.3%
Taylor expanded in x around 0 94.8%
Taylor expanded in x around 0 89.9%
+-commutative89.9%
distribute-lft-out89.9%
Simplified89.9%
Final simplification89.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -145000.0) (not (<= x 6500000000000.0))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 6500000000000.0)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-145000.0d0)) .or. (.not. (x <= 6500000000000.0d0))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 6500000000000.0)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -145000.0) or not (x <= 6500000000000.0): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -145000.0) || !(x <= 6500000000000.0)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -145000.0) || ~((x <= 6500000000000.0))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -145000.0], N[Not[LessEqual[x, 6500000000000.0]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000 \lor \neg \left(x \leq 6500000000000\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -145000 or 6.5e12 < x Initial program 14.1%
associate-/l*17.3%
sub-neg17.3%
metadata-eval17.3%
fma-define17.3%
fma-define17.3%
fma-define17.3%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around inf 89.7%
if -145000 < x < 6.5e12Initial 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 66.9%
*-commutative66.9%
Simplified66.9%
Final simplification77.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -145000.0) (not (<= x 6500000000000.0))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -145000.0) || !(x <= 6500000000000.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} 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 <= (-145000.0d0)) .or. (.not. (x <= 6500000000000.0d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
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 <= -145000.0) || !(x <= 6500000000000.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -145000.0) or not (x <= 6500000000000.0): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -145000.0) || !(x <= 6500000000000.0)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -145000.0) || ~((x <= 6500000000000.0))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -145000.0], N[Not[LessEqual[x, 6500000000000.0]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -145000 \lor \neg \left(x \leq 6500000000000\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -145000 or 6.5e12 < x Initial program 14.1%
associate-/l*17.3%
sub-neg17.3%
metadata-eval17.3%
fma-define17.3%
fma-define17.3%
fma-define17.3%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around inf 90.1%
if -145000 < x < 6.5e12Initial 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 66.9%
*-commutative66.9%
Simplified66.9%
Final simplification77.2%
(FPCore (x y z) :precision binary64 (if (or (<= x -160000.0) (not (<= x 6500000000000.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -160000.0) || !(x <= 6500000000000.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 <= (-160000.0d0)) .or. (.not. (x <= 6500000000000.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 <= -160000.0) || !(x <= 6500000000000.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -160000.0) or not (x <= 6500000000000.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -160000.0) || !(x <= 6500000000000.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 <= -160000.0) || ~((x <= 6500000000000.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -160000.0], N[Not[LessEqual[x, 6500000000000.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -160000 \lor \neg \left(x \leq 6500000000000\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.6e5 or 6.5e12 < x Initial program 14.1%
associate-/l*17.3%
sub-neg17.3%
metadata-eval17.3%
fma-define17.3%
fma-define17.3%
fma-define17.3%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in y around 0 10.3%
Taylor expanded in x around inf 89.7%
*-commutative89.7%
Simplified89.7%
if -1.6e5 < x < 6.5e12Initial 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 66.9%
*-commutative66.9%
Simplified66.9%
Final simplification77.0%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 61.5%
associate-/l*63.0%
sub-neg63.0%
metadata-eval63.0%
fma-define63.0%
fma-define63.0%
fma-define63.0%
fma-define63.0%
fma-define63.0%
fma-define63.0%
fma-define63.0%
Simplified63.0%
Taylor expanded in y around 0 46.3%
Taylor expanded in x around inf 42.0%
*-commutative42.0%
Simplified42.0%
Final simplification42.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024039
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))