
(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 29 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 3.0)))
(t_1 (+ (* x1 x1) 1.0))
(t_2 (/ (- (+ t_0 (* 2.0 x2)) x1) t_1))
(t_3
(+
x1
(+
(+
x1
(+
(+
(*
t_1
(+
(* (* (* x1 2.0) t_2) (- t_2 3.0))
(* (* x1 x1) (- (* t_2 4.0) 6.0))))
(* t_0 t_2))
(* x1 (* x1 x1))))
(* 3.0 (/ (- (- t_0 (* 2.0 x2)) x1) t_1))))))
(if (<= t_3 INFINITY)
t_3
(+ x1 (+ (* t_1 (* x1 (* x1 6.0))) (* x2 -6.0))))))
double code(double x1, double x2) {
double t_0 = x1 * (x1 * 3.0);
double t_1 = (x1 * x1) + 1.0;
double t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1;
double t_3 = x1 + ((x1 + (((t_1 * ((((x1 * 2.0) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((t_2 * 4.0) - 6.0)))) + (t_0 * t_2)) + (x1 * (x1 * x1)))) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = x1 + ((t_1 * (x1 * (x1 * 6.0))) + (x2 * -6.0));
}
return tmp;
}
public static double code(double x1, double x2) {
double t_0 = x1 * (x1 * 3.0);
double t_1 = (x1 * x1) + 1.0;
double t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1;
double t_3 = x1 + ((x1 + (((t_1 * ((((x1 * 2.0) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((t_2 * 4.0) - 6.0)))) + (t_0 * t_2)) + (x1 * (x1 * x1)))) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = x1 + ((t_1 * (x1 * (x1 * 6.0))) + (x2 * -6.0));
}
return tmp;
}
def code(x1, x2): t_0 = x1 * (x1 * 3.0) t_1 = (x1 * x1) + 1.0 t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1 t_3 = x1 + ((x1 + (((t_1 * ((((x1 * 2.0) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((t_2 * 4.0) - 6.0)))) + (t_0 * t_2)) + (x1 * (x1 * x1)))) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = x1 + ((t_1 * (x1 * (x1 * 6.0))) + (x2 * -6.0)) return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(x1 * 3.0)) t_1 = Float64(Float64(x1 * x1) + 1.0) t_2 = Float64(Float64(Float64(t_0 + Float64(2.0 * x2)) - x1) / t_1) t_3 = Float64(x1 + Float64(Float64(x1 + Float64(Float64(Float64(t_1 * Float64(Float64(Float64(Float64(x1 * 2.0) * t_2) * Float64(t_2 - 3.0)) + Float64(Float64(x1 * x1) * Float64(Float64(t_2 * 4.0) - 6.0)))) + Float64(t_0 * t_2)) + Float64(x1 * Float64(x1 * x1)))) + Float64(3.0 * Float64(Float64(Float64(t_0 - Float64(2.0 * x2)) - x1) / t_1)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(x1 + Float64(Float64(t_1 * Float64(x1 * Float64(x1 * 6.0))) + Float64(x2 * -6.0))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * (x1 * 3.0); t_1 = (x1 * x1) + 1.0; t_2 = ((t_0 + (2.0 * x2)) - x1) / t_1; t_3 = x1 + ((x1 + (((t_1 * ((((x1 * 2.0) * t_2) * (t_2 - 3.0)) + ((x1 * x1) * ((t_2 * 4.0) - 6.0)))) + (t_0 * t_2)) + (x1 * (x1 * x1)))) + (3.0 * (((t_0 - (2.0 * x2)) - x1) / t_1))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = x1 + ((t_1 * (x1 * (x1 * 6.0))) + (x2 * -6.0)); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(x1 * 3.0), $MachinePrecision]), $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]}, Block[{t$95$3 = N[(x1 + N[(N[(x1 + N[(N[(N[(t$95$1 * N[(N[(N[(N[(x1 * 2.0), $MachinePrecision] * t$95$2), $MachinePrecision] * N[(t$95$2 - 3.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * N[(N[(t$95$2 * 4.0), $MachinePrecision] - 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$0 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(x1 + N[(N[(t$95$1 * N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot 3\right)\\
t_1 := x1 \cdot x1 + 1\\
t_2 := \frac{\left(t\_0 + 2 \cdot x2\right) - x1}{t\_1}\\
t_3 := x1 + \left(\left(x1 + \left(\left(t\_1 \cdot \left(\left(\left(x1 \cdot 2\right) \cdot t\_2\right) \cdot \left(t\_2 - 3\right) + \left(x1 \cdot x1\right) \cdot \left(t\_2 \cdot 4 - 6\right)\right) + t\_0 \cdot t\_2\right) + x1 \cdot \left(x1 \cdot x1\right)\right)\right) + 3 \cdot \frac{\left(t\_0 - 2 \cdot x2\right) - x1}{t\_1}\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;x1 + \left(t\_1 \cdot \left(x1 \cdot \left(x1 \cdot 6\right)\right) + x2 \cdot -6\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%
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%
Simplified13.6%
Taylor expanded in x1 around inf
*-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-/.f6413.6%
Simplified13.6%
Taylor expanded in x1 around 0
*-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.6%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (- -1.0 (* x1 x1)))
(t_1 (+ (* x1 x1) 1.0))
(t_2 (+ -1.0 (* x1 3.0)))
(t_3 (+ (* 2.0 x2) (* x1 t_2))))
(if (<= x1 -3.4e+98)
(+ x1 (+ (* x2 -6.0) (* t_1 (* x1 -3.0))))
(if (<= x1 1.25e+73)
(+
(+
x1
(*
t_1
(+
(* (+ (* t_3 (/ -2.0 t_0)) (+ -6.0 (* x1 4.0))) (/ x1 (/ t_1 t_3)))
(* x1 (+ 1.0 (* x1 -6.0))))))
(* (+ (* x2 -2.0) (* x1 (+ t_2 (* x1 t_3)))) (* 3.0 (/ -1.0 t_0))))
(+
x1
(*
x2
(+ -6.0 (* (+ x1 (* (* x1 x1) (+ 6.0 (/ -4.0 x1)))) (/ t_1 x2)))))))))
double code(double x1, double x2) {
double t_0 = -1.0 - (x1 * x1);
double t_1 = (x1 * x1) + 1.0;
double t_2 = -1.0 + (x1 * 3.0);
double t_3 = (2.0 * x2) + (x1 * t_2);
double tmp;
if (x1 <= -3.4e+98) {
tmp = x1 + ((x2 * -6.0) + (t_1 * (x1 * -3.0)));
} else if (x1 <= 1.25e+73) {
tmp = (x1 + (t_1 * ((((t_3 * (-2.0 / t_0)) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_3))) + (x1 * (1.0 + (x1 * -6.0)))))) + (((x2 * -2.0) + (x1 * (t_2 + (x1 * t_3)))) * (3.0 * (-1.0 / t_0)));
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2))));
}
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) :: t_3
real(8) :: tmp
t_0 = (-1.0d0) - (x1 * x1)
t_1 = (x1 * x1) + 1.0d0
t_2 = (-1.0d0) + (x1 * 3.0d0)
t_3 = (2.0d0 * x2) + (x1 * t_2)
if (x1 <= (-3.4d+98)) then
tmp = x1 + ((x2 * (-6.0d0)) + (t_1 * (x1 * (-3.0d0))))
else if (x1 <= 1.25d+73) then
tmp = (x1 + (t_1 * ((((t_3 * ((-2.0d0) / t_0)) + ((-6.0d0) + (x1 * 4.0d0))) * (x1 / (t_1 / t_3))) + (x1 * (1.0d0 + (x1 * (-6.0d0))))))) + (((x2 * (-2.0d0)) + (x1 * (t_2 + (x1 * t_3)))) * (3.0d0 * ((-1.0d0) / t_0)))
else
tmp = x1 + (x2 * ((-6.0d0) + ((x1 + ((x1 * x1) * (6.0d0 + ((-4.0d0) / x1)))) * (t_1 / x2))))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = -1.0 - (x1 * x1);
double t_1 = (x1 * x1) + 1.0;
double t_2 = -1.0 + (x1 * 3.0);
double t_3 = (2.0 * x2) + (x1 * t_2);
double tmp;
if (x1 <= -3.4e+98) {
tmp = x1 + ((x2 * -6.0) + (t_1 * (x1 * -3.0)));
} else if (x1 <= 1.25e+73) {
tmp = (x1 + (t_1 * ((((t_3 * (-2.0 / t_0)) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_3))) + (x1 * (1.0 + (x1 * -6.0)))))) + (((x2 * -2.0) + (x1 * (t_2 + (x1 * t_3)))) * (3.0 * (-1.0 / t_0)));
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2))));
}
return tmp;
}
def code(x1, x2): t_0 = -1.0 - (x1 * x1) t_1 = (x1 * x1) + 1.0 t_2 = -1.0 + (x1 * 3.0) t_3 = (2.0 * x2) + (x1 * t_2) tmp = 0 if x1 <= -3.4e+98: tmp = x1 + ((x2 * -6.0) + (t_1 * (x1 * -3.0))) elif x1 <= 1.25e+73: tmp = (x1 + (t_1 * ((((t_3 * (-2.0 / t_0)) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_3))) + (x1 * (1.0 + (x1 * -6.0)))))) + (((x2 * -2.0) + (x1 * (t_2 + (x1 * t_3)))) * (3.0 * (-1.0 / t_0))) else: tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2)))) return tmp
function code(x1, x2) t_0 = Float64(-1.0 - Float64(x1 * x1)) t_1 = Float64(Float64(x1 * x1) + 1.0) t_2 = Float64(-1.0 + Float64(x1 * 3.0)) t_3 = Float64(Float64(2.0 * x2) + Float64(x1 * t_2)) tmp = 0.0 if (x1 <= -3.4e+98) tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(t_1 * Float64(x1 * -3.0)))); elseif (x1 <= 1.25e+73) tmp = Float64(Float64(x1 + Float64(t_1 * Float64(Float64(Float64(Float64(t_3 * Float64(-2.0 / t_0)) + Float64(-6.0 + Float64(x1 * 4.0))) * Float64(x1 / Float64(t_1 / t_3))) + Float64(x1 * Float64(1.0 + Float64(x1 * -6.0)))))) + Float64(Float64(Float64(x2 * -2.0) + Float64(x1 * Float64(t_2 + Float64(x1 * t_3)))) * Float64(3.0 * Float64(-1.0 / t_0)))); else tmp = Float64(x1 + Float64(x2 * Float64(-6.0 + Float64(Float64(x1 + Float64(Float64(x1 * x1) * Float64(6.0 + Float64(-4.0 / x1)))) * Float64(t_1 / x2))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = -1.0 - (x1 * x1); t_1 = (x1 * x1) + 1.0; t_2 = -1.0 + (x1 * 3.0); t_3 = (2.0 * x2) + (x1 * t_2); tmp = 0.0; if (x1 <= -3.4e+98) tmp = x1 + ((x2 * -6.0) + (t_1 * (x1 * -3.0))); elseif (x1 <= 1.25e+73) tmp = (x1 + (t_1 * ((((t_3 * (-2.0 / t_0)) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_3))) + (x1 * (1.0 + (x1 * -6.0)))))) + (((x2 * -2.0) + (x1 * (t_2 + (x1 * t_3)))) * (3.0 * (-1.0 / t_0))); else tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2)))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(-1.0 - N[(x1 * x1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$2 = N[(-1.0 + N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * x2), $MachinePrecision] + N[(x1 * t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -3.4e+98], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(t$95$1 * N[(x1 * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 1.25e+73], N[(N[(x1 + N[(t$95$1 * N[(N[(N[(N[(t$95$3 * N[(-2.0 / t$95$0), $MachinePrecision]), $MachinePrecision] + N[(-6.0 + N[(x1 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x1 / N[(t$95$1 / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(1.0 + N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x2 * -2.0), $MachinePrecision] + N[(x1 * N[(t$95$2 + N[(x1 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(3.0 * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 + N[(x2 * N[(-6.0 + N[(N[(x1 + N[(N[(x1 * x1), $MachinePrecision] * N[(6.0 + N[(-4.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$1 / x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -1 - x1 \cdot x1\\
t_1 := x1 \cdot x1 + 1\\
t_2 := -1 + x1 \cdot 3\\
t_3 := 2 \cdot x2 + x1 \cdot t\_2\\
\mathbf{if}\;x1 \leq -3.4 \cdot 10^{+98}:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + t\_1 \cdot \left(x1 \cdot -3\right)\right)\\
\mathbf{elif}\;x1 \leq 1.25 \cdot 10^{+73}:\\
\;\;\;\;\left(x1 + t\_1 \cdot \left(\left(t\_3 \cdot \frac{-2}{t\_0} + \left(-6 + x1 \cdot 4\right)\right) \cdot \frac{x1}{\frac{t\_1}{t\_3}} + x1 \cdot \left(1 + x1 \cdot -6\right)\right)\right) + \left(x2 \cdot -2 + x1 \cdot \left(t\_2 + x1 \cdot t\_3\right)\right) \cdot \left(3 \cdot \frac{-1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;x1 + x2 \cdot \left(-6 + \left(x1 + \left(x1 \cdot x1\right) \cdot \left(6 + \frac{-4}{x1}\right)\right) \cdot \frac{t\_1}{x2}\right)\\
\end{array}
\end{array}
if x1 < -3.39999999999999972e98Initial program 2.1%
Simplified22.9%
Taylor expanded in x1 around inf
*-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-/.f6422.9%
Simplified22.9%
Taylor expanded in x1 around 0
*-lowering-*.f6497.9%
Simplified97.9%
Taylor expanded in x1 around 0
*-lowering-*.f6498.2%
Simplified98.2%
if -3.39999999999999972e98 < x1 < 1.24999999999999994e73Initial program 99.4%
Simplified98.1%
Applied egg-rr98.4%
Applied egg-rr98.2%
if 1.24999999999999994e73 < x1 Initial program 33.3%
Simplified33.3%
Taylor expanded in x1 around inf
*-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-/.f6433.3%
Simplified33.3%
Taylor expanded in x1 around 0
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified100.0%
Final simplification98.5%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x1 x1) 1.0))
(t_1 (+ (* 2.0 x2) (* x1 (+ -1.0 (* x1 3.0))))))
(if (<= x1 -5e+153)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 -2.8e-93)
(+
x1
(+
(*
t_0
(+
x1
(+
(* (* x1 x1) -6.0)
(*
(/ t_1 t_0)
(+ (* x1 (+ -6.0 (/ (* 2.0 t_1) t_0))) (* (* x1 x1) 4.0))))))
(* 3.0 (* (* x1 x1) (+ 3.0 (/ -1.0 x1))))))
(if (<= x1 3.1e-201)
(+
(+ x1 (/ (* 3.0 (- (* 3.0 (* x1 x1)) x1)) t_0))
(* x2 (+ (/ (* 8.0 (* x1 x2)) t_0) (/ -6.0 t_0))))
(if (<= x1 6.6e-69)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2)))))
(if (<= x1 1.25e+73)
(+
(+
x1
(*
t_0
(+
(*
(+ (* t_1 (/ -2.0 (- -1.0 (* x1 x1)))) (+ -6.0 (* x1 4.0)))
(/ x1 (/ t_0 t_1)))
(* x1 (+ 1.0 (* x1 -6.0))))))
(* (* x1 x1) (+ 9.0 (/ -3.0 x1))))
(+
x1
(*
x2
(+
-6.0
(*
(+ x1 (* (* x1 x1) (+ 6.0 (/ -4.0 x1))))
(/ t_0 x2))))))))))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0)));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -2.8e-93) {
tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1)))));
} else if (x1 <= 3.1e-201) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0)));
} else if (x1 <= 6.6e-69) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else if (x1 <= 1.25e+73) {
tmp = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1)));
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2))));
}
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) + 1.0d0
t_1 = (2.0d0 * x2) + (x1 * ((-1.0d0) + (x1 * 3.0d0)))
if (x1 <= (-5d+153)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= (-2.8d-93)) then
tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * (-6.0d0)) + ((t_1 / t_0) * ((x1 * ((-6.0d0) + ((2.0d0 * t_1) / t_0))) + ((x1 * x1) * 4.0d0)))))) + (3.0d0 * ((x1 * x1) * (3.0d0 + ((-1.0d0) / x1)))))
else if (x1 <= 3.1d-201) then
tmp = (x1 + ((3.0d0 * ((3.0d0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0d0 * (x1 * x2)) / t_0) + ((-6.0d0) / t_0)))
else if (x1 <= 6.6d-69) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
else if (x1 <= 1.25d+73) then
tmp = (x1 + (t_0 * ((((t_1 * ((-2.0d0) / ((-1.0d0) - (x1 * x1)))) + ((-6.0d0) + (x1 * 4.0d0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0d0 + (x1 * (-6.0d0))))))) + ((x1 * x1) * (9.0d0 + ((-3.0d0) / x1)))
else
tmp = x1 + (x2 * ((-6.0d0) + ((x1 + ((x1 * x1) * (6.0d0 + ((-4.0d0) / x1)))) * (t_0 / x2))))
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 * (-1.0 + (x1 * 3.0)));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -2.8e-93) {
tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1)))));
} else if (x1 <= 3.1e-201) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0)));
} else if (x1 <= 6.6e-69) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else if (x1 <= 1.25e+73) {
tmp = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1)));
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2))));
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) + 1.0 t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))) tmp = 0 if x1 <= -5e+153: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= -2.8e-93: tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1))))) elif x1 <= 3.1e-201: tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0))) elif x1 <= 6.6e-69: tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) elif x1 <= 1.25e+73: tmp = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1))) else: tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2)))) return tmp
function code(x1, x2) t_0 = Float64(Float64(x1 * x1) + 1.0) t_1 = Float64(Float64(2.0 * x2) + Float64(x1 * Float64(-1.0 + Float64(x1 * 3.0)))) tmp = 0.0 if (x1 <= -5e+153) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= -2.8e-93) tmp = Float64(x1 + Float64(Float64(t_0 * Float64(x1 + Float64(Float64(Float64(x1 * x1) * -6.0) + Float64(Float64(t_1 / t_0) * Float64(Float64(x1 * Float64(-6.0 + Float64(Float64(2.0 * t_1) / t_0))) + Float64(Float64(x1 * x1) * 4.0)))))) + Float64(3.0 * Float64(Float64(x1 * x1) * Float64(3.0 + Float64(-1.0 / x1)))))); elseif (x1 <= 3.1e-201) tmp = Float64(Float64(x1 + Float64(Float64(3.0 * Float64(Float64(3.0 * Float64(x1 * x1)) - x1)) / t_0)) + Float64(x2 * Float64(Float64(Float64(8.0 * Float64(x1 * x2)) / t_0) + Float64(-6.0 / t_0)))); elseif (x1 <= 6.6e-69) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))); elseif (x1 <= 1.25e+73) tmp = Float64(Float64(x1 + Float64(t_0 * Float64(Float64(Float64(Float64(t_1 * Float64(-2.0 / Float64(-1.0 - Float64(x1 * x1)))) + Float64(-6.0 + Float64(x1 * 4.0))) * Float64(x1 / Float64(t_0 / t_1))) + Float64(x1 * Float64(1.0 + Float64(x1 * -6.0)))))) + Float64(Float64(x1 * x1) * Float64(9.0 + Float64(-3.0 / x1)))); else tmp = Float64(x1 + Float64(x2 * Float64(-6.0 + Float64(Float64(x1 + Float64(Float64(x1 * x1) * Float64(6.0 + Float64(-4.0 / x1)))) * Float64(t_0 / x2))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) + 1.0; t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))); tmp = 0.0; if (x1 <= -5e+153) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= -2.8e-93) tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1))))); elseif (x1 <= 3.1e-201) tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0))); elseif (x1 <= 6.6e-69) tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); elseif (x1 <= 1.25e+73) tmp = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1))); else tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2)))); 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[(-1.0 + N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5e+153], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.8e-93], N[(x1 + N[(N[(t$95$0 * N[(x1 + N[(N[(N[(x1 * x1), $MachinePrecision] * -6.0), $MachinePrecision] + N[(N[(t$95$1 / t$95$0), $MachinePrecision] * N[(N[(x1 * N[(-6.0 + N[(N[(2.0 * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(3.0 * N[(N[(x1 * x1), $MachinePrecision] * N[(3.0 + N[(-1.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 3.1e-201], N[(N[(x1 + N[(N[(3.0 * N[(N[(3.0 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(N[(N[(8.0 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(-6.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 6.6e-69], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 1.25e+73], N[(N[(x1 + N[(t$95$0 * N[(N[(N[(N[(t$95$1 * N[(-2.0 / N[(-1.0 - N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-6.0 + N[(x1 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x1 / N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(1.0 + N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * N[(9.0 + N[(-3.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 + N[(x2 * N[(-6.0 + N[(N[(x1 + N[(N[(x1 * x1), $MachinePrecision] * N[(6.0 + N[(-4.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$0 / x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot x1 + 1\\
t_1 := 2 \cdot x2 + x1 \cdot \left(-1 + x1 \cdot 3\right)\\
\mathbf{if}\;x1 \leq -5 \cdot 10^{+153}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq -2.8 \cdot 10^{-93}:\\
\;\;\;\;x1 + \left(t\_0 \cdot \left(x1 + \left(\left(x1 \cdot x1\right) \cdot -6 + \frac{t\_1}{t\_0} \cdot \left(x1 \cdot \left(-6 + \frac{2 \cdot t\_1}{t\_0}\right) + \left(x1 \cdot x1\right) \cdot 4\right)\right)\right) + 3 \cdot \left(\left(x1 \cdot x1\right) \cdot \left(3 + \frac{-1}{x1}\right)\right)\right)\\
\mathbf{elif}\;x1 \leq 3.1 \cdot 10^{-201}:\\
\;\;\;\;\left(x1 + \frac{3 \cdot \left(3 \cdot \left(x1 \cdot x1\right) - x1\right)}{t\_0}\right) + x2 \cdot \left(\frac{8 \cdot \left(x1 \cdot x2\right)}{t\_0} + \frac{-6}{t\_0}\right)\\
\mathbf{elif}\;x1 \leq 6.6 \cdot 10^{-69}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{elif}\;x1 \leq 1.25 \cdot 10^{+73}:\\
\;\;\;\;\left(x1 + t\_0 \cdot \left(\left(t\_1 \cdot \frac{-2}{-1 - x1 \cdot x1} + \left(-6 + x1 \cdot 4\right)\right) \cdot \frac{x1}{\frac{t\_0}{t\_1}} + x1 \cdot \left(1 + x1 \cdot -6\right)\right)\right) + \left(x1 \cdot x1\right) \cdot \left(9 + \frac{-3}{x1}\right)\\
\mathbf{else}:\\
\;\;\;\;x1 + x2 \cdot \left(-6 + \left(x1 + \left(x1 \cdot x1\right) \cdot \left(6 + \frac{-4}{x1}\right)\right) \cdot \frac{t\_0}{x2}\right)\\
\end{array}
\end{array}
if x1 < -5.00000000000000018e153Initial program 0.0%
Simplified0.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.00000000000000018e153 < x1 < -2.79999999999999998e-93Initial program 75.7%
Simplified93.0%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6499.6%
Simplified99.6%
if -2.79999999999999998e-93 < x1 < 3.0999999999999999e-201Initial program 99.4%
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-*.f6463.4%
Simplified63.4%
Taylor expanded in x2 around 0
associate-+r+N/A
div-subN/A
associate-*r/N/A
+-lowering-+.f64N/A
Simplified86.7%
if 3.0999999999999999e-201 < x1 < 6.6000000000000001e-69Initial program 99.5%
Simplified99.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
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6493.2%
Simplified93.2%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.7%
Simplified93.7%
if 6.6000000000000001e-69 < x1 < 1.24999999999999994e73Initial program 99.0%
Simplified99.0%
Applied egg-rr99.4%
Applied egg-rr99.1%
Taylor expanded in x1 around inf
*-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-/.f6499.3%
Simplified99.3%
if 1.24999999999999994e73 < x1 Initial program 33.3%
Simplified33.3%
Taylor expanded in x1 around inf
*-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-/.f6433.3%
Simplified33.3%
Taylor expanded in x1 around 0
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified100.0%
Final simplification95.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x1 x1) 1.0))
(t_1 (+ (* 2.0 x2) (* x1 (+ -1.0 (* x1 3.0)))))
(t_2
(+
(+
x1
(*
t_0
(+
(*
(+ (* t_1 (/ -2.0 (- -1.0 (* x1 x1)))) (+ -6.0 (* x1 4.0)))
(/ x1 (/ t_0 t_1)))
(* x1 (+ 1.0 (* x1 -6.0))))))
(* (* x1 x1) (+ 9.0 (/ -3.0 x1))))))
(if (<= x1 -5e+153)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 -2.15e-91)
t_2
(if (<= x1 1.25e-200)
(+
(+ x1 (/ (* 3.0 (- (* 3.0 (* x1 x1)) x1)) t_0))
(* x2 (+ (/ (* 8.0 (* x1 x2)) t_0) (/ -6.0 t_0))))
(if (<= x1 1.15e-69)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2)))))
(if (<= x1 1.25e+73)
t_2
(+
x1
(*
x2
(+
-6.0
(*
(+ x1 (* (* x1 x1) (+ 6.0 (/ -4.0 x1))))
(/ t_0 x2))))))))))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0)));
double t_2 = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1)));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -2.15e-91) {
tmp = t_2;
} else if (x1 <= 1.25e-200) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0)));
} else if (x1 <= 1.15e-69) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else if (x1 <= 1.25e+73) {
tmp = t_2;
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2))));
}
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 * ((-1.0d0) + (x1 * 3.0d0)))
t_2 = (x1 + (t_0 * ((((t_1 * ((-2.0d0) / ((-1.0d0) - (x1 * x1)))) + ((-6.0d0) + (x1 * 4.0d0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0d0 + (x1 * (-6.0d0))))))) + ((x1 * x1) * (9.0d0 + ((-3.0d0) / x1)))
if (x1 <= (-5d+153)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= (-2.15d-91)) then
tmp = t_2
else if (x1 <= 1.25d-200) then
tmp = (x1 + ((3.0d0 * ((3.0d0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0d0 * (x1 * x2)) / t_0) + ((-6.0d0) / t_0)))
else if (x1 <= 1.15d-69) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
else if (x1 <= 1.25d+73) then
tmp = t_2
else
tmp = x1 + (x2 * ((-6.0d0) + ((x1 + ((x1 * x1) * (6.0d0 + ((-4.0d0) / x1)))) * (t_0 / x2))))
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 * (-1.0 + (x1 * 3.0)));
double t_2 = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1)));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -2.15e-91) {
tmp = t_2;
} else if (x1 <= 1.25e-200) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0)));
} else if (x1 <= 1.15e-69) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else if (x1 <= 1.25e+73) {
tmp = t_2;
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2))));
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) + 1.0 t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))) t_2 = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1))) tmp = 0 if x1 <= -5e+153: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= -2.15e-91: tmp = t_2 elif x1 <= 1.25e-200: tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0))) elif x1 <= 1.15e-69: tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) elif x1 <= 1.25e+73: tmp = t_2 else: tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2)))) return tmp
function code(x1, x2) t_0 = Float64(Float64(x1 * x1) + 1.0) t_1 = Float64(Float64(2.0 * x2) + Float64(x1 * Float64(-1.0 + Float64(x1 * 3.0)))) t_2 = Float64(Float64(x1 + Float64(t_0 * Float64(Float64(Float64(Float64(t_1 * Float64(-2.0 / Float64(-1.0 - Float64(x1 * x1)))) + Float64(-6.0 + Float64(x1 * 4.0))) * Float64(x1 / Float64(t_0 / t_1))) + Float64(x1 * Float64(1.0 + Float64(x1 * -6.0)))))) + Float64(Float64(x1 * x1) * Float64(9.0 + Float64(-3.0 / x1)))) tmp = 0.0 if (x1 <= -5e+153) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= -2.15e-91) tmp = t_2; elseif (x1 <= 1.25e-200) tmp = Float64(Float64(x1 + Float64(Float64(3.0 * Float64(Float64(3.0 * Float64(x1 * x1)) - x1)) / t_0)) + Float64(x2 * Float64(Float64(Float64(8.0 * Float64(x1 * x2)) / t_0) + Float64(-6.0 / t_0)))); elseif (x1 <= 1.15e-69) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))); elseif (x1 <= 1.25e+73) tmp = t_2; else tmp = Float64(x1 + Float64(x2 * Float64(-6.0 + Float64(Float64(x1 + Float64(Float64(x1 * x1) * Float64(6.0 + Float64(-4.0 / x1)))) * Float64(t_0 / x2))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) + 1.0; t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))); t_2 = (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) + ((x1 * x1) * (9.0 + (-3.0 / x1))); tmp = 0.0; if (x1 <= -5e+153) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= -2.15e-91) tmp = t_2; elseif (x1 <= 1.25e-200) tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0))); elseif (x1 <= 1.15e-69) tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); elseif (x1 <= 1.25e+73) tmp = t_2; else tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2)))); 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[(-1.0 + N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x1 + N[(t$95$0 * N[(N[(N[(N[(t$95$1 * N[(-2.0 / N[(-1.0 - N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-6.0 + N[(x1 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x1 / N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(1.0 + N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * N[(9.0 + N[(-3.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5e+153], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.15e-91], t$95$2, If[LessEqual[x1, 1.25e-200], N[(N[(x1 + N[(N[(3.0 * N[(N[(3.0 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(N[(N[(8.0 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(-6.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 1.15e-69], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 1.25e+73], t$95$2, N[(x1 + N[(x2 * N[(-6.0 + N[(N[(x1 + N[(N[(x1 * x1), $MachinePrecision] * N[(6.0 + N[(-4.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$0 / x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot x1 + 1\\
t_1 := 2 \cdot x2 + x1 \cdot \left(-1 + x1 \cdot 3\right)\\
t_2 := \left(x1 + t\_0 \cdot \left(\left(t\_1 \cdot \frac{-2}{-1 - x1 \cdot x1} + \left(-6 + x1 \cdot 4\right)\right) \cdot \frac{x1}{\frac{t\_0}{t\_1}} + x1 \cdot \left(1 + x1 \cdot -6\right)\right)\right) + \left(x1 \cdot x1\right) \cdot \left(9 + \frac{-3}{x1}\right)\\
\mathbf{if}\;x1 \leq -5 \cdot 10^{+153}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq -2.15 \cdot 10^{-91}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x1 \leq 1.25 \cdot 10^{-200}:\\
\;\;\;\;\left(x1 + \frac{3 \cdot \left(3 \cdot \left(x1 \cdot x1\right) - x1\right)}{t\_0}\right) + x2 \cdot \left(\frac{8 \cdot \left(x1 \cdot x2\right)}{t\_0} + \frac{-6}{t\_0}\right)\\
\mathbf{elif}\;x1 \leq 1.15 \cdot 10^{-69}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{elif}\;x1 \leq 1.25 \cdot 10^{+73}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x1 + x2 \cdot \left(-6 + \left(x1 + \left(x1 \cdot x1\right) \cdot \left(6 + \frac{-4}{x1}\right)\right) \cdot \frac{t\_0}{x2}\right)\\
\end{array}
\end{array}
if x1 < -5.00000000000000018e153Initial program 0.0%
Simplified0.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.00000000000000018e153 < x1 < -2.15e-91 or 1.15e-69 < x1 < 1.24999999999999994e73Initial program 84.5%
Simplified95.3%
Applied egg-rr95.5%
Applied egg-rr95.3%
Taylor expanded in x1 around inf
*-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-/.f6499.4%
Simplified99.4%
if -2.15e-91 < x1 < 1.24999999999999998e-200Initial program 99.4%
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-*.f6463.4%
Simplified63.4%
Taylor expanded in x2 around 0
associate-+r+N/A
div-subN/A
associate-*r/N/A
+-lowering-+.f64N/A
Simplified86.7%
if 1.24999999999999998e-200 < x1 < 1.15e-69Initial program 99.5%
Simplified99.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
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6493.2%
Simplified93.2%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.7%
Simplified93.7%
if 1.24999999999999994e73 < x1 Initial program 33.3%
Simplified33.3%
Taylor expanded in x1 around inf
*-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-/.f6433.3%
Simplified33.3%
Taylor expanded in x1 around 0
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified100.0%
Final simplification95.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x1 x1) 1.0))
(t_1 (+ (* 2.0 x2) (* x1 (+ -1.0 (* x1 3.0)))))
(t_2
(*
t_0
(+
x1
(+
(* (* x1 x1) -6.0)
(*
(/ t_1 t_0)
(+ (* x1 (+ -6.0 (/ (* 2.0 t_1) t_0))) (* (* x1 x1) 4.0))))))))
(if (<= x1 -5e+153)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 -6e-32)
(+ x1 (+ t_2 (* 3.0 (* (* x1 x1) (+ 3.0 (/ -1.0 x1))))))
(if (<= x1 6.5e+65)
(+
x1
(+
t_2
(* 3.0 (+ (* x2 -2.0) (* x1 (+ -1.0 (* x1 (+ 3.0 (* x2 4.0)))))))))
(+ x1 (+ (* t_0 (* x1 (* x1 6.0))) (* x2 -6.0))))))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0)));
double t_2 = t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -6e-32) {
tmp = x1 + (t_2 + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1)))));
} else if (x1 <= 6.5e+65) {
tmp = x1 + (t_2 + (3.0 * ((x2 * -2.0) + (x1 * (-1.0 + (x1 * (3.0 + (x2 * 4.0))))))));
} else {
tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.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 * ((-1.0d0) + (x1 * 3.0d0)))
t_2 = t_0 * (x1 + (((x1 * x1) * (-6.0d0)) + ((t_1 / t_0) * ((x1 * ((-6.0d0) + ((2.0d0 * t_1) / t_0))) + ((x1 * x1) * 4.0d0)))))
if (x1 <= (-5d+153)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= (-6d-32)) then
tmp = x1 + (t_2 + (3.0d0 * ((x1 * x1) * (3.0d0 + ((-1.0d0) / x1)))))
else if (x1 <= 6.5d+65) then
tmp = x1 + (t_2 + (3.0d0 * ((x2 * (-2.0d0)) + (x1 * ((-1.0d0) + (x1 * (3.0d0 + (x2 * 4.0d0))))))))
else
tmp = x1 + ((t_0 * (x1 * (x1 * 6.0d0))) + (x2 * (-6.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 * (-1.0 + (x1 * 3.0)));
double t_2 = t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -6e-32) {
tmp = x1 + (t_2 + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1)))));
} else if (x1 <= 6.5e+65) {
tmp = x1 + (t_2 + (3.0 * ((x2 * -2.0) + (x1 * (-1.0 + (x1 * (3.0 + (x2 * 4.0))))))));
} else {
tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.0));
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) + 1.0 t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))) t_2 = t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0))))) tmp = 0 if x1 <= -5e+153: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= -6e-32: tmp = x1 + (t_2 + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1))))) elif x1 <= 6.5e+65: tmp = x1 + (t_2 + (3.0 * ((x2 * -2.0) + (x1 * (-1.0 + (x1 * (3.0 + (x2 * 4.0)))))))) else: tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.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(-1.0 + Float64(x1 * 3.0)))) t_2 = Float64(t_0 * Float64(x1 + Float64(Float64(Float64(x1 * x1) * -6.0) + Float64(Float64(t_1 / t_0) * Float64(Float64(x1 * Float64(-6.0 + Float64(Float64(2.0 * t_1) / t_0))) + Float64(Float64(x1 * x1) * 4.0)))))) tmp = 0.0 if (x1 <= -5e+153) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= -6e-32) tmp = Float64(x1 + Float64(t_2 + Float64(3.0 * Float64(Float64(x1 * x1) * Float64(3.0 + Float64(-1.0 / x1)))))); elseif (x1 <= 6.5e+65) tmp = Float64(x1 + Float64(t_2 + Float64(3.0 * Float64(Float64(x2 * -2.0) + Float64(x1 * Float64(-1.0 + Float64(x1 * Float64(3.0 + Float64(x2 * 4.0))))))))); else tmp = Float64(x1 + Float64(Float64(t_0 * Float64(x1 * Float64(x1 * 6.0))) + Float64(x2 * -6.0))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) + 1.0; t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))); t_2 = t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0))))); tmp = 0.0; if (x1 <= -5e+153) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= -6e-32) tmp = x1 + (t_2 + (3.0 * ((x1 * x1) * (3.0 + (-1.0 / x1))))); elseif (x1 <= 6.5e+65) tmp = x1 + (t_2 + (3.0 * ((x2 * -2.0) + (x1 * (-1.0 + (x1 * (3.0 + (x2 * 4.0)))))))); else tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.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[(-1.0 + N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$0 * N[(x1 + N[(N[(N[(x1 * x1), $MachinePrecision] * -6.0), $MachinePrecision] + N[(N[(t$95$1 / t$95$0), $MachinePrecision] * N[(N[(x1 * N[(-6.0 + N[(N[(2.0 * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5e+153], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -6e-32], N[(x1 + N[(t$95$2 + N[(3.0 * N[(N[(x1 * x1), $MachinePrecision] * N[(3.0 + N[(-1.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 6.5e+65], N[(x1 + N[(t$95$2 + N[(3.0 * N[(N[(x2 * -2.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(x1 * N[(3.0 + N[(x2 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 + N[(N[(t$95$0 * N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot x1 + 1\\
t_1 := 2 \cdot x2 + x1 \cdot \left(-1 + x1 \cdot 3\right)\\
t_2 := t\_0 \cdot \left(x1 + \left(\left(x1 \cdot x1\right) \cdot -6 + \frac{t\_1}{t\_0} \cdot \left(x1 \cdot \left(-6 + \frac{2 \cdot t\_1}{t\_0}\right) + \left(x1 \cdot x1\right) \cdot 4\right)\right)\right)\\
\mathbf{if}\;x1 \leq -5 \cdot 10^{+153}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq -6 \cdot 10^{-32}:\\
\;\;\;\;x1 + \left(t\_2 + 3 \cdot \left(\left(x1 \cdot x1\right) \cdot \left(3 + \frac{-1}{x1}\right)\right)\right)\\
\mathbf{elif}\;x1 \leq 6.5 \cdot 10^{+65}:\\
\;\;\;\;x1 + \left(t\_2 + 3 \cdot \left(x2 \cdot -2 + x1 \cdot \left(-1 + x1 \cdot \left(3 + x2 \cdot 4\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 + \left(t\_0 \cdot \left(x1 \cdot \left(x1 \cdot 6\right)\right) + x2 \cdot -6\right)\\
\end{array}
\end{array}
if x1 < -5.00000000000000018e153Initial program 0.0%
Simplified0.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.00000000000000018e153 < x1 < -6.0000000000000001e-32Initial program 72.8%
Simplified92.3%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6499.7%
Simplified99.7%
if -6.0000000000000001e-32 < x1 < 6.5000000000000003e65Initial program 99.3%
Simplified99.3%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.0%
Simplified98.0%
if 6.5000000000000003e65 < x1 Initial program 36.9%
Simplified36.9%
Taylor expanded in x1 around inf
*-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-/.f6436.9%
Simplified36.9%
Taylor expanded in x1 around 0
*-lowering-*.f6499.9%
Simplified99.9%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6499.9%
Simplified99.9%
Final simplification99.0%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x1 x1) 1.0))
(t_1 (+ (* 2.0 x2) (* x1 (+ -1.0 (* x1 3.0)))))
(t_2
(+
(* x2 -6.0)
(*
x1
(+ (+ -1.0 (* 8.0 (* x2 x2))) (* (* x1 3.0) (+ 3.0 (* x2 4.0))))))))
(if (<= x1 -5e+153)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 -0.19)
(+
x1
(+
(*
t_0
(+
x1
(+
(* (* x1 x1) -6.0)
(*
(/ t_1 t_0)
(+ (* x1 (+ -6.0 (/ (* 2.0 t_1) t_0))) (* (* x1 x1) 4.0))))))
(* 3.0 (* x2 -2.0))))
(if (<= x1 -4.8e-147)
t_2
(if (<= x1 1.2e-200)
(+
(+ x1 (/ (* 3.0 (- (* 3.0 (* x1 x1)) x1)) t_0))
(* x2 (+ (/ (* 8.0 (* x1 x2)) t_0) (/ -6.0 t_0))))
(if (<= x1 1.55)
t_2
(if (<= x1 1.25e+73)
(+
(* x2 -6.0)
(+
x1
(*
t_0
(+
(*
(+ (* t_1 (/ -2.0 (- -1.0 (* x1 x1)))) (+ -6.0 (* x1 4.0)))
(/ x1 (/ t_0 t_1)))
(* x1 (+ 1.0 (* x1 -6.0)))))))
(+
x1
(*
x2
(+
-6.0
(*
(+ x1 (* (* x1 x1) (+ 6.0 (/ -4.0 x1))))
(/ t_0 x2)))))))))))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0)));
double t_2 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -0.19) {
tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * (x2 * -2.0)));
} else if (x1 <= -4.8e-147) {
tmp = t_2;
} else if (x1 <= 1.2e-200) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0)));
} else if (x1 <= 1.55) {
tmp = t_2;
} else if (x1 <= 1.25e+73) {
tmp = (x2 * -6.0) + (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0))))));
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2))));
}
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 * ((-1.0d0) + (x1 * 3.0d0)))
t_2 = (x2 * (-6.0d0)) + (x1 * (((-1.0d0) + (8.0d0 * (x2 * x2))) + ((x1 * 3.0d0) * (3.0d0 + (x2 * 4.0d0)))))
if (x1 <= (-5d+153)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= (-0.19d0)) then
tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * (-6.0d0)) + ((t_1 / t_0) * ((x1 * ((-6.0d0) + ((2.0d0 * t_1) / t_0))) + ((x1 * x1) * 4.0d0)))))) + (3.0d0 * (x2 * (-2.0d0))))
else if (x1 <= (-4.8d-147)) then
tmp = t_2
else if (x1 <= 1.2d-200) then
tmp = (x1 + ((3.0d0 * ((3.0d0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0d0 * (x1 * x2)) / t_0) + ((-6.0d0) / t_0)))
else if (x1 <= 1.55d0) then
tmp = t_2
else if (x1 <= 1.25d+73) then
tmp = (x2 * (-6.0d0)) + (x1 + (t_0 * ((((t_1 * ((-2.0d0) / ((-1.0d0) - (x1 * x1)))) + ((-6.0d0) + (x1 * 4.0d0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0d0 + (x1 * (-6.0d0)))))))
else
tmp = x1 + (x2 * ((-6.0d0) + ((x1 + ((x1 * x1) * (6.0d0 + ((-4.0d0) / x1)))) * (t_0 / x2))))
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 * (-1.0 + (x1 * 3.0)));
double t_2 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -0.19) {
tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * (x2 * -2.0)));
} else if (x1 <= -4.8e-147) {
tmp = t_2;
} else if (x1 <= 1.2e-200) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0)));
} else if (x1 <= 1.55) {
tmp = t_2;
} else if (x1 <= 1.25e+73) {
tmp = (x2 * -6.0) + (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0))))));
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2))));
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) + 1.0 t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))) t_2 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))) tmp = 0 if x1 <= -5e+153: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= -0.19: tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * (x2 * -2.0))) elif x1 <= -4.8e-147: tmp = t_2 elif x1 <= 1.2e-200: tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0))) elif x1 <= 1.55: tmp = t_2 elif x1 <= 1.25e+73: tmp = (x2 * -6.0) + (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))) else: tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2)))) return tmp
function code(x1, x2) t_0 = Float64(Float64(x1 * x1) + 1.0) t_1 = Float64(Float64(2.0 * x2) + Float64(x1 * Float64(-1.0 + Float64(x1 * 3.0)))) t_2 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))) + Float64(Float64(x1 * 3.0) * Float64(3.0 + Float64(x2 * 4.0)))))) tmp = 0.0 if (x1 <= -5e+153) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= -0.19) tmp = Float64(x1 + Float64(Float64(t_0 * Float64(x1 + Float64(Float64(Float64(x1 * x1) * -6.0) + Float64(Float64(t_1 / t_0) * Float64(Float64(x1 * Float64(-6.0 + Float64(Float64(2.0 * t_1) / t_0))) + Float64(Float64(x1 * x1) * 4.0)))))) + Float64(3.0 * Float64(x2 * -2.0)))); elseif (x1 <= -4.8e-147) tmp = t_2; elseif (x1 <= 1.2e-200) tmp = Float64(Float64(x1 + Float64(Float64(3.0 * Float64(Float64(3.0 * Float64(x1 * x1)) - x1)) / t_0)) + Float64(x2 * Float64(Float64(Float64(8.0 * Float64(x1 * x2)) / t_0) + Float64(-6.0 / t_0)))); elseif (x1 <= 1.55) tmp = t_2; elseif (x1 <= 1.25e+73) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 + Float64(t_0 * Float64(Float64(Float64(Float64(t_1 * Float64(-2.0 / Float64(-1.0 - Float64(x1 * x1)))) + Float64(-6.0 + Float64(x1 * 4.0))) * Float64(x1 / Float64(t_0 / t_1))) + Float64(x1 * Float64(1.0 + Float64(x1 * -6.0))))))); else tmp = Float64(x1 + Float64(x2 * Float64(-6.0 + Float64(Float64(x1 + Float64(Float64(x1 * x1) * Float64(6.0 + Float64(-4.0 / x1)))) * Float64(t_0 / x2))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) + 1.0; t_1 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))); t_2 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))); tmp = 0.0; if (x1 <= -5e+153) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= -0.19) tmp = x1 + ((t_0 * (x1 + (((x1 * x1) * -6.0) + ((t_1 / t_0) * ((x1 * (-6.0 + ((2.0 * t_1) / t_0))) + ((x1 * x1) * 4.0)))))) + (3.0 * (x2 * -2.0))); elseif (x1 <= -4.8e-147) tmp = t_2; elseif (x1 <= 1.2e-200) tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_0)) + (x2 * (((8.0 * (x1 * x2)) / t_0) + (-6.0 / t_0))); elseif (x1 <= 1.55) tmp = t_2; elseif (x1 <= 1.25e+73) tmp = (x2 * -6.0) + (x1 + (t_0 * ((((t_1 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_0 / t_1))) + (x1 * (1.0 + (x1 * -6.0)))))); else tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_0 / x2)))); 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[(-1.0 + N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * 3.0), $MachinePrecision] * N[(3.0 + N[(x2 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5e+153], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -0.19], N[(x1 + N[(N[(t$95$0 * N[(x1 + N[(N[(N[(x1 * x1), $MachinePrecision] * -6.0), $MachinePrecision] + N[(N[(t$95$1 / t$95$0), $MachinePrecision] * N[(N[(x1 * N[(-6.0 + N[(N[(2.0 * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * x1), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(3.0 * N[(x2 * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -4.8e-147], t$95$2, If[LessEqual[x1, 1.2e-200], N[(N[(x1 + N[(N[(3.0 * N[(N[(3.0 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(N[(N[(8.0 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(-6.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 1.55], t$95$2, If[LessEqual[x1, 1.25e+73], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 + N[(t$95$0 * N[(N[(N[(N[(t$95$1 * N[(-2.0 / N[(-1.0 - N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-6.0 + N[(x1 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x1 / N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(1.0 + N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 + N[(x2 * N[(-6.0 + N[(N[(x1 + N[(N[(x1 * x1), $MachinePrecision] * N[(6.0 + N[(-4.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$0 / x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot x1 + 1\\
t_1 := 2 \cdot x2 + x1 \cdot \left(-1 + x1 \cdot 3\right)\\
t_2 := x2 \cdot -6 + x1 \cdot \left(\left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right) + \left(x1 \cdot 3\right) \cdot \left(3 + x2 \cdot 4\right)\right)\\
\mathbf{if}\;x1 \leq -5 \cdot 10^{+153}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq -0.19:\\
\;\;\;\;x1 + \left(t\_0 \cdot \left(x1 + \left(\left(x1 \cdot x1\right) \cdot -6 + \frac{t\_1}{t\_0} \cdot \left(x1 \cdot \left(-6 + \frac{2 \cdot t\_1}{t\_0}\right) + \left(x1 \cdot x1\right) \cdot 4\right)\right)\right) + 3 \cdot \left(x2 \cdot -2\right)\right)\\
\mathbf{elif}\;x1 \leq -4.8 \cdot 10^{-147}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x1 \leq 1.2 \cdot 10^{-200}:\\
\;\;\;\;\left(x1 + \frac{3 \cdot \left(3 \cdot \left(x1 \cdot x1\right) - x1\right)}{t\_0}\right) + x2 \cdot \left(\frac{8 \cdot \left(x1 \cdot x2\right)}{t\_0} + \frac{-6}{t\_0}\right)\\
\mathbf{elif}\;x1 \leq 1.55:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x1 \leq 1.25 \cdot 10^{+73}:\\
\;\;\;\;x2 \cdot -6 + \left(x1 + t\_0 \cdot \left(\left(t\_1 \cdot \frac{-2}{-1 - x1 \cdot x1} + \left(-6 + x1 \cdot 4\right)\right) \cdot \frac{x1}{\frac{t\_0}{t\_1}} + x1 \cdot \left(1 + x1 \cdot -6\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 + x2 \cdot \left(-6 + \left(x1 + \left(x1 \cdot x1\right) \cdot \left(6 + \frac{-4}{x1}\right)\right) \cdot \frac{t\_0}{x2}\right)\\
\end{array}
\end{array}
if x1 < -5.00000000000000018e153Initial program 0.0%
Simplified0.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.00000000000000018e153 < x1 < -0.19Initial program 67.4%
Simplified91.0%
Taylor expanded in x1 around 0
*-commutativeN/A
*-lowering-*.f6499.8%
Simplified99.8%
if -0.19 < x1 < -4.79999999999999997e-147 or 1.20000000000000001e-200 < x1 < 1.55000000000000004Initial program 99.2%
Simplified99.1%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6493.4%
Simplified93.4%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.1%
Simplified94.1%
if -4.79999999999999997e-147 < x1 < 1.20000000000000001e-200Initial program 99.6%
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-*.f6461.4%
Simplified61.4%
Taylor expanded in x2 around 0
associate-+r+N/A
div-subN/A
associate-*r/N/A
+-lowering-+.f64N/A
Simplified90.0%
if 1.55000000000000004 < x1 < 1.24999999999999994e73Initial program 99.1%
Simplified99.2%
Applied egg-rr99.4%
Applied egg-rr99.5%
Taylor expanded in x1 around 0
*-lowering-*.f6499.5%
Simplified99.5%
if 1.24999999999999994e73 < x1 Initial program 33.3%
Simplified33.3%
Taylor expanded in x1 around inf
*-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-/.f6433.3%
Simplified33.3%
Taylor expanded in x1 around 0
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified100.0%
Final simplification96.3%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0
(+
(* x2 -6.0)
(*
x1
(+ (+ -1.0 (* 8.0 (* x2 x2))) (* (* x1 3.0) (+ 3.0 (* x2 4.0)))))))
(t_1 (+ (* x1 x1) 1.0))
(t_2 (+ (* 2.0 x2) (* x1 (+ -1.0 (* x1 3.0)))))
(t_3
(+
(* x2 -6.0)
(+
x1
(*
t_1
(+
(*
(+ (* t_2 (/ -2.0 (- -1.0 (* x1 x1)))) (+ -6.0 (* x1 4.0)))
(/ x1 (/ t_1 t_2)))
(* x1 (+ 1.0 (* x1 -6.0)))))))))
(if (<= x1 -5e+153)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 -0.00045)
t_3
(if (<= x1 -2.2e-147)
t_0
(if (<= x1 7.2e-203)
(+
(+ x1 (/ (* 3.0 (- (* 3.0 (* x1 x1)) x1)) t_1))
(* x2 (+ (/ (* 8.0 (* x1 x2)) t_1) (/ -6.0 t_1))))
(if (<= x1 1.55)
t_0
(if (<= x1 1.25e+73)
t_3
(+
x1
(*
x2
(+
-6.0
(*
(+ x1 (* (* x1 x1) (+ 6.0 (/ -4.0 x1))))
(/ t_1 x2)))))))))))))
double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = (x1 * x1) + 1.0;
double t_2 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0)));
double t_3 = (x2 * -6.0) + (x1 + (t_1 * ((((t_2 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_2))) + (x1 * (1.0 + (x1 * -6.0))))));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -0.00045) {
tmp = t_3;
} else if (x1 <= -2.2e-147) {
tmp = t_0;
} else if (x1 <= 7.2e-203) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1)));
} else if (x1 <= 1.55) {
tmp = t_0;
} else if (x1 <= 1.25e+73) {
tmp = t_3;
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2))));
}
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) :: t_3
real(8) :: tmp
t_0 = (x2 * (-6.0d0)) + (x1 * (((-1.0d0) + (8.0d0 * (x2 * x2))) + ((x1 * 3.0d0) * (3.0d0 + (x2 * 4.0d0)))))
t_1 = (x1 * x1) + 1.0d0
t_2 = (2.0d0 * x2) + (x1 * ((-1.0d0) + (x1 * 3.0d0)))
t_3 = (x2 * (-6.0d0)) + (x1 + (t_1 * ((((t_2 * ((-2.0d0) / ((-1.0d0) - (x1 * x1)))) + ((-6.0d0) + (x1 * 4.0d0))) * (x1 / (t_1 / t_2))) + (x1 * (1.0d0 + (x1 * (-6.0d0)))))))
if (x1 <= (-5d+153)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= (-0.00045d0)) then
tmp = t_3
else if (x1 <= (-2.2d-147)) then
tmp = t_0
else if (x1 <= 7.2d-203) then
tmp = (x1 + ((3.0d0 * ((3.0d0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0d0 * (x1 * x2)) / t_1) + ((-6.0d0) / t_1)))
else if (x1 <= 1.55d0) then
tmp = t_0
else if (x1 <= 1.25d+73) then
tmp = t_3
else
tmp = x1 + (x2 * ((-6.0d0) + ((x1 + ((x1 * x1) * (6.0d0 + ((-4.0d0) / x1)))) * (t_1 / x2))))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = (x1 * x1) + 1.0;
double t_2 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0)));
double t_3 = (x2 * -6.0) + (x1 + (t_1 * ((((t_2 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_2))) + (x1 * (1.0 + (x1 * -6.0))))));
double tmp;
if (x1 <= -5e+153) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -0.00045) {
tmp = t_3;
} else if (x1 <= -2.2e-147) {
tmp = t_0;
} else if (x1 <= 7.2e-203) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1)));
} else if (x1 <= 1.55) {
tmp = t_0;
} else if (x1 <= 1.25e+73) {
tmp = t_3;
} else {
tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2))));
}
return tmp;
}
def code(x1, x2): t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))) t_1 = (x1 * x1) + 1.0 t_2 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))) t_3 = (x2 * -6.0) + (x1 + (t_1 * ((((t_2 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_2))) + (x1 * (1.0 + (x1 * -6.0)))))) tmp = 0 if x1 <= -5e+153: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= -0.00045: tmp = t_3 elif x1 <= -2.2e-147: tmp = t_0 elif x1 <= 7.2e-203: tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1))) elif x1 <= 1.55: tmp = t_0 elif x1 <= 1.25e+73: tmp = t_3 else: tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2)))) return tmp
function code(x1, x2) t_0 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))) + Float64(Float64(x1 * 3.0) * Float64(3.0 + Float64(x2 * 4.0)))))) t_1 = Float64(Float64(x1 * x1) + 1.0) t_2 = Float64(Float64(2.0 * x2) + Float64(x1 * Float64(-1.0 + Float64(x1 * 3.0)))) t_3 = Float64(Float64(x2 * -6.0) + Float64(x1 + Float64(t_1 * Float64(Float64(Float64(Float64(t_2 * Float64(-2.0 / Float64(-1.0 - Float64(x1 * x1)))) + Float64(-6.0 + Float64(x1 * 4.0))) * Float64(x1 / Float64(t_1 / t_2))) + Float64(x1 * Float64(1.0 + Float64(x1 * -6.0))))))) tmp = 0.0 if (x1 <= -5e+153) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= -0.00045) tmp = t_3; elseif (x1 <= -2.2e-147) tmp = t_0; elseif (x1 <= 7.2e-203) tmp = Float64(Float64(x1 + Float64(Float64(3.0 * Float64(Float64(3.0 * Float64(x1 * x1)) - x1)) / t_1)) + Float64(x2 * Float64(Float64(Float64(8.0 * Float64(x1 * x2)) / t_1) + Float64(-6.0 / t_1)))); elseif (x1 <= 1.55) tmp = t_0; elseif (x1 <= 1.25e+73) tmp = t_3; else tmp = Float64(x1 + Float64(x2 * Float64(-6.0 + Float64(Float64(x1 + Float64(Float64(x1 * x1) * Float64(6.0 + Float64(-4.0 / x1)))) * Float64(t_1 / x2))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))); t_1 = (x1 * x1) + 1.0; t_2 = (2.0 * x2) + (x1 * (-1.0 + (x1 * 3.0))); t_3 = (x2 * -6.0) + (x1 + (t_1 * ((((t_2 * (-2.0 / (-1.0 - (x1 * x1)))) + (-6.0 + (x1 * 4.0))) * (x1 / (t_1 / t_2))) + (x1 * (1.0 + (x1 * -6.0)))))); tmp = 0.0; if (x1 <= -5e+153) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= -0.00045) tmp = t_3; elseif (x1 <= -2.2e-147) tmp = t_0; elseif (x1 <= 7.2e-203) tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1))); elseif (x1 <= 1.55) tmp = t_0; elseif (x1 <= 1.25e+73) tmp = t_3; else tmp = x1 + (x2 * (-6.0 + ((x1 + ((x1 * x1) * (6.0 + (-4.0 / x1)))) * (t_1 / x2)))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * 3.0), $MachinePrecision] * N[(3.0 + N[(x2 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * x2), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 + N[(t$95$1 * N[(N[(N[(N[(t$95$2 * N[(-2.0 / N[(-1.0 - N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-6.0 + N[(x1 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x1 / N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x1 * N[(1.0 + N[(x1 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -5e+153], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -0.00045], t$95$3, If[LessEqual[x1, -2.2e-147], t$95$0, If[LessEqual[x1, 7.2e-203], N[(N[(x1 + N[(N[(3.0 * N[(N[(3.0 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(N[(N[(8.0 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(-6.0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 1.55], t$95$0, If[LessEqual[x1, 1.25e+73], t$95$3, N[(x1 + N[(x2 * N[(-6.0 + N[(N[(x1 + N[(N[(x1 * x1), $MachinePrecision] * N[(6.0 + N[(-4.0 / x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$1 / x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot -6 + x1 \cdot \left(\left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right) + \left(x1 \cdot 3\right) \cdot \left(3 + x2 \cdot 4\right)\right)\\
t_1 := x1 \cdot x1 + 1\\
t_2 := 2 \cdot x2 + x1 \cdot \left(-1 + x1 \cdot 3\right)\\
t_3 := x2 \cdot -6 + \left(x1 + t\_1 \cdot \left(\left(t\_2 \cdot \frac{-2}{-1 - x1 \cdot x1} + \left(-6 + x1 \cdot 4\right)\right) \cdot \frac{x1}{\frac{t\_1}{t\_2}} + x1 \cdot \left(1 + x1 \cdot -6\right)\right)\right)\\
\mathbf{if}\;x1 \leq -5 \cdot 10^{+153}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq -0.00045:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x1 \leq -2.2 \cdot 10^{-147}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 7.2 \cdot 10^{-203}:\\
\;\;\;\;\left(x1 + \frac{3 \cdot \left(3 \cdot \left(x1 \cdot x1\right) - x1\right)}{t\_1}\right) + x2 \cdot \left(\frac{8 \cdot \left(x1 \cdot x2\right)}{t\_1} + \frac{-6}{t\_1}\right)\\
\mathbf{elif}\;x1 \leq 1.55:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 1.25 \cdot 10^{+73}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;x1 + x2 \cdot \left(-6 + \left(x1 + \left(x1 \cdot x1\right) \cdot \left(6 + \frac{-4}{x1}\right)\right) \cdot \frac{t\_1}{x2}\right)\\
\end{array}
\end{array}
if x1 < -5.00000000000000018e153Initial program 0.0%
Simplified0.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.00000000000000018e153 < x1 < -4.4999999999999999e-4 or 1.55000000000000004 < x1 < 1.24999999999999994e73Initial program 76.2%
Simplified93.3%
Applied egg-rr93.3%
Applied egg-rr93.2%
Taylor expanded in x1 around 0
*-lowering-*.f6499.6%
Simplified99.6%
if -4.4999999999999999e-4 < x1 < -2.2000000000000001e-147 or 7.19999999999999958e-203 < x1 < 1.55000000000000004Initial program 99.2%
Simplified99.1%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6493.4%
Simplified93.4%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.1%
Simplified94.1%
if -2.2000000000000001e-147 < x1 < 7.19999999999999958e-203Initial program 99.6%
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-*.f6461.4%
Simplified61.4%
Taylor expanded in x2 around 0
associate-+r+N/A
div-subN/A
associate-*r/N/A
+-lowering-+.f64N/A
Simplified90.0%
if 1.24999999999999994e73 < x1 Initial program 33.3%
Simplified33.3%
Taylor expanded in x1 around inf
*-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-/.f6433.3%
Simplified33.3%
Taylor expanded in x1 around 0
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x2 around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified100.0%
Final simplification96.2%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0
(+
(* x2 -6.0)
(*
x1
(+ (+ -1.0 (* 8.0 (* x2 x2))) (* (* x1 3.0) (+ 3.0 (* x2 4.0)))))))
(t_1 (+ (* x1 x1) 1.0))
(t_2 (* x1 (+ (* x1 6.0) -3.0))))
(if (<= x1 -8000.0)
(+ x1 (+ (* x2 -6.0) (* t_1 t_2)))
(if (<= x1 -2.7e-147)
t_0
(if (<= x1 4.6e-201)
(+
(+ x1 (/ (* 3.0 (- (* 3.0 (* x1 x1)) x1)) t_1))
(* x2 (+ (/ (* 8.0 (* x1 x2)) t_1) (/ -6.0 t_1))))
(if (<= x1 29000000.0)
t_0
(+ x1 (+ (* x2 -6.0) (* x1 (+ -3.0 (* x1 (+ 6.0 t_2))))))))))))
double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = (x1 * x1) + 1.0;
double t_2 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -8000.0) {
tmp = x1 + ((x2 * -6.0) + (t_1 * t_2));
} else if (x1 <= -2.7e-147) {
tmp = t_0;
} else if (x1 <= 4.6e-201) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1)));
} else if (x1 <= 29000000.0) {
tmp = t_0;
} else {
tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2)))));
}
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 = (x2 * (-6.0d0)) + (x1 * (((-1.0d0) + (8.0d0 * (x2 * x2))) + ((x1 * 3.0d0) * (3.0d0 + (x2 * 4.0d0)))))
t_1 = (x1 * x1) + 1.0d0
t_2 = x1 * ((x1 * 6.0d0) + (-3.0d0))
if (x1 <= (-8000.0d0)) then
tmp = x1 + ((x2 * (-6.0d0)) + (t_1 * t_2))
else if (x1 <= (-2.7d-147)) then
tmp = t_0
else if (x1 <= 4.6d-201) then
tmp = (x1 + ((3.0d0 * ((3.0d0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0d0 * (x1 * x2)) / t_1) + ((-6.0d0) / t_1)))
else if (x1 <= 29000000.0d0) then
tmp = t_0
else
tmp = x1 + ((x2 * (-6.0d0)) + (x1 * ((-3.0d0) + (x1 * (6.0d0 + t_2)))))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = (x1 * x1) + 1.0;
double t_2 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -8000.0) {
tmp = x1 + ((x2 * -6.0) + (t_1 * t_2));
} else if (x1 <= -2.7e-147) {
tmp = t_0;
} else if (x1 <= 4.6e-201) {
tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1)));
} else if (x1 <= 29000000.0) {
tmp = t_0;
} else {
tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2)))));
}
return tmp;
}
def code(x1, x2): t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))) t_1 = (x1 * x1) + 1.0 t_2 = x1 * ((x1 * 6.0) + -3.0) tmp = 0 if x1 <= -8000.0: tmp = x1 + ((x2 * -6.0) + (t_1 * t_2)) elif x1 <= -2.7e-147: tmp = t_0 elif x1 <= 4.6e-201: tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1))) elif x1 <= 29000000.0: tmp = t_0 else: tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2))))) return tmp
function code(x1, x2) t_0 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))) + Float64(Float64(x1 * 3.0) * Float64(3.0 + Float64(x2 * 4.0)))))) t_1 = Float64(Float64(x1 * x1) + 1.0) t_2 = Float64(x1 * Float64(Float64(x1 * 6.0) + -3.0)) tmp = 0.0 if (x1 <= -8000.0) tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(t_1 * t_2))); elseif (x1 <= -2.7e-147) tmp = t_0; elseif (x1 <= 4.6e-201) tmp = Float64(Float64(x1 + Float64(Float64(3.0 * Float64(Float64(3.0 * Float64(x1 * x1)) - x1)) / t_1)) + Float64(x2 * Float64(Float64(Float64(8.0 * Float64(x1 * x2)) / t_1) + Float64(-6.0 / t_1)))); elseif (x1 <= 29000000.0) tmp = t_0; else tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-3.0 + Float64(x1 * Float64(6.0 + t_2)))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))); t_1 = (x1 * x1) + 1.0; t_2 = x1 * ((x1 * 6.0) + -3.0); tmp = 0.0; if (x1 <= -8000.0) tmp = x1 + ((x2 * -6.0) + (t_1 * t_2)); elseif (x1 <= -2.7e-147) tmp = t_0; elseif (x1 <= 4.6e-201) tmp = (x1 + ((3.0 * ((3.0 * (x1 * x1)) - x1)) / t_1)) + (x2 * (((8.0 * (x1 * x2)) / t_1) + (-6.0 / t_1))); elseif (x1 <= 29000000.0) tmp = t_0; else tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2))))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * 3.0), $MachinePrecision] * N[(3.0 + N[(x2 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$2 = N[(x1 * N[(N[(x1 * 6.0), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -8000.0], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(t$95$1 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.7e-147], t$95$0, If[LessEqual[x1, 4.6e-201], N[(N[(x1 + N[(N[(3.0 * N[(N[(3.0 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] - x1), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(x2 * N[(N[(N[(8.0 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(-6.0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 29000000.0], t$95$0, N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-3.0 + N[(x1 * N[(6.0 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot -6 + x1 \cdot \left(\left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right) + \left(x1 \cdot 3\right) \cdot \left(3 + x2 \cdot 4\right)\right)\\
t_1 := x1 \cdot x1 + 1\\
t_2 := x1 \cdot \left(x1 \cdot 6 + -3\right)\\
\mathbf{if}\;x1 \leq -8000:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + t\_1 \cdot t\_2\right)\\
\mathbf{elif}\;x1 \leq -2.7 \cdot 10^{-147}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 4.6 \cdot 10^{-201}:\\
\;\;\;\;\left(x1 + \frac{3 \cdot \left(3 \cdot \left(x1 \cdot x1\right) - x1\right)}{t\_1}\right) + x2 \cdot \left(\frac{8 \cdot \left(x1 \cdot x2\right)}{t\_1} + \frac{-6}{t\_1}\right)\\
\mathbf{elif}\;x1 \leq 29000000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + x1 \cdot \left(-3 + x1 \cdot \left(6 + t\_2\right)\right)\right)\\
\end{array}
\end{array}
if x1 < -8e3Initial program 32.7%
Simplified44.2%
Taylor expanded in x1 around inf
*-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-/.f6438.4%
Simplified38.4%
Taylor expanded in x1 around 0
*-lowering-*.f6490.0%
Simplified90.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6490.0%
Simplified90.0%
if -8e3 < x1 < -2.6999999999999999e-147 or 4.59999999999999971e-201 < x1 < 2.9e7Initial program 99.2%
Simplified99.1%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6493.6%
Simplified93.6%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.0%
Simplified93.0%
if -2.6999999999999999e-147 < x1 < 4.59999999999999971e-201Initial program 99.6%
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-*.f6461.4%
Simplified61.4%
Taylor expanded in x2 around 0
associate-+r+N/A
div-subN/A
associate-*r/N/A
+-lowering-+.f64N/A
Simplified90.0%
if 2.9e7 < x1 Initial program 44.9%
Simplified45.0%
Taylor expanded in x1 around inf
*-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-/.f6438.9%
Simplified38.9%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6439.0%
Simplified39.0%
Taylor expanded in x1 around 0
*-lowering-*.f6493.7%
Simplified93.7%
Final simplification91.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0
(+
(* x2 -6.0)
(*
x1
(+ (+ -1.0 (* 8.0 (* x2 x2))) (* (* x1 3.0) (+ 3.0 (* x2 4.0)))))))
(t_1 (+ (* x1 x1) 1.0))
(t_2 (* x1 (+ (* x1 6.0) -3.0))))
(if (<= x1 -135000.0)
(+ x1 (+ (* x2 -6.0) (* t_1 t_2)))
(if (<= x1 -2.3e-147)
t_0
(if (<= x1 1.5e-198)
(+
(/ (* 8.0 (* x2 (* x1 x2))) t_1)
(+ x1 (/ (* 3.0 (+ (* x1 (+ -1.0 (* x1 3.0))) (* x2 -2.0))) t_1)))
(if (<= x1 660000000.0)
t_0
(+ x1 (+ (* x2 -6.0) (* x1 (+ -3.0 (* x1 (+ 6.0 t_2))))))))))))
double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = (x1 * x1) + 1.0;
double t_2 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -135000.0) {
tmp = x1 + ((x2 * -6.0) + (t_1 * t_2));
} else if (x1 <= -2.3e-147) {
tmp = t_0;
} else if (x1 <= 1.5e-198) {
tmp = ((8.0 * (x2 * (x1 * x2))) / t_1) + (x1 + ((3.0 * ((x1 * (-1.0 + (x1 * 3.0))) + (x2 * -2.0))) / t_1));
} else if (x1 <= 660000000.0) {
tmp = t_0;
} else {
tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2)))));
}
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 = (x2 * (-6.0d0)) + (x1 * (((-1.0d0) + (8.0d0 * (x2 * x2))) + ((x1 * 3.0d0) * (3.0d0 + (x2 * 4.0d0)))))
t_1 = (x1 * x1) + 1.0d0
t_2 = x1 * ((x1 * 6.0d0) + (-3.0d0))
if (x1 <= (-135000.0d0)) then
tmp = x1 + ((x2 * (-6.0d0)) + (t_1 * t_2))
else if (x1 <= (-2.3d-147)) then
tmp = t_0
else if (x1 <= 1.5d-198) then
tmp = ((8.0d0 * (x2 * (x1 * x2))) / t_1) + (x1 + ((3.0d0 * ((x1 * ((-1.0d0) + (x1 * 3.0d0))) + (x2 * (-2.0d0)))) / t_1))
else if (x1 <= 660000000.0d0) then
tmp = t_0
else
tmp = x1 + ((x2 * (-6.0d0)) + (x1 * ((-3.0d0) + (x1 * (6.0d0 + t_2)))))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = (x1 * x1) + 1.0;
double t_2 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -135000.0) {
tmp = x1 + ((x2 * -6.0) + (t_1 * t_2));
} else if (x1 <= -2.3e-147) {
tmp = t_0;
} else if (x1 <= 1.5e-198) {
tmp = ((8.0 * (x2 * (x1 * x2))) / t_1) + (x1 + ((3.0 * ((x1 * (-1.0 + (x1 * 3.0))) + (x2 * -2.0))) / t_1));
} else if (x1 <= 660000000.0) {
tmp = t_0;
} else {
tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2)))));
}
return tmp;
}
def code(x1, x2): t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))) t_1 = (x1 * x1) + 1.0 t_2 = x1 * ((x1 * 6.0) + -3.0) tmp = 0 if x1 <= -135000.0: tmp = x1 + ((x2 * -6.0) + (t_1 * t_2)) elif x1 <= -2.3e-147: tmp = t_0 elif x1 <= 1.5e-198: tmp = ((8.0 * (x2 * (x1 * x2))) / t_1) + (x1 + ((3.0 * ((x1 * (-1.0 + (x1 * 3.0))) + (x2 * -2.0))) / t_1)) elif x1 <= 660000000.0: tmp = t_0 else: tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2))))) return tmp
function code(x1, x2) t_0 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))) + Float64(Float64(x1 * 3.0) * Float64(3.0 + Float64(x2 * 4.0)))))) t_1 = Float64(Float64(x1 * x1) + 1.0) t_2 = Float64(x1 * Float64(Float64(x1 * 6.0) + -3.0)) tmp = 0.0 if (x1 <= -135000.0) tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(t_1 * t_2))); elseif (x1 <= -2.3e-147) tmp = t_0; elseif (x1 <= 1.5e-198) tmp = Float64(Float64(Float64(8.0 * Float64(x2 * Float64(x1 * x2))) / t_1) + Float64(x1 + Float64(Float64(3.0 * Float64(Float64(x1 * Float64(-1.0 + Float64(x1 * 3.0))) + Float64(x2 * -2.0))) / t_1))); elseif (x1 <= 660000000.0) tmp = t_0; else tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-3.0 + Float64(x1 * Float64(6.0 + t_2)))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))); t_1 = (x1 * x1) + 1.0; t_2 = x1 * ((x1 * 6.0) + -3.0); tmp = 0.0; if (x1 <= -135000.0) tmp = x1 + ((x2 * -6.0) + (t_1 * t_2)); elseif (x1 <= -2.3e-147) tmp = t_0; elseif (x1 <= 1.5e-198) tmp = ((8.0 * (x2 * (x1 * x2))) / t_1) + (x1 + ((3.0 * ((x1 * (-1.0 + (x1 * 3.0))) + (x2 * -2.0))) / t_1)); elseif (x1 <= 660000000.0) tmp = t_0; else tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_2))))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * 3.0), $MachinePrecision] * N[(3.0 + N[(x2 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$2 = N[(x1 * N[(N[(x1 * 6.0), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -135000.0], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(t$95$1 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.3e-147], t$95$0, If[LessEqual[x1, 1.5e-198], N[(N[(N[(8.0 * N[(x2 * N[(x1 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(x1 + N[(N[(3.0 * N[(N[(x1 * N[(-1.0 + N[(x1 * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 660000000.0], t$95$0, N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-3.0 + N[(x1 * N[(6.0 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot -6 + x1 \cdot \left(\left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right) + \left(x1 \cdot 3\right) \cdot \left(3 + x2 \cdot 4\right)\right)\\
t_1 := x1 \cdot x1 + 1\\
t_2 := x1 \cdot \left(x1 \cdot 6 + -3\right)\\
\mathbf{if}\;x1 \leq -135000:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + t\_1 \cdot t\_2\right)\\
\mathbf{elif}\;x1 \leq -2.3 \cdot 10^{-147}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 1.5 \cdot 10^{-198}:\\
\;\;\;\;\frac{8 \cdot \left(x2 \cdot \left(x1 \cdot x2\right)\right)}{t\_1} + \left(x1 + \frac{3 \cdot \left(x1 \cdot \left(-1 + x1 \cdot 3\right) + x2 \cdot -2\right)}{t\_1}\right)\\
\mathbf{elif}\;x1 \leq 660000000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + x1 \cdot \left(-3 + x1 \cdot \left(6 + t\_2\right)\right)\right)\\
\end{array}
\end{array}
if x1 < -135000Initial program 32.7%
Simplified44.2%
Taylor expanded in x1 around inf
*-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-/.f6438.4%
Simplified38.4%
Taylor expanded in x1 around 0
*-lowering-*.f6490.0%
Simplified90.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6490.0%
Simplified90.0%
if -135000 < x1 < -2.2999999999999999e-147 or 1.5000000000000001e-198 < x1 < 6.6e8Initial program 99.2%
Simplified99.1%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6493.6%
Simplified93.6%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.0%
Simplified93.0%
if -2.2999999999999999e-147 < x1 < 1.5000000000000001e-198Initial program 99.6%
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-*.f6461.4%
Simplified61.4%
Applied egg-rr89.9%
if 6.6e8 < x1 Initial program 44.9%
Simplified45.0%
Taylor expanded in x1 around inf
*-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-/.f6438.9%
Simplified38.9%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6439.0%
Simplified39.0%
Taylor expanded in x1 around 0
*-lowering-*.f6493.7%
Simplified93.7%
Final simplification91.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0
(+
(* x2 -6.0)
(*
x1
(+ (+ -1.0 (* 8.0 (* x2 x2))) (* (* x1 3.0) (+ 3.0 (* x2 4.0)))))))
(t_1 (* x1 (+ (* x1 6.0) -3.0))))
(if (<= x1 -63000000.0)
(+ x1 (+ (* x2 -6.0) (* (+ (* x1 x1) 1.0) t_1)))
(if (<= x1 -2.2e-146)
t_0
(if (<= x1 1.65e-248)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(if (<= x1 280000000000.0)
t_0
(+ x1 (+ (* x2 -6.0) (* x1 (+ -3.0 (* x1 (+ 6.0 t_1))))))))))))
double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -63000000.0) {
tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_1));
} else if (x1 <= -2.2e-146) {
tmp = t_0;
} else if (x1 <= 1.65e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 280000000000.0) {
tmp = t_0;
} else {
tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_1)))));
}
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 = (x2 * (-6.0d0)) + (x1 * (((-1.0d0) + (8.0d0 * (x2 * x2))) + ((x1 * 3.0d0) * (3.0d0 + (x2 * 4.0d0)))))
t_1 = x1 * ((x1 * 6.0d0) + (-3.0d0))
if (x1 <= (-63000000.0d0)) then
tmp = x1 + ((x2 * (-6.0d0)) + (((x1 * x1) + 1.0d0) * t_1))
else if (x1 <= (-2.2d-146)) then
tmp = t_0
else if (x1 <= 1.65d-248) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else if (x1 <= 280000000000.0d0) then
tmp = t_0
else
tmp = x1 + ((x2 * (-6.0d0)) + (x1 * ((-3.0d0) + (x1 * (6.0d0 + t_1)))))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0)))));
double t_1 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -63000000.0) {
tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_1));
} else if (x1 <= -2.2e-146) {
tmp = t_0;
} else if (x1 <= 1.65e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 280000000000.0) {
tmp = t_0;
} else {
tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_1)))));
}
return tmp;
}
def code(x1, x2): t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))) t_1 = x1 * ((x1 * 6.0) + -3.0) tmp = 0 if x1 <= -63000000.0: tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_1)) elif x1 <= -2.2e-146: tmp = t_0 elif x1 <= 1.65e-248: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) elif x1 <= 280000000000.0: tmp = t_0 else: tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_1))))) return tmp
function code(x1, x2) t_0 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))) + Float64(Float64(x1 * 3.0) * Float64(3.0 + Float64(x2 * 4.0)))))) t_1 = Float64(x1 * Float64(Float64(x1 * 6.0) + -3.0)) tmp = 0.0 if (x1 <= -63000000.0) tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(Float64(Float64(x1 * x1) + 1.0) * t_1))); elseif (x1 <= -2.2e-146) tmp = t_0; elseif (x1 <= 1.65e-248) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); elseif (x1 <= 280000000000.0) tmp = t_0; else tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-3.0 + Float64(x1 * Float64(6.0 + t_1)))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x2 * -6.0) + (x1 * ((-1.0 + (8.0 * (x2 * x2))) + ((x1 * 3.0) * (3.0 + (x2 * 4.0))))); t_1 = x1 * ((x1 * 6.0) + -3.0); tmp = 0.0; if (x1 <= -63000000.0) tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_1)); elseif (x1 <= -2.2e-146) tmp = t_0; elseif (x1 <= 1.65e-248) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); elseif (x1 <= 280000000000.0) tmp = t_0; else tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_1))))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x1 * 3.0), $MachinePrecision] * N[(3.0 + N[(x2 * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x1 * N[(N[(x1 * 6.0), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -63000000.0], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.2e-146], t$95$0, If[LessEqual[x1, 1.65e-248], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 280000000000.0], t$95$0, N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-3.0 + N[(x1 * N[(6.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot -6 + x1 \cdot \left(\left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right) + \left(x1 \cdot 3\right) \cdot \left(3 + x2 \cdot 4\right)\right)\\
t_1 := x1 \cdot \left(x1 \cdot 6 + -3\right)\\
\mathbf{if}\;x1 \leq -63000000:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + \left(x1 \cdot x1 + 1\right) \cdot t\_1\right)\\
\mathbf{elif}\;x1 \leq -2.2 \cdot 10^{-146}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 1.65 \cdot 10^{-248}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{elif}\;x1 \leq 280000000000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + x1 \cdot \left(-3 + x1 \cdot \left(6 + t\_1\right)\right)\right)\\
\end{array}
\end{array}
if x1 < -6.3e7Initial program 32.7%
Simplified44.2%
Taylor expanded in x1 around inf
*-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-/.f6438.4%
Simplified38.4%
Taylor expanded in x1 around 0
*-lowering-*.f6490.0%
Simplified90.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6490.0%
Simplified90.0%
if -6.3e7 < x1 < -2.2e-146 or 1.6500000000000001e-248 < x1 < 2.8e11Initial program 99.2%
Simplified99.2%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6491.2%
Simplified91.2%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6490.7%
Simplified90.7%
if -2.2e-146 < x1 < 1.6500000000000001e-248Initial program 99.6%
Taylor expanded in x2 around -inf
Simplified48.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified52.9%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified92.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
if 2.8e11 < x1 Initial program 44.9%
Simplified45.0%
Taylor expanded in x1 around inf
*-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-/.f6438.9%
Simplified38.9%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6439.0%
Simplified39.0%
Taylor expanded in x1 around 0
*-lowering-*.f6493.7%
Simplified93.7%
Final simplification91.6%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x1 (+ (* x1 6.0) -3.0))))
(if (<= x1 -70000.0)
(+ x1 (+ (* x2 -6.0) (* (+ (* x1 x1) 1.0) t_0)))
(if (<= x1 -3.2e-147)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* (* x2 4.0) (+ (* 2.0 x2) -3.0)))))
(if (<= x1 8.8e-249)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(if (<= x1 580000000.0)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2)))))
(+ x1 (+ (* x2 -6.0) (* x1 (+ -3.0 (* x1 (+ 6.0 t_0))))))))))))
double code(double x1, double x2) {
double t_0 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -70000.0) {
tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_0));
} else if (x1 <= -3.2e-147) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else if (x1 <= 8.8e-249) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 580000000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else {
tmp = x1 + ((x2 * -6.0) + (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 = x1 * ((x1 * 6.0d0) + (-3.0d0))
if (x1 <= (-70000.0d0)) then
tmp = x1 + ((x2 * (-6.0d0)) + (((x1 * x1) + 1.0d0) * t_0))
else if (x1 <= (-3.2d-147)) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + ((x2 * 4.0d0) * ((2.0d0 * x2) + (-3.0d0)))))
else if (x1 <= 8.8d-249) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else if (x1 <= 580000000.0d0) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
else
tmp = x1 + ((x2 * (-6.0d0)) + (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 = x1 * ((x1 * 6.0) + -3.0);
double tmp;
if (x1 <= -70000.0) {
tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_0));
} else if (x1 <= -3.2e-147) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else if (x1 <= 8.8e-249) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 580000000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else {
tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_0)))));
}
return tmp;
}
def code(x1, x2): t_0 = x1 * ((x1 * 6.0) + -3.0) tmp = 0 if x1 <= -70000.0: tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_0)) elif x1 <= -3.2e-147: tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))) elif x1 <= 8.8e-249: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) elif x1 <= 580000000.0: tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) else: tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_0))))) return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(Float64(x1 * 6.0) + -3.0)) tmp = 0.0 if (x1 <= -70000.0) tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(Float64(Float64(x1 * x1) + 1.0) * t_0))); elseif (x1 <= -3.2e-147) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(Float64(x2 * 4.0) * Float64(Float64(2.0 * x2) + -3.0))))); elseif (x1 <= 8.8e-249) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); elseif (x1 <= 580000000.0) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))); else tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-3.0 + Float64(x1 * Float64(6.0 + t_0)))))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * ((x1 * 6.0) + -3.0); tmp = 0.0; if (x1 <= -70000.0) tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * t_0)); elseif (x1 <= -3.2e-147) tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))); elseif (x1 <= 8.8e-249) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); elseif (x1 <= 580000000.0) tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); else tmp = x1 + ((x2 * -6.0) + (x1 * (-3.0 + (x1 * (6.0 + t_0))))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(N[(x1 * 6.0), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -70000.0], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -3.2e-147], 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], If[LessEqual[x1, 8.8e-249], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 580000000.0], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-3.0 + N[(x1 * N[(6.0 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(x1 \cdot 6 + -3\right)\\
\mathbf{if}\;x1 \leq -70000:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + \left(x1 \cdot x1 + 1\right) \cdot t\_0\right)\\
\mathbf{elif}\;x1 \leq -3.2 \cdot 10^{-147}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + \left(x2 \cdot 4\right) \cdot \left(2 \cdot x2 + -3\right)\right)\\
\mathbf{elif}\;x1 \leq 8.8 \cdot 10^{-249}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{elif}\;x1 \leq 580000000:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + x1 \cdot \left(-3 + x1 \cdot \left(6 + t\_0\right)\right)\right)\\
\end{array}
\end{array}
if x1 < -7e4Initial program 32.7%
Simplified44.2%
Taylor expanded in x1 around inf
*-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-/.f6438.4%
Simplified38.4%
Taylor expanded in x1 around 0
*-lowering-*.f6490.0%
Simplified90.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6490.0%
Simplified90.0%
if -7e4 < x1 < -3.19999999999999979e-147Initial program 99.0%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-commutativeN/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
+-lowering-+.f64N/A
*-lowering-*.f64N/A
metadata-eval95.0%
Simplified95.0%
if -3.19999999999999979e-147 < x1 < 8.8e-249Initial program 99.6%
Taylor expanded in x2 around -inf
Simplified48.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified52.9%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified92.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
if 8.8e-249 < x1 < 5.8e8Initial program 99.3%
Simplified99.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6488.7%
Simplified88.7%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6487.1%
Simplified87.1%
if 5.8e8 < x1 Initial program 44.9%
Simplified45.0%
Taylor expanded in x1 around inf
*-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-/.f6438.9%
Simplified38.9%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6439.0%
Simplified39.0%
Taylor expanded in x1 around 0
*-lowering-*.f6493.7%
Simplified93.7%
Final simplification91.1%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2))))))
(t_1 (* x1 (* x1 x1))))
(if (<= x1 -2e+154)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 -5.5e+102)
(* t_1 (/ -1.0 (* x1 x1)))
(if (<= x1 -2.3e-147)
t_0
(if (<= x1 2.4e-248)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(if (<= x1 2.6e+97) t_0 t_1)))))))
double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
double t_1 = x1 * (x1 * x1);
double tmp;
if (x1 <= -2e+154) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -5.5e+102) {
tmp = t_1 * (-1.0 / (x1 * x1));
} else if (x1 <= -2.3e-147) {
tmp = t_0;
} else if (x1 <= 2.4e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 2.6e+97) {
tmp = t_0;
} else {
tmp = t_1;
}
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 = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
t_1 = x1 * (x1 * x1)
if (x1 <= (-2d+154)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= (-5.5d+102)) then
tmp = t_1 * ((-1.0d0) / (x1 * x1))
else if (x1 <= (-2.3d-147)) then
tmp = t_0
else if (x1 <= 2.4d-248) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else if (x1 <= 2.6d+97) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
double t_1 = x1 * (x1 * x1);
double tmp;
if (x1 <= -2e+154) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -5.5e+102) {
tmp = t_1 * (-1.0 / (x1 * x1));
} else if (x1 <= -2.3e-147) {
tmp = t_0;
} else if (x1 <= 2.4e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 2.6e+97) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x1, x2): t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) t_1 = x1 * (x1 * x1) tmp = 0 if x1 <= -2e+154: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= -5.5e+102: tmp = t_1 * (-1.0 / (x1 * x1)) elif x1 <= -2.3e-147: tmp = t_0 elif x1 <= 2.4e-248: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) elif x1 <= 2.6e+97: tmp = t_0 else: tmp = t_1 return tmp
function code(x1, x2) t_0 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))) t_1 = Float64(x1 * Float64(x1 * x1)) tmp = 0.0 if (x1 <= -2e+154) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= -5.5e+102) tmp = Float64(t_1 * Float64(-1.0 / Float64(x1 * x1))); elseif (x1 <= -2.3e-147) tmp = t_0; elseif (x1 <= 2.4e-248) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); elseif (x1 <= 2.6e+97) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); t_1 = x1 * (x1 * x1); tmp = 0.0; if (x1 <= -2e+154) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= -5.5e+102) tmp = t_1 * (-1.0 / (x1 * x1)); elseif (x1 <= -2.3e-147) tmp = t_0; elseif (x1 <= 2.4e-248) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); elseif (x1 <= 2.6e+97) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2e+154], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -5.5e+102], N[(t$95$1 * N[(-1.0 / N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.3e-147], t$95$0, If[LessEqual[x1, 2.4e-248], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 2.6e+97], t$95$0, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
t_1 := x1 \cdot \left(x1 \cdot x1\right)\\
\mathbf{if}\;x1 \leq -2 \cdot 10^{+154}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq -5.5 \cdot 10^{+102}:\\
\;\;\;\;t\_1 \cdot \frac{-1}{x1 \cdot x1}\\
\mathbf{elif}\;x1 \leq -2.3 \cdot 10^{-147}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 2.4 \cdot 10^{-248}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{elif}\;x1 \leq 2.6 \cdot 10^{+97}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x1 < -2.00000000000000007e154Initial program 0.0%
Simplified0.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
if -2.00000000000000007e154 < x1 < -5.49999999999999981e102Initial program 0.0%
Simplified100.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if -5.49999999999999981e102 < x1 < -2.2999999999999999e-147 or 2.40000000000000003e-248 < x1 < 2.6e97Initial program 99.3%
Simplified96.8%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6471.0%
Simplified71.0%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
if -2.2999999999999999e-147 < x1 < 2.40000000000000003e-248Initial program 99.6%
Taylor expanded in x2 around -inf
Simplified48.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified52.9%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified92.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
if 2.6e97 < x1 Initial program 27.7%
Simplified27.7%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6423.4%
Simplified23.4%
Taylor expanded in x1 around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6496.3%
Simplified96.3%
Final simplification82.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x1 x1) 1.0)))
(if (<= x1 -12500000000.0)
(+ x1 (+ (* x2 -6.0) (* t_0 (* x1 (+ (* x1 6.0) -3.0)))))
(if (<= x1 -2.2e-147)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* (* x2 4.0) (+ (* 2.0 x2) -3.0)))))
(if (<= x1 8.4e-249)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(if (<= x1 1500000000.0)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2)))))
(+ x1 (+ (* t_0 (* x1 (* x1 6.0))) (* x2 -6.0)))))))))
double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double tmp;
if (x1 <= -12500000000.0) {
tmp = x1 + ((x2 * -6.0) + (t_0 * (x1 * ((x1 * 6.0) + -3.0))));
} else if (x1 <= -2.2e-147) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else if (x1 <= 8.4e-249) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 1500000000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else {
tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.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) + 1.0d0
if (x1 <= (-12500000000.0d0)) then
tmp = x1 + ((x2 * (-6.0d0)) + (t_0 * (x1 * ((x1 * 6.0d0) + (-3.0d0)))))
else if (x1 <= (-2.2d-147)) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + ((x2 * 4.0d0) * ((2.0d0 * x2) + (-3.0d0)))))
else if (x1 <= 8.4d-249) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else if (x1 <= 1500000000.0d0) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
else
tmp = x1 + ((t_0 * (x1 * (x1 * 6.0d0))) + (x2 * (-6.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x1 * x1) + 1.0;
double tmp;
if (x1 <= -12500000000.0) {
tmp = x1 + ((x2 * -6.0) + (t_0 * (x1 * ((x1 * 6.0) + -3.0))));
} else if (x1 <= -2.2e-147) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else if (x1 <= 8.4e-249) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 1500000000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else {
tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.0));
}
return tmp;
}
def code(x1, x2): t_0 = (x1 * x1) + 1.0 tmp = 0 if x1 <= -12500000000.0: tmp = x1 + ((x2 * -6.0) + (t_0 * (x1 * ((x1 * 6.0) + -3.0)))) elif x1 <= -2.2e-147: tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))) elif x1 <= 8.4e-249: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) elif x1 <= 1500000000.0: tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) else: tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.0)) return tmp
function code(x1, x2) t_0 = Float64(Float64(x1 * x1) + 1.0) tmp = 0.0 if (x1 <= -12500000000.0) tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(t_0 * Float64(x1 * Float64(Float64(x1 * 6.0) + -3.0))))); elseif (x1 <= -2.2e-147) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(Float64(x2 * 4.0) * Float64(Float64(2.0 * x2) + -3.0))))); elseif (x1 <= 8.4e-249) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); elseif (x1 <= 1500000000.0) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))); else tmp = Float64(x1 + Float64(Float64(t_0 * Float64(x1 * Float64(x1 * 6.0))) + Float64(x2 * -6.0))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x1 * x1) + 1.0; tmp = 0.0; if (x1 <= -12500000000.0) tmp = x1 + ((x2 * -6.0) + (t_0 * (x1 * ((x1 * 6.0) + -3.0)))); elseif (x1 <= -2.2e-147) tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))); elseif (x1 <= 8.4e-249) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); elseif (x1 <= 1500000000.0) tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); else tmp = x1 + ((t_0 * (x1 * (x1 * 6.0))) + (x2 * -6.0)); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision]}, If[LessEqual[x1, -12500000000.0], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(t$95$0 * N[(x1 * N[(N[(x1 * 6.0), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.2e-147], 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], If[LessEqual[x1, 8.4e-249], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 1500000000.0], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 + N[(N[(t$95$0 * N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot x1 + 1\\
\mathbf{if}\;x1 \leq -12500000000:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + t\_0 \cdot \left(x1 \cdot \left(x1 \cdot 6 + -3\right)\right)\right)\\
\mathbf{elif}\;x1 \leq -2.2 \cdot 10^{-147}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + \left(x2 \cdot 4\right) \cdot \left(2 \cdot x2 + -3\right)\right)\\
\mathbf{elif}\;x1 \leq 8.4 \cdot 10^{-249}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{elif}\;x1 \leq 1500000000:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 + \left(t\_0 \cdot \left(x1 \cdot \left(x1 \cdot 6\right)\right) + x2 \cdot -6\right)\\
\end{array}
\end{array}
if x1 < -1.25e10Initial program 32.7%
Simplified44.2%
Taylor expanded in x1 around inf
*-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-/.f6438.4%
Simplified38.4%
Taylor expanded in x1 around 0
*-lowering-*.f6490.0%
Simplified90.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6490.0%
Simplified90.0%
if -1.25e10 < x1 < -2.2000000000000001e-147Initial program 99.0%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-commutativeN/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
+-lowering-+.f64N/A
*-lowering-*.f64N/A
metadata-eval95.0%
Simplified95.0%
if -2.2000000000000001e-147 < x1 < 8.39999999999999971e-249Initial program 99.6%
Taylor expanded in x2 around -inf
Simplified48.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified52.9%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified92.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
if 8.39999999999999971e-249 < x1 < 1.5e9Initial program 99.3%
Simplified99.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6488.7%
Simplified88.7%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6487.1%
Simplified87.1%
if 1.5e9 < x1 Initial program 44.9%
Simplified45.0%
Taylor expanded in x1 around inf
*-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-/.f6438.9%
Simplified38.9%
Taylor expanded in x1 around 0
*-lowering-*.f6493.6%
Simplified93.6%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6493.7%
Simplified93.7%
Final simplification91.1%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ x1 (+ (* (+ (* x1 x1) 1.0) (* x1 (* x1 6.0))) (* x2 -6.0)))))
(if (<= x1 -8000.0)
t_0
(if (<= x1 -2.05e-147)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* (* x2 4.0) (+ (* 2.0 x2) -3.0)))))
(if (<= x1 2.2e-249)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(if (<= x1 720000000.0)
(+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2)))))
t_0))))))
double code(double x1, double x2) {
double t_0 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0));
double tmp;
if (x1 <= -8000.0) {
tmp = t_0;
} else if (x1 <= -2.05e-147) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else if (x1 <= 2.2e-249) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 720000000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} 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 * x1) + 1.0d0) * (x1 * (x1 * 6.0d0))) + (x2 * (-6.0d0)))
if (x1 <= (-8000.0d0)) then
tmp = t_0
else if (x1 <= (-2.05d-147)) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + ((x2 * 4.0d0) * ((2.0d0 * x2) + (-3.0d0)))))
else if (x1 <= 2.2d-249) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else if (x1 <= 720000000.0d0) then
tmp = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0));
double tmp;
if (x1 <= -8000.0) {
tmp = t_0;
} else if (x1 <= -2.05e-147) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0))));
} else if (x1 <= 2.2e-249) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 720000000.0) {
tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x1, x2): t_0 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0)) tmp = 0 if x1 <= -8000.0: tmp = t_0 elif x1 <= -2.05e-147: tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))) elif x1 <= 2.2e-249: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) elif x1 <= 720000000.0: tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) else: tmp = t_0 return tmp
function code(x1, x2) t_0 = Float64(x1 + Float64(Float64(Float64(Float64(x1 * x1) + 1.0) * Float64(x1 * Float64(x1 * 6.0))) + Float64(x2 * -6.0))) tmp = 0.0 if (x1 <= -8000.0) tmp = t_0; elseif (x1 <= -2.05e-147) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(Float64(x2 * 4.0) * Float64(Float64(2.0 * x2) + -3.0))))); elseif (x1 <= 2.2e-249) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); elseif (x1 <= 720000000.0) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0)); tmp = 0.0; if (x1 <= -8000.0) tmp = t_0; elseif (x1 <= -2.05e-147) tmp = (x2 * -6.0) + (x1 * (-1.0 + ((x2 * 4.0) * ((2.0 * x2) + -3.0)))); elseif (x1 <= 2.2e-249) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); elseif (x1 <= 720000000.0) tmp = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); else tmp = t_0; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 + N[(N[(N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision] * N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -8000.0], t$95$0, If[LessEqual[x1, -2.05e-147], 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], If[LessEqual[x1, 2.2e-249], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 720000000.0], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 + \left(\left(x1 \cdot x1 + 1\right) \cdot \left(x1 \cdot \left(x1 \cdot 6\right)\right) + x2 \cdot -6\right)\\
\mathbf{if}\;x1 \leq -8000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq -2.05 \cdot 10^{-147}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + \left(x2 \cdot 4\right) \cdot \left(2 \cdot x2 + -3\right)\right)\\
\mathbf{elif}\;x1 \leq 2.2 \cdot 10^{-249}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{elif}\;x1 \leq 720000000:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x1 < -8e3 or 7.2e8 < x1 Initial program 38.5%
Simplified44.6%
Taylor expanded in x1 around inf
*-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-/.f6438.6%
Simplified38.6%
Taylor expanded in x1 around 0
*-lowering-*.f6491.7%
Simplified91.7%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6491.6%
Simplified91.6%
if -8e3 < x1 < -2.05e-147Initial program 99.0%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-commutativeN/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
+-lowering-+.f64N/A
*-lowering-*.f64N/A
metadata-eval95.0%
Simplified95.0%
if -2.05e-147 < x1 < 2.2e-249Initial program 99.6%
Taylor expanded in x2 around -inf
Simplified48.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified52.9%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified92.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
if 2.2e-249 < x1 < 7.2e8Initial program 99.3%
Simplified99.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6488.7%
Simplified88.7%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6487.1%
Simplified87.1%
Final simplification91.0%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2))))))
(t_1 (+ x1 (+ (* (+ (* x1 x1) 1.0) (* x1 (* x1 6.0))) (* x2 -6.0)))))
(if (<= x1 -390000.0)
t_1
(if (<= x1 -3.8e-147)
t_0
(if (<= x1 2.4e-248)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(if (<= x1 850000000.0) t_0 t_1))))))
double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
double t_1 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0));
double tmp;
if (x1 <= -390000.0) {
tmp = t_1;
} else if (x1 <= -3.8e-147) {
tmp = t_0;
} else if (x1 <= 2.4e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 850000000.0) {
tmp = t_0;
} else {
tmp = t_1;
}
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 = (x2 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
t_1 = x1 + ((((x1 * x1) + 1.0d0) * (x1 * (x1 * 6.0d0))) + (x2 * (-6.0d0)))
if (x1 <= (-390000.0d0)) then
tmp = t_1
else if (x1 <= (-3.8d-147)) then
tmp = t_0
else if (x1 <= 2.4d-248) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else if (x1 <= 850000000.0d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
double t_1 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0));
double tmp;
if (x1 <= -390000.0) {
tmp = t_1;
} else if (x1 <= -3.8e-147) {
tmp = t_0;
} else if (x1 <= 2.4e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 850000000.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x1, x2): t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) t_1 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0)) tmp = 0 if x1 <= -390000.0: tmp = t_1 elif x1 <= -3.8e-147: tmp = t_0 elif x1 <= 2.4e-248: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) elif x1 <= 850000000.0: tmp = t_0 else: tmp = t_1 return tmp
function code(x1, x2) t_0 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))) t_1 = Float64(x1 + Float64(Float64(Float64(Float64(x1 * x1) + 1.0) * Float64(x1 * Float64(x1 * 6.0))) + Float64(x2 * -6.0))) tmp = 0.0 if (x1 <= -390000.0) tmp = t_1; elseif (x1 <= -3.8e-147) tmp = t_0; elseif (x1 <= 2.4e-248) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); elseif (x1 <= 850000000.0) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); t_1 = x1 + ((((x1 * x1) + 1.0) * (x1 * (x1 * 6.0))) + (x2 * -6.0)); tmp = 0.0; if (x1 <= -390000.0) tmp = t_1; elseif (x1 <= -3.8e-147) tmp = t_0; elseif (x1 <= 2.4e-248) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); elseif (x1 <= 850000000.0) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x1 + N[(N[(N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision] * N[(x1 * N[(x1 * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x2 * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -390000.0], t$95$1, If[LessEqual[x1, -3.8e-147], t$95$0, If[LessEqual[x1, 2.4e-248], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 850000000.0], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
t_1 := x1 + \left(\left(x1 \cdot x1 + 1\right) \cdot \left(x1 \cdot \left(x1 \cdot 6\right)\right) + x2 \cdot -6\right)\\
\mathbf{if}\;x1 \leq -390000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x1 \leq -3.8 \cdot 10^{-147}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 2.4 \cdot 10^{-248}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{elif}\;x1 \leq 850000000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x1 < -3.9e5 or 8.5e8 < x1 Initial program 38.5%
Simplified44.6%
Taylor expanded in x1 around inf
*-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-/.f6438.6%
Simplified38.6%
Taylor expanded in x1 around 0
*-lowering-*.f6491.7%
Simplified91.7%
Taylor expanded in x1 around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6491.6%
Simplified91.6%
if -3.9e5 < x1 < -3.80000000000000028e-147 or 2.40000000000000003e-248 < x1 < 8.5e8Initial program 99.2%
Simplified99.2%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6491.2%
Simplified91.2%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6489.4%
Simplified89.4%
if -3.80000000000000028e-147 < x1 < 2.40000000000000003e-248Initial program 99.6%
Taylor expanded in x2 around -inf
Simplified48.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified52.9%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified92.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
Final simplification91.0%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x1 (+ -1.0 (* x1 9.0)))))
(if (<= x1 -2.25e+173)
t_0
(if (<= x1 -1.3e+80)
(* x2 (* (* x1 x1) (* x1 (+ 24.0 (* x2 -8.0)))))
(if (<= x1 -5.6e-5)
(/ (* x2 (* x2 8.0)) x1)
(if (<= x1 -4.8e-80)
t_0
(if (<= x1 1.45e-51)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(* x1 (+ -1.0 (* x1 (+ x1 9.0)))))))))))
double code(double x1, double x2) {
double t_0 = x1 * (-1.0 + (x1 * 9.0));
double tmp;
if (x1 <= -2.25e+173) {
tmp = t_0;
} else if (x1 <= -1.3e+80) {
tmp = x2 * ((x1 * x1) * (x1 * (24.0 + (x2 * -8.0))));
} else if (x1 <= -5.6e-5) {
tmp = (x2 * (x2 * 8.0)) / x1;
} else if (x1 <= -4.8e-80) {
tmp = t_0;
} else if (x1 <= 1.45e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (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 = x1 * ((-1.0d0) + (x1 * 9.0d0))
if (x1 <= (-2.25d+173)) then
tmp = t_0
else if (x1 <= (-1.3d+80)) then
tmp = x2 * ((x1 * x1) * (x1 * (24.0d0 + (x2 * (-8.0d0)))))
else if (x1 <= (-5.6d-5)) then
tmp = (x2 * (x2 * 8.0d0)) / x1
else if (x1 <= (-4.8d-80)) then
tmp = t_0
else if (x1 <= 1.45d-51) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else
tmp = x1 * ((-1.0d0) + (x1 * (x1 + 9.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x1 * (-1.0 + (x1 * 9.0));
double tmp;
if (x1 <= -2.25e+173) {
tmp = t_0;
} else if (x1 <= -1.3e+80) {
tmp = x2 * ((x1 * x1) * (x1 * (24.0 + (x2 * -8.0))));
} else if (x1 <= -5.6e-5) {
tmp = (x2 * (x2 * 8.0)) / x1;
} else if (x1 <= -4.8e-80) {
tmp = t_0;
} else if (x1 <= 1.45e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.0)));
}
return tmp;
}
def code(x1, x2): t_0 = x1 * (-1.0 + (x1 * 9.0)) tmp = 0 if x1 <= -2.25e+173: tmp = t_0 elif x1 <= -1.3e+80: tmp = x2 * ((x1 * x1) * (x1 * (24.0 + (x2 * -8.0)))) elif x1 <= -5.6e-5: tmp = (x2 * (x2 * 8.0)) / x1 elif x1 <= -4.8e-80: tmp = t_0 elif x1 <= 1.45e-51: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) else: tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))) return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) tmp = 0.0 if (x1 <= -2.25e+173) tmp = t_0; elseif (x1 <= -1.3e+80) tmp = Float64(x2 * Float64(Float64(x1 * x1) * Float64(x1 * Float64(24.0 + Float64(x2 * -8.0))))); elseif (x1 <= -5.6e-5) tmp = Float64(Float64(x2 * Float64(x2 * 8.0)) / x1); elseif (x1 <= -4.8e-80) tmp = t_0; elseif (x1 <= 1.45e-51) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); else tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * Float64(x1 + 9.0)))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * (-1.0 + (x1 * 9.0)); tmp = 0.0; if (x1 <= -2.25e+173) tmp = t_0; elseif (x1 <= -1.3e+80) tmp = x2 * ((x1 * x1) * (x1 * (24.0 + (x2 * -8.0)))); elseif (x1 <= -5.6e-5) tmp = (x2 * (x2 * 8.0)) / x1; elseif (x1 <= -4.8e-80) tmp = t_0; elseif (x1 <= 1.45e-51) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); else tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2.25e+173], t$95$0, If[LessEqual[x1, -1.3e+80], N[(x2 * N[(N[(x1 * x1), $MachinePrecision] * N[(x1 * N[(24.0 + N[(x2 * -8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -5.6e-5], N[(N[(x2 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision] / x1), $MachinePrecision], If[LessEqual[x1, -4.8e-80], t$95$0, If[LessEqual[x1, 1.45e-51], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(-1.0 + N[(x1 * N[(x1 + 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{if}\;x1 \leq -2.25 \cdot 10^{+173}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq -1.3 \cdot 10^{+80}:\\
\;\;\;\;x2 \cdot \left(\left(x1 \cdot x1\right) \cdot \left(x1 \cdot \left(24 + x2 \cdot -8\right)\right)\right)\\
\mathbf{elif}\;x1 \leq -5.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{x2 \cdot \left(x2 \cdot 8\right)}{x1}\\
\mathbf{elif}\;x1 \leq -4.8 \cdot 10^{-80}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 1.45 \cdot 10^{-51}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot \left(x1 + 9\right)\right)\\
\end{array}
\end{array}
if x1 < -2.2500000000000001e173 or -5.59999999999999992e-5 < x1 < -4.7999999999999998e-80Initial program 27.2%
Simplified27.1%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6426.2%
Simplified26.2%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified21.3%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6494.0%
Simplified94.0%
if -2.2500000000000001e173 < x1 < -1.29999999999999991e80Initial program 35.7%
Taylor expanded in x2 around -inf
Simplified29.7%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified33.3%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified58.2%
Taylor expanded in x1 around inf
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6465.4%
Simplified65.4%
if -1.29999999999999991e80 < x1 < -5.59999999999999992e-5Initial program 99.4%
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-*.f6430.7%
Simplified30.7%
Taylor expanded in x1 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6437.2%
Simplified37.2%
if -4.7999999999999998e-80 < x1 < 1.44999999999999986e-51Initial program 99.5%
Taylor expanded in x2 around -inf
Simplified55.4%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified54.6%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified81.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6481.7%
Simplified81.7%
if 1.44999999999999986e-51 < x1 Initial program 54.3%
Simplified54.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6434.5%
Simplified34.5%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified71.3%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6471.4%
Simplified71.4%
Final simplification76.4%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (+ (* x2 -6.0) (* x1 (+ -1.0 (* 8.0 (* x2 x2)))))))
(if (<= x1 -2.7e+99)
(+ x1 (+ (* x2 -6.0) (* (+ (* x1 x1) 1.0) (* x1 -3.0))))
(if (<= x1 -2.3e-147)
t_0
(if (<= x1 2.2e-248)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(if (<= x1 2.6e+97) t_0 (* x1 (* x1 x1))))))))
double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
double tmp;
if (x1 <= -2.7e+99) {
tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * (x1 * -3.0)));
} else if (x1 <= -2.3e-147) {
tmp = t_0;
} else if (x1 <= 2.2e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 2.6e+97) {
tmp = t_0;
} else {
tmp = x1 * (x1 * x1);
}
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 * (-6.0d0)) + (x1 * ((-1.0d0) + (8.0d0 * (x2 * x2))))
if (x1 <= (-2.7d+99)) then
tmp = x1 + ((x2 * (-6.0d0)) + (((x1 * x1) + 1.0d0) * (x1 * (-3.0d0))))
else if (x1 <= (-2.3d-147)) then
tmp = t_0
else if (x1 <= 2.2d-248) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else if (x1 <= 2.6d+97) then
tmp = t_0
else
tmp = x1 * (x1 * x1)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2))));
double tmp;
if (x1 <= -2.7e+99) {
tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * (x1 * -3.0)));
} else if (x1 <= -2.3e-147) {
tmp = t_0;
} else if (x1 <= 2.2e-248) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else if (x1 <= 2.6e+97) {
tmp = t_0;
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
def code(x1, x2): t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))) tmp = 0 if x1 <= -2.7e+99: tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * (x1 * -3.0))) elif x1 <= -2.3e-147: tmp = t_0 elif x1 <= 2.2e-248: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) elif x1 <= 2.6e+97: tmp = t_0 else: tmp = x1 * (x1 * x1) return tmp
function code(x1, x2) t_0 = Float64(Float64(x2 * -6.0) + Float64(x1 * Float64(-1.0 + Float64(8.0 * Float64(x2 * x2))))) tmp = 0.0 if (x1 <= -2.7e+99) tmp = Float64(x1 + Float64(Float64(x2 * -6.0) + Float64(Float64(Float64(x1 * x1) + 1.0) * Float64(x1 * -3.0)))); elseif (x1 <= -2.3e-147) tmp = t_0; elseif (x1 <= 2.2e-248) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); elseif (x1 <= 2.6e+97) tmp = t_0; else tmp = Float64(x1 * Float64(x1 * x1)); end return tmp end
function tmp_2 = code(x1, x2) t_0 = (x2 * -6.0) + (x1 * (-1.0 + (8.0 * (x2 * x2)))); tmp = 0.0; if (x1 <= -2.7e+99) tmp = x1 + ((x2 * -6.0) + (((x1 * x1) + 1.0) * (x1 * -3.0))); elseif (x1 <= -2.3e-147) tmp = t_0; elseif (x1 <= 2.2e-248) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); elseif (x1 <= 2.6e+97) tmp = t_0; else tmp = x1 * (x1 * x1); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * N[(-1.0 + N[(8.0 * N[(x2 * x2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -2.7e+99], N[(x1 + N[(N[(x2 * -6.0), $MachinePrecision] + N[(N[(N[(x1 * x1), $MachinePrecision] + 1.0), $MachinePrecision] * N[(x1 * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -2.3e-147], t$95$0, If[LessEqual[x1, 2.2e-248], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 2.6e+97], t$95$0, N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x2 \cdot -6 + x1 \cdot \left(-1 + 8 \cdot \left(x2 \cdot x2\right)\right)\\
\mathbf{if}\;x1 \leq -2.7 \cdot 10^{+99}:\\
\;\;\;\;x1 + \left(x2 \cdot -6 + \left(x1 \cdot x1 + 1\right) \cdot \left(x1 \cdot -3\right)\right)\\
\mathbf{elif}\;x1 \leq -2.3 \cdot 10^{-147}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 2.2 \cdot 10^{-248}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{elif}\;x1 \leq 2.6 \cdot 10^{+97}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot x1\right)\\
\end{array}
\end{array}
if x1 < -2.69999999999999989e99Initial program 0.0%
Simplified23.4%
Taylor expanded in x1 around inf
*-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-/.f6423.4%
Simplified23.4%
Taylor expanded in x1 around 0
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x1 around 0
*-lowering-*.f64100.0%
Simplified100.0%
if -2.69999999999999989e99 < x1 < -2.2999999999999999e-147 or 2.19999999999999999e-248 < x1 < 2.6e97Initial program 99.3%
Simplified96.8%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6471.0%
Simplified71.0%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
if -2.2999999999999999e-147 < x1 < 2.19999999999999999e-248Initial program 99.6%
Taylor expanded in x2 around -inf
Simplified48.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified52.9%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified92.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
if 2.6e97 < x1 Initial program 27.7%
Simplified27.7%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6423.4%
Simplified23.4%
Taylor expanded in x1 around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6496.3%
Simplified96.3%
Final simplification82.7%
(FPCore (x1 x2)
:precision binary64
(let* ((t_0 (* x1 (+ -1.0 (* x1 9.0)))))
(if (<= x1 -1.95e+158)
t_0
(if (<= x1 -1.38e-5)
(* (* x2 x2) (* x1 (+ 8.0 (* (* x1 x1) -8.0))))
(if (<= x1 -9.8e-88)
t_0
(if (<= x1 3.8e-51)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(* x1 (+ -1.0 (* x1 (+ x1 9.0))))))))))
double code(double x1, double x2) {
double t_0 = x1 * (-1.0 + (x1 * 9.0));
double tmp;
if (x1 <= -1.95e+158) {
tmp = t_0;
} else if (x1 <= -1.38e-5) {
tmp = (x2 * x2) * (x1 * (8.0 + ((x1 * x1) * -8.0)));
} else if (x1 <= -9.8e-88) {
tmp = t_0;
} else if (x1 <= 3.8e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (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 = x1 * ((-1.0d0) + (x1 * 9.0d0))
if (x1 <= (-1.95d+158)) then
tmp = t_0
else if (x1 <= (-1.38d-5)) then
tmp = (x2 * x2) * (x1 * (8.0d0 + ((x1 * x1) * (-8.0d0))))
else if (x1 <= (-9.8d-88)) then
tmp = t_0
else if (x1 <= 3.8d-51) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else
tmp = x1 * ((-1.0d0) + (x1 * (x1 + 9.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double t_0 = x1 * (-1.0 + (x1 * 9.0));
double tmp;
if (x1 <= -1.95e+158) {
tmp = t_0;
} else if (x1 <= -1.38e-5) {
tmp = (x2 * x2) * (x1 * (8.0 + ((x1 * x1) * -8.0)));
} else if (x1 <= -9.8e-88) {
tmp = t_0;
} else if (x1 <= 3.8e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.0)));
}
return tmp;
}
def code(x1, x2): t_0 = x1 * (-1.0 + (x1 * 9.0)) tmp = 0 if x1 <= -1.95e+158: tmp = t_0 elif x1 <= -1.38e-5: tmp = (x2 * x2) * (x1 * (8.0 + ((x1 * x1) * -8.0))) elif x1 <= -9.8e-88: tmp = t_0 elif x1 <= 3.8e-51: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) else: tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))) return tmp
function code(x1, x2) t_0 = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))) tmp = 0.0 if (x1 <= -1.95e+158) tmp = t_0; elseif (x1 <= -1.38e-5) tmp = Float64(Float64(x2 * x2) * Float64(x1 * Float64(8.0 + Float64(Float64(x1 * x1) * -8.0)))); elseif (x1 <= -9.8e-88) tmp = t_0; elseif (x1 <= 3.8e-51) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); else tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * Float64(x1 + 9.0)))); end return tmp end
function tmp_2 = code(x1, x2) t_0 = x1 * (-1.0 + (x1 * 9.0)); tmp = 0.0; if (x1 <= -1.95e+158) tmp = t_0; elseif (x1 <= -1.38e-5) tmp = (x2 * x2) * (x1 * (8.0 + ((x1 * x1) * -8.0))); elseif (x1 <= -9.8e-88) tmp = t_0; elseif (x1 <= 3.8e-51) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); else tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))); end tmp_2 = tmp; end
code[x1_, x2_] := Block[{t$95$0 = N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x1, -1.95e+158], t$95$0, If[LessEqual[x1, -1.38e-5], N[(N[(x2 * x2), $MachinePrecision] * N[(x1 * N[(8.0 + N[(N[(x1 * x1), $MachinePrecision] * -8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -9.8e-88], t$95$0, If[LessEqual[x1, 3.8e-51], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(-1.0 + N[(x1 * N[(x1 + 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{if}\;x1 \leq -1.95 \cdot 10^{+158}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq -1.38 \cdot 10^{-5}:\\
\;\;\;\;\left(x2 \cdot x2\right) \cdot \left(x1 \cdot \left(8 + \left(x1 \cdot x1\right) \cdot -8\right)\right)\\
\mathbf{elif}\;x1 \leq -9.8 \cdot 10^{-88}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x1 \leq 3.8 \cdot 10^{-51}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot \left(x1 + 9\right)\right)\\
\end{array}
\end{array}
if x1 < -1.95e158 or -1.38e-5 < x1 < -9.80000000000000055e-88Initial program 24.2%
Simplified24.1%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6423.3%
Simplified23.3%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified18.9%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6494.7%
Simplified94.7%
if -1.95e158 < x1 < -1.38e-5Initial program 64.6%
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-*.f6417.4%
Simplified17.4%
Taylor expanded in x1 around 0
+-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6442.8%
Simplified42.8%
if -9.80000000000000055e-88 < x1 < 3.80000000000000003e-51Initial program 99.5%
Taylor expanded in x2 around -inf
Simplified55.4%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified54.6%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified81.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6481.7%
Simplified81.7%
if 3.80000000000000003e-51 < x1 Initial program 54.3%
Simplified54.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6434.5%
Simplified34.5%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified71.3%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6471.4%
Simplified71.4%
Final simplification75.3%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2.75e+17)
(* 8.0 (* x2 (* x1 x1)))
(if (<= x1 -1.5e-120)
(- 0.0 x1)
(if (<= x1 1.05e-71)
(* x2 -6.0)
(if (<= x1 2.6e+97) (* x1 (* x2 (* x2 8.0))) (* x1 (* x1 x1)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2.75e+17) {
tmp = 8.0 * (x2 * (x1 * x1));
} else if (x1 <= -1.5e-120) {
tmp = 0.0 - x1;
} else if (x1 <= 1.05e-71) {
tmp = x2 * -6.0;
} else if (x1 <= 2.6e+97) {
tmp = x1 * (x2 * (x2 * 8.0));
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-2.75d+17)) then
tmp = 8.0d0 * (x2 * (x1 * x1))
else if (x1 <= (-1.5d-120)) then
tmp = 0.0d0 - x1
else if (x1 <= 1.05d-71) then
tmp = x2 * (-6.0d0)
else if (x1 <= 2.6d+97) then
tmp = x1 * (x2 * (x2 * 8.0d0))
else
tmp = x1 * (x1 * x1)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2.75e+17) {
tmp = 8.0 * (x2 * (x1 * x1));
} else if (x1 <= -1.5e-120) {
tmp = 0.0 - x1;
} else if (x1 <= 1.05e-71) {
tmp = x2 * -6.0;
} else if (x1 <= 2.6e+97) {
tmp = x1 * (x2 * (x2 * 8.0));
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2.75e+17: tmp = 8.0 * (x2 * (x1 * x1)) elif x1 <= -1.5e-120: tmp = 0.0 - x1 elif x1 <= 1.05e-71: tmp = x2 * -6.0 elif x1 <= 2.6e+97: tmp = x1 * (x2 * (x2 * 8.0)) else: tmp = x1 * (x1 * x1) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2.75e+17) tmp = Float64(8.0 * Float64(x2 * Float64(x1 * x1))); elseif (x1 <= -1.5e-120) tmp = Float64(0.0 - x1); elseif (x1 <= 1.05e-71) tmp = Float64(x2 * -6.0); elseif (x1 <= 2.6e+97) tmp = Float64(x1 * Float64(x2 * Float64(x2 * 8.0))); else tmp = Float64(x1 * Float64(x1 * x1)); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2.75e+17) tmp = 8.0 * (x2 * (x1 * x1)); elseif (x1 <= -1.5e-120) tmp = 0.0 - x1; elseif (x1 <= 1.05e-71) tmp = x2 * -6.0; elseif (x1 <= 2.6e+97) tmp = x1 * (x2 * (x2 * 8.0)); else tmp = x1 * (x1 * x1); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2.75e+17], N[(8.0 * N[(x2 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -1.5e-120], N[(0.0 - x1), $MachinePrecision], If[LessEqual[x1, 1.05e-71], N[(x2 * -6.0), $MachinePrecision], If[LessEqual[x1, 2.6e+97], N[(x1 * N[(x2 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2.75 \cdot 10^{+17}:\\
\;\;\;\;8 \cdot \left(x2 \cdot \left(x1 \cdot x1\right)\right)\\
\mathbf{elif}\;x1 \leq -1.5 \cdot 10^{-120}:\\
\;\;\;\;0 - x1\\
\mathbf{elif}\;x1 \leq 1.05 \cdot 10^{-71}:\\
\;\;\;\;x2 \cdot -6\\
\mathbf{elif}\;x1 \leq 2.6 \cdot 10^{+97}:\\
\;\;\;\;x1 \cdot \left(x2 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot x1\right)\\
\end{array}
\end{array}
if x1 < -2.75e17Initial program 29.8%
Taylor expanded in x2 around -inf
Simplified18.7%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6434.1%
Simplified34.1%
if -2.75e17 < x1 < -1.50000000000000005e-120Initial program 98.9%
Simplified98.7%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6481.8%
Simplified81.8%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified48.4%
Taylor expanded in x1 around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6448.0%
Simplified48.0%
if -1.50000000000000005e-120 < x1 < 1.0500000000000001e-71Initial program 99.5%
Taylor expanded in x1 around 0
*-commutativeN/A
*-lowering-*.f6462.0%
Simplified62.0%
if 1.0500000000000001e-71 < x1 < 2.6e97Initial program 99.1%
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-*.f6436.9%
Simplified36.9%
Taylor expanded in x1 around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.5%
Simplified31.5%
if 2.6e97 < x1 Initial program 27.7%
Simplified27.7%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6423.4%
Simplified23.4%
Taylor expanded in x1 around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6496.3%
Simplified96.3%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2e+154)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 -1.55e-80)
(* (* x1 (* x1 x1)) (/ -1.0 (* x1 x1)))
(if (<= x1 5.5e-51)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(* x1 (+ -1.0 (* x1 (+ x1 9.0))))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2e+154) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -1.55e-80) {
tmp = (x1 * (x1 * x1)) * (-1.0 / (x1 * x1));
} else if (x1 <= 5.5e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.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+154)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= (-1.55d-80)) then
tmp = (x1 * (x1 * x1)) * ((-1.0d0) / (x1 * x1))
else if (x1 <= 5.5d-51) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else
tmp = x1 * ((-1.0d0) + (x1 * (x1 + 9.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2e+154) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= -1.55e-80) {
tmp = (x1 * (x1 * x1)) * (-1.0 / (x1 * x1));
} else if (x1 <= 5.5e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2e+154: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= -1.55e-80: tmp = (x1 * (x1 * x1)) * (-1.0 / (x1 * x1)) elif x1 <= 5.5e-51: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) else: tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2e+154) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= -1.55e-80) tmp = Float64(Float64(x1 * Float64(x1 * x1)) * Float64(-1.0 / Float64(x1 * x1))); elseif (x1 <= 5.5e-51) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); else tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * Float64(x1 + 9.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2e+154) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= -1.55e-80) tmp = (x1 * (x1 * x1)) * (-1.0 / (x1 * x1)); elseif (x1 <= 5.5e-51) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); else tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2e+154], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -1.55e-80], N[(N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision] * N[(-1.0 / N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 5.5e-51], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(-1.0 + N[(x1 * N[(x1 + 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2 \cdot 10^{+154}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq -1.55 \cdot 10^{-80}:\\
\;\;\;\;\left(x1 \cdot \left(x1 \cdot x1\right)\right) \cdot \frac{-1}{x1 \cdot x1}\\
\mathbf{elif}\;x1 \leq 5.5 \cdot 10^{-51}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot \left(x1 + 9\right)\right)\\
\end{array}
\end{array}
if x1 < -2.00000000000000007e154Initial program 0.0%
Simplified0.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f640.0%
Simplified0.0%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified0.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
if -2.00000000000000007e154 < x1 < -1.55000000000000008e-80Initial program 75.7%
Simplified93.0%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6440.7%
Simplified40.7%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified19.7%
Taylor expanded in x1 around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6442.7%
Simplified42.7%
if -1.55000000000000008e-80 < x1 < 5.4999999999999997e-51Initial program 99.5%
Taylor expanded in x2 around -inf
Simplified55.4%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified54.6%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified81.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6481.7%
Simplified81.7%
if 5.4999999999999997e-51 < x1 Initial program 54.3%
Simplified54.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6434.5%
Simplified34.5%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified71.3%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6471.4%
Simplified71.4%
Final simplification74.2%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -1.7e+18)
(* 8.0 (* x2 (* x1 x1)))
(if (<= x1 -3.7e-119)
(- 0.0 x1)
(if (<= x1 3.8e-81)
(* x2 -6.0)
(if (<= x1 0.185) (- 0.0 x1) (* x1 (* x1 x1)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -1.7e+18) {
tmp = 8.0 * (x2 * (x1 * x1));
} else if (x1 <= -3.7e-119) {
tmp = 0.0 - x1;
} else if (x1 <= 3.8e-81) {
tmp = x2 * -6.0;
} else if (x1 <= 0.185) {
tmp = 0.0 - x1;
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-1.7d+18)) then
tmp = 8.0d0 * (x2 * (x1 * x1))
else if (x1 <= (-3.7d-119)) then
tmp = 0.0d0 - x1
else if (x1 <= 3.8d-81) then
tmp = x2 * (-6.0d0)
else if (x1 <= 0.185d0) then
tmp = 0.0d0 - x1
else
tmp = x1 * (x1 * x1)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -1.7e+18) {
tmp = 8.0 * (x2 * (x1 * x1));
} else if (x1 <= -3.7e-119) {
tmp = 0.0 - x1;
} else if (x1 <= 3.8e-81) {
tmp = x2 * -6.0;
} else if (x1 <= 0.185) {
tmp = 0.0 - x1;
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -1.7e+18: tmp = 8.0 * (x2 * (x1 * x1)) elif x1 <= -3.7e-119: tmp = 0.0 - x1 elif x1 <= 3.8e-81: tmp = x2 * -6.0 elif x1 <= 0.185: tmp = 0.0 - x1 else: tmp = x1 * (x1 * x1) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -1.7e+18) tmp = Float64(8.0 * Float64(x2 * Float64(x1 * x1))); elseif (x1 <= -3.7e-119) tmp = Float64(0.0 - x1); elseif (x1 <= 3.8e-81) tmp = Float64(x2 * -6.0); elseif (x1 <= 0.185) tmp = Float64(0.0 - x1); else tmp = Float64(x1 * Float64(x1 * x1)); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -1.7e+18) tmp = 8.0 * (x2 * (x1 * x1)); elseif (x1 <= -3.7e-119) tmp = 0.0 - x1; elseif (x1 <= 3.8e-81) tmp = x2 * -6.0; elseif (x1 <= 0.185) tmp = 0.0 - x1; else tmp = x1 * (x1 * x1); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -1.7e+18], N[(8.0 * N[(x2 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, -3.7e-119], N[(0.0 - x1), $MachinePrecision], If[LessEqual[x1, 3.8e-81], N[(x2 * -6.0), $MachinePrecision], If[LessEqual[x1, 0.185], N[(0.0 - x1), $MachinePrecision], N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -1.7 \cdot 10^{+18}:\\
\;\;\;\;8 \cdot \left(x2 \cdot \left(x1 \cdot x1\right)\right)\\
\mathbf{elif}\;x1 \leq -3.7 \cdot 10^{-119}:\\
\;\;\;\;0 - x1\\
\mathbf{elif}\;x1 \leq 3.8 \cdot 10^{-81}:\\
\;\;\;\;x2 \cdot -6\\
\mathbf{elif}\;x1 \leq 0.185:\\
\;\;\;\;0 - x1\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot x1\right)\\
\end{array}
\end{array}
if x1 < -1.7e18Initial program 29.8%
Taylor expanded in x2 around -inf
Simplified18.7%
Taylor expanded in x1 around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6434.1%
Simplified34.1%
if -1.7e18 < x1 < -3.7000000000000001e-119 or 3.7999999999999999e-81 < x1 < 0.185Initial program 98.9%
Simplified98.8%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6487.3%
Simplified87.3%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified50.5%
Taylor expanded in x1 around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6449.9%
Simplified49.9%
if -3.7000000000000001e-119 < x1 < 3.7999999999999999e-81Initial program 99.5%
Taylor expanded in x1 around 0
*-commutativeN/A
*-lowering-*.f6463.0%
Simplified63.0%
if 0.185 < x1 Initial program 47.4%
Simplified47.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
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6424.6%
Simplified24.6%
Taylor expanded in x1 around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6471.6%
Simplified71.6%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2.35e-95)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 5e-75)
(+ (* x2 -6.0) (* x1 -2.0))
(if (<= x1 2.6e+97) (* x1 (* x2 (* x2 8.0))) (* x1 (* x1 x1))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2.35e-95) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 5e-75) {
tmp = (x2 * -6.0) + (x1 * -2.0);
} else if (x1 <= 2.6e+97) {
tmp = x1 * (x2 * (x2 * 8.0));
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-2.35d-95)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= 5d-75) then
tmp = (x2 * (-6.0d0)) + (x1 * (-2.0d0))
else if (x1 <= 2.6d+97) then
tmp = x1 * (x2 * (x2 * 8.0d0))
else
tmp = x1 * (x1 * x1)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2.35e-95) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 5e-75) {
tmp = (x2 * -6.0) + (x1 * -2.0);
} else if (x1 <= 2.6e+97) {
tmp = x1 * (x2 * (x2 * 8.0));
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2.35e-95: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= 5e-75: tmp = (x2 * -6.0) + (x1 * -2.0) elif x1 <= 2.6e+97: tmp = x1 * (x2 * (x2 * 8.0)) else: tmp = x1 * (x1 * x1) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2.35e-95) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= 5e-75) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * -2.0)); elseif (x1 <= 2.6e+97) tmp = Float64(x1 * Float64(x2 * Float64(x2 * 8.0))); else tmp = Float64(x1 * Float64(x1 * x1)); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2.35e-95) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= 5e-75) tmp = (x2 * -6.0) + (x1 * -2.0); elseif (x1 <= 2.6e+97) tmp = x1 * (x2 * (x2 * 8.0)); else tmp = x1 * (x1 * x1); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2.35e-95], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 5e-75], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * -2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 2.6e+97], N[(x1 * N[(x2 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2.35 \cdot 10^{-95}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq 5 \cdot 10^{-75}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot -2\\
\mathbf{elif}\;x1 \leq 2.6 \cdot 10^{+97}:\\
\;\;\;\;x1 \cdot \left(x2 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot x1\right)\\
\end{array}
\end{array}
if x1 < -2.3499999999999999e-95Initial program 42.4%
Simplified52.2%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6422.8%
Simplified22.8%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified11.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6456.8%
Simplified56.8%
if -2.3499999999999999e-95 < x1 < 4.99999999999999979e-75Initial program 99.4%
Simplified99.4%
Taylor expanded in x1 around inf
*-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-/.f6471.5%
Simplified71.5%
Taylor expanded in x1 around 0
*-lowering-*.f6461.6%
Simplified61.6%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6463.0%
Simplified63.0%
if 4.99999999999999979e-75 < x1 < 2.6e97Initial program 99.1%
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-*.f6436.9%
Simplified36.9%
Taylor expanded in x1 around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.5%
Simplified31.5%
if 2.6e97 < x1 Initial program 27.7%
Simplified27.7%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6423.4%
Simplified23.4%
Taylor expanded in x1 around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6496.3%
Simplified96.3%
Final simplification63.2%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -9.5e-116)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 7e-75)
(* x2 -6.0)
(if (<= x1 1.7e+97) (* x1 (* x2 (* x2 8.0))) (* x1 (* x1 x1))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -9.5e-116) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 7e-75) {
tmp = x2 * -6.0;
} else if (x1 <= 1.7e+97) {
tmp = x1 * (x2 * (x2 * 8.0));
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-9.5d-116)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= 7d-75) then
tmp = x2 * (-6.0d0)
else if (x1 <= 1.7d+97) then
tmp = x1 * (x2 * (x2 * 8.0d0))
else
tmp = x1 * (x1 * x1)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -9.5e-116) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 7e-75) {
tmp = x2 * -6.0;
} else if (x1 <= 1.7e+97) {
tmp = x1 * (x2 * (x2 * 8.0));
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -9.5e-116: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= 7e-75: tmp = x2 * -6.0 elif x1 <= 1.7e+97: tmp = x1 * (x2 * (x2 * 8.0)) else: tmp = x1 * (x1 * x1) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -9.5e-116) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= 7e-75) tmp = Float64(x2 * -6.0); elseif (x1 <= 1.7e+97) tmp = Float64(x1 * Float64(x2 * Float64(x2 * 8.0))); else tmp = Float64(x1 * Float64(x1 * x1)); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -9.5e-116) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= 7e-75) tmp = x2 * -6.0; elseif (x1 <= 1.7e+97) tmp = x1 * (x2 * (x2 * 8.0)); else tmp = x1 * (x1 * x1); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -9.5e-116], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 7e-75], N[(x2 * -6.0), $MachinePrecision], If[LessEqual[x1, 1.7e+97], N[(x1 * N[(x2 * N[(x2 * 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -9.5 \cdot 10^{-116}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq 7 \cdot 10^{-75}:\\
\;\;\;\;x2 \cdot -6\\
\mathbf{elif}\;x1 \leq 1.7 \cdot 10^{+97}:\\
\;\;\;\;x1 \cdot \left(x2 \cdot \left(x2 \cdot 8\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot x1\right)\\
\end{array}
\end{array}
if x1 < -9.4999999999999998e-116Initial program 45.1%
Simplified54.4%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6426.3%
Simplified26.3%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified11.2%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6455.4%
Simplified55.4%
if -9.4999999999999998e-116 < x1 < 6.9999999999999997e-75Initial program 99.5%
Taylor expanded in x1 around 0
*-commutativeN/A
*-lowering-*.f6462.0%
Simplified62.0%
if 6.9999999999999997e-75 < x1 < 1.70000000000000005e97Initial program 99.1%
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-*.f6436.9%
Simplified36.9%
Taylor expanded in x1 around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.5%
Simplified31.5%
if 1.70000000000000005e97 < x1 Initial program 27.7%
Simplified27.7%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6423.4%
Simplified23.4%
Taylor expanded in x1 around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6496.3%
Simplified96.3%
Final simplification62.3%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -4.5e-80)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 2.35e-51)
(* x2 (+ -6.0 (* x1 (+ (* x2 8.0) -12.0))))
(* x1 (+ -1.0 (* x1 (+ x1 9.0)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -4.5e-80) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 2.35e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.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.5d-80)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= 2.35d-51) then
tmp = x2 * ((-6.0d0) + (x1 * ((x2 * 8.0d0) + (-12.0d0))))
else
tmp = x1 * ((-1.0d0) + (x1 * (x1 + 9.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -4.5e-80) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 2.35e-51) {
tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0)));
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -4.5e-80: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= 2.35e-51: tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))) else: tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -4.5e-80) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= 2.35e-51) tmp = Float64(x2 * Float64(-6.0 + Float64(x1 * Float64(Float64(x2 * 8.0) + -12.0)))); else tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * Float64(x1 + 9.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -4.5e-80) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= 2.35e-51) tmp = x2 * (-6.0 + (x1 * ((x2 * 8.0) + -12.0))); else tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -4.5e-80], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 2.35e-51], N[(x2 * N[(-6.0 + N[(x1 * N[(N[(x2 * 8.0), $MachinePrecision] + -12.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(-1.0 + N[(x1 * N[(x1 + 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -4.5 \cdot 10^{-80}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq 2.35 \cdot 10^{-51}:\\
\;\;\;\;x2 \cdot \left(-6 + x1 \cdot \left(x2 \cdot 8 + -12\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot \left(x1 + 9\right)\right)\\
\end{array}
\end{array}
if x1 < -4.5000000000000003e-80Initial program 42.4%
Simplified52.2%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6422.8%
Simplified22.8%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified11.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6456.8%
Simplified56.8%
if -4.5000000000000003e-80 < x1 < 2.3499999999999999e-51Initial program 99.5%
Taylor expanded in x2 around -inf
Simplified55.4%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified54.6%
Taylor expanded in x2 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
Simplified81.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6481.7%
Simplified81.7%
if 2.3499999999999999e-51 < x1 Initial program 54.3%
Simplified54.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6434.5%
Simplified34.5%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified71.3%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6471.4%
Simplified71.4%
Final simplification70.7%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -4.3e-117)
(- 0.0 x1)
(if (<= x1 3.7e-81)
(* x2 -6.0)
(if (<= x1 0.185) (- 0.0 x1) (* x1 (* x1 x1))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -4.3e-117) {
tmp = 0.0 - x1;
} else if (x1 <= 3.7e-81) {
tmp = x2 * -6.0;
} else if (x1 <= 0.185) {
tmp = 0.0 - x1;
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x1 <= (-4.3d-117)) then
tmp = 0.0d0 - x1
else if (x1 <= 3.7d-81) then
tmp = x2 * (-6.0d0)
else if (x1 <= 0.185d0) then
tmp = 0.0d0 - x1
else
tmp = x1 * (x1 * x1)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -4.3e-117) {
tmp = 0.0 - x1;
} else if (x1 <= 3.7e-81) {
tmp = x2 * -6.0;
} else if (x1 <= 0.185) {
tmp = 0.0 - x1;
} else {
tmp = x1 * (x1 * x1);
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -4.3e-117: tmp = 0.0 - x1 elif x1 <= 3.7e-81: tmp = x2 * -6.0 elif x1 <= 0.185: tmp = 0.0 - x1 else: tmp = x1 * (x1 * x1) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -4.3e-117) tmp = Float64(0.0 - x1); elseif (x1 <= 3.7e-81) tmp = Float64(x2 * -6.0); elseif (x1 <= 0.185) tmp = Float64(0.0 - x1); else tmp = Float64(x1 * Float64(x1 * x1)); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -4.3e-117) tmp = 0.0 - x1; elseif (x1 <= 3.7e-81) tmp = x2 * -6.0; elseif (x1 <= 0.185) tmp = 0.0 - x1; else tmp = x1 * (x1 * x1); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -4.3e-117], N[(0.0 - x1), $MachinePrecision], If[LessEqual[x1, 3.7e-81], N[(x2 * -6.0), $MachinePrecision], If[LessEqual[x1, 0.185], N[(0.0 - x1), $MachinePrecision], N[(x1 * N[(x1 * x1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -4.3 \cdot 10^{-117}:\\
\;\;\;\;0 - x1\\
\mathbf{elif}\;x1 \leq 3.7 \cdot 10^{-81}:\\
\;\;\;\;x2 \cdot -6\\
\mathbf{elif}\;x1 \leq 0.185:\\
\;\;\;\;0 - x1\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(x1 \cdot x1\right)\\
\end{array}
\end{array}
if x1 < -4.3e-117 or 3.69999999999999986e-81 < x1 < 0.185Initial program 54.0%
Simplified61.7%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6437.4%
Simplified37.4%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified18.1%
Taylor expanded in x1 around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6420.9%
Simplified20.9%
if -4.3e-117 < x1 < 3.69999999999999986e-81Initial program 99.5%
Taylor expanded in x1 around 0
*-commutativeN/A
*-lowering-*.f6463.0%
Simplified63.0%
if 0.185 < x1 Initial program 47.4%
Simplified47.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
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6424.6%
Simplified24.6%
Taylor expanded in x1 around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6471.6%
Simplified71.6%
(FPCore (x1 x2)
:precision binary64
(if (<= x1 -2e-91)
(* x1 (+ -1.0 (* x1 9.0)))
(if (<= x1 3.7e-81)
(+ (* x2 -6.0) (* x1 -2.0))
(* x1 (+ -1.0 (* x1 (+ x1 9.0)))))))
double code(double x1, double x2) {
double tmp;
if (x1 <= -2e-91) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 3.7e-81) {
tmp = (x2 * -6.0) + (x1 * -2.0);
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.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-91)) then
tmp = x1 * ((-1.0d0) + (x1 * 9.0d0))
else if (x1 <= 3.7d-81) then
tmp = (x2 * (-6.0d0)) + (x1 * (-2.0d0))
else
tmp = x1 * ((-1.0d0) + (x1 * (x1 + 9.0d0)))
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x1 <= -2e-91) {
tmp = x1 * (-1.0 + (x1 * 9.0));
} else if (x1 <= 3.7e-81) {
tmp = (x2 * -6.0) + (x1 * -2.0);
} else {
tmp = x1 * (-1.0 + (x1 * (x1 + 9.0)));
}
return tmp;
}
def code(x1, x2): tmp = 0 if x1 <= -2e-91: tmp = x1 * (-1.0 + (x1 * 9.0)) elif x1 <= 3.7e-81: tmp = (x2 * -6.0) + (x1 * -2.0) else: tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))) return tmp
function code(x1, x2) tmp = 0.0 if (x1 <= -2e-91) tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * 9.0))); elseif (x1 <= 3.7e-81) tmp = Float64(Float64(x2 * -6.0) + Float64(x1 * -2.0)); else tmp = Float64(x1 * Float64(-1.0 + Float64(x1 * Float64(x1 + 9.0)))); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x1 <= -2e-91) tmp = x1 * (-1.0 + (x1 * 9.0)); elseif (x1 <= 3.7e-81) tmp = (x2 * -6.0) + (x1 * -2.0); else tmp = x1 * (-1.0 + (x1 * (x1 + 9.0))); end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x1, -2e-91], N[(x1 * N[(-1.0 + N[(x1 * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x1, 3.7e-81], N[(N[(x2 * -6.0), $MachinePrecision] + N[(x1 * -2.0), $MachinePrecision]), $MachinePrecision], N[(x1 * N[(-1.0 + N[(x1 * N[(x1 + 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x1 \leq -2 \cdot 10^{-91}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot 9\right)\\
\mathbf{elif}\;x1 \leq 3.7 \cdot 10^{-81}:\\
\;\;\;\;x2 \cdot -6 + x1 \cdot -2\\
\mathbf{else}:\\
\;\;\;\;x1 \cdot \left(-1 + x1 \cdot \left(x1 + 9\right)\right)\\
\end{array}
\end{array}
if x1 < -2.00000000000000004e-91Initial program 42.4%
Simplified52.2%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6422.8%
Simplified22.8%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified11.0%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6456.8%
Simplified56.8%
if -2.00000000000000004e-91 < x1 < 3.69999999999999986e-81Initial program 99.5%
Simplified99.5%
Taylor expanded in x1 around inf
*-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-/.f6472.4%
Simplified72.4%
Taylor expanded in x1 around 0
*-lowering-*.f6462.1%
Simplified62.1%
Taylor expanded in x1 around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6463.5%
Simplified63.5%
if 3.69999999999999986e-81 < x1 Initial program 58.1%
Simplified58.1%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6438.9%
Simplified38.9%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified67.7%
Taylor expanded in x1 around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6467.8%
Simplified67.8%
Final simplification62.7%
(FPCore (x1 x2) :precision binary64 (if (<= x2 -2.45e-147) (* x2 -6.0) (if (<= x2 1.05e-125) (- 0.0 x1) (* x2 -6.0))))
double code(double x1, double x2) {
double tmp;
if (x2 <= -2.45e-147) {
tmp = x2 * -6.0;
} else if (x2 <= 1.05e-125) {
tmp = 0.0 - x1;
} else {
tmp = x2 * -6.0;
}
return tmp;
}
real(8) function code(x1, x2)
real(8), intent (in) :: x1
real(8), intent (in) :: x2
real(8) :: tmp
if (x2 <= (-2.45d-147)) then
tmp = x2 * (-6.0d0)
else if (x2 <= 1.05d-125) then
tmp = 0.0d0 - x1
else
tmp = x2 * (-6.0d0)
end if
code = tmp
end function
public static double code(double x1, double x2) {
double tmp;
if (x2 <= -2.45e-147) {
tmp = x2 * -6.0;
} else if (x2 <= 1.05e-125) {
tmp = 0.0 - x1;
} else {
tmp = x2 * -6.0;
}
return tmp;
}
def code(x1, x2): tmp = 0 if x2 <= -2.45e-147: tmp = x2 * -6.0 elif x2 <= 1.05e-125: tmp = 0.0 - x1 else: tmp = x2 * -6.0 return tmp
function code(x1, x2) tmp = 0.0 if (x2 <= -2.45e-147) tmp = Float64(x2 * -6.0); elseif (x2 <= 1.05e-125) tmp = Float64(0.0 - x1); else tmp = Float64(x2 * -6.0); end return tmp end
function tmp_2 = code(x1, x2) tmp = 0.0; if (x2 <= -2.45e-147) tmp = x2 * -6.0; elseif (x2 <= 1.05e-125) tmp = 0.0 - x1; else tmp = x2 * -6.0; end tmp_2 = tmp; end
code[x1_, x2_] := If[LessEqual[x2, -2.45e-147], N[(x2 * -6.0), $MachinePrecision], If[LessEqual[x2, 1.05e-125], N[(0.0 - x1), $MachinePrecision], N[(x2 * -6.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x2 \leq -2.45 \cdot 10^{-147}:\\
\;\;\;\;x2 \cdot -6\\
\mathbf{elif}\;x2 \leq 1.05 \cdot 10^{-125}:\\
\;\;\;\;0 - x1\\
\mathbf{else}:\\
\;\;\;\;x2 \cdot -6\\
\end{array}
\end{array}
if x2 < -2.45000000000000002e-147 or 1.05e-125 < x2 Initial program 66.0%
Taylor expanded in x1 around 0
*-commutativeN/A
*-lowering-*.f6427.7%
Simplified27.7%
if -2.45000000000000002e-147 < x2 < 1.05e-125Initial program 72.7%
Simplified75.3%
Taylor expanded in x2 around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6461.9%
Simplified61.9%
Taylor expanded in x1 around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
Simplified35.5%
Taylor expanded in x1 around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6439.8%
Simplified39.8%
(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 68.0%
Taylor expanded in x1 around 0
*-commutativeN/A
*-lowering-*.f6424.2%
Simplified24.2%
(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 68.0%
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-*.f6434.4%
Simplified34.4%
Taylor expanded in x1 around inf
Simplified3.4%
Taylor expanded in x1 around 0
Simplified3.5%
herbie shell --seed 2024164
(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))))))