
(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 (or (<= t_0 (- INFINITY)) (not (<= t_0 1e+303)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
t_0)))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((t_0 <= -((double) INFINITY)) || !(t_0 <= 1e+303)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((t_0 <= -Double.POSITIVE_INFINITY) || !(t_0 <= 1e+303)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if (t_0 <= -math.inf) or not (t_0 <= 1e+303): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(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)) || !(t_0 <= 1e+303)) 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 = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if ((t_0 <= -Inf) || ~((t_0 <= 1e+303))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(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[Or[LessEqual[t$95$0, (-Infinity)], N[Not[LessEqual[t$95$0, 1e+303]], $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], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{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 \lor \neg \left(t\_0 \leq 10^{+303}\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}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0 or 1e303 < (/.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.4%
associate-/l*6.7%
sub-neg6.7%
metadata-eval6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
mul-1-neg97.8%
unsub-neg97.8%
Simplified97.8%
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))) < 1e303Initial program 99.6%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+303)
(*
(+ x -2.0)
(/
(fma
(fma
(fma
(/
(- 6193.6101064416025 (* (pow x 2.0) 17.342137594641823))
(+ 78.6994924154 (* x -4.16438922228)))
x
137.519416416)
x
y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+303) {
tmp = (x + -2.0) * (fma(fma(fma(((6193.6101064416025 - (pow(x, 2.0) * 17.342137594641823)) / (78.6994924154 + (x * -4.16438922228))), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+303) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(Float64(Float64(6193.6101064416025 - Float64((x ^ 2.0) * 17.342137594641823)) / Float64(78.6994924154 + Float64(x * -4.16438922228))), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 1e+303], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(6193.6101064416025 - N[(N[Power[x, 2.0], $MachinePrecision] * 17.342137594641823), $MachinePrecision]), $MachinePrecision] / N[(78.6994924154 + N[(x * -4.16438922228), $MachinePrecision]), $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[(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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+303}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{78.6994924154 + x \cdot -4.16438922228}, x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1e303Initial program 95.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
fma-define98.9%
flip-+98.9%
frac-2neg98.9%
sub-neg98.9%
pow298.9%
metadata-eval98.9%
metadata-eval98.9%
fma-neg98.9%
metadata-eval98.9%
Applied egg-rr98.9%
neg-sub098.9%
+-commutative98.9%
associate--r+98.9%
metadata-eval98.9%
unpow298.9%
swap-sqr98.9%
unpow298.9%
metadata-eval98.9%
fma-undefine98.9%
distribute-neg-in98.9%
distribute-rgt-neg-in98.9%
metadata-eval98.9%
metadata-eval98.9%
Simplified98.9%
if 1e303 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.1%
sub-neg2.1%
metadata-eval2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
Simplified2.1%
Taylor expanded in x around -inf 98.6%
mul-1-neg98.6%
unsub-neg98.6%
mul-1-neg98.6%
unsub-neg98.6%
mul-1-neg98.6%
unsub-neg98.6%
mul-1-neg98.6%
unsub-neg98.6%
Simplified98.6%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 1e+303)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+303) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 1d+303) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+303) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 1e+303: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 1e+303) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+303) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+303], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 10^{+303}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1e303Initial program 95.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
if 1e303 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*2.1%
sub-neg2.1%
metadata-eval2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
fma-define2.1%
Simplified2.1%
Taylor expanded in x around -inf 98.6%
mul-1-neg98.6%
unsub-neg98.6%
mul-1-neg98.6%
unsub-neg98.6%
mul-1-neg98.6%
unsub-neg98.6%
mul-1-neg98.6%
unsub-neg98.6%
Simplified98.6%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -1.1e+15)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= x 160000.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
t_0)
(*
x
(+
4.16438922228
(/
(-
(/
(+ 3655.1204654076414 (- (/ y x) (* 130977.50649958357 (/ 1.0 x))))
x)
110.1139242984811)
x)))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.1e+15) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 160000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0;
} else {
tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-1.1d+15)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else if (x <= 160000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / t_0
else
tmp = x * (4.16438922228d0 + ((((3655.1204654076414d0 + ((y / x) - (130977.50649958357d0 * (1.0d0 / x)))) / x) - 110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.1e+15) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 160000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0;
} else {
tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -1.1e+15: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif x <= 160000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0 else: tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -1.1e+15) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (x <= 160000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / t_0); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3655.1204654076414 + Float64(Float64(y / x) - Float64(130977.50649958357 * Float64(1.0 / x)))) / x) - 110.1139242984811) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -1.1e+15) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (x <= 160000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / t_0; else tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -1.1e+15], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 160000.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] / t$95$0), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3655.1204654076414 + N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -1.1 \cdot 10^{+15}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;x \leq 160000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414 + \left(\frac{y}{x} - 130977.50649958357 \cdot \frac{1}{x}\right)}{x} - 110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.1e15Initial program 10.8%
associate-/l*19.1%
sub-neg19.1%
metadata-eval19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
Simplified19.1%
Taylor expanded in z around 0 19.1%
Taylor expanded in x around inf 97.1%
if -1.1e15 < x < 1.6e5Initial program 99.6%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
if 1.6e5 < x Initial program 14.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around -inf 96.9%
Final simplification97.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -510000000000.0)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= x 660000.0)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0)
(*
x
(+
4.16438922228
(/
(-
(/
(+ 3655.1204654076414 (- (/ y x) (* 130977.50649958357 (/ 1.0 x))))
x)
110.1139242984811)
x)))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -510000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 660000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-510000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else if (x <= 660000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
else
tmp = x * (4.16438922228d0 + ((((3655.1204654076414d0 + ((y / x) - (130977.50649958357d0 * (1.0d0 / x)))) / x) - 110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -510000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 660000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -510000000000.0: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif x <= 660000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 else: tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -510000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (x <= 660000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3655.1204654076414 + Float64(Float64(y / x) - Float64(130977.50649958357 * Float64(1.0 / x)))) / x) - 110.1139242984811) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -510000000000.0) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (x <= 660000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; else tmp = x * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -510000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 660000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3655.1204654076414 + N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -510000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;x \leq 660000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414 + \left(\frac{y}{x} - 130977.50649958357 \cdot \frac{1}{x}\right)}{x} - 110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.1e11Initial program 10.8%
associate-/l*19.1%
sub-neg19.1%
metadata-eval19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
fma-define19.1%
Simplified19.1%
Taylor expanded in z around 0 19.1%
Taylor expanded in x around inf 97.1%
if -5.1e11 < x < 6.6e5Initial program 99.6%
Taylor expanded in x around 0 98.4%
*-commutative98.4%
Simplified98.4%
if 6.6e5 < x Initial program 14.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around -inf 96.9%
Final simplification97.7%
(FPCore (x y z)
:precision binary64
(if (<= x -2e-8)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 78.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
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 78.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 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2d-8)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 78.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 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 78.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 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2e-8: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 78.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 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2e-8) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 78.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(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2e-8) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 78.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 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2e-8], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 78.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[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2 \cdot 10^{-8}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 78:\\
\;\;\;\;\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{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -2e-8Initial program 16.6%
associate-/l*24.4%
sub-neg24.4%
metadata-eval24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
Simplified24.4%
Taylor expanded in z around 0 24.4%
Taylor expanded in x around inf 95.9%
if -2e-8 < x < 78Initial program 99.6%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
if 78 < x Initial program 14.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around -inf 96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
Simplified96.8%
Final simplification97.4%
(FPCore (x y z)
:precision binary64
(if (<= x -2e-8)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 90.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
x
(+
4.16438922228
(/
(-
(/
(+ 3655.1204654076414 (- (/ y x) (* 130977.50649958357 (/ 1.0 x))))
x)
110.1139242984811)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 90.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 * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2d-8)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 90.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 * (4.16438922228d0 + ((((3655.1204654076414d0 + ((y / x) - (130977.50649958357d0 * (1.0d0 / x)))) / x) - 110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 90.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 * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2e-8: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 90.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 * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2e-8) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 90.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(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3655.1204654076414 + Float64(Float64(y / x) - Float64(130977.50649958357 * Float64(1.0 / x)))) / x) - 110.1139242984811) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2e-8) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 90.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 * (4.16438922228 + ((((3655.1204654076414 + ((y / x) - (130977.50649958357 * (1.0 / x)))) / x) - 110.1139242984811) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2e-8], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 90.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[(x * N[(4.16438922228 + N[(N[(N[(N[(3655.1204654076414 + N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2 \cdot 10^{-8}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 90:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414 + \left(\frac{y}{x} - 130977.50649958357 \cdot \frac{1}{x}\right)}{x} - 110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -2e-8Initial program 16.6%
associate-/l*24.4%
sub-neg24.4%
metadata-eval24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
Simplified24.4%
Taylor expanded in z around 0 24.4%
Taylor expanded in x around inf 95.9%
if -2e-8 < x < 90Initial program 99.6%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
if 90 < x Initial program 14.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around -inf 96.9%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -65.0)
t_0
(if (<= x 3.8e-128)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(if (<= x 4.1e-95)
(* -0.0424927283095952 (* x y))
(if (<= x 4.3e-75)
(* z -0.0424927283095952)
(if (<= x 0.135)
(* x (* y (- (* x 0.3041881842569256) 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 <= -65.0) {
tmp = t_0;
} else if (x <= 3.8e-128) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else if (x <= 4.1e-95) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 4.3e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.135) {
tmp = x * (y * ((x * 0.3041881842569256) - 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 <= (-65.0d0)) then
tmp = t_0
else if (x <= 3.8d-128) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
else if (x <= 4.1d-95) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 4.3d-75) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.135d0) then
tmp = x * (y * ((x * 0.3041881842569256d0) - 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 <= -65.0) {
tmp = t_0;
} else if (x <= 3.8e-128) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else if (x <= 4.1e-95) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 4.3e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.135) {
tmp = x * (y * ((x * 0.3041881842569256) - 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 <= -65.0: tmp = t_0 elif x <= 3.8e-128: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) elif x <= 4.1e-95: tmp = -0.0424927283095952 * (x * y) elif x <= 4.3e-75: tmp = z * -0.0424927283095952 elif x <= 0.135: tmp = x * (y * ((x * 0.3041881842569256) - 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 <= -65.0) tmp = t_0; elseif (x <= 3.8e-128) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); elseif (x <= 4.1e-95) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 4.3e-75) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.135) tmp = Float64(x * Float64(y * Float64(Float64(x * 0.3041881842569256) - 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 <= -65.0) tmp = t_0; elseif (x <= 3.8e-128) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); elseif (x <= 4.1e-95) tmp = -0.0424927283095952 * (x * y); elseif (x <= 4.3e-75) tmp = z * -0.0424927283095952; elseif (x <= 0.135) tmp = x * (y * ((x * 0.3041881842569256) - 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, -65.0], t$95$0, If[LessEqual[x, 3.8e-128], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.1e-95], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e-75], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.135], N[(x * N[(y * N[(N[(x * 0.3041881842569256), $MachinePrecision] - 0.0424927283095952), $MachinePrecision]), $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 -65:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-128}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-95}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{-75}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.135:\\
\;\;\;\;x \cdot \left(y \cdot \left(x \cdot 0.3041881842569256 - 0.0424927283095952\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -65 or 0.13500000000000001 < x Initial program 14.8%
associate-/l*20.2%
sub-neg20.2%
metadata-eval20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
fma-define20.2%
Simplified20.2%
Taylor expanded in x around inf 89.1%
associate-*r/89.1%
metadata-eval89.1%
Simplified89.1%
if -65 < x < 3.8000000000000002e-128Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around inf 76.5%
Taylor expanded in x around 0 74.9%
distribute-rgt-out--74.9%
metadata-eval74.9%
*-commutative74.9%
associate-*r*74.9%
*-commutative74.9%
distribute-rgt-out74.9%
*-commutative74.9%
Simplified74.9%
if 3.8000000000000002e-128 < x < 4.0999999999999997e-95Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in y around inf 85.7%
associate-/l*85.5%
+-commutative85.5%
+-commutative85.5%
+-commutative85.5%
+-commutative85.5%
fma-undefine85.5%
fma-undefine85.5%
fma-undefine85.5%
Simplified85.5%
Taylor expanded in x around 0 85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in x around 0 85.9%
if 4.0999999999999997e-95 < x < 4.2999999999999999e-75Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.3%
*-commutative72.3%
Simplified72.3%
if 4.2999999999999999e-75 < x < 0.13500000000000001Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 74.0%
associate-/l*74.0%
+-commutative74.0%
+-commutative74.0%
+-commutative74.0%
+-commutative74.0%
fma-undefine74.0%
fma-undefine74.0%
fma-undefine74.0%
Simplified74.0%
Taylor expanded in x around 0 73.1%
fma-define73.2%
distribute-rgt-out--73.2%
metadata-eval73.2%
Simplified73.2%
Taylor expanded in y around 0 73.2%
Final simplification81.8%
(FPCore (x y z)
:precision binary64
(if (<= x -40.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 3.8e-128)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(if (<= x 9.5e-96)
(* -0.0424927283095952 (* x y))
(if (<= x 2e-75)
(* z -0.0424927283095952)
(if (<= x 0.13)
(* x (* y (- (* x 0.3041881842569256) 0.0424927283095952)))
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -40.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 3.8e-128) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else if (x <= 9.5e-96) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.13) {
tmp = x * (y * ((x * 0.3041881842569256) - 0.0424927283095952));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-40.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 3.8d-128) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
else if (x <= 9.5d-96) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 2d-75) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.13d0) then
tmp = x * (y * ((x * 0.3041881842569256d0) - 0.0424927283095952d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -40.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 3.8e-128) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else if (x <= 9.5e-96) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.13) {
tmp = x * (y * ((x * 0.3041881842569256) - 0.0424927283095952));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -40.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 3.8e-128: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) elif x <= 9.5e-96: tmp = -0.0424927283095952 * (x * y) elif x <= 2e-75: tmp = z * -0.0424927283095952 elif x <= 0.13: tmp = x * (y * ((x * 0.3041881842569256) - 0.0424927283095952)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -40.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 3.8e-128) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); elseif (x <= 9.5e-96) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 2e-75) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.13) tmp = Float64(x * Float64(y * Float64(Float64(x * 0.3041881842569256) - 0.0424927283095952))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -40.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 3.8e-128) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); elseif (x <= 9.5e-96) tmp = -0.0424927283095952 * (x * y); elseif (x <= 2e-75) tmp = z * -0.0424927283095952; elseif (x <= 0.13) tmp = x * (y * ((x * 0.3041881842569256) - 0.0424927283095952)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -40.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e-128], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e-96], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e-75], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.13], N[(x * N[(y * N[(N[(x * 0.3041881842569256), $MachinePrecision] - 0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -40:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-128}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-96}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-75}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.13:\\
\;\;\;\;x \cdot \left(y \cdot \left(x \cdot 0.3041881842569256 - 0.0424927283095952\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -40Initial program 12.4%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around inf 91.6%
associate-*r/91.6%
metadata-eval91.6%
Simplified91.6%
if -40 < x < 3.8000000000000002e-128Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around inf 76.5%
Taylor expanded in x around 0 74.9%
distribute-rgt-out--74.9%
metadata-eval74.9%
*-commutative74.9%
associate-*r*74.9%
*-commutative74.9%
distribute-rgt-out74.9%
*-commutative74.9%
Simplified74.9%
if 3.8000000000000002e-128 < x < 9.4999999999999993e-96Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in y around inf 85.7%
associate-/l*85.5%
+-commutative85.5%
+-commutative85.5%
+-commutative85.5%
+-commutative85.5%
fma-undefine85.5%
fma-undefine85.5%
fma-undefine85.5%
Simplified85.5%
Taylor expanded in x around 0 85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in x around 0 85.9%
if 9.4999999999999993e-96 < x < 1.9999999999999999e-75Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.3%
*-commutative72.3%
Simplified72.3%
if 1.9999999999999999e-75 < x < 0.13Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 74.0%
associate-/l*74.0%
+-commutative74.0%
+-commutative74.0%
+-commutative74.0%
+-commutative74.0%
fma-undefine74.0%
fma-undefine74.0%
fma-undefine74.0%
Simplified74.0%
Taylor expanded in x around 0 73.1%
fma-define73.2%
distribute-rgt-out--73.2%
metadata-eval73.2%
Simplified73.2%
Taylor expanded in y around 0 73.2%
if 0.13 < x Initial program 17.1%
associate-/l*19.9%
sub-neg19.9%
metadata-eval19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
Simplified19.9%
Taylor expanded in x around inf 86.8%
associate-*r/86.8%
metadata-eval86.8%
Simplified86.8%
Final simplification81.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y)))
(t_1 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -5.5)
t_1
(if (<= x 3.8e-128)
(* z -0.0424927283095952)
(if (<= x 1e-95)
t_0
(if (<= x 4.9e-76)
(* z -0.0424927283095952)
(if (<= x 26.0) t_0 t_1)))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double t_1 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_1;
} else if (x <= 3.8e-128) {
tmp = z * -0.0424927283095952;
} else if (x <= 1e-95) {
tmp = t_0;
} else if (x <= 4.9e-76) {
tmp = z * -0.0424927283095952;
} else if (x <= 26.0) {
tmp = t_0;
} else {
tmp = t_1;
}
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 = (-0.0424927283095952d0) * (x * y)
t_1 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-5.5d0)) then
tmp = t_1
else if (x <= 3.8d-128) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1d-95) then
tmp = t_0
else if (x <= 4.9d-76) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 26.0d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double t_1 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_1;
} else if (x <= 3.8e-128) {
tmp = z * -0.0424927283095952;
} else if (x <= 1e-95) {
tmp = t_0;
} else if (x <= 4.9e-76) {
tmp = z * -0.0424927283095952;
} else if (x <= 26.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) t_1 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -5.5: tmp = t_1 elif x <= 3.8e-128: tmp = z * -0.0424927283095952 elif x <= 1e-95: tmp = t_0 elif x <= 4.9e-76: tmp = z * -0.0424927283095952 elif x <= 26.0: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) t_1 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -5.5) tmp = t_1; elseif (x <= 3.8e-128) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1e-95) tmp = t_0; elseif (x <= 4.9e-76) tmp = Float64(z * -0.0424927283095952); elseif (x <= 26.0) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); t_1 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -5.5) tmp = t_1; elseif (x <= 3.8e-128) tmp = z * -0.0424927283095952; elseif (x <= 1e-95) tmp = t_0; elseif (x <= 4.9e-76) tmp = z * -0.0424927283095952; elseif (x <= 26.0) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$1, If[LessEqual[x, 3.8e-128], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1e-95], t$95$0, If[LessEqual[x, 4.9e-76], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 26.0], t$95$0, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
t_1 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-128}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 10^{-95}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4.9 \cdot 10^{-76}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 26:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.5 or 26 < x Initial program 13.4%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Taylor expanded in x around inf 90.5%
associate-*r/90.5%
metadata-eval90.5%
Simplified90.5%
if -5.5 < x < 3.8000000000000002e-128 or 9.99999999999999989e-96 < x < 4.89999999999999972e-76Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 74.2%
*-commutative74.2%
Simplified74.2%
if 3.8000000000000002e-128 < x < 9.99999999999999989e-96 or 4.89999999999999972e-76 < x < 26Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 75.5%
associate-/l*75.5%
+-commutative75.5%
+-commutative75.5%
+-commutative75.5%
+-commutative75.5%
fma-undefine75.5%
fma-undefine75.5%
fma-undefine75.5%
Simplified75.5%
Taylor expanded in x around 0 71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in x around 0 69.5%
Final simplification81.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x))))
(t_1 (* -0.0424927283095952 (* x y))))
(if (<= x -5.5)
t_0
(if (<= x 3.8e-128)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(if (<= x 9.2e-96)
t_1
(if (<= x 3.2e-75)
(* z -0.0424927283095952)
(if (<= x 8.6) t_1 t_0)))))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double t_1 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 3.8e-128) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else if (x <= 9.2e-96) {
tmp = t_1;
} else if (x <= 3.2e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 8.6) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_0 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
t_1 = (-0.0424927283095952d0) * (x * y)
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= 3.8d-128) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
else if (x <= 9.2d-96) then
tmp = t_1
else if (x <= 3.2d-75) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 8.6d0) then
tmp = t_1
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 t_1 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 3.8e-128) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else if (x <= 9.2e-96) {
tmp = t_1;
} else if (x <= 3.2e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 8.6) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) t_1 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= 3.8e-128: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) elif x <= 9.2e-96: tmp = t_1 elif x <= 3.2e-75: tmp = z * -0.0424927283095952 elif x <= 8.6: tmp = t_1 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) t_1 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= 3.8e-128) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); elseif (x <= 9.2e-96) tmp = t_1; elseif (x <= 3.2e-75) tmp = Float64(z * -0.0424927283095952); elseif (x <= 8.6) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); t_1 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= 3.8e-128) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); elseif (x <= 9.2e-96) tmp = t_1; elseif (x <= 3.2e-75) tmp = z * -0.0424927283095952; elseif (x <= 8.6) tmp = t_1; 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]}, Block[{t$95$1 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, 3.8e-128], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.2e-96], t$95$1, If[LessEqual[x, 3.2e-75], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 8.6], t$95$1, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
t_1 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-128}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-75}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 8.6:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5 or 8.59999999999999964 < x Initial program 13.4%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Taylor expanded in x around inf 90.5%
associate-*r/90.5%
metadata-eval90.5%
Simplified90.5%
if -5.5 < x < 3.8000000000000002e-128Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around inf 76.5%
Taylor expanded in x around 0 74.9%
distribute-rgt-out--74.9%
metadata-eval74.9%
*-commutative74.9%
associate-*r*74.9%
*-commutative74.9%
distribute-rgt-out74.9%
*-commutative74.9%
Simplified74.9%
if 3.8000000000000002e-128 < x < 9.2e-96 or 3.19999999999999977e-75 < x < 8.59999999999999964Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 75.5%
associate-/l*75.5%
+-commutative75.5%
+-commutative75.5%
+-commutative75.5%
+-commutative75.5%
fma-undefine75.5%
fma-undefine75.5%
fma-undefine75.5%
Simplified75.5%
Taylor expanded in x around 0 71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in x around 0 69.5%
if 9.2e-96 < x < 3.19999999999999977e-75Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.3%
*-commutative72.3%
Simplified72.3%
Final simplification81.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -33.0)
(* x 4.16438922228)
(if (<= x 3.7e-128)
(* z -0.0424927283095952)
(if (<= x 1.2e-95)
t_0
(if (<= x 4.6e-75)
(* z -0.0424927283095952)
(if (<= x 2.0) t_0 (* x 4.16438922228))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -33.0) {
tmp = x * 4.16438922228;
} else if (x <= 3.7e-128) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.2e-95) {
tmp = t_0;
} else if (x <= 4.6e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = t_0;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-33.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 3.7d-128) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.2d-95) then
tmp = t_0
else if (x <= 4.6d-75) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = t_0
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -33.0) {
tmp = x * 4.16438922228;
} else if (x <= 3.7e-128) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.2e-95) {
tmp = t_0;
} else if (x <= 4.6e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = t_0;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -33.0: tmp = x * 4.16438922228 elif x <= 3.7e-128: tmp = z * -0.0424927283095952 elif x <= 1.2e-95: tmp = t_0 elif x <= 4.6e-75: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = t_0 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -33.0) tmp = Float64(x * 4.16438922228); elseif (x <= 3.7e-128) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.2e-95) tmp = t_0; elseif (x <= 4.6e-75) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = t_0; else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -33.0) tmp = x * 4.16438922228; elseif (x <= 3.7e-128) tmp = z * -0.0424927283095952; elseif (x <= 1.2e-95) tmp = t_0; elseif (x <= 4.6e-75) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = t_0; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -33.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3.7e-128], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.2e-95], t$95$0, If[LessEqual[x, 4.6e-75], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], t$95$0, N[(x * 4.16438922228), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -33:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-128}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-95}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-75}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -33 or 2 < x Initial program 14.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around inf 89.5%
Taylor expanded in x around inf 89.5%
*-commutative89.5%
Simplified89.5%
if -33 < x < 3.7e-128 or 1.2e-95 < x < 4.6e-75Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 74.2%
*-commutative74.2%
Simplified74.2%
if 3.7e-128 < x < 1.2e-95 or 4.6e-75 < x < 2Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 78.6%
associate-/l*78.6%
+-commutative78.6%
+-commutative78.6%
+-commutative78.6%
+-commutative78.6%
fma-undefine78.6%
fma-undefine78.6%
fma-undefine78.6%
Simplified78.6%
Taylor expanded in x around 0 75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in x around 0 72.4%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y)))
(t_1 (* 4.16438922228 (+ x -2.0))))
(if (<= x -23.0)
t_1
(if (<= x 3.8e-128)
(* z -0.0424927283095952)
(if (<= x 1.05e-95)
t_0
(if (<= x 3.4e-75)
(* z -0.0424927283095952)
(if (<= x 1.75) t_0 t_1)))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double t_1 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -23.0) {
tmp = t_1;
} else if (x <= 3.8e-128) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.05e-95) {
tmp = t_0;
} else if (x <= 3.4e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.75) {
tmp = t_0;
} else {
tmp = t_1;
}
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 = (-0.0424927283095952d0) * (x * y)
t_1 = 4.16438922228d0 * (x + (-2.0d0))
if (x <= (-23.0d0)) then
tmp = t_1
else if (x <= 3.8d-128) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.05d-95) then
tmp = t_0
else if (x <= 3.4d-75) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.75d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double t_1 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -23.0) {
tmp = t_1;
} else if (x <= 3.8e-128) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.05e-95) {
tmp = t_0;
} else if (x <= 3.4e-75) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.75) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) t_1 = 4.16438922228 * (x + -2.0) tmp = 0 if x <= -23.0: tmp = t_1 elif x <= 3.8e-128: tmp = z * -0.0424927283095952 elif x <= 1.05e-95: tmp = t_0 elif x <= 3.4e-75: tmp = z * -0.0424927283095952 elif x <= 1.75: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) t_1 = Float64(4.16438922228 * Float64(x + -2.0)) tmp = 0.0 if (x <= -23.0) tmp = t_1; elseif (x <= 3.8e-128) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.05e-95) tmp = t_0; elseif (x <= 3.4e-75) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.75) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); t_1 = 4.16438922228 * (x + -2.0); tmp = 0.0; if (x <= -23.0) tmp = t_1; elseif (x <= 3.8e-128) tmp = z * -0.0424927283095952; elseif (x <= 1.05e-95) tmp = t_0; elseif (x <= 3.4e-75) tmp = z * -0.0424927283095952; elseif (x <= 1.75) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -23.0], t$95$1, If[LessEqual[x, 3.8e-128], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.05e-95], t$95$0, If[LessEqual[x, 3.4e-75], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.75], t$95$0, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
t_1 := 4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{if}\;x \leq -23:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-128}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-95}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-75}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.75:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -23 or 1.75 < x Initial program 14.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around inf 89.5%
if -23 < x < 3.8000000000000002e-128 or 1.05e-95 < x < 3.40000000000000015e-75Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 74.2%
*-commutative74.2%
Simplified74.2%
if 3.8000000000000002e-128 < x < 1.05e-95 or 3.40000000000000015e-75 < x < 1.75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around inf 78.6%
associate-/l*78.6%
+-commutative78.6%
+-commutative78.6%
+-commutative78.6%
+-commutative78.6%
fma-undefine78.6%
fma-undefine78.6%
fma-undefine78.6%
Simplified78.6%
Taylor expanded in x around 0 75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in x around 0 72.4%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 8.5)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 8.5)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (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 <= (-5.5d0)) .or. (.not. (x <= 8.5d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 8.5)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 8.5): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 8.5)) 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(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 8.5))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 8.5]], $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[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 8.5\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}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 8.5 < x Initial program 13.4%
associate-/l*18.9%
sub-neg18.9%
metadata-eval18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
fma-define18.9%
Simplified18.9%
Taylor expanded in x around -inf 95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
if -5.5 < x < 8.5Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.4%
Final simplification93.3%
(FPCore (x y z)
:precision binary64
(if (<= x -7e-10)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 12.6)
(-
(* z -0.0424927283095952)
(* x (- (* z -0.28294182010212804) (* y -0.0424927283095952))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7e-10) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 12.6) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -0.0424927283095952)));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-7d-10)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 12.6d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (y * (-0.0424927283095952d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7e-10) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 12.6) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -0.0424927283095952)));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7e-10: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 12.6: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -0.0424927283095952))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7e-10) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 12.6) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(y * -0.0424927283095952)))); else 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))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7e-10) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 12.6) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -0.0424927283095952))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7e-10], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 12.6], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{-10}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 12.6:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -6.99999999999999961e-10Initial program 16.6%
associate-/l*24.4%
sub-neg24.4%
metadata-eval24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
Simplified24.4%
Taylor expanded in z around 0 24.4%
Taylor expanded in x around inf 95.9%
if -6.99999999999999961e-10 < x < 12.5999999999999996Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.3%
Taylor expanded in z around 0 92.3%
*-commutative92.3%
Simplified92.3%
if 12.5999999999999996 < x Initial program 14.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around -inf 96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
Simplified96.8%
Final simplification94.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 2.4)))
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) 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 <= -5.5) || !(x <= 2.4)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / 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 <= (-5.5d0)) .or. (.not. (x <= 2.4d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / 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 <= -5.5) || !(x <= 2.4)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / 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 <= -5.5) or not (x <= 2.4): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / 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 <= -5.5) || !(x <= 2.4)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / 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 <= -5.5) || ~((x <= 2.4))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / 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, -5.5], N[Not[LessEqual[x, 2.4]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $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 -5.5 \lor \neg \left(x \leq 2.4\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{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 < -5.5 or 2.39999999999999991 < x Initial program 14.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around -inf 90.0%
mul-1-neg90.0%
unsub-neg90.0%
sub-neg90.0%
associate-*r/90.0%
metadata-eval90.0%
distribute-neg-frac90.0%
metadata-eval90.0%
Simplified90.0%
if -5.5 < x < 2.39999999999999991Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.1%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -155.0) (not (<= x 2.0)))
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(+ (* -0.0424927283095952 (* x y)) (* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -155.0) || !(x <= 2.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (-0.0424927283095952 * (x * y)) + (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 <= (-155.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else
tmp = ((-0.0424927283095952d0) * (x * y)) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -155.0) || !(x <= 2.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -155.0) or not (x <= 2.0): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) else: tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -155.0) || !(x <= 2.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); else tmp = Float64(Float64(-0.0424927283095952 * Float64(x * y)) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -155.0) || ~((x <= 2.0))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); else tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -155.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -155 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -155 or 2 < x Initial program 14.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around -inf 90.0%
mul-1-neg90.0%
unsub-neg90.0%
sub-neg90.0%
associate-*r/90.0%
metadata-eval90.0%
distribute-neg-frac90.0%
metadata-eval90.0%
Simplified90.0%
if -155 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.0%
Taylor expanded in z around 0 91.7%
*-commutative91.7%
Simplified91.7%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 1.65)))
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(-
(* z -0.0424927283095952)
(* x (- (* z -0.28294182010212804) (* y -0.0424927283095952))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 1.65)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -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 <= (-5.5d0)) .or. (.not. (x <= 1.65d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (y * (-0.0424927283095952d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 1.65)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -0.0424927283095952)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 1.65): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -0.0424927283095952))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 1.65)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(y * -0.0424927283095952)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 1.65))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (y * -0.0424927283095952))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 1.65]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 1.65\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - y \cdot -0.0424927283095952\right)\\
\end{array}
\end{array}
if x < -5.5 or 1.6499999999999999 < x Initial program 14.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around -inf 90.0%
mul-1-neg90.0%
unsub-neg90.0%
sub-neg90.0%
associate-*r/90.0%
metadata-eval90.0%
distribute-neg-frac90.0%
metadata-eval90.0%
Simplified90.0%
if -5.5 < x < 1.6499999999999999Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.0%
Taylor expanded in z around 0 91.8%
*-commutative91.8%
Simplified91.8%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 8.5)
(+ (* -0.0424927283095952 (* x y)) (* z -0.0424927283095952))
(*
x
(+
4.16438922228
(/ (+ -110.1139242984811 (/ 203.5702917078422 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 8.5) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (203.5702917078422 / 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 8.5d0) then
tmp = ((-0.0424927283095952d0) * (x * y)) + (z * (-0.0424927283095952d0))
else
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (203.5702917078422d0 / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 8.5) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (203.5702917078422 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 8.5: tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952) else: tmp = x * (4.16438922228 + ((-110.1139242984811 + (203.5702917078422 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 8.5) tmp = Float64(Float64(-0.0424927283095952 * Float64(x * y)) + Float64(z * -0.0424927283095952)); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(203.5702917078422 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 8.5) tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952); else tmp = x * (4.16438922228 + ((-110.1139242984811 + (203.5702917078422 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5], N[(N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(203.5702917078422 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 8.5:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{203.5702917078422}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 12.4%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around inf 91.6%
associate-*r/91.6%
metadata-eval91.6%
Simplified91.6%
if -5.5 < x < 8.5Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.4%
Taylor expanded in z around 0 91.0%
*-commutative91.0%
Simplified91.0%
if 8.5 < x Initial program 14.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around inf 89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
Taylor expanded in x around inf 89.4%
associate--l+89.4%
unpow289.4%
associate-/r*89.4%
metadata-eval89.4%
associate-*r/89.4%
associate-*r/89.4%
metadata-eval89.4%
div-sub89.4%
sub-neg89.4%
metadata-eval89.4%
+-commutative89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
Final simplification90.8%
(FPCore (x y z)
:precision binary64
(if (<= x -410.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 10.0)
(+ (* -0.0424927283095952 (* x y)) (* z -0.0424927283095952))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 10.0) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-410.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 10.0d0) then
tmp = ((-0.0424927283095952d0) * (x * y)) + (z * (-0.0424927283095952d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -410.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 10.0) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 10.0: tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 10.0) tmp = Float64(Float64(-0.0424927283095952 * Float64(x * y)) + Float64(z * -0.0424927283095952)); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -410.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 10.0) tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 10.0], N[(N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 10:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -410Initial program 12.4%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around inf 91.6%
associate-*r/91.6%
metadata-eval91.6%
Simplified91.6%
if -410 < x < 10Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.4%
Taylor expanded in z around 0 91.0%
*-commutative91.0%
Simplified91.0%
if 10 < x Initial program 14.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around inf 89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
Final simplification90.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -28.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -28.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 <= (-28.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 <= -28.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -28.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 <= -28.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 <= -28.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, -28.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 -28 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -28 or 2 < x Initial program 14.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around inf 89.5%
Taylor expanded in x around inf 89.5%
*-commutative89.5%
Simplified89.5%
if -28 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 64.2%
*-commutative64.2%
Simplified64.2%
Final simplification76.2%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 58.9%
associate-/l*61.5%
sub-neg61.5%
metadata-eval61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
Simplified61.5%
Taylor expanded in x around inf 44.7%
Taylor expanded in x around inf 44.4%
*-commutative44.4%
Simplified44.4%
Final simplification44.4%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 58.9%
associate-/l*61.5%
sub-neg61.5%
metadata-eval61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
fma-define61.5%
Simplified61.5%
Taylor expanded in x around inf 44.7%
Taylor expanded in x around 0 3.5%
Final simplification3.5%
(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 2024082
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))