
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(if (or (<= t_0 (- INFINITY)) (not (<= t_0 2e+293)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
t_0)))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if ((t_0 <= -((double) INFINITY)) || !(t_0 <= 2e+293)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if ((t_0 <= -Double.POSITIVE_INFINITY) || !(t_0 <= 2e+293)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) tmp = 0 if (t_0 <= -math.inf) or not (t_0 <= 2e+293): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) tmp = 0.0 if ((t_0 <= Float64(-Inf)) || !(t_0 <= 2e+293)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); tmp = 0.0; if ((t_0 <= -Inf) || ~((t_0 <= 2e+293))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$0, (-Infinity)], N[Not[LessEqual[t$95$0, 2e+293]], $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], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{if}\;t\_0 \leq -\infty \lor \neg \left(t\_0 \leq 2 \cdot 10^{+293}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\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.0 or 1.9999999999999998e293 < (/.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.5%
associate-/l*9.3%
sub-neg9.3%
metadata-eval9.3%
fma-define9.3%
fma-define9.3%
fma-define9.3%
fma-define9.3%
fma-define9.3%
fma-define9.3%
fma-define9.3%
Simplified9.3%
Taylor expanded in x around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
Simplified98.3%
Taylor expanded in y around inf 98.3%
mul-1-neg98.3%
distribute-neg-frac298.3%
Simplified98.3%
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.9999999999999998e293Initial program 99.6%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 2e+293)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+293) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 2d+293) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+293) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 2e+293: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(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) <= 2e+293) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+293) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(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], 2e+293], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $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]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := 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 2 \cdot 10^{+293}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{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.9999999999999998e293Initial program 95.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 99.0%
if 1.9999999999999998e293 < (/.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.3%
associate-/l*4.9%
sub-neg4.9%
metadata-eval4.9%
fma-define4.9%
fma-define4.9%
fma-define4.9%
fma-define4.9%
fma-define4.9%
fma-define4.9%
fma-define4.9%
Simplified4.9%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
Simplified99.2%
Taylor expanded in y around inf 99.2%
mul-1-neg99.2%
distribute-neg-frac299.2%
Simplified99.2%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -3200000000.0) (not (<= x 1.4e+42)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3200000000.0) || !(x <= 1.4e+42)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-3200000000.0d0)) .or. (.not. (x <= 1.4d+42))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3200000000.0) || !(x <= 1.4e+42)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3200000000.0) or not (x <= 1.4e+42): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3200000000.0) || !(x <= 1.4e+42)) 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(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3200000000.0) || ~((x <= 1.4e+42))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3200000000.0], N[Not[LessEqual[x, 1.4e+42]], $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[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3200000000 \lor \neg \left(x \leq 1.4 \cdot 10^{+42}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -3.2e9 or 1.4e42 < x Initial program 6.5%
associate-/l*14.0%
sub-neg14.0%
metadata-eval14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
Simplified14.0%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
Simplified99.2%
Taylor expanded in y around inf 99.2%
mul-1-neg99.2%
distribute-neg-frac299.2%
Simplified99.2%
if -3.2e9 < x < 1.4e42Initial program 98.4%
Taylor expanded in x around 0 98.3%
*-commutative98.3%
Simplified98.3%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -700000000.0) (not (<= x 2.05e+41)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(* 0.0212463641547976 (* x y))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -700000000.0) || !(x <= 2.05e+41)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-700000000.0d0)) .or. (.not. (x <= 2.05d+41))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))) + (0.0212463641547976d0 * (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -700000000.0) || !(x <= 2.05e+41)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -700000000.0) or not (x <= 2.05e+41): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -700000000.0) || !(x <= 2.05e+41)) 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(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) + Float64(0.0212463641547976 * Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -700000000.0) || ~((x <= 2.05e+41))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -700000000.0], N[Not[LessEqual[x, 2.05e+41]], $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[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -700000000 \lor \neg \left(x \leq 2.05 \cdot 10^{+41}\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(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)} + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -7e8 or 2.0500000000000002e41 < x Initial program 7.3%
associate-/l*14.8%
sub-neg14.8%
metadata-eval14.8%
fma-define14.8%
fma-define14.8%
fma-define14.8%
fma-define14.8%
fma-define14.8%
fma-define14.8%
fma-define14.8%
Simplified14.8%
Taylor expanded in x around -inf 98.4%
mul-1-neg98.4%
unsub-neg98.4%
mul-1-neg98.4%
unsub-neg98.4%
mul-1-neg98.4%
unsub-neg98.4%
mul-1-neg98.4%
unsub-neg98.4%
Simplified98.4%
Taylor expanded in y around inf 98.4%
mul-1-neg98.4%
distribute-neg-frac298.4%
Simplified98.4%
if -7e8 < x < 2.0500000000000002e41Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in z around 0 99.0%
Taylor expanded in x around 0 95.4%
Final simplification96.7%
(FPCore (x y z)
:precision binary64
(if (<= x -410000000.0)
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= x 2e-6)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
(+ x -2.0)
(*
z
(+
(/
1.0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(/ 4.16438922228 z)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 2e-6) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (z * ((1.0 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (4.16438922228 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-410000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 2d-6) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) * (z * ((1.0d0 / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))) + (4.16438922228d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 2e-6) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (z * ((1.0 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (4.16438922228 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410000000.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif x <= 2e-6: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) * (z * ((1.0 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (4.16438922228 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (x <= 2e-6) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) * Float64(z * Float64(Float64(1.0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) + Float64(4.16438922228 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -410000000.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (x <= 2e-6) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) * (z * ((1.0 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (4.16438922228 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410000000.0], 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], If[LessEqual[x, 2e-6], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * N[(N[(1.0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-6}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot \left(\frac{1}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)} + \frac{4.16438922228}{z}\right)\right)\\
\end{array}
\end{array}
if x < -4.1e8Initial program 8.9%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
Simplified17.0%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
Simplified99.1%
Taylor expanded in y around inf 99.1%
mul-1-neg99.1%
distribute-neg-frac299.1%
Simplified99.1%
if -4.1e8 < x < 1.99999999999999991e-6Initial 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 95.6%
if 1.99999999999999991e-6 < x Initial program 14.5%
associate-/l*21.9%
sub-neg21.9%
metadata-eval21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
Simplified21.9%
Taylor expanded in z around inf 15.9%
Taylor expanded in x around inf 93.3%
Final simplification95.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))))))
(if (<= x -410000000.0)
(*
x
(- (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x) -4.16438922228))
(if (<= x 1.45e-64)
t_0
(if (<= x 5.2e-18)
(* x (* y -0.0424927283095952))
(if (<= x 8e+21) t_0 (* 4.16438922228 (+ x -2.0))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
double tmp;
if (x <= -410000000.0) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else if (x <= 1.45e-64) {
tmp = t_0;
} else if (x <= 5.2e-18) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))))
if (x <= (-410000000.0d0)) then
tmp = x * ((((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x) - (-4.16438922228d0))
else if (x <= 1.45d-64) then
tmp = t_0
else if (x <= 5.2d-18) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 8d+21) then
tmp = t_0
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
double tmp;
if (x <= -410000000.0) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else if (x <= 1.45e-64) {
tmp = t_0;
} else if (x <= 5.2e-18) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) tmp = 0 if x <= -410000000.0: tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228) elif x <= 1.45e-64: tmp = t_0 elif x <= 5.2e-18: tmp = x * (y * -0.0424927283095952) elif x <= 8e+21: tmp = t_0 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))))) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(x * Float64(Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228)); elseif (x <= 1.45e-64) tmp = t_0; elseif (x <= 5.2e-18) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 8e+21) tmp = t_0; else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))); tmp = 0.0; if (x <= -410000000.0) tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228); elseif (x <= 1.45e-64) tmp = t_0; elseif (x <= 5.2e-18) tmp = x * (y * -0.0424927283095952); elseif (x <= 8e+21) tmp = t_0; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -410000000.0], N[(x * N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e-64], t$95$0, If[LessEqual[x, 5.2e-18], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+21], t$95$0, N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;x \cdot \left(\frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-64}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-18}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+21}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -4.1e8Initial program 8.9%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
Simplified17.0%
Applied egg-rr17.0%
Taylor expanded in x around -inf 94.0%
Simplified94.0%
if -4.1e8 < x < 1.4499999999999999e-64 or 5.2000000000000001e-18 < x < 8e21Initial program 99.0%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around inf 72.2%
Taylor expanded in x around 0 68.7%
*-commutative68.7%
Simplified68.7%
if 1.4499999999999999e-64 < x < 5.2000000000000001e-18Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
if 8e21 < x Initial program 7.3%
associate-/l*15.5%
sub-neg15.5%
metadata-eval15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in x around inf 91.1%
Final simplification79.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (+ x -2.0) (/ z (+ 47.066876606 (* x 313.399215894))))))
(if (<= x -1.35)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 1.34e-64)
t_0
(if (<= x 2.15e-13)
(* x (* y -0.0424927283095952))
(if (<= x 8e+21) t_0 (* 4.16438922228 (+ x -2.0))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
double tmp;
if (x <= -1.35) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1.34e-64) {
tmp = t_0;
} else if (x <= 2.15e-13) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * 313.399215894d0)))
if (x <= (-1.35d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 1.34d-64) then
tmp = t_0
else if (x <= 2.15d-13) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 8d+21) then
tmp = t_0
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
double tmp;
if (x <= -1.35) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1.34e-64) {
tmp = t_0;
} else if (x <= 2.15e-13) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))) tmp = 0 if x <= -1.35: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 1.34e-64: tmp = t_0 elif x <= 2.15e-13: tmp = x * (y * -0.0424927283095952) elif x <= 8e+21: tmp = t_0 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * 313.399215894)))) tmp = 0.0 if (x <= -1.35) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 1.34e-64) tmp = t_0; elseif (x <= 2.15e-13) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 8e+21) tmp = t_0; else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))); tmp = 0.0; if (x <= -1.35) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 1.34e-64) tmp = t_0; elseif (x <= 2.15e-13) tmp = x * (y * -0.0424927283095952); elseif (x <= 8e+21) tmp = t_0; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.34e-64], t$95$0, If[LessEqual[x, 2.15e-13], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+21], t$95$0, N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 1.34 \cdot 10^{-64}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{-13}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+21}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -1.3500000000000001Initial program 10.4%
associate-/l*18.4%
sub-neg18.4%
metadata-eval18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
Simplified18.4%
Taylor expanded in x around inf 92.5%
associate-*r/92.5%
metadata-eval92.5%
Simplified92.5%
if -1.3500000000000001 < x < 1.3400000000000001e-64 or 2.1499999999999999e-13 < x < 8e21Initial program 99.0%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in z around inf 72.0%
Taylor expanded in x around 0 68.9%
*-commutative68.9%
Simplified68.9%
if 1.3400000000000001e-64 < x < 2.1499999999999999e-13Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
if 8e21 < x Initial program 7.3%
associate-/l*15.5%
sub-neg15.5%
metadata-eval15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in x around inf 91.1%
Final simplification79.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (+ x -2.0) (/ z (+ 47.066876606 (* x 313.399215894))))))
(if (<= x -1.35)
(*
x
(- (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x) -4.16438922228))
(if (<= x 7.1e-65)
t_0
(if (<= x 1.3e-17)
(* x (* y -0.0424927283095952))
(if (<= x 8e+21) t_0 (* 4.16438922228 (+ x -2.0))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
double tmp;
if (x <= -1.35) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else if (x <= 7.1e-65) {
tmp = t_0;
} else if (x <= 1.3e-17) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * 313.399215894d0)))
if (x <= (-1.35d0)) then
tmp = x * ((((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x) - (-4.16438922228d0))
else if (x <= 7.1d-65) then
tmp = t_0
else if (x <= 1.3d-17) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 8d+21) then
tmp = t_0
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
double tmp;
if (x <= -1.35) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else if (x <= 7.1e-65) {
tmp = t_0;
} else if (x <= 1.3e-17) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))) tmp = 0 if x <= -1.35: tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228) elif x <= 7.1e-65: tmp = t_0 elif x <= 1.3e-17: tmp = x * (y * -0.0424927283095952) elif x <= 8e+21: tmp = t_0 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * 313.399215894)))) tmp = 0.0 if (x <= -1.35) tmp = Float64(x * Float64(Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228)); elseif (x <= 7.1e-65) tmp = t_0; elseif (x <= 1.3e-17) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 8e+21) tmp = t_0; else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))); tmp = 0.0; if (x <= -1.35) tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228); elseif (x <= 7.1e-65) tmp = t_0; elseif (x <= 1.3e-17) tmp = x * (y * -0.0424927283095952); elseif (x <= 8e+21) tmp = t_0; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35], N[(x * N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.1e-65], t$95$0, If[LessEqual[x, 1.3e-17], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+21], t$95$0, N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;x \cdot \left(\frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 7.1 \cdot 10^{-65}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-17}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+21}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -1.3500000000000001Initial program 10.4%
associate-/l*18.4%
sub-neg18.4%
metadata-eval18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
fma-define18.4%
Simplified18.4%
Applied egg-rr18.4%
Taylor expanded in x around -inf 92.5%
Simplified92.5%
if -1.3500000000000001 < x < 7.10000000000000028e-65 or 1.30000000000000002e-17 < x < 8e21Initial program 99.0%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in z around inf 72.0%
Taylor expanded in x around 0 68.9%
*-commutative68.9%
Simplified68.9%
if 7.10000000000000028e-65 < x < 1.30000000000000002e-17Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
if 8e21 < x Initial program 7.3%
associate-/l*15.5%
sub-neg15.5%
metadata-eval15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in x around inf 91.1%
Final simplification79.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -410000000.0)
t_0
(if (<= x 1.05e-64)
(* z -0.0424927283095952)
(if (<= x 6e-18)
(* x (* y -0.0424927283095952))
(if (<= x 2.0) (* z -0.0424927283095952) t_0))))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -410000000.0) {
tmp = t_0;
} else if (x <= 1.05e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 6e-18) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-410000000.0d0)) then
tmp = t_0
else if (x <= 1.05d-64) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 6d-18) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -410000000.0) {
tmp = t_0;
} else if (x <= 1.05e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 6e-18) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -410000000.0: tmp = t_0 elif x <= 1.05e-64: tmp = z * -0.0424927283095952 elif x <= 6e-18: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -410000000.0) tmp = t_0; elseif (x <= 1.05e-64) tmp = Float64(z * -0.0424927283095952); elseif (x <= 6e-18) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -410000000.0) tmp = t_0; elseif (x <= 1.05e-64) tmp = z * -0.0424927283095952; elseif (x <= 6e-18) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -410000000.0], t$95$0, If[LessEqual[x, 1.05e-64], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 6e-18], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-64}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 6 \cdot 10^{-18}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4.1e8 or 2 < x Initial program 11.1%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Taylor expanded in x around inf 88.8%
associate-*r/88.8%
metadata-eval88.8%
Simplified88.8%
if -4.1e8 < x < 1.05000000000000006e-64 or 5.99999999999999966e-18 < 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 69.7%
*-commutative69.7%
Simplified69.7%
if 1.05000000000000006e-64 < x < 5.99999999999999966e-18Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
Final simplification78.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (+ -0.0424927283095952 (* x 0.3041881842569256)))))
(if (<= x -410000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 6.4e-69)
t_0
(if (<= x 1.06e-14)
(* x (* y -0.0424927283095952))
(if (<= x 8e+21) t_0 (* 4.16438922228 (+ x -2.0))))))))
double code(double x, double y, double z) {
double t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256));
double tmp;
if (x <= -410000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 6.4e-69) {
tmp = t_0;
} else if (x <= 1.06e-14) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
if (x <= (-410000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 6.4d-69) then
tmp = t_0
else if (x <= 1.06d-14) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 8d+21) then
tmp = t_0
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256));
double tmp;
if (x <= -410000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 6.4e-69) {
tmp = t_0;
} else if (x <= 1.06e-14) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256)) tmp = 0 if x <= -410000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 6.4e-69: tmp = t_0 elif x <= 1.06e-14: tmp = x * (y * -0.0424927283095952) elif x <= 8e+21: tmp = t_0 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) t_0 = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 6.4e-69) tmp = t_0; elseif (x <= 1.06e-14) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 8e+21) tmp = t_0; else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256)); tmp = 0.0; if (x <= -410000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 6.4e-69) tmp = t_0; elseif (x <= 1.06e-14) tmp = x * (y * -0.0424927283095952); elseif (x <= 8e+21) tmp = t_0; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -410000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.4e-69], t$95$0, If[LessEqual[x, 1.06e-14], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+21], t$95$0, N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{-69}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-14}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+21}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -4.1e8Initial program 8.9%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
Simplified17.0%
Taylor expanded in x around inf 94.0%
associate-*r/94.0%
metadata-eval94.0%
Simplified94.0%
if -4.1e8 < x < 6.39999999999999997e-69 or 1.06e-14 < x < 8e21Initial program 99.0%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around inf 72.2%
Taylor expanded in x around 0 68.1%
*-commutative68.1%
*-commutative68.1%
distribute-rgt-out--68.1%
metadata-eval68.1%
associate-*l*68.1%
distribute-lft-out68.1%
Simplified68.1%
if 6.39999999999999997e-69 < x < 1.06e-14Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
if 8e21 < x Initial program 7.3%
associate-/l*15.5%
sub-neg15.5%
metadata-eval15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in x around inf 91.1%
Final simplification79.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (+ -0.0424927283095952 (* x 0.3041881842569256)))))
(if (<= x -410000000.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 7.2e-66)
t_0
(if (<= x 2.45e-14)
(* x (* y -0.0424927283095952))
(if (<= x 8e+21) t_0 (* 4.16438922228 (+ x -2.0))))))))
double code(double x, double y, double z) {
double t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256));
double tmp;
if (x <= -410000000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 7.2e-66) {
tmp = t_0;
} else if (x <= 2.45e-14) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
if (x <= (-410000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 7.2d-66) then
tmp = t_0
else if (x <= 2.45d-14) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 8d+21) then
tmp = t_0
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256));
double tmp;
if (x <= -410000000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 7.2e-66) {
tmp = t_0;
} else if (x <= 2.45e-14) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = t_0;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256)) tmp = 0 if x <= -410000000.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 7.2e-66: tmp = t_0 elif x <= 2.45e-14: tmp = x * (y * -0.0424927283095952) elif x <= 8e+21: tmp = t_0 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) t_0 = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 7.2e-66) tmp = t_0; elseif (x <= 2.45e-14) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 8e+21) tmp = t_0; else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (-0.0424927283095952 + (x * 0.3041881842569256)); tmp = 0.0; if (x <= -410000000.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 7.2e-66) tmp = t_0; elseif (x <= 2.45e-14) tmp = x * (y * -0.0424927283095952); elseif (x <= 8e+21) tmp = t_0; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -410000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e-66], t$95$0, If[LessEqual[x, 2.45e-14], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+21], t$95$0, N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-66}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.45 \cdot 10^{-14}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+21}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -4.1e8Initial program 8.9%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
Simplified17.0%
Taylor expanded in x around inf 94.0%
associate-*r/94.0%
metadata-eval94.0%
Simplified94.0%
if -4.1e8 < x < 7.20000000000000025e-66 or 2.44999999999999997e-14 < x < 8e21Initial program 99.0%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around inf 72.2%
Taylor expanded in x around 0 68.1%
*-commutative68.1%
*-commutative68.1%
distribute-rgt-out--68.1%
metadata-eval68.1%
associate-*l*68.1%
distribute-lft-out68.1%
Simplified68.1%
if 7.20000000000000025e-66 < x < 2.44999999999999997e-14Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
if 8e21 < x Initial program 7.3%
associate-/l*15.5%
sub-neg15.5%
metadata-eval15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in x around inf 91.1%
Final simplification79.3%
(FPCore (x y z)
:precision binary64
(if (<= x -410000000.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 5.7e-69)
(* (+ x -2.0) (* z (+ 0.0212463641547976 (* x -0.14147091005106402))))
(if (<= x 2.15e-11)
(* x (* y -0.0424927283095952))
(if (<= x 8e+21)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* 4.16438922228 (+ x -2.0)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 5.7e-69) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 2.15e-11) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} 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 <= (-410000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 5.7d-69) then
tmp = (x + (-2.0d0)) * (z * (0.0212463641547976d0 + (x * (-0.14147091005106402d0))))
else if (x <= 2.15d-11) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 8d+21) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
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 <= -410000000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 5.7e-69) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 2.15e-11) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 8e+21) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410000000.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 5.7e-69: tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))) elif x <= 2.15e-11: tmp = x * (y * -0.0424927283095952) elif x <= 8e+21: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 5.7e-69) tmp = Float64(Float64(x + -2.0) * Float64(z * Float64(0.0212463641547976 + Float64(x * -0.14147091005106402)))); elseif (x <= 2.15e-11) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 8e+21) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); 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 <= -410000000.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 5.7e-69) tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))); elseif (x <= 2.15e-11) tmp = x * (y * -0.0424927283095952); elseif (x <= 8e+21) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.7e-69], N[(N[(x + -2.0), $MachinePrecision] * N[(z * N[(0.0212463641547976 + N[(x * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.15e-11], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+21], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 5.7 \cdot 10^{-69}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot \left(0.0212463641547976 + x \cdot -0.14147091005106402\right)\right)\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{-11}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+21}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -4.1e8Initial program 8.9%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
Simplified17.0%
Taylor expanded in x around inf 94.0%
associate-*r/94.0%
metadata-eval94.0%
Simplified94.0%
if -4.1e8 < x < 5.7e-69Initial 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 inf 71.5%
Taylor expanded in x around 0 70.5%
+-commutative70.5%
associate-*r*70.5%
distribute-rgt-out70.5%
Simplified70.5%
if 5.7e-69 < x < 2.15000000000000001e-11Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
if 2.15000000000000001e-11 < x < 8e21Initial program 88.0%
associate-/l*87.8%
sub-neg87.8%
metadata-eval87.8%
fma-define87.8%
fma-define87.8%
fma-define87.8%
fma-define87.8%
fma-define87.8%
fma-define87.8%
fma-define87.6%
Simplified87.6%
Taylor expanded in z around inf 81.8%
Taylor expanded in x around 0 31.5%
*-commutative31.5%
*-commutative31.5%
distribute-rgt-out--31.5%
metadata-eval31.5%
associate-*l*31.5%
distribute-lft-out31.5%
Simplified31.5%
if 8e21 < x Initial program 7.3%
associate-/l*15.5%
sub-neg15.5%
metadata-eval15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in x around inf 91.1%
Final simplification79.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -410000000.0) (not (<= x 2.8e+19)))
(*
x
(- (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x) -4.16438922228))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -410000000.0) || !(x <= 2.8e+19)) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-410000000.0d0)) .or. (.not. (x <= 2.8d+19))) then
tmp = x * ((((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x) - (-4.16438922228d0))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -410000000.0) || !(x <= 2.8e+19)) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -410000000.0) or not (x <= 2.8e+19): tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -410000000.0) || !(x <= 2.8e+19)) tmp = Float64(x * Float64(Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228)); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -410000000.0) || ~((x <= 2.8e+19))) tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -410000000.0], N[Not[LessEqual[x, 2.8e+19]], $MachinePrecision]], N[(x * N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000000 \lor \neg \left(x \leq 2.8 \cdot 10^{+19}\right):\\
\;\;\;\;x \cdot \left(\frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -4.1e8 or 2.8e19 < x Initial program 8.9%
associate-/l*16.9%
sub-neg16.9%
metadata-eval16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
Simplified16.9%
Applied egg-rr17.0%
Taylor expanded in x around -inf 91.8%
Simplified91.8%
if -4.1e8 < x < 2.8e19Initial program 99.0%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 92.7%
Final simplification92.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -410000000.0) (not (<= x 1.8e+17)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -410000000.0) || !(x <= 1.8e+17)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -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 <= (-410000000.0d0)) .or. (.not. (x <= 1.8d+17))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -410000000.0) || !(x <= 1.8e+17)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -410000000.0) or not (x <= 1.8e+17): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -410000000.0) || !(x <= 1.8e+17)) 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(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -410000000.0) || ~((x <= 1.8e+17))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -410000000.0], N[Not[LessEqual[x, 1.8e+17]], $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[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000000 \lor \neg \left(x \leq 1.8 \cdot 10^{+17}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\end{array}
\end{array}
if x < -4.1e8 or 1.8e17 < x Initial program 8.9%
associate-/l*16.8%
sub-neg16.8%
metadata-eval16.8%
fma-define16.8%
fma-define16.8%
fma-define16.8%
fma-define16.8%
fma-define16.8%
fma-define16.8%
fma-define16.8%
Simplified16.8%
Taylor expanded in x around -inf 96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
Simplified96.8%
Taylor expanded in y around inf 96.8%
mul-1-neg96.8%
distribute-neg-frac296.8%
Simplified96.8%
if -4.1e8 < x < 1.8e17Initial 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 93.5%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (<= x -410000000.0)
(*
x
(- (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x) -4.16438922228))
(if (<= x 8e+21)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else if (x <= 8e+21) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} 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 <= (-410000000.0d0)) then
tmp = x * ((((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x) - (-4.16438922228d0))
else if (x <= 8d+21) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
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 <= -410000000.0) {
tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228);
} else if (x <= 8e+21) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410000000.0: tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228) elif x <= 8e+21: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(x * Float64(Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228)); elseif (x <= 8e+21) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); 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 <= -410000000.0) tmp = x * ((((3655.1204654076414 / x) + -110.1139242984811) / x) - -4.16438922228); elseif (x <= 8e+21) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410000000.0], N[(x * N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+21], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;x \cdot \left(\frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+21}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -4.1e8Initial program 8.9%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
fma-define17.0%
Simplified17.0%
Applied egg-rr17.0%
Taylor expanded in x around -inf 94.0%
Simplified94.0%
if -4.1e8 < x < 8e21Initial program 99.0%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 92.2%
if 8e21 < x Initial program 7.3%
associate-/l*15.5%
sub-neg15.5%
metadata-eval15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in x around inf 91.1%
Final simplification92.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* 4.16438922228 (+ x -2.0))))
(if (<= x -410000000.0)
t_0
(if (<= x 1.28e-64)
(* z -0.0424927283095952)
(if (<= x 4.8e-15)
(* x (* y -0.0424927283095952))
(if (<= x 0.98) (* z -0.0424927283095952) t_0))))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -410000000.0) {
tmp = t_0;
} else if (x <= 1.28e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 4.8e-15) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.98) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 * (x + (-2.0d0))
if (x <= (-410000000.0d0)) then
tmp = t_0
else if (x <= 1.28d-64) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 4.8d-15) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.98d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -410000000.0) {
tmp = t_0;
} else if (x <= 1.28e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 4.8e-15) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.98) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 * (x + -2.0) tmp = 0 if x <= -410000000.0: tmp = t_0 elif x <= 1.28e-64: tmp = z * -0.0424927283095952 elif x <= 4.8e-15: tmp = x * (y * -0.0424927283095952) elif x <= 0.98: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 * Float64(x + -2.0)) tmp = 0.0 if (x <= -410000000.0) tmp = t_0; elseif (x <= 1.28e-64) tmp = Float64(z * -0.0424927283095952); elseif (x <= 4.8e-15) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.98) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 * (x + -2.0); tmp = 0.0; if (x <= -410000000.0) tmp = t_0; elseif (x <= 1.28e-64) tmp = z * -0.0424927283095952; elseif (x <= 4.8e-15) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.98) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -410000000.0], t$95$0, If[LessEqual[x, 1.28e-64], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 4.8e-15], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.98], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.28 \cdot 10^{-64}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.98:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4.1e8 or 0.97999999999999998 < x Initial program 11.1%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Taylor expanded in x around inf 88.5%
if -4.1e8 < x < 1.28e-64 or 4.7999999999999999e-15 < x < 0.97999999999999998Initial 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 69.7%
*-commutative69.7%
Simplified69.7%
if 1.28e-64 < x < 4.7999999999999999e-15Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
Final simplification78.6%
(FPCore (x y z)
:precision binary64
(if (<= x -410000000.0)
(* x 4.16438922228)
(if (<= x 4.5e-66)
(* z -0.0424927283095952)
(if (<= x 8e-20)
(* (* x y) -0.0424927283095952)
(if (<= x 2.6) (* z -0.0424927283095952) (* x 4.16438922228))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 4.5e-66) {
tmp = z * -0.0424927283095952;
} else if (x <= 8e-20) {
tmp = (x * y) * -0.0424927283095952;
} else if (x <= 2.6) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-410000000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 4.5d-66) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 8d-20) then
tmp = (x * y) * (-0.0424927283095952d0)
else if (x <= 2.6d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 4.5e-66) {
tmp = z * -0.0424927283095952;
} else if (x <= 8e-20) {
tmp = (x * y) * -0.0424927283095952;
} else if (x <= 2.6) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410000000.0: tmp = x * 4.16438922228 elif x <= 4.5e-66: tmp = z * -0.0424927283095952 elif x <= 8e-20: tmp = (x * y) * -0.0424927283095952 elif x <= 2.6: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 4.5e-66) tmp = Float64(z * -0.0424927283095952); elseif (x <= 8e-20) tmp = Float64(Float64(x * y) * -0.0424927283095952); elseif (x <= 2.6) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -410000000.0) tmp = x * 4.16438922228; elseif (x <= 4.5e-66) tmp = z * -0.0424927283095952; elseif (x <= 8e-20) tmp = (x * y) * -0.0424927283095952; elseif (x <= 2.6) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410000000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 4.5e-66], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 8e-20], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.6], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-66}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-20}:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.6:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -4.1e8 or 2.60000000000000009 < x Initial program 11.1%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Applied egg-rr18.9%
Taylor expanded in x around inf 88.5%
*-commutative88.5%
Simplified88.5%
if -4.1e8 < x < 4.4999999999999998e-66 or 7.99999999999999956e-20 < x < 2.60000000000000009Initial 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 69.7%
*-commutative69.7%
Simplified69.7%
if 4.4999999999999998e-66 < x < 7.99999999999999956e-20Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
Final simplification78.6%
(FPCore (x y z)
:precision binary64
(if (<= x -410000000.0)
(* x 4.16438922228)
(if (<= x 2.05e-64)
(* z -0.0424927283095952)
(if (<= x 4.6e-21)
(* x (* y -0.0424927283095952))
(if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.05e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 4.6e-21) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-410000000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.05d-64) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 4.6d-21) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -410000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.05e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 4.6e-21) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410000000.0: tmp = x * 4.16438922228 elif x <= 2.05e-64: tmp = z * -0.0424927283095952 elif x <= 4.6e-21: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410000000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.05e-64) tmp = Float64(z * -0.0424927283095952); elseif (x <= 4.6e-21) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -410000000.0) tmp = x * 4.16438922228; elseif (x <= 2.05e-64) tmp = z * -0.0424927283095952; elseif (x <= 4.6e-21) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410000000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.05e-64], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 4.6e-21], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{-64}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-21}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -4.1e8 or 2 < x Initial program 11.1%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Applied egg-rr18.9%
Taylor expanded in x around inf 88.5%
*-commutative88.5%
Simplified88.5%
if -4.1e8 < x < 2.05e-64 or 4.59999999999999999e-21 < 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 69.7%
*-commutative69.7%
Simplified69.7%
if 2.05e-64 < x < 4.59999999999999999e-21Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 70.9%
Taylor expanded in x around 0 70.9%
*-commutative70.9%
associate-*r*71.0%
*-commutative71.0%
Simplified71.0%
Final simplification78.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -410000000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -410000000.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 <= (-410000000.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 <= -410000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -410000000.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 <= -410000000.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 <= -410000000.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, -410000000.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 -410000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -4.1e8 or 2 < x Initial program 11.1%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Applied egg-rr18.9%
Taylor expanded in x around inf 88.5%
*-commutative88.5%
Simplified88.5%
if -4.1e8 < 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.2%
*-commutative66.2%
Simplified66.2%
Final simplification76.7%
(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 57.8%
associate-/l*61.5%
sub-neg61.5%
metadata-eval61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
Simplified61.5%
Applied egg-rr61.5%
Taylor expanded in x around inf 43.8%
*-commutative43.8%
Simplified43.8%
Final simplification43.8%
(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 2024078
(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)))