
(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))
1e+304)
(*
(+ x -2.0)
(/
(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)
(+
(+
(+ 4.16438922228 (/ 3451.550173699799 (* x x)))
(/ (- y 124074.40615218398) (pow x 3.0)))
(/ -101.7851458539211 x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+304) {
tmp = (x + -2.0) * (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));
} else {
tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / pow(x, 3.0))) + (-101.7851458539211 / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+304) tmp = Float64(Float64(x + -2.0) * Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(4.16438922228 + Float64(3451.550173699799 / Float64(x * x))) + Float64(Float64(y - 124074.40615218398) / (x ^ 3.0))) + 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], 1e+304], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(4.16438922228 + N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 124074.40615218398), $MachinePrecision] / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+304}:\\
\;\;\;\;\left(x + -2\right) \cdot \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)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\left(\left(4.16438922228 + \frac{3451.550173699799}{x \cdot x}\right) + \frac{y - 124074.40615218398}{{x}^{3}}\right) + \frac{-101.7851458539211}{x}\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)) < 9.9999999999999994e303Initial program 98.2%
associate-*r/98.8%
sub-neg98.8%
metadata-eval98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.9%
*-commutative98.9%
fma-def98.8%
fma-def98.8%
*-commutative98.8%
Simplified98.9%
if 9.9999999999999994e303 < (/.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.1%
associate-*r/2.8%
sub-neg2.8%
metadata-eval2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
fma-def2.8%
*-commutative2.8%
Simplified2.8%
Taylor expanded in x around -inf 99.0%
sub-neg99.0%
+-commutative99.0%
mul-1-neg99.0%
unsub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
unpow299.0%
mul-1-neg99.0%
unsub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
distribute-neg-frac99.0%
metadata-eval99.0%
Simplified99.0%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))))
(if (<=
(/
t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+304)
(/
t_0
(+
47.066876606
(*
x
(+
313.399215894
(+
(* 43.3400022514 (pow x 2.0))
(+ (pow x 3.0) (* x 263.505074721)))))))
(*
(+ x -2.0)
(+
(+
(+ 4.16438922228 (/ 3451.550173699799 (* x x)))
(/ (- y 124074.40615218398) (pow x 3.0)))
(/ -101.7851458539211 x))))))
double code(double x, double y, double z) {
double t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z);
double tmp;
if ((t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+304) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((43.3400022514 * pow(x, 2.0)) + (pow(x, 3.0) + (x * 263.505074721))))));
} else {
tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / pow(x, 3.0))) + (-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) :: tmp
t_0 = (x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)
if ((t_0 / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) <= 1d+304) then
tmp = t_0 / (47.066876606d0 + (x * (313.399215894d0 + ((43.3400022514d0 * (x ** 2.0d0)) + ((x ** 3.0d0) + (x * 263.505074721d0))))))
else
tmp = (x + (-2.0d0)) * (((4.16438922228d0 + (3451.550173699799d0 / (x * x))) + ((y - 124074.40615218398d0) / (x ** 3.0d0))) + ((-101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z);
double tmp;
if ((t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+304) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((43.3400022514 * Math.pow(x, 2.0)) + (Math.pow(x, 3.0) + (x * 263.505074721))))));
} else {
tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / Math.pow(x, 3.0))) + (-101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) tmp = 0 if (t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+304: tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((43.3400022514 * math.pow(x, 2.0)) + (math.pow(x, 3.0) + (x * 263.505074721)))))) else: tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / math.pow(x, 3.0))) + (-101.7851458539211 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) tmp = 0.0 if (Float64(t_0 / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+304) tmp = Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(43.3400022514 * (x ^ 2.0)) + Float64((x ^ 3.0) + Float64(x * 263.505074721))))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(4.16438922228 + Float64(3451.550173699799 / Float64(x * x))) + Float64(Float64(y - 124074.40615218398) / (x ^ 3.0))) + Float64(-101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z); tmp = 0.0; if ((t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+304) tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((43.3400022514 * (x ^ 2.0)) + ((x ^ 3.0) + (x * 263.505074721)))))); else tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / (x ^ 3.0))) + (-101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$0 / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 1e+304], N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(43.3400022514 * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[Power[x, 3.0], $MachinePrecision] + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(4.16438922228 + N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 124074.40615218398), $MachinePrecision] / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)\\
\mathbf{if}\;\frac{t_0}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+304}:\\
\;\;\;\;\frac{t_0}{47.066876606 + x \cdot \left(313.399215894 + \left(43.3400022514 \cdot {x}^{2} + \left({x}^{3} + x \cdot 263.505074721\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\left(\left(4.16438922228 + \frac{3451.550173699799}{x \cdot x}\right) + \frac{y - 124074.40615218398}{{x}^{3}}\right) + \frac{-101.7851458539211}{x}\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)) < 9.9999999999999994e303Initial program 98.2%
Taylor expanded in x around 0 98.2%
if 9.9999999999999994e303 < (/.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.1%
associate-*r/2.8%
sub-neg2.8%
metadata-eval2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
fma-def2.8%
*-commutative2.8%
Simplified2.8%
Taylor expanded in x around -inf 99.0%
sub-neg99.0%
+-commutative99.0%
mul-1-neg99.0%
unsub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
unpow299.0%
mul-1-neg99.0%
unsub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
distribute-neg-frac99.0%
metadata-eval99.0%
Simplified99.0%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) 1e+304)
(+ (/ (* t_1 (* x (- x 2.0))) t_0) (/ (* (- x 2.0) z) t_0))
(*
(+ x -2.0)
(+
(+
(+ 4.16438922228 (/ 3451.550173699799 (* x x)))
(/ (- y 124074.40615218398) (pow x 3.0)))
(/ -101.7851458539211 x))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304) {
tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / pow(x, 3.0))) + (-101.7851458539211 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y
if ((((x - 2.0d0) * ((x * t_1) + z)) / t_0) <= 1d+304) then
tmp = ((t_1 * (x * (x - 2.0d0))) / t_0) + (((x - 2.0d0) * z) / t_0)
else
tmp = (x + (-2.0d0)) * (((4.16438922228d0 + (3451.550173699799d0 / (x * x))) + ((y - 124074.40615218398d0) / (x ** 3.0d0))) + ((-101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304) {
tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / Math.pow(x, 3.0))) + (-101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304: tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0) else: tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / math.pow(x, 3.0))) + (-101.7851458539211 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= 1e+304) tmp = Float64(Float64(Float64(t_1 * Float64(x * Float64(x - 2.0))) / t_0) + Float64(Float64(Float64(x - 2.0) * z) / t_0)); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(4.16438922228 + Float64(3451.550173699799 / Float64(x * x))) + Float64(Float64(y - 124074.40615218398) / (x ^ 3.0))) + Float64(-101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y; tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304) tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0); else tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + ((y - 124074.40615218398) / (x ^ 3.0))) + (-101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+304], N[(N[(N[(t$95$1 * N[(x * N[(x - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(4.16438922228 + N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 124074.40615218398), $MachinePrecision] / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t_1 + z\right)}{t_0} \leq 10^{+304}:\\
\;\;\;\;\frac{t_1 \cdot \left(x \cdot \left(x - 2\right)\right)}{t_0} + \frac{\left(x - 2\right) \cdot z}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\left(\left(4.16438922228 + \frac{3451.550173699799}{x \cdot x}\right) + \frac{y - 124074.40615218398}{{x}^{3}}\right) + \frac{-101.7851458539211}{x}\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)) < 9.9999999999999994e303Initial program 98.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-def98.7%
fma-def98.7%
fma-def98.7%
fma-def98.7%
fma-def98.8%
fma-def98.7%
fma-def98.7%
Simplified98.7%
Taylor expanded in z around inf 98.2%
if 9.9999999999999994e303 < (/.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.1%
associate-*r/2.8%
sub-neg2.8%
metadata-eval2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
fma-def2.8%
*-commutative2.8%
Simplified2.8%
Taylor expanded in x around -inf 99.0%
sub-neg99.0%
+-commutative99.0%
mul-1-neg99.0%
unsub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
unpow299.0%
mul-1-neg99.0%
unsub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
distribute-neg-frac99.0%
metadata-eval99.0%
Simplified99.0%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) 1e+304)
(+ (/ (* t_1 (* x (- x 2.0))) t_0) (/ (* (- x 2.0) z) t_0))
(+
(+
(+ (* x 4.16438922228) (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304) {
tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * 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) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y
if ((((x - 2.0d0) * ((x * t_1) + z)) / t_0) <= 1d+304) then
tmp = ((t_1 * (x * (x - 2.0d0))) / t_0) + (((x - 2.0d0) * z) / t_0)
else
tmp = (((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304) {
tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304: tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0) else: tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 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(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= 1e+304) tmp = Float64(Float64(Float64(t_1 * Float64(x * Float64(x - 2.0))) / t_0) + Float64(Float64(Float64(x - 2.0) * z) / t_0)); else tmp = Float64(Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y; tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+304) tmp = ((t_1 * (x * (x - 2.0))) / t_0) + (((x - 2.0) * z) / t_0); else tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; 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[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+304], N[(N[(N[(t$95$1 * N[(x * N[(x - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t_1 + z\right)}{t_0} \leq 10^{+304}:\\
\;\;\;\;\frac{t_1 \cdot \left(x \cdot \left(x - 2\right)\right)}{t_0} + \frac{\left(x - 2\right) \cdot z}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\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)) < 9.9999999999999994e303Initial program 98.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-def98.7%
fma-def98.7%
fma-def98.7%
fma-def98.7%
fma-def98.8%
fma-def98.7%
fma-def98.7%
Simplified98.7%
Taylor expanded in z around inf 98.2%
if 9.9999999999999994e303 < (/.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.1%
associate-*r/2.8%
sub-neg2.8%
metadata-eval2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
fma-def2.8%
*-commutative2.8%
Simplified2.8%
Taylor expanded in x around -inf 99.0%
sub-neg99.0%
+-commutative99.0%
mul-1-neg99.0%
unsub-neg99.0%
*-commutative99.0%
fma-def99.0%
associate-*r/99.0%
metadata-eval99.0%
mul-1-neg99.0%
unsub-neg99.0%
unpow299.0%
metadata-eval99.0%
Simplified99.0%
fma-udef99.0%
Applied egg-rr99.0%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 1e+304)
t_0
(+
(+
(+ (* x 4.16438922228) (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+304) {
tmp = t_0;
} else {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * 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) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+304) then
tmp = t_0
else
tmp = (((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+304) {
tmp = t_0;
} else {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 1e+304: tmp = t_0 else: tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 1e+304) tmp = t_0; else tmp = Float64(Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 1e+304) tmp = t_0; else tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 1e+304], t$95$0, N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t_0 \leq 10^{+304}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\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)) < 9.9999999999999994e303Initial program 98.2%
if 9.9999999999999994e303 < (/.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.1%
associate-*r/2.8%
sub-neg2.8%
metadata-eval2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
*-commutative2.8%
fma-def2.8%
fma-def2.8%
*-commutative2.8%
Simplified2.8%
Taylor expanded in x around -inf 99.0%
sub-neg99.0%
+-commutative99.0%
mul-1-neg99.0%
unsub-neg99.0%
*-commutative99.0%
fma-def99.0%
associate-*r/99.0%
metadata-eval99.0%
mul-1-neg99.0%
unsub-neg99.0%
unpow299.0%
metadata-eval99.0%
Simplified99.0%
fma-udef99.0%
Applied egg-rr99.0%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(if (<= x -3.9e+46)
(+
(+
(+ (* x 4.16438922228) (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(if (<= x 8e+58)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.9e+46) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else if (x <= 8e+58) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
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 <= (-3.9d+46)) then
tmp = (((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else if (x <= 8d+58) then
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.9e+46) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else if (x <= 8e+58) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.9e+46: tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 elif x <= 8e+58: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.9e+46) tmp = Float64(Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); elseif (x <= 8e+58) tmp = 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(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.9e+46) tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; elseif (x <= 8e+58) tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.9e+46], N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], If[LessEqual[x, 8e+58], 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[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.9 \cdot 10^{+46}:\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+58}:\\
\;\;\;\;\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)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -3.89999999999999995e46Initial program 4.1%
associate-*r/6.1%
sub-neg6.1%
metadata-eval6.1%
*-commutative6.1%
fma-def6.1%
*-commutative6.1%
fma-def6.1%
*-commutative6.1%
fma-def6.1%
fma-def6.1%
*-commutative6.1%
Simplified6.1%
Taylor expanded in x around -inf 99.0%
sub-neg99.0%
+-commutative99.0%
mul-1-neg99.0%
unsub-neg99.0%
*-commutative99.0%
fma-def99.0%
associate-*r/99.0%
metadata-eval99.0%
mul-1-neg99.0%
unsub-neg99.0%
unpow299.0%
metadata-eval99.0%
Simplified99.0%
fma-udef99.0%
Applied egg-rr99.0%
if -3.89999999999999995e46 < x < 7.99999999999999955e58Initial program 99.5%
Taylor expanded in x around inf 96.2%
cube-mult96.2%
unpow296.2%
distribute-rgt-out96.2%
+-commutative96.2%
unpow296.2%
Simplified96.2%
if 7.99999999999999955e58 < x Initial program 0.2%
associate-/l*4.9%
sub-neg4.9%
metadata-eval4.9%
fma-def4.9%
fma-def4.9%
fma-def4.9%
fma-def4.9%
fma-def4.9%
fma-def4.9%
fma-def4.9%
Simplified4.9%
Taylor expanded in x around inf 99.6%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.15e+25) (not (<= x 250000000000.0)))
(+
(+
(+ (* x 4.16438922228) (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.15e+25) || !(x <= 250000000000.0)) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.15d+25)) .or. (.not. (x <= 250000000000.0d0))) then
tmp = (((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.15e+25) || !(x <= 250000000000.0)) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.15e+25) or not (x <= 250000000000.0): tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.15e+25) || !(x <= 250000000000.0)) tmp = Float64(Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.15e+25) || ~((x <= 250000000000.0))) tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.15e+25], N[Not[LessEqual[x, 250000000000.0]], $MachinePrecision]], N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.15 \cdot 10^{+25} \lor \neg \left(x \leq 250000000000\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\end{array}
\end{array}
if x < -1.1499999999999999e25 or 2.5e11 < x Initial program 11.4%
associate-*r/14.5%
sub-neg14.5%
metadata-eval14.5%
*-commutative14.5%
fma-def14.5%
*-commutative14.5%
fma-def14.5%
*-commutative14.5%
fma-def14.5%
fma-def14.5%
*-commutative14.5%
Simplified14.5%
Taylor expanded in x around -inf 97.5%
sub-neg97.5%
+-commutative97.5%
mul-1-neg97.5%
unsub-neg97.5%
*-commutative97.5%
fma-def97.5%
associate-*r/97.5%
metadata-eval97.5%
mul-1-neg97.5%
unsub-neg97.5%
unpow297.5%
metadata-eval97.5%
Simplified97.5%
fma-udef97.5%
Applied egg-rr97.5%
if -1.1499999999999999e25 < x < 2.5e11Initial program 99.6%
Taylor expanded in x around 0 96.4%
*-commutative96.4%
Simplified96.4%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -64.0) (not (<= x 0.75)))
(+
(+
(+ (* x 4.16438922228) (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(+
(/
(* (- x 2.0) z)
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* -0.0424927283095952 (* x y)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -64.0) || !(x <= 0.75)) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (-0.0424927283095952 * (x * y));
}
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 <= (-64.0d0)) .or. (.not. (x <= 0.75d0))) then
tmp = (((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else
tmp = (((x - 2.0d0) * z) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) + ((-0.0424927283095952d0) * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -64.0) || !(x <= 0.75)) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (-0.0424927283095952 * (x * y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -64.0) or not (x <= 0.75): tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 else: tmp = (((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (-0.0424927283095952 * (x * y)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -64.0) || !(x <= 0.75)) tmp = Float64(Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); else tmp = Float64(Float64(Float64(Float64(x - 2.0) * z) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + Float64(-0.0424927283095952 * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -64.0) || ~((x <= 0.75))) tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; else tmp = (((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (-0.0424927283095952 * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -64.0], N[Not[LessEqual[x, 0.75]], $MachinePrecision]], N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], N[(N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision] + N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -64 \lor \neg \left(x \leq 0.75\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} + -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -64 or 0.75 < x Initial program 18.5%
associate-*r/21.4%
sub-neg21.4%
metadata-eval21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
fma-def21.4%
*-commutative21.4%
Simplified21.4%
Taylor expanded in x around -inf 92.7%
sub-neg92.7%
+-commutative92.7%
mul-1-neg92.7%
unsub-neg92.7%
*-commutative92.7%
fma-def92.7%
associate-*r/92.7%
metadata-eval92.7%
mul-1-neg92.7%
unsub-neg92.7%
unpow292.7%
metadata-eval92.7%
Simplified92.7%
fma-udef92.7%
Applied egg-rr92.7%
if -64 < x < 0.75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in z around inf 99.6%
Taylor expanded in x around 0 93.5%
Final simplification93.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x)))))))
(if (<= x -3.7e-10)
t_0
(if (<= x 7.5e-130)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 7.8e-31)
(* -0.0424927283095952 (* x y))
(if (<= x 0.75)
(+ (* x 4.16438922228) (* z -0.0424927283095952))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -3.7e-10) {
tmp = t_0;
} else if (x <= 7.5e-130) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.8e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.75) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
if (x <= (-3.7d-10)) then
tmp = t_0
else if (x <= 7.5d-130) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 7.8d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.75d0) then
tmp = (x * 4.16438922228d0) + (z * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -3.7e-10) {
tmp = t_0;
} else if (x <= 7.5e-130) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.8e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.75) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) tmp = 0 if x <= -3.7e-10: tmp = t_0 elif x <= 7.5e-130: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 7.8e-31: tmp = -0.0424927283095952 * (x * y) elif x <= 0.75: tmp = (x * 4.16438922228) + (z * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))) tmp = 0.0 if (x <= -3.7e-10) tmp = t_0; elseif (x <= 7.5e-130) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 7.8e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.75) tmp = Float64(Float64(x * 4.16438922228) + Float64(z * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); tmp = 0.0; if (x <= -3.7e-10) tmp = t_0; elseif (x <= 7.5e-130) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 7.8e-31) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.75) tmp = (x * 4.16438922228) + (z * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e-10], t$95$0, If[LessEqual[x, 7.5e-130], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.75], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{-10}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-130}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.75:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -3.70000000000000015e-10 or 0.75 < x Initial program 19.2%
associate-/l*22.0%
sub-neg22.0%
metadata-eval22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
Simplified22.0%
Taylor expanded in x around inf 86.4%
+-commutative86.4%
associate--l+86.4%
associate-*r/86.4%
metadata-eval86.4%
associate-*r/86.4%
metadata-eval86.4%
unpow286.4%
Simplified86.4%
if -3.70000000000000015e-10 < x < 7.4999999999999994e-130Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 75.1%
if 7.4999999999999994e-130 < x < 7.8000000000000003e-31Initial program 99.5%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around inf 54.1%
Taylor expanded in x around 0 54.2%
if 7.8000000000000003e-31 < x < 0.75Initial program 99.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around inf 99.2%
Taylor expanded in x around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around 0 53.7%
Final simplification78.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.175) (not (<= x 12.5)))
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x)))))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 12.5)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.175d0)) .or. (.not. (x <= 12.5d0))) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 12.5)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.175) or not (x <= 12.5): tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.175) || !(x <= 12.5)) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.175) || ~((x <= 12.5))) tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.175], N[Not[LessEqual[x, 12.5]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175 \lor \neg \left(x \leq 12.5\right):\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 12.5 < x Initial program 17.9%
associate-/l*20.8%
sub-neg20.8%
metadata-eval20.8%
fma-def20.8%
fma-def20.8%
fma-def20.8%
fma-def20.8%
fma-def20.8%
fma-def20.8%
fma-def20.8%
Simplified20.8%
Taylor expanded in x around inf 87.7%
+-commutative87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
if -0.17499999999999999 < x < 12.5Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 91.9%
Final simplification89.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 0.32)))
(+
(+
(+ (* x 4.16438922228) (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.32)) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-5.5d0)) .or. (.not. (x <= 0.32d0))) then
tmp = (((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.32)) {
tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 0.32): tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 0.32)) tmp = Float64(Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 0.32))) tmp = (((x * 4.16438922228) + (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 0.32]], $MachinePrecision]], N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 0.32\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -5.5 or 0.320000000000000007 < x Initial program 18.5%
associate-*r/21.4%
sub-neg21.4%
metadata-eval21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
fma-def21.4%
*-commutative21.4%
Simplified21.4%
Taylor expanded in x around -inf 92.7%
sub-neg92.7%
+-commutative92.7%
mul-1-neg92.7%
unsub-neg92.7%
*-commutative92.7%
fma-def92.7%
associate-*r/92.7%
metadata-eval92.7%
mul-1-neg92.7%
unsub-neg92.7%
unpow292.7%
metadata-eval92.7%
Simplified92.7%
fma-udef92.7%
Applied egg-rr92.7%
if -5.5 < x < 0.320000000000000007Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 92.7%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(-
(+ (* x 4.16438922228) (/ 3655.1204654076414 x))
110.1139242984811)))
(if (<= x -0.45)
t_0
(if (<= x 6.2e-129)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 7.6e-31)
(* -0.0424927283095952 (* x y))
(if (<= x 7.8)
(+ (* x 4.16438922228) (* z -0.0424927283095952))
t_0))))))
double code(double x, double y, double z) {
double t_0 = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
double tmp;
if (x <= -0.45) {
tmp = t_0;
} else if (x <= 6.2e-129) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.6e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 7.8) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
if (x <= (-0.45d0)) then
tmp = t_0
else if (x <= 6.2d-129) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 7.6d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 7.8d0) then
tmp = (x * 4.16438922228d0) + (z * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
double tmp;
if (x <= -0.45) {
tmp = t_0;
} else if (x <= 6.2e-129) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.6e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 7.8) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 tmp = 0 if x <= -0.45: tmp = t_0 elif x <= 6.2e-129: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 7.6e-31: tmp = -0.0424927283095952 * (x * y) elif x <= 7.8: tmp = (x * 4.16438922228) + (z * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811) tmp = 0.0 if (x <= -0.45) tmp = t_0; elseif (x <= 6.2e-129) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 7.6e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 7.8) tmp = Float64(Float64(x * 4.16438922228) + Float64(z * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; tmp = 0.0; if (x <= -0.45) tmp = t_0; elseif (x <= 6.2e-129) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 7.6e-31) tmp = -0.0424927283095952 * (x * y); elseif (x <= 7.8) tmp = (x * 4.16438922228) + (z * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[LessEqual[x, -0.45], t$95$0, If[LessEqual[x, 6.2e-129], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.6e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{if}\;x \leq -0.45:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-129}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 7.8:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -0.450000000000000011 or 7.79999999999999982 < x Initial program 17.9%
associate-*r/20.8%
sub-neg20.8%
metadata-eval20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
fma-def20.8%
*-commutative20.8%
Simplified20.8%
Taylor expanded in x around inf 87.0%
Taylor expanded in x around 0 87.0%
if -0.450000000000000011 < x < 6.2000000000000001e-129Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 74.3%
if 6.2000000000000001e-129 < x < 7.5999999999999999e-31Initial program 99.5%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around inf 54.1%
Taylor expanded in x around 0 54.2%
if 7.5999999999999999e-31 < x < 7.79999999999999982Initial program 99.1%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around inf 99.1%
Taylor expanded in x around inf 56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in x around 0 47.9%
Final simplification78.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -3.7e-10)
t_0
(if (<= x 1.35e-132)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 9.2e-31)
(* -0.0424927283095952 (* x y))
(if (<= x 0.0235)
(+ (* x 4.16438922228) (* z -0.0424927283095952))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -3.7e-10) {
tmp = t_0;
} else if (x <= 1.35e-132) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 9.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0235) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
if (x <= (-3.7d-10)) then
tmp = t_0
else if (x <= 1.35d-132) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 9.2d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.0235d0) then
tmp = (x * 4.16438922228d0) + (z * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -3.7e-10) {
tmp = t_0;
} else if (x <= 1.35e-132) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 9.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0235) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -3.7e-10: tmp = t_0 elif x <= 1.35e-132: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 9.2e-31: tmp = -0.0424927283095952 * (x * y) elif x <= 0.0235: tmp = (x * 4.16438922228) + (z * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -3.7e-10) tmp = t_0; elseif (x <= 1.35e-132) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 9.2e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.0235) tmp = Float64(Float64(x * 4.16438922228) + Float64(z * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -3.7e-10) tmp = t_0; elseif (x <= 1.35e-132) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 9.2e-31) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.0235) tmp = (x * 4.16438922228) + (z * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e-10], t$95$0, If[LessEqual[x, 1.35e-132], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.2e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0235], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{-10}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-132}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.0235:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -3.70000000000000015e-10 or 0.0235 < x Initial program 19.2%
associate-/l*22.0%
sub-neg22.0%
metadata-eval22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
fma-def22.0%
Simplified22.0%
Taylor expanded in x around inf 86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
if -3.70000000000000015e-10 < x < 1.34999999999999995e-132Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 75.1%
if 1.34999999999999995e-132 < x < 9.1999999999999994e-31Initial program 99.5%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around inf 54.1%
Taylor expanded in x around 0 54.2%
if 9.1999999999999994e-31 < x < 0.0235Initial program 99.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around inf 99.2%
Taylor expanded in x around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around 0 53.7%
Final simplification78.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (* x 4.16438922228) 110.1139242984811)))
(if (<= x -0.175)
t_0
(if (<= x 6.2e-129)
(* z -0.0424927283095952)
(if (<= x 9.2e-31)
(* -0.0424927283095952 (* x y))
(if (<= x 0.118)
(+ (* x 4.16438922228) (* z -0.0424927283095952))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -0.175) {
tmp = t_0;
} else if (x <= 6.2e-129) {
tmp = z * -0.0424927283095952;
} else if (x <= 9.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.118) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * 4.16438922228d0) - 110.1139242984811d0
if (x <= (-0.175d0)) then
tmp = t_0
else if (x <= 6.2d-129) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 9.2d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.118d0) then
tmp = (x * 4.16438922228d0) + (z * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -0.175) {
tmp = t_0;
} else if (x <= 6.2e-129) {
tmp = z * -0.0424927283095952;
} else if (x <= 9.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.118) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * 4.16438922228) - 110.1139242984811 tmp = 0 if x <= -0.175: tmp = t_0 elif x <= 6.2e-129: tmp = z * -0.0424927283095952 elif x <= 9.2e-31: tmp = -0.0424927283095952 * (x * y) elif x <= 0.118: tmp = (x * 4.16438922228) + (z * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * 4.16438922228) - 110.1139242984811) tmp = 0.0 if (x <= -0.175) tmp = t_0; elseif (x <= 6.2e-129) tmp = Float64(z * -0.0424927283095952); elseif (x <= 9.2e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.118) tmp = Float64(Float64(x * 4.16438922228) + Float64(z * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * 4.16438922228) - 110.1139242984811; tmp = 0.0; if (x <= -0.175) tmp = t_0; elseif (x <= 6.2e-129) tmp = z * -0.0424927283095952; elseif (x <= 9.2e-31) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.118) tmp = (x * 4.16438922228) + (z * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[LessEqual[x, -0.175], t$95$0, If[LessEqual[x, 6.2e-129], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 9.2e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.118], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{if}\;x \leq -0.175:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-129}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.118:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 0.11799999999999999 < x Initial program 18.5%
associate-*r/21.4%
sub-neg21.4%
metadata-eval21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
fma-def21.4%
*-commutative21.4%
Simplified21.4%
Taylor expanded in x around inf 86.3%
if -0.17499999999999999 < x < 6.2000000000000001e-129Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 74.1%
*-commutative74.1%
Simplified74.1%
if 6.2000000000000001e-129 < x < 9.1999999999999994e-31Initial program 99.5%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around inf 54.1%
Taylor expanded in x around 0 54.2%
if 9.1999999999999994e-31 < x < 0.11799999999999999Initial program 99.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around inf 99.2%
Taylor expanded in x around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around 0 53.7%
Final simplification78.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (* x 4.16438922228) 110.1139242984811)))
(if (<= x -0.155)
t_0
(if (<= x 4.3e-138)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 7.8e-31)
(* -0.0424927283095952 (* x y))
(if (<= x 0.118)
(+ (* x 4.16438922228) (* z -0.0424927283095952))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -0.155) {
tmp = t_0;
} else if (x <= 4.3e-138) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.8e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.118) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * 4.16438922228d0) - 110.1139242984811d0
if (x <= (-0.155d0)) then
tmp = t_0
else if (x <= 4.3d-138) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 7.8d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.118d0) then
tmp = (x * 4.16438922228d0) + (z * (-0.0424927283095952d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -0.155) {
tmp = t_0;
} else if (x <= 4.3e-138) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.8e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.118) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * 4.16438922228) - 110.1139242984811 tmp = 0 if x <= -0.155: tmp = t_0 elif x <= 4.3e-138: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 7.8e-31: tmp = -0.0424927283095952 * (x * y) elif x <= 0.118: tmp = (x * 4.16438922228) + (z * -0.0424927283095952) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * 4.16438922228) - 110.1139242984811) tmp = 0.0 if (x <= -0.155) tmp = t_0; elseif (x <= 4.3e-138) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 7.8e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.118) tmp = Float64(Float64(x * 4.16438922228) + Float64(z * -0.0424927283095952)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * 4.16438922228) - 110.1139242984811; tmp = 0.0; if (x <= -0.155) tmp = t_0; elseif (x <= 4.3e-138) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 7.8e-31) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.118) tmp = (x * 4.16438922228) + (z * -0.0424927283095952); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[LessEqual[x, -0.155], t$95$0, If[LessEqual[x, 4.3e-138], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.118], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{if}\;x \leq -0.155:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{-138}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.118:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -0.154999999999999999 or 0.11799999999999999 < x Initial program 18.5%
associate-*r/21.4%
sub-neg21.4%
metadata-eval21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
fma-def21.4%
*-commutative21.4%
Simplified21.4%
Taylor expanded in x around inf 86.3%
if -0.154999999999999999 < x < 4.3e-138Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 74.3%
if 4.3e-138 < x < 7.8000000000000003e-31Initial program 99.5%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around inf 54.1%
Taylor expanded in x around 0 54.2%
if 7.8000000000000003e-31 < x < 0.11799999999999999Initial program 99.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around inf 99.2%
Taylor expanded in x around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around 0 53.7%
Final simplification78.3%
(FPCore (x y z)
:precision binary64
(if (<= x -0.165)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 3.8e-129)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 7.8e-31)
(* -0.0424927283095952 (* x y))
(if (<= x 0.047)
(+ (* x 4.16438922228) (* z -0.0424927283095952))
(- (* x 4.16438922228) 110.1139242984811))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.165) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 3.8e-129) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.8e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.047) {
tmp = (x * 4.16438922228) + (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 <= (-0.165d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 3.8d-129) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 7.8d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.047d0) then
tmp = (x * 4.16438922228d0) + (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 <= -0.165) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 3.8e-129) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 7.8e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.047) {
tmp = (x * 4.16438922228) + (z * -0.0424927283095952);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.165: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 3.8e-129: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 7.8e-31: tmp = -0.0424927283095952 * (x * y) elif x <= 0.047: tmp = (x * 4.16438922228) + (z * -0.0424927283095952) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.165) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 3.8e-129) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 7.8e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.047) tmp = Float64(Float64(x * 4.16438922228) + 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 <= -0.165) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 3.8e-129) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 7.8e-31) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.047) tmp = (x * 4.16438922228) + (z * -0.0424927283095952); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.165], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e-129], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.047], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.165:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-129}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.047:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -0.165000000000000008Initial program 18.5%
associate-*r/20.2%
sub-neg20.2%
metadata-eval20.2%
*-commutative20.2%
fma-def20.2%
*-commutative20.2%
fma-def20.2%
*-commutative20.2%
fma-def20.2%
fma-def20.2%
*-commutative20.2%
Simplified20.2%
Taylor expanded in x around inf 83.1%
associate-*r/83.1%
metadata-eval83.1%
Simplified83.1%
if -0.165000000000000008 < x < 3.79999999999999985e-129Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 74.3%
if 3.79999999999999985e-129 < x < 7.8000000000000003e-31Initial program 99.5%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around inf 54.1%
Taylor expanded in x around 0 54.2%
if 7.8000000000000003e-31 < x < 0.047Initial program 99.2%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around inf 99.2%
Taylor expanded in x around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around 0 53.7%
if 0.047 < x Initial program 18.6%
associate-*r/22.4%
sub-neg22.4%
metadata-eval22.4%
*-commutative22.4%
fma-def22.4%
*-commutative22.4%
fma-def22.4%
*-commutative22.4%
fma-def22.3%
fma-def22.3%
*-commutative22.3%
Simplified22.4%
Taylor expanded in x around inf 88.8%
Final simplification78.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (* x 4.16438922228) 110.1139242984811)))
(if (<= x -0.26)
t_0
(if (<= x 6.2e-129)
(* z -0.0424927283095952)
(if (<= x 7.6e-31)
(* -0.0424927283095952 (* x y))
(if (<= x 0.65) (* z -0.0424927283095952) t_0))))))
double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -0.26) {
tmp = t_0;
} else if (x <= 6.2e-129) {
tmp = z * -0.0424927283095952;
} else if (x <= 7.6e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.65) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * 4.16438922228d0) - 110.1139242984811d0
if (x <= (-0.26d0)) then
tmp = t_0
else if (x <= 6.2d-129) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 7.6d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.65d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -0.26) {
tmp = t_0;
} else if (x <= 6.2e-129) {
tmp = z * -0.0424927283095952;
} else if (x <= 7.6e-31) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.65) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * 4.16438922228) - 110.1139242984811 tmp = 0 if x <= -0.26: tmp = t_0 elif x <= 6.2e-129: tmp = z * -0.0424927283095952 elif x <= 7.6e-31: tmp = -0.0424927283095952 * (x * y) elif x <= 0.65: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * 4.16438922228) - 110.1139242984811) tmp = 0.0 if (x <= -0.26) tmp = t_0; elseif (x <= 6.2e-129) tmp = Float64(z * -0.0424927283095952); elseif (x <= 7.6e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.65) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * 4.16438922228) - 110.1139242984811; tmp = 0.0; if (x <= -0.26) tmp = t_0; elseif (x <= 6.2e-129) tmp = z * -0.0424927283095952; elseif (x <= 7.6e-31) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.65) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[LessEqual[x, -0.26], t$95$0, If[LessEqual[x, 6.2e-129], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 7.6e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.65], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{if}\;x \leq -0.26:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-129}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.65:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -0.26000000000000001 or 0.650000000000000022 < x Initial program 18.5%
associate-*r/21.4%
sub-neg21.4%
metadata-eval21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
*-commutative21.4%
fma-def21.4%
fma-def21.4%
*-commutative21.4%
Simplified21.4%
Taylor expanded in x around inf 86.3%
if -0.26000000000000001 < x < 6.2000000000000001e-129 or 7.5999999999999999e-31 < x < 0.650000000000000022Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 72.4%
*-commutative72.4%
Simplified72.4%
if 6.2000000000000001e-129 < x < 7.5999999999999999e-31Initial program 99.5%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around inf 54.1%
Taylor expanded in x around 0 54.2%
Final simplification78.2%
(FPCore (x y z) :precision binary64 (if (or (<= y -2.9e+92) (not (<= y 9.2e+89))) (* -0.0424927283095952 (* x y)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -2.9e+92) || !(y <= 9.2e+89)) {
tmp = -0.0424927283095952 * (x * y);
} 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 ((y <= (-2.9d+92)) .or. (.not. (y <= 9.2d+89))) then
tmp = (-0.0424927283095952d0) * (x * y)
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -2.9e+92) || !(y <= 9.2e+89)) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -2.9e+92) or not (y <= 9.2e+89): tmp = -0.0424927283095952 * (x * y) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -2.9e+92) || !(y <= 9.2e+89)) tmp = Float64(-0.0424927283095952 * Float64(x * y)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -2.9e+92) || ~((y <= 9.2e+89))) tmp = -0.0424927283095952 * (x * y); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -2.9e+92], N[Not[LessEqual[y, 9.2e+89]], $MachinePrecision]], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+92} \lor \neg \left(y \leq 9.2 \cdot 10^{+89}\right):\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if y < -2.9000000000000001e92 or 9.1999999999999996e89 < y Initial program 56.0%
associate-/l*57.0%
sub-neg57.0%
metadata-eval57.0%
fma-def57.0%
fma-def57.0%
fma-def57.0%
fma-def57.0%
fma-def57.0%
fma-def57.0%
fma-def57.0%
Simplified57.0%
Taylor expanded in y around inf 42.6%
Taylor expanded in x around 0 34.7%
if -2.9000000000000001e92 < y < 9.1999999999999996e89Initial program 57.8%
associate-*r/59.5%
sub-neg59.5%
metadata-eval59.5%
*-commutative59.5%
fma-def59.5%
*-commutative59.5%
fma-def59.5%
*-commutative59.5%
fma-def59.5%
fma-def59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in x around 0 41.7%
*-commutative41.7%
Simplified41.7%
Final simplification39.2%
(FPCore (x y z)
:precision binary64
(if (<= y -4e+92)
(* x (* y -0.0424927283095952))
(if (<= y 4.5e+89)
(* z -0.0424927283095952)
(* -0.0424927283095952 (* x y)))))
double code(double x, double y, double z) {
double tmp;
if (y <= -4e+92) {
tmp = x * (y * -0.0424927283095952);
} else if (y <= 4.5e+89) {
tmp = z * -0.0424927283095952;
} else {
tmp = -0.0424927283095952 * (x * y);
}
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 (y <= (-4d+92)) then
tmp = x * (y * (-0.0424927283095952d0))
else if (y <= 4.5d+89) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (-0.0424927283095952d0) * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -4e+92) {
tmp = x * (y * -0.0424927283095952);
} else if (y <= 4.5e+89) {
tmp = z * -0.0424927283095952;
} else {
tmp = -0.0424927283095952 * (x * y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -4e+92: tmp = x * (y * -0.0424927283095952) elif y <= 4.5e+89: tmp = z * -0.0424927283095952 else: tmp = -0.0424927283095952 * (x * y) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -4e+92) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (y <= 4.5e+89) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(-0.0424927283095952 * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -4e+92) tmp = x * (y * -0.0424927283095952); elseif (y <= 4.5e+89) tmp = z * -0.0424927283095952; else tmp = -0.0424927283095952 * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -4e+92], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+89], N[(z * -0.0424927283095952), $MachinePrecision], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+92}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+89}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -4.0000000000000002e92Initial program 50.0%
associate-/l*52.2%
sub-neg52.2%
metadata-eval52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
Simplified52.2%
Taylor expanded in y around inf 38.3%
Taylor expanded in x around 0 33.2%
*-commutative33.2%
*-commutative33.2%
*-commutative33.2%
associate-*l*33.2%
Simplified33.2%
Taylor expanded in y around 0 33.2%
associate-*r*33.3%
*-commutative33.3%
Simplified33.3%
if -4.0000000000000002e92 < y < 4.5e89Initial program 57.8%
associate-*r/59.5%
sub-neg59.5%
metadata-eval59.5%
*-commutative59.5%
fma-def59.5%
*-commutative59.5%
fma-def59.5%
*-commutative59.5%
fma-def59.5%
fma-def59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in x around 0 41.7%
*-commutative41.7%
Simplified41.7%
if 4.5e89 < y Initial program 61.8%
associate-/l*61.8%
sub-neg61.8%
metadata-eval61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
Simplified61.8%
Taylor expanded in y around inf 46.7%
Taylor expanded in x around 0 36.1%
Final simplification39.3%
(FPCore (x y z)
:precision binary64
(if (<= y -1e+90)
(* x (* y -0.0424927283095952))
(if (<= y 7e+89)
(* z -0.0424927283095952)
(* y (* x -0.0424927283095952)))))
double code(double x, double y, double z) {
double tmp;
if (y <= -1e+90) {
tmp = x * (y * -0.0424927283095952);
} else if (y <= 7e+89) {
tmp = z * -0.0424927283095952;
} else {
tmp = y * (x * -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 (y <= (-1d+90)) then
tmp = x * (y * (-0.0424927283095952d0))
else if (y <= 7d+89) then
tmp = z * (-0.0424927283095952d0)
else
tmp = y * (x * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1e+90) {
tmp = x * (y * -0.0424927283095952);
} else if (y <= 7e+89) {
tmp = z * -0.0424927283095952;
} else {
tmp = y * (x * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1e+90: tmp = x * (y * -0.0424927283095952) elif y <= 7e+89: tmp = z * -0.0424927283095952 else: tmp = y * (x * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1e+90) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (y <= 7e+89) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(y * Float64(x * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1e+90) tmp = x * (y * -0.0424927283095952); elseif (y <= 7e+89) tmp = z * -0.0424927283095952; else tmp = y * (x * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1e+90], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+89], N[(z * -0.0424927283095952), $MachinePrecision], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+90}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+89}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\end{array}
\end{array}
if y < -9.99999999999999966e89Initial program 50.0%
associate-/l*52.2%
sub-neg52.2%
metadata-eval52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
fma-def52.2%
Simplified52.2%
Taylor expanded in y around inf 38.3%
Taylor expanded in x around 0 33.2%
*-commutative33.2%
*-commutative33.2%
*-commutative33.2%
associate-*l*33.2%
Simplified33.2%
Taylor expanded in y around 0 33.2%
associate-*r*33.3%
*-commutative33.3%
Simplified33.3%
if -9.99999999999999966e89 < y < 7.0000000000000001e89Initial program 57.8%
associate-*r/59.5%
sub-neg59.5%
metadata-eval59.5%
*-commutative59.5%
fma-def59.5%
*-commutative59.5%
fma-def59.5%
*-commutative59.5%
fma-def59.5%
fma-def59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in x around 0 41.7%
*-commutative41.7%
Simplified41.7%
if 7.0000000000000001e89 < y Initial program 61.8%
associate-/l*61.8%
sub-neg61.8%
metadata-eval61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
fma-def61.8%
Simplified61.8%
Taylor expanded in y around inf 46.7%
Taylor expanded in x around 0 36.1%
*-commutative36.1%
*-commutative36.1%
*-commutative36.1%
associate-*l*36.1%
Simplified36.1%
Final simplification39.3%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 57.2%
associate-*r/58.7%
sub-neg58.7%
metadata-eval58.7%
*-commutative58.7%
fma-def58.7%
*-commutative58.7%
fma-def58.7%
*-commutative58.7%
fma-def58.7%
fma-def58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in x around 0 32.5%
*-commutative32.5%
Simplified32.5%
Final simplification32.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
herbie shell --seed 2023192
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(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)))