
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(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 -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= t_0 5e+301)
t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
-1.0
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) 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 + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+301) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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 + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+301) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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 + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif t_0 <= 5e+301: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (t_0 <= 5e+301) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / 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 + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (t_0 <= 5e+301) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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[(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[t$95$0, 5e+301], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+301}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{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 5.0%
associate-/l*61.2%
sub-neg61.2%
metadata-eval61.2%
fma-define61.2%
fma-define61.2%
fma-define61.2%
fma-define61.2%
fma-define61.2%
fma-define61.2%
fma-define61.2%
Simplified61.2%
Taylor expanded in x around -inf 96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
neg-mul-196.6%
unsub-neg96.6%
Simplified96.6%
Taylor expanded in y around inf 96.6%
associate-*r/96.6%
mul-1-neg96.6%
Simplified96.6%
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.0000000000000004e301Initial program 99.5%
if 5.0000000000000004e301 < (/.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*1.0%
sub-neg1.0%
metadata-eval1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
Simplified1.0%
Taylor expanded in x around -inf 98.8%
mul-1-neg98.8%
unsub-neg98.8%
mul-1-neg98.8%
unsub-neg98.8%
mul-1-neg98.8%
unsub-neg98.8%
neg-mul-198.8%
unsub-neg98.8%
Simplified98.8%
clear-num98.8%
inv-pow98.8%
Applied egg-rr98.8%
unpow-198.8%
Simplified98.8%
Final simplification99.1%
(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+301)
(*
(+ x -2.0)
(/
(fma
(fma
(fma
(/
(+ (* (pow x 2.0) 17.342137594641823) -6193.6101064416025)
(fma x 4.16438922228 -78.6994924154))
x
137.519416416)
x
y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
x
(+
4.16438922228
(-
(+ (/ 3655.1204654076414 (pow x 2.0)) (/ y (pow x 3.0)))
(+ (/ 110.1139242984811 x) (/ 130977.50649958357 (pow x 3.0))))))))
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+301) {
tmp = (x + -2.0) * (fma(fma(fma((((pow(x, 2.0) * 17.342137594641823) + -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = x * (4.16438922228 + (((3655.1204654076414 / pow(x, 2.0)) + (y / pow(x, 3.0))) - ((110.1139242984811 / x) + (130977.50649958357 / pow(x, 3.0)))));
}
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+301) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(Float64(Float64(Float64((x ^ 2.0) * 17.342137594641823) + -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / (x ^ 2.0)) + Float64(y / (x ^ 3.0))) - Float64(Float64(110.1139242984811 / x) + Float64(130977.50649958357 / (x ^ 3.0)))))); 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+301], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[Power[x, 2.0], $MachinePrecision] * 17.342137594641823), $MachinePrecision] + -6193.6101064416025), $MachinePrecision] / N[(x * 4.16438922228 + -78.6994924154), $MachinePrecision]), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(110.1139242984811 / x), $MachinePrecision] + N[(130977.50649958357 / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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^{+301}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\frac{{x}^{2} \cdot 17.342137594641823 + -6193.6101064416025}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \left(\left(\frac{3655.1204654076414}{{x}^{2}} + \frac{y}{{x}^{3}}\right) - \left(\frac{110.1139242984811}{x} + \frac{130977.50649958357}{{x}^{3}}\right)\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.0000000000000004e301Initial program 96.3%
associate-/l*98.1%
sub-neg98.1%
metadata-eval98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
Simplified98.1%
fma-define98.2%
flip-+98.1%
div-inv98.1%
sub-neg98.1%
pow298.1%
metadata-eval98.1%
metadata-eval98.1%
fma-neg98.1%
metadata-eval98.1%
Applied egg-rr98.1%
associate-*r/98.1%
*-rgt-identity98.1%
unpow298.1%
swap-sqr98.1%
unpow298.1%
metadata-eval98.2%
Simplified98.2%
if 5.0000000000000004e301 < (/.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*1.0%
sub-neg1.0%
metadata-eval1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
Simplified1.0%
Taylor expanded in x around inf 98.8%
associate--l+98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
Simplified98.8%
Final simplification98.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 5e+301)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
x
(+
4.16438922228
(-
(+ (/ 3655.1204654076414 (pow x 2.0)) (/ y (pow x 3.0)))
(+ (/ 110.1139242984811 x) (/ 130977.50649958357 (pow x 3.0)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = x * (4.16438922228 + (((3655.1204654076414 / pow(x, 2.0)) + (y / pow(x, 3.0))) - ((110.1139242984811 / x) + (130977.50649958357 / pow(x, 3.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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 5d+301) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / (x ** 2.0d0)) + (y / (x ** 3.0d0))) - ((110.1139242984811d0 / x) + (130977.50649958357d0 / (x ** 3.0d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = x * (4.16438922228 + (((3655.1204654076414 / Math.pow(x, 2.0)) + (y / Math.pow(x, 3.0))) - ((110.1139242984811 / x) + (130977.50649958357 / Math.pow(x, 3.0)))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = x * (4.16438922228 + (((3655.1204654076414 / math.pow(x, 2.0)) + (y / math.pow(x, 3.0))) - ((110.1139242984811 / x) + (130977.50649958357 / math.pow(x, 3.0))))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 5e+301) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / (x ^ 2.0)) + Float64(y / (x ^ 3.0))) - Float64(Float64(110.1139242984811 / x) + Float64(130977.50649958357 / (x ^ 3.0)))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = x * (4.16438922228 + (((3655.1204654076414 / (x ^ 2.0)) + (y / (x ^ 3.0))) - ((110.1139242984811 / x) + (130977.50649958357 / (x ^ 3.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 5e+301], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(110.1139242984811 / x), $MachinePrecision] + N[(130977.50649958357 / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+301}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \left(\left(\frac{3655.1204654076414}{{x}^{2}} + \frac{y}{{x}^{3}}\right) - \left(\frac{110.1139242984811}{x} + \frac{130977.50649958357}{{x}^{3}}\right)\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.0000000000000004e301Initial program 96.3%
associate-/l*98.1%
sub-neg98.1%
metadata-eval98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
Simplified98.1%
Taylor expanded in z around 0 98.1%
if 5.0000000000000004e301 < (/.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*1.0%
sub-neg1.0%
metadata-eval1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
Simplified1.0%
Taylor expanded in x around inf 98.8%
associate--l+98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
Simplified98.8%
Final simplification98.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 5e+301)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
-1.0
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 5d+301) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 5e+301) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+301) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 5e+301], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+301}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{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.0000000000000004e301Initial program 96.3%
associate-/l*98.1%
sub-neg98.1%
metadata-eval98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
Simplified98.1%
Taylor expanded in z around 0 98.1%
if 5.0000000000000004e301 < (/.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*1.0%
sub-neg1.0%
metadata-eval1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
fma-define1.0%
Simplified1.0%
Taylor expanded in x around -inf 98.8%
mul-1-neg98.8%
unsub-neg98.8%
mul-1-neg98.8%
unsub-neg98.8%
mul-1-neg98.8%
unsub-neg98.8%
neg-mul-198.8%
unsub-neg98.8%
Simplified98.8%
clear-num98.8%
inv-pow98.8%
Applied egg-rr98.8%
unpow-198.8%
Simplified98.8%
Final simplification98.4%
(FPCore (x y z)
:precision binary64
(if (<= x -52000.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (* (- 124074.40615218398 y) (/ -1.0 x))) x)
101.7851458539211)
x)))
(if (<= x 3e+14)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
(+ x -2.0)
(+
4.16438922228
(/
-1.0
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -52000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 3e+14) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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 <= (-52000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((124074.40615218398d0 - y) * ((-1.0d0) / x))) / x) - 101.7851458539211d0) / x))
else if (x <= 3d+14) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -52000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 3e+14) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -52000.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)) elif x <= 3e+14: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -52000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(124074.40615218398 - y) * Float64(-1.0 / x))) / x) - 101.7851458539211) / x))); elseif (x <= 3e+14) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -52000.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)); elseif (x <= 3e+14) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -52000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(124074.40615218398 - y), $MachinePrecision] * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e+14], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -52000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \left(124074.40615218398 - y\right) \cdot \frac{-1}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+14}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}}\right)\\
\end{array}
\end{array}
if x < -52000Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
Simplified22.8%
Taylor expanded in x around -inf 95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
neg-mul-195.6%
unsub-neg95.6%
Simplified95.6%
div-inv95.6%
Applied egg-rr95.6%
if -52000 < x < 3e14Initial program 99.7%
Taylor expanded in x around 0 97.9%
*-commutative97.9%
Simplified97.9%
if 3e14 < x Initial program 15.7%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.6%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
neg-mul-197.8%
unsub-neg97.8%
Simplified97.8%
clear-num97.8%
inv-pow97.8%
Applied egg-rr97.8%
unpow-197.8%
Simplified97.8%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(if (<= x -1150.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (* (- 124074.40615218398 y) (/ -1.0 x))) x)
101.7851458539211)
x)))
(if (<= x 58.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
-1.0
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 58.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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 <= (-1150.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((124074.40615218398d0 - y) * ((-1.0d0) / x))) / x) - 101.7851458539211d0) / x))
else if (x <= 58.0d0) 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 + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 58.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1150.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)) elif x <= 58.0: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1150.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(124074.40615218398 - y) * Float64(-1.0 / x))) / x) - 101.7851458539211) / x))); elseif (x <= 58.0) 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(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1150.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)); elseif (x <= 58.0) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1150.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(124074.40615218398 - y), $MachinePrecision] * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 58.0], 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[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1150:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \left(124074.40615218398 - y\right) \cdot \frac{-1}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 58:\\
\;\;\;\;\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}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}}\right)\\
\end{array}
\end{array}
if x < -1150Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
Simplified22.8%
Taylor expanded in x around -inf 95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
neg-mul-195.6%
unsub-neg95.6%
Simplified95.6%
div-inv95.6%
Applied egg-rr95.6%
if -1150 < x < 58Initial program 99.7%
Taylor expanded in x around 0 97.5%
*-commutative97.5%
Simplified97.5%
Taylor expanded in x around 0 97.6%
*-commutative97.6%
Simplified97.6%
if 58 < x Initial program 20.6%
associate-/l*23.3%
sub-neg23.3%
metadata-eval23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
Simplified23.3%
Taylor expanded in x around -inf 96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
neg-mul-196.4%
unsub-neg96.4%
Simplified96.4%
clear-num96.4%
inv-pow96.4%
Applied egg-rr96.4%
unpow-196.4%
Simplified96.4%
Final simplification96.7%
(FPCore (x y z)
:precision binary64
(if (<= x -1150.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (* (- 124074.40615218398 y) (/ -1.0 x))) x)
101.7851458539211)
x)))
(if (<= x 135.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
-1.0
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 135.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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 <= (-1150.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((124074.40615218398d0 - y) * ((-1.0d0) / x))) / x) - 101.7851458539211d0) / x))
else if (x <= 135.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 135.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1150.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)) elif x <= 135.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1150.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(124074.40615218398 - y) * Float64(-1.0 / x))) / x) - 101.7851458539211) / x))); elseif (x <= 135.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1150.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)); elseif (x <= 135.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1150.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(124074.40615218398 - y), $MachinePrecision] * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 135.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1150:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \left(124074.40615218398 - y\right) \cdot \frac{-1}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 135:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}}\right)\\
\end{array}
\end{array}
if x < -1150Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
Simplified22.8%
Taylor expanded in x around -inf 95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
neg-mul-195.6%
unsub-neg95.6%
Simplified95.6%
div-inv95.6%
Applied egg-rr95.6%
if -1150 < x < 135Initial program 99.7%
Taylor expanded in x around 0 97.5%
*-commutative97.5%
Simplified97.5%
Taylor expanded in x around 0 97.2%
*-commutative98.7%
Simplified97.2%
if 135 < x Initial program 20.6%
associate-/l*23.3%
sub-neg23.3%
metadata-eval23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
Simplified23.3%
Taylor expanded in x around -inf 96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
neg-mul-196.4%
unsub-neg96.4%
Simplified96.4%
clear-num96.4%
inv-pow96.4%
Applied egg-rr96.4%
unpow-196.4%
Simplified96.4%
Final simplification96.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1150.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (* (- 124074.40615218398 y) (/ -1.0 x))) x)
101.7851458539211)
x)))
(if (<= x 0.39)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
-1.0
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 0.39) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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 <= (-1150.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((124074.40615218398d0 - y) * ((-1.0d0) / x))) / x) - 101.7851458539211d0) / x))
else if (x <= 0.39d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x));
} else if (x <= 0.39) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1150.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)) elif x <= 0.39: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1150.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(124074.40615218398 - y) * Float64(-1.0 / x))) / x) - 101.7851458539211) / x))); elseif (x <= 0.39) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1150.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((124074.40615218398 - y) * (-1.0 / x))) / x) - 101.7851458539211) / x)); elseif (x <= 0.39) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1150.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(124074.40615218398 - y), $MachinePrecision] * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.39], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1150:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \left(124074.40615218398 - y\right) \cdot \frac{-1}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 0.39:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}}\right)\\
\end{array}
\end{array}
if x < -1150Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
Simplified22.8%
Taylor expanded in x around -inf 95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
neg-mul-195.6%
unsub-neg95.6%
Simplified95.6%
div-inv95.6%
Applied egg-rr95.6%
if -1150 < x < 0.39000000000000001Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 94.4%
if 0.39000000000000001 < x Initial program 21.8%
associate-/l*24.4%
sub-neg24.4%
metadata-eval24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.5%
fma-define24.5%
fma-define24.4%
fma-define24.4%
Simplified24.4%
Taylor expanded in x around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
neg-mul-195.0%
unsub-neg95.0%
Simplified95.0%
clear-num95.1%
inv-pow95.1%
Applied egg-rr95.1%
unpow-195.1%
Simplified95.1%
Final simplification94.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1150.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= x 0.39)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
-1.0
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.39) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / 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 <= (-1150.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 0.39d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-1.0d0) / (x / (101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.39) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1150.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif x <= 0.39: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1150.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 0.39) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-1.0 / Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1150.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 0.39) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) * (4.16438922228 + (-1.0 / (x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1150.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.39], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-1.0 / N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1150:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 0.39:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-1}{\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}}\right)\\
\end{array}
\end{array}
if x < -1150Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
Simplified22.8%
Taylor expanded in x around -inf 95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
mul-1-neg95.6%
unsub-neg95.6%
neg-mul-195.6%
unsub-neg95.6%
Simplified95.6%
if -1150 < x < 0.39000000000000001Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 94.4%
if 0.39000000000000001 < x Initial program 21.8%
associate-/l*24.4%
sub-neg24.4%
metadata-eval24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.5%
fma-define24.5%
fma-define24.4%
fma-define24.4%
Simplified24.4%
Taylor expanded in x around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
neg-mul-195.0%
unsub-neg95.0%
Simplified95.0%
clear-num95.1%
inv-pow95.1%
Applied egg-rr95.1%
unpow-195.1%
Simplified95.1%
Final simplification94.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1150.0) (not (<= x 0.39)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) 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 <= -1150.0) || !(x <= 0.39)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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 <= (-1150.0d0)) .or. (.not. (x <= 0.39d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / 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 <= -1150.0) || !(x <= 0.39)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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 <= -1150.0) or not (x <= 0.39): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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 <= -1150.0) || !(x <= 0.39)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(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 <= -1150.0) || ~((x <= 0.39))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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, -1150.0], N[Not[LessEqual[x, 0.39]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(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 -1150 \lor \neg \left(x \leq 0.39\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;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 < -1150 or 0.39000000000000001 < x Initial program 21.0%
associate-/l*23.6%
sub-neg23.6%
metadata-eval23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
Simplified23.6%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
if -1150 < x < 0.39000000000000001Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 94.4%
Final simplification94.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1150.0) (not (<= x 0.155)))
(*
(+ 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 <= -1150.0) || !(x <= 0.155)) {
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 <= (-1150.0d0)) .or. (.not. (x <= 0.155d0))) 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 <= -1150.0) || !(x <= 0.155)) {
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 <= -1150.0) or not (x <= 0.155): 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 <= -1150.0) || !(x <= 0.155)) 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 <= -1150.0) || ~((x <= 0.155))) 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, -1150.0], N[Not[LessEqual[x, 0.155]], $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 -1150 \lor \neg \left(x \leq 0.155\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 < -1150 or 0.154999999999999999 < x Initial program 21.0%
associate-/l*23.6%
sub-neg23.6%
metadata-eval23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
Simplified23.6%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in y around inf 95.2%
associate-*r/95.2%
mul-1-neg95.2%
Simplified95.2%
if -1150 < x < 0.154999999999999999Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 94.4%
Final simplification94.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1150.0) (not (<= x 0.26)))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) 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 <= -1150.0) || !(x <= 0.26)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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 <= (-1150.0d0)) .or. (.not. (x <= 0.26d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / 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 <= -1150.0) || !(x <= 0.26)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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 <= -1150.0) or not (x <= 0.26): tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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 <= -1150.0) || !(x <= 0.26)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / 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 <= -1150.0) || ~((x <= 0.26))) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / 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, -1150.0], N[Not[LessEqual[x, 0.26]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(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 -1150 \lor \neg \left(x \leq 0.26\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{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 < -1150 or 0.26000000000000001 < x Initial program 21.0%
associate-/l*23.6%
sub-neg23.6%
metadata-eval23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
Simplified23.6%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in x around inf 94.6%
if -1150 < x < 0.26000000000000001Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 94.4%
Final simplification94.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1150.0) (not (<= x 0.39)))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1150.0) || !(x <= 0.39)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1150.0d0)) .or. (.not. (x <= 0.39d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1150.0) || !(x <= 0.39)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1150.0) or not (x <= 0.39): tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1150.0) || !(x <= 0.39)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1150.0) || ~((x <= 0.39))) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1150.0], N[Not[LessEqual[x, 0.39]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1150 \lor \neg \left(x \leq 0.39\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -1150 or 0.39000000000000001 < x Initial program 21.0%
associate-/l*23.6%
sub-neg23.6%
metadata-eval23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
Simplified23.6%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in x around inf 94.6%
if -1150 < x < 0.39000000000000001Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 94.4%
Final simplification94.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1150.0) (not (<= x 26.0)))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1150.0) || !(x <= 26.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1150.0d0)) .or. (.not. (x <= 26.0d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1150.0) || !(x <= 26.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1150.0) or not (x <= 26.0): tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1150.0) || !(x <= 26.0)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1150.0) || ~((x <= 26.0))) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1150.0], N[Not[LessEqual[x, 26.0]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1150 \lor \neg \left(x \leq 26\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -1150 or 26 < x Initial program 20.5%
associate-/l*23.1%
sub-neg23.1%
metadata-eval23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
Simplified23.1%
Taylor expanded in x around -inf 96.0%
mul-1-neg96.0%
unsub-neg96.0%
mul-1-neg96.0%
unsub-neg96.0%
mul-1-neg96.0%
unsub-neg96.0%
neg-mul-196.0%
unsub-neg96.0%
Simplified96.0%
Taylor expanded in x around inf 95.2%
if -1150 < x < 26Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around inf 92.7%
Taylor expanded in x around 0 84.3%
Taylor expanded in z around 0 92.9%
associate-*r*93.0%
*-commutative93.0%
associate-*r*92.9%
Simplified92.9%
Final simplification94.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
4.16438922228
(/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))))
(if (<= x -1250.0)
t_0
(if (<= x 1.85e-31)
(* z -0.0424927283095952)
(if (<= x 3.8e-6) (* y (* x -0.0424927283095952)) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
double tmp;
if (x <= -1250.0) {
tmp = t_0;
} else if (x <= 1.85e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
if (x <= (-1250.0d0)) then
tmp = t_0
else if (x <= 1.85d-31) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.8d-6) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
double tmp;
if (x <= -1250.0) {
tmp = t_0;
} else if (x <= 1.85e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) tmp = 0 if x <= -1250.0: tmp = t_0 elif x <= 1.85e-31: tmp = z * -0.0424927283095952 elif x <= 3.8e-6: tmp = y * (x * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))) tmp = 0.0 if (x <= -1250.0) tmp = t_0; elseif (x <= 1.85e-31) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.8e-6) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); tmp = 0.0; if (x <= -1250.0) tmp = t_0; elseif (x <= 1.85e-31) tmp = z * -0.0424927283095952; elseif (x <= 3.8e-6) tmp = y * (x * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1250.0], t$95$0, If[LessEqual[x, 1.85e-31], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.8e-6], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -1250:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-6}:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1250 or 3.8e-6 < x Initial program 21.6%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in z around 0 21.3%
Taylor expanded in x around inf 87.2%
associate--l+87.2%
unpow287.2%
associate-/r*87.2%
metadata-eval87.2%
associate-*r/87.2%
associate-*r/87.2%
metadata-eval87.2%
div-sub87.2%
sub-neg87.2%
associate-*r/87.2%
metadata-eval87.2%
metadata-eval87.2%
Simplified87.2%
if -1250 < x < 1.8499999999999999e-31Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.1%
if 1.8499999999999999e-31 < x < 3.8e-6Initial program 99.2%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
Simplified99.2%
Taylor expanded in z around 0 99.2%
Taylor expanded in x around 0 82.2%
*-commutative82.2%
*-commutative82.2%
associate-*l*82.7%
Simplified82.7%
Final simplification81.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))))
(if (<= x -1150.0)
t_0
(if (<= x 1.25e-32)
(* z -0.0424927283095952)
(if (<= x 3.8e-6) (* y (* x -0.0424927283095952)) t_0)))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
double tmp;
if (x <= -1150.0) {
tmp = t_0;
} else if (x <= 1.25e-32) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
if (x <= (-1150.0d0)) then
tmp = t_0
else if (x <= 1.25d-32) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.8d-6) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
double tmp;
if (x <= -1150.0) {
tmp = t_0;
} else if (x <= 1.25e-32) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) tmp = 0 if x <= -1150.0: tmp = t_0 elif x <= 1.25e-32: tmp = z * -0.0424927283095952 elif x <= 3.8e-6: tmp = y * (x * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))) tmp = 0.0 if (x <= -1150.0) tmp = t_0; elseif (x <= 1.25e-32) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.8e-6) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); tmp = 0.0; if (x <= -1150.0) tmp = t_0; elseif (x <= 1.25e-32) tmp = z * -0.0424927283095952; elseif (x <= 3.8e-6) tmp = y * (x * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1150.0], t$95$0, If[LessEqual[x, 1.25e-32], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.8e-6], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -1150:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-32}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-6}:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1150 or 3.8e-6 < x Initial program 21.6%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in x around inf 86.9%
associate-*r/86.9%
metadata-eval86.9%
Simplified86.9%
if -1150 < x < 1.25e-32Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.1%
if 1.25e-32 < x < 3.8e-6Initial program 99.2%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
Simplified99.2%
Taylor expanded in z around 0 99.2%
Taylor expanded in x around 0 82.2%
*-commutative82.2%
*-commutative82.2%
associate-*l*82.7%
Simplified82.7%
Final simplification81.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1350.0) (not (<= x 62.0)))
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1350.0) || !(x <= 62.0)) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1350.0d0)) .or. (.not. (x <= 62.0d0))) then
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1350.0) || !(x <= 62.0)) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1350.0) or not (x <= 62.0): tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1350.0) || !(x <= 62.0)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1350.0) || ~((x <= 62.0))) tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1350.0], N[Not[LessEqual[x, 62.0]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1350 \lor \neg \left(x \leq 62\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -1350 or 62 < x Initial program 20.5%
associate-/l*23.1%
sub-neg23.1%
metadata-eval23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
Simplified23.1%
Taylor expanded in z around 0 21.6%
Taylor expanded in x around inf 88.3%
associate--l+88.3%
unpow288.3%
associate-/r*88.3%
metadata-eval88.3%
associate-*r/88.3%
associate-*r/88.3%
metadata-eval88.3%
div-sub88.3%
sub-neg88.3%
associate-*r/88.3%
metadata-eval88.3%
metadata-eval88.3%
Simplified88.3%
if -1350 < x < 62Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around inf 92.7%
Taylor expanded in x around 0 84.3%
Taylor expanded in z around 0 92.9%
associate-*r*93.0%
*-commutative93.0%
associate-*r*92.9%
Simplified92.9%
Final simplification90.4%
(FPCore (x y z)
:precision binary64
(if (<= x -1200.0)
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(if (<= x 30.5)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1200.0) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 30.5) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1200.0d0)) then
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else if (x <= 30.5d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1200.0) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 30.5) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1200.0: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) elif x <= 30.5: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1200.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); elseif (x <= 30.5) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1200.0) tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); elseif (x <= 30.5) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1200.0], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 30.5], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1200:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 30.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1200Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
Simplified22.8%
Taylor expanded in z around 0 21.0%
Taylor expanded in x around inf 91.2%
associate--l+91.2%
unpow291.2%
associate-/r*91.2%
metadata-eval91.2%
associate-*r/91.2%
associate-*r/91.2%
metadata-eval91.2%
div-sub91.2%
sub-neg91.2%
associate-*r/91.2%
metadata-eval91.2%
metadata-eval91.2%
Simplified91.2%
if -1200 < x < 30.5Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around inf 92.7%
Taylor expanded in x around 0 84.3%
Taylor expanded in z around 0 92.9%
associate-*r*93.0%
*-commutative93.0%
associate-*r*92.9%
Simplified92.9%
if 30.5 < x Initial program 20.6%
associate-/l*23.3%
sub-neg23.3%
metadata-eval23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
fma-define23.3%
Simplified23.3%
Taylor expanded in x around -inf 85.1%
mul-1-neg85.1%
unsub-neg85.1%
sub-neg85.1%
associate-*r/85.1%
metadata-eval85.1%
distribute-neg-frac85.1%
metadata-eval85.1%
Simplified85.1%
Final simplification90.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -1150.0)
t_0
(if (<= x 1.5e-33)
(* z -0.0424927283095952)
(if (<= x 3.2e-9) (* y (* x -0.0424927283095952)) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -1150.0) {
tmp = t_0;
} else if (x <= 1.5e-33) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.2e-9) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-1150.0d0)) then
tmp = t_0
else if (x <= 1.5d-33) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.2d-9) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -1150.0) {
tmp = t_0;
} else if (x <= 1.5e-33) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.2e-9) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -1150.0: tmp = t_0 elif x <= 1.5e-33: tmp = z * -0.0424927283095952 elif x <= 3.2e-9: tmp = y * (x * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -1150.0) tmp = t_0; elseif (x <= 1.5e-33) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.2e-9) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -1150.0) tmp = t_0; elseif (x <= 1.5e-33) tmp = z * -0.0424927283095952; elseif (x <= 3.2e-9) tmp = y * (x * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1150.0], t$95$0, If[LessEqual[x, 1.5e-33], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.2e-9], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -1150:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-33}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-9}:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1150 or 3.20000000000000012e-9 < x Initial program 22.1%
associate-/l*24.6%
sub-neg24.6%
metadata-eval24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
Simplified24.6%
Taylor expanded in x around inf 86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
if -1150 < x < 1.5000000000000001e-33Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.1%
if 1.5000000000000001e-33 < x < 3.20000000000000012e-9Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 99.4%
Taylor expanded in x around 0 98.1%
*-commutative98.1%
*-commutative98.1%
associate-*l*98.8%
Simplified98.8%
Final simplification81.5%
(FPCore (x y z)
:precision binary64
(if (<= x -3400.0)
(* 4.16438922228 (+ x -2.0))
(if (<= x 3.8e-33)
(* z -0.0424927283095952)
(if (<= x 3.8e-6) (* y (* x -0.0424927283095952)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3400.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 3.8e-33) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3400.0d0)) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else if (x <= 3.8d-33) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.8d-6) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3400.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 3.8e-33) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3400.0: tmp = 4.16438922228 * (x + -2.0) elif x <= 3.8e-33: tmp = z * -0.0424927283095952 elif x <= 3.8e-6: tmp = y * (x * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3400.0) tmp = Float64(4.16438922228 * Float64(x + -2.0)); elseif (x <= 3.8e-33) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.8e-6) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3400.0) tmp = 4.16438922228 * (x + -2.0); elseif (x <= 3.8e-33) tmp = z * -0.0424927283095952; elseif (x <= 3.8e-6) tmp = y * (x * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3400.0], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e-33], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.8e-6], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3400:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-33}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-6}:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3400Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
Simplified22.8%
Taylor expanded in x around inf 90.4%
if -3400 < x < 3.79999999999999994e-33Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.1%
if 3.79999999999999994e-33 < x < 3.8e-6Initial program 99.2%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
Simplified99.2%
Taylor expanded in z around 0 99.2%
Taylor expanded in x around 0 82.2%
*-commutative82.2%
*-commutative82.2%
associate-*l*82.7%
Simplified82.7%
if 3.8e-6 < x Initial program 22.9%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 82.5%
*-commutative82.5%
Simplified82.5%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(if (<= x -1150.0)
(* x 4.16438922228)
(if (<= x 2.4e-31)
(* z -0.0424927283095952)
(if (<= x 3.8e-6) (* y (* x -0.0424927283095952)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.4e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1150.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.4d-31) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.8d-6) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1150.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.4e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.8e-6) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1150.0: tmp = x * 4.16438922228 elif x <= 2.4e-31: tmp = z * -0.0424927283095952 elif x <= 3.8e-6: tmp = y * (x * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1150.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.4e-31) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.8e-6) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1150.0) tmp = x * 4.16438922228; elseif (x <= 2.4e-31) tmp = z * -0.0424927283095952; elseif (x <= 3.8e-6) tmp = y * (x * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1150.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.4e-31], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.8e-6], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1150:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-6}:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1150 or 3.8e-6 < x Initial program 21.6%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in x around inf 86.5%
*-commutative86.5%
Simplified86.5%
if -1150 < x < 2.4e-31Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.1%
if 2.4e-31 < x < 3.8e-6Initial program 99.2%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
Simplified99.2%
Taylor expanded in z around 0 99.2%
Taylor expanded in x around 0 82.2%
*-commutative82.2%
*-commutative82.2%
associate-*l*82.7%
Simplified82.7%
Final simplification81.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -3100.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3100.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-3100.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3100.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3100.0) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3100.0) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3100.0) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3100.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3100 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -3100 or 2 < x Initial program 20.5%
associate-/l*23.1%
sub-neg23.1%
metadata-eval23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
Simplified23.1%
Taylor expanded in x around inf 87.6%
*-commutative87.6%
Simplified87.6%
if -3100 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 69.5%
Final simplification79.6%
(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 55.7%
associate-/l*57.2%
sub-neg57.2%
metadata-eval57.2%
fma-define57.2%
fma-define57.2%
fma-define57.2%
fma-define57.2%
fma-define57.2%
fma-define57.2%
fma-define57.2%
Simplified57.2%
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 2024136
(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)))