
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))
(t_2 (- (* t c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double t_2 = (t * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(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 = fma(j, t_2, t_1); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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[(j * t$95$2 + t$95$1), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $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:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, t_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.5%
+-commutative90.5%
fma-def90.5%
*-commutative90.5%
*-commutative90.5%
*-commutative90.5%
*-commutative90.5%
Simplified90.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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around inf 49.5%
+-commutative49.5%
mul-1-neg49.5%
unsub-neg49.5%
Simplified49.5%
Final simplification83.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around inf 49.5%
+-commutative49.5%
mul-1-neg49.5%
unsub-neg49.5%
Simplified49.5%
Final simplification83.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ t_1 (* b (- (* a i) (* z c))))))
(if (<= b -9e-105)
t_2
(if (<= b -3.5e-151)
(* c (- (* t j) (* z b)))
(if (<= b -2.05e-199)
t_1
(if (<= b 2.35e-98)
(- (* j (- (* t c) (* y i))) (* a (* x t)))
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));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double tmp;
if (b <= -9e-105) {
tmp = t_2;
} else if (b <= -3.5e-151) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -2.05e-199) {
tmp = t_1;
} else if (b <= 2.35e-98) {
tmp = (j * ((t * c) - (y * i))) - (a * (x * t));
} 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))
t_2 = t_1 + (b * ((a * i) - (z * c)))
if (b <= (-9d-105)) then
tmp = t_2
else if (b <= (-3.5d-151)) then
tmp = c * ((t * j) - (z * b))
else if (b <= (-2.05d-199)) then
tmp = t_1
else if (b <= 2.35d-98) then
tmp = (j * ((t * c) - (y * i))) - (a * (x * t))
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));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double tmp;
if (b <= -9e-105) {
tmp = t_2;
} else if (b <= -3.5e-151) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -2.05e-199) {
tmp = t_1;
} else if (b <= 2.35e-98) {
tmp = (j * ((t * c) - (y * i))) - (a * (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = t_1 + (b * ((a * i) - (z * c))) tmp = 0 if b <= -9e-105: tmp = t_2 elif b <= -3.5e-151: tmp = c * ((t * j) - (z * b)) elif b <= -2.05e-199: tmp = t_1 elif b <= 2.35e-98: tmp = (j * ((t * c) - (y * i))) - (a * (x * t)) else: tmp = t_2 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(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (b <= -9e-105) tmp = t_2; elseif (b <= -3.5e-151) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= -2.05e-199) tmp = t_1; elseif (b <= 2.35e-98) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(a * Float64(x * t))); 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)); t_2 = t_1 + (b * ((a * i) - (z * c))); tmp = 0.0; if (b <= -9e-105) tmp = t_2; elseif (b <= -3.5e-151) tmp = c * ((t * j) - (z * b)); elseif (b <= -2.05e-199) tmp = t_1; elseif (b <= 2.35e-98) tmp = (j * ((t * c) - (y * i))) - (a * (x * t)); else tmp = t_2; 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[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e-105], t$95$2, If[LessEqual[b, -3.5e-151], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.05e-199], t$95$1, If[LessEqual[b, 2.35e-98], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{-105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-151}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq -2.05 \cdot 10^{-199}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.35 \cdot 10^{-98}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -8.9999999999999995e-105 or 2.35000000000000003e-98 < b Initial program 75.8%
+-commutative75.8%
fma-def79.9%
*-commutative79.9%
*-commutative79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in j around 0 72.1%
if -8.9999999999999995e-105 < b < -3.49999999999999995e-151Initial program 46.2%
cancel-sign-sub46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
remove-double-neg46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in c around inf 77.6%
if -3.49999999999999995e-151 < b < -2.05000000000000011e-199Initial program 83.1%
cancel-sign-sub83.1%
cancel-sign-sub-inv83.1%
*-commutative83.1%
*-commutative83.1%
remove-double-neg83.1%
*-commutative83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in x around inf 99.7%
if -2.05000000000000011e-199 < b < 2.35000000000000003e-98Initial program 72.1%
cancel-sign-sub72.1%
cancel-sign-sub-inv72.1%
*-commutative72.1%
*-commutative72.1%
remove-double-neg72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in t around inf 74.2%
mul-1-neg74.2%
*-commutative74.2%
distribute-rgt-neg-in74.2%
Simplified74.2%
Final simplification73.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ t_1 (* x (* y z))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -1.05e+218)
t_3
(if (<= a -9e+190)
t_2
(if (<= a -8e+71)
t_3
(if (<= a 3.2e-96)
(- t_1 (* c (* z b)))
(if (<= a 1.9e+41) 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 = j * ((t * c) - (y * i));
double t_2 = t_1 + (x * (y * z));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.05e+218) {
tmp = t_3;
} else if (a <= -9e+190) {
tmp = t_2;
} else if (a <= -8e+71) {
tmp = t_3;
} else if (a <= 3.2e-96) {
tmp = t_1 - (c * (z * b));
} else if (a <= 1.9e+41) {
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 = j * ((t * c) - (y * i))
t_2 = t_1 + (x * (y * z))
t_3 = a * ((b * i) - (x * t))
if (a <= (-1.05d+218)) then
tmp = t_3
else if (a <= (-9d+190)) then
tmp = t_2
else if (a <= (-8d+71)) then
tmp = t_3
else if (a <= 3.2d-96) then
tmp = t_1 - (c * (z * b))
else if (a <= 1.9d+41) 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 = j * ((t * c) - (y * i));
double t_2 = t_1 + (x * (y * z));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.05e+218) {
tmp = t_3;
} else if (a <= -9e+190) {
tmp = t_2;
} else if (a <= -8e+71) {
tmp = t_3;
} else if (a <= 3.2e-96) {
tmp = t_1 - (c * (z * b));
} else if (a <= 1.9e+41) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 + (x * (y * z)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.05e+218: tmp = t_3 elif a <= -9e+190: tmp = t_2 elif a <= -8e+71: tmp = t_3 elif a <= 3.2e-96: tmp = t_1 - (c * (z * b)) elif a <= 1.9e+41: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t_1 + Float64(x * Float64(y * z))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.05e+218) tmp = t_3; elseif (a <= -9e+190) tmp = t_2; elseif (a <= -8e+71) tmp = t_3; elseif (a <= 3.2e-96) tmp = Float64(t_1 - Float64(c * Float64(z * b))); elseif (a <= 1.9e+41) 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 = j * ((t * c) - (y * i)); t_2 = t_1 + (x * (y * z)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.05e+218) tmp = t_3; elseif (a <= -9e+190) tmp = t_2; elseif (a <= -8e+71) tmp = t_3; elseif (a <= 3.2e-96) tmp = t_1 - (c * (z * b)); elseif (a <= 1.9e+41) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.05e+218], t$95$3, If[LessEqual[a, -9e+190], t$95$2, If[LessEqual[a, -8e+71], t$95$3, If[LessEqual[a, 3.2e-96], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e+41], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t_1 + x \cdot \left(y \cdot z\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.05 \cdot 10^{+218}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -9 \cdot 10^{+190}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -8 \cdot 10^{+71}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-96}:\\
\;\;\;\;t_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -1.0499999999999999e218 or -8.9999999999999999e190 < a < -8.0000000000000003e71 or 1.9000000000000001e41 < a Initial program 67.9%
cancel-sign-sub67.9%
cancel-sign-sub-inv67.9%
*-commutative67.9%
*-commutative67.9%
remove-double-neg67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in a around inf 69.9%
distribute-lft-out--69.9%
mul-1-neg69.9%
mul-1-neg69.9%
distribute-lft-out--69.9%
cancel-sign-sub-inv69.9%
metadata-eval69.9%
*-lft-identity69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
Simplified69.9%
if -1.0499999999999999e218 < a < -8.9999999999999999e190 or 3.20000000000000012e-96 < a < 1.9000000000000001e41Initial program 73.3%
cancel-sign-sub73.3%
cancel-sign-sub-inv73.3%
*-commutative73.3%
*-commutative73.3%
remove-double-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in y around inf 69.9%
associate-*r*73.0%
Simplified73.0%
if -8.0000000000000003e71 < a < 3.20000000000000012e-96Initial program 78.7%
cancel-sign-sub78.7%
cancel-sign-sub-inv78.7%
*-commutative78.7%
*-commutative78.7%
remove-double-neg78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in c around inf 63.2%
mul-1-neg63.2%
distribute-rgt-neg-in63.2%
Simplified63.2%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -8.6e+31)
t_3
(if (<= t -5.4e-234)
t_2
(if (<= t 1.8e-280)
t_1
(if (<= t 4.6e-172)
t_2
(if (<= t 2.8e-117)
t_1
(if (<= t 1.42e-24)
t_2
(if (<= t 1.7e+87) (* j (- (* t c) (* y i))) 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 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -8.6e+31) {
tmp = t_3;
} else if (t <= -5.4e-234) {
tmp = t_2;
} else if (t <= 1.8e-280) {
tmp = t_1;
} else if (t <= 4.6e-172) {
tmp = t_2;
} else if (t <= 2.8e-117) {
tmp = t_1;
} else if (t <= 1.42e-24) {
tmp = t_2;
} else if (t <= 1.7e+87) {
tmp = j * ((t * c) - (y * i));
} 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 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
t_3 = t * ((c * j) - (x * a))
if (t <= (-8.6d+31)) then
tmp = t_3
else if (t <= (-5.4d-234)) then
tmp = t_2
else if (t <= 1.8d-280) then
tmp = t_1
else if (t <= 4.6d-172) then
tmp = t_2
else if (t <= 2.8d-117) then
tmp = t_1
else if (t <= 1.42d-24) then
tmp = t_2
else if (t <= 1.7d+87) then
tmp = j * ((t * c) - (y * i))
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 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -8.6e+31) {
tmp = t_3;
} else if (t <= -5.4e-234) {
tmp = t_2;
} else if (t <= 1.8e-280) {
tmp = t_1;
} else if (t <= 4.6e-172) {
tmp = t_2;
} else if (t <= 2.8e-117) {
tmp = t_1;
} else if (t <= 1.42e-24) {
tmp = t_2;
} else if (t <= 1.7e+87) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -8.6e+31: tmp = t_3 elif t <= -5.4e-234: tmp = t_2 elif t <= 1.8e-280: tmp = t_1 elif t <= 4.6e-172: tmp = t_2 elif t <= 2.8e-117: tmp = t_1 elif t <= 1.42e-24: tmp = t_2 elif t <= 1.7e+87: tmp = j * ((t * c) - (y * i)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -8.6e+31) tmp = t_3; elseif (t <= -5.4e-234) tmp = t_2; elseif (t <= 1.8e-280) tmp = t_1; elseif (t <= 4.6e-172) tmp = t_2; elseif (t <= 2.8e-117) tmp = t_1; elseif (t <= 1.42e-24) tmp = t_2; elseif (t <= 1.7e+87) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -8.6e+31) tmp = t_3; elseif (t <= -5.4e-234) tmp = t_2; elseif (t <= 1.8e-280) tmp = t_1; elseif (t <= 4.6e-172) tmp = t_2; elseif (t <= 2.8e-117) tmp = t_1; elseif (t <= 1.42e-24) tmp = t_2; elseif (t <= 1.7e+87) tmp = j * ((t * c) - (y * i)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.6e+31], t$95$3, If[LessEqual[t, -5.4e-234], t$95$2, If[LessEqual[t, 1.8e-280], t$95$1, If[LessEqual[t, 4.6e-172], t$95$2, If[LessEqual[t, 2.8e-117], t$95$1, If[LessEqual[t, 1.42e-24], t$95$2, If[LessEqual[t, 1.7e+87], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{+31}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-234}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-280}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-172}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-117}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{-24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+87}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -8.59999999999999978e31 or 1.7000000000000001e87 < t Initial program 70.5%
cancel-sign-sub70.5%
cancel-sign-sub-inv70.5%
*-commutative70.5%
*-commutative70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in t around inf 76.3%
*-commutative76.3%
mul-1-neg76.3%
unsub-neg76.3%
Simplified76.3%
if -8.59999999999999978e31 < t < -5.4000000000000003e-234 or 1.79999999999999997e-280 < t < 4.5999999999999999e-172 or 2.8e-117 < t < 1.42e-24Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in b around inf 62.7%
if -5.4000000000000003e-234 < t < 1.79999999999999997e-280 or 4.5999999999999999e-172 < t < 2.8e-117Initial program 64.9%
cancel-sign-sub64.9%
cancel-sign-sub-inv64.9%
*-commutative64.9%
*-commutative64.9%
remove-double-neg64.9%
*-commutative64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in y around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
Simplified63.7%
if 1.42e-24 < t < 1.7000000000000001e87Initial program 67.9%
cancel-sign-sub67.9%
cancel-sign-sub-inv67.9%
*-commutative67.9%
*-commutative67.9%
remove-double-neg67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in c around inf 58.8%
mul-1-neg58.8%
distribute-rgt-neg-in58.8%
Simplified58.8%
Taylor expanded in j around inf 53.4%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -1e+106)
t_1
(if (<= c -530000.0)
(* z (- (* x y) (* b c)))
(if (<= c -2.1e-218)
(* a (- (* b i) (* x t)))
(if (<= c 1.7e-179)
(+ (* j (- (* t c) (* y i))) (* x (* y z)))
(if (<= c 4.5e-19)
(* b (- (* a i) (* z c)))
(if (<= c 5.9e+51)
(* t (- (* c j) (* x a)))
(if (<= c 1.1e+96) (* i (- (* a b) (* 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1e+106) {
tmp = t_1;
} else if (c <= -530000.0) {
tmp = z * ((x * y) - (b * c));
} else if (c <= -2.1e-218) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 1.7e-179) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (c <= 4.5e-19) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 5.9e+51) {
tmp = t * ((c * j) - (x * a));
} else if (c <= 1.1e+96) {
tmp = i * ((a * b) - (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 = c * ((t * j) - (z * b))
if (c <= (-1d+106)) then
tmp = t_1
else if (c <= (-530000.0d0)) then
tmp = z * ((x * y) - (b * c))
else if (c <= (-2.1d-218)) then
tmp = a * ((b * i) - (x * t))
else if (c <= 1.7d-179) then
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
else if (c <= 4.5d-19) then
tmp = b * ((a * i) - (z * c))
else if (c <= 5.9d+51) then
tmp = t * ((c * j) - (x * a))
else if (c <= 1.1d+96) then
tmp = i * ((a * b) - (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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1e+106) {
tmp = t_1;
} else if (c <= -530000.0) {
tmp = z * ((x * y) - (b * c));
} else if (c <= -2.1e-218) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 1.7e-179) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (c <= 4.5e-19) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 5.9e+51) {
tmp = t * ((c * j) - (x * a));
} else if (c <= 1.1e+96) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1e+106: tmp = t_1 elif c <= -530000.0: tmp = z * ((x * y) - (b * c)) elif c <= -2.1e-218: tmp = a * ((b * i) - (x * t)) elif c <= 1.7e-179: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) elif c <= 4.5e-19: tmp = b * ((a * i) - (z * c)) elif c <= 5.9e+51: tmp = t * ((c * j) - (x * a)) elif c <= 1.1e+96: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1e+106) tmp = t_1; elseif (c <= -530000.0) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (c <= -2.1e-218) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 1.7e-179) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); elseif (c <= 4.5e-19) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (c <= 5.9e+51) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= 1.1e+96) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1e+106) tmp = t_1; elseif (c <= -530000.0) tmp = z * ((x * y) - (b * c)); elseif (c <= -2.1e-218) tmp = a * ((b * i) - (x * t)); elseif (c <= 1.7e-179) tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); elseif (c <= 4.5e-19) tmp = b * ((a * i) - (z * c)); elseif (c <= 5.9e+51) tmp = t * ((c * j) - (x * a)); elseif (c <= 1.1e+96) tmp = i * ((a * b) - (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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1e+106], t$95$1, If[LessEqual[c, -530000.0], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.1e-218], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.7e-179], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.5e-19], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.9e+51], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e+96], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -530000:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;c \leq -2.1 \cdot 10^{-218}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{-179}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-19}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq 5.9 \cdot 10^{+51}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+96}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.00000000000000009e106 or 1.0999999999999999e96 < c Initial program 63.7%
cancel-sign-sub63.7%
cancel-sign-sub-inv63.7%
*-commutative63.7%
*-commutative63.7%
remove-double-neg63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in c around inf 71.4%
if -1.00000000000000009e106 < c < -5.3e5Initial program 85.0%
cancel-sign-sub85.0%
cancel-sign-sub-inv85.0%
*-commutative85.0%
*-commutative85.0%
remove-double-neg85.0%
*-commutative85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in z around inf 67.1%
if -5.3e5 < c < -2.09999999999999994e-218Initial program 86.7%
cancel-sign-sub86.7%
cancel-sign-sub-inv86.7%
*-commutative86.7%
*-commutative86.7%
remove-double-neg86.7%
*-commutative86.7%
*-commutative86.7%
Simplified86.7%
Taylor expanded in a around inf 66.6%
distribute-lft-out--66.6%
mul-1-neg66.6%
mul-1-neg66.6%
distribute-lft-out--66.6%
cancel-sign-sub-inv66.6%
metadata-eval66.6%
*-lft-identity66.6%
+-commutative66.6%
mul-1-neg66.6%
unsub-neg66.6%
Simplified66.6%
if -2.09999999999999994e-218 < c < 1.6999999999999999e-179Initial program 76.6%
cancel-sign-sub76.6%
cancel-sign-sub-inv76.6%
*-commutative76.6%
*-commutative76.6%
remove-double-neg76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in y around inf 63.0%
associate-*r*62.8%
Simplified62.8%
if 1.6999999999999999e-179 < c < 4.50000000000000013e-19Initial program 82.9%
cancel-sign-sub82.9%
cancel-sign-sub-inv82.9%
*-commutative82.9%
*-commutative82.9%
remove-double-neg82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in b around inf 69.8%
if 4.50000000000000013e-19 < c < 5.89999999999999983e51Initial program 73.7%
cancel-sign-sub73.7%
cancel-sign-sub-inv73.7%
*-commutative73.7%
*-commutative73.7%
remove-double-neg73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in t around inf 65.4%
*-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
Simplified65.4%
if 5.89999999999999983e51 < c < 1.0999999999999999e96Initial program 63.1%
cancel-sign-sub63.1%
cancel-sign-sub-inv63.1%
*-commutative63.1%
*-commutative63.1%
remove-double-neg63.1%
*-commutative63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in i around inf 87.7%
*-commutative87.7%
distribute-lft-out--87.7%
*-commutative87.7%
Simplified87.7%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= z -3.7e+198)
(* x (* y z))
(if (<= z -2.25e-27)
(* c (* z (- b)))
(if (<= z -2.7e-170)
t_1
(if (<= z -8.5e-219)
(* j (* t c))
(if (<= z -6.2e-304)
t_1
(if (<= z 7e-174)
(* c (* t j))
(if (<= z 3.4e-9) t_1 (* b (* z (- c))))))))))))
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);
double tmp;
if (z <= -3.7e+198) {
tmp = x * (y * z);
} else if (z <= -2.25e-27) {
tmp = c * (z * -b);
} else if (z <= -2.7e-170) {
tmp = t_1;
} else if (z <= -8.5e-219) {
tmp = j * (t * c);
} else if (z <= -6.2e-304) {
tmp = t_1;
} else if (z <= 7e-174) {
tmp = c * (t * j);
} else if (z <= 3.4e-9) {
tmp = t_1;
} else {
tmp = b * (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) :: t_1
real(8) :: tmp
t_1 = b * (a * i)
if (z <= (-3.7d+198)) then
tmp = x * (y * z)
else if (z <= (-2.25d-27)) then
tmp = c * (z * -b)
else if (z <= (-2.7d-170)) then
tmp = t_1
else if (z <= (-8.5d-219)) then
tmp = j * (t * c)
else if (z <= (-6.2d-304)) then
tmp = t_1
else if (z <= 7d-174) then
tmp = c * (t * j)
else if (z <= 3.4d-9) then
tmp = t_1
else
tmp = b * (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 t_1 = b * (a * i);
double tmp;
if (z <= -3.7e+198) {
tmp = x * (y * z);
} else if (z <= -2.25e-27) {
tmp = c * (z * -b);
} else if (z <= -2.7e-170) {
tmp = t_1;
} else if (z <= -8.5e-219) {
tmp = j * (t * c);
} else if (z <= -6.2e-304) {
tmp = t_1;
} else if (z <= 7e-174) {
tmp = c * (t * j);
} else if (z <= 3.4e-9) {
tmp = t_1;
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if z <= -3.7e+198: tmp = x * (y * z) elif z <= -2.25e-27: tmp = c * (z * -b) elif z <= -2.7e-170: tmp = t_1 elif z <= -8.5e-219: tmp = j * (t * c) elif z <= -6.2e-304: tmp = t_1 elif z <= 7e-174: tmp = c * (t * j) elif z <= 3.4e-9: tmp = t_1 else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (z <= -3.7e+198) tmp = Float64(x * Float64(y * z)); elseif (z <= -2.25e-27) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= -2.7e-170) tmp = t_1; elseif (z <= -8.5e-219) tmp = Float64(j * Float64(t * c)); elseif (z <= -6.2e-304) tmp = t_1; elseif (z <= 7e-174) tmp = Float64(c * Float64(t * j)); elseif (z <= 3.4e-9) tmp = t_1; else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (z <= -3.7e+198) tmp = x * (y * z); elseif (z <= -2.25e-27) tmp = c * (z * -b); elseif (z <= -2.7e-170) tmp = t_1; elseif (z <= -8.5e-219) tmp = j * (t * c); elseif (z <= -6.2e-304) tmp = t_1; elseif (z <= 7e-174) tmp = c * (t * j); elseif (z <= 3.4e-9) tmp = t_1; else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.7e+198], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.25e-27], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.7e-170], t$95$1, If[LessEqual[z, -8.5e-219], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.2e-304], t$95$1, If[LessEqual[z, 7e-174], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e-9], t$95$1, N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{+198}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -2.25 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -8.5 \cdot 10^{-219}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-174}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-9}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -3.6999999999999998e198Initial program 68.1%
+-commutative68.1%
fma-def72.7%
*-commutative72.7%
*-commutative72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around 0 81.7%
Taylor expanded in y around inf 65.1%
associate-*r*77.9%
*-commutative77.9%
Simplified77.9%
if -3.6999999999999998e198 < z < -2.2500000000000001e-27Initial program 67.6%
+-commutative67.6%
fma-def71.7%
*-commutative71.7%
*-commutative71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in j around 0 67.7%
Taylor expanded in c around inf 41.0%
*-commutative41.0%
mul-1-neg41.0%
distribute-rgt-neg-in41.0%
distribute-rgt-neg-out41.0%
Simplified41.0%
if -2.2500000000000001e-27 < z < -2.6999999999999999e-170 or -8.49999999999999964e-219 < z < -6.1999999999999997e-304 or 6.99999999999999975e-174 < z < 3.3999999999999998e-9Initial program 78.7%
cancel-sign-sub78.7%
cancel-sign-sub-inv78.7%
*-commutative78.7%
*-commutative78.7%
remove-double-neg78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in b around inf 42.1%
Taylor expanded in a around inf 38.3%
if -2.6999999999999999e-170 < z < -8.49999999999999964e-219Initial program 70.4%
cancel-sign-sub70.4%
cancel-sign-sub-inv70.4%
*-commutative70.4%
*-commutative70.4%
remove-double-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in c around inf 61.3%
mul-1-neg61.3%
distribute-rgt-neg-in61.3%
Simplified61.3%
Taylor expanded in j around inf 61.3%
Taylor expanded in c around inf 60.9%
if -6.1999999999999997e-304 < z < 6.99999999999999975e-174Initial program 85.1%
cancel-sign-sub85.1%
cancel-sign-sub-inv85.1%
*-commutative85.1%
*-commutative85.1%
remove-double-neg85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in c around inf 60.5%
mul-1-neg60.5%
distribute-rgt-neg-in60.5%
Simplified60.5%
Taylor expanded in t around inf 42.7%
if 3.3999999999999998e-9 < z Initial program 71.0%
+-commutative71.0%
fma-def73.8%
*-commutative73.8%
*-commutative73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in j around 0 60.1%
Taylor expanded in c around inf 38.1%
neg-mul-138.1%
*-commutative38.1%
associate-*r*38.1%
distribute-rgt-neg-in38.1%
*-commutative38.1%
associate-*l*40.9%
Simplified40.9%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= z -5.8e+198)
(* x (* y z))
(if (<= z -5e-22)
(* c (* z (- b)))
(if (<= z 6.5e-254)
t_1
(if (<= z 2.1e-174)
(* c (* t j))
(if (<= z 4e+129) t_1 (* b (* z (- c))))))))))
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 tmp;
if (z <= -5.8e+198) {
tmp = x * (y * z);
} else if (z <= -5e-22) {
tmp = c * (z * -b);
} else if (z <= 6.5e-254) {
tmp = t_1;
} else if (z <= 2.1e-174) {
tmp = c * (t * j);
} else if (z <= 4e+129) {
tmp = t_1;
} else {
tmp = b * (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) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (z <= (-5.8d+198)) then
tmp = x * (y * z)
else if (z <= (-5d-22)) then
tmp = c * (z * -b)
else if (z <= 6.5d-254) then
tmp = t_1
else if (z <= 2.1d-174) then
tmp = c * (t * j)
else if (z <= 4d+129) then
tmp = t_1
else
tmp = b * (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 t_1 = a * ((b * i) - (x * t));
double tmp;
if (z <= -5.8e+198) {
tmp = x * (y * z);
} else if (z <= -5e-22) {
tmp = c * (z * -b);
} else if (z <= 6.5e-254) {
tmp = t_1;
} else if (z <= 2.1e-174) {
tmp = c * (t * j);
} else if (z <= 4e+129) {
tmp = t_1;
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if z <= -5.8e+198: tmp = x * (y * z) elif z <= -5e-22: tmp = c * (z * -b) elif z <= 6.5e-254: tmp = t_1 elif z <= 2.1e-174: tmp = c * (t * j) elif z <= 4e+129: tmp = t_1 else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (z <= -5.8e+198) tmp = Float64(x * Float64(y * z)); elseif (z <= -5e-22) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= 6.5e-254) tmp = t_1; elseif (z <= 2.1e-174) tmp = Float64(c * Float64(t * j)); elseif (z <= 4e+129) tmp = t_1; else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (z <= -5.8e+198) tmp = x * (y * z); elseif (z <= -5e-22) tmp = c * (z * -b); elseif (z <= 6.5e-254) tmp = t_1; elseif (z <= 2.1e-174) tmp = c * (t * j); elseif (z <= 4e+129) tmp = t_1; else tmp = b * (z * -c); 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]}, If[LessEqual[z, -5.8e+198], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5e-22], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-254], t$95$1, If[LessEqual[z, 2.1e-174], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e+129], t$95$1, N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+198}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-22}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-254}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-174}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -5.8000000000000002e198Initial program 68.1%
+-commutative68.1%
fma-def72.7%
*-commutative72.7%
*-commutative72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around 0 81.7%
Taylor expanded in y around inf 65.1%
associate-*r*77.9%
*-commutative77.9%
Simplified77.9%
if -5.8000000000000002e198 < z < -4.99999999999999954e-22Initial program 69.0%
+-commutative69.0%
fma-def73.2%
*-commutative73.2%
*-commutative73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in j around 0 67.0%
Taylor expanded in c around inf 41.8%
*-commutative41.8%
mul-1-neg41.8%
distribute-rgt-neg-in41.8%
distribute-rgt-neg-out41.8%
Simplified41.8%
if -4.99999999999999954e-22 < z < 6.5e-254 or 2.1000000000000001e-174 < z < 4e129Initial program 77.7%
cancel-sign-sub77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
*-commutative77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in a around inf 51.1%
distribute-lft-out--51.1%
mul-1-neg51.1%
mul-1-neg51.1%
distribute-lft-out--51.1%
cancel-sign-sub-inv51.1%
metadata-eval51.1%
*-lft-identity51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
if 6.5e-254 < z < 2.1000000000000001e-174Initial program 83.5%
cancel-sign-sub83.5%
cancel-sign-sub-inv83.5%
*-commutative83.5%
*-commutative83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in c around inf 75.5%
mul-1-neg75.5%
distribute-rgt-neg-in75.5%
Simplified75.5%
Taylor expanded in t around inf 67.4%
if 4e129 < z Initial program 67.9%
+-commutative67.9%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in j around 0 59.3%
Taylor expanded in c around inf 38.9%
neg-mul-138.9%
*-commutative38.9%
associate-*r*41.1%
distribute-rgt-neg-in41.1%
*-commutative41.1%
associate-*l*45.8%
Simplified45.8%
Final simplification51.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -1.9e+95)
(* c (* z (- b)))
(if (<= b -5.8e+20)
(* i (* a b))
(if (<= b -1.75e-48)
(* b (* z (- c)))
(if (<= b -1.9e-103)
(* a (* b i))
(if (<= b 3.4e-223)
(* c (* t j))
(if (<= b 5.2e-30) (* y (* i (- j))) (* b (* a i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.9e+95) {
tmp = c * (z * -b);
} else if (b <= -5.8e+20) {
tmp = i * (a * b);
} else if (b <= -1.75e-48) {
tmp = b * (z * -c);
} else if (b <= -1.9e-103) {
tmp = a * (b * i);
} else if (b <= 3.4e-223) {
tmp = c * (t * j);
} else if (b <= 5.2e-30) {
tmp = y * (i * -j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-1.9d+95)) then
tmp = c * (z * -b)
else if (b <= (-5.8d+20)) then
tmp = i * (a * b)
else if (b <= (-1.75d-48)) then
tmp = b * (z * -c)
else if (b <= (-1.9d-103)) then
tmp = a * (b * i)
else if (b <= 3.4d-223) then
tmp = c * (t * j)
else if (b <= 5.2d-30) then
tmp = y * (i * -j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.9e+95) {
tmp = c * (z * -b);
} else if (b <= -5.8e+20) {
tmp = i * (a * b);
} else if (b <= -1.75e-48) {
tmp = b * (z * -c);
} else if (b <= -1.9e-103) {
tmp = a * (b * i);
} else if (b <= 3.4e-223) {
tmp = c * (t * j);
} else if (b <= 5.2e-30) {
tmp = y * (i * -j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1.9e+95: tmp = c * (z * -b) elif b <= -5.8e+20: tmp = i * (a * b) elif b <= -1.75e-48: tmp = b * (z * -c) elif b <= -1.9e-103: tmp = a * (b * i) elif b <= 3.4e-223: tmp = c * (t * j) elif b <= 5.2e-30: tmp = y * (i * -j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1.9e+95) tmp = Float64(c * Float64(z * Float64(-b))); elseif (b <= -5.8e+20) tmp = Float64(i * Float64(a * b)); elseif (b <= -1.75e-48) tmp = Float64(b * Float64(z * Float64(-c))); elseif (b <= -1.9e-103) tmp = Float64(a * Float64(b * i)); elseif (b <= 3.4e-223) tmp = Float64(c * Float64(t * j)); elseif (b <= 5.2e-30) tmp = Float64(y * Float64(i * Float64(-j))); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1.9e+95) tmp = c * (z * -b); elseif (b <= -5.8e+20) tmp = i * (a * b); elseif (b <= -1.75e-48) tmp = b * (z * -c); elseif (b <= -1.9e-103) tmp = a * (b * i); elseif (b <= 3.4e-223) tmp = c * (t * j); elseif (b <= 5.2e-30) tmp = y * (i * -j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.9e+95], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.8e+20], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.75e-48], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.9e-103], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-223], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e-30], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.9 \cdot 10^{+95}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{+20}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-48}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-103}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-223}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if b < -1.9e95Initial program 73.6%
+-commutative73.6%
fma-def80.8%
*-commutative80.8%
*-commutative80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in j around 0 62.5%
Taylor expanded in c around inf 44.3%
*-commutative44.3%
mul-1-neg44.3%
distribute-rgt-neg-in44.3%
distribute-rgt-neg-out44.3%
Simplified44.3%
if -1.9e95 < b < -5.8e20Initial program 83.3%
cancel-sign-sub83.3%
cancel-sign-sub-inv83.3%
*-commutative83.3%
*-commutative83.3%
remove-double-neg83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in a around inf 83.6%
distribute-lft-out--83.6%
mul-1-neg83.6%
mul-1-neg83.6%
distribute-lft-out--83.6%
cancel-sign-sub-inv83.6%
metadata-eval83.6%
*-lft-identity83.6%
+-commutative83.6%
mul-1-neg83.6%
unsub-neg83.6%
Simplified83.6%
Taylor expanded in b around inf 59.3%
if -5.8e20 < b < -1.74999999999999996e-48Initial program 71.6%
+-commutative71.6%
fma-def76.3%
*-commutative76.3%
*-commutative76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in j around 0 66.2%
Taylor expanded in c around inf 43.5%
neg-mul-143.5%
*-commutative43.5%
associate-*r*43.6%
distribute-rgt-neg-in43.6%
*-commutative43.6%
associate-*l*43.6%
Simplified43.6%
if -1.74999999999999996e-48 < b < -1.9e-103Initial program 86.0%
+-commutative86.0%
fma-def86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in j around 0 72.3%
Taylor expanded in i around inf 43.9%
if -1.9e-103 < b < 3.3999999999999998e-223Initial program 72.6%
cancel-sign-sub72.6%
cancel-sign-sub-inv72.6%
*-commutative72.6%
*-commutative72.6%
remove-double-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in c around inf 59.2%
mul-1-neg59.2%
distribute-rgt-neg-in59.2%
Simplified59.2%
Taylor expanded in t around inf 45.8%
if 3.3999999999999998e-223 < b < 5.19999999999999973e-30Initial program 68.5%
cancel-sign-sub68.5%
cancel-sign-sub-inv68.5%
*-commutative68.5%
*-commutative68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in y around inf 53.8%
+-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
Taylor expanded in z around 0 37.6%
neg-mul-137.6%
distribute-lft-neg-in37.6%
*-commutative37.6%
Simplified37.6%
if 5.19999999999999973e-30 < b Initial program 74.9%
cancel-sign-sub74.9%
cancel-sign-sub-inv74.9%
*-commutative74.9%
*-commutative74.9%
remove-double-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around inf 65.8%
Taylor expanded in a around inf 39.6%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2600000.0)
(* b (* z (- c)))
(if (<= c -1.15e-219)
(* a (* b i))
(if (<= c 2.35e-178)
(* z (* x y))
(if (or (<= c 1.1e-22) (and (not (<= c 3e+49)) (<= c 3.2e+158)))
(* b (* a i))
(* j (* t c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2600000.0) {
tmp = b * (z * -c);
} else if (c <= -1.15e-219) {
tmp = a * (b * i);
} else if (c <= 2.35e-178) {
tmp = z * (x * y);
} else if ((c <= 1.1e-22) || (!(c <= 3e+49) && (c <= 3.2e+158))) {
tmp = b * (a * i);
} else {
tmp = j * (t * 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 (c <= (-2600000.0d0)) then
tmp = b * (z * -c)
else if (c <= (-1.15d-219)) then
tmp = a * (b * i)
else if (c <= 2.35d-178) then
tmp = z * (x * y)
else if ((c <= 1.1d-22) .or. (.not. (c <= 3d+49)) .and. (c <= 3.2d+158)) then
tmp = b * (a * i)
else
tmp = j * (t * 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 (c <= -2600000.0) {
tmp = b * (z * -c);
} else if (c <= -1.15e-219) {
tmp = a * (b * i);
} else if (c <= 2.35e-178) {
tmp = z * (x * y);
} else if ((c <= 1.1e-22) || (!(c <= 3e+49) && (c <= 3.2e+158))) {
tmp = b * (a * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2600000.0: tmp = b * (z * -c) elif c <= -1.15e-219: tmp = a * (b * i) elif c <= 2.35e-178: tmp = z * (x * y) elif (c <= 1.1e-22) or (not (c <= 3e+49) and (c <= 3.2e+158)): tmp = b * (a * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2600000.0) tmp = Float64(b * Float64(z * Float64(-c))); elseif (c <= -1.15e-219) tmp = Float64(a * Float64(b * i)); elseif (c <= 2.35e-178) tmp = Float64(z * Float64(x * y)); elseif ((c <= 1.1e-22) || (!(c <= 3e+49) && (c <= 3.2e+158))) tmp = Float64(b * Float64(a * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2600000.0) tmp = b * (z * -c); elseif (c <= -1.15e-219) tmp = a * (b * i); elseif (c <= 2.35e-178) tmp = z * (x * y); elseif ((c <= 1.1e-22) || (~((c <= 3e+49)) && (c <= 3.2e+158))) tmp = b * (a * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2600000.0], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.15e-219], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.35e-178], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 1.1e-22], And[N[Not[LessEqual[c, 3e+49]], $MachinePrecision], LessEqual[c, 3.2e+158]]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2600000:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-219}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 2.35 \cdot 10^{-178}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{-22} \lor \neg \left(c \leq 3 \cdot 10^{+49}\right) \land c \leq 3.2 \cdot 10^{+158}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -2.6e6Initial program 63.7%
+-commutative63.7%
fma-def66.9%
*-commutative66.9%
*-commutative66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in j around 0 62.2%
Taylor expanded in c around inf 40.3%
neg-mul-140.3%
*-commutative40.3%
associate-*r*42.0%
distribute-rgt-neg-in42.0%
*-commutative42.0%
associate-*l*42.0%
Simplified42.0%
if -2.6e6 < c < -1.14999999999999994e-219Initial program 87.1%
+-commutative87.1%
fma-def87.1%
*-commutative87.1%
*-commutative87.1%
*-commutative87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in j around 0 73.6%
Taylor expanded in i around inf 32.6%
if -1.14999999999999994e-219 < c < 2.35e-178Initial program 76.1%
+-commutative76.1%
fma-def76.1%
*-commutative76.1%
*-commutative76.1%
*-commutative76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in j around 0 55.3%
Taylor expanded in y around inf 28.1%
*-commutative28.1%
associate-*l*33.3%
Simplified33.3%
if 2.35e-178 < c < 1.1e-22 or 3.0000000000000002e49 < c < 3.19999999999999995e158Initial program 77.0%
cancel-sign-sub77.0%
cancel-sign-sub-inv77.0%
*-commutative77.0%
*-commutative77.0%
remove-double-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in b around inf 62.6%
Taylor expanded in a around inf 48.8%
if 1.1e-22 < c < 3.0000000000000002e49 or 3.19999999999999995e158 < c Initial program 71.3%
cancel-sign-sub71.3%
cancel-sign-sub-inv71.3%
*-commutative71.3%
*-commutative71.3%
remove-double-neg71.3%
*-commutative71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in c around inf 62.0%
mul-1-neg62.0%
distribute-rgt-neg-in62.0%
Simplified62.0%
Taylor expanded in j around inf 51.2%
Taylor expanded in c around inf 49.3%
Final simplification41.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- x)))) (t_2 (* b (* a i))))
(if (<= c -14500000.0)
(* (* b c) (- z))
(if (<= c -2.1e-242)
t_1
(if (<= c 9.6e-177)
(* (* y i) (- j))
(if (<= c 2.9e-15)
t_2
(if (<= c 1.15e+61)
t_1
(if (<= c 3.2e+158) t_2 (* j (* t c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double t_2 = b * (a * i);
double tmp;
if (c <= -14500000.0) {
tmp = (b * c) * -z;
} else if (c <= -2.1e-242) {
tmp = t_1;
} else if (c <= 9.6e-177) {
tmp = (y * i) * -j;
} else if (c <= 2.9e-15) {
tmp = t_2;
} else if (c <= 1.15e+61) {
tmp = t_1;
} else if (c <= 3.2e+158) {
tmp = t_2;
} else {
tmp = j * (t * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (t * -x)
t_2 = b * (a * i)
if (c <= (-14500000.0d0)) then
tmp = (b * c) * -z
else if (c <= (-2.1d-242)) then
tmp = t_1
else if (c <= 9.6d-177) then
tmp = (y * i) * -j
else if (c <= 2.9d-15) then
tmp = t_2
else if (c <= 1.15d+61) then
tmp = t_1
else if (c <= 3.2d+158) then
tmp = t_2
else
tmp = j * (t * 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 t_1 = a * (t * -x);
double t_2 = b * (a * i);
double tmp;
if (c <= -14500000.0) {
tmp = (b * c) * -z;
} else if (c <= -2.1e-242) {
tmp = t_1;
} else if (c <= 9.6e-177) {
tmp = (y * i) * -j;
} else if (c <= 2.9e-15) {
tmp = t_2;
} else if (c <= 1.15e+61) {
tmp = t_1;
} else if (c <= 3.2e+158) {
tmp = t_2;
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * -x) t_2 = b * (a * i) tmp = 0 if c <= -14500000.0: tmp = (b * c) * -z elif c <= -2.1e-242: tmp = t_1 elif c <= 9.6e-177: tmp = (y * i) * -j elif c <= 2.9e-15: tmp = t_2 elif c <= 1.15e+61: tmp = t_1 elif c <= 3.2e+158: tmp = t_2 else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(t * Float64(-x))) t_2 = Float64(b * Float64(a * i)) tmp = 0.0 if (c <= -14500000.0) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (c <= -2.1e-242) tmp = t_1; elseif (c <= 9.6e-177) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 2.9e-15) tmp = t_2; elseif (c <= 1.15e+61) tmp = t_1; elseif (c <= 3.2e+158) tmp = t_2; else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (t * -x); t_2 = b * (a * i); tmp = 0.0; if (c <= -14500000.0) tmp = (b * c) * -z; elseif (c <= -2.1e-242) tmp = t_1; elseif (c <= 9.6e-177) tmp = (y * i) * -j; elseif (c <= 2.9e-15) tmp = t_2; elseif (c <= 1.15e+61) tmp = t_1; elseif (c <= 3.2e+158) tmp = t_2; else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -14500000.0], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[c, -2.1e-242], t$95$1, If[LessEqual[c, 9.6e-177], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 2.9e-15], t$95$2, If[LessEqual[c, 1.15e+61], t$95$1, If[LessEqual[c, 3.2e+158], t$95$2, N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;c \leq -14500000:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;c \leq -2.1 \cdot 10^{-242}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 9.6 \cdot 10^{-177}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{-15}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{+61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+158}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -1.45e7Initial program 63.7%
cancel-sign-sub63.7%
cancel-sign-sub-inv63.7%
*-commutative63.7%
*-commutative63.7%
remove-double-neg63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in c around inf 54.4%
mul-1-neg54.4%
distribute-rgt-neg-in54.4%
Simplified54.4%
add-cbrt-cube45.5%
*-commutative45.5%
*-commutative45.5%
*-commutative45.5%
*-commutative45.5%
*-commutative45.5%
*-commutative45.5%
Applied egg-rr45.5%
associate-*l*45.5%
Simplified45.5%
Taylor expanded in b around inf 40.3%
mul-1-neg40.3%
*-commutative40.3%
distribute-rgt-neg-in40.3%
mul-1-neg40.3%
associate-*r*40.3%
associate-*r*42.0%
neg-mul-142.0%
Simplified42.0%
if -1.45e7 < c < -2.10000000000000019e-242 or 2.90000000000000019e-15 < c < 1.15e61Initial program 80.4%
+-commutative80.4%
fma-def80.4%
*-commutative80.4%
*-commutative80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in j around 0 69.3%
Taylor expanded in t around inf 38.7%
mul-1-neg38.7%
*-commutative38.7%
distribute-rgt-neg-in38.7%
Simplified38.7%
if -2.10000000000000019e-242 < c < 9.5999999999999995e-177Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in c around inf 42.5%
mul-1-neg42.5%
distribute-rgt-neg-in42.5%
Simplified42.5%
Taylor expanded in j around inf 43.8%
Taylor expanded in c around 0 36.1%
mul-1-neg36.1%
distribute-rgt-neg-in36.1%
Simplified36.1%
if 9.5999999999999995e-177 < c < 2.90000000000000019e-15 or 1.15e61 < c < 3.19999999999999995e158Initial program 80.5%
cancel-sign-sub80.5%
cancel-sign-sub-inv80.5%
*-commutative80.5%
*-commutative80.5%
remove-double-neg80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in b around inf 64.0%
Taylor expanded in a around inf 52.7%
if 3.19999999999999995e158 < c Initial program 69.3%
cancel-sign-sub69.3%
cancel-sign-sub-inv69.3%
*-commutative69.3%
*-commutative69.3%
remove-double-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in c around inf 64.2%
mul-1-neg64.2%
distribute-rgt-neg-in64.2%
Simplified64.2%
Taylor expanded in j around inf 54.8%
Taylor expanded in c around inf 52.6%
Final simplification43.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -4.2e+106)
t_2
(if (<= c -7.5e-217)
t_1
(if (<= c 1.02e-178)
(* y (- (* x z) (* i j)))
(if (<= c 2.2e+114) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.2e+106) {
tmp = t_2;
} else if (c <= -7.5e-217) {
tmp = t_1;
} else if (c <= 1.02e-178) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 2.2e+114) {
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 = c * ((t * j) - (z * b))
if (c <= (-4.2d+106)) then
tmp = t_2
else if (c <= (-7.5d-217)) then
tmp = t_1
else if (c <= 1.02d-178) then
tmp = y * ((x * z) - (i * j))
else if (c <= 2.2d+114) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.2e+106) {
tmp = t_2;
} else if (c <= -7.5e-217) {
tmp = t_1;
} else if (c <= 1.02e-178) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 2.2e+114) {
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 = c * ((t * j) - (z * b)) tmp = 0 if c <= -4.2e+106: tmp = t_2 elif c <= -7.5e-217: tmp = t_1 elif c <= 1.02e-178: tmp = y * ((x * z) - (i * j)) elif c <= 2.2e+114: 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(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -4.2e+106) tmp = t_2; elseif (c <= -7.5e-217) tmp = t_1; elseif (c <= 1.02e-178) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 2.2e+114) 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 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -4.2e+106) tmp = t_2; elseif (c <= -7.5e-217) tmp = t_1; elseif (c <= 1.02e-178) tmp = y * ((x * z) - (i * j)); elseif (c <= 2.2e+114) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.2e+106], t$95$2, If[LessEqual[c, -7.5e-217], t$95$1, If[LessEqual[c, 1.02e-178], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e+114], 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 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -4.2 \cdot 10^{+106}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{-217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{-178}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{+114}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -4.2000000000000001e106 or 2.2e114 < c Initial program 63.6%
cancel-sign-sub63.6%
cancel-sign-sub-inv63.6%
*-commutative63.6%
*-commutative63.6%
remove-double-neg63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in c around inf 73.5%
if -4.2000000000000001e106 < c < -7.50000000000000031e-217 or 1.02000000000000006e-178 < c < 2.2e114Initial program 81.3%
cancel-sign-sub81.3%
cancel-sign-sub-inv81.3%
*-commutative81.3%
*-commutative81.3%
remove-double-neg81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in a around inf 55.7%
distribute-lft-out--55.7%
mul-1-neg55.7%
mul-1-neg55.7%
distribute-lft-out--55.7%
cancel-sign-sub-inv55.7%
metadata-eval55.7%
*-lft-identity55.7%
+-commutative55.7%
mul-1-neg55.7%
unsub-neg55.7%
Simplified55.7%
if -7.50000000000000031e-217 < c < 1.02000000000000006e-178Initial program 76.6%
cancel-sign-sub76.6%
cancel-sign-sub-inv76.6%
*-commutative76.6%
*-commutative76.6%
remove-double-neg76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in y around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
Simplified54.5%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (* b i))))
(if (<= b -2e+20)
(* i (* a b))
(if (<= b -9.5e-45)
t_1
(if (<= b -1.9e-103)
t_2
(if (<= b 2.1e-189)
t_1
(if (<= b 2600000000000.0) (* y (* x z)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (b <= -2e+20) {
tmp = i * (a * b);
} else if (b <= -9.5e-45) {
tmp = t_1;
} else if (b <= -1.9e-103) {
tmp = t_2;
} else if (b <= 2.1e-189) {
tmp = t_1;
} else if (b <= 2600000000000.0) {
tmp = y * (x * z);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = a * (b * i)
if (b <= (-2d+20)) then
tmp = i * (a * b)
else if (b <= (-9.5d-45)) then
tmp = t_1
else if (b <= (-1.9d-103)) then
tmp = t_2
else if (b <= 2.1d-189) then
tmp = t_1
else if (b <= 2600000000000.0d0) then
tmp = y * (x * z)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (b <= -2e+20) {
tmp = i * (a * b);
} else if (b <= -9.5e-45) {
tmp = t_1;
} else if (b <= -1.9e-103) {
tmp = t_2;
} else if (b <= 2.1e-189) {
tmp = t_1;
} else if (b <= 2600000000000.0) {
tmp = y * (x * z);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * (b * i) tmp = 0 if b <= -2e+20: tmp = i * (a * b) elif b <= -9.5e-45: tmp = t_1 elif b <= -1.9e-103: tmp = t_2 elif b <= 2.1e-189: tmp = t_1 elif b <= 2600000000000.0: tmp = y * (x * z) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (b <= -2e+20) tmp = Float64(i * Float64(a * b)); elseif (b <= -9.5e-45) tmp = t_1; elseif (b <= -1.9e-103) tmp = t_2; elseif (b <= 2.1e-189) tmp = t_1; elseif (b <= 2600000000000.0) tmp = Float64(y * Float64(x * z)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = a * (b * i); tmp = 0.0; if (b <= -2e+20) tmp = i * (a * b); elseif (b <= -9.5e-45) tmp = t_1; elseif (b <= -1.9e-103) tmp = t_2; elseif (b <= 2.1e-189) tmp = t_1; elseif (b <= 2600000000000.0) tmp = y * (x * z); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e+20], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e-45], t$95$1, If[LessEqual[b, -1.9e-103], t$95$2, If[LessEqual[b, 2.1e-189], t$95$1, If[LessEqual[b, 2600000000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;b \leq -2 \cdot 10^{+20}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-103}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2600000000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2e20Initial program 75.8%
cancel-sign-sub75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
*-commutative75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in a around inf 50.3%
distribute-lft-out--50.3%
mul-1-neg50.3%
mul-1-neg50.3%
distribute-lft-out--50.3%
cancel-sign-sub-inv50.3%
metadata-eval50.3%
*-lft-identity50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
Simplified50.3%
Taylor expanded in b around inf 34.7%
if -2e20 < b < -9.5000000000000002e-45 or -1.9e-103 < b < 2.10000000000000016e-189Initial program 70.2%
cancel-sign-sub70.2%
cancel-sign-sub-inv70.2%
*-commutative70.2%
*-commutative70.2%
remove-double-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in c around inf 57.3%
mul-1-neg57.3%
distribute-rgt-neg-in57.3%
Simplified57.3%
Taylor expanded in t around inf 41.1%
if -9.5000000000000002e-45 < b < -1.9e-103 or 2.6e12 < b Initial program 74.7%
+-commutative74.7%
fma-def77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in j around 0 72.8%
Taylor expanded in i around inf 41.1%
if 2.10000000000000016e-189 < b < 2.6e12Initial program 78.2%
+-commutative78.2%
fma-def78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in j around 0 63.0%
Taylor expanded in y around inf 33.5%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= b -4.8e+20)
(* i (* a b))
(if (<= b -5.5e-49)
(* j (* t c))
(if (<= b -1.75e-103)
t_1
(if (<= b 1.25e-192)
(* c (* t j))
(if (<= b 60000000000.0) (* y (* x z)) 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 = a * (b * i);
double tmp;
if (b <= -4.8e+20) {
tmp = i * (a * b);
} else if (b <= -5.5e-49) {
tmp = j * (t * c);
} else if (b <= -1.75e-103) {
tmp = t_1;
} else if (b <= 1.25e-192) {
tmp = c * (t * j);
} else if (b <= 60000000000.0) {
tmp = y * (x * z);
} 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 = a * (b * i)
if (b <= (-4.8d+20)) then
tmp = i * (a * b)
else if (b <= (-5.5d-49)) then
tmp = j * (t * c)
else if (b <= (-1.75d-103)) then
tmp = t_1
else if (b <= 1.25d-192) then
tmp = c * (t * j)
else if (b <= 60000000000.0d0) then
tmp = y * (x * z)
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 = a * (b * i);
double tmp;
if (b <= -4.8e+20) {
tmp = i * (a * b);
} else if (b <= -5.5e-49) {
tmp = j * (t * c);
} else if (b <= -1.75e-103) {
tmp = t_1;
} else if (b <= 1.25e-192) {
tmp = c * (t * j);
} else if (b <= 60000000000.0) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if b <= -4.8e+20: tmp = i * (a * b) elif b <= -5.5e-49: tmp = j * (t * c) elif b <= -1.75e-103: tmp = t_1 elif b <= 1.25e-192: tmp = c * (t * j) elif b <= 60000000000.0: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (b <= -4.8e+20) tmp = Float64(i * Float64(a * b)); elseif (b <= -5.5e-49) tmp = Float64(j * Float64(t * c)); elseif (b <= -1.75e-103) tmp = t_1; elseif (b <= 1.25e-192) tmp = Float64(c * Float64(t * j)); elseif (b <= 60000000000.0) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (b <= -4.8e+20) tmp = i * (a * b); elseif (b <= -5.5e-49) tmp = j * (t * c); elseif (b <= -1.75e-103) tmp = t_1; elseif (b <= 1.25e-192) tmp = c * (t * j); elseif (b <= 60000000000.0) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.8e+20], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.5e-49], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.75e-103], t$95$1, If[LessEqual[b, 1.25e-192], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 60000000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{+20}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-49}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-103}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-192}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 60000000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.8e20Initial program 75.8%
cancel-sign-sub75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
*-commutative75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in a around inf 50.3%
distribute-lft-out--50.3%
mul-1-neg50.3%
mul-1-neg50.3%
distribute-lft-out--50.3%
cancel-sign-sub-inv50.3%
metadata-eval50.3%
*-lft-identity50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
Simplified50.3%
Taylor expanded in b around inf 34.7%
if -4.8e20 < b < -5.50000000000000031e-49Initial program 71.6%
cancel-sign-sub71.6%
cancel-sign-sub-inv71.6%
*-commutative71.6%
*-commutative71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in c around inf 48.6%
mul-1-neg48.6%
distribute-rgt-neg-in48.6%
Simplified48.6%
Taylor expanded in j around inf 34.6%
Taylor expanded in c around inf 35.0%
if -5.50000000000000031e-49 < b < -1.75000000000000008e-103 or 6e10 < b Initial program 74.7%
+-commutative74.7%
fma-def77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in j around 0 72.8%
Taylor expanded in i around inf 41.1%
if -1.75000000000000008e-103 < b < 1.25e-192Initial program 69.7%
cancel-sign-sub69.7%
cancel-sign-sub-inv69.7%
*-commutative69.7%
*-commutative69.7%
remove-double-neg69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 60.0%
mul-1-neg60.0%
distribute-rgt-neg-in60.0%
Simplified60.0%
Taylor expanded in t around inf 43.0%
if 1.25e-192 < b < 6e10Initial program 78.2%
+-commutative78.2%
fma-def78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in j around 0 63.0%
Taylor expanded in y around inf 33.5%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -2.1e+20)
(* i (* a b))
(if (<= b -3.6e-50)
(* j (* t c))
(if (<= b -1e-103)
(* a (* b i))
(if (<= b 7e-196)
(* c (* t j))
(if (<= b 17500000000000.0) (* y (* x z)) (* b (* a i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.1e+20) {
tmp = i * (a * b);
} else if (b <= -3.6e-50) {
tmp = j * (t * c);
} else if (b <= -1e-103) {
tmp = a * (b * i);
} else if (b <= 7e-196) {
tmp = c * (t * j);
} else if (b <= 17500000000000.0) {
tmp = y * (x * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2.1d+20)) then
tmp = i * (a * b)
else if (b <= (-3.6d-50)) then
tmp = j * (t * c)
else if (b <= (-1d-103)) then
tmp = a * (b * i)
else if (b <= 7d-196) then
tmp = c * (t * j)
else if (b <= 17500000000000.0d0) then
tmp = y * (x * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.1e+20) {
tmp = i * (a * b);
} else if (b <= -3.6e-50) {
tmp = j * (t * c);
} else if (b <= -1e-103) {
tmp = a * (b * i);
} else if (b <= 7e-196) {
tmp = c * (t * j);
} else if (b <= 17500000000000.0) {
tmp = y * (x * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.1e+20: tmp = i * (a * b) elif b <= -3.6e-50: tmp = j * (t * c) elif b <= -1e-103: tmp = a * (b * i) elif b <= 7e-196: tmp = c * (t * j) elif b <= 17500000000000.0: tmp = y * (x * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.1e+20) tmp = Float64(i * Float64(a * b)); elseif (b <= -3.6e-50) tmp = Float64(j * Float64(t * c)); elseif (b <= -1e-103) tmp = Float64(a * Float64(b * i)); elseif (b <= 7e-196) tmp = Float64(c * Float64(t * j)); elseif (b <= 17500000000000.0) tmp = Float64(y * Float64(x * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.1e+20) tmp = i * (a * b); elseif (b <= -3.6e-50) tmp = j * (t * c); elseif (b <= -1e-103) tmp = a * (b * i); elseif (b <= 7e-196) tmp = c * (t * j); elseif (b <= 17500000000000.0) tmp = y * (x * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.1e+20], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e-50], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e-103], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-196], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 17500000000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+20}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-50}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-103}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-196}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 17500000000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if b < -2.1e20Initial program 75.8%
cancel-sign-sub75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
*-commutative75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in a around inf 50.3%
distribute-lft-out--50.3%
mul-1-neg50.3%
mul-1-neg50.3%
distribute-lft-out--50.3%
cancel-sign-sub-inv50.3%
metadata-eval50.3%
*-lft-identity50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
Simplified50.3%
Taylor expanded in b around inf 34.7%
if -2.1e20 < b < -3.59999999999999979e-50Initial program 71.6%
cancel-sign-sub71.6%
cancel-sign-sub-inv71.6%
*-commutative71.6%
*-commutative71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in c around inf 48.6%
mul-1-neg48.6%
distribute-rgt-neg-in48.6%
Simplified48.6%
Taylor expanded in j around inf 34.6%
Taylor expanded in c around inf 35.0%
if -3.59999999999999979e-50 < b < -9.99999999999999958e-104Initial program 86.0%
+-commutative86.0%
fma-def86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in j around 0 72.3%
Taylor expanded in i around inf 43.9%
if -9.99999999999999958e-104 < b < 7.00000000000000009e-196Initial program 69.7%
cancel-sign-sub69.7%
cancel-sign-sub-inv69.7%
*-commutative69.7%
*-commutative69.7%
remove-double-neg69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 60.0%
mul-1-neg60.0%
distribute-rgt-neg-in60.0%
Simplified60.0%
Taylor expanded in t around inf 43.0%
if 7.00000000000000009e-196 < b < 1.75e13Initial program 78.2%
+-commutative78.2%
fma-def78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in j around 0 63.0%
Taylor expanded in y around inf 33.5%
if 1.75e13 < b Initial program 72.1%
cancel-sign-sub72.1%
cancel-sign-sub-inv72.1%
*-commutative72.1%
*-commutative72.1%
remove-double-neg72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in b around inf 68.4%
Taylor expanded in a around inf 42.4%
Final simplification39.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -7e-59)
t_1
(if (<= b 3.4e-138)
(* t (- (* c j) (* x a)))
(if (<= b 2100000000.0) (* y (- (* x z) (* i 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 <= -7e-59) {
tmp = t_1;
} else if (b <= 3.4e-138) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 2100000000.0) {
tmp = y * ((x * z) - (i * 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 <= (-7d-59)) then
tmp = t_1
else if (b <= 3.4d-138) then
tmp = t * ((c * j) - (x * a))
else if (b <= 2100000000.0d0) then
tmp = y * ((x * z) - (i * 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 <= -7e-59) {
tmp = t_1;
} else if (b <= 3.4e-138) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 2100000000.0) {
tmp = y * ((x * z) - (i * 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 <= -7e-59: tmp = t_1 elif b <= 3.4e-138: tmp = t * ((c * j) - (x * a)) elif b <= 2100000000.0: tmp = y * ((x * z) - (i * 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 <= -7e-59) tmp = t_1; elseif (b <= 3.4e-138) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 2100000000.0) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * 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 <= -7e-59) tmp = t_1; elseif (b <= 3.4e-138) tmp = t * ((c * j) - (x * a)); elseif (b <= 2100000000.0) tmp = y * ((x * z) - (i * 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, -7e-59], t$95$1, If[LessEqual[b, 3.4e-138], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2100000000.0], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $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 -7 \cdot 10^{-59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-138}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 2100000000:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -7.0000000000000002e-59 or 2.1e9 < b Initial program 74.4%
cancel-sign-sub74.4%
cancel-sign-sub-inv74.4%
*-commutative74.4%
*-commutative74.4%
remove-double-neg74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in b around inf 63.4%
if -7.0000000000000002e-59 < b < 3.4000000000000001e-138Initial program 70.9%
cancel-sign-sub70.9%
cancel-sign-sub-inv70.9%
*-commutative70.9%
*-commutative70.9%
remove-double-neg70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in t around inf 56.3%
*-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
Simplified56.3%
if 3.4000000000000001e-138 < b < 2.1e9Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in y around inf 63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
Simplified63.1%
Final simplification60.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.7e+106) (not (<= c 2.2e+114))) (* c (- (* t j) (* z b))) (* a (- (* b i) (* 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 ((c <= -2.7e+106) || !(c <= 2.2e+114)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (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 ((c <= (-2.7d+106)) .or. (.not. (c <= 2.2d+114))) then
tmp = c * ((t * j) - (z * b))
else
tmp = a * ((b * i) - (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 ((c <= -2.7e+106) || !(c <= 2.2e+114)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.7e+106) or not (c <= 2.2e+114): tmp = c * ((t * j) - (z * b)) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.7e+106) || !(c <= 2.2e+114)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.7e+106) || ~((c <= 2.2e+114))) tmp = c * ((t * j) - (z * b)); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.7e+106], N[Not[LessEqual[c, 2.2e+114]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.7 \cdot 10^{+106} \lor \neg \left(c \leq 2.2 \cdot 10^{+114}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if c < -2.70000000000000006e106 or 2.2e114 < c Initial program 63.6%
cancel-sign-sub63.6%
cancel-sign-sub-inv63.6%
*-commutative63.6%
*-commutative63.6%
remove-double-neg63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in c around inf 73.5%
if -2.70000000000000006e106 < c < 2.2e114Initial program 79.7%
cancel-sign-sub79.7%
cancel-sign-sub-inv79.7%
*-commutative79.7%
*-commutative79.7%
remove-double-neg79.7%
*-commutative79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in a around inf 47.4%
distribute-lft-out--47.4%
mul-1-neg47.4%
mul-1-neg47.4%
distribute-lft-out--47.4%
cancel-sign-sub-inv47.4%
metadata-eval47.4%
*-lft-identity47.4%
+-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
Final simplification56.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -4.6e+66) (not (<= c 2.15e+164))) (* c (* t 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 ((c <= -4.6e+66) || !(c <= 2.15e+164)) {
tmp = c * (t * 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 ((c <= (-4.6d+66)) .or. (.not. (c <= 2.15d+164))) then
tmp = c * (t * 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 ((c <= -4.6e+66) || !(c <= 2.15e+164)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -4.6e+66) or not (c <= 2.15e+164): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -4.6e+66) || !(c <= 2.15e+164)) tmp = Float64(c * Float64(t * 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 ((c <= -4.6e+66) || ~((c <= 2.15e+164))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -4.6e+66], N[Not[LessEqual[c, 2.15e+164]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.6 \cdot 10^{+66} \lor \neg \left(c \leq 2.15 \cdot 10^{+164}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -4.6e66 or 2.15e164 < c Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in c around inf 59.2%
mul-1-neg59.2%
distribute-rgt-neg-in59.2%
Simplified59.2%
Taylor expanded in t around inf 42.9%
if -4.6e66 < c < 2.15e164Initial program 79.7%
+-commutative79.7%
fma-def80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in j around 0 65.9%
Taylor expanded in i around inf 29.0%
Final simplification34.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1.42e+104) (not (<= c 4.8e+161))) (* c (* t j)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.42e+104) || !(c <= 4.8e+161)) {
tmp = c * (t * j);
} else {
tmp = i * (a * 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 ((c <= (-1.42d+104)) .or. (.not. (c <= 4.8d+161))) then
tmp = c * (t * j)
else
tmp = i * (a * 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 ((c <= -1.42e+104) || !(c <= 4.8e+161)) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.42e+104) or not (c <= 4.8e+161): tmp = c * (t * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.42e+104) || !(c <= 4.8e+161)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.42e+104) || ~((c <= 4.8e+161))) tmp = c * (t * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.42e+104], N[Not[LessEqual[c, 4.8e+161]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.42 \cdot 10^{+104} \lor \neg \left(c \leq 4.8 \cdot 10^{+161}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if c < -1.42e104 or 4.7999999999999998e161 < c Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in c around inf 61.1%
mul-1-neg61.1%
distribute-rgt-neg-in61.1%
Simplified61.1%
Taylor expanded in t around inf 45.6%
if -1.42e104 < c < 4.7999999999999998e161Initial program 79.6%
cancel-sign-sub79.6%
cancel-sign-sub-inv79.6%
*-commutative79.6%
*-commutative79.6%
remove-double-neg79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in a around inf 46.8%
distribute-lft-out--46.8%
mul-1-neg46.8%
mul-1-neg46.8%
distribute-lft-out--46.8%
cancel-sign-sub-inv46.8%
metadata-eval46.8%
*-lft-identity46.8%
+-commutative46.8%
mul-1-neg46.8%
unsub-neg46.8%
Simplified46.8%
Taylor expanded in b around inf 28.8%
Final simplification34.3%
(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 73.9%
+-commutative73.9%
fma-def76.6%
*-commutative76.6%
*-commutative76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in j around 0 62.0%
Taylor expanded in i around inf 22.3%
Final simplification22.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023240
(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)))))