
(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)))
(t_1
(/
t_0
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_1 (- INFINITY))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x)))
(if (<= t_1 5e+286)
(/
t_0
(-
47.066876606
(*
x
(-
(* x (- (* x (* x (- -1.0 (/ 43.3400022514 x)))) 263.505074721))
313.399215894))))
(*
x
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))))))
double code(double x, double y, double z) {
double t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z);
double t_1 = t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
} else if (t_1 <= 5e+286) {
tmp = t_0 / (47.066876606 - (x * ((x * ((x * (x * (-1.0 - (43.3400022514 / x)))) - 263.505074721)) - 313.399215894)));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z);
double t_1 = t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
} else if (t_1 <= 5e+286) {
tmp = t_0 / (47.066876606 - (x * ((x * ((x * (x * (-1.0 - (43.3400022514 / x)))) - 263.505074721)) - 313.399215894)));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) t_1 = t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_1 <= -math.inf: tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) elif t_1 <= 5e+286: tmp = t_0 / (47.066876606 - (x * ((x * ((x * (x * (-1.0 - (43.3400022514 / x)))) - 263.505074721)) - 313.399215894))) else: tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) t_1 = Float64(t_0 / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); elseif (t_1 <= 5e+286) tmp = Float64(t_0 / Float64(47.066876606 - Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x * Float64(-1.0 - Float64(43.3400022514 / x)))) - 263.505074721)) - 313.399215894)))); else tmp = Float64(x * 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 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z); t_1 = t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_1 <= -Inf) tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); elseif (t_1 <= 5e+286) tmp = t_0 / (47.066876606 - (x * ((x * ((x * (x * (-1.0 - (43.3400022514 / x)))) - 263.505074721)) - 313.399215894))); else tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = N[(t$95$0 / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+286], N[(t$95$0 / N[(47.066876606 - N[(x * N[(N[(x * N[(N[(x * N[(x * N[(-1.0 - N[(43.3400022514 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 263.505074721), $MachinePrecision]), $MachinePrecision] - 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 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 := \left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)\\
t_1 := \frac{t\_0}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+286}:\\
\;\;\;\;\frac{t\_0}{47.066876606 - x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(-1 - \frac{43.3400022514}{x}\right)\right) - 263.505074721\right) - 313.399215894\right)}\\
\mathbf{else}:\\
\;\;\;\;x \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))) < -inf.0Initial program 4.9%
associate-/l*80.2%
sub-neg80.2%
metadata-eval80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
Simplified80.2%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Taylor expanded in x around inf 99.1%
clear-num99.4%
inv-pow99.4%
Applied egg-rr99.4%
unpow-199.4%
Simplified99.4%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.0000000000000004e286Initial program 99.7%
Taylor expanded in x around inf 99.7%
associate-*r/99.7%
metadata-eval99.7%
Simplified99.7%
if 5.0000000000000004e286 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.7%
sub-neg2.7%
metadata-eval2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
Simplified2.7%
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%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Taylor expanded in x around inf 99.2%
Taylor expanded in y around inf 99.2%
associate-*r/99.2%
mul-1-neg99.2%
Simplified99.2%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
5e+286)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
x
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+286) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+286) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 5e+286], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 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}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 5 \cdot 10^{+286}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;x \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))) < 5.0000000000000004e286Initial program 96.3%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
if 5.0000000000000004e286 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.7%
sub-neg2.7%
metadata-eval2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
Simplified2.7%
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%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Taylor expanded in x around inf 99.2%
Taylor expanded in y around inf 99.2%
associate-*r/99.2%
mul-1-neg99.2%
Simplified99.2%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 (- INFINITY))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x)))
(if (<= t_0 5e+286)
t_0
(*
x
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+286) {
tmp = t_0;
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+286) {
tmp = t_0;
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= -math.inf: tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) elif t_0 <= 5e+286: tmp = t_0 else: tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); elseif (t_0 <= 5e+286) tmp = t_0; else tmp = Float64(x * 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 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= -Inf) tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); elseif (t_0 <= 5e+286) tmp = t_0; else tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+286], t$95$0, N[(x * 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 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+286}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \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))) < -inf.0Initial program 4.9%
associate-/l*80.2%
sub-neg80.2%
metadata-eval80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
fma-define80.2%
Simplified80.2%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Taylor expanded in x around inf 99.1%
clear-num99.4%
inv-pow99.4%
Applied egg-rr99.4%
unpow-199.4%
Simplified99.4%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.0000000000000004e286Initial program 99.7%
if 5.0000000000000004e286 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.7%
sub-neg2.7%
metadata-eval2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
fma-define2.7%
Simplified2.7%
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%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Taylor expanded in x around inf 99.2%
Taylor expanded in y around inf 99.2%
associate-*r/99.2%
mul-1-neg99.2%
Simplified99.2%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1.2e+17)
(*
x
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= x 3.05e+19)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.2e+17) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+19) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.2d+17)) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 3.05d+19) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((-1.0d0) / (x / (124074.40615218398d0 - y)))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.2e+17) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+19) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.2e+17: tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif x <= 3.05e+19: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.2e+17) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (x <= 3.05e+19) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.2e+17) tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (x <= 3.05e+19) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.2e+17], N[(x * 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, 3.05e+19], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.2 \cdot 10^{+17}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+19}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.2e17Initial program 18.7%
associate-/l*23.0%
sub-neg23.0%
metadata-eval23.0%
fma-define23.0%
fma-define23.0%
fma-define23.0%
fma-define23.0%
fma-define23.0%
fma-define23.0%
fma-define23.0%
Simplified23.0%
Taylor expanded in x around -inf 97.7%
mul-1-neg97.7%
unsub-neg97.7%
mul-1-neg97.7%
unsub-neg97.7%
mul-1-neg97.7%
unsub-neg97.7%
neg-mul-197.7%
unsub-neg97.7%
Simplified97.7%
Taylor expanded in x around inf 97.7%
Taylor expanded in y around inf 97.7%
associate-*r/97.7%
mul-1-neg97.7%
Simplified97.7%
if -1.2e17 < x < 3.05e19Initial program 99.7%
Taylor expanded in x around 0 98.6%
*-commutative98.6%
Simplified98.6%
if 3.05e19 < x Initial program 10.0%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
Simplified15.2%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in x around inf 97.9%
clear-num98.0%
inv-pow98.0%
Applied egg-rr98.0%
unpow-198.0%
Simplified98.0%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= x 3.05e+16)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+16) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 3.05d+16) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((-1.0d0) / (x / (124074.40615218398d0 - y)))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+16) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif x <= 3.05e+16: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (x <= 3.05e+16) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (x <= 3.05e+16) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], 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, 3.05e+16], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+16}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 23.4%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
Taylor expanded in y around inf 94.9%
associate-*r/94.7%
mul-1-neg94.7%
Simplified94.9%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
unpow294.9%
associate-/l/94.9%
associate-*r/94.9%
associate-*r/94.9%
metadata-eval94.9%
div-sub94.9%
sub-neg94.9%
metadata-eval94.9%
metadata-eval94.9%
distribute-lft-in94.9%
+-commutative94.9%
associate-*r/94.9%
mul-1-neg94.9%
unsub-neg94.9%
+-commutative94.9%
Simplified94.9%
if -5.5 < x < 3.05e16Initial program 99.7%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
if 3.05e16 < x Initial program 10.0%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
Simplified15.2%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in x around inf 97.9%
clear-num98.0%
inv-pow98.0%
Applied egg-rr98.0%
unpow-198.0%
Simplified98.0%
Final simplification97.6%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= x 3.05e+16)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+16) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 3.05d+16) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((-1.0d0) / (x / (124074.40615218398d0 - y)))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+16) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif x <= 3.05e+16: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (x <= 3.05e+16) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (x <= 3.05e+16) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], 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, 3.05e+16], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+16}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 23.4%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
Taylor expanded in y around inf 94.9%
associate-*r/94.7%
mul-1-neg94.7%
Simplified94.9%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
unpow294.9%
associate-/l/94.9%
associate-*r/94.9%
associate-*r/94.9%
metadata-eval94.9%
div-sub94.9%
sub-neg94.9%
metadata-eval94.9%
metadata-eval94.9%
distribute-lft-in94.9%
+-commutative94.9%
associate-*r/94.9%
mul-1-neg94.9%
unsub-neg94.9%
+-commutative94.9%
Simplified94.9%
if -5.5 < x < 3.05e16Initial program 99.7%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in x around 0 98.6%
*-commutative99.4%
Simplified98.6%
if 3.05e16 < x Initial program 10.0%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
Simplified15.2%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in x around inf 97.9%
clear-num98.0%
inv-pow98.0%
Applied egg-rr98.0%
unpow-198.0%
Simplified98.0%
Final simplification97.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))))
(if (<= x -5.0)
t_0
(if (<= x 2.5e-114)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 3.05e+16)
(*
x
(+
(* y -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (- y 275.038832832))
(* y -0.28294182010212804)))))
t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 2.5e-114) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.05e+16) {
tmp = x * ((y * -0.0424927283095952) + (x * ((0.0212463641547976 * (y - 275.038832832)) - (y * -0.28294182010212804))));
} 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 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-5.0d0)) then
tmp = t_0
else if (x <= 2.5d-114) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 3.05d+16) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (y - 275.038832832d0)) - (y * (-0.28294182010212804d0)))))
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 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 2.5e-114) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.05e+16) {
tmp = x * ((y * -0.0424927283095952) + (x * ((0.0212463641547976 * (y - 275.038832832)) - (y * -0.28294182010212804))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -5.0: tmp = t_0 elif x <= 2.5e-114: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 3.05e+16: tmp = x * ((y * -0.0424927283095952) + (x * ((0.0212463641547976 * (y - 275.038832832)) - (y * -0.28294182010212804)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -5.0) tmp = t_0; elseif (x <= 2.5e-114) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 3.05e+16) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(y - 275.038832832)) - Float64(y * -0.28294182010212804))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -5.0) tmp = t_0; elseif (x <= 2.5e-114) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 3.05e+16) tmp = x * ((y * -0.0424927283095952) + (x * ((0.0212463641547976 * (y - 275.038832832)) - (y * -0.28294182010212804)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * 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, -5.0], t$95$0, If[LessEqual[x, 2.5e-114], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.05e+16], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(y - 275.038832832), $MachinePrecision]), $MachinePrecision] - N[(y * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-114}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(y - 275.038832832\right) - y \cdot -0.28294182010212804\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5 or 3.05e16 < x Initial program 16.6%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Taylor expanded in x around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
neg-mul-196.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in x around inf 96.4%
Taylor expanded in y around inf 96.4%
associate-*r/96.4%
mul-1-neg96.4%
Simplified96.4%
if -5 < x < 2.49999999999999995e-114Initial program 99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 78.3%
if 2.49999999999999995e-114 < x < 3.05e16Initial program 99.7%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 63.3%
Taylor expanded in x around 0 63.3%
Final simplification87.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))))
(if (<= x -1.05)
t_0
(if (<= x 2.5e-114)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 3.05e+16)
(*
x
(+
(* y -0.0424927283095952)
(* x (- -5.843575199059173 (* y -0.28294182010212804)))))
t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -1.05) {
tmp = t_0;
} else if (x <= 2.5e-114) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.05e+16) {
tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804))));
} 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 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-1.05d0)) then
tmp = t_0
else if (x <= 2.5d-114) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 3.05d+16) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * ((-5.843575199059173d0) - (y * (-0.28294182010212804d0)))))
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 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -1.05) {
tmp = t_0;
} else if (x <= 2.5e-114) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.05e+16) {
tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -1.05: tmp = t_0 elif x <= 2.5e-114: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 3.05e+16: tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -1.05) tmp = t_0; elseif (x <= 2.5e-114) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 3.05e+16) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * Float64(-5.843575199059173 - Float64(y * -0.28294182010212804))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -1.05) tmp = t_0; elseif (x <= 2.5e-114) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 3.05e+16) tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * 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, -1.05], t$95$0, If[LessEqual[x, 2.5e-114], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.05e+16], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * N[(-5.843575199059173 - N[(y * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -1.05:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-114}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot \left(-5.843575199059173 - y \cdot -0.28294182010212804\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.05000000000000004 or 3.05e16 < x Initial program 16.6%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Taylor expanded in x around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
neg-mul-196.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in x around inf 96.4%
Taylor expanded in y around inf 96.4%
associate-*r/96.4%
mul-1-neg96.4%
Simplified96.4%
if -1.05000000000000004 < x < 2.49999999999999995e-114Initial program 99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 78.3%
if 2.49999999999999995e-114 < x < 3.05e16Initial program 99.7%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 63.3%
Taylor expanded in x around 0 63.3%
Taylor expanded in y around 0 62.9%
Final simplification87.0%
(FPCore (x y z)
:precision binary64
(if (<= x -0.19)
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= x 3.05e+16)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.19) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+16) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.19d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 3.05d+16) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((-1.0d0) / (x / (124074.40615218398d0 - y)))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.19) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 3.05e+16) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.19: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif x <= 3.05e+16: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.19) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (x <= 3.05e+16) 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(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.19) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (x <= 3.05e+16) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = x * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.19], 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, 3.05e+16], 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[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.19:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+16}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -0.19Initial program 23.4%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
Taylor expanded in y around inf 94.9%
associate-*r/94.7%
mul-1-neg94.7%
Simplified94.9%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
unpow294.9%
associate-/l/94.9%
associate-*r/94.9%
associate-*r/94.9%
metadata-eval94.9%
div-sub94.9%
sub-neg94.9%
metadata-eval94.9%
metadata-eval94.9%
distribute-lft-in94.9%
+-commutative94.9%
associate-*r/94.9%
mul-1-neg94.9%
unsub-neg94.9%
+-commutative94.9%
Simplified94.9%
if -0.19 < x < 3.05e16Initial 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.3%
if 3.05e16 < x Initial program 10.0%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
Simplified15.2%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in x around inf 97.9%
clear-num98.0%
inv-pow98.0%
Applied egg-rr98.0%
unpow-198.0%
Simplified98.0%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (<= x -2900000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.4e-114)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 8.5e+22)
(*
x
(+
(* y -0.0424927283095952)
(* x (- -5.843575199059173 (* y -0.28294182010212804)))))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.4e-114) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 8.5e+22) {
tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804))));
} 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 <= (-2900000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.4d-114) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 8.5d+22) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * ((-5.843575199059173d0) - (y * (-0.28294182010212804d0)))))
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 <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.4e-114) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 8.5e+22) {
tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804))));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2900000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.4e-114: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 8.5e+22: tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804)))) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2900000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.4e-114) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 8.5e+22) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * Float64(-5.843575199059173 - Float64(y * -0.28294182010212804))))); 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 <= -2900000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.4e-114) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 8.5e+22) tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804)))); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2900000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-114], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+22], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * N[(-5.843575199059173 - N[(y * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-114}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+22}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot \left(-5.843575199059173 - y \cdot -0.28294182010212804\right)\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -2.9e12Initial program 21.1%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around inf 90.7%
associate-*r/90.7%
metadata-eval90.7%
Simplified90.7%
if -2.9e12 < x < 2.4000000000000001e-114Initial program 99.7%
Taylor expanded in x around 0 97.8%
*-commutative97.8%
Simplified97.8%
Taylor expanded in z around inf 76.8%
if 2.4000000000000001e-114 < x < 8.49999999999999979e22Initial program 91.6%
associate-/l*95.7%
sub-neg95.7%
metadata-eval95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
Simplified95.7%
Taylor expanded in z around 0 58.3%
Taylor expanded in x around 0 58.4%
Taylor expanded in y around 0 58.0%
if 8.49999999999999979e22 < x Initial program 10.1%
associate-/l*14.2%
sub-neg14.2%
metadata-eval14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
Simplified14.2%
Taylor expanded in x around inf 93.7%
Final simplification83.4%
(FPCore (x y z)
:precision binary64
(if (<= x -2900000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.8e-114)
(* (+ x -2.0) (* z 0.0212463641547976))
(if (<= x 8.5e+22)
(*
x
(+
(* y -0.0424927283095952)
(* x (- -5.843575199059173 (* y -0.28294182010212804)))))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.8e-114) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 8.5e+22) {
tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804))));
} 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 <= (-2900000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.8d-114) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else if (x <= 8.5d+22) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * ((-5.843575199059173d0) - (y * (-0.28294182010212804d0)))))
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 <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.8e-114) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 8.5e+22) {
tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804))));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2900000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.8e-114: tmp = (x + -2.0) * (z * 0.0212463641547976) elif x <= 8.5e+22: tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804)))) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2900000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.8e-114) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); elseif (x <= 8.5e+22) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * Float64(-5.843575199059173 - Float64(y * -0.28294182010212804))))); 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 <= -2900000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.8e-114) tmp = (x + -2.0) * (z * 0.0212463641547976); elseif (x <= 8.5e+22) tmp = x * ((y * -0.0424927283095952) + (x * (-5.843575199059173 - (y * -0.28294182010212804)))); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2900000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.8e-114], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+22], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * N[(-5.843575199059173 - N[(y * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-114}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+22}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot \left(-5.843575199059173 - y \cdot -0.28294182010212804\right)\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -2.9e12Initial program 21.1%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around inf 90.7%
associate-*r/90.7%
metadata-eval90.7%
Simplified90.7%
if -2.9e12 < x < 1.80000000000000009e-114Initial 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 75.6%
*-commutative75.6%
Simplified75.6%
if 1.80000000000000009e-114 < x < 8.49999999999999979e22Initial program 91.6%
associate-/l*95.7%
sub-neg95.7%
metadata-eval95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
fma-define95.7%
Simplified95.7%
Taylor expanded in z around 0 58.3%
Taylor expanded in x around 0 58.4%
Taylor expanded in y around 0 58.0%
if 8.49999999999999979e22 < x Initial program 10.1%
associate-/l*14.2%
sub-neg14.2%
metadata-eval14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
Simplified14.2%
Taylor expanded in x around inf 93.7%
Final simplification82.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.17) (not (<= x 3.05e+16)))
(*
(+ 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 <= -0.17) || !(x <= 3.05e+16)) {
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 <= (-0.17d0)) .or. (.not. (x <= 3.05d+16))) 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 <= -0.17) || !(x <= 3.05e+16)) {
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 <= -0.17) or not (x <= 3.05e+16): 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 <= -0.17) || !(x <= 3.05e+16)) 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 <= -0.17) || ~((x <= 3.05e+16))) 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, -0.17], N[Not[LessEqual[x, 3.05e+16]], $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 -0.17 \lor \neg \left(x \leq 3.05 \cdot 10^{+16}\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 < -0.170000000000000012 or 3.05e16 < x Initial program 16.6%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Taylor expanded in x around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
neg-mul-196.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in y around inf 96.5%
associate-*r/96.4%
mul-1-neg96.4%
Simplified96.5%
Taylor expanded in x around inf 96.5%
associate--l+96.5%
associate-*r/96.5%
unpow296.5%
associate-/l/96.5%
associate-*r/96.5%
associate-*r/96.5%
metadata-eval96.5%
div-sub96.5%
sub-neg96.5%
metadata-eval96.5%
metadata-eval96.5%
distribute-lft-in96.5%
+-commutative96.5%
associate-*r/96.5%
mul-1-neg96.5%
unsub-neg96.5%
+-commutative96.5%
Simplified96.5%
if -0.170000000000000012 < x < 3.05e16Initial 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.3%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.19) (not (<= x 0.2)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(*
(+ 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 <= -0.19) || !(x <= 0.2)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} 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 <= (-0.19d0)) .or. (.not. (x <= 0.2d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
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 <= -0.19) || !(x <= 0.2)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} 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 <= -0.19) or not (x <= 0.2): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) 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 <= -0.19) || !(x <= 0.2)) 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 * 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 <= -0.19) || ~((x <= 0.2))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); 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, -0.19], N[Not[LessEqual[x, 0.2]], $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 * 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 -0.19 \lor \neg \left(x \leq 0.2\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(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -0.19 or 0.20000000000000001 < x Initial program 17.1%
associate-/l*21.7%
sub-neg21.7%
metadata-eval21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
Simplified21.7%
Taylor expanded in x around -inf 95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
neg-mul-195.8%
unsub-neg95.8%
Simplified95.8%
Taylor expanded in y around inf 95.8%
associate-*r/95.7%
mul-1-neg95.7%
Simplified95.8%
Taylor expanded in x around inf 95.8%
associate--l+95.8%
associate-*r/95.8%
unpow295.8%
associate-/l/95.8%
associate-*r/95.8%
associate-*r/95.8%
metadata-eval95.8%
div-sub95.8%
sub-neg95.8%
metadata-eval95.8%
metadata-eval95.8%
distribute-lft-in95.8%
+-commutative95.8%
associate-*r/95.8%
mul-1-neg95.8%
unsub-neg95.8%
+-commutative95.8%
Simplified95.8%
if -0.19 < x < 0.20000000000000001Initial 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 94.0%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.17) (not (<= x 0.9)))
(*
x
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(*
(+ 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 <= -0.17) || !(x <= 0.9)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} 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 <= (-0.17d0)) .or. (.not. (x <= 0.9d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
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 <= -0.17) || !(x <= 0.9)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} 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 <= -0.17) or not (x <= 0.9): tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) 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 <= -0.17) || !(x <= 0.9)) tmp = Float64(x * 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 * 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 <= -0.17) || ~((x <= 0.9))) tmp = x * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); 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, -0.17], N[Not[LessEqual[x, 0.9]], $MachinePrecision]], N[(x * 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 * 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 -0.17 \lor \neg \left(x \leq 0.9\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\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 < -0.170000000000000012 or 0.900000000000000022 < x Initial program 17.1%
associate-/l*21.7%
sub-neg21.7%
metadata-eval21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
fma-define21.7%
Simplified21.7%
Taylor expanded in x around -inf 95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
neg-mul-195.8%
unsub-neg95.8%
Simplified95.8%
Taylor expanded in x around inf 95.7%
Taylor expanded in y around inf 95.7%
associate-*r/95.7%
mul-1-neg95.7%
Simplified95.7%
if -0.170000000000000012 < x < 0.900000000000000022Initial 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 94.0%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (<= x -2900000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.5e-114)
(* (+ x -2.0) (* z 0.0212463641547976))
(if (<= x 3.05e+16)
(* x (+ (* y -0.0424927283095952) (* x -5.843575199059173)))
(* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.5e-114) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 3.05e+16) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} 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 <= (-2900000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.5d-114) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else if (x <= 3.05d+16) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * (-5.843575199059173d0)))
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 <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.5e-114) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 3.05e+16) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2900000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.5e-114: tmp = (x + -2.0) * (z * 0.0212463641547976) elif x <= 3.05e+16: tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2900000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.5e-114) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); elseif (x <= 3.05e+16) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * -5.843575199059173))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2900000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.5e-114) tmp = (x + -2.0) * (z * 0.0212463641547976); elseif (x <= 3.05e+16) tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2900000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-114], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.05e+16], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * -5.843575199059173), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-114}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot -5.843575199059173\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.9e12Initial program 21.1%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around inf 90.7%
associate-*r/90.7%
metadata-eval90.7%
Simplified90.7%
if -2.9e12 < x < 2.49999999999999995e-114Initial 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 75.6%
*-commutative75.6%
Simplified75.6%
if 2.49999999999999995e-114 < x < 3.05e16Initial program 99.7%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 63.3%
Taylor expanded in x around 0 63.3%
Taylor expanded in y around 0 62.7%
*-commutative62.7%
Simplified62.7%
if 3.05e16 < x Initial program 10.0%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
fma-define15.2%
Simplified15.2%
Taylor expanded in x around inf 91.2%
*-commutative91.2%
Simplified91.2%
Final simplification82.9%
(FPCore (x y z)
:precision binary64
(if (<= x -2900000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.05e+21)
(* (+ x -2.0) (* z 0.0212463641547976))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.05e+21) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-2900000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.05d+21) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.05e+21) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2900000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.05e+21: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2900000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.05e+21) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -2900000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.05e+21) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2900000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.05e+21], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{+21}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -2.9e12Initial program 21.1%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around inf 90.7%
associate-*r/90.7%
metadata-eval90.7%
Simplified90.7%
if -2.9e12 < x < 2.05e21Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 67.5%
*-commutative67.5%
Simplified67.5%
if 2.05e21 < x Initial program 10.0%
associate-/l*15.3%
sub-neg15.3%
metadata-eval15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
Simplified15.3%
Taylor expanded in x around inf 92.4%
Final simplification80.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -2900000000000.0) (not (<= x 8.5e+22))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2900000000000.0) || !(x <= 8.5e+22)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-2900000000000.0d0)) .or. (.not. (x <= 8.5d+22))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2900000000000.0) || !(x <= 8.5e+22)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2900000000000.0) or not (x <= 8.5e+22): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2900000000000.0) || !(x <= 8.5e+22)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2900000000000.0) || ~((x <= 8.5e+22))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2900000000000.0], N[Not[LessEqual[x, 8.5e+22]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000000000 \lor \neg \left(x \leq 8.5 \cdot 10^{+22}\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -2.9e12 or 8.49999999999999979e22 < x Initial program 15.5%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around inf 92.1%
if -2.9e12 < x < 8.49999999999999979e22Initial program 98.1%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 67.0%
Final simplification80.4%
(FPCore (x y z) :precision binary64 (if (<= x -2900000000000.0) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (if (<= x 8.5e+22) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 8.5e+22) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2900000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 8.5d+22) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2900000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 8.5e+22) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2900000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 8.5e+22: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2900000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 8.5e+22) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2900000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 8.5e+22) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2900000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+22], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+22}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -2.9e12Initial program 21.1%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around inf 90.7%
associate-*r/90.7%
metadata-eval90.7%
Simplified90.7%
if -2.9e12 < x < 8.49999999999999979e22Initial program 98.1%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 67.0%
if 8.49999999999999979e22 < x Initial program 10.1%
associate-/l*14.2%
sub-neg14.2%
metadata-eval14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
fma-define14.2%
Simplified14.2%
Taylor expanded in x around inf 93.7%
Final simplification80.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -2900000000000.0) (not (<= x 8.5e+22))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2900000000000.0) || !(x <= 8.5e+22)) {
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 <= (-2900000000000.0d0)) .or. (.not. (x <= 8.5d+22))) 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 <= -2900000000000.0) || !(x <= 8.5e+22)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2900000000000.0) or not (x <= 8.5e+22): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2900000000000.0) || !(x <= 8.5e+22)) 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 <= -2900000000000.0) || ~((x <= 8.5e+22))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2900000000000.0], N[Not[LessEqual[x, 8.5e+22]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000000000 \lor \neg \left(x \leq 8.5 \cdot 10^{+22}\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -2.9e12 or 8.49999999999999979e22 < x Initial program 15.5%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around inf 92.1%
*-commutative92.1%
Simplified92.1%
if -2.9e12 < x < 8.49999999999999979e22Initial program 98.1%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 67.0%
Final simplification80.4%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 53.9%
associate-/l*56.5%
sub-neg56.5%
metadata-eval56.5%
fma-define56.5%
fma-define56.5%
fma-define56.5%
fma-define56.5%
fma-define56.5%
fma-define56.5%
fma-define56.5%
Simplified56.5%
Taylor expanded in x around 0 32.7%
Final simplification32.7%
(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 2024146
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))