
(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 25 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 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))
(t_2 (- (* t c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(+ t_1 (/ j (/ 1.0 t_2)))
(* c (- (* t j) (* z b))))))
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)));
double t_2 = (t * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= ((double) INFINITY)) {
tmp = t_1 + (j / (1.0 / t_2));
} else {
tmp = c * ((t * j) - (z * b));
}
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)));
double t_2 = (t * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= Double.POSITIVE_INFINITY) {
tmp = t_1 + (j / (1.0 / t_2));
} else {
tmp = c * ((t * j) - (z * b));
}
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))) t_2 = (t * c) - (y * i) tmp = 0 if (t_1 + (j * t_2)) <= math.inf: tmp = t_1 + (j / (1.0 / t_2)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(t_1 + Float64(j * t_2)) <= Inf) tmp = Float64(t_1 + Float64(j / Float64(1.0 / t_2))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); 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))); t_2 = (t * c) - (y * i); tmp = 0.0; if ((t_1 + (j * t_2)) <= Inf) tmp = t_1 + (j / (1.0 / t_2)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = 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]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$1 + N[(j / N[(1.0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;t_1 + j \cdot t_2 \leq \infty:\\
\;\;\;\;t_1 + \frac{j}{\frac{1}{t_2}}\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\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 90.5%
*-commutative90.5%
*-commutative90.5%
flip--67.7%
clear-num67.7%
un-div-inv67.7%
clear-num67.7%
flip--90.5%
*-commutative90.5%
*-commutative90.5%
Applied egg-rr90.5%
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 c around inf 53.2%
Final simplification82.5%
(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 (* c (- (* t j) (* z b))))))
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 = c * ((t * j) - (z * b));
}
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 = c * ((t * j) - (z * b));
}
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 = c * ((t * j) - (z * b)) 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(c * Float64(Float64(t * j) - Float64(z * b))); 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 = c * ((t * j) - (z * b)); 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $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}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\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 90.5%
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 c around inf 53.2%
Final simplification82.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x t)))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (- (+ t_2 (* z (- (* x y) (* b c)))) t_1)))
(if (<= j -4.8e+150)
t_2
(if (<= j -3.3e-51)
t_3
(if (<= j 2.6e-90)
(+ (- (* x (* y z)) t_1) (* b (- (* a i) (* z c))))
(if (<= j 6.2e+144) t_3 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 = a * (x * t);
double t_2 = j * ((t * c) - (y * i));
double t_3 = (t_2 + (z * ((x * y) - (b * c)))) - t_1;
double tmp;
if (j <= -4.8e+150) {
tmp = t_2;
} else if (j <= -3.3e-51) {
tmp = t_3;
} else if (j <= 2.6e-90) {
tmp = ((x * (y * z)) - t_1) + (b * ((a * i) - (z * c)));
} else if (j <= 6.2e+144) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = a * (x * t)
t_2 = j * ((t * c) - (y * i))
t_3 = (t_2 + (z * ((x * y) - (b * c)))) - t_1
if (j <= (-4.8d+150)) then
tmp = t_2
else if (j <= (-3.3d-51)) then
tmp = t_3
else if (j <= 2.6d-90) then
tmp = ((x * (y * z)) - t_1) + (b * ((a * i) - (z * c)))
else if (j <= 6.2d+144) then
tmp = t_3
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 = a * (x * t);
double t_2 = j * ((t * c) - (y * i));
double t_3 = (t_2 + (z * ((x * y) - (b * c)))) - t_1;
double tmp;
if (j <= -4.8e+150) {
tmp = t_2;
} else if (j <= -3.3e-51) {
tmp = t_3;
} else if (j <= 2.6e-90) {
tmp = ((x * (y * z)) - t_1) + (b * ((a * i) - (z * c)));
} else if (j <= 6.2e+144) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * t) t_2 = j * ((t * c) - (y * i)) t_3 = (t_2 + (z * ((x * y) - (b * c)))) - t_1 tmp = 0 if j <= -4.8e+150: tmp = t_2 elif j <= -3.3e-51: tmp = t_3 elif j <= 2.6e-90: tmp = ((x * (y * z)) - t_1) + (b * ((a * i) - (z * c))) elif j <= 6.2e+144: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * t)) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(Float64(t_2 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))) - t_1) tmp = 0.0 if (j <= -4.8e+150) tmp = t_2; elseif (j <= -3.3e-51) tmp = t_3; elseif (j <= 2.6e-90) tmp = Float64(Float64(Float64(x * Float64(y * z)) - t_1) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 6.2e+144) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * t); t_2 = j * ((t * c) - (y * i)); t_3 = (t_2 + (z * ((x * y) - (b * c)))) - t_1; tmp = 0.0; if (j <= -4.8e+150) tmp = t_2; elseif (j <= -3.3e-51) tmp = t_3; elseif (j <= 2.6e-90) tmp = ((x * (y * z)) - t_1) + (b * ((a * i) - (z * c))); elseif (j <= 6.2e+144) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[j, -4.8e+150], t$95$2, If[LessEqual[j, -3.3e-51], t$95$3, If[LessEqual[j, 2.6e-90], N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.2e+144], t$95$3, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot t\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := \left(t_2 + z \cdot \left(x \cdot y - b \cdot c\right)\right) - t_1\\
\mathbf{if}\;j \leq -4.8 \cdot 10^{+150}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.3 \cdot 10^{-51}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{-90}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z\right) - t_1\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 6.2 \cdot 10^{+144}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -4.80000000000000005e150 or 6.2000000000000003e144 < j Initial program 67.1%
Taylor expanded in j around inf 82.3%
if -4.80000000000000005e150 < j < -3.29999999999999973e-51 or 2.6e-90 < j < 6.2000000000000003e144Initial program 74.9%
*-commutative74.9%
*-commutative74.9%
flip--57.7%
clear-num57.7%
un-div-inv57.7%
clear-num57.8%
flip--74.9%
*-commutative74.9%
*-commutative74.9%
Applied egg-rr74.9%
Taylor expanded in c around inf 71.9%
Taylor expanded in z around 0 73.7%
if -3.29999999999999973e-51 < j < 2.6e-90Initial program 70.3%
sub-neg70.3%
distribute-lft-in70.3%
associate-*r*72.4%
distribute-rgt-neg-in72.4%
associate-*r*73.3%
Applied egg-rr73.3%
Taylor expanded in j around 0 75.5%
Final simplification76.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t c) (* y i))) (t_2 (* j t_1)) (t_3 (* a (* x t))))
(if (<= j -3e-49)
(+ (/ j (/ 1.0 t_1)) (- (* x (- (* y z) (* t a))) (* b (* z c))))
(if (<= j 1.4e-91)
(+ (- (* x (* y z)) t_3) (* b (- (* a i) (* z c))))
(if (<= j 3.25e+136) (- (+ t_2 (* z (- (* x y) (* b c)))) t_3) 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 = (t * c) - (y * i);
double t_2 = j * t_1;
double t_3 = a * (x * t);
double tmp;
if (j <= -3e-49) {
tmp = (j / (1.0 / t_1)) + ((x * ((y * z) - (t * a))) - (b * (z * c)));
} else if (j <= 1.4e-91) {
tmp = ((x * (y * z)) - t_3) + (b * ((a * i) - (z * c)));
} else if (j <= 3.25e+136) {
tmp = (t_2 + (z * ((x * y) - (b * c)))) - t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = (t * c) - (y * i)
t_2 = j * t_1
t_3 = a * (x * t)
if (j <= (-3d-49)) then
tmp = (j / (1.0d0 / t_1)) + ((x * ((y * z) - (t * a))) - (b * (z * c)))
else if (j <= 1.4d-91) then
tmp = ((x * (y * z)) - t_3) + (b * ((a * i) - (z * c)))
else if (j <= 3.25d+136) then
tmp = (t_2 + (z * ((x * y) - (b * c)))) - t_3
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 = (t * c) - (y * i);
double t_2 = j * t_1;
double t_3 = a * (x * t);
double tmp;
if (j <= -3e-49) {
tmp = (j / (1.0 / t_1)) + ((x * ((y * z) - (t * a))) - (b * (z * c)));
} else if (j <= 1.4e-91) {
tmp = ((x * (y * z)) - t_3) + (b * ((a * i) - (z * c)));
} else if (j <= 3.25e+136) {
tmp = (t_2 + (z * ((x * y) - (b * c)))) - t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * c) - (y * i) t_2 = j * t_1 t_3 = a * (x * t) tmp = 0 if j <= -3e-49: tmp = (j / (1.0 / t_1)) + ((x * ((y * z) - (t * a))) - (b * (z * c))) elif j <= 1.4e-91: tmp = ((x * (y * z)) - t_3) + (b * ((a * i) - (z * c))) elif j <= 3.25e+136: tmp = (t_2 + (z * ((x * y) - (b * c)))) - t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) t_2 = Float64(j * t_1) t_3 = Float64(a * Float64(x * t)) tmp = 0.0 if (j <= -3e-49) tmp = Float64(Float64(j / Float64(1.0 / t_1)) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c)))); elseif (j <= 1.4e-91) tmp = Float64(Float64(Float64(x * Float64(y * z)) - t_3) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 3.25e+136) tmp = Float64(Float64(t_2 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))) - t_3); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * c) - (y * i); t_2 = j * t_1; t_3 = a * (x * t); tmp = 0.0; if (j <= -3e-49) tmp = (j / (1.0 / t_1)) + ((x * ((y * z) - (t * a))) - (b * (z * c))); elseif (j <= 1.4e-91) tmp = ((x * (y * z)) - t_3) + (b * ((a * i) - (z * c))); elseif (j <= 3.25e+136) tmp = (t_2 + (z * ((x * y) - (b * c)))) - t_3; 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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3e-49], N[(N[(j / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e-91], N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.25e+136], N[(N[(t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
t_2 := j \cdot t_1\\
t_3 := a \cdot \left(x \cdot t\right)\\
\mathbf{if}\;j \leq -3 \cdot 10^{-49}:\\
\;\;\;\;\frac{j}{\frac{1}{t_1}} + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-91}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z\right) - t_3\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 3.25 \cdot 10^{+136}:\\
\;\;\;\;\left(t_2 + z \cdot \left(x \cdot y - b \cdot c\right)\right) - t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -3e-49Initial program 75.3%
*-commutative75.3%
*-commutative75.3%
flip--53.7%
clear-num53.7%
un-div-inv53.7%
clear-num53.7%
flip--75.3%
*-commutative75.3%
*-commutative75.3%
Applied egg-rr75.3%
Taylor expanded in c around inf 74.2%
if -3e-49 < j < 1.4e-91Initial program 69.6%
sub-neg69.6%
distribute-lft-in69.6%
associate-*r*71.6%
distribute-rgt-neg-in71.6%
associate-*r*72.6%
Applied egg-rr72.6%
Taylor expanded in j around 0 74.8%
if 1.4e-91 < j < 3.2499999999999999e136Initial program 73.5%
*-commutative73.5%
*-commutative73.5%
flip--57.7%
clear-num57.7%
un-div-inv57.7%
clear-num57.7%
flip--73.5%
*-commutative73.5%
*-commutative73.5%
Applied egg-rr73.5%
Taylor expanded in c around inf 68.3%
Taylor expanded in z around 0 70.1%
if 3.2499999999999999e136 < j Initial program 60.7%
Taylor expanded in j around inf 89.3%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t c) (* y i))))
(if (<= j -8e-12)
(+ (/ j (/ 1.0 t_1)) (- (* x (* y z)) (* b (* z c))))
(if (<= j 1.48e-241)
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(if (<= j 1.7e+74)
(+ (- (* c (* t j)) (* a (* x t))) (* b (- (* a i) (* z c))))
(* j 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 = (t * c) - (y * i);
double tmp;
if (j <= -8e-12) {
tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c)));
} else if (j <= 1.48e-241) {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)));
} else if (j <= 1.7e+74) {
tmp = ((c * (t * j)) - (a * (x * t))) + (b * ((a * i) - (z * c)));
} else {
tmp = j * 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 = (t * c) - (y * i)
if (j <= (-8d-12)) then
tmp = (j / (1.0d0 / t_1)) + ((x * (y * z)) - (b * (z * c)))
else if (j <= 1.48d-241) then
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))
else if (j <= 1.7d+74) then
tmp = ((c * (t * j)) - (a * (x * t))) + (b * ((a * i) - (z * c)))
else
tmp = j * 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 = (t * c) - (y * i);
double tmp;
if (j <= -8e-12) {
tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c)));
} else if (j <= 1.48e-241) {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)));
} else if (j <= 1.7e+74) {
tmp = ((c * (t * j)) - (a * (x * t))) + (b * ((a * i) - (z * c)));
} else {
tmp = j * t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * c) - (y * i) tmp = 0 if j <= -8e-12: tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c))) elif j <= 1.48e-241: tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i))) elif j <= 1.7e+74: tmp = ((c * (t * j)) - (a * (x * t))) + (b * ((a * i) - (z * c))) else: tmp = j * t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (j <= -8e-12) tmp = Float64(Float64(j / Float64(1.0 / t_1)) + Float64(Float64(x * Float64(y * z)) - Float64(b * Float64(z * c)))); elseif (j <= 1.48e-241) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); elseif (j <= 1.7e+74) tmp = Float64(Float64(Float64(c * Float64(t * j)) - Float64(a * Float64(x * t))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(j * t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * c) - (y * i); tmp = 0.0; if (j <= -8e-12) tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c))); elseif (j <= 1.48e-241) tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i))); elseif (j <= 1.7e+74) tmp = ((c * (t * j)) - (a * (x * t))) + (b * ((a * i) - (z * c))); else tmp = j * t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8e-12], N[(N[(j / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.48e-241], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.7e+74], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -8 \cdot 10^{-12}:\\
\;\;\;\;\frac{j}{\frac{1}{t_1}} + \left(x \cdot \left(y \cdot z\right) - b \cdot \left(z \cdot c\right)\right)\\
\mathbf{elif}\;j \leq 1.48 \cdot 10^{-241}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{+74}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot t_1\\
\end{array}
\end{array}
if j < -7.99999999999999984e-12Initial program 75.7%
*-commutative75.7%
*-commutative75.7%
flip--54.7%
clear-num54.7%
un-div-inv54.7%
clear-num54.8%
flip--75.7%
*-commutative75.7%
*-commutative75.7%
Applied egg-rr75.7%
Taylor expanded in c around inf 73.0%
Taylor expanded in y around inf 71.8%
if -7.99999999999999984e-12 < j < 1.47999999999999999e-241Initial program 75.6%
Taylor expanded in j around 0 78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
if 1.47999999999999999e-241 < j < 1.7e74Initial program 63.5%
Taylor expanded in y around 0 66.2%
if 1.7e74 < j Initial program 66.2%
Taylor expanded in j around inf 75.6%
Final simplification73.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t c) (* y i))) (t_2 (* x (* y z))))
(if (<= j -1.7e-49)
(+ (/ j (/ 1.0 t_1)) (- t_2 (* b (* z c))))
(if (<= j 2.5e+32)
(+ (- t_2 (* a (* x t))) (* b (- (* a i) (* z c))))
(* j 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 = (t * c) - (y * i);
double t_2 = x * (y * z);
double tmp;
if (j <= -1.7e-49) {
tmp = (j / (1.0 / t_1)) + (t_2 - (b * (z * c)));
} else if (j <= 2.5e+32) {
tmp = (t_2 - (a * (x * t))) + (b * ((a * i) - (z * c)));
} else {
tmp = j * 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) :: t_2
real(8) :: tmp
t_1 = (t * c) - (y * i)
t_2 = x * (y * z)
if (j <= (-1.7d-49)) then
tmp = (j / (1.0d0 / t_1)) + (t_2 - (b * (z * c)))
else if (j <= 2.5d+32) then
tmp = (t_2 - (a * (x * t))) + (b * ((a * i) - (z * c)))
else
tmp = j * 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 = (t * c) - (y * i);
double t_2 = x * (y * z);
double tmp;
if (j <= -1.7e-49) {
tmp = (j / (1.0 / t_1)) + (t_2 - (b * (z * c)));
} else if (j <= 2.5e+32) {
tmp = (t_2 - (a * (x * t))) + (b * ((a * i) - (z * c)));
} else {
tmp = j * t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * c) - (y * i) t_2 = x * (y * z) tmp = 0 if j <= -1.7e-49: tmp = (j / (1.0 / t_1)) + (t_2 - (b * (z * c))) elif j <= 2.5e+32: tmp = (t_2 - (a * (x * t))) + (b * ((a * i) - (z * c))) else: tmp = j * t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (j <= -1.7e-49) tmp = Float64(Float64(j / Float64(1.0 / t_1)) + Float64(t_2 - Float64(b * Float64(z * c)))); elseif (j <= 2.5e+32) tmp = Float64(Float64(t_2 - Float64(a * Float64(x * t))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(j * t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * c) - (y * i); t_2 = x * (y * z); tmp = 0.0; if (j <= -1.7e-49) tmp = (j / (1.0 / t_1)) + (t_2 - (b * (z * c))); elseif (j <= 2.5e+32) tmp = (t_2 - (a * (x * t))) + (b * ((a * i) - (z * c))); else tmp = j * t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.7e-49], N[(N[(j / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.5e+32], N[(N[(t$95$2 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{-49}:\\
\;\;\;\;\frac{j}{\frac{1}{t_1}} + \left(t_2 - b \cdot \left(z \cdot c\right)\right)\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{+32}:\\
\;\;\;\;\left(t_2 - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot t_1\\
\end{array}
\end{array}
if j < -1.70000000000000002e-49Initial program 75.3%
*-commutative75.3%
*-commutative75.3%
flip--53.7%
clear-num53.7%
un-div-inv53.7%
clear-num53.7%
flip--75.3%
*-commutative75.3%
*-commutative75.3%
Applied egg-rr75.3%
Taylor expanded in c around inf 74.2%
Taylor expanded in y around inf 70.6%
if -1.70000000000000002e-49 < j < 2.4999999999999999e32Initial program 70.2%
sub-neg70.2%
distribute-lft-in70.2%
associate-*r*70.4%
distribute-rgt-neg-in70.4%
associate-*r*72.6%
Applied egg-rr72.6%
Taylor expanded in j around 0 73.1%
if 2.4999999999999999e32 < j Initial program 67.5%
Taylor expanded in j around inf 71.7%
Final simplification72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t c) (* y i))))
(if (<= j -1.04e-11)
(+ (/ j (/ 1.0 t_1)) (- (* x (* y z)) (* b (* z c))))
(if (<= j 7e+31)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j 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 = (t * c) - (y * i);
double tmp;
if (j <= -1.04e-11) {
tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c)));
} else if (j <= 7e+31) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = j * 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 = (t * c) - (y * i)
if (j <= (-1.04d-11)) then
tmp = (j / (1.0d0 / t_1)) + ((x * (y * z)) - (b * (z * c)))
else if (j <= 7d+31) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else
tmp = j * 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 = (t * c) - (y * i);
double tmp;
if (j <= -1.04e-11) {
tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c)));
} else if (j <= 7e+31) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = j * t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * c) - (y * i) tmp = 0 if j <= -1.04e-11: tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c))) elif j <= 7e+31: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) else: tmp = j * t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (j <= -1.04e-11) tmp = Float64(Float64(j / Float64(1.0 / t_1)) + Float64(Float64(x * Float64(y * z)) - Float64(b * Float64(z * c)))); elseif (j <= 7e+31) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(j * t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * c) - (y * i); tmp = 0.0; if (j <= -1.04e-11) tmp = (j / (1.0 / t_1)) + ((x * (y * z)) - (b * (z * c))); elseif (j <= 7e+31) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); else tmp = j * t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.04e-11], N[(N[(j / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7e+31], 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 * t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -1.04 \cdot 10^{-11}:\\
\;\;\;\;\frac{j}{\frac{1}{t_1}} + \left(x \cdot \left(y \cdot z\right) - b \cdot \left(z \cdot c\right)\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot t_1\\
\end{array}
\end{array}
if j < -1.03999999999999993e-11Initial program 75.7%
*-commutative75.7%
*-commutative75.7%
flip--54.7%
clear-num54.7%
un-div-inv54.7%
clear-num54.8%
flip--75.7%
*-commutative75.7%
*-commutative75.7%
Applied egg-rr75.7%
Taylor expanded in c around inf 73.0%
Taylor expanded in y around inf 71.8%
if -1.03999999999999993e-11 < j < 7e31Initial program 70.3%
Taylor expanded in j around 0 71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
if 7e31 < j Initial program 67.5%
Taylor expanded in j around inf 71.7%
Final simplification71.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.45e+37) (not (<= j 2.8e+32))) (* j (- (* t c) (* y i))) (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.45e+37) || !(j <= 2.8e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
}
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 <= (-1.45d+37)) .or. (.not. (j <= 2.8d+32))) then
tmp = j * ((t * c) - (y * i))
else
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
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 <= -1.45e+37) || !(j <= 2.8e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.45e+37) or not (j <= 2.8e+32): tmp = j * ((t * c) - (y * i)) else: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.45e+37) || !(j <= 2.8e+32)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.45e+37) || ~((j <= 2.8e+32))) tmp = j * ((t * c) - (y * i)); else tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.45e+37], N[Not[LessEqual[j, 2.8e+32]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.45 \cdot 10^{+37} \lor \neg \left(j \leq 2.8 \cdot 10^{+32}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.44999999999999989e37 or 2.8e32 < j Initial program 70.5%
Taylor expanded in j around inf 71.6%
if -1.44999999999999989e37 < j < 2.8e32Initial program 71.5%
Taylor expanded in j around 0 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -9.5e-20)
t_2
(if (<= c -1.2e-58)
(* x (* y z))
(if (<= c -1.7e-88)
t_2
(if (<= c -7.2e-248)
t_1
(if (<= c 4.4e-170)
(* (* t a) (- x))
(if (<= c 6.8e+57) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -9.5e-20) {
tmp = t_2;
} else if (c <= -1.2e-58) {
tmp = x * (y * z);
} else if (c <= -1.7e-88) {
tmp = t_2;
} else if (c <= -7.2e-248) {
tmp = t_1;
} else if (c <= 4.4e-170) {
tmp = (t * a) * -x;
} else if (c <= 6.8e+57) {
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 = c * ((t * j) - (z * b))
if (c <= (-9.5d-20)) then
tmp = t_2
else if (c <= (-1.2d-58)) then
tmp = x * (y * z)
else if (c <= (-1.7d-88)) then
tmp = t_2
else if (c <= (-7.2d-248)) then
tmp = t_1
else if (c <= 4.4d-170) then
tmp = (t * a) * -x
else if (c <= 6.8d+57) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -9.5e-20) {
tmp = t_2;
} else if (c <= -1.2e-58) {
tmp = x * (y * z);
} else if (c <= -1.7e-88) {
tmp = t_2;
} else if (c <= -7.2e-248) {
tmp = t_1;
} else if (c <= 4.4e-170) {
tmp = (t * a) * -x;
} else if (c <= 6.8e+57) {
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 = c * ((t * j) - (z * b)) tmp = 0 if c <= -9.5e-20: tmp = t_2 elif c <= -1.2e-58: tmp = x * (y * z) elif c <= -1.7e-88: tmp = t_2 elif c <= -7.2e-248: tmp = t_1 elif c <= 4.4e-170: tmp = (t * a) * -x elif c <= 6.8e+57: 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(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -9.5e-20) tmp = t_2; elseif (c <= -1.2e-58) tmp = Float64(x * Float64(y * z)); elseif (c <= -1.7e-88) tmp = t_2; elseif (c <= -7.2e-248) tmp = t_1; elseif (c <= 4.4e-170) tmp = Float64(Float64(t * a) * Float64(-x)); elseif (c <= 6.8e+57) 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 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -9.5e-20) tmp = t_2; elseif (c <= -1.2e-58) tmp = x * (y * z); elseif (c <= -1.7e-88) tmp = t_2; elseif (c <= -7.2e-248) tmp = t_1; elseif (c <= 4.4e-170) tmp = (t * a) * -x; elseif (c <= 6.8e+57) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.5e-20], t$95$2, If[LessEqual[c, -1.2e-58], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.7e-88], t$95$2, If[LessEqual[c, -7.2e-248], t$95$1, If[LessEqual[c, 4.4e-170], N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[c, 6.8e+57], 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 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -9.5 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{-58}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-88}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -7.2 \cdot 10^{-248}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-170}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -9.5e-20 or -1.2e-58 < c < -1.69999999999999987e-88 or 6.79999999999999984e57 < c Initial program 63.1%
Taylor expanded in c around inf 65.2%
if -9.5e-20 < c < -1.2e-58Initial program 100.0%
Taylor expanded in y around inf 85.8%
+-commutative85.8%
mul-1-neg85.8%
unsub-neg85.8%
*-commutative85.8%
Applied egg-rr85.8%
Taylor expanded in x around inf 86.1%
if -1.69999999999999987e-88 < c < -7.19999999999999969e-248 or 4.40000000000000029e-170 < c < 6.79999999999999984e57Initial program 82.2%
Taylor expanded in b around inf 47.6%
*-commutative47.6%
Simplified47.6%
if -7.19999999999999969e-248 < c < 4.40000000000000029e-170Initial program 72.1%
Taylor expanded in y around 0 54.3%
Taylor expanded in x around inf 39.9%
associate-*r*39.9%
neg-mul-139.9%
*-commutative39.9%
*-commutative39.9%
associate-*l*44.0%
Simplified44.0%
Final simplification57.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= j -6.2e-18)
t_3
(if (<= j -4.2e-61)
t_1
(if (<= j -1.35e-123)
(* c (- (* t j) (* z b)))
(if (<= j -4.8e-225)
t_2
(if (<= j -1.16e-296) t_1 (if (<= j 1.7e-19) 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 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -6.2e-18) {
tmp = t_3;
} else if (j <= -4.2e-61) {
tmp = t_1;
} else if (j <= -1.35e-123) {
tmp = c * ((t * j) - (z * b));
} else if (j <= -4.8e-225) {
tmp = t_2;
} else if (j <= -1.16e-296) {
tmp = t_1;
} else if (j <= 1.7e-19) {
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 = x * ((y * z) - (t * a))
t_2 = b * ((a * i) - (z * c))
t_3 = j * ((t * c) - (y * i))
if (j <= (-6.2d-18)) then
tmp = t_3
else if (j <= (-4.2d-61)) then
tmp = t_1
else if (j <= (-1.35d-123)) then
tmp = c * ((t * j) - (z * b))
else if (j <= (-4.8d-225)) then
tmp = t_2
else if (j <= (-1.16d-296)) then
tmp = t_1
else if (j <= 1.7d-19) 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 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -6.2e-18) {
tmp = t_3;
} else if (j <= -4.2e-61) {
tmp = t_1;
} else if (j <= -1.35e-123) {
tmp = c * ((t * j) - (z * b));
} else if (j <= -4.8e-225) {
tmp = t_2;
} else if (j <= -1.16e-296) {
tmp = t_1;
} else if (j <= 1.7e-19) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((a * i) - (z * c)) t_3 = j * ((t * c) - (y * i)) tmp = 0 if j <= -6.2e-18: tmp = t_3 elif j <= -4.2e-61: tmp = t_1 elif j <= -1.35e-123: tmp = c * ((t * j) - (z * b)) elif j <= -4.8e-225: tmp = t_2 elif j <= -1.16e-296: tmp = t_1 elif j <= 1.7e-19: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -6.2e-18) tmp = t_3; elseif (j <= -4.2e-61) tmp = t_1; elseif (j <= -1.35e-123) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (j <= -4.8e-225) tmp = t_2; elseif (j <= -1.16e-296) tmp = t_1; elseif (j <= 1.7e-19) 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 = x * ((y * z) - (t * a)); t_2 = b * ((a * i) - (z * c)); t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -6.2e-18) tmp = t_3; elseif (j <= -4.2e-61) tmp = t_1; elseif (j <= -1.35e-123) tmp = c * ((t * j) - (z * b)); elseif (j <= -4.8e-225) tmp = t_2; elseif (j <= -1.16e-296) tmp = t_1; elseif (j <= 1.7e-19) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.2e-18], t$95$3, If[LessEqual[j, -4.2e-61], t$95$1, If[LessEqual[j, -1.35e-123], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.8e-225], t$95$2, If[LessEqual[j, -1.16e-296], t$95$1, If[LessEqual[j, 1.7e-19], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -6.2 \cdot 10^{-18}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.35 \cdot 10^{-123}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq -4.8 \cdot 10^{-225}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.16 \cdot 10^{-296}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{-19}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -6.20000000000000014e-18 or 1.7000000000000001e-19 < j Initial program 72.8%
Taylor expanded in j around inf 66.5%
if -6.20000000000000014e-18 < j < -4.1999999999999998e-61 or -4.79999999999999992e-225 < j < -1.15999999999999996e-296Initial program 71.3%
Taylor expanded in x around inf 74.7%
*-commutative74.7%
Simplified74.7%
if -4.1999999999999998e-61 < j < -1.35e-123Initial program 63.4%
Taylor expanded in c around inf 69.7%
if -1.35e-123 < j < -4.79999999999999992e-225 or -1.15999999999999996e-296 < j < 1.7000000000000001e-19Initial program 69.3%
Taylor expanded in b around inf 51.3%
*-commutative51.3%
Simplified51.3%
Final simplification62.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= j -58000000000000.0)
t_2
(if (<= j -5.8e-236)
(* z (- (* x y) (* b c)))
(if (<= j -6.8e-298)
t_1
(if (<= j 6.5e-87)
(* b (- (* a i) (* z c)))
(if (<= j 7e+31) 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 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -58000000000000.0) {
tmp = t_2;
} else if (j <= -5.8e-236) {
tmp = z * ((x * y) - (b * c));
} else if (j <= -6.8e-298) {
tmp = t_1;
} else if (j <= 6.5e-87) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 7e+31) {
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 = a * ((b * i) - (x * t))
t_2 = j * ((t * c) - (y * i))
if (j <= (-58000000000000.0d0)) then
tmp = t_2
else if (j <= (-5.8d-236)) then
tmp = z * ((x * y) - (b * c))
else if (j <= (-6.8d-298)) then
tmp = t_1
else if (j <= 6.5d-87) then
tmp = b * ((a * i) - (z * c))
else if (j <= 7d+31) 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 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -58000000000000.0) {
tmp = t_2;
} else if (j <= -5.8e-236) {
tmp = z * ((x * y) - (b * c));
} else if (j <= -6.8e-298) {
tmp = t_1;
} else if (j <= 6.5e-87) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 7e+31) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -58000000000000.0: tmp = t_2 elif j <= -5.8e-236: tmp = z * ((x * y) - (b * c)) elif j <= -6.8e-298: tmp = t_1 elif j <= 6.5e-87: tmp = b * ((a * i) - (z * c)) elif j <= 7e+31: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -58000000000000.0) tmp = t_2; elseif (j <= -5.8e-236) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= -6.8e-298) tmp = t_1; elseif (j <= 6.5e-87) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 7e+31) 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 = a * ((b * i) - (x * t)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -58000000000000.0) tmp = t_2; elseif (j <= -5.8e-236) tmp = z * ((x * y) - (b * c)); elseif (j <= -6.8e-298) tmp = t_1; elseif (j <= 6.5e-87) tmp = b * ((a * i) - (z * c)); elseif (j <= 7e+31) 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -58000000000000.0], t$95$2, If[LessEqual[j, -5.8e-236], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.8e-298], t$95$1, If[LessEqual[j, 6.5e-87], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7e+31], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -58000000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-236}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq -6.8 \cdot 10^{-298}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-87}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{+31}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -5.8e13 or 7e31 < j Initial program 71.5%
Taylor expanded in j around inf 71.0%
if -5.8e13 < j < -5.8e-236Initial program 75.5%
Taylor expanded in z around inf 56.1%
*-commutative56.1%
*-commutative56.1%
Simplified56.1%
if -5.8e-236 < j < -6.8e-298 or 6.5000000000000003e-87 < j < 7e31Initial program 73.6%
Taylor expanded in a around -inf 59.6%
associate-*r*59.6%
neg-mul-159.6%
*-commutative59.6%
Simplified59.6%
if -6.8e-298 < j < 6.5000000000000003e-87Initial program 60.8%
Taylor expanded in b around inf 55.5%
*-commutative55.5%
Simplified55.5%
Final simplification63.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.35e+35) (not (<= j 8.5e+31))) (* j (- (* t c) (* y i))) (- (* x (- (* y z) (* t a))) (* c (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.35e+35) || !(j <= 8.5e+31)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
}
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 <= (-1.35d+35)) .or. (.not. (j <= 8.5d+31))) then
tmp = j * ((t * c) - (y * i))
else
tmp = (x * ((y * z) - (t * a))) - (c * (z * b))
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 <= -1.35e+35) || !(j <= 8.5e+31)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.35e+35) or not (j <= 8.5e+31): tmp = j * ((t * c) - (y * i)) else: tmp = (x * ((y * z) - (t * a))) - (c * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.35e+35) || !(j <= 8.5e+31)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.35e+35) || ~((j <= 8.5e+31))) tmp = j * ((t * c) - (y * i)); else tmp = (x * ((y * z) - (t * a))) - (c * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.35e+35], N[Not[LessEqual[j, 8.5e+31]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.35 \cdot 10^{+35} \lor \neg \left(j \leq 8.5 \cdot 10^{+31}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if j < -1.35000000000000001e35 or 8.49999999999999947e31 < j Initial program 70.5%
Taylor expanded in j around inf 71.6%
if -1.35000000000000001e35 < j < 8.49999999999999947e31Initial program 71.5%
*-commutative71.5%
*-commutative71.5%
flip--50.7%
clear-num50.7%
un-div-inv50.7%
clear-num50.7%
flip--71.6%
*-commutative71.6%
*-commutative71.6%
Applied egg-rr71.6%
Taylor expanded in c around inf 61.0%
Taylor expanded in j around 0 58.5%
associate-*r*60.4%
*-commutative60.4%
associate-*r*60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Final simplification65.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -160000.0) (not (<= j 2.2e+32))) (* j (- (* t c) (* y i))) (- (* b (- (* a i) (* z c))) (* x (* t a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -160000.0) || !(j <= 2.2e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (x * (t * a));
}
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 <= (-160000.0d0)) .or. (.not. (j <= 2.2d+32))) then
tmp = j * ((t * c) - (y * i))
else
tmp = (b * ((a * i) - (z * c))) - (x * (t * a))
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 <= -160000.0) || !(j <= 2.2e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (x * (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -160000.0) or not (j <= 2.2e+32): tmp = j * ((t * c) - (y * i)) else: tmp = (b * ((a * i) - (z * c))) - (x * (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -160000.0) || !(j <= 2.2e+32)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -160000.0) || ~((j <= 2.2e+32))) tmp = j * ((t * c) - (y * i)); else tmp = (b * ((a * i) - (z * c))) - (x * (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -160000.0], N[Not[LessEqual[j, 2.2e+32]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -160000 \lor \neg \left(j \leq 2.2 \cdot 10^{+32}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if j < -1.6e5 or 2.20000000000000001e32 < j Initial program 71.5%
Taylor expanded in j around inf 71.0%
if -1.6e5 < j < 2.20000000000000001e32Initial program 70.7%
Taylor expanded in y around 0 66.5%
Taylor expanded in j around 0 65.1%
associate-*r*65.1%
neg-mul-165.1%
*-commutative65.1%
*-commutative65.1%
associate-*l*62.6%
*-commutative62.6%
*-commutative62.6%
*-commutative62.6%
Simplified62.6%
Final simplification66.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -4.8e+14) (not (<= j 2.25e+32))) (* j (- (* t c) (* y i))) (- (* b (- (* a i) (* z c))) (* a (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -4.8e+14) || !(j <= 2.25e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
}
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 <= (-4.8d+14)) .or. (.not. (j <= 2.25d+32))) then
tmp = j * ((t * c) - (y * i))
else
tmp = (b * ((a * i) - (z * c))) - (a * (x * t))
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 <= -4.8e+14) || !(j <= 2.25e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -4.8e+14) or not (j <= 2.25e+32): tmp = j * ((t * c) - (y * i)) else: tmp = (b * ((a * i) - (z * c))) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -4.8e+14) || !(j <= 2.25e+32)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -4.8e+14) || ~((j <= 2.25e+32))) tmp = j * ((t * c) - (y * i)); else tmp = (b * ((a * i) - (z * c))) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -4.8e+14], N[Not[LessEqual[j, 2.25e+32]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.8 \cdot 10^{+14} \lor \neg \left(j \leq 2.25 \cdot 10^{+32}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if j < -4.8e14 or 2.2500000000000002e32 < j Initial program 71.5%
Taylor expanded in j around inf 71.0%
if -4.8e14 < j < 2.2500000000000002e32Initial program 70.7%
Taylor expanded in y around 0 66.5%
Taylor expanded in j around 0 65.1%
Final simplification67.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -23.0)
t_1
(if (<= j -1.76e-236)
(* z (- (* x y) (* b c)))
(if (<= j -5.1e-297)
(* x (- (* y z) (* t a)))
(if (<= j 4.8e-20) (* b (- (* a i) (* z c))) 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -23.0) {
tmp = t_1;
} else if (j <= -1.76e-236) {
tmp = z * ((x * y) - (b * c));
} else if (j <= -5.1e-297) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 4.8e-20) {
tmp = b * ((a * i) - (z * c));
} 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 = j * ((t * c) - (y * i))
if (j <= (-23.0d0)) then
tmp = t_1
else if (j <= (-1.76d-236)) then
tmp = z * ((x * y) - (b * c))
else if (j <= (-5.1d-297)) then
tmp = x * ((y * z) - (t * a))
else if (j <= 4.8d-20) then
tmp = b * ((a * i) - (z * c))
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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -23.0) {
tmp = t_1;
} else if (j <= -1.76e-236) {
tmp = z * ((x * y) - (b * c));
} else if (j <= -5.1e-297) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 4.8e-20) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -23.0: tmp = t_1 elif j <= -1.76e-236: tmp = z * ((x * y) - (b * c)) elif j <= -5.1e-297: tmp = x * ((y * z) - (t * a)) elif j <= 4.8e-20: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -23.0) tmp = t_1; elseif (j <= -1.76e-236) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= -5.1e-297) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (j <= 4.8e-20) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -23.0) tmp = t_1; elseif (j <= -1.76e-236) tmp = z * ((x * y) - (b * c)); elseif (j <= -5.1e-297) tmp = x * ((y * z) - (t * a)); elseif (j <= 4.8e-20) tmp = b * ((a * i) - (z * c)); else tmp = t_1; 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]}, If[LessEqual[j, -23.0], t$95$1, If[LessEqual[j, -1.76e-236], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.1e-297], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.8e-20], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -23:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.76 \cdot 10^{-236}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq -5.1 \cdot 10^{-297}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{-20}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -23 or 4.79999999999999986e-20 < j Initial program 72.2%
Taylor expanded in j around inf 67.2%
if -23 < j < -1.75999999999999998e-236Initial program 75.5%
Taylor expanded in z around inf 56.1%
*-commutative56.1%
*-commutative56.1%
Simplified56.1%
if -1.75999999999999998e-236 < j < -5.10000000000000008e-297Initial program 77.4%
Taylor expanded in x around inf 77.7%
*-commutative77.7%
Simplified77.7%
if -5.10000000000000008e-297 < j < 4.79999999999999986e-20Initial program 62.5%
Taylor expanded in b around inf 50.2%
*-commutative50.2%
Simplified50.2%
Final simplification61.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -2.1e+25)
t_1
(if (<= b 6.5e-251)
(* (* t a) (- x))
(if (<= b 4.5e+20) (* i (* y (- j))) 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.1e+25) {
tmp = t_1;
} else if (b <= 6.5e-251) {
tmp = (t * a) * -x;
} else if (b <= 4.5e+20) {
tmp = i * (y * -j);
} 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 = b * ((a * i) - (z * c))
if (b <= (-2.1d+25)) then
tmp = t_1
else if (b <= 6.5d-251) then
tmp = (t * a) * -x
else if (b <= 4.5d+20) then
tmp = i * (y * -j)
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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.1e+25) {
tmp = t_1;
} else if (b <= 6.5e-251) {
tmp = (t * a) * -x;
} else if (b <= 4.5e+20) {
tmp = i * (y * -j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.1e+25: tmp = t_1 elif b <= 6.5e-251: tmp = (t * a) * -x elif b <= 4.5e+20: tmp = i * (y * -j) else: tmp = t_1 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 (b <= -2.1e+25) tmp = t_1; elseif (b <= 6.5e-251) tmp = Float64(Float64(t * a) * Float64(-x)); elseif (b <= 4.5e+20) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = t_1; 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 (b <= -2.1e+25) tmp = t_1; elseif (b <= 6.5e-251) tmp = (t * a) * -x; elseif (b <= 4.5e+20) tmp = i * (y * -j); else tmp = t_1; 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[b, -2.1e+25], t$95$1, If[LessEqual[b, 6.5e-251], N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[b, 4.5e+20], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.1 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-251}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+20}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.0999999999999999e25 or 4.5e20 < b Initial program 71.4%
Taylor expanded in b around inf 62.4%
*-commutative62.4%
Simplified62.4%
if -2.0999999999999999e25 < b < 6.5000000000000002e-251Initial program 71.5%
Taylor expanded in y around 0 51.8%
Taylor expanded in x around inf 37.3%
associate-*r*37.3%
neg-mul-137.3%
*-commutative37.3%
*-commutative37.3%
associate-*l*38.5%
Simplified38.5%
if 6.5000000000000002e-251 < b < 4.5e20Initial program 69.5%
*-commutative69.5%
*-commutative69.5%
flip--41.2%
clear-num41.2%
un-div-inv41.2%
clear-num41.2%
flip--69.6%
*-commutative69.6%
*-commutative69.6%
Applied egg-rr69.6%
Taylor expanded in c around inf 68.9%
Taylor expanded in i around inf 38.2%
associate-*r*38.2%
neg-mul-138.2%
*-commutative38.2%
Simplified38.2%
Final simplification50.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -2.9e-7)
t_1
(if (<= i -1.7e-240)
(* t (- (* c j) (* x a)))
(if (<= i 1.92e-72) (* c (- (* t j) (* z b))) 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) - (y * j));
double tmp;
if (i <= -2.9e-7) {
tmp = t_1;
} else if (i <= -1.7e-240) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 1.92e-72) {
tmp = c * ((t * j) - (z * b));
} 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) - (y * j))
if (i <= (-2.9d-7)) then
tmp = t_1
else if (i <= (-1.7d-240)) then
tmp = t * ((c * j) - (x * a))
else if (i <= 1.92d-72) then
tmp = c * ((t * j) - (z * b))
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) - (y * j));
double tmp;
if (i <= -2.9e-7) {
tmp = t_1;
} else if (i <= -1.7e-240) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 1.92e-72) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.9e-7: tmp = t_1 elif i <= -1.7e-240: tmp = t * ((c * j) - (x * a)) elif i <= 1.92e-72: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.9e-7) tmp = t_1; elseif (i <= -1.7e-240) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 1.92e-72) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); 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) - (y * j)); tmp = 0.0; if (i <= -2.9e-7) tmp = t_1; elseif (i <= -1.7e-240) tmp = t * ((c * j) - (x * a)); elseif (i <= 1.92e-72) tmp = c * ((t * j) - (z * b)); 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[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.9e-7], t$95$1, If[LessEqual[i, -1.7e-240], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.92e-72], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.9 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.7 \cdot 10^{-240}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 1.92 \cdot 10^{-72}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -2.8999999999999998e-7 or 1.92000000000000004e-72 < i Initial program 64.5%
Taylor expanded in i around -inf 60.6%
associate-*r*60.6%
mul-1-neg60.6%
*-commutative60.6%
Simplified60.6%
if -2.8999999999999998e-7 < i < -1.69999999999999995e-240Initial program 84.6%
Taylor expanded in t around inf 57.0%
if -1.69999999999999995e-240 < i < 1.92000000000000004e-72Initial program 74.5%
Taylor expanded in c around inf 64.9%
Final simplification60.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -7.5e-48) (not (<= j 3e-19))) (* j (- (* t c) (* y i))) (* b (- (* a i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -7.5e-48) || !(j <= 3e-19)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = b * ((a * i) - (z * c));
}
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 <= (-7.5d-48)) .or. (.not. (j <= 3d-19))) then
tmp = j * ((t * c) - (y * i))
else
tmp = b * ((a * i) - (z * c))
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 <= -7.5e-48) || !(j <= 3e-19)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -7.5e-48) or not (j <= 3e-19): tmp = j * ((t * c) - (y * i)) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -7.5e-48) || !(j <= 3e-19)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -7.5e-48) || ~((j <= 3e-19))) tmp = j * ((t * c) - (y * i)); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -7.5e-48], N[Not[LessEqual[j, 3e-19]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{-48} \lor \neg \left(j \leq 3 \cdot 10^{-19}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -7.50000000000000042e-48 or 2.99999999999999993e-19 < j Initial program 72.6%
Taylor expanded in j around inf 65.2%
if -7.50000000000000042e-48 < j < 2.99999999999999993e-19Initial program 69.3%
Taylor expanded in b around inf 50.4%
*-commutative50.4%
Simplified50.4%
Final simplification58.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* z b)))))
(if (<= c -1e-19)
t_1
(if (<= c -1.6e-114)
(* z (* x y))
(if (<= c 3.6e+72) (* i (* a b)) 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 = c * -(z * b);
double tmp;
if (c <= -1e-19) {
tmp = t_1;
} else if (c <= -1.6e-114) {
tmp = z * (x * y);
} else if (c <= 3.6e+72) {
tmp = i * (a * b);
} 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 = c * -(z * b)
if (c <= (-1d-19)) then
tmp = t_1
else if (c <= (-1.6d-114)) then
tmp = z * (x * y)
else if (c <= 3.6d+72) then
tmp = i * (a * b)
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 = c * -(z * b);
double tmp;
if (c <= -1e-19) {
tmp = t_1;
} else if (c <= -1.6e-114) {
tmp = z * (x * y);
} else if (c <= 3.6e+72) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * -(z * b) tmp = 0 if c <= -1e-19: tmp = t_1 elif c <= -1.6e-114: tmp = z * (x * y) elif c <= 3.6e+72: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(-Float64(z * b))) tmp = 0.0 if (c <= -1e-19) tmp = t_1; elseif (c <= -1.6e-114) tmp = Float64(z * Float64(x * y)); elseif (c <= 3.6e+72) tmp = Float64(i * Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * -(z * b); tmp = 0.0; if (c <= -1e-19) tmp = t_1; elseif (c <= -1.6e-114) tmp = z * (x * y); elseif (c <= 3.6e+72) tmp = i * (a * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[c, -1e-19], t$95$1, If[LessEqual[c, -1.6e-114], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.6e+72], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-z \cdot b\right)\\
\mathbf{if}\;c \leq -1 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.6 \cdot 10^{-114}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{+72}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -9.9999999999999998e-20 or 3.60000000000000035e72 < c Initial program 62.6%
Taylor expanded in z around inf 45.4%
*-commutative45.4%
*-commutative45.4%
Simplified45.4%
Taylor expanded in y around 0 37.7%
*-commutative37.7%
mul-1-neg37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
Taylor expanded in z around 0 33.5%
mul-1-neg33.5%
associate-*r*37.7%
*-commutative37.7%
associate-*r*37.1%
*-commutative37.1%
distribute-lft-neg-out37.1%
*-commutative37.1%
distribute-lft-neg-in37.1%
*-commutative37.1%
Simplified37.1%
if -9.9999999999999998e-20 < c < -1.6000000000000001e-114Initial program 89.5%
Taylor expanded in z around inf 48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in y around inf 48.9%
if -1.6000000000000001e-114 < c < 3.60000000000000035e72Initial program 77.6%
Taylor expanded in b around inf 39.1%
*-commutative39.1%
Simplified39.1%
Taylor expanded in i around inf 31.3%
Taylor expanded in b around 0 30.5%
associate-*r*31.5%
*-commutative31.5%
Simplified31.5%
Final simplification35.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -7.5e+27)
(* c (- (* z b)))
(if (<= b 6.8e-251)
(* (* t a) (- x))
(if (<= b 2.5e+102) (* i (* y (- j))) (* a (* b 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.5e+27) {
tmp = c * -(z * b);
} else if (b <= 6.8e-251) {
tmp = (t * a) * -x;
} else if (b <= 2.5e+102) {
tmp = i * (y * -j);
} else {
tmp = a * (b * 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.5d+27)) then
tmp = c * -(z * b)
else if (b <= 6.8d-251) then
tmp = (t * a) * -x
else if (b <= 2.5d+102) then
tmp = i * (y * -j)
else
tmp = a * (b * 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.5e+27) {
tmp = c * -(z * b);
} else if (b <= 6.8e-251) {
tmp = (t * a) * -x;
} else if (b <= 2.5e+102) {
tmp = i * (y * -j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -7.5e+27: tmp = c * -(z * b) elif b <= 6.8e-251: tmp = (t * a) * -x elif b <= 2.5e+102: tmp = i * (y * -j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -7.5e+27) tmp = Float64(c * Float64(-Float64(z * b))); elseif (b <= 6.8e-251) tmp = Float64(Float64(t * a) * Float64(-x)); elseif (b <= 2.5e+102) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -7.5e+27) tmp = c * -(z * b); elseif (b <= 6.8e-251) tmp = (t * a) * -x; elseif (b <= 2.5e+102) tmp = i * (y * -j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -7.5e+27], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 6.8e-251], N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[b, 2.5e+102], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-251}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+102}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -7.5000000000000002e27Initial program 71.4%
Taylor expanded in z around inf 47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in y around 0 36.6%
*-commutative36.6%
mul-1-neg36.6%
distribute-rgt-neg-in36.6%
Simplified36.6%
Taylor expanded in z around 0 38.0%
mul-1-neg38.0%
associate-*r*36.6%
*-commutative36.6%
associate-*r*41.9%
*-commutative41.9%
distribute-lft-neg-out41.9%
*-commutative41.9%
distribute-lft-neg-in41.9%
*-commutative41.9%
Simplified41.9%
if -7.5000000000000002e27 < b < 6.80000000000000034e-251Initial program 70.8%
Taylor expanded in y around 0 51.2%
Taylor expanded in x around inf 36.9%
associate-*r*36.9%
neg-mul-136.9%
*-commutative36.9%
*-commutative36.9%
associate-*l*38.0%
Simplified38.0%
if 6.80000000000000034e-251 < b < 2.5e102Initial program 65.5%
*-commutative65.5%
*-commutative65.5%
flip--41.5%
clear-num41.5%
un-div-inv41.5%
clear-num41.5%
flip--65.5%
*-commutative65.5%
*-commutative65.5%
Applied egg-rr65.5%
Taylor expanded in c around inf 62.2%
Taylor expanded in i around inf 34.9%
associate-*r*34.9%
neg-mul-134.9%
*-commutative34.9%
Simplified34.9%
if 2.5e102 < b Initial program 80.2%
Taylor expanded in b around inf 66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in i around inf 44.4%
Taylor expanded in b around 0 44.5%
Final simplification39.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -4.8e+27) (* c (- (* z b))) (if (<= b 3600000000000.0) (* (* t a) (- x)) (* a (* b 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 <= -4.8e+27) {
tmp = c * -(z * b);
} else if (b <= 3600000000000.0) {
tmp = (t * a) * -x;
} else {
tmp = a * (b * 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 <= (-4.8d+27)) then
tmp = c * -(z * b)
else if (b <= 3600000000000.0d0) then
tmp = (t * a) * -x
else
tmp = a * (b * 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 <= -4.8e+27) {
tmp = c * -(z * b);
} else if (b <= 3600000000000.0) {
tmp = (t * a) * -x;
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.8e+27: tmp = c * -(z * b) elif b <= 3600000000000.0: tmp = (t * a) * -x else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.8e+27) tmp = Float64(c * Float64(-Float64(z * b))); elseif (b <= 3600000000000.0) tmp = Float64(Float64(t * a) * Float64(-x)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.8e+27) tmp = c * -(z * b); elseif (b <= 3600000000000.0) tmp = (t * a) * -x; else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.8e+27], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 3600000000000.0], N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;b \leq 3600000000000:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -4.79999999999999995e27Initial program 71.4%
Taylor expanded in z around inf 47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in y around 0 36.6%
*-commutative36.6%
mul-1-neg36.6%
distribute-rgt-neg-in36.6%
Simplified36.6%
Taylor expanded in z around 0 38.0%
mul-1-neg38.0%
associate-*r*36.6%
*-commutative36.6%
associate-*r*41.9%
*-commutative41.9%
distribute-lft-neg-out41.9%
*-commutative41.9%
distribute-lft-neg-in41.9%
*-commutative41.9%
Simplified41.9%
if -4.79999999999999995e27 < b < 3.6e12Initial program 69.6%
Taylor expanded in y around 0 46.9%
Taylor expanded in x around inf 31.0%
associate-*r*31.0%
neg-mul-131.0%
*-commutative31.0%
*-commutative31.0%
associate-*l*32.8%
Simplified32.8%
if 3.6e12 < b Initial program 74.0%
Taylor expanded in b around inf 59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in i around inf 35.2%
Taylor expanded in b around 0 36.9%
Final simplification36.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -5.6e+39) (not (<= z 19.0))) (* y (* x z)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -5.6e+39) || !(z <= 19.0)) {
tmp = y * (x * z);
} else {
tmp = a * (b * 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 ((z <= (-5.6d+39)) .or. (.not. (z <= 19.0d0))) then
tmp = y * (x * z)
else
tmp = a * (b * 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 ((z <= -5.6e+39) || !(z <= 19.0)) {
tmp = y * (x * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -5.6e+39) or not (z <= 19.0): tmp = y * (x * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -5.6e+39) || !(z <= 19.0)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -5.6e+39) || ~((z <= 19.0))) tmp = y * (x * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -5.6e+39], N[Not[LessEqual[z, 19.0]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{+39} \lor \neg \left(z \leq 19\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -5.60000000000000003e39 or 19 < z Initial program 56.9%
Taylor expanded in y around inf 40.7%
Taylor expanded in i around 0 31.4%
if -5.60000000000000003e39 < z < 19Initial program 81.1%
Taylor expanded in b around inf 35.7%
*-commutative35.7%
Simplified35.7%
Taylor expanded in i around inf 26.8%
Taylor expanded in b around 0 28.7%
Final simplification29.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -5.2e+33) (* (* z c) (- b)) (if (<= z 0.0029) (* a (* b i)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -5.2e+33) {
tmp = (z * c) * -b;
} else if (z <= 0.0029) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
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 (z <= (-5.2d+33)) then
tmp = (z * c) * -b
else if (z <= 0.0029d0) then
tmp = a * (b * i)
else
tmp = y * (x * z)
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 (z <= -5.2e+33) {
tmp = (z * c) * -b;
} else if (z <= 0.0029) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -5.2e+33: tmp = (z * c) * -b elif z <= 0.0029: tmp = a * (b * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -5.2e+33) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (z <= 0.0029) tmp = Float64(a * Float64(b * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -5.2e+33) tmp = (z * c) * -b; elseif (z <= 0.0029) tmp = a * (b * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -5.2e+33], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[z, 0.0029], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+33}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;z \leq 0.0029:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -5.1999999999999995e33Initial program 61.3%
Taylor expanded in b around inf 48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in i around 0 43.0%
mul-1-neg43.0%
*-commutative43.0%
distribute-rgt-neg-out43.0%
Simplified43.0%
if -5.1999999999999995e33 < z < 0.0029Initial program 81.0%
Taylor expanded in b around inf 35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in i around inf 26.9%
Taylor expanded in b around 0 28.9%
if 0.0029 < z Initial program 53.7%
Taylor expanded in y around inf 52.4%
Taylor expanded in i around 0 41.8%
Final simplification34.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z 68.0) (* a (* b i)) (* x (* y z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= 68.0) {
tmp = a * (b * i);
} else {
tmp = x * (y * z);
}
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 (z <= 68.0d0) then
tmp = a * (b * i)
else
tmp = x * (y * z)
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 (z <= 68.0) {
tmp = a * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= 68.0: tmp = a * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= 68.0) tmp = Float64(a * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= 68.0) tmp = a * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, 68.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 68:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < 68Initial program 75.9%
Taylor expanded in b around inf 38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in i around inf 23.2%
Taylor expanded in b around 0 24.2%
if 68 < z Initial program 53.7%
Taylor expanded in y around inf 52.4%
+-commutative52.4%
mul-1-neg52.4%
unsub-neg52.4%
*-commutative52.4%
Applied egg-rr52.4%
Taylor expanded in x around inf 36.8%
Final simplification26.9%
(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 71.1%
Taylor expanded in b around inf 37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in i around inf 20.9%
Taylor expanded in b around 0 21.6%
Final simplification21.6%
(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 2023297
(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)))))