
(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 23 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)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+302)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(* (+ x -2.0) (+ 4.16438922228 (/ (/ y (pow x 2.0)) x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+302) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((y / pow(x, 2.0)) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+302) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(y / (x ^ 2.0)) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 1e+302], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(y / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+302}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{{x}^{2}}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e302Initial program 94.8%
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%
if 1.0000000000000001e302 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*3.5%
sub-neg3.5%
metadata-eval3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
Simplified3.5%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
Simplified97.8%
Taylor expanded in y around inf 97.8%
mul-1-neg97.8%
distribute-neg-frac297.8%
Simplified97.8%
Taylor expanded in y around inf 97.9%
associate-*r/97.9%
mul-1-neg97.9%
Simplified97.9%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_2) 1e+302)
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_1))))))
(/ t_0 t_2)))
(* (+ x -2.0) (+ 4.16438922228 (/ (/ y (pow x 2.0)) x))))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 1e+302) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((y / pow(x, 2.0)) / 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = x * (x + 43.3400022514d0)
t_2 = (x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((((x - 2.0d0) * (t_0 + z)) / t_2) <= 1d+302) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_1)))))) + (t_0 / t_2))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((y / (x ** 2.0d0)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 1e+302) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((y / Math.pow(x, 2.0)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = x * (x + 43.3400022514) t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_2) <= 1e+302: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2)) else: tmp = (x + -2.0) * (4.16438922228 + ((y / math.pow(x, 2.0)) / x)) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(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(t_0 + z)) / t_2) <= 1e+302) 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(t_0 / t_2))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(y / (x ^ 2.0)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = x * (x + 43.3400022514); t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_2) <= 1e+302) tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2)); else tmp = (x + -2.0) * (4.16438922228 + ((y / (x ^ 2.0)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(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[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 1e+302], 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[(t$95$0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(y / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x + 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(t\_0 + z\right)}{t\_2} \leq 10^{+302}:\\
\;\;\;\;\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)} + \frac{t\_0}{t\_2}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{{x}^{2}}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e302Initial program 94.8%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
distribute-lft-in99.6%
+-commutative99.6%
Applied egg-rr99.6%
if 1.0000000000000001e302 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*3.5%
sub-neg3.5%
metadata-eval3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
Simplified3.5%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
Simplified97.8%
Taylor expanded in y around inf 97.8%
mul-1-neg97.8%
distribute-neg-frac297.8%
Simplified97.8%
Taylor expanded in y around inf 97.9%
associate-*r/97.9%
mul-1-neg97.9%
Simplified97.9%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 (- INFINITY))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= t_1 1e+302)
t_1
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
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 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 1e+302) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 1e+302) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif t_1 <= 1e+302: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (t_1 <= 1e+302) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 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; t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (t_1 <= 1e+302) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+302], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+302}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 4.5%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
Taylor expanded in x around inf 99.1%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e302Initial program 99.6%
if 1.0000000000000001e302 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*3.5%
sub-neg3.5%
metadata-eval3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
Simplified3.5%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
Simplified97.8%
clear-num97.8%
inv-pow97.8%
Applied egg-rr97.8%
unpow-197.8%
Simplified97.8%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_2) 1e+302)
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_1))))))
(/ t_0 t_2)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 1e+302) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = x * (x + 43.3400022514d0)
t_2 = (x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((((x - 2.0d0) * (t_0 + z)) / t_2) <= 1d+302) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_1)))))) + (t_0 / t_2))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (1.0d0 / (x / (y - 124074.40615218398d0)))) / x) - 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 * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
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) * (t_0 + z)) / t_2) <= 1e+302) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = x * (x + 43.3400022514) t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_2) <= 1e+302: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2)) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(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(t_0 + z)) / t_2) <= 1e+302) 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(t_0 / t_2))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = x * (x + 43.3400022514); t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_2) <= 1e+302) tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2)); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(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[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 1e+302], 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[(t$95$0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x + 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(t\_0 + z\right)}{t\_2} \leq 10^{+302}:\\
\;\;\;\;\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)} + \frac{t\_0}{t\_2}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e302Initial program 94.8%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
distribute-lft-in99.6%
+-commutative99.6%
Applied egg-rr99.6%
if 1.0000000000000001e302 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*3.5%
sub-neg3.5%
metadata-eval3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
Simplified3.5%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
Simplified97.8%
clear-num97.8%
inv-pow97.8%
Applied egg-rr97.8%
unpow-197.8%
Simplified97.8%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 1e+302)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
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 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+302) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 1d+302) then
tmp = (x + (-2.0d0)) * ((t_1 / t_0) + (z / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (1.0d0 / (x / (y - 124074.40615218398d0)))) / x) - 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 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+302) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 1e+302: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 1e+302) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 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; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+302) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+302], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 10^{+302}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t\_1}{t\_0} + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e302Initial program 94.8%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
if 1.0000000000000001e302 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*3.5%
sub-neg3.5%
metadata-eval3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
Simplified3.5%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
Simplified97.8%
clear-num97.8%
inv-pow97.8%
Applied egg-rr97.8%
unpow-197.8%
Simplified97.8%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -2.3e+23)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= x 2.6e+18)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
t_0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
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 <= -2.3e+23) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 2.6e+18) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-2.3d+23)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else if (x <= 2.6d+18) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / t_0
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (1.0d0 / (x / (y - 124074.40615218398d0)))) / x) - 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 <= -2.3e+23) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 2.6e+18) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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 <= -2.3e+23: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif x <= 2.6e+18: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0 else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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 <= -2.3e+23) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (x <= 2.6e+18) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / t_0); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 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 <= -2.3e+23) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (x <= 2.6e+18) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0; else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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, -2.3e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e+18], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -2.3 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{+18}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -2.3e23Initial program 7.1%
associate-/l*16.7%
sub-neg16.7%
metadata-eval16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
Simplified16.7%
Taylor expanded in z around 0 16.7%
Taylor expanded in x around inf 99.1%
if -2.3e23 < x < 2.6e18Initial program 98.2%
Taylor expanded in x around 0 96.6%
*-commutative96.6%
Simplified96.6%
if 2.6e18 < x Initial program 7.3%
associate-/l*11.3%
sub-neg11.3%
metadata-eval11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
Simplified11.3%
Taylor expanded in x around -inf 96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
Simplified96.4%
clear-num96.4%
inv-pow96.4%
Applied egg-rr96.4%
unpow-196.4%
Simplified96.4%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -3.15e+29)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= x 3.1e+16)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
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 <= -3.15e+29) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 3.1e+16) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-3.15d+29)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else if (x <= 3.1d+16) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (1.0d0 / (x / (y - 124074.40615218398d0)))) / x) - 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 <= -3.15e+29) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 3.1e+16) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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 <= -3.15e+29: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif x <= 3.1e+16: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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 <= -3.15e+29) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (x <= 3.1e+16) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 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 <= -3.15e+29) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (x <= 3.1e+16) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 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, -3.15e+29], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+16], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -3.15 \cdot 10^{+29}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+16}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -3.1499999999999999e29Initial program 7.1%
associate-/l*16.7%
sub-neg16.7%
metadata-eval16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
Simplified16.7%
Taylor expanded in z around 0 16.7%
Taylor expanded in x around inf 99.1%
if -3.1499999999999999e29 < x < 3.1e16Initial program 98.2%
Taylor expanded in x around 0 95.9%
*-commutative95.9%
Simplified95.9%
if 3.1e16 < x Initial program 7.3%
associate-/l*11.3%
sub-neg11.3%
metadata-eval11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
fma-define11.3%
Simplified11.3%
Taylor expanded in x around -inf 96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
Simplified96.4%
clear-num96.4%
inv-pow96.4%
Applied egg-rr96.4%
unpow-196.4%
Simplified96.4%
Final simplification96.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
z
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= x -11500000000000.0)
(* (+ x -2.0) (+ 4.16438922228 t_0))
(if (<= x 28500.0)
(* (+ x -2.0) (+ t_0 (* 0.0212463641547976 (* x y))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
101.7851458539211)
x)))))))
double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (x <= -11500000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else if (x <= 28500.0) {
tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y)));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (x <= (-11500000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_0)
else if (x <= 28500.0d0) then
tmp = (x + (-2.0d0)) * (t_0 + (0.0212463641547976d0 * (x * y)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (1.0d0 / (x / (y - 124074.40615218398d0)))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (x <= -11500000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else if (x <= 28500.0) {
tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y)));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if x <= -11500000000000.0: tmp = (x + -2.0) * (4.16438922228 + t_0) elif x <= 28500.0: tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (x <= -11500000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_0)); elseif (x <= 28500.0) tmp = Float64(Float64(x + -2.0) * Float64(t_0 + Float64(0.0212463641547976 * Float64(x * y)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (x <= -11500000000000.0) tmp = (x + -2.0) * (4.16438922228 + t_0); elseif (x <= 28500.0) tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -11500000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 28500.0], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$0 + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;x \leq -11500000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_0\right)\\
\mathbf{elif}\;x \leq 28500:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_0 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.15e13Initial program 10.0%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
Simplified20.7%
Taylor expanded in z around 0 20.7%
Taylor expanded in x around inf 96.1%
if -1.15e13 < x < 28500Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 91.2%
if 28500 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
clear-num94.1%
inv-pow94.1%
Applied egg-rr94.1%
unpow-194.1%
Simplified94.1%
Final simplification93.2%
(FPCore (x y z)
:precision binary64
(if (<= x -0.000125)
(*
(+ x -2.0)
(+
4.16438922228
(/ -1.0 (/ x (- 101.7851458539211 (/ (+ 3451.550173699799 (/ y x)) x))))))
(if (<= x 31.5)
(*
(+ x -2.0)
(+
(* 0.0212463641547976 (* x y))
(/ z (+ 47.066876606 (* x 313.399215894)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.000125) {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x)))));
} else if (x <= 31.5) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.000125d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 - ((3451.550173699799d0 + (y / x)) / x)))))
else if (x <= 31.5d0) then
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z / (47.066876606d0 + (x * 313.399215894d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (1.0d0 / (x / (y - 124074.40615218398d0)))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.000125) {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x)))));
} else if (x <= 31.5) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.000125: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x))))) elif x <= 31.5: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.000125) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 - Float64(Float64(3451.550173699799 + Float64(y / x)) / x)))))); elseif (x <= 31.5) tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.000125) tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x))))); elseif (x <= 31.5) tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.000125], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 - N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 31.5], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.000125:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 - \frac{3451.550173699799 + \frac{y}{x}}{x}}}\right)\\
\mathbf{elif}\;x \leq 31.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + \frac{z}{47.066876606 + x \cdot 313.399215894}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.25e-4Initial program 15.4%
associate-/l*25.4%
sub-neg25.4%
metadata-eval25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
Simplified25.4%
Taylor expanded in x around -inf 90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
Simplified90.4%
Taylor expanded in y around inf 90.4%
mul-1-neg90.4%
distribute-neg-frac290.4%
Simplified90.4%
clear-num90.4%
inv-pow90.4%
Applied egg-rr90.4%
unpow-190.4%
*-lft-identity90.4%
*-lft-identity90.4%
sub-neg90.4%
distribute-frac-neg290.4%
remove-double-neg90.4%
+-commutative90.4%
Simplified90.4%
if -1.25e-4 < x < 31.5Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 93.3%
Taylor expanded in x around 0 91.9%
*-commutative91.9%
Simplified91.9%
if 31.5 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
clear-num94.1%
inv-pow94.1%
Applied egg-rr94.1%
unpow-194.1%
Simplified94.1%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(if (<= x -7.4e-10)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 36.0)
(*
(+ x -2.0)
(+
(* 0.0212463641547976 (* x y))
(/ z (+ 47.066876606 (* x 313.399215894)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ 1.0 (/ x (- y 124074.40615218398)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.4e-10) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 36.0) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-7.4d-10)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 36.0d0) then
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z / (47.066876606d0 + (x * 313.399215894d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (1.0d0 / (x / (y - 124074.40615218398d0)))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.4e-10) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 36.0) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.4e-10: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 36.0: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.4e-10) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 36.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(1.0 / Float64(x / Float64(y - 124074.40615218398)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.4e-10) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 36.0) tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (1.0 / (x / (y - 124074.40615218398)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.4e-10], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 36.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(1.0 / N[(x / N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.4 \cdot 10^{-10}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 36:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + \frac{z}{47.066876606 + x \cdot 313.399215894}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{1}{\frac{x}{y - 124074.40615218398}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -7.4000000000000003e-10Initial program 19.0%
associate-/l*28.6%
sub-neg28.6%
metadata-eval28.6%
fma-define28.6%
fma-define28.6%
fma-define28.6%
fma-define28.6%
fma-define28.6%
fma-define28.6%
fma-define28.6%
Simplified28.6%
Taylor expanded in z around 0 28.6%
Taylor expanded in x around inf 91.0%
if -7.4000000000000003e-10 < x < 36Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
Taylor expanded in x around 0 94.0%
Taylor expanded in x around 0 92.8%
*-commutative92.8%
Simplified92.8%
if 36 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
clear-num94.1%
inv-pow94.1%
Applied egg-rr94.1%
unpow-194.1%
Simplified94.1%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(if (<= x -0.000125)
(*
(+ x -2.0)
(+
4.16438922228
(/ -1.0 (/ x (- 101.7851458539211 (/ (+ 3451.550173699799 (/ y x)) x))))))
(if (<= x 38.0)
(*
(+ x -2.0)
(+
(* 0.0212463641547976 (* x y))
(/ z (+ 47.066876606 (* x 313.399215894)))))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.000125) {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x)))));
} else if (x <= 38.0) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.000125d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 - ((3451.550173699799d0 + (y / x)) / x)))))
else if (x <= 38.0d0) then
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z / (47.066876606d0 + (x * 313.399215894d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.000125) {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x)))));
} else if (x <= 38.0) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.000125: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x))))) elif x <= 38.0: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.000125) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 - Float64(Float64(3451.550173699799 + Float64(y / x)) / x)))))); elseif (x <= 38.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.000125) tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - ((3451.550173699799 + (y / x)) / x))))); elseif (x <= 38.0) tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.000125], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 - N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 38.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.000125:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 - \frac{3451.550173699799 + \frac{y}{x}}{x}}}\right)\\
\mathbf{elif}\;x \leq 38:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + \frac{z}{47.066876606 + x \cdot 313.399215894}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.25e-4Initial program 15.4%
associate-/l*25.4%
sub-neg25.4%
metadata-eval25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
Simplified25.4%
Taylor expanded in x around -inf 90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
Simplified90.4%
Taylor expanded in y around inf 90.4%
mul-1-neg90.4%
distribute-neg-frac290.4%
Simplified90.4%
clear-num90.4%
inv-pow90.4%
Applied egg-rr90.4%
unpow-190.4%
*-lft-identity90.4%
*-lft-identity90.4%
sub-neg90.4%
distribute-frac-neg290.4%
remove-double-neg90.4%
+-commutative90.4%
Simplified90.4%
if -1.25e-4 < x < 38Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 93.3%
Taylor expanded in x around 0 91.9%
*-commutative91.9%
Simplified91.9%
if 38 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.000125) (not (<= x 21.5)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(*
(+ x -2.0)
(+
(* 0.0212463641547976 (* x y))
(/ z (+ 47.066876606 (* x 313.399215894)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.000125) || !(x <= 21.5)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.000125d0)) .or. (.not. (x <= 21.5d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z / (47.066876606d0 + (x * 313.399215894d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.000125) || !(x <= 21.5)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.000125) or not (x <= 21.5): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.000125) || !(x <= 21.5)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.000125) || ~((x <= 21.5))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.000125], N[Not[LessEqual[x, 21.5]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.000125 \lor \neg \left(x \leq 21.5\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + \frac{z}{47.066876606 + x \cdot 313.399215894}\right)\\
\end{array}
\end{array}
if x < -1.25e-4 or 21.5 < x Initial program 13.0%
associate-/l*20.4%
sub-neg20.4%
metadata-eval20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
Simplified20.4%
Taylor expanded in x around -inf 92.3%
mul-1-neg92.3%
unsub-neg92.3%
mul-1-neg92.3%
unsub-neg92.3%
mul-1-neg92.3%
unsub-neg92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Taylor expanded in y around inf 92.3%
mul-1-neg92.3%
distribute-neg-frac292.3%
Simplified92.3%
Taylor expanded in x around inf 92.3%
+-commutative92.3%
Simplified92.3%
if -1.25e-4 < x < 21.5Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 93.3%
Taylor expanded in x around 0 91.9%
*-commutative91.9%
Simplified91.9%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(if (<= x -6.4e+22)
(* x 4.16438922228)
(if (<= x 0.106)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.4e+22) {
tmp = x * 4.16438922228;
} else if (x <= 0.106) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.4d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 0.106d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.4e+22) {
tmp = x * 4.16438922228;
} else if (x <= 0.106) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.4e+22: tmp = x * 4.16438922228 elif x <= 0.106: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.4e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 0.106) 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(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.4e+22) tmp = x * 4.16438922228; elseif (x <= 0.106) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.4e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 0.106], 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[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.4 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 0.106:\\
\;\;\;\;\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 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.4e22Initial program 7.1%
associate-/l*16.7%
sub-neg16.7%
metadata-eval16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
Simplified16.7%
Taylor expanded in x around -inf 96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
Simplified96.1%
Taylor expanded in x around inf 96.1%
*-commutative96.1%
Simplified96.1%
if -6.4e22 < x < 0.105999999999999997Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 88.0%
if 0.105999999999999997 < x Initial program 13.2%
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 86.6%
mul-1-neg86.6%
unsub-neg86.6%
sub-neg86.6%
associate-*r/86.6%
metadata-eval86.6%
distribute-neg-frac86.6%
metadata-eval86.6%
Simplified86.6%
Final simplification89.4%
(FPCore (x y z)
:precision binary64
(if (<= x -11500000000000.0)
(* x 4.16438922228)
(if (<= x 320.0)
(*
(+ x -2.0)
(+
(* 0.0212463641547976 (* x y))
(/ z (+ 47.066876606 (* x 313.399215894)))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11500000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 320.0) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-11500000000000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 320.0d0) then
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z / (47.066876606d0 + (x * 313.399215894d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11500000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 320.0) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11500000000000.0: tmp = x * 4.16438922228 elif x <= 320.0: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11500000000000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 320.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11500000000000.0) tmp = x * 4.16438922228; elseif (x <= 320.0) tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11500000000000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 320.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11500000000000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 320:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + \frac{z}{47.066876606 + x \cdot 313.399215894}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.15e13Initial program 10.0%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
Simplified20.7%
Taylor expanded in x around -inf 94.4%
mul-1-neg94.4%
unsub-neg94.4%
mul-1-neg94.4%
unsub-neg94.4%
mul-1-neg94.4%
unsub-neg94.4%
mul-1-neg94.4%
unsub-neg94.4%
Simplified94.4%
Taylor expanded in x around inf 91.7%
*-commutative91.7%
Simplified91.7%
if -1.15e13 < x < 320Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 91.2%
Taylor expanded in x around 0 89.0%
*-commutative89.0%
Simplified89.0%
if 320 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around -inf 88.7%
mul-1-neg88.7%
unsub-neg88.7%
sub-neg88.7%
associate-*r/88.7%
metadata-eval88.7%
distribute-neg-frac88.7%
metadata-eval88.7%
Simplified88.7%
Final simplification89.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ 3451.550173699799 (/ y x)) x)))
(if (<= x -0.000125)
(* (+ x -2.0) (+ 4.16438922228 (/ -1.0 (/ x (- 101.7851458539211 t_0)))))
(if (<= x 12.5)
(*
(+ x -2.0)
(+
(* 0.0212463641547976 (* x y))
(/ z (+ 47.066876606 (* x 313.399215894)))))
(* (+ x -2.0) (+ 4.16438922228 (/ (- t_0 101.7851458539211) x)))))))
double code(double x, double y, double z) {
double t_0 = (3451.550173699799 + (y / x)) / x;
double tmp;
if (x <= -0.000125) {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - t_0))));
} else if (x <= 12.5) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((t_0 - 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 = (3451.550173699799d0 + (y / x)) / x
if (x <= (-0.000125d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 - t_0))))
else if (x <= 12.5d0) then
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z / (47.066876606d0 + (x * 313.399215894d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((t_0 - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (3451.550173699799 + (y / x)) / x;
double tmp;
if (x <= -0.000125) {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - t_0))));
} else if (x <= 12.5) {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((t_0 - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (3451.550173699799 + (y / x)) / x tmp = 0 if x <= -0.000125: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - t_0)))) elif x <= 12.5: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))) else: tmp = (x + -2.0) * (4.16438922228 + ((t_0 - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(3451.550173699799 + Float64(y / x)) / x) tmp = 0.0 if (x <= -0.000125) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 - t_0))))); elseif (x <= 12.5) tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(t_0 - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (3451.550173699799 + (y / x)) / x; tmp = 0.0; if (x <= -0.000125) tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 - t_0)))); elseif (x <= 12.5) tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z / (47.066876606 + (x * 313.399215894)))); else tmp = (x + -2.0) * (4.16438922228 + ((t_0 - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[x, -0.000125], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 - t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 12.5], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(t$95$0 - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{3451.550173699799 + \frac{y}{x}}{x}\\
\mathbf{if}\;x \leq -0.000125:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 - t\_0}}\right)\\
\mathbf{elif}\;x \leq 12.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + \frac{z}{47.066876606 + x \cdot 313.399215894}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{t\_0 - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.25e-4Initial program 15.4%
associate-/l*25.4%
sub-neg25.4%
metadata-eval25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
fma-define25.4%
Simplified25.4%
Taylor expanded in x around -inf 90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
Simplified90.4%
Taylor expanded in y around inf 90.4%
mul-1-neg90.4%
distribute-neg-frac290.4%
Simplified90.4%
clear-num90.4%
inv-pow90.4%
Applied egg-rr90.4%
unpow-190.4%
*-lft-identity90.4%
*-lft-identity90.4%
sub-neg90.4%
distribute-frac-neg290.4%
remove-double-neg90.4%
+-commutative90.4%
Simplified90.4%
if -1.25e-4 < x < 12.5Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 93.3%
Taylor expanded in x around 0 91.9%
*-commutative91.9%
Simplified91.9%
if 12.5 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Taylor expanded in y around inf 93.9%
mul-1-neg93.9%
distribute-neg-frac293.9%
Simplified93.9%
Taylor expanded in x around inf 93.9%
+-commutative93.9%
Simplified93.9%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(if (<= x -166.0)
(* x 4.16438922228)
(if (<= x 0.106)
(*
(+ x -2.0)
(+ (* z 0.0212463641547976) (* x (* z -0.14147091005106402))))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -166.0) {
tmp = x * 4.16438922228;
} else if (x <= 0.106) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402)));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-166.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 0.106d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (z * (-0.14147091005106402d0))))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -166.0) {
tmp = x * 4.16438922228;
} else if (x <= 0.106) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402)));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -166.0: tmp = x * 4.16438922228 elif x <= 0.106: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402))) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -166.0) tmp = Float64(x * 4.16438922228); elseif (x <= 0.106) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(z * -0.14147091005106402)))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -166.0) tmp = x * 4.16438922228; elseif (x <= 0.106) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402))); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -166.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 0.106], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(z * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -166:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 0.106:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(z \cdot -0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -166Initial program 11.5%
associate-/l*22.0%
sub-neg22.0%
metadata-eval22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Taylor expanded in x around inf 90.2%
*-commutative90.2%
Simplified90.2%
if -166 < x < 0.105999999999999997Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 90.8%
Taylor expanded in y around 0 68.1%
*-commutative68.1%
associate-*l*68.1%
*-commutative68.1%
Simplified68.1%
if 0.105999999999999997 < x Initial program 13.2%
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 86.4%
associate-*r/86.4%
metadata-eval86.4%
Simplified86.4%
Final simplification79.0%
(FPCore (x y z)
:precision binary64
(if (<= x -6.4e+22)
(* x 4.16438922228)
(if (<= x 270.0)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.4e+22) {
tmp = x * 4.16438922228;
} else if (x <= 270.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} 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 <= (-6.4d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 270.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
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 <= -6.4e+22) {
tmp = x * 4.16438922228;
} else if (x <= 270.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.4e+22: tmp = x * 4.16438922228 elif x <= 270.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.4e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 270.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); 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 <= -6.4e+22) tmp = x * 4.16438922228; elseif (x <= 270.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.4e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 270.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $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 -6.4 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 270:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -6.4e22Initial program 7.1%
associate-/l*16.7%
sub-neg16.7%
metadata-eval16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
Simplified16.7%
Taylor expanded in x around -inf 96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
Simplified96.1%
Taylor expanded in x around inf 96.1%
*-commutative96.1%
Simplified96.1%
if -6.4e22 < x < 270Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 86.6%
Taylor expanded in y around inf 85.6%
*-commutative85.6%
*-commutative85.6%
associate-*r*85.6%
Simplified85.6%
if 270 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around inf 88.4%
associate-*r/88.4%
metadata-eval88.4%
Simplified88.4%
Final simplification88.9%
(FPCore (x y z)
:precision binary64
(if (<= x -6.4e+22)
(* x 4.16438922228)
(if (<= x 620.0)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.4e+22) {
tmp = x * 4.16438922228;
} else if (x <= 620.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.4d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 620.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.4e+22) {
tmp = x * 4.16438922228;
} else if (x <= 620.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.4e+22: tmp = x * 4.16438922228 elif x <= 620.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.4e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 620.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.4e+22) tmp = x * 4.16438922228; elseif (x <= 620.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.4e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 620.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.4 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 620:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.4e22Initial program 7.1%
associate-/l*16.7%
sub-neg16.7%
metadata-eval16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
fma-define16.7%
Simplified16.7%
Taylor expanded in x around -inf 96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
Simplified96.1%
Taylor expanded in x around inf 96.1%
*-commutative96.1%
Simplified96.1%
if -6.4e22 < x < 620Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 86.6%
Taylor expanded in y around inf 85.6%
*-commutative85.6%
*-commutative85.6%
associate-*r*85.6%
Simplified85.6%
if 620 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around -inf 88.7%
mul-1-neg88.7%
unsub-neg88.7%
sub-neg88.7%
associate-*r/88.7%
metadata-eval88.7%
distribute-neg-frac88.7%
metadata-eval88.7%
Simplified88.7%
Final simplification88.9%
(FPCore (x y z)
:precision binary64
(if (<= x -145.0)
(* x 4.16438922228)
(if (<= x 2.8)
(* z -0.0424927283095952)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -145.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.8) {
tmp = 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 <= (-145.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.8d0) then
tmp = 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 <= -145.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.8) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -145.0: tmp = x * 4.16438922228 elif x <= 2.8: tmp = 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 <= -145.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.8) tmp = 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 <= -145.0) tmp = x * 4.16438922228; elseif (x <= 2.8) tmp = 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, -145.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.8], N[(z * -0.0424927283095952), $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 -145:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.8:\\
\;\;\;\;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 < -145Initial program 11.5%
associate-/l*22.0%
sub-neg22.0%
metadata-eval22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Taylor expanded in x around inf 90.2%
*-commutative90.2%
Simplified90.2%
if -145 < x < 2.7999999999999998Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.0%
*-commutative66.0%
Simplified66.0%
if 2.7999999999999998 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around inf 88.4%
associate-*r/88.4%
metadata-eval88.4%
Simplified88.4%
Final simplification78.5%
(FPCore (x y z)
:precision binary64
(if (<= x -14200.0)
(* x 4.16438922228)
(if (<= x 2.3)
(* z -0.0424927283095952)
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -14200.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.3) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-14200.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.3d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -14200.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.3) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -14200.0: tmp = x * 4.16438922228 elif x <= 2.3: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -14200.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.3) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -14200.0) tmp = x * 4.16438922228; elseif (x <= 2.3) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -14200.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.3], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -14200:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.3:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -14200Initial program 11.5%
associate-/l*22.0%
sub-neg22.0%
metadata-eval22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Taylor expanded in x around inf 90.2%
*-commutative90.2%
Simplified90.2%
if -14200 < x < 2.2999999999999998Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.0%
*-commutative66.0%
Simplified66.0%
if 2.2999999999999998 < x Initial program 10.9%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
fma-define16.0%
Simplified16.0%
Taylor expanded in x around inf 88.4%
associate-*r/88.4%
metadata-eval88.4%
Simplified88.4%
Final simplification78.5%
(FPCore (x y z) :precision binary64 (if (<= x -195.0) (* x 4.16438922228) (if (<= x 0.106) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -195.0) {
tmp = x * 4.16438922228;
} else if (x <= 0.106) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-195.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 0.106d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -195.0) {
tmp = x * 4.16438922228;
} else if (x <= 0.106) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -195.0: tmp = x * 4.16438922228 elif x <= 0.106: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -195.0) tmp = Float64(x * 4.16438922228); elseif (x <= 0.106) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -195.0) tmp = x * 4.16438922228; elseif (x <= 0.106) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -195.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 0.106], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -195:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 0.106:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -195Initial program 11.5%
associate-/l*22.0%
sub-neg22.0%
metadata-eval22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Taylor expanded in x around inf 90.2%
*-commutative90.2%
Simplified90.2%
if -195 < x < 0.105999999999999997Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.9%
*-commutative66.9%
Simplified66.9%
if 0.105999999999999997 < x Initial program 13.2%
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 86.1%
Final simplification78.4%
(FPCore (x y z) :precision binary64 (if (or (<= x -3000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-3000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3000.0) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3000.0) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3000.0) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -3e3 or 2 < x Initial program 11.2%
associate-/l*18.7%
sub-neg18.7%
metadata-eval18.7%
fma-define18.7%
fma-define18.7%
fma-define18.7%
fma-define18.7%
fma-define18.7%
fma-define18.7%
fma-define18.7%
Simplified18.7%
Taylor expanded in x around -inf 94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Taylor expanded in x around inf 89.1%
*-commutative89.1%
Simplified89.1%
if -3e3 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.0%
*-commutative66.0%
Simplified66.0%
Final simplification78.4%
(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 52.0%
associate-/l*56.0%
sub-neg56.0%
metadata-eval56.0%
fma-define56.0%
fma-define56.0%
fma-define56.0%
fma-define56.0%
fma-define56.0%
fma-define56.0%
fma-define56.0%
Simplified56.0%
Taylor expanded in x around -inf 52.2%
mul-1-neg52.2%
unsub-neg52.2%
mul-1-neg52.2%
unsub-neg52.2%
mul-1-neg52.2%
unsub-neg52.2%
mul-1-neg52.2%
unsub-neg52.2%
Simplified52.2%
Taylor expanded in x around inf 49.6%
*-commutative49.6%
Simplified49.6%
Final simplification49.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024095
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))