
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 (- INFINITY))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(if (<= t_0 1e+300)
t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (t_0 <= 1e+300) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (t_0 <= 1e+300) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) elif t_0 <= 1e+300: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); elseif (t_0 <= 1e+300) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); elseif (t_0 <= 1e+300) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 1e+300], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{elif}\;t\_0 \leq 10^{+300}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 4.1%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
fma-define99.2%
Simplified99.2%
Taylor expanded in z around 0 99.4%
Taylor expanded in x around inf 99.6%
Taylor expanded in x around inf 99.6%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 99.7%
if 1.0000000000000001e300 < (/.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.1%
associate-/l*2.3%
sub-neg2.3%
metadata-eval2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
Simplified2.3%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+300)
(/
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(/
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)
(+ x -2.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+300) {
tmp = fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / (fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / (x + -2.0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+300) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / Float64(x + -2.0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 1e+300], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $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^{+300}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 95.7%
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%
Applied egg-rr99.7%
if 1.0000000000000001e300 < (/.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.1%
associate-/l*2.3%
sub-neg2.3%
metadata-eval2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
Simplified2.3%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Final simplification99.5%
(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+300)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) 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+300) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (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+300) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (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+300) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / 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+300: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / 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+300) 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(124074.40615218398 - y) / 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+300) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / 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+300], 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[(124074.40615218398 - y), $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^{+300}:\\
\;\;\;\;\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{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 95.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
if 1.0000000000000001e300 < (/.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.1%
associate-/l*2.3%
sub-neg2.3%
metadata-eval2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
fma-define2.3%
Simplified2.3%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= x -5.2e+25)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(if (<= x 2.25e+21)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x))))))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.2e+25) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 2.25e+21) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (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.2d+25)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 2.25d+21) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.2e+25) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 2.25e+21) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.2e+25: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) elif x <= 2.25e+21: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.2e+25) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 2.25e+21) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.2e+25) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 2.25e+21) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.2e+25], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.25e+21], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.2 \cdot 10^{+25}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 2.25 \cdot 10^{+21}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\end{array}
\end{array}
if x < -5.1999999999999997e25Initial program 14.0%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
Simplified20.7%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
if -5.1999999999999997e25 < x < 2.25e21Initial program 99.7%
Taylor expanded in x around 0 98.2%
*-commutative98.2%
Simplified98.2%
if 2.25e21 < x Initial program 3.9%
associate-/l*13.5%
sub-neg13.5%
metadata-eval13.5%
fma-define13.5%
fma-define13.5%
fma-define13.5%
fma-define13.5%
fma-define13.5%
fma-define13.5%
fma-define13.5%
Simplified13.5%
Taylor expanded in z around 0 13.6%
Taylor expanded in x around inf 97.1%
Taylor expanded in x around inf 97.1%
Final simplification98.1%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(if (<= x 0.016)
(/
(*
(- 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
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.016) {
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 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 0.016d0) 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 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.016) {
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 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) elif x <= 0.016: 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 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 0.016) 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(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 0.016) 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 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.016], 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[(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]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 0.016:\\
\;\;\;\;\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{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 19.6%
associate-/l*25.8%
sub-neg25.8%
metadata-eval25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
if -5.5 < x < 0.016Initial program 99.8%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in x around 0 98.4%
*-commutative98.4%
Simplified98.4%
if 0.016 < x Initial program 12.6%
associate-/l*21.4%
sub-neg21.4%
metadata-eval21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
Simplified21.4%
Taylor expanded in z around 0 21.4%
Taylor expanded in x around inf 91.3%
Final simplification96.5%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(if (<= x 0.017)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.017) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 0.017d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.017) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) elif x <= 0.017: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 0.017) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 0.017) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.017], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(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]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 0.017:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 19.6%
associate-/l*25.8%
sub-neg25.8%
metadata-eval25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
if -5.5 < x < 0.017000000000000001Initial program 99.8%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in x around 0 97.8%
*-commutative98.7%
Simplified97.8%
if 0.017000000000000001 < x Initial program 12.6%
associate-/l*21.4%
sub-neg21.4%
metadata-eval21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
Simplified21.4%
Taylor expanded in z around 0 21.4%
Taylor expanded in x around inf 91.3%
Final simplification96.2%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(if (<= x 4.6e-28)
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x 313.399215894)))
(* y (* x 0.0212463641547976))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 4.6e-28) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
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 <= (-36.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 4.6d-28) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * 313.399215894d0))) + (y * (x * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 4.6e-28) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) elif x <= 4.6e-28: tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 4.6e-28) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))) + Float64(y * Float64(x * 0.0212463641547976)))); else 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)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -36.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 4.6e-28) tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-28], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-28}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot 313.399215894} + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\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)\\
\end{array}
\end{array}
if x < -36Initial program 19.6%
associate-/l*25.8%
sub-neg25.8%
metadata-eval25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
if -36 < x < 4.59999999999999971e-28Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
Taylor expanded in x around 0 95.7%
*-commutative95.7%
*-commutative95.7%
associate-*l*95.8%
Simplified95.8%
Taylor expanded in x around 0 95.4%
*-commutative95.4%
Simplified95.4%
if 4.59999999999999971e-28 < x Initial program 19.9%
associate-/l*28.0%
sub-neg28.0%
metadata-eval28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
Simplified28.0%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 86.9%
Final simplification93.5%
(FPCore (x y z)
:precision binary64
(if (<= x -15.2)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(if (<= x 4.6e-28)
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x 313.399215894)))
(* y (* x 0.0212463641547976))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x))))))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -15.2) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 4.6e-28) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (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 <= (-15.2d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 4.6d-28) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * 313.399215894d0))) + (y * (x * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -15.2) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 4.6e-28) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -15.2: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) elif x <= 4.6e-28: tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -15.2) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 4.6e-28) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))) + Float64(y * Float64(x * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -15.2) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 4.6e-28) tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -15.2], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-28], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -15.2:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-28}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot 313.399215894} + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\end{array}
\end{array}
if x < -15.199999999999999Initial program 19.6%
associate-/l*25.8%
sub-neg25.8%
metadata-eval25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
mul-1-neg97.9%
unsub-neg97.9%
neg-mul-197.9%
unsub-neg97.9%
Simplified97.9%
if -15.199999999999999 < x < 4.59999999999999971e-28Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
Taylor expanded in x around 0 95.7%
*-commutative95.7%
*-commutative95.7%
associate-*l*95.8%
Simplified95.8%
Taylor expanded in x around 0 95.4%
*-commutative95.4%
Simplified95.4%
if 4.59999999999999971e-28 < x Initial program 19.9%
associate-/l*28.0%
sub-neg28.0%
metadata-eval28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
Simplified28.0%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 86.9%
Taylor expanded in x around inf 85.9%
Final simplification93.2%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.35) (not (<= x 1450.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x 313.399215894)))
(* y (* x 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.35) || !(x <= 1450.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.35d0)) .or. (.not. (x <= 1450.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * 313.399215894d0))) + (y * (x * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.35) || !(x <= 1450.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.35) or not (x <= 1450.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.35) || !(x <= 1450.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))) + Float64(y * Float64(x * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.35) || ~((x <= 1450.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.35], N[Not[LessEqual[x, 1450.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35 \lor \neg \left(x \leq 1450\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot 313.399215894} + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -1.3500000000000001 or 1450 < x Initial program 14.8%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 93.7%
mul-1-neg93.7%
unsub-neg93.7%
mul-1-neg93.7%
unsub-neg93.7%
mul-1-neg93.7%
unsub-neg93.7%
neg-mul-193.7%
unsub-neg93.7%
Simplified93.7%
if -1.3500000000000001 < x < 1450Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 93.3%
*-commutative93.3%
*-commutative93.3%
associate-*l*93.3%
Simplified93.3%
Taylor expanded in x around 0 92.3%
*-commutative92.3%
Simplified92.3%
Final simplification92.9%
(FPCore (x y z)
:precision binary64
(if (<= x -6.8e+21)
(* x 4.16438922228)
(if (<= x 1.06e-9)
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x 313.399215894)))
(* y (* x 0.0212463641547976))))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.8e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.06e-9) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.8d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 1.06d-9) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * 313.399215894d0))) + (y * (x * 0.0212463641547976d0)))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.8e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.06e-9) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976)));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.8e+21: tmp = x * 4.16438922228 elif x <= 1.06e-9: tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.8e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 1.06e-9) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))) + Float64(y * Float64(x * 0.0212463641547976)))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.8e+21) tmp = x * 4.16438922228; elseif (x <= 1.06e-9) tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (y * (x * 0.0212463641547976))); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.8e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot 313.399215894} + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -6.8e21Initial program 16.0%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
Simplified22.4%
Taylor expanded in x around inf 93.4%
*-commutative93.4%
Simplified93.4%
if -6.8e21 < x < 1.0600000000000001e-9Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
Taylor expanded in x around 0 93.9%
*-commutative93.9%
*-commutative93.9%
associate-*l*94.0%
Simplified94.0%
Taylor expanded in x around 0 93.6%
*-commutative93.6%
Simplified93.6%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification89.7%
(FPCore (x y z)
:precision binary64
(if (<= x -6.8e+21)
(* x 4.16438922228)
(if (<= x 1.06e-9)
(*
(+ x -2.0)
(+
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))
(* z 0.0212463641547976)))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.8e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.06e-9) {
tmp = (x + -2.0) * ((x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))) + (z * 0.0212463641547976));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.8d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 1.06d-9) then
tmp = (x + (-2.0d0)) * ((x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))) + (z * 0.0212463641547976d0))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.8e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.06e-9) {
tmp = (x + -2.0) * ((x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))) + (z * 0.0212463641547976));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.8e+21: tmp = x * 4.16438922228 elif x <= 1.06e-9: tmp = (x + -2.0) * ((x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))) + (z * 0.0212463641547976)) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.8e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 1.06e-9) tmp = Float64(Float64(x + -2.0) * Float64(Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))) + Float64(z * 0.0212463641547976))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.8e+21) tmp = x * 4.16438922228; elseif (x <= 1.06e-9) tmp = (x + -2.0) * ((x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))) + (z * 0.0212463641547976)); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.8e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right) + z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -6.8e21Initial program 16.0%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
Simplified22.4%
Taylor expanded in x around inf 93.4%
*-commutative93.4%
Simplified93.4%
if -6.8e21 < x < 1.0600000000000001e-9Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 93.3%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification89.6%
(FPCore (x y z)
:precision binary64
(if (<= x -6.8e+21)
(* x 4.16438922228)
(if (<= x 1.06e-9)
(* (+ x -2.0) (+ (* y (* x 0.0212463641547976)) (* z 0.0212463641547976)))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.8e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.06e-9) {
tmp = (x + -2.0) * ((y * (x * 0.0212463641547976)) + (z * 0.0212463641547976));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.8d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 1.06d-9) then
tmp = (x + (-2.0d0)) * ((y * (x * 0.0212463641547976d0)) + (z * 0.0212463641547976d0))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.8e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.06e-9) {
tmp = (x + -2.0) * ((y * (x * 0.0212463641547976)) + (z * 0.0212463641547976));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.8e+21: tmp = x * 4.16438922228 elif x <= 1.06e-9: tmp = (x + -2.0) * ((y * (x * 0.0212463641547976)) + (z * 0.0212463641547976)) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.8e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 1.06e-9) tmp = Float64(Float64(x + -2.0) * Float64(Float64(y * Float64(x * 0.0212463641547976)) + Float64(z * 0.0212463641547976))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.8e+21) tmp = x * 4.16438922228; elseif (x <= 1.06e-9) tmp = (x + -2.0) * ((y * (x * 0.0212463641547976)) + (z * 0.0212463641547976)); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.8e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision] + N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(x \cdot 0.0212463641547976\right) + z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -6.8e21Initial program 16.0%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
Simplified22.4%
Taylor expanded in x around inf 93.4%
*-commutative93.4%
Simplified93.4%
if -6.8e21 < x < 1.0600000000000001e-9Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
Taylor expanded in x around 0 93.9%
*-commutative93.9%
*-commutative93.9%
associate-*l*94.0%
Simplified94.0%
Taylor expanded in x around 0 93.2%
*-commutative93.2%
Simplified93.2%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification89.5%
(FPCore (x y z)
:precision binary64
(if (<= x -0.059)
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(if (<= x 1.06e-9)
(/ (* (- x 2.0) z) (+ 47.066876606 (* x 313.399215894)))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 1.06e-9) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.059d0)) then
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else if (x <= 1.06d-9) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 1.06e-9) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.059: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) elif x <= 1.06e-9: tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.059) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); elseif (x <= 1.06e-9) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.059) tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); elseif (x <= 1.06e-9) tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.059], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.059:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.058999999999999997Initial program 21.3%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Applied egg-rr27.5%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
unpow287.7%
associate-/r*87.7%
metadata-eval87.7%
associate-*r/87.7%
associate-*r/87.7%
metadata-eval87.7%
div-sub87.7%
sub-neg87.7%
associate-*r/87.7%
metadata-eval87.7%
metadata-eval87.7%
Simplified87.7%
if -0.058999999999999997 < x < 1.0600000000000001e-9Initial program 99.8%
Taylor expanded in x around 0 99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around inf 71.5%
Taylor expanded in x around 0 71.4%
*-commutative71.4%
Simplified71.4%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification76.5%
(FPCore (x y z)
:precision binary64
(if (<= x -0.059)
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(if (<= x 1.06e-9)
(/ (* z -2.0) (+ 47.066876606 (* x 313.399215894)))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 1.06e-9) {
tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.059d0)) then
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else if (x <= 1.06d-9) then
tmp = (z * (-2.0d0)) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 1.06e-9) {
tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.059: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) elif x <= 1.06e-9: tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894)) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.059) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); elseif (x <= 1.06e-9) tmp = Float64(Float64(z * -2.0) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.059) tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); elseif (x <= 1.06e-9) tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894)); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.059], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(N[(z * -2.0), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.059:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;\frac{z \cdot -2}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.058999999999999997Initial program 21.3%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Applied egg-rr27.5%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
unpow287.7%
associate-/r*87.7%
metadata-eval87.7%
associate-*r/87.7%
associate-*r/87.7%
metadata-eval87.7%
div-sub87.7%
sub-neg87.7%
associate-*r/87.7%
metadata-eval87.7%
metadata-eval87.7%
Simplified87.7%
if -0.058999999999999997 < x < 1.0600000000000001e-9Initial program 99.8%
Taylor expanded in x around 0 99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around inf 71.5%
Taylor expanded in x around 0 71.3%
Taylor expanded in x around 0 71.3%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification76.4%
(FPCore (x y z)
:precision binary64
(if (<= x -0.059)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 1.06e-9)
(/ (* z -2.0) (+ 47.066876606 (* x 313.399215894)))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1.06e-9) {
tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.059d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 1.06d-9) then
tmp = (z * (-2.0d0)) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1.06e-9) {
tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.059: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 1.06e-9: tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894)) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.059) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 1.06e-9) tmp = Float64(Float64(z * -2.0) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.059) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 1.06e-9) tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894)); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.059], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(N[(z * -2.0), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.059:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;\frac{z \cdot -2}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.058999999999999997Initial program 21.3%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Taylor expanded in x around inf 87.7%
associate-*r/87.7%
metadata-eval87.7%
Simplified87.7%
if -0.058999999999999997 < x < 1.0600000000000001e-9Initial program 99.8%
Taylor expanded in x around 0 99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around inf 71.5%
Taylor expanded in x around 0 71.3%
Taylor expanded in x around 0 71.3%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification76.4%
(FPCore (x y z)
:precision binary64
(if (<= x -0.059)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 1.06e-9)
(* z (+ (* x 0.28294182010212804) -0.0424927283095952))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1.06e-9) {
tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.059d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 1.06d-9) then
tmp = z * ((x * 0.28294182010212804d0) + (-0.0424927283095952d0))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 1.06e-9) {
tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.059: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 1.06e-9: tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.059) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 1.06e-9) tmp = Float64(z * Float64(Float64(x * 0.28294182010212804) + -0.0424927283095952)); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.059) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 1.06e-9) tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.059], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(z * N[(N[(x * 0.28294182010212804), $MachinePrecision] + -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.059:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;z \cdot \left(x \cdot 0.28294182010212804 + -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.058999999999999997Initial program 21.3%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Taylor expanded in x around inf 87.7%
associate-*r/87.7%
metadata-eval87.7%
Simplified87.7%
if -0.058999999999999997 < x < 1.0600000000000001e-9Initial program 99.8%
Taylor expanded in x around 0 99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around inf 71.5%
Taylor expanded in x around 0 71.3%
Taylor expanded in x around 0 71.1%
+-commutative71.1%
associate-*r*71.1%
distribute-rgt-out71.1%
*-commutative71.1%
Simplified71.1%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification76.3%
(FPCore (x y z)
:precision binary64
(if (<= x -0.059)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.06e-9)
(* z (+ (* x 0.28294182010212804) -0.0424927283095952))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.06e-9) {
tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.059d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.06d-9) then
tmp = z * ((x * 0.28294182010212804d0) + (-0.0424927283095952d0))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.06e-9) {
tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.059: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.06e-9: tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.059) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.06e-9) tmp = Float64(z * Float64(Float64(x * 0.28294182010212804) + -0.0424927283095952)); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.059) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.06e-9) tmp = z * ((x * 0.28294182010212804) + -0.0424927283095952); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.059], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(z * N[(N[(x * 0.28294182010212804), $MachinePrecision] + -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.059:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;z \cdot \left(x \cdot 0.28294182010212804 + -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.058999999999999997Initial program 21.3%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Taylor expanded in x around inf 87.7%
associate-*r/87.7%
metadata-eval87.7%
Simplified87.7%
if -0.058999999999999997 < x < 1.0600000000000001e-9Initial program 99.8%
Taylor expanded in x around 0 99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around inf 71.5%
Taylor expanded in x around 0 71.3%
Taylor expanded in x around 0 71.1%
+-commutative71.1%
associate-*r*71.1%
distribute-rgt-out71.1%
*-commutative71.1%
Simplified71.1%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification76.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.041) (not (<= x 1.06e-9))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.041) || !(x <= 1.06e-9)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.041d0)) .or. (.not. (x <= 1.06d-9))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.041) || !(x <= 1.06e-9)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.041) or not (x <= 1.06e-9): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.041) || !(x <= 1.06e-9)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.041) || ~((x <= 1.06e-9))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.041], N[Not[LessEqual[x, 1.06e-9]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.041 \lor \neg \left(x \leq 1.06 \cdot 10^{-9}\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -0.0410000000000000017 or 1.0600000000000001e-9 < x Initial program 18.4%
associate-/l*25.9%
sub-neg25.9%
metadata-eval25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
Simplified25.9%
Taylor expanded in x around inf 82.7%
if -0.0410000000000000017 < x < 1.0600000000000001e-9Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 71.0%
Final simplification76.3%
(FPCore (x y z) :precision binary64 (if (<= x -0.059) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (if (<= x 1.06e-9) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.06e-9) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.059d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.06d-9) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.059) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.06e-9) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.059: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.06e-9: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.059) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.06e-9) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.059) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.06e-9) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.059], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e-9], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.059:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-9}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.058999999999999997Initial program 21.3%
associate-/l*27.4%
sub-neg27.4%
metadata-eval27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
fma-define27.4%
Simplified27.4%
Taylor expanded in x around inf 87.7%
associate-*r/87.7%
metadata-eval87.7%
Simplified87.7%
if -0.058999999999999997 < x < 1.0600000000000001e-9Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 71.0%
if 1.0600000000000001e-9 < x Initial program 16.4%
associate-/l*24.8%
sub-neg24.8%
metadata-eval24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
fma-define24.8%
Simplified24.8%
Taylor expanded in x around inf 79.3%
Final simplification76.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.059) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.059) || !(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 <= (-0.059d0)) .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 <= -0.059) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.059) 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 <= -0.059) || !(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 <= -0.059) || ~((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, -0.059], 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 -0.059 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -0.058999999999999997 or 2 < x Initial program 16.3%
associate-/l*23.9%
sub-neg23.9%
metadata-eval23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
Simplified23.9%
Taylor expanded in x around inf 84.6%
*-commutative84.6%
Simplified84.6%
if -0.058999999999999997 < x < 2Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 69.6%
Final simplification76.2%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 63.2%
associate-/l*66.6%
sub-neg66.6%
metadata-eval66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
Simplified66.6%
Taylor expanded in x around 0 40.4%
Final simplification40.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 63.2%
associate-/l*66.6%
sub-neg66.6%
metadata-eval66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
fma-define66.6%
Simplified66.6%
Taylor expanded in x around inf 39.1%
Taylor expanded in x around 0 3.3%
(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 2024181
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))