
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (- (* y z) (* t a))))
(if (<= (+ (+ (* x t_2) (* b (- (* a i) (* z c)))) t_1) INFINITY)
(fma t_2 x (- t_1 (* b (- (* z c) (* a i)))))
(* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = (y * z) - (t * a);
double tmp;
if ((((x * t_2) + (b * ((a * i) - (z * c)))) + t_1) <= ((double) INFINITY)) {
tmp = fma(t_2, x, (t_1 - (b * ((z * c) - (a * i)))));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(Float64(y * z) - Float64(t * a)) tmp = 0.0 if (Float64(Float64(Float64(x * t_2) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + t_1) <= Inf) tmp = fma(t_2, x, Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(a * i))))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(t$95$2 * x + N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := y \cdot z - t \cdot a\\
\mathbf{if}\;\left(x \cdot t_2 + b \cdot \left(a \cdot i - z \cdot c\right)\right) + t_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t_2, x, t_1 - b \cdot \left(z \cdot c - a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.8%
associate-+l-93.8%
*-commutative93.8%
fma-neg93.8%
Applied egg-rr93.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
Final simplification84.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
Final simplification84.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= b -7.6e+112)
(not
(or (<= b 3e+14)
(and (not (<= b 1.42e+50))
(or (<= b 1.65e+106)
(and (not (<= b 2e+207)) (<= b 1.72e+227)))))))
(* b (- (* a i) (* z c)))
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -7.6e+112) || !((b <= 3e+14) || (!(b <= 1.42e+50) && ((b <= 1.65e+106) || (!(b <= 2e+207) && (b <= 1.72e+227)))))) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-7.6d+112)) .or. (.not. (b <= 3d+14) .or. (.not. (b <= 1.42d+50)) .and. (b <= 1.65d+106) .or. (.not. (b <= 2d+207)) .and. (b <= 1.72d+227))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -7.6e+112) || !((b <= 3e+14) || (!(b <= 1.42e+50) && ((b <= 1.65e+106) || (!(b <= 2e+207) && (b <= 1.72e+227)))))) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -7.6e+112) or not ((b <= 3e+14) or (not (b <= 1.42e+50) and ((b <= 1.65e+106) or (not (b <= 2e+207) and (b <= 1.72e+227))))): tmp = b * ((a * i) - (z * c)) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -7.6e+112) || !((b <= 3e+14) || (!(b <= 1.42e+50) && ((b <= 1.65e+106) || (!(b <= 2e+207) && (b <= 1.72e+227)))))) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -7.6e+112) || ~(((b <= 3e+14) || (~((b <= 1.42e+50)) && ((b <= 1.65e+106) || (~((b <= 2e+207)) && (b <= 1.72e+227))))))) tmp = b * ((a * i) - (z * c)); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -7.6e+112], N[Not[Or[LessEqual[b, 3e+14], And[N[Not[LessEqual[b, 1.42e+50]], $MachinePrecision], Or[LessEqual[b, 1.65e+106], And[N[Not[LessEqual[b, 2e+207]], $MachinePrecision], LessEqual[b, 1.72e+227]]]]]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.6 \cdot 10^{+112} \lor \neg \left(b \leq 3 \cdot 10^{+14} \lor \neg \left(b \leq 1.42 \cdot 10^{+50}\right) \land \left(b \leq 1.65 \cdot 10^{+106} \lor \neg \left(b \leq 2 \cdot 10^{+207}\right) \land b \leq 1.72 \cdot 10^{+227}\right)\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -7.60000000000000015e112 or 3e14 < b < 1.41999999999999994e50 or 1.65000000000000004e106 < b < 2.0000000000000001e207 or 1.71999999999999995e227 < b Initial program 74.2%
Taylor expanded in b around inf 82.0%
*-commutative82.0%
Simplified82.0%
if -7.60000000000000015e112 < b < 3e14 or 1.41999999999999994e50 < b < 1.65000000000000004e106 or 2.0000000000000001e207 < b < 1.71999999999999995e227Initial program 73.9%
Taylor expanded in b around 0 73.4%
Final simplification76.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -4.1e+111)
t_3
(if (<= b 2.8e+14)
(+ t_2 t_1)
(if (<= b 2.55e+50)
t_3
(if (<= b 1.55e+87) t_2 (- t_1 (* b (- (* z c) (* a i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.1e+111) {
tmp = t_3;
} else if (b <= 2.8e+14) {
tmp = t_2 + t_1;
} else if (b <= 2.55e+50) {
tmp = t_3;
} else if (b <= 1.55e+87) {
tmp = t_2;
} else {
tmp = t_1 - (b * ((z * c) - (a * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-4.1d+111)) then
tmp = t_3
else if (b <= 2.8d+14) then
tmp = t_2 + t_1
else if (b <= 2.55d+50) then
tmp = t_3
else if (b <= 1.55d+87) then
tmp = t_2
else
tmp = t_1 - (b * ((z * c) - (a * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.1e+111) {
tmp = t_3;
} else if (b <= 2.8e+14) {
tmp = t_2 + t_1;
} else if (b <= 2.55e+50) {
tmp = t_3;
} else if (b <= 1.55e+87) {
tmp = t_2;
} else {
tmp = t_1 - (b * ((z * c) - (a * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -4.1e+111: tmp = t_3 elif b <= 2.8e+14: tmp = t_2 + t_1 elif b <= 2.55e+50: tmp = t_3 elif b <= 1.55e+87: tmp = t_2 else: tmp = t_1 - (b * ((z * c) - (a * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.1e+111) tmp = t_3; elseif (b <= 2.8e+14) tmp = Float64(t_2 + t_1); elseif (b <= 2.55e+50) tmp = t_3; elseif (b <= 1.55e+87) tmp = t_2; else tmp = Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -4.1e+111) tmp = t_3; elseif (b <= 2.8e+14) tmp = t_2 + t_1; elseif (b <= 2.55e+50) tmp = t_3; elseif (b <= 1.55e+87) tmp = t_2; else tmp = t_1 - (b * ((z * c) - (a * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.1e+111], t$95$3, If[LessEqual[b, 2.8e+14], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 2.55e+50], t$95$3, If[LessEqual[b, 1.55e+87], t$95$2, N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.1 \cdot 10^{+111}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+14}:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+87}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1 - b \cdot \left(z \cdot c - a \cdot i\right)\\
\end{array}
\end{array}
if b < -4.09999999999999986e111 or 2.8e14 < b < 2.5499999999999999e50Initial program 67.6%
Taylor expanded in b around inf 82.5%
*-commutative82.5%
Simplified82.5%
if -4.09999999999999986e111 < b < 2.8e14Initial program 74.0%
Taylor expanded in b around 0 73.1%
if 2.5499999999999999e50 < b < 1.55e87Initial program 73.3%
Taylor expanded in x around inf 74.2%
*-commutative74.2%
Simplified74.2%
if 1.55e87 < b Initial program 81.3%
Taylor expanded in x around 0 74.5%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* j (- (* t c) (* y i))))
(t_4 (* x (- (* y z) (* t a)))))
(if (<= x -9.6e+62)
t_4
(if (<= x -1.05e-37)
t_2
(if (<= x 1.25e-157)
t_1
(if (<= x 8e-44)
t_3
(if (<= x 8.5e-20)
t_1
(if (<= x 5.6e-11)
t_2
(if (<= x 1.08e+48)
(* a (- (* b i) (* x t)))
(if (<= x 3.1e+91) t_3 t_4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = j * ((t * c) - (y * i));
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.6e+62) {
tmp = t_4;
} else if (x <= -1.05e-37) {
tmp = t_2;
} else if (x <= 1.25e-157) {
tmp = t_1;
} else if (x <= 8e-44) {
tmp = t_3;
} else if (x <= 8.5e-20) {
tmp = t_1;
} else if (x <= 5.6e-11) {
tmp = t_2;
} else if (x <= 1.08e+48) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 3.1e+91) {
tmp = t_3;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
t_3 = j * ((t * c) - (y * i))
t_4 = x * ((y * z) - (t * a))
if (x <= (-9.6d+62)) then
tmp = t_4
else if (x <= (-1.05d-37)) then
tmp = t_2
else if (x <= 1.25d-157) then
tmp = t_1
else if (x <= 8d-44) then
tmp = t_3
else if (x <= 8.5d-20) then
tmp = t_1
else if (x <= 5.6d-11) then
tmp = t_2
else if (x <= 1.08d+48) then
tmp = a * ((b * i) - (x * t))
else if (x <= 3.1d+91) then
tmp = t_3
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = j * ((t * c) - (y * i));
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.6e+62) {
tmp = t_4;
} else if (x <= -1.05e-37) {
tmp = t_2;
} else if (x <= 1.25e-157) {
tmp = t_1;
} else if (x <= 8e-44) {
tmp = t_3;
} else if (x <= 8.5e-20) {
tmp = t_1;
} else if (x <= 5.6e-11) {
tmp = t_2;
} else if (x <= 1.08e+48) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 3.1e+91) {
tmp = t_3;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) t_3 = j * ((t * c) - (y * i)) t_4 = x * ((y * z) - (t * a)) tmp = 0 if x <= -9.6e+62: tmp = t_4 elif x <= -1.05e-37: tmp = t_2 elif x <= 1.25e-157: tmp = t_1 elif x <= 8e-44: tmp = t_3 elif x <= 8.5e-20: tmp = t_1 elif x <= 5.6e-11: tmp = t_2 elif x <= 1.08e+48: tmp = a * ((b * i) - (x * t)) elif x <= 3.1e+91: tmp = t_3 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_4 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -9.6e+62) tmp = t_4; elseif (x <= -1.05e-37) tmp = t_2; elseif (x <= 1.25e-157) tmp = t_1; elseif (x <= 8e-44) tmp = t_3; elseif (x <= 8.5e-20) tmp = t_1; elseif (x <= 5.6e-11) tmp = t_2; elseif (x <= 1.08e+48) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (x <= 3.1e+91) tmp = t_3; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); t_3 = j * ((t * c) - (y * i)); t_4 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -9.6e+62) tmp = t_4; elseif (x <= -1.05e-37) tmp = t_2; elseif (x <= 1.25e-157) tmp = t_1; elseif (x <= 8e-44) tmp = t_3; elseif (x <= 8.5e-20) tmp = t_1; elseif (x <= 5.6e-11) tmp = t_2; elseif (x <= 1.08e+48) tmp = a * ((b * i) - (x * t)); elseif (x <= 3.1e+91) tmp = t_3; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.6e+62], t$95$4, If[LessEqual[x, -1.05e-37], t$95$2, If[LessEqual[x, 1.25e-157], t$95$1, If[LessEqual[x, 8e-44], t$95$3, If[LessEqual[x, 8.5e-20], t$95$1, If[LessEqual[x, 5.6e-11], t$95$2, If[LessEqual[x, 1.08e+48], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+91], t$95$3, t$95$4]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -9.6 \cdot 10^{+62}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-44}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-11}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{+48}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+91}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if x < -9.6e62 or 3.09999999999999998e91 < x Initial program 72.6%
Taylor expanded in x around inf 70.3%
*-commutative70.3%
Simplified70.3%
if -9.6e62 < x < -1.05e-37 or 8.5000000000000005e-20 < x < 5.6e-11Initial program 79.8%
Taylor expanded in y around inf 68.3%
+-commutative68.3%
mul-1-neg68.3%
unsub-neg68.3%
*-commutative68.3%
Simplified68.3%
if -1.05e-37 < x < 1.25000000000000005e-157 or 7.99999999999999962e-44 < x < 8.5000000000000005e-20Initial program 76.4%
Taylor expanded in b around inf 65.0%
*-commutative65.0%
Simplified65.0%
if 1.25000000000000005e-157 < x < 7.99999999999999962e-44 or 1.07999999999999998e48 < x < 3.09999999999999998e91Initial program 67.7%
Taylor expanded in j around inf 63.0%
if 5.6e-11 < x < 1.07999999999999998e48Initial program 69.8%
Taylor expanded in a around inf 71.2%
distribute-lft-out--71.2%
*-commutative71.2%
Simplified71.2%
Final simplification67.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -9.6e+26)
t_3
(if (<= x -2.6e-39)
t_1
(if (<= x -9e-76)
(* t (- (* c j) (* x a)))
(if (<= x 6.5e-164)
t_2
(if (<= x 5e-44)
t_1
(if (<= x 7e+39) t_2 (if (<= x 2.4e+91) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.6e+26) {
tmp = t_3;
} else if (x <= -2.6e-39) {
tmp = t_1;
} else if (x <= -9e-76) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 6.5e-164) {
tmp = t_2;
} else if (x <= 5e-44) {
tmp = t_1;
} else if (x <= 7e+39) {
tmp = t_2;
} else if (x <= 2.4e+91) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = x * ((y * z) - (t * a))
if (x <= (-9.6d+26)) then
tmp = t_3
else if (x <= (-2.6d-39)) then
tmp = t_1
else if (x <= (-9d-76)) then
tmp = t * ((c * j) - (x * a))
else if (x <= 6.5d-164) then
tmp = t_2
else if (x <= 5d-44) then
tmp = t_1
else if (x <= 7d+39) then
tmp = t_2
else if (x <= 2.4d+91) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.6e+26) {
tmp = t_3;
} else if (x <= -2.6e-39) {
tmp = t_1;
} else if (x <= -9e-76) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 6.5e-164) {
tmp = t_2;
} else if (x <= 5e-44) {
tmp = t_1;
} else if (x <= 7e+39) {
tmp = t_2;
} else if (x <= 2.4e+91) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -9.6e+26: tmp = t_3 elif x <= -2.6e-39: tmp = t_1 elif x <= -9e-76: tmp = t * ((c * j) - (x * a)) elif x <= 6.5e-164: tmp = t_2 elif x <= 5e-44: tmp = t_1 elif x <= 7e+39: tmp = t_2 elif x <= 2.4e+91: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -9.6e+26) tmp = t_3; elseif (x <= -2.6e-39) tmp = t_1; elseif (x <= -9e-76) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (x <= 6.5e-164) tmp = t_2; elseif (x <= 5e-44) tmp = t_1; elseif (x <= 7e+39) tmp = t_2; elseif (x <= 2.4e+91) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -9.6e+26) tmp = t_3; elseif (x <= -2.6e-39) tmp = t_1; elseif (x <= -9e-76) tmp = t * ((c * j) - (x * a)); elseif (x <= 6.5e-164) tmp = t_2; elseif (x <= 5e-44) tmp = t_1; elseif (x <= 7e+39) tmp = t_2; elseif (x <= 2.4e+91) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.6e+26], t$95$3, If[LessEqual[x, -2.6e-39], t$95$1, If[LessEqual[x, -9e-76], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e-164], t$95$2, If[LessEqual[x, 5e-44], t$95$1, If[LessEqual[x, 7e+39], t$95$2, If[LessEqual[x, 2.4e+91], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -9.6 \cdot 10^{+26}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-76}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-164}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -9.60000000000000018e26 or 2.39999999999999983e91 < x Initial program 71.6%
Taylor expanded in x around inf 70.4%
*-commutative70.4%
Simplified70.4%
if -9.60000000000000018e26 < x < -2.6e-39 or 6.50000000000000004e-164 < x < 5.00000000000000039e-44 or 7.0000000000000003e39 < x < 2.39999999999999983e91Initial program 72.1%
Taylor expanded in j around inf 59.1%
if -2.6e-39 < x < -9.0000000000000001e-76Initial program 99.7%
associate-+l-99.7%
*-commutative99.7%
fma-neg99.7%
Applied egg-rr99.7%
Taylor expanded in t around inf 56.1%
neg-mul-156.1%
+-commutative56.1%
unsub-neg56.1%
Simplified56.1%
if -9.0000000000000001e-76 < x < 6.50000000000000004e-164 or 5.00000000000000039e-44 < x < 7.0000000000000003e39Initial program 74.9%
Taylor expanded in b around inf 64.0%
*-commutative64.0%
Simplified64.0%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* i (* a b))))
(t_2 (* x (- (* y z) (* t a)))))
(if (<= x -2.4e+29)
t_2
(if (<= x -8.8e-33)
t_1
(if (<= x 4.5e-224)
(* b (- (* a i) (* z c)))
(if (<= x 1.16e+92) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.4e+29) {
tmp = t_2;
} else if (x <= -8.8e-33) {
tmp = t_1;
} else if (x <= 4.5e-224) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.16e+92) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (i * (a * b))
t_2 = x * ((y * z) - (t * a))
if (x <= (-2.4d+29)) then
tmp = t_2
else if (x <= (-8.8d-33)) then
tmp = t_1
else if (x <= 4.5d-224) then
tmp = b * ((a * i) - (z * c))
else if (x <= 1.16d+92) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.4e+29) {
tmp = t_2;
} else if (x <= -8.8e-33) {
tmp = t_1;
} else if (x <= 4.5e-224) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.16e+92) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -2.4e+29: tmp = t_2 elif x <= -8.8e-33: tmp = t_1 elif x <= 4.5e-224: tmp = b * ((a * i) - (z * c)) elif x <= 1.16e+92: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -2.4e+29) tmp = t_2; elseif (x <= -8.8e-33) tmp = t_1; elseif (x <= 4.5e-224) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 1.16e+92) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -2.4e+29) tmp = t_2; elseif (x <= -8.8e-33) tmp = t_1; elseif (x <= 4.5e-224) tmp = b * ((a * i) - (z * c)); elseif (x <= 1.16e+92) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.4e+29], t$95$2, If[LessEqual[x, -8.8e-33], t$95$1, If[LessEqual[x, 4.5e-224], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.16e+92], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -2.4 \cdot 10^{+29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -8.8 \cdot 10^{-33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-224}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.16 \cdot 10^{+92}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -2.4000000000000001e29 or 1.16000000000000006e92 < x Initial program 71.6%
Taylor expanded in x around inf 70.4%
*-commutative70.4%
Simplified70.4%
if -2.4000000000000001e29 < x < -8.80000000000000022e-33 or 4.5000000000000004e-224 < x < 1.16000000000000006e92Initial program 76.4%
associate-+l-76.4%
*-commutative76.4%
fma-neg77.6%
Applied egg-rr77.6%
Taylor expanded in x around 0 68.1%
fma-neg68.1%
*-commutative68.1%
*-commutative68.1%
*-rgt-identity68.1%
fma-neg68.1%
*-rgt-identity68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in c around 0 64.8%
mul-1-neg64.8%
associate-*r*69.4%
distribute-lft-neg-in69.4%
*-commutative69.4%
distribute-rgt-neg-in69.4%
Simplified69.4%
if -8.80000000000000022e-33 < x < 4.5000000000000004e-224Initial program 74.8%
Taylor expanded in b around inf 61.9%
*-commutative61.9%
Simplified61.9%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -8e+29)
t_2
(if (<= x -1.18e-32)
(+ t_1 (* a (* b i)))
(if (<= x 6.3e-226)
(* b (- (* a i) (* z c)))
(if (<= x 2.2e+92) (+ t_1 (* i (* a b))) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -8e+29) {
tmp = t_2;
} else if (x <= -1.18e-32) {
tmp = t_1 + (a * (b * i));
} else if (x <= 6.3e-226) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 2.2e+92) {
tmp = t_1 + (i * (a * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (x <= (-8d+29)) then
tmp = t_2
else if (x <= (-1.18d-32)) then
tmp = t_1 + (a * (b * i))
else if (x <= 6.3d-226) then
tmp = b * ((a * i) - (z * c))
else if (x <= 2.2d+92) then
tmp = t_1 + (i * (a * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -8e+29) {
tmp = t_2;
} else if (x <= -1.18e-32) {
tmp = t_1 + (a * (b * i));
} else if (x <= 6.3e-226) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 2.2e+92) {
tmp = t_1 + (i * (a * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -8e+29: tmp = t_2 elif x <= -1.18e-32: tmp = t_1 + (a * (b * i)) elif x <= 6.3e-226: tmp = b * ((a * i) - (z * c)) elif x <= 2.2e+92: tmp = t_1 + (i * (a * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -8e+29) tmp = t_2; elseif (x <= -1.18e-32) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (x <= 6.3e-226) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 2.2e+92) tmp = Float64(t_1 + Float64(i * Float64(a * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -8e+29) tmp = t_2; elseif (x <= -1.18e-32) tmp = t_1 + (a * (b * i)); elseif (x <= 6.3e-226) tmp = b * ((a * i) - (z * c)); elseif (x <= 2.2e+92) tmp = t_1 + (i * (a * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8e+29], t$95$2, If[LessEqual[x, -1.18e-32], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.3e-226], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.2e+92], N[(t$95$1 + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -8 \cdot 10^{+29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.18 \cdot 10^{-32}:\\
\;\;\;\;t_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{-226}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{+92}:\\
\;\;\;\;t_1 + i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -7.99999999999999931e29 or 2.19999999999999992e92 < x Initial program 71.6%
Taylor expanded in x around inf 70.4%
*-commutative70.4%
Simplified70.4%
if -7.99999999999999931e29 < x < -1.17999999999999997e-32Initial program 84.7%
Taylor expanded in z around 0 64.1%
Taylor expanded in x around 0 64.7%
if -1.17999999999999997e-32 < x < 6.2999999999999997e-226Initial program 74.8%
Taylor expanded in b around inf 61.9%
*-commutative61.9%
Simplified61.9%
if 6.2999999999999997e-226 < x < 2.19999999999999992e92Initial program 73.8%
associate-+l-73.8%
*-commutative73.8%
fma-neg75.4%
Applied egg-rr75.4%
Taylor expanded in x around 0 69.3%
fma-neg69.3%
*-commutative69.3%
*-commutative69.3%
*-rgt-identity69.3%
fma-neg69.3%
*-rgt-identity69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in c around 0 64.8%
mul-1-neg64.8%
associate-*r*70.9%
distribute-lft-neg-in70.9%
*-commutative70.9%
distribute-rgt-neg-in70.9%
Simplified70.9%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= j -5.2e+198)
(* i (* y (- j)))
(if (<= j -58000000000.0)
t_1
(if (<= j -6.5e-47)
(* x (* y z))
(if (<= j -7.5e-205)
t_1
(if (<= j -6.5e-287)
(* x (* t (- a)))
(if (<= j 4e+66) t_1 (* j (* i (- y)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (j <= -5.2e+198) {
tmp = i * (y * -j);
} else if (j <= -58000000000.0) {
tmp = t_1;
} else if (j <= -6.5e-47) {
tmp = x * (y * z);
} else if (j <= -7.5e-205) {
tmp = t_1;
} else if (j <= -6.5e-287) {
tmp = x * (t * -a);
} else if (j <= 4e+66) {
tmp = t_1;
} else {
tmp = j * (i * -y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (j <= (-5.2d+198)) then
tmp = i * (y * -j)
else if (j <= (-58000000000.0d0)) then
tmp = t_1
else if (j <= (-6.5d-47)) then
tmp = x * (y * z)
else if (j <= (-7.5d-205)) then
tmp = t_1
else if (j <= (-6.5d-287)) then
tmp = x * (t * -a)
else if (j <= 4d+66) then
tmp = t_1
else
tmp = j * (i * -y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (j <= -5.2e+198) {
tmp = i * (y * -j);
} else if (j <= -58000000000.0) {
tmp = t_1;
} else if (j <= -6.5e-47) {
tmp = x * (y * z);
} else if (j <= -7.5e-205) {
tmp = t_1;
} else if (j <= -6.5e-287) {
tmp = x * (t * -a);
} else if (j <= 4e+66) {
tmp = t_1;
} else {
tmp = j * (i * -y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if j <= -5.2e+198: tmp = i * (y * -j) elif j <= -58000000000.0: tmp = t_1 elif j <= -6.5e-47: tmp = x * (y * z) elif j <= -7.5e-205: tmp = t_1 elif j <= -6.5e-287: tmp = x * (t * -a) elif j <= 4e+66: tmp = t_1 else: tmp = j * (i * -y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (j <= -5.2e+198) tmp = Float64(i * Float64(y * Float64(-j))); elseif (j <= -58000000000.0) tmp = t_1; elseif (j <= -6.5e-47) tmp = Float64(x * Float64(y * z)); elseif (j <= -7.5e-205) tmp = t_1; elseif (j <= -6.5e-287) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 4e+66) tmp = t_1; else tmp = Float64(j * Float64(i * Float64(-y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (j <= -5.2e+198) tmp = i * (y * -j); elseif (j <= -58000000000.0) tmp = t_1; elseif (j <= -6.5e-47) tmp = x * (y * z); elseif (j <= -7.5e-205) tmp = t_1; elseif (j <= -6.5e-287) tmp = x * (t * -a); elseif (j <= 4e+66) tmp = t_1; else tmp = j * (i * -y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.2e+198], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -58000000000.0], t$95$1, If[LessEqual[j, -6.5e-47], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.5e-205], t$95$1, If[LessEqual[j, -6.5e-287], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4e+66], t$95$1, N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -5.2 \cdot 10^{+198}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;j \leq -58000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-47}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{-205}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-287}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 4 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\
\end{array}
\end{array}
if j < -5.19999999999999961e198Initial program 60.4%
Taylor expanded in y around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in z around 0 53.1%
associate-*r*53.1%
neg-mul-153.1%
Simplified53.1%
if -5.19999999999999961e198 < j < -5.8e10 or -6.5000000000000004e-47 < j < -7.4999999999999996e-205 or -6.4999999999999999e-287 < j < 3.99999999999999978e66Initial program 76.7%
Taylor expanded in b around inf 53.8%
*-commutative53.8%
Simplified53.8%
if -5.8e10 < j < -6.5000000000000004e-47Initial program 71.9%
Taylor expanded in y around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -7.4999999999999996e-205 < j < -6.4999999999999999e-287Initial program 80.3%
associate-+l-80.3%
*-commutative80.3%
fma-neg80.3%
Applied egg-rr80.3%
Taylor expanded in x around inf 67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in z around 0 48.7%
mul-1-neg48.7%
associate-*r*55.1%
distribute-lft-neg-in55.1%
distribute-rgt-neg-out55.1%
*-commutative55.1%
Simplified55.1%
if 3.99999999999999978e66 < j Initial program 70.5%
Taylor expanded in y around inf 64.4%
+-commutative64.4%
mul-1-neg64.4%
unsub-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in z around 0 49.3%
mul-1-neg49.3%
distribute-lft-neg-in49.3%
associate-*r*53.5%
*-commutative53.5%
associate-*l*51.3%
distribute-lft-neg-in51.3%
distribute-rgt-neg-in51.3%
Simplified51.3%
Final simplification54.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= j -4800000.0)
t_1
(if (<= j -2.2e-47)
(* x (* y z))
(if (<= j -3.3e-204)
t_2
(if (<= j -5.5e-287)
(* x (* t (- a)))
(if (<= j 4.4e-55)
t_2
(if (<= j 1.02e+239) t_1 (* j (* i (- y)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (j <= -4800000.0) {
tmp = t_1;
} else if (j <= -2.2e-47) {
tmp = x * (y * z);
} else if (j <= -3.3e-204) {
tmp = t_2;
} else if (j <= -5.5e-287) {
tmp = x * (t * -a);
} else if (j <= 4.4e-55) {
tmp = t_2;
} else if (j <= 1.02e+239) {
tmp = t_1;
} else {
tmp = j * (i * -y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = b * ((a * i) - (z * c))
if (j <= (-4800000.0d0)) then
tmp = t_1
else if (j <= (-2.2d-47)) then
tmp = x * (y * z)
else if (j <= (-3.3d-204)) then
tmp = t_2
else if (j <= (-5.5d-287)) then
tmp = x * (t * -a)
else if (j <= 4.4d-55) then
tmp = t_2
else if (j <= 1.02d+239) then
tmp = t_1
else
tmp = j * (i * -y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (j <= -4800000.0) {
tmp = t_1;
} else if (j <= -2.2e-47) {
tmp = x * (y * z);
} else if (j <= -3.3e-204) {
tmp = t_2;
} else if (j <= -5.5e-287) {
tmp = x * (t * -a);
} else if (j <= 4.4e-55) {
tmp = t_2;
} else if (j <= 1.02e+239) {
tmp = t_1;
} else {
tmp = j * (i * -y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if j <= -4800000.0: tmp = t_1 elif j <= -2.2e-47: tmp = x * (y * z) elif j <= -3.3e-204: tmp = t_2 elif j <= -5.5e-287: tmp = x * (t * -a) elif j <= 4.4e-55: tmp = t_2 elif j <= 1.02e+239: tmp = t_1 else: tmp = j * (i * -y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (j <= -4800000.0) tmp = t_1; elseif (j <= -2.2e-47) tmp = Float64(x * Float64(y * z)); elseif (j <= -3.3e-204) tmp = t_2; elseif (j <= -5.5e-287) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 4.4e-55) tmp = t_2; elseif (j <= 1.02e+239) tmp = t_1; else tmp = Float64(j * Float64(i * Float64(-y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (j <= -4800000.0) tmp = t_1; elseif (j <= -2.2e-47) tmp = x * (y * z); elseif (j <= -3.3e-204) tmp = t_2; elseif (j <= -5.5e-287) tmp = x * (t * -a); elseif (j <= 4.4e-55) tmp = t_2; elseif (j <= 1.02e+239) tmp = t_1; else tmp = j * (i * -y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4800000.0], t$95$1, If[LessEqual[j, -2.2e-47], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.3e-204], t$95$2, If[LessEqual[j, -5.5e-287], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e-55], t$95$2, If[LessEqual[j, 1.02e+239], t$95$1, N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -4800000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.2 \cdot 10^{-47}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq -3.3 \cdot 10^{-204}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{-287}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.02 \cdot 10^{+239}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\
\end{array}
\end{array}
if j < -4.8e6 or 4.3999999999999999e-55 < j < 1.02e239Initial program 74.6%
Taylor expanded in c around inf 49.6%
if -4.8e6 < j < -2.20000000000000019e-47Initial program 71.9%
Taylor expanded in y around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -2.20000000000000019e-47 < j < -3.30000000000000009e-204 or -5.4999999999999998e-287 < j < 4.3999999999999999e-55Initial program 75.0%
Taylor expanded in b around inf 56.8%
*-commutative56.8%
Simplified56.8%
if -3.30000000000000009e-204 < j < -5.4999999999999998e-287Initial program 80.3%
associate-+l-80.3%
*-commutative80.3%
fma-neg80.3%
Applied egg-rr80.3%
Taylor expanded in x around inf 67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in z around 0 48.7%
mul-1-neg48.7%
associate-*r*55.1%
distribute-lft-neg-in55.1%
distribute-rgt-neg-out55.1%
*-commutative55.1%
Simplified55.1%
if 1.02e239 < j Initial program 60.9%
Taylor expanded in y around inf 77.6%
+-commutative77.6%
mul-1-neg77.6%
unsub-neg77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in z around 0 57.1%
mul-1-neg57.1%
distribute-lft-neg-in57.1%
associate-*r*67.4%
*-commutative67.4%
associate-*l*61.8%
distribute-lft-neg-in61.8%
distribute-rgt-neg-in61.8%
Simplified61.8%
Final simplification55.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= j -9.5e+62)
t_2
(if (<= j -58000000000.0)
t_1
(if (<= j -4e-47)
(* x (* y z))
(if (<= j -2.1e-207)
t_1
(if (<= j -5.5e-287)
(* x (* t (- a)))
(if (<= j 18500.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -9.5e+62) {
tmp = t_2;
} else if (j <= -58000000000.0) {
tmp = t_1;
} else if (j <= -4e-47) {
tmp = x * (y * z);
} else if (j <= -2.1e-207) {
tmp = t_1;
} else if (j <= -5.5e-287) {
tmp = x * (t * -a);
} else if (j <= 18500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = j * ((t * c) - (y * i))
if (j <= (-9.5d+62)) then
tmp = t_2
else if (j <= (-58000000000.0d0)) then
tmp = t_1
else if (j <= (-4d-47)) then
tmp = x * (y * z)
else if (j <= (-2.1d-207)) then
tmp = t_1
else if (j <= (-5.5d-287)) then
tmp = x * (t * -a)
else if (j <= 18500.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -9.5e+62) {
tmp = t_2;
} else if (j <= -58000000000.0) {
tmp = t_1;
} else if (j <= -4e-47) {
tmp = x * (y * z);
} else if (j <= -2.1e-207) {
tmp = t_1;
} else if (j <= -5.5e-287) {
tmp = x * (t * -a);
} else if (j <= 18500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -9.5e+62: tmp = t_2 elif j <= -58000000000.0: tmp = t_1 elif j <= -4e-47: tmp = x * (y * z) elif j <= -2.1e-207: tmp = t_1 elif j <= -5.5e-287: tmp = x * (t * -a) elif j <= 18500.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -9.5e+62) tmp = t_2; elseif (j <= -58000000000.0) tmp = t_1; elseif (j <= -4e-47) tmp = Float64(x * Float64(y * z)); elseif (j <= -2.1e-207) tmp = t_1; elseif (j <= -5.5e-287) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 18500.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -9.5e+62) tmp = t_2; elseif (j <= -58000000000.0) tmp = t_1; elseif (j <= -4e-47) tmp = x * (y * z); elseif (j <= -2.1e-207) tmp = t_1; elseif (j <= -5.5e-287) tmp = x * (t * -a); elseif (j <= 18500.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.5e+62], t$95$2, If[LessEqual[j, -58000000000.0], t$95$1, If[LessEqual[j, -4e-47], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.1e-207], t$95$1, If[LessEqual[j, -5.5e-287], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 18500.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -9.5 \cdot 10^{+62}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -58000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -4 \cdot 10^{-47}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq -2.1 \cdot 10^{-207}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{-287}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 18500:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -9.5000000000000003e62 or 18500 < j Initial program 72.9%
Taylor expanded in j around inf 66.1%
if -9.5000000000000003e62 < j < -5.8e10 or -3.9999999999999999e-47 < j < -2.10000000000000003e-207 or -5.4999999999999998e-287 < j < 18500Initial program 74.4%
Taylor expanded in b around inf 58.2%
*-commutative58.2%
Simplified58.2%
if -5.8e10 < j < -3.9999999999999999e-47Initial program 71.9%
Taylor expanded in y around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -2.10000000000000003e-207 < j < -5.4999999999999998e-287Initial program 80.3%
associate-+l-80.3%
*-commutative80.3%
fma-neg80.3%
Applied egg-rr80.3%
Taylor expanded in x around inf 67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in z around 0 48.7%
mul-1-neg48.7%
associate-*r*55.1%
distribute-lft-neg-in55.1%
distribute-rgt-neg-out55.1%
*-commutative55.1%
Simplified55.1%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -1.25e+64)
t_3
(if (<= x -1.48e-36)
(* y (- (* x z) (* i j)))
(if (<= x 7.8e-153)
t_1
(if (<= x 4.5e-44)
t_2
(if (<= x 5.2e+39) t_1 (if (<= x 2.7e+91) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.25e+64) {
tmp = t_3;
} else if (x <= -1.48e-36) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 7.8e-153) {
tmp = t_1;
} else if (x <= 4.5e-44) {
tmp = t_2;
} else if (x <= 5.2e+39) {
tmp = t_1;
} else if (x <= 2.7e+91) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = j * ((t * c) - (y * i))
t_3 = x * ((y * z) - (t * a))
if (x <= (-1.25d+64)) then
tmp = t_3
else if (x <= (-1.48d-36)) then
tmp = y * ((x * z) - (i * j))
else if (x <= 7.8d-153) then
tmp = t_1
else if (x <= 4.5d-44) then
tmp = t_2
else if (x <= 5.2d+39) then
tmp = t_1
else if (x <= 2.7d+91) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.25e+64) {
tmp = t_3;
} else if (x <= -1.48e-36) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 7.8e-153) {
tmp = t_1;
} else if (x <= 4.5e-44) {
tmp = t_2;
} else if (x <= 5.2e+39) {
tmp = t_1;
} else if (x <= 2.7e+91) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = j * ((t * c) - (y * i)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.25e+64: tmp = t_3 elif x <= -1.48e-36: tmp = y * ((x * z) - (i * j)) elif x <= 7.8e-153: tmp = t_1 elif x <= 4.5e-44: tmp = t_2 elif x <= 5.2e+39: tmp = t_1 elif x <= 2.7e+91: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.25e+64) tmp = t_3; elseif (x <= -1.48e-36) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= 7.8e-153) tmp = t_1; elseif (x <= 4.5e-44) tmp = t_2; elseif (x <= 5.2e+39) tmp = t_1; elseif (x <= 2.7e+91) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = j * ((t * c) - (y * i)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.25e+64) tmp = t_3; elseif (x <= -1.48e-36) tmp = y * ((x * z) - (i * j)); elseif (x <= 7.8e-153) tmp = t_1; elseif (x <= 4.5e-44) tmp = t_2; elseif (x <= 5.2e+39) tmp = t_1; elseif (x <= 2.7e+91) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.25e+64], t$95$3, If[LessEqual[x, -1.48e-36], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-153], t$95$1, If[LessEqual[x, 4.5e-44], t$95$2, If[LessEqual[x, 5.2e+39], t$95$1, If[LessEqual[x, 2.7e+91], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.25 \cdot 10^{+64}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.48 \cdot 10^{-36}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-153}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+91}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -1.25e64 or 2.7e91 < x Initial program 72.6%
Taylor expanded in x around inf 70.3%
*-commutative70.3%
Simplified70.3%
if -1.25e64 < x < -1.48e-36Initial program 75.6%
Taylor expanded in y around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
*-commutative65.0%
Simplified65.0%
if -1.48e-36 < x < 7.8000000000000004e-153 or 4.4999999999999999e-44 < x < 5.2e39Initial program 77.8%
Taylor expanded in b around inf 63.0%
*-commutative63.0%
Simplified63.0%
if 7.8000000000000004e-153 < x < 4.4999999999999999e-44 or 5.2e39 < x < 2.7e91Initial program 66.7%
Taylor expanded in j around inf 62.4%
Final simplification65.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* i (* a b))))
(if (<= b -4.05e+211)
t_2
(if (<= b -1.5e+123)
(* (* z c) (- b))
(if (<= b -1e+110)
(* b (* a i))
(if (<= b -1.15e+28)
t_1
(if (<= b 3.7e-233) (* x (* y z)) (if (<= b 8.2e-74) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = i * (a * b);
double tmp;
if (b <= -4.05e+211) {
tmp = t_2;
} else if (b <= -1.5e+123) {
tmp = (z * c) * -b;
} else if (b <= -1e+110) {
tmp = b * (a * i);
} else if (b <= -1.15e+28) {
tmp = t_1;
} else if (b <= 3.7e-233) {
tmp = x * (y * z);
} else if (b <= 8.2e-74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = i * (a * b)
if (b <= (-4.05d+211)) then
tmp = t_2
else if (b <= (-1.5d+123)) then
tmp = (z * c) * -b
else if (b <= (-1d+110)) then
tmp = b * (a * i)
else if (b <= (-1.15d+28)) then
tmp = t_1
else if (b <= 3.7d-233) then
tmp = x * (y * z)
else if (b <= 8.2d-74) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = i * (a * b);
double tmp;
if (b <= -4.05e+211) {
tmp = t_2;
} else if (b <= -1.5e+123) {
tmp = (z * c) * -b;
} else if (b <= -1e+110) {
tmp = b * (a * i);
} else if (b <= -1.15e+28) {
tmp = t_1;
} else if (b <= 3.7e-233) {
tmp = x * (y * z);
} else if (b <= 8.2e-74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = i * (a * b) tmp = 0 if b <= -4.05e+211: tmp = t_2 elif b <= -1.5e+123: tmp = (z * c) * -b elif b <= -1e+110: tmp = b * (a * i) elif b <= -1.15e+28: tmp = t_1 elif b <= 3.7e-233: tmp = x * (y * z) elif b <= 8.2e-74: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(i * Float64(a * b)) tmp = 0.0 if (b <= -4.05e+211) tmp = t_2; elseif (b <= -1.5e+123) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (b <= -1e+110) tmp = Float64(b * Float64(a * i)); elseif (b <= -1.15e+28) tmp = t_1; elseif (b <= 3.7e-233) tmp = Float64(x * Float64(y * z)); elseif (b <= 8.2e-74) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = i * (a * b); tmp = 0.0; if (b <= -4.05e+211) tmp = t_2; elseif (b <= -1.5e+123) tmp = (z * c) * -b; elseif (b <= -1e+110) tmp = b * (a * i); elseif (b <= -1.15e+28) tmp = t_1; elseif (b <= 3.7e-233) tmp = x * (y * z); elseif (b <= 8.2e-74) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.05e+211], t$95$2, If[LessEqual[b, -1.5e+123], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[b, -1e+110], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e+28], t$95$1, If[LessEqual[b, 3.7e-233], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-74], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;b \leq -4.05 \cdot 10^{+211}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{+123}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;b \leq -1 \cdot 10^{+110}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-233}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.04999999999999986e211 or 8.20000000000000063e-74 < b Initial program 73.6%
Taylor expanded in b around inf 59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in i around inf 38.2%
Taylor expanded in b around 0 36.4%
*-commutative36.4%
*-commutative36.4%
associate-*l*40.9%
*-commutative40.9%
Simplified40.9%
if -4.04999999999999986e211 < b < -1.50000000000000004e123Initial program 81.3%
Taylor expanded in b around inf 87.8%
*-commutative87.8%
Simplified87.8%
Taylor expanded in i around 0 69.2%
mul-1-neg69.2%
distribute-lft-neg-out69.2%
*-commutative69.2%
Simplified69.2%
if -1.50000000000000004e123 < b < -1e110Initial program 99.5%
Taylor expanded in b around inf 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in i around inf 99.5%
if -1e110 < b < -1.14999999999999992e28 or 3.6999999999999998e-233 < b < 8.20000000000000063e-74Initial program 69.9%
Taylor expanded in t around inf 58.0%
Taylor expanded in a around 0 45.6%
*-commutative45.6%
Simplified45.6%
if -1.14999999999999992e28 < b < 3.6999999999999998e-233Initial program 74.7%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in z around inf 37.2%
*-commutative37.2%
Simplified37.2%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* i (* a b))))
(if (<= b -2.4e+211)
t_2
(if (<= b -1.15e+121)
(* c (* z (- b)))
(if (<= b -6.5e+109)
(* b (* a i))
(if (<= b -1.1e+28)
t_1
(if (<= b 3.5e-233) (* x (* y z)) (if (<= b 1.4e-79) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = i * (a * b);
double tmp;
if (b <= -2.4e+211) {
tmp = t_2;
} else if (b <= -1.15e+121) {
tmp = c * (z * -b);
} else if (b <= -6.5e+109) {
tmp = b * (a * i);
} else if (b <= -1.1e+28) {
tmp = t_1;
} else if (b <= 3.5e-233) {
tmp = x * (y * z);
} else if (b <= 1.4e-79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = i * (a * b)
if (b <= (-2.4d+211)) then
tmp = t_2
else if (b <= (-1.15d+121)) then
tmp = c * (z * -b)
else if (b <= (-6.5d+109)) then
tmp = b * (a * i)
else if (b <= (-1.1d+28)) then
tmp = t_1
else if (b <= 3.5d-233) then
tmp = x * (y * z)
else if (b <= 1.4d-79) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = i * (a * b);
double tmp;
if (b <= -2.4e+211) {
tmp = t_2;
} else if (b <= -1.15e+121) {
tmp = c * (z * -b);
} else if (b <= -6.5e+109) {
tmp = b * (a * i);
} else if (b <= -1.1e+28) {
tmp = t_1;
} else if (b <= 3.5e-233) {
tmp = x * (y * z);
} else if (b <= 1.4e-79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = i * (a * b) tmp = 0 if b <= -2.4e+211: tmp = t_2 elif b <= -1.15e+121: tmp = c * (z * -b) elif b <= -6.5e+109: tmp = b * (a * i) elif b <= -1.1e+28: tmp = t_1 elif b <= 3.5e-233: tmp = x * (y * z) elif b <= 1.4e-79: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(i * Float64(a * b)) tmp = 0.0 if (b <= -2.4e+211) tmp = t_2; elseif (b <= -1.15e+121) tmp = Float64(c * Float64(z * Float64(-b))); elseif (b <= -6.5e+109) tmp = Float64(b * Float64(a * i)); elseif (b <= -1.1e+28) tmp = t_1; elseif (b <= 3.5e-233) tmp = Float64(x * Float64(y * z)); elseif (b <= 1.4e-79) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = i * (a * b); tmp = 0.0; if (b <= -2.4e+211) tmp = t_2; elseif (b <= -1.15e+121) tmp = c * (z * -b); elseif (b <= -6.5e+109) tmp = b * (a * i); elseif (b <= -1.1e+28) tmp = t_1; elseif (b <= 3.5e-233) tmp = x * (y * z); elseif (b <= 1.4e-79) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e+211], t$95$2, If[LessEqual[b, -1.15e+121], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.5e+109], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.1e+28], t$95$1, If[LessEqual[b, 3.5e-233], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e-79], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{+211}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+121}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{+109}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-233}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-79}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.40000000000000018e211 or 1.40000000000000006e-79 < b Initial program 73.6%
Taylor expanded in b around inf 59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in i around inf 38.2%
Taylor expanded in b around 0 36.4%
*-commutative36.4%
*-commutative36.4%
associate-*l*40.9%
*-commutative40.9%
Simplified40.9%
if -2.40000000000000018e211 < b < -1.1499999999999999e121Initial program 81.3%
associate-+l-81.3%
*-commutative81.3%
fma-neg81.3%
Applied egg-rr81.3%
Taylor expanded in c around inf 69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in t around 0 69.2%
mul-1-neg69.2%
distribute-rgt-neg-out69.2%
Simplified69.2%
if -1.1499999999999999e121 < b < -6.5e109Initial program 99.5%
Taylor expanded in b around inf 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in i around inf 99.5%
if -6.5e109 < b < -1.09999999999999993e28 or 3.49999999999999991e-233 < b < 1.40000000000000006e-79Initial program 69.9%
Taylor expanded in t around inf 58.0%
Taylor expanded in a around 0 45.6%
*-commutative45.6%
Simplified45.6%
if -1.09999999999999993e28 < b < 3.49999999999999991e-233Initial program 74.7%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in z around inf 37.2%
*-commutative37.2%
Simplified37.2%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* a b))))
(if (<= b -4.5e+110)
t_1
(if (<= b -1.1e+28)
(* c (* t j))
(if (<= b 3.1e-233)
(* x (* y z))
(if (<= b 5.8e-168)
(* t (* c j))
(if (<= b 4.4e+14) (* j (* i (- y))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (b <= -4.5e+110) {
tmp = t_1;
} else if (b <= -1.1e+28) {
tmp = c * (t * j);
} else if (b <= 3.1e-233) {
tmp = x * (y * z);
} else if (b <= 5.8e-168) {
tmp = t * (c * j);
} else if (b <= 4.4e+14) {
tmp = j * (i * -y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (b <= (-4.5d+110)) then
tmp = t_1
else if (b <= (-1.1d+28)) then
tmp = c * (t * j)
else if (b <= 3.1d-233) then
tmp = x * (y * z)
else if (b <= 5.8d-168) then
tmp = t * (c * j)
else if (b <= 4.4d+14) then
tmp = j * (i * -y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (b <= -4.5e+110) {
tmp = t_1;
} else if (b <= -1.1e+28) {
tmp = c * (t * j);
} else if (b <= 3.1e-233) {
tmp = x * (y * z);
} else if (b <= 5.8e-168) {
tmp = t * (c * j);
} else if (b <= 4.4e+14) {
tmp = j * (i * -y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if b <= -4.5e+110: tmp = t_1 elif b <= -1.1e+28: tmp = c * (t * j) elif b <= 3.1e-233: tmp = x * (y * z) elif b <= 5.8e-168: tmp = t * (c * j) elif b <= 4.4e+14: tmp = j * (i * -y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (b <= -4.5e+110) tmp = t_1; elseif (b <= -1.1e+28) tmp = Float64(c * Float64(t * j)); elseif (b <= 3.1e-233) tmp = Float64(x * Float64(y * z)); elseif (b <= 5.8e-168) tmp = Float64(t * Float64(c * j)); elseif (b <= 4.4e+14) tmp = Float64(j * Float64(i * Float64(-y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (b <= -4.5e+110) tmp = t_1; elseif (b <= -1.1e+28) tmp = c * (t * j); elseif (b <= 3.1e-233) tmp = x * (y * z); elseif (b <= 5.8e-168) tmp = t * (c * j); elseif (b <= 4.4e+14) tmp = j * (i * -y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e+110], t$95$1, If[LessEqual[b, -1.1e+28], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-233], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e-168], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e+14], N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{+28}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-233}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-168}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+14}:\\
\;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.5000000000000003e110 or 4.4e14 < b Initial program 73.9%
Taylor expanded in b around inf 69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in i around inf 42.0%
Taylor expanded in b around 0 40.0%
*-commutative40.0%
*-commutative40.0%
associate-*l*44.3%
*-commutative44.3%
Simplified44.3%
if -4.5000000000000003e110 < b < -1.09999999999999993e28Initial program 77.9%
Taylor expanded in t around inf 58.2%
Taylor expanded in a around 0 49.1%
*-commutative49.1%
Simplified49.1%
if -1.09999999999999993e28 < b < 3.10000000000000015e-233Initial program 74.7%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in z around inf 37.2%
*-commutative37.2%
Simplified37.2%
if 3.10000000000000015e-233 < b < 5.7999999999999997e-168Initial program 62.0%
Taylor expanded in t around inf 78.4%
Taylor expanded in a around 0 55.5%
if 5.7999999999999997e-168 < b < 4.4e14Initial program 74.4%
Taylor expanded in y around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in z around 0 40.8%
mul-1-neg40.8%
distribute-lft-neg-in40.8%
associate-*r*34.6%
*-commutative34.6%
associate-*l*43.6%
distribute-lft-neg-in43.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* i (* a b))))
(if (<= b -2.4e+110)
t_2
(if (<= b -9.2e+27)
t_1
(if (<= b 4.3e-233) (* x (* y z)) (if (<= b 1.7e-75) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = i * (a * b);
double tmp;
if (b <= -2.4e+110) {
tmp = t_2;
} else if (b <= -9.2e+27) {
tmp = t_1;
} else if (b <= 4.3e-233) {
tmp = x * (y * z);
} else if (b <= 1.7e-75) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = i * (a * b)
if (b <= (-2.4d+110)) then
tmp = t_2
else if (b <= (-9.2d+27)) then
tmp = t_1
else if (b <= 4.3d-233) then
tmp = x * (y * z)
else if (b <= 1.7d-75) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = i * (a * b);
double tmp;
if (b <= -2.4e+110) {
tmp = t_2;
} else if (b <= -9.2e+27) {
tmp = t_1;
} else if (b <= 4.3e-233) {
tmp = x * (y * z);
} else if (b <= 1.7e-75) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = i * (a * b) tmp = 0 if b <= -2.4e+110: tmp = t_2 elif b <= -9.2e+27: tmp = t_1 elif b <= 4.3e-233: tmp = x * (y * z) elif b <= 1.7e-75: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(i * Float64(a * b)) tmp = 0.0 if (b <= -2.4e+110) tmp = t_2; elseif (b <= -9.2e+27) tmp = t_1; elseif (b <= 4.3e-233) tmp = Float64(x * Float64(y * z)); elseif (b <= 1.7e-75) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = i * (a * b); tmp = 0.0; if (b <= -2.4e+110) tmp = t_2; elseif (b <= -9.2e+27) tmp = t_1; elseif (b <= 4.3e-233) tmp = x * (y * z); elseif (b <= 1.7e-75) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e+110], t$95$2, If[LessEqual[b, -9.2e+27], t$95$1, If[LessEqual[b, 4.3e-233], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e-75], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{+110}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{-233}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.40000000000000012e110 or 1.70000000000000008e-75 < b Initial program 75.2%
Taylor expanded in b around inf 64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in i around inf 39.9%
Taylor expanded in b around 0 38.2%
*-commutative38.2%
*-commutative38.2%
associate-*l*41.9%
*-commutative41.9%
Simplified41.9%
if -2.40000000000000012e110 < b < -9.2000000000000002e27 or 4.29999999999999988e-233 < b < 1.70000000000000008e-75Initial program 69.9%
Taylor expanded in t around inf 58.0%
Taylor expanded in a around 0 45.6%
*-commutative45.6%
Simplified45.6%
if -9.2000000000000002e27 < b < 4.29999999999999988e-233Initial program 74.7%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in z around inf 37.2%
*-commutative37.2%
Simplified37.2%
Final simplification41.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -6.5e+197) (not (<= j 2e-44))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.5e+197) || !(j <= 2e-44)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-6.5d+197)) .or. (.not. (j <= 2d-44))) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.5e+197) || !(j <= 2e-44)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -6.5e+197) or not (j <= 2e-44): tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -6.5e+197) || !(j <= 2e-44)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -6.5e+197) || ~((j <= 2e-44))) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -6.5e+197], N[Not[LessEqual[j, 2e-44]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.5 \cdot 10^{+197} \lor \neg \left(j \leq 2 \cdot 10^{-44}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if j < -6.49999999999999952e197 or 1.99999999999999991e-44 < j Initial program 70.6%
Taylor expanded in t around inf 42.2%
Taylor expanded in a around 0 42.9%
*-commutative42.9%
Simplified42.9%
if -6.49999999999999952e197 < j < 1.99999999999999991e-44Initial program 75.8%
Taylor expanded in b around inf 49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in i around inf 30.5%
Final simplification34.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.6e+112) (not (<= b 1.6e-72))) (* i (* a b)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.6e+112) || !(b <= 1.6e-72)) {
tmp = i * (a * b);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.6d+112)) .or. (.not. (b <= 1.6d-72))) then
tmp = i * (a * b)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.6e+112) || !(b <= 1.6e-72)) {
tmp = i * (a * b);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.6e+112) or not (b <= 1.6e-72): tmp = i * (a * b) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.6e+112) || !(b <= 1.6e-72)) tmp = Float64(i * Float64(a * b)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.6e+112) || ~((b <= 1.6e-72))) tmp = i * (a * b); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.6e+112], N[Not[LessEqual[b, 1.6e-72]], $MachinePrecision]], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6 \cdot 10^{+112} \lor \neg \left(b \leq 1.6 \cdot 10^{-72}\right):\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -2.6000000000000001e112 or 1.6e-72 < b Initial program 75.2%
Taylor expanded in b around inf 64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in i around inf 39.9%
Taylor expanded in b around 0 38.2%
*-commutative38.2%
*-commutative38.2%
associate-*l*41.9%
*-commutative41.9%
Simplified41.9%
if -2.6000000000000001e112 < b < 1.6e-72Initial program 72.9%
Taylor expanded in t around inf 44.6%
Taylor expanded in a around 0 29.5%
*-commutative29.5%
Simplified29.5%
Final simplification35.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 74.0%
Taylor expanded in b around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in i around inf 23.4%
Final simplification23.4%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 74.0%
Taylor expanded in b around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in i around inf 25.3%
Final simplification25.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023308
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))