
(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 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(+ 877797.6063174353 (* -43.3400022514 (- 124074.40615218398 y)))))
(if (or (<= x -128000.0) (not (<= x 37000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/
(-
3451.550173699799
(/
(-
124074.40615218398
(-
y
(/
(+
t_1
(-
(/
(+
1076922.4091560864
(+
(* -43.3400022514 (- t_1 z))
(* 263.505074721 (- y 124074.40615218398))))
x)
z))
x)))
x))
x)
101.7851458539211)
x)))
(-
(/ (* x (* (- x 2.0) (+ y (* x 137.519416416)))) t_0)
(* z (- (* 2.0 (/ 1.0 t_0)) (/ x t_0)))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = 877797.6063174353 + (-43.3400022514 * (124074.40615218398 - y));
double tmp;
if ((x <= -128000.0) || !(x <= 37000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - (y - ((t_1 + (((1076922.4091560864 + ((-43.3400022514 * (t_1 - z)) + (263.505074721 * (y - 124074.40615218398)))) / x) - z)) / x))) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x * ((x - 2.0) * (y + (x * 137.519416416)))) / t_0) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = 877797.6063174353d0 + ((-43.3400022514d0) * (124074.40615218398d0 - y))
if ((x <= (-128000.0d0)) .or. (.not. (x <= 37000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - (y - ((t_1 + (((1076922.4091560864d0 + (((-43.3400022514d0) * (t_1 - z)) + (263.505074721d0 * (y - 124074.40615218398d0)))) / x) - z)) / x))) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x * ((x - 2.0d0) * (y + (x * 137.519416416d0)))) / t_0) - (z * ((2.0d0 * (1.0d0 / t_0)) - (x / t_0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = 877797.6063174353 + (-43.3400022514 * (124074.40615218398 - y));
double tmp;
if ((x <= -128000.0) || !(x <= 37000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - (y - ((t_1 + (((1076922.4091560864 + ((-43.3400022514 * (t_1 - z)) + (263.505074721 * (y - 124074.40615218398)))) / x) - z)) / x))) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x * ((x - 2.0) * (y + (x * 137.519416416)))) / t_0) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0)));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = 877797.6063174353 + (-43.3400022514 * (124074.40615218398 - y)) tmp = 0 if (x <= -128000.0) or not (x <= 37000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - (y - ((t_1 + (((1076922.4091560864 + ((-43.3400022514 * (t_1 - z)) + (263.505074721 * (y - 124074.40615218398)))) / x) - z)) / x))) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x * ((x - 2.0) * (y + (x * 137.519416416)))) / t_0) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0))) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(877797.6063174353 + Float64(-43.3400022514 * Float64(124074.40615218398 - y))) tmp = 0.0 if ((x <= -128000.0) || !(x <= 37000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - Float64(y - Float64(Float64(t_1 + Float64(Float64(Float64(1076922.4091560864 + Float64(Float64(-43.3400022514 * Float64(t_1 - z)) + Float64(263.505074721 * Float64(y - 124074.40615218398)))) / x) - z)) / x))) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x * Float64(Float64(x - 2.0) * Float64(y + Float64(x * 137.519416416)))) / t_0) - Float64(z * Float64(Float64(2.0 * Float64(1.0 / t_0)) - Float64(x / t_0)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = 877797.6063174353 + (-43.3400022514 * (124074.40615218398 - y)); tmp = 0.0; if ((x <= -128000.0) || ~((x <= 37000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - (y - ((t_1 + (((1076922.4091560864 + ((-43.3400022514 * (t_1 - z)) + (263.505074721 * (y - 124074.40615218398)))) / x) - z)) / x))) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x * ((x - 2.0) * (y + (x * 137.519416416)))) / t_0) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(877797.6063174353 + N[(-43.3400022514 * N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -128000.0], N[Not[LessEqual[x, 37000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - N[(y - N[(N[(t$95$1 + N[(N[(N[(1076922.4091560864 + N[(N[(-43.3400022514 * N[(t$95$1 - z), $MachinePrecision]), $MachinePrecision] + N[(263.505074721 * N[(y - 124074.40615218398), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] - N[(z * N[(N[(2.0 * N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision] - N[(x / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := 877797.6063174353 + -43.3400022514 \cdot \left(124074.40615218398 - y\right)\\
\mathbf{if}\;x \leq -128000 \lor \neg \left(x \leq 37000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - \left(y - \frac{t\_1 + \left(\frac{1076922.4091560864 + \left(-43.3400022514 \cdot \left(t\_1 - z\right) + 263.505074721 \cdot \left(y - 124074.40615218398\right)\right)}{x} - z\right)}{x}\right)}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0} - z \cdot \left(2 \cdot \frac{1}{t\_0} - \frac{x}{t\_0}\right)\\
\end{array}
\end{array}
if x < -128000 or 37000 < x Initial program 19.6%
associate-/l*25.7%
sub-neg25.7%
metadata-eval25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 99.0%
if -128000 < x < 37000Initial program 99.0%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in z around 0 99.4%
Final simplification99.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1 (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416)))
(if (<= (/ (* (- x 2.0) (+ (* x (+ (* x t_1) y)) z)) t_0) INFINITY)
(*
(+ x -2.0)
(+ (/ z t_0) (* y (+ (/ x t_0) (/ (* t_1 (pow x 2.0)) (* y t_0))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double tmp;
if ((((x - 2.0) * ((x * ((x * t_1) + y)) + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + ((t_1 * pow(x, 2.0)) / (y * t_0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double tmp;
if ((((x - 2.0) * ((x * ((x * t_1) + y)) + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + ((t_1 * Math.pow(x, 2.0)) / (y * t_0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416 tmp = 0 if (((x - 2.0) * ((x * ((x * t_1) + y)) + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + ((t_1 * math.pow(x, 2.0)) / (y * t_0))))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * t_1) + y)) + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(y * Float64(Float64(x / t_0) + Float64(Float64(t_1 * (x ^ 2.0)) / Float64(y * t_0)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416; tmp = 0.0; if ((((x - 2.0) * ((x * ((x * t_1) + y)) + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + ((t_1 * (x ^ 2.0)) / (y * t_0))))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * t$95$1), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(y * N[(N[(x / t$95$0), $MachinePrecision] + N[(N[(t$95$1 * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] / N[(y * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot t\_1 + y\right) + z\right)}{t\_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + y \cdot \left(\frac{x}{t\_0} + \frac{t\_1 \cdot {x}^{2}}{y \cdot t\_0}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 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)) < +inf.0Initial program 92.3%
associate-/l*97.3%
sub-neg97.3%
metadata-eval97.3%
fma-define97.3%
fma-define97.3%
fma-define97.3%
fma-define97.3%
fma-define97.3%
fma-define97.3%
fma-define97.3%
Simplified97.3%
Taylor expanded in y around -inf 89.5%
Taylor expanded in z around 0 98.4%
if +inf.0 < (/.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.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
Simplified99.1%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(if (<= t_0 (- INFINITY))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= t_0 5e+302)
t_0
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/
(-
(/
(+
124074.40615218398
(-
(/
(+
(- -5377385.041976771 (* y -43.3400022514))
(- 877797.6063174353 z))
x)
y))
x)
3451.550173699799)
x))
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)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+302) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (t_0 <= 5e+302) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / 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)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) tmp = 0 if t_0 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif t_0 <= 5e+302: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (t_0 <= 5e+302) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 + Float64(Float64(Float64(Float64(-5377385.041976771 - Float64(y * -43.3400022514)) + Float64(877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / 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)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); tmp = 0.0; if (t_0 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (t_0 <= 5e+302) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+302], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 + N[(N[(N[(N[(-5377385.041976771 - N[(y * -43.3400022514), $MachinePrecision]), $MachinePrecision] + N[(877797.6063174353 - z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+302}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 + \left(\frac{\left(-5377385.041976771 - y \cdot -43.3400022514\right) + \left(877797.6063174353 - z\right)}{x} - y\right)}{x} - 3451.550173699799}{x}}{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)) < -inf.0Initial program 4.0%
associate-/l*61.3%
sub-neg61.3%
metadata-eval61.3%
fma-define61.3%
fma-define61.3%
fma-define61.3%
fma-define61.3%
fma-define61.3%
fma-define61.3%
fma-define61.3%
Simplified61.3%
Taylor expanded in x around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if -inf.0 < (/.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)) < 5e302Initial program 99.6%
if 5e302 < (/.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.5%
associate-/l*6.3%
sub-neg6.3%
metadata-eval6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
Simplified6.3%
Taylor expanded in x around -inf 98.3%
Simplified98.3%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 -5e+295)
(*
(+ x -2.0)
(*
y
(+ (/ x t_0) (/ (* z (+ (/ 1.0 t_0) (* 4.16438922228 (/ 1.0 z)))) y))))
(if (<= t_1 5e+302)
t_1
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/
(-
(/
(+
124074.40615218398
(-
(/
(+
(- -5377385.041976771 (* y -43.3400022514))
(- 877797.6063174353 z))
x)
y))
x)
3451.550173699799)
x))
x)))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -5e+295) {
tmp = (x + -2.0) * (y * ((x / t_0) + ((z * ((1.0 / t_0) + (4.16438922228 * (1.0 / z)))) / y)));
} else if (t_1 <= 5e+302) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / t_0
if (t_1 <= (-5d+295)) then
tmp = (x + (-2.0d0)) * (y * ((x / t_0) + ((z * ((1.0d0 / t_0) + (4.16438922228d0 * (1.0d0 / z)))) / y)))
else if (t_1 <= 5d+302) then
tmp = t_1
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 + (((((-5377385.041976771d0) - (y * (-43.3400022514d0))) + (877797.6063174353d0 - z)) / x) - y)) / x) - 3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -5e+295) {
tmp = (x + -2.0) * (y * ((x / t_0) + ((z * ((1.0 / t_0) + (4.16438922228 * (1.0 / z)))) / y)));
} else if (t_1 <= 5e+302) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= -5e+295: tmp = (x + -2.0) * (y * ((x / t_0) + ((z * ((1.0 / t_0) + (4.16438922228 * (1.0 / z)))) / y))) elif t_1 <= 5e+302: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= -5e+295) tmp = Float64(Float64(x + -2.0) * Float64(y * Float64(Float64(x / t_0) + Float64(Float64(z * Float64(Float64(1.0 / t_0) + Float64(4.16438922228 * Float64(1.0 / z)))) / y)))); elseif (t_1 <= 5e+302) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 + Float64(Float64(Float64(Float64(-5377385.041976771 - Float64(y * -43.3400022514)) + Float64(877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= -5e+295) tmp = (x + -2.0) * (y * ((x / t_0) + ((z * ((1.0 / t_0) + (4.16438922228 * (1.0 / z)))) / y))); elseif (t_1 <= 5e+302) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+295], N[(N[(x + -2.0), $MachinePrecision] * N[(y * N[(N[(x / t$95$0), $MachinePrecision] + N[(N[(z * N[(N[(1.0 / t$95$0), $MachinePrecision] + N[(4.16438922228 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+302], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 + N[(N[(N[(N[(-5377385.041976771 - N[(y * -43.3400022514), $MachinePrecision]), $MachinePrecision] + N[(877797.6063174353 - z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+295}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(y \cdot \left(\frac{x}{t\_0} + \frac{z \cdot \left(\frac{1}{t\_0} + 4.16438922228 \cdot \frac{1}{z}\right)}{y}\right)\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+302}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 + \left(\frac{\left(-5377385.041976771 - y \cdot -43.3400022514\right) + \left(877797.6063174353 - z\right)}{x} - y\right)}{x} - 3451.550173699799}{x}}{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)) < -4.99999999999999991e295Initial program 19.8%
associate-/l*67.5%
sub-neg67.5%
metadata-eval67.5%
fma-define67.5%
fma-define67.5%
fma-define67.5%
fma-define67.5%
fma-define67.5%
fma-define67.5%
fma-define67.5%
Simplified67.5%
Taylor expanded in y around -inf 83.3%
Taylor expanded in x around inf 99.7%
Taylor expanded in z around inf 100.0%
Taylor expanded in y around -inf 100.0%
if -4.99999999999999991e295 < (/.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)) < 5e302Initial program 99.6%
if 5e302 < (/.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.5%
associate-/l*6.3%
sub-neg6.3%
metadata-eval6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
fma-define6.3%
Simplified6.3%
Taylor expanded in x around -inf 98.3%
Simplified98.3%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -95000000.0) (not (<= x 780000.0)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/
(-
(/
(+
124074.40615218398
(-
(/
(+
(- -5377385.041976771 (* y -43.3400022514))
(- 877797.6063174353 z))
x)
y))
x)
3451.550173699799)
x))
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -95000000.0) || !(x <= 780000.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-95000000.0d0)) .or. (.not. (x <= 780000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 + (((((-5377385.041976771d0) - (y * (-43.3400022514d0))) + (877797.6063174353d0 - z)) / x) - y)) / x) - 3451.550173699799d0) / x)) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -95000000.0) || !(x <= 780000.0)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -95000000.0) or not (x <= 780000.0): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -95000000.0) || !(x <= 780000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 + Float64(Float64(Float64(Float64(-5377385.041976771 - Float64(y * -43.3400022514)) + Float64(877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -95000000.0) || ~((x <= 780000.0))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 + ((((-5377385.041976771 - (y * -43.3400022514)) + (877797.6063174353 - z)) / x) - y)) / x) - 3451.550173699799) / x)) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -95000000.0], N[Not[LessEqual[x, 780000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 + N[(N[(N[(N[(-5377385.041976771 - N[(y * -43.3400022514), $MachinePrecision]), $MachinePrecision] + N[(877797.6063174353 - z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -95000000 \lor \neg \left(x \leq 780000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 + \left(\frac{\left(-5377385.041976771 - y \cdot -43.3400022514\right) + \left(877797.6063174353 - z\right)}{x} - y\right)}{x} - 3451.550173699799}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -9.5e7 or 7.8e5 < x Initial program 19.6%
associate-/l*25.7%
sub-neg25.7%
metadata-eval25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 98.5%
Simplified98.5%
if -9.5e7 < x < 7.8e5Initial program 99.0%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -760000000.0) (not (<= x 1500000000000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -760000000.0) || !(x <= 1500000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-760000000.0d0)) .or. (.not. (x <= 1500000000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -760000000.0) || !(x <= 1500000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -760000000.0) or not (x <= 1500000000000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -760000000.0) || !(x <= 1500000000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -760000000.0) || ~((x <= 1500000000000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -760000000.0], N[Not[LessEqual[x, 1500000000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -760000000 \lor \neg \left(x \leq 1500000000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -7.6e8 or 1.5e12 < x Initial program 18.3%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around -inf 96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
Simplified96.4%
if -7.6e8 < x < 1.5e12Initial program 99.0%
Taylor expanded in x around 0 98.3%
*-commutative98.3%
Simplified98.3%
Final simplification97.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -36.0) (not (<= x 235.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x 43.3400022514)))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 235.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514))))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-36.0d0)) .or. (.not. (x <= 235.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * 43.3400022514d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 235.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -36.0) or not (x <= 235.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514)))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -36.0) || !(x <= 235.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * 43.3400022514))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -36.0) || ~((x <= 235.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * 43.3400022514)))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -36.0], N[Not[LessEqual[x, 235.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36 \lor \neg \left(x \leq 235\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)}\\
\end{array}
\end{array}
if x < -36 or 235 < x Initial program 19.6%
associate-/l*25.7%
sub-neg25.7%
metadata-eval25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
Simplified95.7%
if -36 < x < 235Initial program 99.0%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 98.1%
*-commutative98.1%
Simplified98.1%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 0.58)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.58)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-5.5d0)) .or. (.not. (x <= 0.58d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.58)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 0.58): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 0.58)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 0.58))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 0.58]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 0.58\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 0.57999999999999996 < x Initial program 20.3%
associate-/l*26.3%
sub-neg26.3%
metadata-eval26.3%
fma-define26.3%
fma-define26.3%
fma-define26.3%
fma-define26.3%
fma-define26.3%
fma-define26.3%
fma-define26.3%
Simplified26.3%
Taylor expanded in x around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
Simplified95.0%
if -5.5 < x < 0.57999999999999996Initial program 99.0%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 92.8%
Final simplification93.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -36.0) (not (<= x 92.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 92.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-36.0d0)) .or. (.not. (x <= 92.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 92.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -36.0) or not (x <= 92.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -36.0) || !(x <= 92.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -36.0) || ~((x <= 92.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -36.0], N[Not[LessEqual[x, 92.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36 \lor \neg \left(x \leq 92\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\end{array}
\end{array}
if x < -36 or 92 < x Initial program 19.6%
associate-/l*25.7%
sub-neg25.7%
metadata-eval25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.8%
Simplified25.8%
Taylor expanded in x around -inf 95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
Simplified95.7%
if -36 < x < 92Initial program 99.0%
Taylor expanded in x around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in x around 0 97.8%
*-commutative97.8%
Simplified97.8%
Final simplification96.8%
(FPCore (x y z)
:precision binary64
(if (<= x -675000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 0.235)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 0.235) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-675000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 0.235d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 0.235) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -675000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 0.235: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -675000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 0.235) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -675000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 0.235) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -675000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.235], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 0.235:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.75e11Initial program 14.6%
associate-/l*19.3%
sub-neg19.3%
metadata-eval19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
Simplified19.3%
Taylor expanded in x around inf 94.5%
associate-*r/94.5%
metadata-eval94.5%
Simplified94.5%
if -6.75e11 < x < 0.23499999999999999Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 92.2%
if 0.23499999999999999 < x Initial program 26.1%
associate-/l*33.7%
sub-neg33.7%
metadata-eval33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
Simplified33.7%
Taylor expanded in x around -inf 84.8%
mul-1-neg84.8%
unsub-neg84.8%
sub-neg84.8%
associate-*r/84.8%
metadata-eval84.8%
distribute-neg-frac84.8%
metadata-eval84.8%
Simplified84.8%
Final simplification91.0%
(FPCore (x y z)
:precision binary64
(if (<= x -675000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.48)
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.48) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-675000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.48d0) then
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.48) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -675000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.48: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -675000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.48) tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -675000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.48) tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -675000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.48], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.48:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.75e11Initial program 14.6%
associate-/l*19.3%
sub-neg19.3%
metadata-eval19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
Simplified19.3%
Taylor expanded in x around inf 94.5%
associate-*r/94.5%
metadata-eval94.5%
Simplified94.5%
if -6.75e11 < x < 1.48Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 92.2%
if 1.48 < x Initial program 26.1%
associate-/l*33.7%
sub-neg33.7%
metadata-eval33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
fma-define33.7%
Simplified33.7%
Taylor expanded in x around -inf 84.8%
mul-1-neg84.8%
unsub-neg84.8%
sub-neg84.8%
associate-*r/84.8%
metadata-eval84.8%
distribute-neg-frac84.8%
metadata-eval84.8%
Simplified84.8%
Final simplification91.0%
(FPCore (x y z)
:precision binary64
(if (<= x -675000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.0)
(+ (* -0.0424927283095952 (* x y)) (* z -0.0424927283095952))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-675000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.0d0) then
tmp = ((-0.0424927283095952d0) * (x * y)) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -675000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.0: tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -675000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.0) tmp = Float64(Float64(-0.0424927283095952 * Float64(x * y)) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -675000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.0) tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -675000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.75e11Initial program 14.6%
associate-/l*19.3%
sub-neg19.3%
metadata-eval19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
Simplified19.3%
Taylor expanded in x around inf 94.5%
associate-*r/94.5%
metadata-eval94.5%
Simplified94.5%
if -6.75e11 < x < 2Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 91.5%
Taylor expanded in z around 0 90.9%
if 2 < x Initial program 24.9%
associate-/l*32.6%
sub-neg32.6%
metadata-eval32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.7%
Simplified32.7%
Taylor expanded in x around -inf 86.2%
mul-1-neg86.2%
unsub-neg86.2%
sub-neg86.2%
associate-*r/86.2%
metadata-eval86.2%
distribute-neg-frac86.2%
metadata-eval86.2%
Simplified86.2%
Final simplification90.7%
(FPCore (x y z)
:precision binary64
(if (<= x -675000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 27.5)
(* (+ x -2.0) (* z 0.0212463641547976))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 27.5) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-675000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 27.5d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 27.5) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -675000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 27.5: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -675000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 27.5) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -675000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 27.5) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -675000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 27.5], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 27.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -6.75e11Initial program 14.6%
associate-/l*19.3%
sub-neg19.3%
metadata-eval19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
Simplified19.3%
Taylor expanded in x around inf 94.5%
associate-*r/94.5%
metadata-eval94.5%
Simplified94.5%
if -6.75e11 < x < 27.5Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 67.4%
if 27.5 < x Initial program 24.9%
associate-/l*32.6%
sub-neg32.6%
metadata-eval32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.7%
Simplified32.7%
Taylor expanded in x around inf 85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Final simplification78.4%
(FPCore (x y z)
:precision binary64
(if (<= x -675000000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.0)
(+ (* -0.0424927283095952 (* x y)) (* z -0.0424927283095952))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-675000000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.0d0) then
tmp = ((-0.0424927283095952d0) * (x * y)) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -675000000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -675000000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.0: tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -675000000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.0) tmp = Float64(Float64(-0.0424927283095952 * Float64(x * y)) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -675000000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.0) tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -675000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -6.75e11Initial program 14.6%
associate-/l*19.3%
sub-neg19.3%
metadata-eval19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.3%
Simplified19.3%
Taylor expanded in x around inf 94.5%
associate-*r/94.5%
metadata-eval94.5%
Simplified94.5%
if -6.75e11 < x < 2Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 91.5%
Taylor expanded in z around 0 90.9%
if 2 < x Initial program 24.9%
associate-/l*32.6%
sub-neg32.6%
metadata-eval32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.6%
fma-define32.7%
Simplified32.7%
Taylor expanded in x around inf 85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Final simplification90.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -675000000000.0) (not (<= x 2.1))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 2.1)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-675000000000.0d0)) .or. (.not. (x <= 2.1d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 2.1)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -675000000000.0) or not (x <= 2.1): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -675000000000.0) || !(x <= 2.1)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -675000000000.0) || ~((x <= 2.1))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -675000000000.0], N[Not[LessEqual[x, 2.1]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000 \lor \neg \left(x \leq 2.1\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -6.75e11 or 2.10000000000000009 < x Initial program 19.7%
associate-/l*25.9%
sub-neg25.9%
metadata-eval25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
Simplified25.9%
Taylor expanded in x around inf 90.2%
associate-*r/90.2%
metadata-eval90.2%
Simplified90.2%
if -6.75e11 < x < 2.10000000000000009Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 67.4%
*-commutative67.4%
Simplified67.4%
Final simplification78.4%
(FPCore (x y z) :precision binary64 (if (or (<= x -675000000000.0) (not (<= x 31.0))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 31.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 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 <= (-675000000000.0d0)) .or. (.not. (x <= 31.0d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 31.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -675000000000.0) or not (x <= 31.0): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -675000000000.0) || !(x <= 31.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -675000000000.0) || ~((x <= 31.0))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -675000000000.0], N[Not[LessEqual[x, 31.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000 \lor \neg \left(x \leq 31\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -6.75e11 or 31 < x Initial program 19.7%
associate-/l*25.9%
sub-neg25.9%
metadata-eval25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
Simplified25.9%
Taylor expanded in x around inf 90.2%
associate-*r/90.2%
metadata-eval90.2%
Simplified90.2%
if -6.75e11 < x < 31Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 67.4%
Final simplification78.4%
(FPCore (x y z) :precision binary64 (if (or (<= x -675000000000.0) (not (<= x 2.0))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 2.0)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-675000000000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 2.0)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -675000000000.0) or not (x <= 2.0): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -675000000000.0) || !(x <= 2.0)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -675000000000.0) || ~((x <= 2.0))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -675000000000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -6.75e11 or 2 < x Initial program 19.7%
associate-/l*25.9%
sub-neg25.9%
metadata-eval25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
Simplified25.9%
Taylor expanded in x around inf 89.6%
if -6.75e11 < x < 2Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 67.4%
*-commutative67.4%
Simplified67.4%
Final simplification78.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -675000000000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-675000000000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -675000000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -675000000000.0) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -675000000000.0) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -675000000000.0) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -675000000000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -675000000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -6.75e11 or 2 < x Initial program 19.7%
Simplified25.9%
fma-define25.9%
flip3-+25.9%
unpow-prod-down25.7%
metadata-eval25.8%
metadata-eval25.8%
pow225.8%
metadata-eval25.8%
Applied egg-rr25.8%
Taylor expanded in x around inf 89.6%
*-commutative89.6%
Simplified89.6%
if -6.75e11 < x < 2Initial program 98.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in x around 0 67.4%
*-commutative67.4%
Simplified67.4%
Final simplification78.1%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 60.6%
Simplified63.7%
fma-define63.7%
flip3-+63.7%
unpow-prod-down63.7%
metadata-eval63.7%
metadata-eval63.7%
pow263.7%
metadata-eval63.7%
Applied egg-rr63.7%
Taylor expanded in x around inf 44.9%
*-commutative44.9%
Simplified44.9%
Final simplification44.9%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 60.6%
associate-/l*63.9%
sub-neg63.9%
metadata-eval63.9%
fma-define63.9%
fma-define63.9%
fma-define63.9%
fma-define63.9%
fma-define63.9%
fma-define63.9%
fma-define63.9%
Simplified63.9%
Taylor expanded in x around inf 44.9%
Taylor expanded in x around 0 3.3%
Final simplification3.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024055
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))