
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* (* 3.0 x1) x1))
(t_1 (+ (* x1 x1) 1.0))
(t_2 (/ (- (+ t_0 (* 2.0 x2)) x1) t_1)))
(+
x1
(+
(+
(+
(+
(*
(+
(* (* (* 2.0 x1) t_2) (- t_2 3.0))
(* (* x1 x1) (- (* 4.0 t_2) 6.0)))
t_1)
(* t_0 t_2))
(* (* x1 x1) x1))
x1)
(* 3.0 (/ (- (- t_0 (* 2.0 x2)) x1) t_1))))))
double code(double x1, double x2) {
double t_0 = (3.0 * x1) * x1;
double t_1 = (x1 * x1) + 1.0;
double t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1;
return x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)));
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
t_0 = (3.0d0 * x1) * x1
t_1 = (x1 * x1) + 1.0d0
t_2 = ((t_0 + (2.0d0 * x2)) - x1) / t_1
code = x1 + (((((((((2.0d0 * x1) * t_2) * (t_2 - 3.0d0)) + ((x1 * x1) * ((4.0d0 * t_2) - 6.0d0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0d0 * (((t_0 - (2.0d0 * x2)) - x1) / t_1)))
end function
public static double code(double x1, double x2) {
double t_0 = (3.0 * x1) * x1;
double t_1 = (x1 * x1) + 1.0;
double t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1;
return x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)));
}
def code(x1, x2): t_0 = (3.0 * x1) * x1 t_1 = (x1 * x1) + 1.0 t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1 return x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)))
function code(x1, x2) t_0 = Float64(Float64(3.0 * x1) * x1) t_1 = Float64(Float64(x1 * x1) + 1.0) t_2 = Float64(Float64(Float64(t_0 + Float64(2.0 * x2)) - x1) / t_1) return Float64(x1 + Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(2.0 * x1) * t_2) * Float64(t_2 - 3.0)) + Float64(Float64(x1 * x1) * Float64(Float64(4.0 * t_2) - 6.0))) * t_1) + Float64(t_0 * t_2)) + Float64(Float64(x1 * x1) * x1)) + x1) + Float64(3.0 * Float64(Float64(Float64(t_0 - Float64(2.0 * x2)) - x1) / t_1)))) end
function tmp = code(x1, x2) t_0 = (3.0 * x1) * x1; t_1 = (x1 * x1) + 1.0; t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1; tmp = x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1))); end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(3.0 * x1), $MachinePrecision] * x1), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(t$95$0 + N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$1), $MachinePrecision]}, N[(x1 + N[(N[(N[(N[(N[(N[(N[(N[(N[(2.0 * x1), $MachinePrecision] * t$95$2), $MachinePrecision] * N[(t$95$2 - 3.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * N[(N[(4.0 * t$95$2), $MachinePrecision] - 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] + N[(t$95$0 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * x1), $MachinePrecision]), $MachinePrecision] + x1), $MachinePrecision] + N[(3.0 * N[(N[(N[(t$95$0 - N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(3 \cdot x1\right) \cdot x1\\
t_1 := x1 \cdot x1 + 1\\
t_2 := \frac{\left(t\_0 + 2 \cdot x2\right) - x1}{t\_1}\\
x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot t\_2\right) \cdot \left(t\_2 - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot t\_2 - 6\right)\right) \cdot t\_1 + t\_0 \cdot t\_2\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(t\_0 - 2 \cdot x2\right) - x1}{t\_1}\right)
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* (* 3.0 x1) x1))
(t_1 (+ (* x1 x1) 1.0))
(t_2 (/ (- (+ t_0 (* 2.0 x2)) x1) t_1)))
(+
x1
(+
(+
(+
(+
(*
(+
(* (* (* 2.0 x1) t_2) (- t_2 3.0))
(* (* x1 x1) (- (* 4.0 t_2) 6.0)))
t_1)
(* t_0 t_2))
(* (* x1 x1) x1))
x1)
(* 3.0 (/ (- (- t_0 (* 2.0 x2)) x1) t_1))))))
double code(double x1, double x2) {
double t_0 = (3.0 * x1) * x1;
double t_1 = (x1 * x1) + 1.0;
double t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1;
return x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)));
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
t_0 = (3.0d0 * x1) * x1
t_1 = (x1 * x1) + 1.0d0
t_2 = ((t_0 + (2.0d0 * x2)) - x1) / t_1
code = x1 + (((((((((2.0d0 * x1) * t_2) * (t_2 - 3.0d0)) + ((x1 * x1) * ((4.0d0 * t_2) - 6.0d0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0d0 * (((t_0 - (2.0d0 * x2)) - x1) / t_1)))
end function
public static double code(double x1, double x2) {
double t_0 = (3.0 * x1) * x1;
double t_1 = (x1 * x1) + 1.0;
double t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1;
return x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)));
}
def code(x1, x2): t_0 = (3.0 * x1) * x1 t_1 = (x1 * x1) + 1.0 t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1 return x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)))
function code(x1, x2) t_0 = Float64(Float64(3.0 * x1) * x1) t_1 = Float64(Float64(x1 * x1) + 1.0) t_2 = Float64(Float64(Float64(t_0 + Float64(2.0 * x2)) - x1) / t_1) return Float64(x1 + Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(2.0 * x1) * t_2) * Float64(t_2 - 3.0)) + Float64(Float64(x1 * x1) * Float64(Float64(4.0 * t_2) - 6.0))) * t_1) + Float64(t_0 * t_2)) + Float64(Float64(x1 * x1) * x1)) + x1) + Float64(3.0 * Float64(Float64(Float64(t_0 - Float64(2.0 * x2)) - x1) / t_1)))) end
function tmp = code(x1, x2) t_0 = (3.0 * x1) * x1; t_1 = (x1 * x1) + 1.0; t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1; tmp = x1 + (((((((((2.0 * x1) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((4.0 * t_2) - 6.0))) * t_1) + (t_0 * t_2)) + ((x1 * x1) * x1)) + x1) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1))); end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(3.0 * x1), $MachinePrecision] * x1), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(t$95$0 + N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$1), $MachinePrecision]}, N[(x1 + N[(N[(N[(N[(N[(N[(N[(N[(N[(2.0 * x1), $MachinePrecision] * t$95$2), $MachinePrecision] * N[(t$95$2 - 3.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * N[(N[(4.0 * t$95$2), $MachinePrecision] - 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] + N[(t$95$0 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * x1), $MachinePrecision]), $MachinePrecision] + x1), $MachinePrecision] + N[(3.0 * N[(N[(N[(t$95$0 - N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(3 \cdot x1\right) \cdot x1\\
t_1 := x1 \cdot x1 + 1\\
t_2 := \frac{\left(t\_0 + 2 \cdot x2\right) - x1}{t\_1}\\
x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot t\_2\right) \cdot \left(t\_2 - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot t\_2 - 6\right)\right) \cdot t\_1 + t\_0 \cdot t\_2\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(t\_0 - 2 \cdot x2\right) - x1}{t\_1}\right)
\end{array}
\end{array}
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x1 x1) 1.0))
(t_1 (+ (* 2.0 x2) (* x1 (+ (* x1 3.0) -1.0))))
(t_2
(+
9.0
(+
(*
t_0
(+
(* x1 (* x1 -6.0))
(*
(/ t_1 t_0)
(+ (* x1 (+ -6.0 (* t_1 (/ 2.0 t_0)))) (* (* x1 x1) 4.0)))))
(* x1 (+ 2.0 (* x1 (+ x1 9.0))))))))
(if (<= x1 -5.5e+102)
(* x1 (* (* x1 x1) -3.0))
(if (<= x1 -0.00068)
t_2
(if (<= x1 0.0077)
(+
(* x1 (+ -1.0 (* x1 9.0)))
(* x2 (+ -6.0 (+ (* x1 (+ (* x1 12.0) -12.0)) (* 8.0 (* x1 x2))))))
(if (<= x1 5e+153) t_2 (* x1 (* x1 9.0))))))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (2.0 * x2) + (x1 * ((x1 * 3.0) + -1.0));
double t_2 = 9.0 + ((t_0 * ((x1 * (x1 * -6.0)) + ((t_1 / t_0) * ((x1 * (-6.0 + (t_1 * (2.0 / t_0)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0)))));
double tmp;
if (x1 <= -5.5e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= -0.00068) {
tmp = t_2;
} else if (x1 <= 0.0077) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2)))));
} else if (x1 <= 5e+153) {
tmp = t_2;
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (x1 * x1) + 1.0d0
t_1 = (2.0d0 * x2) + (x1 * ((x1 * 3.0d0) + (-1.0d0)))
t_2 = 9.0d0 + ((t_0 * ((x1 * (x1 * (-6.0d0))) + ((t_1 / t_0) * ((x1 * ((-6.0d0) + (t_1 * (2.0d0 / t_0)))) + ((x1 * x1) * 4.0d0))))) + (x1 * (2.0d0 + (x1 * (x1 + 9.0d0)))))
if (x1 <= (-5.5d+102)) then
tmp = x1 * ((x1 * x1) * (-3.0d0))
else if (x1 <= (-0.00068d0)) then
tmp = t_2
else if (x1 <= 0.0077d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * ((-6.0d0) + ((x1 * ((x1 * 12.0d0) + (-12.0d0))) + (8.0d0 * (x1 * x2)))))
else if (x1 <= 5d+153) then
tmp = t_2
else
tmp = x1 * (x1 * 9.0d0)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (2.0 * x2) + (x1 * ((x1 * 3.0) + -1.0));
double t_2 = 9.0 + ((t_0 * ((x1 * (x1 * -6.0)) + ((t_1 / t_0) * ((x1 * (-6.0 + (t_1 * (2.0 / t_0)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0)))));
double tmp;
if (x1 <= -5.5e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= -0.00068) {
tmp = t_2;
} else if (x1 <= 0.0077) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2)))));
} else if (x1 <= 5e+153) {
tmp = t_2;
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) + 1.0 t_1 = (2.0 * x2) + (x1 * ((x1 * 3.0) + -1.0)) t_2 = 9.0 + ((t_0 * ((x1 * (x1 * -6.0)) + ((t_1 / t_0) * ((x1 * (-6.0 + (t_1 * (2.0 / t_0)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0))))) tmp = 0 if x1 <= -5.5e+102: tmp = x1 * ((x1 * x1) * -3.0) elif x1 <= -0.00068: tmp = t_2 elif x1 <= 0.0077: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2))))) elif x1 <= 5e+153: tmp = t_2 else: tmp = x1 * (x1 * 9.0) return tmp
function code(x1, x2) t_0 = Float64(Float64(x1 * x1) + 1.0) t_1 = Float64(Float64(2.0 * x2) + Float64(x1 * Float64(Float64(x1 * 3.0) + -1.0))) t_2 = Float64(9.0 + Float64(Float64(t_0 * Float64(Float64(x1 * Float64(x1 * -6.0)) + Float64(Float64(t_1 / t_0) * Float64(Float64(x1 * Float64(-6.0 + Float64(t_1 * Float64(2.0 / t_0)))) + Float64(Float64(x1 * x1) * 4.0))))) + Float64(x1 * Float64(2.0 + Float64(x1 * Float64(x1 + 9.0)))))) tmp = 0.0 if (x1 <= -5.5e+102) tmp = Float64(x1 * Float64(Float64(x1 * x1) * -3.0)); elseif (x1 <= -0.00068) tmp = t_2; elseif (x1 <= 0.0077) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * Float64(-6.0 + Float64(Float64(x1 * Float64(Float64(x1 * 12.0) + -12.0)) + Float64(8.0 * Float64(x1 * x2)))))); elseif (x1 <= 5e+153) tmp = t_2; else tmp = Float64(x1 * Float64(x1 * 9.0)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) + 1.0; t_1 = (2.0 * x2) + (x1 * ((x1 * 3.0) + -1.0)); t_2 = 9.0 + ((t_0 * ((x1 * (x1 * -6.0)) + ((t_1 / t_0) * ((x1 * (-6.0 + (t_1 * (2.0 / t_0)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0))))); tmp = 0.0; if (x1 <= -5.5e+102) tmp = x1 * ((x1 * x1) * -3.0); elseif (x1 <= -0.00068) tmp = t_2; elseif (x1 <= 0.0077) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2))))); elseif (x1 <= 5e+153) tmp = t_2; else tmp = x1 * (x1 * 9.0); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(2.0 * x2), $MachinePrecision] + N[(x1 * N[(N[(x1 * 3.0), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(9.0 + N[(N[(t$95$0 * N[(N[(x1 * N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$1 / t$95$0), $MachinePrecision] * N[(N[(x1 * N[(-6.0 + N[(t$95$1 * N[(2.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(2.0 + N[(x1 * N[(x1 + 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5.5e+102], N[(x1 * N[(N[(x1 * x1), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -0.00068], t$95$2, If[LessEqual[x1, 0.0077], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(-6.0 + N[(N[(x1 * N[(N[(x1 * 12.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision] + N[(8.0 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 5e+153], t$95$2, N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot x1 + 1\\
t_1 := 2 \cdot x2 + x1 \cdot \left(x1 \cdot 3 + -1\right)\\
t_2 := 9 + \left(t\_0 \cdot \left(x1 \cdot \left(x1 \cdot -6\right) + \frac{t\_1}{t\_0} \cdot \left(x1 \cdot \left(-6 + t\_1 \cdot \frac{2}{t\_0}\right) + \left(x1 \cdot x1\right) \cdot 4\right)\right) + x1 \cdot \left(2 + x1 \cdot \left(x1 + 9\right)\right)\right)\\
\mathbf{if}\;x1 \leq -5.5 \cdot 10^{+102}:\\
\;\;\;\;x1 \cdot \left(\left(x1 \cdot x1\right) \cdot -3\right)\\
\mathbf{elif}\;x1 \leq -0.00068:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x1 \leq 0.0077:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot \left(-6 + \left(x1 \cdot \left(x1 \cdot 12 + -12\right) + 8 \cdot \left(x1 \cdot x2\right)\right)\right)\\
\mathbf{elif}\;x1 \leq 5 \cdot 10^{+153}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot 9\right)\\
\end{array}
\end{array}
if x1 < -5.49999999999999981e102Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around inf
Simplified0.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in x1 around 0
*-commutativeN/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.49999999999999981e102 < x1 < -6.8e-4 or 0.0077000000000000002 < x1 < 5.00000000000000018e153Initial program 99.4%
Simplified99.6%
Taylor expanded in x1 around inf
Simplified99.6%
Taylor expanded in x1 around inf
Simplified99.6%
if -6.8e-4 < x1 < 0.0077000000000000002Initial program 99.4%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified88.6%
Taylor expanded in x2 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified99.8%
if 5.00000000000000018e153 < x1 Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around 0
Simplified69.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification99.9%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x1 (* x1 x1)))
(t_1 (* x1 (* x1 3.0)))
(t_2 (+ (* x1 x1) 1.0))
(t_3 (/ (- (+ t_1 (* 2.0 x2)) x1) t_2))
(t_4 (* x1 (+ (* x1 3.0) -1.0)))
(t_5 (+ (* 2.0 x2) t_4)))
(if (<=
(+
x1
(+
(+
x1
(+
(+
(*
t_2
(+
(* (* (* x1 2.0) t_3) (- t_3 3.0))
(* (* x1 x1) (- (* t_3 4.0) 6.0))))
(* t_1 t_3))
t_0))
(* 3.0 (/ (- (- t_1 (* 2.0 x2)) x1) t_2))))
INFINITY)
(fma
3.0
(/ (+ (* x2 -2.0) t_4) t_2)
(+
(*
t_2
(+
(* (* x1 x1) -6.0)
(/ (* x1 (+ (+ -6.0 (/ t_5 (/ t_2 2.0))) (* x1 4.0))) (/ t_2 t_5))))
(* x1 (+ 2.0 (* x1 (+ x1 (/ t_5 (/ t_2 3.0))))))))
(* 6.0 (* x1 t_0)))))
double code(double x1, double x2) {
double t_0 = x1 * (x1 * x1);
double t_1 = x1 * (x1 * 3.0);
double t_2 = (x1 * x1) + 1.0;
double t_3 = ((t_1 + (2.0 * x2)) - x1) / t_2;
double t_4 = x1 * ((x1 * 3.0) + -1.0);
double t_5 = (2.0 * x2) + t_4;
double tmp;
if ((x1 + ((x1 + (((t_2 * ((((x1 * 2.0) * t_3) * (t_3 - 3.0)) + ((x1 * x1) * ((t_3 * 4.0) - 6.0)))) + (t_1 * t_3)) + t_0)) + (3.0 * (((t_1 - (2.0 * x2)) - x1) / t_2)))) <= ((double) INFINITY)) {
tmp = fma(3.0, (((x2 * -2.0) + t_4) / t_2), ((t_2 * (((x1 * x1) * -6.0) + ((x1 * ((-6.0 + (t_5 / (t_2 / 2.0))) + (x1 * 4.0))) / (t_2 / t_5)))) + (x1 * (2.0 + (x1 * (x1 + (t_5 / (t_2 / 3.0))))))));
} else {
tmp = 6.0 * (x1 * t_0);
}
return tmp;
}
function code(x1, x2) t_0 = Float64(x1 * Float64(x1 * x1)) t_1 = Float64(x1 * Float64(x1 * 3.0)) t_2 = Float64(Float64(x1 * x1) + 1.0) t_3 = Float64(Float64(Float64(t_1 + Float64(2.0 * x2)) - x1) / t_2) t_4 = Float64(x1 * Float64(Float64(x1 * 3.0) + -1.0)) t_5 = Float64(Float64(2.0 * x2) + t_4) tmp = 0.0 if (Float64(x1 + Float64(Float64(x1 + Float64(Float64(Float64(t_2 * Float64(Float64(Float64(Float64(x1 * 2.0) * t_3) * Float64(t_3 - 3.0)) + Float64(Float64(x1 * x1) * Float64(Float64(t_3 * 4.0) - 6.0)))) + Float64(t_1 * t_3)) + t_0)) + Float64(3.0 * Float64(Float64(Float64(t_1 - Float64(2.0 * x2)) - x1) / t_2)))) <= Inf) tmp = fma(3.0, Float64(Float64(Float64(x2 * -2.0) + t_4) / t_2), Float64(Float64(t_2 * Float64(Float64(Float64(x1 * x1) * -6.0) + Float64(Float64(x1 * Float64(Float64(-6.0 + Float64(t_5 / Float64(t_2 / 2.0))) + Float64(x1 * 4.0))) / Float64(t_2 / t_5)))) + Float64(x1 * Float64(2.0 + Float64(x1 * Float64(x1 + Float64(t_5 / Float64(t_2 / 3.0)))))))); else tmp = Float64(6.0 * Float64(x1 * t_0)); end return tmp end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x1 * N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(t$95$1 + N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(x1 * N[(N[(x1 * 3.0), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(2.0 * x2), $MachinePrecision] + t$95$4), $MachinePrecision]}, If[LessEqual[N[(x1 + N[(N[(x1 + N[(N[(N[(t$95$2 * N[(N[(N[(N[(x1 * 2.0), $MachinePrecision] * t$95$3), $MachinePrecision] * N[(t$95$3 - 3.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * N[(N[(t$95$3 * 4.0), $MachinePrecision] - 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * t$95$3), $MachinePrecision]), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision] + N[(3.0 * N[(N[(N[(t$95$1 - N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(3.0 * N[(N[(N[(x2 * -2.0), $MachinePrecision] + t$95$4), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(N[(x1 * x1), $MachinePrecision] * -6.0), $MachinePrecision] + N[(N[(x1 * N[(N[(-6.0 + N[(t$95$5 / N[(t$95$2 / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$2 / t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(2.0 + N[(x1 * N[(x1 + N[(t$95$5 / N[(t$95$2 / 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(6.0 * N[(x1 * t$95$0), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot x1\right)\\
t_1 := x1 \cdot \left(x1 \cdot 3\right)\\
t_2 := x1 \cdot x1 + 1\\
t_3 := \frac{\left(t\_1 + 2 \cdot x2\right) - x1}{t\_2}\\
t_4 := x1 \cdot \left(x1 \cdot 3 + -1\right)\\
t_5 := 2 \cdot x2 + t\_4\\
\mathbf{if}\;x1 + \left(\left(x1 + \left(\left(t\_2 \cdot \left(\left(\left(x1 \cdot 2\right) \cdot t\_3\right) \cdot \left(t\_3 - 3\right) + \left(x1 \cdot x1\right) \cdot \left(t\_3 \cdot 4 - 6\right)\right) + t\_1 \cdot t\_3\right) + t\_0\right)\right) + 3 \cdot \frac{\left(t\_1 - 2 \cdot x2\right) - x1}{t\_2}\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(3, \frac{x2 \cdot -2 + t\_4}{t\_2}, t\_2 \cdot \left(\left(x1 \cdot x1\right) \cdot -6 + \frac{x1 \cdot \left(\left(-6 + \frac{t\_5}{\frac{t\_2}{2}}\right) + x1 \cdot 4\right)}{\frac{t\_2}{t\_5}}\right) + x1 \cdot \left(2 + x1 \cdot \left(x1 + \frac{t\_5}{\frac{t\_2}{3}}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;6 \cdot \left(x1 \cdot t\_0\right)\\
\end{array}
\end{array}
if (+.f64 x1 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 (+.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) (-.f64 (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) #s(literal 3 binary64))) (*.f64 (*.f64 x1 x1) (-.f64 (*.f64 #s(literal 4 binary64) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) #s(literal 6 binary64)))) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) (*.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))))) (*.f64 (*.f64 x1 x1) x1)) x1) (*.f64 #s(literal 3 binary64) (/.f64 (-.f64 (-.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))))) < +inf.0Initial program 99.4%
Simplified99.5%
Applied egg-rr99.7%
if +inf.0 < (+.f64 x1 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 (+.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) (-.f64 (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) #s(literal 3 binary64))) (*.f64 (*.f64 x1 x1) (-.f64 (*.f64 #s(literal 4 binary64) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) #s(literal 6 binary64)))) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) (*.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))))) (*.f64 (*.f64 x1 x1) x1)) x1) (*.f64 #s(literal 3 binary64) (/.f64 (-.f64 (-.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))))) Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around inf
Simplified0.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification99.8%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x1 (* x1 x1)))
(t_1 (* x1 (* x1 3.0)))
(t_2 (+ (* x1 x1) 1.0))
(t_3 (/ (- (+ t_1 (* 2.0 x2)) x1) t_2))
(t_4 (* x1 (+ (* x1 3.0) -1.0)))
(t_5 (+ (* 2.0 x2) t_4)))
(if (<=
(+
x1
(+
(+
x1
(+
(+
(*
t_2
(+
(* (* (* x1 2.0) t_3) (- t_3 3.0))
(* (* x1 x1) (- (* t_3 4.0) 6.0))))
(* t_1 t_3))
t_0))
(* 3.0 (/ (- (- t_1 (* 2.0 x2)) x1) t_2))))
INFINITY)
(+
(/ (* 3.0 (+ (* x2 -2.0) t_4)) t_2)
(+
(*
t_2
(+
(* x1 (* x1 -6.0))
(*
(/ t_5 t_2)
(+ (* x1 (+ -6.0 (* t_5 (/ 2.0 t_2)))) (* (* x1 x1) 4.0)))))
(* x1 (+ 2.0 (* x1 (+ x1 (* t_5 (/ 3.0 t_2))))))))
(* 6.0 (* x1 t_0)))))
double code(double x1, double x2) {
double t_0 = x1 * (x1 * x1);
double t_1 = x1 * (x1 * 3.0);
double t_2 = (x1 * x1) + 1.0;
double t_3 = ((t_1 + (2.0 * x2)) - x1) / t_2;
double t_4 = x1 * ((x1 * 3.0) + -1.0);
double t_5 = (2.0 * x2) + t_4;
double tmp;
if ((x1 + ((x1 + (((t_2 * ((((x1 * 2.0) * t_3) * (t_3 - 3.0)) + ((x1 * x1) * ((t_3 * 4.0) - 6.0)))) + (t_1 * t_3)) + t_0)) + (3.0 * (((t_1 - (2.0 * x2)) - x1) / t_2)))) <= ((double) INFINITY)) {
tmp = ((3.0 * ((x2 * -2.0) + t_4)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_5 / t_2) * ((x1 * (-6.0 + (t_5 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + (t_5 * (3.0 / t_2)))))));
} else {
tmp = 6.0 * (x1 * t_0);
}
return tmp;
}
public static double code(double x1, double x2) {
double t_0 = x1 * (x1 * x1);
double t_1 = x1 * (x1 * 3.0);
double t_2 = (x1 * x1) + 1.0;
double t_3 = ((t_1 + (2.0 * x2)) - x1) / t_2;
double t_4 = x1 * ((x1 * 3.0) + -1.0);
double t_5 = (2.0 * x2) + t_4;
double tmp;
if ((x1 + ((x1 + (((t_2 * ((((x1 * 2.0) * t_3) * (t_3 - 3.0)) + ((x1 * x1) * ((t_3 * 4.0) - 6.0)))) + (t_1 * t_3)) + t_0)) + (3.0 * (((t_1 - (2.0 * x2)) - x1) / t_2)))) <= Double.POSITIVE_INFINITY) {
tmp = ((3.0 * ((x2 * -2.0) + t_4)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_5 / t_2) * ((x1 * (-6.0 + (t_5 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + (t_5 * (3.0 / t_2)))))));
} else {
tmp = 6.0 * (x1 * t_0);
}
return tmp;
}
def code(x1, x2): t_0 = x1 * (x1 * x1) t_1 = x1 * (x1 * 3.0) t_2 = (x1 * x1) + 1.0 t_3 = ((t_1 + (2.0 * x2)) - x1) / t_2 t_4 = x1 * ((x1 * 3.0) + -1.0) t_5 = (2.0 * x2) + t_4 tmp = 0 if (x1 + ((x1 + (((t_2 * ((((x1 * 2.0) * t_3) * (t_3 - 3.0)) + ((x1 * x1) * ((t_3 * 4.0) - 6.0)))) + (t_1 * t_3)) + t_0)) + (3.0 * (((t_1 - (2.0 * x2)) - x1) / t_2)))) <= math.inf: tmp = ((3.0 * ((x2 * -2.0) + t_4)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_5 / t_2) * ((x1 * (-6.0 + (t_5 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + (t_5 * (3.0 / t_2))))))) else: tmp = 6.0 * (x1 * t_0) return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(x1 * x1)) t_1 = Float64(x1 * Float64(x1 * 3.0)) t_2 = Float64(Float64(x1 * x1) + 1.0) t_3 = Float64(Float64(Float64(t_1 + Float64(2.0 * x2)) - x1) / t_2) t_4 = Float64(x1 * Float64(Float64(x1 * 3.0) + -1.0)) t_5 = Float64(Float64(2.0 * x2) + t_4) tmp = 0.0 if (Float64(x1 + Float64(Float64(x1 + Float64(Float64(Float64(t_2 * Float64(Float64(Float64(Float64(x1 * 2.0) * t_3) * Float64(t_3 - 3.0)) + Float64(Float64(x1 * x1) * Float64(Float64(t_3 * 4.0) - 6.0)))) + Float64(t_1 * t_3)) + t_0)) + Float64(3.0 * Float64(Float64(Float64(t_1 - Float64(2.0 * x2)) - x1) / t_2)))) <= Inf) tmp = Float64(Float64(Float64(3.0 * Float64(Float64(x2 * -2.0) + t_4)) / t_2) + Float64(Float64(t_2 * Float64(Float64(x1 * Float64(x1 * -6.0)) + Float64(Float64(t_5 / t_2) * Float64(Float64(x1 * Float64(-6.0 + Float64(t_5 * Float64(2.0 / t_2)))) + Float64(Float64(x1 * x1) * 4.0))))) + Float64(x1 * Float64(2.0 + Float64(x1 * Float64(x1 + Float64(t_5 * Float64(3.0 / t_2)))))))); else tmp = Float64(6.0 * Float64(x1 * t_0)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * (x1 * x1); t_1 = x1 * (x1 * 3.0); t_2 = (x1 * x1) + 1.0; t_3 = ((t_1 + (2.0 * x2)) - x1) / t_2; t_4 = x1 * ((x1 * 3.0) + -1.0); t_5 = (2.0 * x2) + t_4; tmp = 0.0; if ((x1 + ((x1 + (((t_2 * ((((x1 * 2.0) * t_3) * (t_3 - 3.0)) + ((x1 * x1) * ((t_3 * 4.0) - 6.0)))) + (t_1 * t_3)) + t_0)) + (3.0 * (((t_1 - (2.0 * x2)) - x1) / t_2)))) <= Inf) tmp = ((3.0 * ((x2 * -2.0) + t_4)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_5 / t_2) * ((x1 * (-6.0 + (t_5 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + (t_5 * (3.0 / t_2))))))); else tmp = 6.0 * (x1 * t_0); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x1 * N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(t$95$1 + N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(x1 * N[(N[(x1 * 3.0), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(2.0 * x2), $MachinePrecision] + t$95$4), $MachinePrecision]}, If[LessEqual[N[(x1 + N[(N[(x1 + N[(N[(N[(t$95$2 * N[(N[(N[(N[(x1 * 2.0), $MachinePrecision] * t$95$3), $MachinePrecision] * N[(t$95$3 - 3.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * N[(N[(t$95$3 * 4.0), $MachinePrecision] - 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * t$95$3), $MachinePrecision]), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision] + N[(3.0 * N[(N[(N[(t$95$1 - N[(2.0 * x2), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(3.0 * N[(N[(x2 * -2.0), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(x1 * N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$5 / t$95$2), $MachinePrecision] * N[(N[(x1 * N[(-6.0 + N[(t$95$5 * N[(2.0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(2.0 + N[(x1 * N[(x1 + N[(t$95$5 * N[(3.0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(6.0 * N[(x1 * t$95$0), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot x1\right)\\
t_1 := x1 \cdot \left(x1 \cdot 3\right)\\
t_2 := x1 \cdot x1 + 1\\
t_3 := \frac{\left(t\_1 + 2 \cdot x2\right) - x1}{t\_2}\\
t_4 := x1 \cdot \left(x1 \cdot 3 + -1\right)\\
t_5 := 2 \cdot x2 + t\_4\\
\mathbf{if}\;x1 + \left(\left(x1 + \left(\left(t\_2 \cdot \left(\left(\left(x1 \cdot 2\right) \cdot t\_3\right) \cdot \left(t\_3 - 3\right) + \left(x1 \cdot x1\right) \cdot \left(t\_3 \cdot 4 - 6\right)\right) + t\_1 \cdot t\_3\right) + t\_0\right)\right) + 3 \cdot \frac{\left(t\_1 - 2 \cdot x2\right) - x1}{t\_2}\right) \leq \infty:\\
\;\;\;\;\frac{3 \cdot \left(x2 \cdot -2 + t\_4\right)}{t\_2} + \left(t\_2 \cdot \left(x1 \cdot \left(x1 \cdot -6\right) + \frac{t\_5}{t\_2} \cdot \left(x1 \cdot \left(-6 + t\_5 \cdot \frac{2}{t\_2}\right) + \left(x1 \cdot x1\right) \cdot 4\right)\right) + x1 \cdot \left(2 + x1 \cdot \left(x1 + t\_5 \cdot \frac{3}{t\_2}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;6 \cdot \left(x1 \cdot t\_0\right)\\
\end{array}
\end{array}
if (+.f64 x1 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 (+.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) (-.f64 (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) #s(literal 3 binary64))) (*.f64 (*.f64 x1 x1) (-.f64 (*.f64 #s(literal 4 binary64) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) #s(literal 6 binary64)))) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) (*.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))))) (*.f64 (*.f64 x1 x1) x1)) x1) (*.f64 #s(literal 3 binary64) (/.f64 (-.f64 (-.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))))) < +inf.0Initial program 99.4%
Simplified99.5%
if +inf.0 < (+.f64 x1 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 (+.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) (-.f64 (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) #s(literal 3 binary64))) (*.f64 (*.f64 x1 x1) (-.f64 (*.f64 #s(literal 4 binary64) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))) #s(literal 6 binary64)))) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))) (*.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (/.f64 (-.f64 (+.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64))))) (*.f64 (*.f64 x1 x1) x1)) x1) (*.f64 #s(literal 3 binary64) (/.f64 (-.f64 (-.f64 (*.f64 (*.f64 #s(literal 3 binary64) x1) x1) (*.f64 #s(literal 2 binary64) x2)) x1) (+.f64 (*.f64 x1 x1) #s(literal 1 binary64)))))) Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around inf
Simplified0.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification99.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x1 x1) 1.0))
(t_1 (+ (* x1 3.0) -1.0))
(t_2 (+ (* 2.0 x2) (* x1 t_1))))
(if (<= x1 -5.5e+102)
(* x1 (* (* x1 x1) -3.0))
(if (<= x1 5e+153)
(+
(+
(*
t_0
(+
(* (* x1 x1) -6.0)
(/ (* x1 (+ (+ -6.0 (/ t_2 (/ t_0 2.0))) (* x1 4.0))) (/ t_0 t_2))))
(* x1 (+ 2.0 (* x1 (+ x1 (/ t_2 (/ t_0 3.0)))))))
(/ (+ (* (* x1 3.0) t_1) (* x2 -6.0)) t_0))
(* x1 (* x1 9.0))))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (x1 * 3.0) + -1.0;
double t_2 = (2.0 * x2) + (x1 * t_1);
double tmp;
if (x1 <= -5.5e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= 5e+153) {
tmp = ((t_0 * (((x1 * x1) * -6.0) + ((x1 * ((-6.0 + (t_2 / (t_0 / 2.0))) + (x1 * 4.0))) / (t_0 / t_2)))) + (x1 * (2.0 + (x1 * (x1 + (t_2 / (t_0 / 3.0))))))) + ((((x1 * 3.0) * t_1) + (x2 * -6.0)) / t_0);
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (x1 * x1) + 1.0d0
t_1 = (x1 * 3.0d0) + (-1.0d0)
t_2 = (2.0d0 * x2) + (x1 * t_1)
if (x1 <= (-5.5d+102)) then
tmp = x1 * ((x1 * x1) * (-3.0d0))
else if (x1 <= 5d+153) then
tmp = ((t_0 * (((x1 * x1) * (-6.0d0)) + ((x1 * (((-6.0d0) + (t_2 / (t_0 / 2.0d0))) + (x1 * 4.0d0))) / (t_0 / t_2)))) + (x1 * (2.0d0 + (x1 * (x1 + (t_2 / (t_0 / 3.0d0))))))) + ((((x1 * 3.0d0) * t_1) + (x2 * (-6.0d0))) / t_0)
else
tmp = x1 * (x1 * 9.0d0)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (x1 * 3.0) + -1.0;
double t_2 = (2.0 * x2) + (x1 * t_1);
double tmp;
if (x1 <= -5.5e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= 5e+153) {
tmp = ((t_0 * (((x1 * x1) * -6.0) + ((x1 * ((-6.0 + (t_2 / (t_0 / 2.0))) + (x1 * 4.0))) / (t_0 / t_2)))) + (x1 * (2.0 + (x1 * (x1 + (t_2 / (t_0 / 3.0))))))) + ((((x1 * 3.0) * t_1) + (x2 * -6.0)) / t_0);
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) + 1.0 t_1 = (x1 * 3.0) + -1.0 t_2 = (2.0 * x2) + (x1 * t_1) tmp = 0 if x1 <= -5.5e+102: tmp = x1 * ((x1 * x1) * -3.0) elif x1 <= 5e+153: tmp = ((t_0 * (((x1 * x1) * -6.0) + ((x1 * ((-6.0 + (t_2 / (t_0 / 2.0))) + (x1 * 4.0))) / (t_0 / t_2)))) + (x1 * (2.0 + (x1 * (x1 + (t_2 / (t_0 / 3.0))))))) + ((((x1 * 3.0) * t_1) + (x2 * -6.0)) / t_0) else: tmp = x1 * (x1 * 9.0) return tmp
function code(x1, x2) t_0 = Float64(Float64(x1 * x1) + 1.0) t_1 = Float64(Float64(x1 * 3.0) + -1.0) t_2 = Float64(Float64(2.0 * x2) + Float64(x1 * t_1)) tmp = 0.0 if (x1 <= -5.5e+102) tmp = Float64(x1 * Float64(Float64(x1 * x1) * -3.0)); elseif (x1 <= 5e+153) tmp = Float64(Float64(Float64(t_0 * Float64(Float64(Float64(x1 * x1) * -6.0) + Float64(Float64(x1 * Float64(Float64(-6.0 + Float64(t_2 / Float64(t_0 / 2.0))) + Float64(x1 * 4.0))) / Float64(t_0 / t_2)))) + Float64(x1 * Float64(2.0 + Float64(x1 * Float64(x1 + Float64(t_2 / Float64(t_0 / 3.0))))))) + Float64(Float64(Float64(Float64(x1 * 3.0) * t_1) + Float64(x2 * -6.0)) / t_0)); else tmp = Float64(x1 * Float64(x1 * 9.0)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) + 1.0; t_1 = (x1 * 3.0) + -1.0; t_2 = (2.0 * x2) + (x1 * t_1); tmp = 0.0; if (x1 <= -5.5e+102) tmp = x1 * ((x1 * x1) * -3.0); elseif (x1 <= 5e+153) tmp = ((t_0 * (((x1 * x1) * -6.0) + ((x1 * ((-6.0 + (t_2 / (t_0 / 2.0))) + (x1 * 4.0))) / (t_0 / t_2)))) + (x1 * (2.0 + (x1 * (x1 + (t_2 / (t_0 / 3.0))))))) + ((((x1 * 3.0) * t_1) + (x2 * -6.0)) / t_0); else tmp = x1 * (x1 * 9.0); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x1 * 3.0), $MachinePrecision] + -1.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * x2), $MachinePrecision] + N[(x1 * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5.5e+102], N[(x1 * N[(N[(x1 * x1), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 5e+153], N[(N[(N[(t$95$0 * N[(N[(N[(x1 * x1), $MachinePrecision] * -6.0), $MachinePrecision] + N[(N[(x1 * N[(N[(-6.0 + N[(t$95$2 / N[(t$95$0 / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(2.0 + N[(x1 * N[(x1 + N[(t$95$2 / N[(t$95$0 / 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(x1 * 3.0), $MachinePrecision] * t$95$1), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot x1 + 1\\
t_1 := x1 \cdot 3 + -1\\
t_2 := 2 \cdot x2 + x1 \cdot t\_1\\
\mathbf{if}\;x1 \leq -5.5 \cdot 10^{+102}:\\
\;\;\;\;x1 \cdot \left(\left(x1 \cdot x1\right) \cdot -3\right)\\
\mathbf{elif}\;x1 \leq 5 \cdot 10^{+153}:\\
\;\;\;\;\left(t\_0 \cdot \left(\left(x1 \cdot x1\right) \cdot -6 + \frac{x1 \cdot \left(\left(-6 + \frac{t\_2}{\frac{t\_0}{2}}\right) + x1 \cdot 4\right)}{\frac{t\_0}{t\_2}}\right) + x1 \cdot \left(2 + x1 \cdot \left(x1 + \frac{t\_2}{\frac{t\_0}{3}}\right)\right)\right) + \frac{\left(x1 \cdot 3\right) \cdot t\_1 + x2 \cdot -6}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot 9\right)\\
\end{array}
\end{array}
if x1 < -5.49999999999999981e102Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around inf
Simplified0.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in x1 around 0
*-commutativeN/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.49999999999999981e102 < x1 < 5.00000000000000018e153Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
if 5.00000000000000018e153 < x1 Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around 0
Simplified69.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification99.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x1 (+ (* x1 3.0) -1.0)))
(t_1 (+ (* 2.0 x2) t_0))
(t_2 (+ (* x1 x1) 1.0)))
(if (<= x1 -5.5e+102)
(* x1 (* (* x1 x1) -3.0))
(if (<= x1 5e+153)
(+
(/ (* 3.0 (+ (* x2 -2.0) t_0)) t_2)
(+
(*
t_2
(+
(* x1 (* x1 -6.0))
(*
(/ t_1 t_2)
(+ (* x1 (+ -6.0 (* t_1 (/ 2.0 t_2)))) (* (* x1 x1) 4.0)))))
(* x1 (+ 2.0 (* x1 (+ x1 9.0))))))
(* x1 (* x1 9.0))))))
double code(double x1, double x2) {
double t_0 = x1 * ((x1 * 3.0) + -1.0);
double t_1 = (2.0 * x2) + t_0;
double t_2 = (x1 * x1) + 1.0;
double tmp;
if (x1 <= -5.5e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= 5e+153) {
tmp = ((3.0 * ((x2 * -2.0) + t_0)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_1 / t_2) * ((x1 * (-6.0 + (t_1 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0)))));
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x1 * ((x1 * 3.0d0) + (-1.0d0))
t_1 = (2.0d0 * x2) + t_0
t_2 = (x1 * x1) + 1.0d0
if (x1 <= (-5.5d+102)) then
tmp = x1 * ((x1 * x1) * (-3.0d0))
else if (x1 <= 5d+153) then
tmp = ((3.0d0 * ((x2 * (-2.0d0)) + t_0)) / t_2) + ((t_2 * ((x1 * (x1 * (-6.0d0))) + ((t_1 / t_2) * ((x1 * ((-6.0d0) + (t_1 * (2.0d0 / t_2)))) + ((x1 * x1) * 4.0d0))))) + (x1 * (2.0d0 + (x1 * (x1 + 9.0d0)))))
else
tmp = x1 * (x1 * 9.0d0)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x1 * ((x1 * 3.0) + -1.0);
double t_1 = (2.0 * x2) + t_0;
double t_2 = (x1 * x1) + 1.0;
double tmp;
if (x1 <= -5.5e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= 5e+153) {
tmp = ((3.0 * ((x2 * -2.0) + t_0)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_1 / t_2) * ((x1 * (-6.0 + (t_1 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0)))));
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
def code(x1, x2): t_0 = x1 * ((x1 * 3.0) + -1.0) t_1 = (2.0 * x2) + t_0 t_2 = (x1 * x1) + 1.0 tmp = 0 if x1 <= -5.5e+102: tmp = x1 * ((x1 * x1) * -3.0) elif x1 <= 5e+153: tmp = ((3.0 * ((x2 * -2.0) + t_0)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_1 / t_2) * ((x1 * (-6.0 + (t_1 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0))))) else: tmp = x1 * (x1 * 9.0) return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(Float64(x1 * 3.0) + -1.0)) t_1 = Float64(Float64(2.0 * x2) + t_0) t_2 = Float64(Float64(x1 * x1) + 1.0) tmp = 0.0 if (x1 <= -5.5e+102) tmp = Float64(x1 * Float64(Float64(x1 * x1) * -3.0)); elseif (x1 <= 5e+153) tmp = Float64(Float64(Float64(3.0 * Float64(Float64(x2 * -2.0) + t_0)) / t_2) + Float64(Float64(t_2 * Float64(Float64(x1 * Float64(x1 * -6.0)) + Float64(Float64(t_1 / t_2) * Float64(Float64(x1 * Float64(-6.0 + Float64(t_1 * Float64(2.0 / t_2)))) + Float64(Float64(x1 * x1) * 4.0))))) + Float64(x1 * Float64(2.0 + Float64(x1 * Float64(x1 + 9.0)))))); else tmp = Float64(x1 * Float64(x1 * 9.0)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * ((x1 * 3.0) + -1.0); t_1 = (2.0 * x2) + t_0; t_2 = (x1 * x1) + 1.0; tmp = 0.0; if (x1 <= -5.5e+102) tmp = x1 * ((x1 * x1) * -3.0); elseif (x1 <= 5e+153) tmp = ((3.0 * ((x2 * -2.0) + t_0)) / t_2) + ((t_2 * ((x1 * (x1 * -6.0)) + ((t_1 / t_2) * ((x1 * (-6.0 + (t_1 * (2.0 / t_2)))) + ((x1 * x1) * 4.0))))) + (x1 * (2.0 + (x1 * (x1 + 9.0))))); else tmp = x1 * (x1 * 9.0); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(N[(x1 * 3.0), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(2.0 * x2), $MachinePrecision] + t$95$0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, If[LessEqual[x1, -5.5e+102], N[(x1 * N[(N[(x1 * x1), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 5e+153], N[(N[(N[(3.0 * N[(N[(x2 * -2.0), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(x1 * N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$1 / t$95$2), $MachinePrecision] * N[(N[(x1 * N[(-6.0 + N[(t$95$1 * N[(2.0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(2.0 + N[(x1 * N[(x1 + 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot 3 + -1\right)\\
t_1 := 2 \cdot x2 + t\_0\\
t_2 := x1 \cdot x1 + 1\\
\mathbf{if}\;x1 \leq -5.5 \cdot 10^{+102}:\\
\;\;\;\;x1 \cdot \left(\left(x1 \cdot x1\right) \cdot -3\right)\\
\mathbf{elif}\;x1 \leq 5 \cdot 10^{+153}:\\
\;\;\;\;\frac{3 \cdot \left(x2 \cdot -2 + t\_0\right)}{t\_2} + \left(t\_2 \cdot \left(x1 \cdot \left(x1 \cdot -6\right) + \frac{t\_1}{t\_2} \cdot \left(x1 \cdot \left(-6 + t\_1 \cdot \frac{2}{t\_2}\right) + \left(x1 \cdot x1\right) \cdot 4\right)\right) + x1 \cdot \left(2 + x1 \cdot \left(x1 + 9\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot 9\right)\\
\end{array}
\end{array}
if x1 < -5.49999999999999981e102Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around inf
Simplified0.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in x1 around 0
*-commutativeN/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.49999999999999981e102 < x1 < 5.00000000000000018e153Initial program 99.4%
Simplified99.5%
Taylor expanded in x1 around inf
Simplified99.2%
if 5.00000000000000018e153 < x1 Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around 0
Simplified69.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2.02e+14)
(* (* (* x1 x1) (* x1 x1)) (- 6.0 (/ (/ (* x2 -8.0) x1) x1)))
(if (<= x1 150000.0)
(+
(* x1 (+ -1.0 (* x1 9.0)))
(* x2 (+ -6.0 (+ (* x1 (+ (* x1 12.0) -12.0)) (* 8.0 (* x1 x2))))))
(* (* x1 x1) (+ (* x1 (+ -3.0 (* x1 6.0))) (+ -3.0 (* x2 8.0)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2.02e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 150000.0) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2)))));
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-2.02d+14)) then
tmp = ((x1 * x1) * (x1 * x1)) * (6.0d0 - (((x2 * (-8.0d0)) / x1) / x1))
else if (x1 <= 150000.0d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * ((-6.0d0) + ((x1 * ((x1 * 12.0d0) + (-12.0d0))) + (8.0d0 * (x1 * x2)))))
else
tmp = (x1 * x1) * ((x1 * ((-3.0d0) + (x1 * 6.0d0))) + ((-3.0d0) + (x2 * 8.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2.02e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 150000.0) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2)))));
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2.02e+14: tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)) elif x1 <= 150000.0: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2))))) else: tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2.02e+14) tmp = Float64(Float64(Float64(x1 * x1) * Float64(x1 * x1)) * Float64(6.0 - Float64(Float64(Float64(x2 * -8.0) / x1) / x1))); elseif (x1 <= 150000.0) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * Float64(-6.0 + Float64(Float64(x1 * Float64(Float64(x1 * 12.0) + -12.0)) + Float64(8.0 * Float64(x1 * x2)))))); else tmp = Float64(Float64(x1 * x1) * Float64(Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0))) + Float64(-3.0 + Float64(x2 * 8.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2.02e+14) tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)); elseif (x1 <= 150000.0) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + ((x1 * ((x1 * 12.0) + -12.0)) + (8.0 * (x1 * x2))))); else tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2.02e+14], N[(N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] * N[(6.0 - N[(N[(N[(x2 * -8.0), $MachinePrecision] / x1), $MachinePrecision] / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 150000.0], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(-6.0 + N[(N[(x1 * N[(N[(x1 * 12.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision] + N[(8.0 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-3.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2.02 \cdot 10^{+14}:\\
\;\;\;\;\left(\left(x1 \cdot x1\right) \cdot \left(x1 \cdot x1\right)\right) \cdot \left(6 - \frac{\frac{x2 \cdot -8}{x1}}{x1}\right)\\
\mathbf{elif}\;x1 \leq 150000:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot \left(-6 + \left(x1 \cdot \left(x1 \cdot 12 + -12\right) + 8 \cdot \left(x1 \cdot x2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right) + \left(-3 + x2 \cdot 8\right)\right)\\
\end{array}
\end{array}
if x1 < -2.02e14Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.9%
Taylor expanded in x2 around inf
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
unpow2N/A
associate-/r*N/A
distribute-neg-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6494.9%
Simplified94.9%
if -2.02e14 < x1 < 1.5e5Initial program 99.4%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified87.5%
Taylor expanded in x2 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified98.4%
if 1.5e5 < x1 Initial program 48.9%
Simplified49.0%
Taylor expanded in x1 around inf
Simplified49.0%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified90.8%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6491.0%
Simplified91.0%
Final simplification95.7%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2e+14)
(* (* (* x1 x1) (* x1 x1)) (- 6.0 (/ (/ (* x2 -8.0) x1) x1)))
(if (<= x1 2.2e-279)
(+ (* x2 -6.0) (* x2 (* x1 (* x2 8.0))))
(if (<= x1 0.07)
(+ (* x1 (+ -1.0 (* x1 9.0))) (* x2 -6.0))
(* (* x1 x1) (+ (* x1 (+ -3.0 (* x1 6.0))) (+ -3.0 (* x2 8.0))))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 2.2e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-2d+14)) then
tmp = ((x1 * x1) * (x1 * x1)) * (6.0d0 - (((x2 * (-8.0d0)) / x1) / x1))
else if (x1 <= 2.2d-279) then
tmp = (x2 * (-6.0d0)) + (x2 * (x1 * (x2 * 8.0d0)))
else if (x1 <= 0.07d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * (-6.0d0))
else
tmp = (x1 * x1) * ((x1 * ((-3.0d0) + (x1 * 6.0d0))) + ((-3.0d0) + (x2 * 8.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 2.2e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2e+14: tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)) elif x1 <= 2.2e-279: tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))) elif x1 <= 0.07: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0) else: tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2e+14) tmp = Float64(Float64(Float64(x1 * x1) * Float64(x1 * x1)) * Float64(6.0 - Float64(Float64(Float64(x2 * -8.0) / x1) / x1))); elseif (x1 <= 2.2e-279) tmp = Float64(Float64(x2 * -6.0) + Float64(x2 * Float64(x1 * Float64(x2 * 8.0)))); elseif (x1 <= 0.07) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * -6.0)); else tmp = Float64(Float64(x1 * x1) * Float64(Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0))) + Float64(-3.0 + Float64(x2 * 8.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2e+14) tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)); elseif (x1 <= 2.2e-279) tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))); elseif (x1 <= 0.07) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0); else tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2e+14], N[(N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] * N[(6.0 - N[(N[(N[(x2 * -8.0), $MachinePrecision] / x1), $MachinePrecision] / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 2.2e-279], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-3.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\left(\left(x1 \cdot x1\right) \cdot \left(x1 \cdot x1\right)\right) \cdot \left(6 - \frac{\frac{x2 \cdot -8}{x1}}{x1}\right)\\
\mathbf{elif}\;x1 \leq 2.2 \cdot 10^{-279}:\\
\;\;\;\;x2 \cdot -6 + x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot -6\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right) + \left(-3 + x2 \cdot 8\right)\right)\\
\end{array}
\end{array}
if x1 < -2e14Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.9%
Taylor expanded in x2 around inf
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
unpow2N/A
associate-/r*N/A
distribute-neg-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6494.9%
Simplified94.9%
if -2e14 < x1 < 2.2e-279Initial program 99.5%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified83.4%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6483.4%
Simplified83.4%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6481.4%
Simplified81.4%
if 2.2e-279 < x1 < 0.070000000000000007Initial program 99.3%
Simplified99.4%
Taylor expanded in x1 around 0
Simplified95.7%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.8%
Simplified82.8%
if 0.070000000000000007 < x1 Initial program 50.6%
Simplified50.7%
Taylor expanded in x1 around inf
Simplified50.7%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified88.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6488.2%
Simplified88.2%
Final simplification87.3%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ -3.0 (* x2 8.0))))
(if (<= x1 -2e+14)
(* (* x1 x1) (+ t_0 (* x1 (* x1 6.0))))
(if (<= x1 8e-279)
(+ (* x2 -6.0) (* x2 (* x1 (* x2 8.0))))
(if (<= x1 0.07)
(+ (* x1 (+ -1.0 (* x1 9.0))) (* x2 -6.0))
(* (* x1 x1) (+ (* x1 (+ -3.0 (* x1 6.0))) t_0)))))))
double code(double x1, double x2) {
double t_0 = -3.0 + (x2 * 8.0);
double tmp;
if (x1 <= -2e+14) {
tmp = (x1 * x1) * (t_0 + (x1 * (x1 * 6.0)));
} else if (x1 <= 8e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + t_0);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: tmp
t_0 = (-3.0d0) + (x2 * 8.0d0)
if (x1 <= (-2d+14)) then
tmp = (x1 * x1) * (t_0 + (x1 * (x1 * 6.0d0)))
else if (x1 <= 8d-279) then
tmp = (x2 * (-6.0d0)) + (x2 * (x1 * (x2 * 8.0d0)))
else if (x1 <= 0.07d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * (-6.0d0))
else
tmp = (x1 * x1) * ((x1 * ((-3.0d0) + (x1 * 6.0d0))) + t_0)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = -3.0 + (x2 * 8.0);
double tmp;
if (x1 <= -2e+14) {
tmp = (x1 * x1) * (t_0 + (x1 * (x1 * 6.0)));
} else if (x1 <= 8e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + t_0);
}
return tmp;
}
def code(x1, x2): t_0 = -3.0 + (x2 * 8.0) tmp = 0 if x1 <= -2e+14: tmp = (x1 * x1) * (t_0 + (x1 * (x1 * 6.0))) elif x1 <= 8e-279: tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))) elif x1 <= 0.07: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0) else: tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + t_0) return tmp
function code(x1, x2) t_0 = Float64(-3.0 + Float64(x2 * 8.0)) tmp = 0.0 if (x1 <= -2e+14) tmp = Float64(Float64(x1 * x1) * Float64(t_0 + Float64(x1 * Float64(x1 * 6.0)))); elseif (x1 <= 8e-279) tmp = Float64(Float64(x2 * -6.0) + Float64(x2 * Float64(x1 * Float64(x2 * 8.0)))); elseif (x1 <= 0.07) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * -6.0)); else tmp = Float64(Float64(x1 * x1) * Float64(Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0))) + t_0)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = -3.0 + (x2 * 8.0); tmp = 0.0; if (x1 <= -2e+14) tmp = (x1 * x1) * (t_0 + (x1 * (x1 * 6.0))); elseif (x1 <= 8e-279) tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))); elseif (x1 <= 0.07) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0); else tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + t_0); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(-3.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2e+14], N[(N[(x1 * x1), $MachinePrecision] * N[(t$95$0 + N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 8e-279], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -3 + x2 \cdot 8\\
\mathbf{if}\;x1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(t\_0 + x1 \cdot \left(x1 \cdot 6\right)\right)\\
\mathbf{elif}\;x1 \leq 8 \cdot 10^{-279}:\\
\;\;\;\;x2 \cdot -6 + x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot -6\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right) + t\_0\right)\\
\end{array}
\end{array}
if x1 < -2e14Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.9%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6494.9%
Simplified94.9%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6494.9%
Simplified94.9%
if -2e14 < x1 < 8.00000000000000044e-279Initial program 99.5%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified83.4%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6483.4%
Simplified83.4%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6481.4%
Simplified81.4%
if 8.00000000000000044e-279 < x1 < 0.070000000000000007Initial program 99.3%
Simplified99.4%
Taylor expanded in x1 around 0
Simplified95.7%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.8%
Simplified82.8%
if 0.070000000000000007 < x1 Initial program 50.6%
Simplified50.7%
Taylor expanded in x1 around inf
Simplified50.7%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified88.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6488.2%
Simplified88.2%
Final simplification87.3%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* (* x1 x1) (+ (+ -3.0 (* x2 8.0)) (* x1 (* x1 6.0))))))
(if (<= x1 -2e+14)
t_0
(if (<= x1 4.2e-279)
(+ (* x2 -6.0) (* x2 (* x1 (* x2 8.0))))
(if (<= x1 0.044) (+ (* x1 (+ -1.0 (* x1 9.0))) (* x2 -6.0)) t_0)))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) * ((-3.0 + (x2 * 8.0)) + (x1 * (x1 * 6.0)));
double tmp;
if (x1 <= -2e+14) {
tmp = t_0;
} else if (x1 <= 4.2e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.044) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: tmp
t_0 = (x1 * x1) * (((-3.0d0) + (x2 * 8.0d0)) + (x1 * (x1 * 6.0d0)))
if (x1 <= (-2d+14)) then
tmp = t_0
else if (x1 <= 4.2d-279) then
tmp = (x2 * (-6.0d0)) + (x2 * (x1 * (x2 * 8.0d0)))
else if (x1 <= 0.044d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * (-6.0d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x1 * x1) * ((-3.0 + (x2 * 8.0)) + (x1 * (x1 * 6.0)));
double tmp;
if (x1 <= -2e+14) {
tmp = t_0;
} else if (x1 <= 4.2e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.044) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = t_0;
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) * ((-3.0 + (x2 * 8.0)) + (x1 * (x1 * 6.0))) tmp = 0 if x1 <= -2e+14: tmp = t_0 elif x1 <= 4.2e-279: tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))) elif x1 <= 0.044: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0) else: tmp = t_0 return tmp
function code(x1, x2) t_0 = Float64(Float64(x1 * x1) * Float64(Float64(-3.0 + Float64(x2 * 8.0)) + Float64(x1 * Float64(x1 * 6.0)))) tmp = 0.0 if (x1 <= -2e+14) tmp = t_0; elseif (x1 <= 4.2e-279) tmp = Float64(Float64(x2 * -6.0) + Float64(x2 * Float64(x1 * Float64(x2 * 8.0)))); elseif (x1 <= 0.044) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * -6.0)); else tmp = t_0; end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) * ((-3.0 + (x2 * 8.0)) + (x1 * (x1 * 6.0))); tmp = 0.0; if (x1 <= -2e+14) tmp = t_0; elseif (x1 <= 4.2e-279) tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))); elseif (x1 <= 0.044) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0); else tmp = t_0; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x1 * x1), $MachinePrecision] * N[(N[(-3.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2e+14], t$95$0, If[LessEqual[x1, 4.2e-279], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.044], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x1 \cdot x1\right) \cdot \left(\left(-3 + x2 \cdot 8\right) + x1 \cdot \left(x1 \cdot 6\right)\right)\\
\mathbf{if}\;x1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 4.2 \cdot 10^{-279}:\\
\;\;\;\;x2 \cdot -6 + x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{elif}\;x1 \leq 0.044:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot -6\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x1 < -2e14 or 0.043999999999999997 < x1 Initial program 37.3%
Simplified37.4%
Taylor expanded in x1 around inf
Simplified37.4%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified91.9%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.0%
Simplified92.0%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6491.9%
Simplified91.9%
if -2e14 < x1 < 4.20000000000000011e-279Initial program 99.5%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified83.4%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6483.4%
Simplified83.4%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6481.4%
Simplified81.4%
if 4.20000000000000011e-279 < x1 < 0.043999999999999997Initial program 99.3%
Simplified99.4%
Taylor expanded in x1 around 0
Simplified95.7%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.8%
Simplified82.8%
Final simplification87.2%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2e+14)
(* (* (* x1 x1) (* x1 x1)) (- 6.0 (/ (/ (* x2 -8.0) x1) x1)))
(if (<= x1 15000.0)
(+ (* x1 (+ -1.0 (* x1 9.0))) (* x2 (+ -6.0 (* x1 (+ -12.0 (* x2 8.0))))))
(* (* x1 x1) (+ (* x1 (+ -3.0 (* x1 6.0))) (+ -3.0 (* x2 8.0)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 15000.0) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + (x1 * (-12.0 + (x2 * 8.0)))));
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-2d+14)) then
tmp = ((x1 * x1) * (x1 * x1)) * (6.0d0 - (((x2 * (-8.0d0)) / x1) / x1))
else if (x1 <= 15000.0d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * ((-6.0d0) + (x1 * ((-12.0d0) + (x2 * 8.0d0)))))
else
tmp = (x1 * x1) * ((x1 * ((-3.0d0) + (x1 * 6.0d0))) + ((-3.0d0) + (x2 * 8.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 15000.0) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + (x1 * (-12.0 + (x2 * 8.0)))));
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2e+14: tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)) elif x1 <= 15000.0: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + (x1 * (-12.0 + (x2 * 8.0))))) else: tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2e+14) tmp = Float64(Float64(Float64(x1 * x1) * Float64(x1 * x1)) * Float64(6.0 - Float64(Float64(Float64(x2 * -8.0) / x1) / x1))); elseif (x1 <= 15000.0) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(-12.0 + Float64(x2 * 8.0)))))); else tmp = Float64(Float64(x1 * x1) * Float64(Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0))) + Float64(-3.0 + Float64(x2 * 8.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2e+14) tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)); elseif (x1 <= 15000.0) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * (-6.0 + (x1 * (-12.0 + (x2 * 8.0))))); else tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2e+14], N[(N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] * N[(6.0 - N[(N[(N[(x2 * -8.0), $MachinePrecision] / x1), $MachinePrecision] / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 15000.0], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(-6.0 + N[(x1 * N[(-12.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-3.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\left(\left(x1 \cdot x1\right) \cdot \left(x1 \cdot x1\right)\right) \cdot \left(6 - \frac{\frac{x2 \cdot -8}{x1}}{x1}\right)\\
\mathbf{elif}\;x1 \leq 15000:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot \left(-6 + x1 \cdot \left(-12 + x2 \cdot 8\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right) + \left(-3 + x2 \cdot 8\right)\right)\\
\end{array}
\end{array}
if x1 < -2e14Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.9%
Taylor expanded in x2 around inf
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
unpow2N/A
associate-/r*N/A
distribute-neg-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6494.9%
Simplified94.9%
if -2e14 < x1 < 15000Initial program 99.4%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified87.5%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6487.5%
Simplified87.5%
Taylor expanded in x2 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6498.4%
Simplified98.4%
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6498.4%
Applied egg-rr98.4%
if 15000 < x1 Initial program 48.9%
Simplified49.0%
Taylor expanded in x1 around inf
Simplified49.0%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified90.8%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6491.0%
Simplified91.0%
Final simplification95.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x2 (* x1 (* x2 8.0)))))
(if (<= x1 -8.8e+101)
(* x1 (* (* x1 x1) -3.0))
(if (<= x1 -1.8e-57)
t_0
(if (<= x1 2.3e-13)
(- (* x2 -6.0) x1)
(if (<= x1 8.2e+152) t_0 (* x1 (* x1 9.0))))))))
double code(double x1, double x2) {
double t_0 = x2 * (x1 * (x2 * 8.0));
double tmp;
if (x1 <= -8.8e+101) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= -1.8e-57) {
tmp = t_0;
} else if (x1 <= 2.3e-13) {
tmp = (x2 * -6.0) - x1;
} else if (x1 <= 8.2e+152) {
tmp = t_0;
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: tmp
t_0 = x2 * (x1 * (x2 * 8.0d0))
if (x1 <= (-8.8d+101)) then
tmp = x1 * ((x1 * x1) * (-3.0d0))
else if (x1 <= (-1.8d-57)) then
tmp = t_0
else if (x1 <= 2.3d-13) then
tmp = (x2 * (-6.0d0)) - x1
else if (x1 <= 8.2d+152) then
tmp = t_0
else
tmp = x1 * (x1 * 9.0d0)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x2 * (x1 * (x2 * 8.0));
double tmp;
if (x1 <= -8.8e+101) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= -1.8e-57) {
tmp = t_0;
} else if (x1 <= 2.3e-13) {
tmp = (x2 * -6.0) - x1;
} else if (x1 <= 8.2e+152) {
tmp = t_0;
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
def code(x1, x2): t_0 = x2 * (x1 * (x2 * 8.0)) tmp = 0 if x1 <= -8.8e+101: tmp = x1 * ((x1 * x1) * -3.0) elif x1 <= -1.8e-57: tmp = t_0 elif x1 <= 2.3e-13: tmp = (x2 * -6.0) - x1 elif x1 <= 8.2e+152: tmp = t_0 else: tmp = x1 * (x1 * 9.0) return tmp
function code(x1, x2) t_0 = Float64(x2 * Float64(x1 * Float64(x2 * 8.0))) tmp = 0.0 if (x1 <= -8.8e+101) tmp = Float64(x1 * Float64(Float64(x1 * x1) * -3.0)); elseif (x1 <= -1.8e-57) tmp = t_0; elseif (x1 <= 2.3e-13) tmp = Float64(Float64(x2 * -6.0) - x1); elseif (x1 <= 8.2e+152) tmp = t_0; else tmp = Float64(x1 * Float64(x1 * 9.0)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = x2 * (x1 * (x2 * 8.0)); tmp = 0.0; if (x1 <= -8.8e+101) tmp = x1 * ((x1 * x1) * -3.0); elseif (x1 <= -1.8e-57) tmp = t_0; elseif (x1 <= 2.3e-13) tmp = (x2 * -6.0) - x1; elseif (x1 <= 8.2e+152) tmp = t_0; else tmp = x1 * (x1 * 9.0); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -8.8e+101], N[(x1 * N[(N[(x1 * x1), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -1.8e-57], t$95$0, If[LessEqual[x1, 2.3e-13], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], If[LessEqual[x1, 8.2e+152], t$95$0, N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{if}\;x1 \leq -8.8 \cdot 10^{+101}:\\
\;\;\;\;x1 \cdot \left(\left(x1 \cdot x1\right) \cdot -3\right)\\
\mathbf{elif}\;x1 \leq -1.8 \cdot 10^{-57}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 2.3 \cdot 10^{-13}:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{elif}\;x1 \leq 8.2 \cdot 10^{+152}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot 9\right)\\
\end{array}
\end{array}
if x1 < -8.8000000000000003e101Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around inf
Simplified0.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in x1 around 0
*-commutativeN/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if -8.8000000000000003e101 < x1 < -1.8000000000000001e-57 or 2.29999999999999979e-13 < x1 < 8.1999999999999996e152Initial program 99.4%
Simplified99.6%
Taylor expanded in x1 around 0
Simplified45.4%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6448.4%
Simplified48.4%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.7%
Simplified41.7%
if -1.8000000000000001e-57 < x1 < 2.29999999999999979e-13Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.9%
Simplified80.9%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.1%
Simplified81.1%
if 8.1999999999999996e152 < x1 Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around 0
Simplified69.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* 8.0 (* x1 (* x2 x2)))))
(if (<= x1 -2.25e+102)
(* x1 (* (* x1 x1) -3.0))
(if (<= x1 -6.6e-58)
t_0
(if (<= x1 5e-15)
(- (* x2 -6.0) x1)
(if (<= x1 4.5e+153) t_0 (* x1 (* x1 9.0))))))))
double code(double x1, double x2) {
double t_0 = 8.0 * (x1 * (x2 * x2));
double tmp;
if (x1 <= -2.25e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= -6.6e-58) {
tmp = t_0;
} else if (x1 <= 5e-15) {
tmp = (x2 * -6.0) - x1;
} else if (x1 <= 4.5e+153) {
tmp = t_0;
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: tmp
t_0 = 8.0d0 * (x1 * (x2 * x2))
if (x1 <= (-2.25d+102)) then
tmp = x1 * ((x1 * x1) * (-3.0d0))
else if (x1 <= (-6.6d-58)) then
tmp = t_0
else if (x1 <= 5d-15) then
tmp = (x2 * (-6.0d0)) - x1
else if (x1 <= 4.5d+153) then
tmp = t_0
else
tmp = x1 * (x1 * 9.0d0)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = 8.0 * (x1 * (x2 * x2));
double tmp;
if (x1 <= -2.25e+102) {
tmp = x1 * ((x1 * x1) * -3.0);
} else if (x1 <= -6.6e-58) {
tmp = t_0;
} else if (x1 <= 5e-15) {
tmp = (x2 * -6.0) - x1;
} else if (x1 <= 4.5e+153) {
tmp = t_0;
} else {
tmp = x1 * (x1 * 9.0);
}
return tmp;
}
def code(x1, x2): t_0 = 8.0 * (x1 * (x2 * x2)) tmp = 0 if x1 <= -2.25e+102: tmp = x1 * ((x1 * x1) * -3.0) elif x1 <= -6.6e-58: tmp = t_0 elif x1 <= 5e-15: tmp = (x2 * -6.0) - x1 elif x1 <= 4.5e+153: tmp = t_0 else: tmp = x1 * (x1 * 9.0) return tmp
function code(x1, x2) t_0 = Float64(8.0 * Float64(x1 * Float64(x2 * x2))) tmp = 0.0 if (x1 <= -2.25e+102) tmp = Float64(x1 * Float64(Float64(x1 * x1) * -3.0)); elseif (x1 <= -6.6e-58) tmp = t_0; elseif (x1 <= 5e-15) tmp = Float64(Float64(x2 * -6.0) - x1); elseif (x1 <= 4.5e+153) tmp = t_0; else tmp = Float64(x1 * Float64(x1 * 9.0)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = 8.0 * (x1 * (x2 * x2)); tmp = 0.0; if (x1 <= -2.25e+102) tmp = x1 * ((x1 * x1) * -3.0); elseif (x1 <= -6.6e-58) tmp = t_0; elseif (x1 <= 5e-15) tmp = (x2 * -6.0) - x1; elseif (x1 <= 4.5e+153) tmp = t_0; else tmp = x1 * (x1 * 9.0); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(8.0 * N[(x1 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2.25e+102], N[(x1 * N[(N[(x1 * x1), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -6.6e-58], t$95$0, If[LessEqual[x1, 5e-15], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], If[LessEqual[x1, 4.5e+153], t$95$0, N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 8 \cdot \left(x1 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{if}\;x1 \leq -2.25 \cdot 10^{+102}:\\
\;\;\;\;x1 \cdot \left(\left(x1 \cdot x1\right) \cdot -3\right)\\
\mathbf{elif}\;x1 \leq -6.6 \cdot 10^{-58}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 5 \cdot 10^{-15}:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{elif}\;x1 \leq 4.5 \cdot 10^{+153}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot 9\right)\\
\end{array}
\end{array}
if x1 < -2.2500000000000001e102Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around inf
Simplified0.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in x1 around 0
*-commutativeN/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if -2.2500000000000001e102 < x1 < -6.60000000000000052e-58 or 4.99999999999999999e-15 < x1 < 4.5000000000000001e153Initial program 99.4%
Simplified99.6%
Taylor expanded in x1 around 0
Simplified45.4%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6441.7%
Simplified41.7%
if -6.60000000000000052e-58 < x1 < 4.99999999999999999e-15Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.9%
Simplified80.9%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.1%
Simplified81.1%
if 4.5000000000000001e153 < x1 Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around 0
Simplified69.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x1 (* x1 9.0))) (t_1 (* 8.0 (* x1 (* x2 x2)))))
(if (<= x1 -3.3e+108)
t_0
(if (<= x1 -1.5e-57)
t_1
(if (<= x1 3.1e-15)
(- (* x2 -6.0) x1)
(if (<= x1 4.5e+153) t_1 t_0))))))
double code(double x1, double x2) {
double t_0 = x1 * (x1 * 9.0);
double t_1 = 8.0 * (x1 * (x2 * x2));
double tmp;
if (x1 <= -3.3e+108) {
tmp = t_0;
} else if (x1 <= -1.5e-57) {
tmp = t_1;
} else if (x1 <= 3.1e-15) {
tmp = (x2 * -6.0) - x1;
} else if (x1 <= 4.5e+153) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x1 * (x1 * 9.0d0)
t_1 = 8.0d0 * (x1 * (x2 * x2))
if (x1 <= (-3.3d+108)) then
tmp = t_0
else if (x1 <= (-1.5d-57)) then
tmp = t_1
else if (x1 <= 3.1d-15) then
tmp = (x2 * (-6.0d0)) - x1
else if (x1 <= 4.5d+153) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x1 * (x1 * 9.0);
double t_1 = 8.0 * (x1 * (x2 * x2));
double tmp;
if (x1 <= -3.3e+108) {
tmp = t_0;
} else if (x1 <= -1.5e-57) {
tmp = t_1;
} else if (x1 <= 3.1e-15) {
tmp = (x2 * -6.0) - x1;
} else if (x1 <= 4.5e+153) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x1, x2): t_0 = x1 * (x1 * 9.0) t_1 = 8.0 * (x1 * (x2 * x2)) tmp = 0 if x1 <= -3.3e+108: tmp = t_0 elif x1 <= -1.5e-57: tmp = t_1 elif x1 <= 3.1e-15: tmp = (x2 * -6.0) - x1 elif x1 <= 4.5e+153: tmp = t_1 else: tmp = t_0 return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(x1 * 9.0)) t_1 = Float64(8.0 * Float64(x1 * Float64(x2 * x2))) tmp = 0.0 if (x1 <= -3.3e+108) tmp = t_0; elseif (x1 <= -1.5e-57) tmp = t_1; elseif (x1 <= 3.1e-15) tmp = Float64(Float64(x2 * -6.0) - x1); elseif (x1 <= 4.5e+153) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * (x1 * 9.0); t_1 = 8.0 * (x1 * (x2 * x2)); tmp = 0.0; if (x1 <= -3.3e+108) tmp = t_0; elseif (x1 <= -1.5e-57) tmp = t_1; elseif (x1 <= 3.1e-15) tmp = (x2 * -6.0) - x1; elseif (x1 <= 4.5e+153) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(8.0 * N[(x1 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -3.3e+108], t$95$0, If[LessEqual[x1, -1.5e-57], t$95$1, If[LessEqual[x1, 3.1e-15], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], If[LessEqual[x1, 4.5e+153], t$95$1, t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot 9\right)\\
t_1 := 8 \cdot \left(x1 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{if}\;x1 \leq -3.3 \cdot 10^{+108}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq -1.5 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x1 \leq 3.1 \cdot 10^{-15}:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{elif}\;x1 \leq 4.5 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x1 < -3.30000000000000019e108 or 4.5000000000000001e153 < x1 Initial program 0.0%
Simplified0.0%
Taylor expanded in x1 around 0
Simplified59.4%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6468.9%
Simplified68.9%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6490.4%
Simplified90.4%
if -3.30000000000000019e108 < x1 < -1.5e-57 or 3.0999999999999999e-15 < x1 < 4.5000000000000001e153Initial program 99.4%
Simplified99.6%
Taylor expanded in x1 around 0
Simplified45.4%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6441.7%
Simplified41.7%
if -1.5e-57 < x1 < 3.0999999999999999e-15Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.9%
Simplified80.9%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.1%
Simplified81.1%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -8.5e+14)
(* (* (* x1 x1) (* x1 x1)) (- 6.0 (/ (/ (* x2 -8.0) x1) x1)))
(if (<= x1 820.0)
(- (* x2 (+ (* x1 -12.0) (+ -6.0 (* x1 (* x2 8.0))))) x1)
(* (* x1 x1) (+ (* x1 (+ -3.0 (* x1 6.0))) (+ -3.0 (* x2 8.0)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -8.5e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 820.0) {
tmp = (x2 * ((x1 * -12.0) + (-6.0 + (x1 * (x2 * 8.0))))) - x1;
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-8.5d+14)) then
tmp = ((x1 * x1) * (x1 * x1)) * (6.0d0 - (((x2 * (-8.0d0)) / x1) / x1))
else if (x1 <= 820.0d0) then
tmp = (x2 * ((x1 * (-12.0d0)) + ((-6.0d0) + (x1 * (x2 * 8.0d0))))) - x1
else
tmp = (x1 * x1) * ((x1 * ((-3.0d0) + (x1 * 6.0d0))) + ((-3.0d0) + (x2 * 8.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -8.5e+14) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 820.0) {
tmp = (x2 * ((x1 * -12.0) + (-6.0 + (x1 * (x2 * 8.0))))) - x1;
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -8.5e+14: tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)) elif x1 <= 820.0: tmp = (x2 * ((x1 * -12.0) + (-6.0 + (x1 * (x2 * 8.0))))) - x1 else: tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -8.5e+14) tmp = Float64(Float64(Float64(x1 * x1) * Float64(x1 * x1)) * Float64(6.0 - Float64(Float64(Float64(x2 * -8.0) / x1) / x1))); elseif (x1 <= 820.0) tmp = Float64(Float64(x2 * Float64(Float64(x1 * -12.0) + Float64(-6.0 + Float64(x1 * Float64(x2 * 8.0))))) - x1); else tmp = Float64(Float64(x1 * x1) * Float64(Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0))) + Float64(-3.0 + Float64(x2 * 8.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -8.5e+14) tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)); elseif (x1 <= 820.0) tmp = (x2 * ((x1 * -12.0) + (-6.0 + (x1 * (x2 * 8.0))))) - x1; else tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -8.5e+14], N[(N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] * N[(6.0 - N[(N[(N[(x2 * -8.0), $MachinePrecision] / x1), $MachinePrecision] / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 820.0], N[(N[(x2 * N[(N[(x1 * -12.0), $MachinePrecision] + N[(-6.0 + N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-3.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -8.5 \cdot 10^{+14}:\\
\;\;\;\;\left(\left(x1 \cdot x1\right) \cdot \left(x1 \cdot x1\right)\right) \cdot \left(6 - \frac{\frac{x2 \cdot -8}{x1}}{x1}\right)\\
\mathbf{elif}\;x1 \leq 820:\\
\;\;\;\;x2 \cdot \left(x1 \cdot -12 + \left(-6 + x1 \cdot \left(x2 \cdot 8\right)\right)\right) - x1\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right) + \left(-3 + x2 \cdot 8\right)\right)\\
\end{array}
\end{array}
if x1 < -8.5e14Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.9%
Taylor expanded in x2 around inf
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
unpow2N/A
associate-/r*N/A
distribute-neg-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6494.9%
Simplified94.9%
if -8.5e14 < x1 < 820Initial program 99.4%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified87.5%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6487.5%
Simplified87.5%
Taylor expanded in x2 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6498.4%
Simplified98.4%
Taylor expanded in x1 around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6497.9%
Simplified97.9%
if 820 < x1 Initial program 48.9%
Simplified49.0%
Taylor expanded in x1 around inf
Simplified49.0%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified90.8%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6491.0%
Simplified91.0%
Final simplification95.5%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -4.8e+15)
(* (* (* x1 x1) (* x1 x1)) (- 6.0 (/ (/ (* x2 -8.0) x1) x1)))
(if (<= x1 16000.0)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* (* x2 4.0) (+ (* 2.0 x2) -3.0)))))
(* (* x1 x1) (+ (* x1 (+ -3.0 (* x1 6.0))) (+ -3.0 (* x2 8.0)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -4.8e+15) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 16000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-4.8d+15)) then
tmp = ((x1 * x1) * (x1 * x1)) * (6.0d0 - (((x2 * (-8.0d0)) / x1) / x1))
else if (x1 <= 16000.0d0) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + ((x2 * 4.0d0) * ((2.0d0 * x2) + (-3.0d0)))))
else
tmp = (x1 * x1) * ((x1 * ((-3.0d0) + (x1 * 6.0d0))) + ((-3.0d0) + (x2 * 8.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -4.8e+15) {
tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1));
} else if (x1 <= 16000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else {
tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -4.8e+15: tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)) elif x1 <= 16000.0: tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))) else: tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -4.8e+15) tmp = Float64(Float64(Float64(x1 * x1) * Float64(x1 * x1)) * Float64(6.0 - Float64(Float64(Float64(x2 * -8.0) / x1) / x1))); elseif (x1 <= 16000.0) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(Float64(x2 * 4.0) * Float64(Float64(2.0 * x2) + -3.0))))); else tmp = Float64(Float64(x1 * x1) * Float64(Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0))) + Float64(-3.0 + Float64(x2 * 8.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -4.8e+15) tmp = ((x1 * x1) * (x1 * x1)) * (6.0 - (((x2 * -8.0) / x1) / x1)); elseif (x1 <= 16000.0) tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))); else tmp = (x1 * x1) * ((x1 * (-3.0 + (x1 * 6.0))) + (-3.0 + (x2 * 8.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -4.8e+15], N[(N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] * N[(6.0 - N[(N[(N[(x2 * -8.0), $MachinePrecision] / x1), $MachinePrecision] / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 16000.0], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(N[(x2 * 4.0), $MachinePrecision] * N[(N[(2.0 * x2), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-3.0 + N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -4.8 \cdot 10^{+15}:\\
\;\;\;\;\left(\left(x1 \cdot x1\right) \cdot \left(x1 \cdot x1\right)\right) \cdot \left(6 - \frac{\frac{x2 \cdot -8}{x1}}{x1}\right)\\
\mathbf{elif}\;x1 \leq 16000:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + \left(x2 \cdot 4\right) \cdot \left(2 \cdot x2 + -3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right) + \left(-3 + x2 \cdot 8\right)\right)\\
\end{array}
\end{array}
if x1 < -4.8e15Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.9%
Taylor expanded in x2 around inf
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
unpow2N/A
associate-/r*N/A
distribute-neg-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6494.9%
Simplified94.9%
if -4.8e15 < x1 < 16000Initial program 99.4%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6487.1%
Simplified87.1%
if 16000 < x1 Initial program 48.9%
Simplified49.0%
Taylor expanded in x1 around inf
Simplified49.0%
Taylor expanded in x1 around -inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified90.8%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6491.0%
Simplified91.0%
Final simplification90.3%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -4.1e+14)
(* 6.0 (* x1 (* x1 (* x1 x1))))
(if (<= x1 5.5e-279)
(+ (* x2 -6.0) (* x2 (* x1 (* x2 8.0))))
(if (<= x1 0.07)
(+ (* x1 (+ -1.0 (* x1 9.0))) (* x2 -6.0))
(* (* x1 x1) (* x1 (+ -3.0 (* x1 6.0))))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -4.1e+14) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= 5.5e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-4.1d+14)) then
tmp = 6.0d0 * (x1 * (x1 * (x1 * x1)))
else if (x1 <= 5.5d-279) then
tmp = (x2 * (-6.0d0)) + (x2 * (x1 * (x2 * 8.0d0)))
else if (x1 <= 0.07d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * (-6.0d0))
else
tmp = (x1 * x1) * (x1 * ((-3.0d0) + (x1 * 6.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -4.1e+14) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= 5.5e-279) {
tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -4.1e+14: tmp = 6.0 * (x1 * (x1 * (x1 * x1))) elif x1 <= 5.5e-279: tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))) elif x1 <= 0.07: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0) else: tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -4.1e+14) tmp = Float64(6.0 * Float64(x1 * Float64(x1 * Float64(x1 * x1)))); elseif (x1 <= 5.5e-279) tmp = Float64(Float64(x2 * -6.0) + Float64(x2 * Float64(x1 * Float64(x2 * 8.0)))); elseif (x1 <= 0.07) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * -6.0)); else tmp = Float64(Float64(x1 * x1) * Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -4.1e+14) tmp = 6.0 * (x1 * (x1 * (x1 * x1))); elseif (x1 <= 5.5e-279) tmp = (x2 * -6.0) + (x2 * (x1 * (x2 * 8.0))); elseif (x1 <= 0.07) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0); else tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -4.1e+14], N[(6.0 * N[(x1 * N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 5.5e-279], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -4.1 \cdot 10^{+14}:\\
\;\;\;\;6 \cdot \left(x1 \cdot \left(x1 \cdot \left(x1 \cdot x1\right)\right)\right)\\
\mathbf{elif}\;x1 \leq 5.5 \cdot 10^{-279}:\\
\;\;\;\;x2 \cdot -6 + x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot -6\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right)\right)\\
\end{array}
\end{array}
if x1 < -4.1e14Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6492.1%
Simplified92.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6492.1%
Simplified92.1%
if -4.1e14 < x1 < 5.5000000000000002e-279Initial program 99.5%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified83.4%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6483.4%
Simplified83.4%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6481.4%
Simplified81.4%
if 5.5000000000000002e-279 < x1 < 0.070000000000000007Initial program 99.3%
Simplified99.4%
Taylor expanded in x1 around 0
Simplified95.7%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.8%
Simplified82.8%
if 0.070000000000000007 < x1 Initial program 50.6%
Simplified50.7%
Taylor expanded in x1 around inf
Simplified50.7%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6482.2%
Simplified82.2%
Taylor expanded in x1 around 0
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
Final simplification85.1%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -3.5e+15)
(* 6.0 (* x1 (* x1 (* x1 x1))))
(if (<= x1 -9.4e-101)
(+ (* x2 -6.0) (* x1 (* 8.0 (* x2 x2))))
(if (<= x1 0.07)
(+ (* x1 (+ -1.0 (* x1 9.0))) (* x2 -6.0))
(* (* x1 x1) (* x1 (+ -3.0 (* x1 6.0))))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -3.5e+15) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -9.4e-101) {
tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-3.5d+15)) then
tmp = 6.0d0 * (x1 * (x1 * (x1 * x1)))
else if (x1 <= (-9.4d-101)) then
tmp = (x2 * (-6.0d0)) + (x1 * (8.0d0 * (x2 * x2)))
else if (x1 <= 0.07d0) then
tmp = (x1 * ((-1.0d0) + (x1 * 9.0d0))) + (x2 * (-6.0d0))
else
tmp = (x1 * x1) * (x1 * ((-3.0d0) + (x1 * 6.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -3.5e+15) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -9.4e-101) {
tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2)));
} else if (x1 <= 0.07) {
tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0);
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -3.5e+15: tmp = 6.0 * (x1 * (x1 * (x1 * x1))) elif x1 <= -9.4e-101: tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2))) elif x1 <= 0.07: tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0) else: tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -3.5e+15) tmp = Float64(6.0 * Float64(x1 * Float64(x1 * Float64(x1 * x1)))); elseif (x1 <= -9.4e-101) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(8.0 * Float64(x2 * x2)))); elseif (x1 <= 0.07) tmp = Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) + Float64(x2 * -6.0)); else tmp = Float64(Float64(x1 * x1) * Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -3.5e+15) tmp = 6.0 * (x1 * (x1 * (x1 * x1))); elseif (x1 <= -9.4e-101) tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2))); elseif (x1 <= 0.07) tmp = (x1 * (-1.0 + (x1 * 9.0))) + (x2 * -6.0); else tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -3.5e+15], N[(6.0 * N[(x1 * N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -9.4e-101], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -3.5 \cdot 10^{+15}:\\
\;\;\;\;6 \cdot \left(x1 \cdot \left(x1 \cdot \left(x1 \cdot x1\right)\right)\right)\\
\mathbf{elif}\;x1 \leq -9.4 \cdot 10^{-101}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right) + x2 \cdot -6\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right)\right)\\
\end{array}
\end{array}
if x1 < -3.5e15Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6492.1%
Simplified92.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6492.1%
Simplified92.1%
if -3.5e15 < x1 < -9.3999999999999999e-101Initial program 99.5%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified91.2%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.4%
Simplified65.4%
if -9.3999999999999999e-101 < x1 < 0.070000000000000007Initial program 99.4%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified87.4%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.7%
Simplified82.7%
if 0.070000000000000007 < x1 Initial program 50.6%
Simplified50.7%
Taylor expanded in x1 around inf
Simplified50.7%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6482.2%
Simplified82.2%
Taylor expanded in x1 around 0
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
Final simplification84.0%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -3.55e+15)
(* 6.0 (* x1 (* x1 (* x1 x1))))
(if (<= x1 -2.2e-102)
(+ (* x2 -6.0) (* x1 (* 8.0 (* x2 x2))))
(if (<= x1 0.07)
(- (* x2 -6.0) x1)
(* (* x1 x1) (* x1 (+ -3.0 (* x1 6.0))))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -3.55e+15) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -2.2e-102) {
tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2)));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-3.55d+15)) then
tmp = 6.0d0 * (x1 * (x1 * (x1 * x1)))
else if (x1 <= (-2.2d-102)) then
tmp = (x2 * (-6.0d0)) + (x1 * (8.0d0 * (x2 * x2)))
else if (x1 <= 0.07d0) then
tmp = (x2 * (-6.0d0)) - x1
else
tmp = (x1 * x1) * (x1 * ((-3.0d0) + (x1 * 6.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -3.55e+15) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -2.2e-102) {
tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2)));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -3.55e+15: tmp = 6.0 * (x1 * (x1 * (x1 * x1))) elif x1 <= -2.2e-102: tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2))) elif x1 <= 0.07: tmp = (x2 * -6.0) - x1 else: tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -3.55e+15) tmp = Float64(6.0 * Float64(x1 * Float64(x1 * Float64(x1 * x1)))); elseif (x1 <= -2.2e-102) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(8.0 * Float64(x2 * x2)))); elseif (x1 <= 0.07) tmp = Float64(Float64(x2 * -6.0) - x1); else tmp = Float64(Float64(x1 * x1) * Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -3.55e+15) tmp = 6.0 * (x1 * (x1 * (x1 * x1))); elseif (x1 <= -2.2e-102) tmp = (x2 * -6.0) + (x1 * (8.0 * (x2 * x2))); elseif (x1 <= 0.07) tmp = (x2 * -6.0) - x1; else tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -3.55e+15], N[(6.0 * N[(x1 * N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.2e-102], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -3.55 \cdot 10^{+15}:\\
\;\;\;\;6 \cdot \left(x1 \cdot \left(x1 \cdot \left(x1 \cdot x1\right)\right)\right)\\
\mathbf{elif}\;x1 \leq -2.2 \cdot 10^{-102}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right)\right)\\
\end{array}
\end{array}
if x1 < -3.55e15Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6492.1%
Simplified92.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6492.1%
Simplified92.1%
if -3.55e15 < x1 < -2.20000000000000013e-102Initial program 99.5%
Simplified99.5%
Taylor expanded in x1 around 0
Simplified91.2%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.4%
Simplified65.4%
if -2.20000000000000013e-102 < x1 < 0.070000000000000007Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6482.3%
Simplified82.3%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6482.6%
Simplified82.6%
if 0.070000000000000007 < x1 Initial program 50.6%
Simplified50.7%
Taylor expanded in x1 around inf
Simplified50.7%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6482.2%
Simplified82.2%
Taylor expanded in x1 around 0
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
Final simplification84.0%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -3.5e+15)
(* 6.0 (* x1 (* x1 (* x1 x1))))
(if (<= x1 -1.85e-63)
(* x2 (* x1 (* x2 8.0)))
(if (<= x1 0.07)
(- (* x2 -6.0) x1)
(* (* x1 x1) (* x1 (+ -3.0 (* x1 6.0))))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -3.5e+15) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -1.85e-63) {
tmp = x2 * (x1 * (x2 * 8.0));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-3.5d+15)) then
tmp = 6.0d0 * (x1 * (x1 * (x1 * x1)))
else if (x1 <= (-1.85d-63)) then
tmp = x2 * (x1 * (x2 * 8.0d0))
else if (x1 <= 0.07d0) then
tmp = (x2 * (-6.0d0)) - x1
else
tmp = (x1 * x1) * (x1 * ((-3.0d0) + (x1 * 6.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -3.5e+15) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -1.85e-63) {
tmp = x2 * (x1 * (x2 * 8.0));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -3.5e+15: tmp = 6.0 * (x1 * (x1 * (x1 * x1))) elif x1 <= -1.85e-63: tmp = x2 * (x1 * (x2 * 8.0)) elif x1 <= 0.07: tmp = (x2 * -6.0) - x1 else: tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -3.5e+15) tmp = Float64(6.0 * Float64(x1 * Float64(x1 * Float64(x1 * x1)))); elseif (x1 <= -1.85e-63) tmp = Float64(x2 * Float64(x1 * Float64(x2 * 8.0))); elseif (x1 <= 0.07) tmp = Float64(Float64(x2 * -6.0) - x1); else tmp = Float64(Float64(x1 * x1) * Float64(x1 * Float64(-3.0 + Float64(x1 * 6.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -3.5e+15) tmp = 6.0 * (x1 * (x1 * (x1 * x1))); elseif (x1 <= -1.85e-63) tmp = x2 * (x1 * (x2 * 8.0)); elseif (x1 <= 0.07) tmp = (x2 * -6.0) - x1; else tmp = (x1 * x1) * (x1 * (-3.0 + (x1 * 6.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -3.5e+15], N[(6.0 * N[(x1 * N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -1.85e-63], N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * N[(-3.0 + N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -3.5 \cdot 10^{+15}:\\
\;\;\;\;6 \cdot \left(x1 \cdot \left(x1 \cdot \left(x1 \cdot x1\right)\right)\right)\\
\mathbf{elif}\;x1 \leq -1.85 \cdot 10^{-63}:\\
\;\;\;\;x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(-3 + x1 \cdot 6\right)\right)\\
\end{array}
\end{array}
if x1 < -3.5e15Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6492.1%
Simplified92.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6492.1%
Simplified92.1%
if -3.5e15 < x1 < -1.85000000000000006e-63Initial program 99.4%
Simplified99.6%
Taylor expanded in x1 around 0
Simplified86.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.8%
Simplified85.8%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6460.0%
Simplified60.0%
if -1.85000000000000006e-63 < x1 < 0.070000000000000007Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.9%
Simplified80.9%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.1%
Simplified81.1%
if 0.070000000000000007 < x1 Initial program 50.6%
Simplified50.7%
Taylor expanded in x1 around inf
Simplified50.7%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6482.2%
Simplified82.2%
Taylor expanded in x1 around 0
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2.8e+14)
(* 6.0 (* x1 (* x1 (* x1 x1))))
(if (<= x1 -3.8e-62)
(* x2 (* x1 (* x2 8.0)))
(if (<= x1 0.07) (- (* x2 -6.0) x1) (* (* x1 x1) (* x1 (* x1 6.0)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2.8e+14) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -3.8e-62) {
tmp = x2 * (x1 * (x2 * 8.0));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = (x1 * x1) * (x1 * (x1 * 6.0));
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-2.8d+14)) then
tmp = 6.0d0 * (x1 * (x1 * (x1 * x1)))
else if (x1 <= (-3.8d-62)) then
tmp = x2 * (x1 * (x2 * 8.0d0))
else if (x1 <= 0.07d0) then
tmp = (x2 * (-6.0d0)) - x1
else
tmp = (x1 * x1) * (x1 * (x1 * 6.0d0))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2.8e+14) {
tmp = 6.0 * (x1 * (x1 * (x1 * x1)));
} else if (x1 <= -3.8e-62) {
tmp = x2 * (x1 * (x2 * 8.0));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = (x1 * x1) * (x1 * (x1 * 6.0));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2.8e+14: tmp = 6.0 * (x1 * (x1 * (x1 * x1))) elif x1 <= -3.8e-62: tmp = x2 * (x1 * (x2 * 8.0)) elif x1 <= 0.07: tmp = (x2 * -6.0) - x1 else: tmp = (x1 * x1) * (x1 * (x1 * 6.0)) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2.8e+14) tmp = Float64(6.0 * Float64(x1 * Float64(x1 * Float64(x1 * x1)))); elseif (x1 <= -3.8e-62) tmp = Float64(x2 * Float64(x1 * Float64(x2 * 8.0))); elseif (x1 <= 0.07) tmp = Float64(Float64(x2 * -6.0) - x1); else tmp = Float64(Float64(x1 * x1) * Float64(x1 * Float64(x1 * 6.0))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2.8e+14) tmp = 6.0 * (x1 * (x1 * (x1 * x1))); elseif (x1 <= -3.8e-62) tmp = x2 * (x1 * (x2 * 8.0)); elseif (x1 <= 0.07) tmp = (x2 * -6.0) - x1; else tmp = (x1 * x1) * (x1 * (x1 * 6.0)); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2.8e+14], N[(6.0 * N[(x1 * N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -3.8e-62], N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2.8 \cdot 10^{+14}:\\
\;\;\;\;6 \cdot \left(x1 \cdot \left(x1 \cdot \left(x1 \cdot x1\right)\right)\right)\\
\mathbf{elif}\;x1 \leq -3.8 \cdot 10^{-62}:\\
\;\;\;\;x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{else}:\\
\;\;\;\;\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(x1 \cdot 6\right)\right)\\
\end{array}
\end{array}
if x1 < -2.8e14Initial program 27.1%
Simplified27.1%
Taylor expanded in x1 around inf
Simplified27.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6492.1%
Simplified92.1%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6492.1%
Simplified92.1%
if -2.8e14 < x1 < -3.80000000000000006e-62Initial program 99.4%
Simplified99.6%
Taylor expanded in x1 around 0
Simplified86.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.8%
Simplified85.8%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6460.0%
Simplified60.0%
if -3.80000000000000006e-62 < x1 < 0.070000000000000007Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.9%
Simplified80.9%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.1%
Simplified81.1%
if 0.070000000000000007 < x1 Initial program 50.6%
Simplified50.7%
Taylor expanded in x1 around inf
Simplified50.7%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6482.2%
Simplified82.2%
Taylor expanded in x1 around 0
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6482.1%
Simplified82.1%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* 6.0 (* x1 (* x1 (* x1 x1))))))
(if (<= x1 -2e+14)
t_0
(if (<= x1 -1.7e-57)
(* x2 (* x1 (* x2 8.0)))
(if (<= x1 0.07) (- (* x2 -6.0) x1) t_0)))))
double code(double x1, double x2) {
double t_0 = 6.0 * (x1 * (x1 * (x1 * x1)));
double tmp;
if (x1 <= -2e+14) {
tmp = t_0;
} else if (x1 <= -1.7e-57) {
tmp = x2 * (x1 * (x2 * 8.0));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: tmp
t_0 = 6.0d0 * (x1 * (x1 * (x1 * x1)))
if (x1 <= (-2d+14)) then
tmp = t_0
else if (x1 <= (-1.7d-57)) then
tmp = x2 * (x1 * (x2 * 8.0d0))
else if (x1 <= 0.07d0) then
tmp = (x2 * (-6.0d0)) - x1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = 6.0 * (x1 * (x1 * (x1 * x1)));
double tmp;
if (x1 <= -2e+14) {
tmp = t_0;
} else if (x1 <= -1.7e-57) {
tmp = x2 * (x1 * (x2 * 8.0));
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x1, x2): t_0 = 6.0 * (x1 * (x1 * (x1 * x1))) tmp = 0 if x1 <= -2e+14: tmp = t_0 elif x1 <= -1.7e-57: tmp = x2 * (x1 * (x2 * 8.0)) elif x1 <= 0.07: tmp = (x2 * -6.0) - x1 else: tmp = t_0 return tmp
function code(x1, x2) t_0 = Float64(6.0 * Float64(x1 * Float64(x1 * Float64(x1 * x1)))) tmp = 0.0 if (x1 <= -2e+14) tmp = t_0; elseif (x1 <= -1.7e-57) tmp = Float64(x2 * Float64(x1 * Float64(x2 * 8.0))); elseif (x1 <= 0.07) tmp = Float64(Float64(x2 * -6.0) - x1); else tmp = t_0; end return tmp end
function tmp_2 = code(x1, x2) t_0 = 6.0 * (x1 * (x1 * (x1 * x1))); tmp = 0.0; if (x1 <= -2e+14) tmp = t_0; elseif (x1 <= -1.7e-57) tmp = x2 * (x1 * (x2 * 8.0)); elseif (x1 <= 0.07) tmp = (x2 * -6.0) - x1; else tmp = t_0; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(6.0 * N[(x1 * N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2e+14], t$95$0, If[LessEqual[x1, -1.7e-57], N[(x2 * N[(x1 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 0.07], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 6 \cdot \left(x1 \cdot \left(x1 \cdot \left(x1 \cdot x1\right)\right)\right)\\
\mathbf{if}\;x1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq -1.7 \cdot 10^{-57}:\\
\;\;\;\;x2 \cdot \left(x1 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x1 < -2e14 or 0.070000000000000007 < x1 Initial program 37.3%
Simplified37.4%
Taylor expanded in x1 around inf
Simplified37.4%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6487.8%
Simplified87.8%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6487.8%
Simplified87.8%
if -2e14 < x1 < -1.70000000000000008e-57Initial program 99.4%
Simplified99.6%
Taylor expanded in x1 around 0
Simplified86.0%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.8%
Simplified85.8%
Taylor expanded in x2 around inf
unpow2N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6460.0%
Simplified60.0%
if -1.70000000000000008e-57 < x1 < 0.070000000000000007Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.9%
Simplified80.9%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.1%
Simplified81.1%
(FPCore (x1 x2) :precision binary64 (let* ((t_0 (* x1 (* x1 9.0)))) (if (<= x1 -5.2e+47) t_0 (if (<= x1 0.07) (- (* x2 -6.0) x1) t_0))))
double code(double x1, double x2) {
double t_0 = x1 * (x1 * 9.0);
double tmp;
if (x1 <= -5.2e+47) {
tmp = t_0;
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: tmp
t_0 = x1 * (x1 * 9.0d0)
if (x1 <= (-5.2d+47)) then
tmp = t_0
else if (x1 <= 0.07d0) then
tmp = (x2 * (-6.0d0)) - x1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x1 * (x1 * 9.0);
double tmp;
if (x1 <= -5.2e+47) {
tmp = t_0;
} else if (x1 <= 0.07) {
tmp = (x2 * -6.0) - x1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x1, x2): t_0 = x1 * (x1 * 9.0) tmp = 0 if x1 <= -5.2e+47: tmp = t_0 elif x1 <= 0.07: tmp = (x2 * -6.0) - x1 else: tmp = t_0 return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(x1 * 9.0)) tmp = 0.0 if (x1 <= -5.2e+47) tmp = t_0; elseif (x1 <= 0.07) tmp = Float64(Float64(x2 * -6.0) - x1); else tmp = t_0; end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * (x1 * 9.0); tmp = 0.0; if (x1 <= -5.2e+47) tmp = t_0; elseif (x1 <= 0.07) tmp = (x2 * -6.0) - x1; else tmp = t_0; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5.2e+47], t$95$0, If[LessEqual[x1, 0.07], N[(N[(x2 * -6.0), $MachinePrecision] - x1), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot 9\right)\\
\mathbf{if}\;x1 \leq -5.2 \cdot 10^{+47}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 0.07:\\
\;\;\;\;x2 \cdot -6 - x1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x1 < -5.20000000000000007e47 or 0.070000000000000007 < x1 Initial program 32.9%
Simplified33.0%
Taylor expanded in x1 around 0
Simplified51.9%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6459.0%
Simplified59.0%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.2%
Simplified62.2%
if -5.20000000000000007e47 < x1 < 0.070000000000000007Initial program 99.4%
Simplified99.5%
Applied egg-rr99.5%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.7%
Simplified74.7%
Taylor expanded in x1 around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6470.6%
Simplified70.6%
(FPCore (x1 x2) :precision binary64 (let* ((t_0 (* x1 (* x1 9.0)))) (if (<= x1 -2e+14) t_0 (if (<= x1 2.4e-5) (* x2 -6.0) t_0))))
double code(double x1, double x2) {
double t_0 = x1 * (x1 * 9.0);
double tmp;
if (x1 <= -2e+14) {
tmp = t_0;
} else if (x1 <= 2.4e-5) {
tmp = x2 * -6.0;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: t_0
real(8) :: tmp
t_0 = x1 * (x1 * 9.0d0)
if (x1 <= (-2d+14)) then
tmp = t_0
else if (x1 <= 2.4d-5) then
tmp = x2 * (-6.0d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x1 * (x1 * 9.0);
double tmp;
if (x1 <= -2e+14) {
tmp = t_0;
} else if (x1 <= 2.4e-5) {
tmp = x2 * -6.0;
} else {
tmp = t_0;
}
return tmp;
}
def code(x1, x2): t_0 = x1 * (x1 * 9.0) tmp = 0 if x1 <= -2e+14: tmp = t_0 elif x1 <= 2.4e-5: tmp = x2 * -6.0 else: tmp = t_0 return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(x1 * 9.0)) tmp = 0.0 if (x1 <= -2e+14) tmp = t_0; elseif (x1 <= 2.4e-5) tmp = Float64(x2 * -6.0); else tmp = t_0; end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * (x1 * 9.0); tmp = 0.0; if (x1 <= -2e+14) tmp = t_0; elseif (x1 <= 2.4e-5) tmp = x2 * -6.0; else tmp = t_0; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2e+14], t$95$0, If[LessEqual[x1, 2.4e-5], N[(x2 * -6.0), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot 9\right)\\
\mathbf{if}\;x1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 2.4 \cdot 10^{-5}:\\
\;\;\;\;x2 \cdot -6\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x1 < -2e14 or 2.4000000000000001e-5 < x1 Initial program 37.3%
Simplified37.4%
Taylor expanded in x1 around 0
Simplified50.2%
Taylor expanded in x2 around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6457.6%
Simplified57.6%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.4%
Simplified58.4%
if -2e14 < x1 < 2.4000000000000001e-5Initial program 99.4%
Taylor expanded in x1 around 0
*-lowering-*.f6451.9%
Simplified51.9%
Final simplification55.4%
(FPCore (x1 x2) :precision binary64 (* x2 -6.0))
double code(double x1, double x2) {
return x2 * -6.0;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
code = x2 * (-6.0d0)
end function
public static double code(double x1, double x2) {
return x2 * -6.0;
}
def code(x1, x2): return x2 * -6.0
function code(x1, x2) return Float64(x2 * -6.0) end
function tmp = code(x1, x2) tmp = x2 * -6.0; end
code[x1_, x2_] := N[(x2 * -6.0), $MachinePrecision]
\begin{array}{l}
\\
x2 \cdot -6
\end{array}
Initial program 66.4%
Taylor expanded in x1 around 0
*-lowering-*.f6425.6%
Simplified25.6%
Final simplification25.6%
(FPCore (x1 x2) :precision binary64 9.0)
double code(double x1, double x2) {
return 9.0;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
code = 9.0d0
end function
public static double code(double x1, double x2) {
return 9.0;
}
def code(x1, x2): return 9.0
function code(x1, x2) return 9.0 end
function tmp = code(x1, x2) tmp = 9.0; end
code[x1_, x2_] := 9.0
\begin{array}{l}
\\
9
\end{array}
Initial program 66.4%
Simplified66.5%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6440.3%
Simplified40.3%
Taylor expanded in x1 around inf
Simplified3.5%
herbie shell --seed 2024152
(FPCore (x1 x2)
:name "Rosa's FloatVsDoubleBenchmark"
:precision binary64
(+ x1 (+ (+ (+ (+ (* (+ (* (* (* 2.0 x1) (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)) (* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0))) (+ (* x1 x1) 1.0)) (* (* (* 3.0 x1) x1) (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)))) (* (* x1 x1) x1)) x1) (* 3.0 (/ (- (- (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))))))