
(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 21 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
(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))
4e+306)
(/
(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)
(+ (/ y (pow x 3.0)) (+ 4.16438922228 (/ -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)) <= 4e+306) {
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) * ((y / pow(x, 3.0)) + (4.16438922228 + (-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)) <= 4e+306) 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(Float64(y / (x ^ 3.0)) + Float64(4.16438922228 + Float64(-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], 4e+306], 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[(N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 4 \cdot 10^{+306}:\\
\;\;\;\;\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(\frac{y}{{x}^{3}} + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.00000000000000007e306Initial program 98.9%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Applied egg-rr99.5%
if 4.00000000000000007e306 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.4%
associate-/l*6.6%
sub-neg6.6%
metadata-eval6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
Simplified6.6%
Taylor expanded in x around -inf 97.5%
+-commutative97.5%
associate--l+97.5%
+-commutative97.5%
mul-1-neg97.5%
unsub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
mul-1-neg97.5%
unsub-neg97.5%
sub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
distribute-neg-frac97.5%
metadata-eval97.5%
Simplified97.5%
Taylor expanded in y around inf 97.5%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)
4e+306)
(*
(+ x -2.0)
(+
(/ z t_0)
(/
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ 78.6994924154 (cbrt (pow (* x 4.16438922228) 3.0))))))))
t_0)))
(*
(+ x -2.0)
(+ (/ y (pow x 3.0)) (+ 4.16438922228 (/ -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 tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) <= 4e+306) {
tmp = (x + -2.0) * ((z / t_0) + ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + cbrt(pow((x * 4.16438922228), 3.0)))))))) / t_0));
} else {
tmp = (x + -2.0) * ((y / pow(x, 3.0)) + (4.16438922228 + (-101.7851458539211 / x)));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) <= 4e+306) {
tmp = (x + -2.0) * ((z / t_0) + ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + Math.cbrt(Math.pow((x * 4.16438922228), 3.0)))))))) / t_0));
} else {
tmp = (x + -2.0) * ((y / Math.pow(x, 3.0)) + (4.16438922228 + (-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) 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)) / t_0) <= 4e+306) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + cbrt((Float64(x * 4.16438922228) ^ 3.0)))))))) / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(y / (x ^ 3.0)) + Float64(4.16438922228 + Float64(-101.7851458539211 / x)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[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] / t$95$0), $MachinePrecision], 4e+306], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[Power[N[Power[N[(x * 4.16438922228), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\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)}{t\_0} \leq 4 \cdot 10^{+306}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + \sqrt[3]{{\left(x \cdot 4.16438922228\right)}^{3}}\right)\right)\right)}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{y}{{x}^{3}} + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.00000000000000007e306Initial program 98.9%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
add-cbrt-cube99.5%
pow399.5%
*-commutative99.5%
Applied egg-rr99.5%
if 4.00000000000000007e306 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.4%
associate-/l*6.6%
sub-neg6.6%
metadata-eval6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
Simplified6.6%
Taylor expanded in x around -inf 97.5%
+-commutative97.5%
associate--l+97.5%
+-commutative97.5%
mul-1-neg97.5%
unsub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
mul-1-neg97.5%
unsub-neg97.5%
sub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
distribute-neg-frac97.5%
metadata-eval97.5%
Simplified97.5%
Taylor expanded in y around inf 97.5%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_2) 4e+306)
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(* x (+ 313.399215894 (fma x 263.505074721 (* x t_1))))))
(/ t_0 t_2)))
(*
(+ x -2.0)
(+ (/ y (pow x 3.0)) (+ 4.16438922228 (/ -101.7851458539211 x)))))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 4e+306) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + fma(x, 263.505074721, (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * ((y / pow(x, 3.0)) + (4.16438922228 + (-101.7851458539211 / x)));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(x * Float64(x + 43.3400022514)) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_2) <= 4e+306) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + fma(x, 263.505074721, Float64(x * t_1)))))) + Float64(t_0 / t_2))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(y / (x ^ 3.0)) + Float64(4.16438922228 + Float64(-101.7851458539211 / x)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 4e+306], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
t_2 := x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_2} \leq 4 \cdot 10^{+306}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + \mathsf{fma}\left(x, 263.505074721, x \cdot t\_1\right)\right)} + \frac{t\_0}{t\_2}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{y}{{x}^{3}} + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.00000000000000007e306Initial program 98.9%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
distribute-lft-in99.5%
fma-define99.5%
+-commutative99.5%
Applied egg-rr99.5%
if 4.00000000000000007e306 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.4%
associate-/l*6.6%
sub-neg6.6%
metadata-eval6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
Simplified6.6%
Taylor expanded in x around -inf 97.5%
+-commutative97.5%
associate--l+97.5%
+-commutative97.5%
mul-1-neg97.5%
unsub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
mul-1-neg97.5%
unsub-neg97.5%
sub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
distribute-neg-frac97.5%
metadata-eval97.5%
Simplified97.5%
Taylor expanded in y around inf 97.5%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_2) 4e+306)
(*
(+ x -2.0)
(+
(/ z t_2)
(/
t_0
(+
47.066876606
(* x (+ 313.399215894 (+ (* x t_1) (* x 263.505074721))))))))
(*
(+ x -2.0)
(+ (/ y (pow x 3.0)) (+ 4.16438922228 (/ -101.7851458539211 x)))))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 4e+306) {
tmp = (x + -2.0) * ((z / t_2) + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721)))))));
} else {
tmp = (x + -2.0) * ((y / pow(x, 3.0)) + (4.16438922228 + (-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) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = x * (x + 43.3400022514d0)
t_2 = (x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((((x - 2.0d0) * (t_0 + z)) / t_2) <= 4d+306) then
tmp = (x + (-2.0d0)) * ((z / t_2) + (t_0 / (47.066876606d0 + (x * (313.399215894d0 + ((x * t_1) + (x * 263.505074721d0)))))))
else
tmp = (x + (-2.0d0)) * ((y / (x ** 3.0d0)) + (4.16438922228d0 + ((-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 * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 4e+306) {
tmp = (x + -2.0) * ((z / t_2) + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721)))))));
} else {
tmp = (x + -2.0) * ((y / Math.pow(x, 3.0)) + (4.16438922228 + (-101.7851458539211 / x)));
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = x * (x + 43.3400022514) t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_2) <= 4e+306: tmp = (x + -2.0) * ((z / t_2) + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721))))))) else: tmp = (x + -2.0) * ((y / math.pow(x, 3.0)) + (4.16438922228 + (-101.7851458539211 / x))) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(x * Float64(x + 43.3400022514)) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_2) <= 4e+306) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_2) + Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * t_1) + Float64(x * 263.505074721)))))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(y / (x ^ 3.0)) + Float64(4.16438922228 + Float64(-101.7851458539211 / x)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = x * (x + 43.3400022514); t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_2) <= 4e+306) tmp = (x + -2.0) * ((z / t_2) + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721))))))); else tmp = (x + -2.0) * ((y / (x ^ 3.0)) + (4.16438922228 + (-101.7851458539211 / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 4e+306], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$2), $MachinePrecision] + N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * t$95$1), $MachinePrecision] + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
t_2 := x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_2} \leq 4 \cdot 10^{+306}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_2} + \frac{t\_0}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot t\_1 + x \cdot 263.505074721\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{y}{{x}^{3}} + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.00000000000000007e306Initial program 98.9%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
distribute-lft-in99.5%
+-commutative99.5%
Applied egg-rr99.5%
if 4.00000000000000007e306 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.4%
associate-/l*6.6%
sub-neg6.6%
metadata-eval6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
fma-define6.6%
Simplified6.6%
Taylor expanded in x around -inf 97.5%
+-commutative97.5%
associate--l+97.5%
+-commutative97.5%
mul-1-neg97.5%
unsub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
mul-1-neg97.5%
unsub-neg97.5%
sub-neg97.5%
associate-*r/97.5%
metadata-eval97.5%
distribute-neg-frac97.5%
metadata-eval97.5%
Simplified97.5%
Taylor expanded in y around inf 97.5%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606))
(t_3 (/ z t_2)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_2) 5e+270)
(*
(+ x -2.0)
(+
t_3
(/
t_0
(+
47.066876606
(* x (+ 313.399215894 (+ (* x t_1) (* x 263.505074721))))))))
(* (+ x -2.0) (+ 4.16438922228 t_3)))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_3 = z / t_2;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 5e+270) {
tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721)))))));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_3);
}
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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = x * (x + 43.3400022514d0)
t_2 = (x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_3 = z / t_2
if ((((x - 2.0d0) * (t_0 + z)) / t_2) <= 5d+270) then
tmp = (x + (-2.0d0)) * (t_3 + (t_0 / (47.066876606d0 + (x * (313.399215894d0 + ((x * t_1) + (x * 263.505074721d0)))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_3)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_3 = z / t_2;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 5e+270) {
tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721)))))));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_3);
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = x * (x + 43.3400022514) t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606 t_3 = z / t_2 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_2) <= 5e+270: tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721))))))) else: tmp = (x + -2.0) * (4.16438922228 + t_3) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(x * Float64(x + 43.3400022514)) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606) t_3 = Float64(z / t_2) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_2) <= 5e+270) tmp = Float64(Float64(x + -2.0) * Float64(t_3 + Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * t_1) + Float64(x * 263.505074721)))))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_3)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = x * (x + 43.3400022514); t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606; t_3 = z / t_2; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_2) <= 5e+270) tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * t_1) + (x * 263.505074721))))))); else tmp = (x + -2.0) * (4.16438922228 + t_3); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$3 = N[(z / t$95$2), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 5e+270], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$3 + N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * t$95$1), $MachinePrecision] + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
t_2 := x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_3 := \frac{z}{t\_2}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_2} \leq 5 \cdot 10^{+270}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_3 + \frac{t\_0}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot t\_1 + x \cdot 263.505074721\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_3\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.99999999999999976e270Initial program 98.9%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
distribute-lft-in99.5%
+-commutative99.5%
Applied egg-rr99.5%
if 4.99999999999999976e270 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 4.0%
associate-/l*9.9%
sub-neg9.9%
metadata-eval9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
Simplified9.9%
Taylor expanded in z around 0 9.9%
Taylor expanded in x around inf 97.4%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_2 (/ z t_1)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_1) 5e+270)
(* (+ x -2.0) (+ t_2 (/ t_0 t_1)))
(* (+ x -2.0) (+ 4.16438922228 t_2)))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 5e+270) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
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) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_2 = z / t_1
if ((((x - 2.0d0) * (t_0 + z)) / t_1) <= 5d+270) then
tmp = (x + (-2.0d0)) * (t_2 + (t_0 / t_1))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 5e+270) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_2 = z / t_1 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_1) <= 5e+270: tmp = (x + -2.0) * (t_2 + (t_0 / t_1)) else: tmp = (x + -2.0) * (4.16438922228 + t_2) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_1) <= 5e+270) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(t_0 / t_1))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_2)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_1) <= 5e+270) tmp = (x + -2.0) * (t_2 + (t_0 / t_1)); else tmp = (x + -2.0) * (4.16438922228 + t_2); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = 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$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 5e+270], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_2 := \frac{z}{t\_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_1} \leq 5 \cdot 10^{+270}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + \frac{t\_0}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_2\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.99999999999999976e270Initial program 98.9%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
if 4.99999999999999976e270 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 4.0%
associate-/l*9.9%
sub-neg9.9%
metadata-eval9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
Simplified9.9%
Taylor expanded in z around 0 9.9%
Taylor expanded in x around inf 97.4%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 5e+270) t_1 (* (+ x -2.0) (+ 4.16438922228 (/ z t_0))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 5e+270) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / t_0
if (t_1 <= 5d+270) then
tmp = t_1
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
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 - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 5e+270) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= 5e+270: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= 5e+270) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= 5e+270) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(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] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+270], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $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 := \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)}{t\_0}\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+270}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.99999999999999976e270Initial program 98.9%
if 4.99999999999999976e270 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 4.0%
associate-/l*9.9%
sub-neg9.9%
metadata-eval9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
fma-define9.9%
Simplified9.9%
Taylor expanded in z around 0 9.9%
Taylor expanded in x around inf 97.4%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (or (<= x -6.1e+22) (not (<= x 350000000.0)))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -6.1e+22) || !(x <= 350000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((x <= (-6.1d+22)) .or. (.not. (x <= 350000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -6.1e+22) || !(x <= 350000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (x <= -6.1e+22) or not (x <= 350000000.0): tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if ((x <= -6.1e+22) || !(x <= 350000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((x <= -6.1e+22) || ~((x <= 350000000.0))) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[Or[LessEqual[x, -6.1e+22], N[Not[LessEqual[x, 350000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -6.1 \cdot 10^{+22} \lor \neg \left(x \leq 350000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\end{array}
\end{array}
if x < -6.0999999999999998e22 or 3.5e8 < x Initial program 11.8%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
Simplified18.0%
Taylor expanded in z around 0 18.0%
Taylor expanded in x around inf 97.2%
if -6.0999999999999998e22 < x < 3.5e8Initial program 98.9%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Final simplification98.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.95e-24) (not (<= x 0.00044)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.95e-24) || !(x <= 0.00044)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.95d-24)) .or. (.not. (x <= 0.00044d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.95e-24) || !(x <= 0.00044)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.95e-24) or not (x <= 0.00044): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.95e-24) || !(x <= 0.00044)) 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)))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.95e-24) || ~((x <= 0.00044))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.95e-24], N[Not[LessEqual[x, 0.00044]], $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], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.95 \cdot 10^{-24} \lor \neg \left(x \leq 0.00044\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -1.95e-24 or 4.40000000000000016e-4 < x Initial program 18.9%
associate-/l*24.6%
sub-neg24.6%
metadata-eval24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
Simplified24.6%
Taylor expanded in z around 0 24.6%
Taylor expanded in x around inf 92.9%
if -1.95e-24 < x < 4.40000000000000016e-4Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 92.9%
Final simplification92.9%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 2.2)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.2) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 2.2d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.2) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 2.2: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 2.2) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 2.2) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.2], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.2:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 2.2000000000000002Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 88.7%
if 2.2000000000000002 < x Initial program 11.6%
associate-/l*20.8%
sub-neg20.8%
metadata-eval20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
Simplified20.8%
Taylor expanded in x around inf 94.1%
Final simplification91.3%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 7.5)
(+
(* z -0.0424927283095952)
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804))))
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 7.5) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 7.5d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 7.5) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 7.5: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 7.5) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 7.5) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); else tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 7.5], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 7.5:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 7.5Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 88.7%
if 7.5 < x Initial program 11.6%
associate-/l*20.8%
sub-neg20.8%
metadata-eval20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
Simplified20.8%
Taylor expanded in x around inf 94.1%
Final simplification91.3%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 7.8)
(+
(* z -0.0424927283095952)
(* x (- (* y -0.0424927283095952) (* z -0.28294182010212804))))
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 7.8) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804)));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 7.8d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) - (z * (-0.28294182010212804d0))))
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 7.8) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804)));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 7.8: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804))) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 7.8) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(z * -0.28294182010212804)))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 7.8) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804))); else tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 7.8], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 7.8:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 - z \cdot -0.28294182010212804\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 7.79999999999999982Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 88.7%
Taylor expanded in z around 0 88.5%
if 7.79999999999999982 < x Initial program 11.6%
associate-/l*20.8%
sub-neg20.8%
metadata-eval20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
Simplified20.8%
Taylor expanded in x around inf 94.1%
Final simplification91.2%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 2.0)
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 2.0: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); else tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 2Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 88.7%
Taylor expanded in z around 0 88.5%
Taylor expanded in y around inf 88.4%
*-commutative88.4%
associate-*l*88.5%
Simplified88.5%
if 2 < x Initial program 11.6%
associate-/l*20.8%
sub-neg20.8%
metadata-eval20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
Simplified20.8%
Taylor expanded in x around inf 94.1%
Final simplification91.2%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 2.0)
(+ (* z -0.0424927283095952) (* -0.0424927283095952 (* x y)))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = (z * (-0.0424927283095952d0)) + ((-0.0424927283095952d0) * (x * y))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 2.0: tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(-0.0424927283095952 * Float64(x * y))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952 + -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 2Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 88.7%
Taylor expanded in z around 0 88.4%
if 2 < x Initial program 11.6%
associate-/l*20.8%
sub-neg20.8%
metadata-eval20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
Simplified20.8%
Taylor expanded in x around inf 94.1%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 2.7)
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.7) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 2.7d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 2.7) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 2.7: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 2.7) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 2.7) tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.7], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.7:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 2.7000000000000002Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 88.7%
Taylor expanded in z around 0 88.5%
Taylor expanded in y around inf 88.4%
*-commutative88.4%
associate-*l*88.5%
Simplified88.5%
if 2.7000000000000002 < x Initial program 11.6%
associate-/l*20.8%
sub-neg20.8%
metadata-eval20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
fma-define20.8%
Simplified20.8%
Taylor expanded in x around inf 94.1%
Final simplification91.2%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 1.15e-23)
(* z (- (* x 0.3041881842569256) 0.0424927283095952))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.15e-23) {
tmp = z * ((x * 0.3041881842569256) - 0.0424927283095952);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 1.15d-23) then
tmp = z * ((x * 0.3041881842569256d0) - 0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.15e-23) {
tmp = z * ((x * 0.3041881842569256) - 0.0424927283095952);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 1.15e-23: tmp = z * ((x * 0.3041881842569256) - 0.0424927283095952) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 1.15e-23) tmp = Float64(z * Float64(Float64(x * 0.3041881842569256) - 0.0424927283095952)); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 1.15e-23) tmp = z * ((x * 0.3041881842569256) - 0.0424927283095952); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.15e-23], N[(z * N[(N[(x * 0.3041881842569256), $MachinePrecision] - 0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-23}:\\
\;\;\;\;z \cdot \left(x \cdot 0.3041881842569256 - 0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 1.15000000000000005e-23Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around inf 59.2%
sub-neg59.2%
metadata-eval59.2%
associate-/l*59.0%
+-commutative59.0%
+-commutative59.0%
+-commutative59.0%
+-commutative59.0%
fma-undefine59.0%
fma-undefine59.0%
fma-undefine59.0%
Simplified59.0%
Taylor expanded in x around 0 57.7%
if 1.15000000000000005e-23 < x Initial program 16.9%
associate-/l*25.6%
sub-neg25.6%
metadata-eval25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
Simplified25.6%
Taylor expanded in x around inf 88.6%
Final simplification74.3%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 1.15e-23)
(* z -0.0424927283095952)
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.15e-23) {
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 1.15d-23) 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 <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.15e-23) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 1.15e-23: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 1.15e-23) 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 <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 1.15e-23) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.15e-23], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-23}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 1.15000000000000005e-23Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if 1.15000000000000005e-23 < x Initial program 16.9%
associate-/l*25.6%
sub-neg25.6%
metadata-eval25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
Simplified25.6%
Taylor expanded in x around inf 88.0%
Final simplification74.0%
(FPCore (x y z)
:precision binary64
(if (<= x -7.3e+21)
(* x 4.16438922228)
(if (<= x 1.15e-23)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.15e-23) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
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 <= (-7.3d+21)) then
tmp = x * 4.16438922228d0
else if (x <= 1.15d-23) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.3e+21) {
tmp = x * 4.16438922228;
} else if (x <= 1.15e-23) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.3e+21: tmp = x * 4.16438922228 elif x <= 1.15e-23: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.3e+21) tmp = Float64(x * 4.16438922228); elseif (x <= 1.15e-23) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.3e+21) tmp = x * 4.16438922228; elseif (x <= 1.15e-23) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.3e+21], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.15e-23], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-23}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.3e21Initial program 13.3%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
fma-define16.5%
Simplified16.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 94.2%
*-commutative94.2%
Simplified94.2%
if -7.3e21 < x < 1.15000000000000005e-23Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if 1.15000000000000005e-23 < x Initial program 16.9%
associate-/l*25.6%
sub-neg25.6%
metadata-eval25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
fma-define25.6%
Simplified25.6%
Taylor expanded in x around inf 88.6%
Final simplification74.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -7.3e+21) (not (<= x 1.35e-8))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7.3e+21) || !(x <= 1.35e-8)) {
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 <= (-7.3d+21)) .or. (.not. (x <= 1.35d-8))) 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 <= -7.3e+21) || !(x <= 1.35e-8)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7.3e+21) or not (x <= 1.35e-8): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7.3e+21) || !(x <= 1.35e-8)) 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 <= -7.3e+21) || ~((x <= 1.35e-8))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7.3e+21], N[Not[LessEqual[x, 1.35e-8]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.3 \cdot 10^{+21} \lor \neg \left(x \leq 1.35 \cdot 10^{-8}\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -7.3e21 or 1.35000000000000001e-8 < x Initial program 13.2%
associate-/l*19.3%
sub-neg19.3%
metadata-eval19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
Simplified19.3%
Applied egg-rr19.3%
Taylor expanded in x around inf 93.1%
*-commutative93.1%
Simplified93.1%
if -7.3e21 < x < 1.35000000000000001e-8Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 56.2%
*-commutative56.2%
Simplified56.2%
Final simplification73.9%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 57.7%
associate-/l*60.7%
sub-neg60.7%
metadata-eval60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
Simplified60.7%
Applied egg-rr60.7%
Taylor expanded in x around inf 46.5%
*-commutative46.5%
Simplified46.5%
Final simplification46.5%
(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 57.7%
associate-/l*60.7%
sub-neg60.7%
metadata-eval60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
fma-define60.7%
Simplified60.7%
Taylor expanded in x around inf 46.4%
Taylor expanded in x around 0 3.1%
Final simplification3.1%
(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 2024053
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))