
(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 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* t c) (* y i)))
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* c j) (* x a))))))
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))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
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 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(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]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in t around inf 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
Simplified53.1%
Final simplification84.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* z (* x y)))))
(if (<= b -6.2e+21)
(* b (* z (- (* a (/ i z)) c)))
(if (<= b -3e-296)
t_1
(if (<= b 2.15e-296)
(- (* c (* t j)) (* a (* x t)))
(if (<= b 1.6e-277)
t_1
(if (<= b 2.35e-104)
(* t (- (* c j) (* x a)))
(if (<= b 1e+57) t_1 (* b (- (* a i) (* z c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (z * (x * y));
double tmp;
if (b <= -6.2e+21) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -3e-296) {
tmp = t_1;
} else if (b <= 2.15e-296) {
tmp = (c * (t * j)) - (a * (x * t));
} else if (b <= 1.6e-277) {
tmp = t_1;
} else if (b <= 2.35e-104) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1e+57) {
tmp = t_1;
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (z * (x * y))
if (b <= (-6.2d+21)) then
tmp = b * (z * ((a * (i / z)) - c))
else if (b <= (-3d-296)) then
tmp = t_1
else if (b <= 2.15d-296) then
tmp = (c * (t * j)) - (a * (x * t))
else if (b <= 1.6d-277) then
tmp = t_1
else if (b <= 2.35d-104) then
tmp = t * ((c * j) - (x * a))
else if (b <= 1d+57) then
tmp = t_1
else
tmp = b * ((a * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (z * (x * y));
double tmp;
if (b <= -6.2e+21) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -3e-296) {
tmp = t_1;
} else if (b <= 2.15e-296) {
tmp = (c * (t * j)) - (a * (x * t));
} else if (b <= 1.6e-277) {
tmp = t_1;
} else if (b <= 2.35e-104) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1e+57) {
tmp = t_1;
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (z * (x * y)) tmp = 0 if b <= -6.2e+21: tmp = b * (z * ((a * (i / z)) - c)) elif b <= -3e-296: tmp = t_1 elif b <= 2.15e-296: tmp = (c * (t * j)) - (a * (x * t)) elif b <= 1.6e-277: tmp = t_1 elif b <= 2.35e-104: tmp = t * ((c * j) - (x * a)) elif b <= 1e+57: tmp = t_1 else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(x * y))) tmp = 0.0 if (b <= -6.2e+21) tmp = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))); elseif (b <= -3e-296) tmp = t_1; elseif (b <= 2.15e-296) tmp = Float64(Float64(c * Float64(t * j)) - Float64(a * Float64(x * t))); elseif (b <= 1.6e-277) tmp = t_1; elseif (b <= 2.35e-104) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 1e+57) tmp = t_1; else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (z * (x * y)); tmp = 0.0; if (b <= -6.2e+21) tmp = b * (z * ((a * (i / z)) - c)); elseif (b <= -3e-296) tmp = t_1; elseif (b <= 2.15e-296) tmp = (c * (t * j)) - (a * (x * t)); elseif (b <= 1.6e-277) tmp = t_1; elseif (b <= 2.35e-104) tmp = t * ((c * j) - (x * a)); elseif (b <= 1e+57) tmp = t_1; else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e+21], N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3e-296], t$95$1, If[LessEqual[b, 2.15e-296], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e-277], t$95$1, If[LessEqual[b, 2.35e-104], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e+57], t$95$1, N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{+21}:\\
\;\;\;\;b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-296}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-296}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-277}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.35 \cdot 10^{-104}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -6.2e21Initial program 71.7%
Taylor expanded in b around inf 60.6%
Taylor expanded in z around inf 62.3%
associate-/l*62.4%
Simplified62.4%
if -6.2e21 < b < -2.9999999999999997e-296 or 2.14999999999999989e-296 < b < 1.5999999999999999e-277 or 2.35e-104 < b < 1.00000000000000005e57Initial program 72.8%
Taylor expanded in y around inf 61.9%
*-commutative61.9%
*-commutative61.9%
associate-*r*62.7%
Simplified62.7%
if -2.9999999999999997e-296 < b < 2.14999999999999989e-296Initial program 40.0%
Taylor expanded in t around inf 60.0%
mul-1-neg60.0%
distribute-rgt-neg-in60.0%
distribute-rgt-neg-in60.0%
Simplified60.0%
Taylor expanded in i around 0 80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
Simplified80.5%
if 1.5999999999999999e-277 < b < 2.35e-104Initial program 70.7%
Taylor expanded in t around inf 71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
Simplified71.6%
if 1.00000000000000005e57 < b Initial program 82.2%
Taylor expanded in b around inf 76.3%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -5e-24)
t_3
(if (<= b -3.4e-57)
(* x (- (* y z) (* t a)))
(if (<= b -3.1e-208)
(* j (- (* t c) (* y i)))
(if (<= b -6.5e-304)
t_2
(if (<= b 1.7e-277)
t_1
(if (<= b 4.2e-101) t_2 (if (<= b 1.35e+57) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5e-24) {
tmp = t_3;
} else if (b <= -3.4e-57) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -3.1e-208) {
tmp = j * ((t * c) - (y * i));
} else if (b <= -6.5e-304) {
tmp = t_2;
} else if (b <= 1.7e-277) {
tmp = t_1;
} else if (b <= 4.2e-101) {
tmp = t_2;
} else if (b <= 1.35e+57) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = t * ((c * j) - (x * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-5d-24)) then
tmp = t_3
else if (b <= (-3.4d-57)) then
tmp = x * ((y * z) - (t * a))
else if (b <= (-3.1d-208)) then
tmp = j * ((t * c) - (y * i))
else if (b <= (-6.5d-304)) then
tmp = t_2
else if (b <= 1.7d-277) then
tmp = t_1
else if (b <= 4.2d-101) then
tmp = t_2
else if (b <= 1.35d+57) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5e-24) {
tmp = t_3;
} else if (b <= -3.4e-57) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -3.1e-208) {
tmp = j * ((t * c) - (y * i));
} else if (b <= -6.5e-304) {
tmp = t_2;
} else if (b <= 1.7e-277) {
tmp = t_1;
} else if (b <= 4.2e-101) {
tmp = t_2;
} else if (b <= 1.35e+57) {
tmp = t_1;
} 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 = t * ((c * j) - (x * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5e-24: tmp = t_3 elif b <= -3.4e-57: tmp = x * ((y * z) - (t * a)) elif b <= -3.1e-208: tmp = j * ((t * c) - (y * i)) elif b <= -6.5e-304: tmp = t_2 elif b <= 1.7e-277: tmp = t_1 elif b <= 4.2e-101: tmp = t_2 elif b <= 1.35e+57: tmp = t_1 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(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5e-24) tmp = t_3; elseif (b <= -3.4e-57) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= -3.1e-208) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= -6.5e-304) tmp = t_2; elseif (b <= 1.7e-277) tmp = t_1; elseif (b <= 4.2e-101) tmp = t_2; elseif (b <= 1.35e+57) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = t * ((c * j) - (x * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5e-24) tmp = t_3; elseif (b <= -3.4e-57) tmp = x * ((y * z) - (t * a)); elseif (b <= -3.1e-208) tmp = j * ((t * c) - (y * i)); elseif (b <= -6.5e-304) tmp = t_2; elseif (b <= 1.7e-277) tmp = t_1; elseif (b <= 4.2e-101) tmp = t_2; elseif (b <= 1.35e+57) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e-24], t$95$3, If[LessEqual[b, -3.4e-57], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.1e-208], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.5e-304], t$95$2, If[LessEqual[b, 1.7e-277], t$95$1, If[LessEqual[b, 4.2e-101], t$95$2, If[LessEqual[b, 1.35e+57], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5 \cdot 10^{-24}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-57}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-208}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-304}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-277}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-101}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -4.9999999999999998e-24 or 1.3499999999999999e57 < b Initial program 76.6%
Taylor expanded in b around inf 66.4%
if -4.9999999999999998e-24 < b < -3.40000000000000016e-57Initial program 62.3%
Taylor expanded in x around inf 87.6%
*-commutative87.6%
Simplified87.6%
if -3.40000000000000016e-57 < b < -3.0999999999999998e-208Initial program 66.7%
Taylor expanded in c around 0 63.0%
Taylor expanded in j around inf 59.2%
mul-1-neg59.2%
distribute-lft-neg-out59.2%
+-commutative59.2%
cancel-sign-sub-inv59.2%
Simplified59.2%
if -3.0999999999999998e-208 < b < -6.50000000000000011e-304 or 1.69999999999999991e-277 < b < 4.20000000000000031e-101Initial program 70.4%
Taylor expanded in t around inf 72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
Simplified72.8%
if -6.50000000000000011e-304 < b < 1.69999999999999991e-277 or 4.20000000000000031e-101 < b < 1.3499999999999999e57Initial program 74.6%
Taylor expanded in y around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
*-commutative60.0%
Simplified60.0%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= b -3.2e-22)
(* b (* z (- (* a (/ i z)) c)))
(if (<= b -3.8e-53)
(* x (- (* y z) (* t a)))
(if (<= b -6.4e-208)
(* j (- (* t c) (* y i)))
(if (<= b -5.5e-306)
t_2
(if (<= b 1.55e-277)
t_1
(if (<= b 1.5e-106)
t_2
(if (<= b 3.8e+56) t_1 (* b (- (* a i) (* z c))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (b <= -3.2e-22) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -3.8e-53) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -6.4e-208) {
tmp = j * ((t * c) - (y * i));
} else if (b <= -5.5e-306) {
tmp = t_2;
} else if (b <= 1.55e-277) {
tmp = t_1;
} else if (b <= 1.5e-106) {
tmp = t_2;
} else if (b <= 3.8e+56) {
tmp = t_1;
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = t * ((c * j) - (x * a))
if (b <= (-3.2d-22)) then
tmp = b * (z * ((a * (i / z)) - c))
else if (b <= (-3.8d-53)) then
tmp = x * ((y * z) - (t * a))
else if (b <= (-6.4d-208)) then
tmp = j * ((t * c) - (y * i))
else if (b <= (-5.5d-306)) then
tmp = t_2
else if (b <= 1.55d-277) then
tmp = t_1
else if (b <= 1.5d-106) then
tmp = t_2
else if (b <= 3.8d+56) then
tmp = t_1
else
tmp = b * ((a * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (b <= -3.2e-22) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -3.8e-53) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -6.4e-208) {
tmp = j * ((t * c) - (y * i));
} else if (b <= -5.5e-306) {
tmp = t_2;
} else if (b <= 1.55e-277) {
tmp = t_1;
} else if (b <= 1.5e-106) {
tmp = t_2;
} else if (b <= 3.8e+56) {
tmp = t_1;
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if b <= -3.2e-22: tmp = b * (z * ((a * (i / z)) - c)) elif b <= -3.8e-53: tmp = x * ((y * z) - (t * a)) elif b <= -6.4e-208: tmp = j * ((t * c) - (y * i)) elif b <= -5.5e-306: tmp = t_2 elif b <= 1.55e-277: tmp = t_1 elif b <= 1.5e-106: tmp = t_2 elif b <= 3.8e+56: tmp = t_1 else: tmp = b * ((a * i) - (z * c)) 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(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (b <= -3.2e-22) tmp = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))); elseif (b <= -3.8e-53) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= -6.4e-208) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= -5.5e-306) tmp = t_2; elseif (b <= 1.55e-277) tmp = t_1; elseif (b <= 1.5e-106) tmp = t_2; elseif (b <= 3.8e+56) tmp = t_1; else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (b <= -3.2e-22) tmp = b * (z * ((a * (i / z)) - c)); elseif (b <= -3.8e-53) tmp = x * ((y * z) - (t * a)); elseif (b <= -6.4e-208) tmp = j * ((t * c) - (y * i)); elseif (b <= -5.5e-306) tmp = t_2; elseif (b <= 1.55e-277) tmp = t_1; elseif (b <= 1.5e-106) tmp = t_2; elseif (b <= 3.8e+56) tmp = t_1; else tmp = b * ((a * i) - (z * c)); 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e-22], N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.8e-53], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.4e-208], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.5e-306], t$95$2, If[LessEqual[b, 1.55e-277], t$95$1, If[LessEqual[b, 1.5e-106], t$95$2, If[LessEqual[b, 3.8e+56], t$95$1, N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{-22}:\\
\;\;\;\;b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-53}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq -6.4 \cdot 10^{-208}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-306}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-277}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-106}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -3.19999999999999987e-22Initial program 72.7%
Taylor expanded in b around inf 59.7%
Taylor expanded in z around inf 59.9%
associate-/l*59.9%
Simplified59.9%
if -3.19999999999999987e-22 < b < -3.7999999999999998e-53Initial program 62.3%
Taylor expanded in x around inf 87.6%
*-commutative87.6%
Simplified87.6%
if -3.7999999999999998e-53 < b < -6.4000000000000003e-208Initial program 66.7%
Taylor expanded in c around 0 63.0%
Taylor expanded in j around inf 59.2%
mul-1-neg59.2%
distribute-lft-neg-out59.2%
+-commutative59.2%
cancel-sign-sub-inv59.2%
Simplified59.2%
if -6.4000000000000003e-208 < b < -5.49999999999999992e-306 or 1.5499999999999999e-277 < b < 1.50000000000000009e-106Initial program 70.4%
Taylor expanded in t around inf 72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
Simplified72.8%
if -5.49999999999999992e-306 < b < 1.5499999999999999e-277 or 1.50000000000000009e-106 < b < 3.79999999999999996e56Initial program 74.6%
Taylor expanded in y around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
*-commutative60.0%
Simplified60.0%
if 3.79999999999999996e56 < b Initial program 82.2%
Taylor expanded in b around inf 76.3%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t (- (* c j) (* x a))) (* y (* i j))))
(t_2 (* b (- (* a i) (* z c)))))
(if (<= b -2.05e+182)
t_2
(if (<= b -2e+150)
t_1
(if (<= b -8.6e-23)
(* a (* i (- b (* t (/ x i)))))
(if (<= b -1.7e-215)
(- (* j (- (* t c) (* y i))) (* a (* x t)))
(if (<= b 8500.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * ((c * j) - (x * a))) - (y * (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.05e+182) {
tmp = t_2;
} else if (b <= -2e+150) {
tmp = t_1;
} else if (b <= -8.6e-23) {
tmp = a * (i * (b - (t * (x / i))));
} else if (b <= -1.7e-215) {
tmp = (j * ((t * c) - (y * i))) - (a * (x * t));
} else if (b <= 8500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t * ((c * j) - (x * a))) - (y * (i * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-2.05d+182)) then
tmp = t_2
else if (b <= (-2d+150)) then
tmp = t_1
else if (b <= (-8.6d-23)) then
tmp = a * (i * (b - (t * (x / i))))
else if (b <= (-1.7d-215)) then
tmp = (j * ((t * c) - (y * i))) - (a * (x * t))
else if (b <= 8500.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * ((c * j) - (x * a))) - (y * (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.05e+182) {
tmp = t_2;
} else if (b <= -2e+150) {
tmp = t_1;
} else if (b <= -8.6e-23) {
tmp = a * (i * (b - (t * (x / i))));
} else if (b <= -1.7e-215) {
tmp = (j * ((t * c) - (y * i))) - (a * (x * t));
} else if (b <= 8500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * ((c * j) - (x * a))) - (y * (i * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.05e+182: tmp = t_2 elif b <= -2e+150: tmp = t_1 elif b <= -8.6e-23: tmp = a * (i * (b - (t * (x / i)))) elif b <= -1.7e-215: tmp = (j * ((t * c) - (y * i))) - (a * (x * t)) elif b <= 8500.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(y * Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.05e+182) tmp = t_2; elseif (b <= -2e+150) tmp = t_1; elseif (b <= -8.6e-23) tmp = Float64(a * Float64(i * Float64(b - Float64(t * Float64(x / i))))); elseif (b <= -1.7e-215) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(a * Float64(x * t))); elseif (b <= 8500.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * ((c * j) - (x * a))) - (y * (i * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.05e+182) tmp = t_2; elseif (b <= -2e+150) tmp = t_1; elseif (b <= -8.6e-23) tmp = a * (i * (b - (t * (x / i)))); elseif (b <= -1.7e-215) tmp = (j * ((t * c) - (y * i))) - (a * (x * t)); elseif (b <= 8500.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.05e+182], t$95$2, If[LessEqual[b, -2e+150], t$95$1, If[LessEqual[b, -8.6e-23], N[(a * N[(i * N[(b - N[(t * N[(x / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-215], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8500.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right) - y \cdot \left(i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.05 \cdot 10^{+182}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2 \cdot 10^{+150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8.6 \cdot 10^{-23}:\\
\;\;\;\;a \cdot \left(i \cdot \left(b - t \cdot \frac{x}{i}\right)\right)\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-215}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;b \leq 8500:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.05000000000000001e182 or 8500 < b Initial program 80.2%
Taylor expanded in b around inf 68.2%
if -2.05000000000000001e182 < b < -1.99999999999999996e150 or -1.70000000000000001e-215 < b < 8500Initial program 72.2%
Taylor expanded in t around inf 69.1%
mul-1-neg69.1%
distribute-rgt-neg-in69.1%
distribute-rgt-neg-in69.1%
Simplified69.1%
Taylor expanded in t around 0 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
associate-*r*74.7%
Simplified74.7%
if -1.99999999999999996e150 < b < -8.60000000000000004e-23Initial program 67.9%
Taylor expanded in a around inf 55.9%
distribute-lft-out--55.9%
Simplified55.9%
Taylor expanded in i around inf 65.3%
associate-/l*62.0%
Simplified62.0%
if -8.60000000000000004e-23 < b < -1.70000000000000001e-215Initial program 63.8%
Taylor expanded in t around inf 69.5%
mul-1-neg69.5%
distribute-rgt-neg-in69.5%
distribute-rgt-neg-in69.5%
Simplified69.5%
Final simplification70.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x t)))
(t_2 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))))
(if (<= j -3.8e+40)
(- (* j (- (* t c) (* y i))) t_1)
(if (<= j -1020000.0)
t_2
(if (<= j -8e-20)
(* c (- (* t j) (* z b)))
(if (<= j 1.45e+93) t_2 (- (* j (* i (- (* c (/ t i)) y))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * t);
double t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (j <= -3.8e+40) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (j <= -1020000.0) {
tmp = t_2;
} else if (j <= -8e-20) {
tmp = c * ((t * j) - (z * b));
} else if (j <= 1.45e+93) {
tmp = t_2;
} else {
tmp = (j * (i * ((c * (t / i)) - y))) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (x * t)
t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
if (j <= (-3.8d+40)) then
tmp = (j * ((t * c) - (y * i))) - t_1
else if (j <= (-1020000.0d0)) then
tmp = t_2
else if (j <= (-8d-20)) then
tmp = c * ((t * j) - (z * b))
else if (j <= 1.45d+93) then
tmp = t_2
else
tmp = (j * (i * ((c * (t / i)) - y))) - 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 * (x * t);
double t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (j <= -3.8e+40) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (j <= -1020000.0) {
tmp = t_2;
} else if (j <= -8e-20) {
tmp = c * ((t * j) - (z * b));
} else if (j <= 1.45e+93) {
tmp = t_2;
} else {
tmp = (j * (i * ((c * (t / i)) - y))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * t) t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) tmp = 0 if j <= -3.8e+40: tmp = (j * ((t * c) - (y * i))) - t_1 elif j <= -1020000.0: tmp = t_2 elif j <= -8e-20: tmp = c * ((t * j) - (z * b)) elif j <= 1.45e+93: tmp = t_2 else: tmp = (j * (i * ((c * (t / i)) - y))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * t)) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (j <= -3.8e+40) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - t_1); elseif (j <= -1020000.0) tmp = t_2; elseif (j <= -8e-20) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (j <= 1.45e+93) tmp = t_2; else tmp = Float64(Float64(j * Float64(i * Float64(Float64(c * Float64(t / i)) - y))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * t); t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); tmp = 0.0; if (j <= -3.8e+40) tmp = (j * ((t * c) - (y * i))) - t_1; elseif (j <= -1020000.0) tmp = t_2; elseif (j <= -8e-20) tmp = c * ((t * j) - (z * b)); elseif (j <= 1.45e+93) tmp = t_2; else tmp = (j * (i * ((c * (t / i)) - y))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(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]}, If[LessEqual[j, -3.8e+40], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[j, -1020000.0], t$95$2, If[LessEqual[j, -8e-20], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e+93], t$95$2, N[(N[(j * N[(i * N[(N[(c * N[(t / i), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot t\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+40}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - t\_1\\
\mathbf{elif}\;j \leq -1020000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -8 \cdot 10^{-20}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{+93}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(i \cdot \left(c \cdot \frac{t}{i} - y\right)\right) - t\_1\\
\end{array}
\end{array}
if j < -3.80000000000000004e40Initial program 74.4%
Taylor expanded in t around inf 69.9%
mul-1-neg69.9%
distribute-rgt-neg-in69.9%
distribute-rgt-neg-in69.9%
Simplified69.9%
if -3.80000000000000004e40 < j < -1.02e6 or -7.99999999999999956e-20 < j < 1.4499999999999999e93Initial program 74.7%
Taylor expanded in j around 0 76.8%
*-commutative76.8%
Simplified76.8%
if -1.02e6 < j < -7.99999999999999956e-20Initial program 84.7%
Taylor expanded in c around inf 99.3%
if 1.4499999999999999e93 < j Initial program 66.5%
Taylor expanded in t around inf 65.3%
mul-1-neg65.3%
distribute-rgt-neg-in65.3%
distribute-rgt-neg-in65.3%
Simplified65.3%
Taylor expanded in i around inf 67.2%
associate-/l*71.2%
Simplified71.2%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t (- (* c j) (* x a))) (* y (* i j))))
(t_2 (* b (- (* a i) (* z c)))))
(if (<= b -2.15e+182)
t_2
(if (<= b -1.2e+150)
t_1
(if (<= b -1.1e-21)
(* a (* i (- b (* t (/ x i)))))
(if (<= b 112.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * ((c * j) - (x * a))) - (y * (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.15e+182) {
tmp = t_2;
} else if (b <= -1.2e+150) {
tmp = t_1;
} else if (b <= -1.1e-21) {
tmp = a * (i * (b - (t * (x / i))));
} else if (b <= 112.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t * ((c * j) - (x * a))) - (y * (i * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-2.15d+182)) then
tmp = t_2
else if (b <= (-1.2d+150)) then
tmp = t_1
else if (b <= (-1.1d-21)) then
tmp = a * (i * (b - (t * (x / i))))
else if (b <= 112.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * ((c * j) - (x * a))) - (y * (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.15e+182) {
tmp = t_2;
} else if (b <= -1.2e+150) {
tmp = t_1;
} else if (b <= -1.1e-21) {
tmp = a * (i * (b - (t * (x / i))));
} else if (b <= 112.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * ((c * j) - (x * a))) - (y * (i * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.15e+182: tmp = t_2 elif b <= -1.2e+150: tmp = t_1 elif b <= -1.1e-21: tmp = a * (i * (b - (t * (x / i)))) elif b <= 112.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(y * Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.15e+182) tmp = t_2; elseif (b <= -1.2e+150) tmp = t_1; elseif (b <= -1.1e-21) tmp = Float64(a * Float64(i * Float64(b - Float64(t * Float64(x / i))))); elseif (b <= 112.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * ((c * j) - (x * a))) - (y * (i * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.15e+182) tmp = t_2; elseif (b <= -1.2e+150) tmp = t_1; elseif (b <= -1.1e-21) tmp = a * (i * (b - (t * (x / i)))); elseif (b <= 112.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.15e+182], t$95$2, If[LessEqual[b, -1.2e+150], t$95$1, If[LessEqual[b, -1.1e-21], N[(a * N[(i * N[(b - N[(t * N[(x / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 112.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right) - y \cdot \left(i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.15 \cdot 10^{+182}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{+150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-21}:\\
\;\;\;\;a \cdot \left(i \cdot \left(b - t \cdot \frac{x}{i}\right)\right)\\
\mathbf{elif}\;b \leq 112:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.1500000000000001e182 or 112 < b Initial program 80.2%
Taylor expanded in b around inf 68.2%
if -2.1500000000000001e182 < b < -1.20000000000000001e150 or -1.1e-21 < b < 112Initial program 70.1%
Taylor expanded in t around inf 69.2%
mul-1-neg69.2%
distribute-rgt-neg-in69.2%
distribute-rgt-neg-in69.2%
Simplified69.2%
Taylor expanded in t around 0 71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
*-commutative71.3%
associate-*r*69.2%
Simplified69.2%
if -1.20000000000000001e150 < b < -1.1e-21Initial program 67.9%
Taylor expanded in a around inf 55.9%
distribute-lft-out--55.9%
Simplified55.9%
Taylor expanded in i around inf 65.3%
associate-/l*62.0%
Simplified62.0%
Final simplification68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -6.9e-31)
t_1
(if (<= b 3e-163)
(* c (* t j))
(if (<= b 1.05e-72)
(* x (* t (- a)))
(if (<= b 9.5e-37)
(* y (* x z))
(if (<= b 0.021) (* y (* 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 <= -6.9e-31) {
tmp = t_1;
} else if (b <= 3e-163) {
tmp = c * (t * j);
} else if (b <= 1.05e-72) {
tmp = x * (t * -a);
} else if (b <= 9.5e-37) {
tmp = y * (x * z);
} else if (b <= 0.021) {
tmp = y * (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 <= (-6.9d-31)) then
tmp = t_1
else if (b <= 3d-163) then
tmp = c * (t * j)
else if (b <= 1.05d-72) then
tmp = x * (t * -a)
else if (b <= 9.5d-37) then
tmp = y * (x * z)
else if (b <= 0.021d0) then
tmp = y * (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 <= -6.9e-31) {
tmp = t_1;
} else if (b <= 3e-163) {
tmp = c * (t * j);
} else if (b <= 1.05e-72) {
tmp = x * (t * -a);
} else if (b <= 9.5e-37) {
tmp = y * (x * z);
} else if (b <= 0.021) {
tmp = y * (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 <= -6.9e-31: tmp = t_1 elif b <= 3e-163: tmp = c * (t * j) elif b <= 1.05e-72: tmp = x * (t * -a) elif b <= 9.5e-37: tmp = y * (x * z) elif b <= 0.021: tmp = y * (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 <= -6.9e-31) tmp = t_1; elseif (b <= 3e-163) tmp = Float64(c * Float64(t * j)); elseif (b <= 1.05e-72) tmp = Float64(x * Float64(t * Float64(-a))); elseif (b <= 9.5e-37) tmp = Float64(y * Float64(x * z)); elseif (b <= 0.021) tmp = Float64(y * Float64(i * Float64(-j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -6.9e-31) tmp = t_1; elseif (b <= 3e-163) tmp = c * (t * j); elseif (b <= 1.05e-72) tmp = x * (t * -a); elseif (b <= 9.5e-37) tmp = y * (x * z); elseif (b <= 0.021) tmp = y * (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, -6.9e-31], t$95$1, If[LessEqual[b, 3e-163], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e-72], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-37], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.021], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6.9 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-163}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-37}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 0.021:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.9000000000000004e-31 or 0.0210000000000000013 < b Initial program 77.3%
Taylor expanded in b around inf 63.3%
if -6.9000000000000004e-31 < b < 3.0000000000000002e-163Initial program 66.7%
Taylor expanded in t around inf 67.2%
mul-1-neg67.2%
distribute-rgt-neg-in67.2%
distribute-rgt-neg-in67.2%
Simplified67.2%
Taylor expanded in c around inf 41.7%
if 3.0000000000000002e-163 < b < 1.05e-72Initial program 78.8%
Taylor expanded in x around inf 46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in z around 0 46.4%
mul-1-neg46.4%
distribute-lft-neg-out46.4%
*-commutative46.4%
Simplified46.4%
if 1.05e-72 < b < 9.49999999999999927e-37Initial program 78.1%
Taylor expanded in y around inf 67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in z around inf 45.9%
*-commutative45.9%
associate-*r*56.5%
Simplified56.5%
if 9.49999999999999927e-37 < b < 0.0210000000000000013Initial program 70.7%
Taylor expanded in y around inf 42.9%
+-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in z around 0 52.6%
mul-1-neg52.6%
*-commutative52.6%
distribute-rgt-neg-in52.6%
*-commutative52.6%
associate-*r*52.8%
Simplified52.8%
Final simplification53.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -3.6e-13)
t_1
(if (<= b 1.3e-162)
(* c (- (* t j) (* z b)))
(if (<= b 2.7e-72)
(* x (* t (- a)))
(if (<= b 5.5e-37)
(* y (* x z))
(if (<= b 0.00029) (* y (* 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 <= -3.6e-13) {
tmp = t_1;
} else if (b <= 1.3e-162) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 2.7e-72) {
tmp = x * (t * -a);
} else if (b <= 5.5e-37) {
tmp = y * (x * z);
} else if (b <= 0.00029) {
tmp = y * (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 <= (-3.6d-13)) then
tmp = t_1
else if (b <= 1.3d-162) then
tmp = c * ((t * j) - (z * b))
else if (b <= 2.7d-72) then
tmp = x * (t * -a)
else if (b <= 5.5d-37) then
tmp = y * (x * z)
else if (b <= 0.00029d0) then
tmp = y * (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 <= -3.6e-13) {
tmp = t_1;
} else if (b <= 1.3e-162) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 2.7e-72) {
tmp = x * (t * -a);
} else if (b <= 5.5e-37) {
tmp = y * (x * z);
} else if (b <= 0.00029) {
tmp = y * (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 <= -3.6e-13: tmp = t_1 elif b <= 1.3e-162: tmp = c * ((t * j) - (z * b)) elif b <= 2.7e-72: tmp = x * (t * -a) elif b <= 5.5e-37: tmp = y * (x * z) elif b <= 0.00029: tmp = y * (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 <= -3.6e-13) tmp = t_1; elseif (b <= 1.3e-162) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= 2.7e-72) tmp = Float64(x * Float64(t * Float64(-a))); elseif (b <= 5.5e-37) tmp = Float64(y * Float64(x * z)); elseif (b <= 0.00029) tmp = Float64(y * Float64(i * Float64(-j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.6e-13) tmp = t_1; elseif (b <= 1.3e-162) tmp = c * ((t * j) - (z * b)); elseif (b <= 2.7e-72) tmp = x * (t * -a); elseif (b <= 5.5e-37) tmp = y * (x * z); elseif (b <= 0.00029) tmp = y * (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, -3.6e-13], t$95$1, If[LessEqual[b, 1.3e-162], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e-72], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-37], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00029], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.6 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-162}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-37}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 0.00029:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.5999999999999998e-13 or 2.9e-4 < b Initial program 77.8%
Taylor expanded in b around inf 63.5%
if -3.5999999999999998e-13 < b < 1.3e-162Initial program 66.3%
Taylor expanded in c around inf 46.1%
if 1.3e-162 < b < 2.7e-72Initial program 78.8%
Taylor expanded in x around inf 46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in z around 0 46.4%
mul-1-neg46.4%
distribute-lft-neg-out46.4%
*-commutative46.4%
Simplified46.4%
if 2.7e-72 < b < 5.4999999999999998e-37Initial program 78.1%
Taylor expanded in y around inf 67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in z around inf 45.9%
*-commutative45.9%
associate-*r*56.5%
Simplified56.5%
if 5.4999999999999998e-37 < b < 2.9e-4Initial program 70.7%
Taylor expanded in y around inf 42.9%
+-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in z around 0 52.6%
mul-1-neg52.6%
*-commutative52.6%
distribute-rgt-neg-in52.6%
*-commutative52.6%
associate-*r*52.8%
Simplified52.8%
Final simplification55.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -8e-23)
t_2
(if (<= b -6e-116)
t_1
(if (<= b -4.2e-202)
(* c (- (* t j) (* z b)))
(if (<= b 4.2e-103)
t_1
(if (<= b 7800.0) (* j (- (* t c) (* y i))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8e-23) {
tmp = t_2;
} else if (b <= -6e-116) {
tmp = t_1;
} else if (b <= -4.2e-202) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 4.2e-103) {
tmp = t_1;
} else if (b <= 7800.0) {
tmp = j * ((t * c) - (y * i));
} 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 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-8d-23)) then
tmp = t_2
else if (b <= (-6d-116)) then
tmp = t_1
else if (b <= (-4.2d-202)) then
tmp = c * ((t * j) - (z * b))
else if (b <= 4.2d-103) then
tmp = t_1
else if (b <= 7800.0d0) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8e-23) {
tmp = t_2;
} else if (b <= -6e-116) {
tmp = t_1;
} else if (b <= -4.2e-202) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 4.2e-103) {
tmp = t_1;
} else if (b <= 7800.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -8e-23: tmp = t_2 elif b <= -6e-116: tmp = t_1 elif b <= -4.2e-202: tmp = c * ((t * j) - (z * b)) elif b <= 4.2e-103: tmp = t_1 elif b <= 7800.0: tmp = j * ((t * c) - (y * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -8e-23) tmp = t_2; elseif (b <= -6e-116) tmp = t_1; elseif (b <= -4.2e-202) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= 4.2e-103) tmp = t_1; elseif (b <= 7800.0) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -8e-23) tmp = t_2; elseif (b <= -6e-116) tmp = t_1; elseif (b <= -4.2e-202) tmp = c * ((t * j) - (z * b)); elseif (b <= 4.2e-103) tmp = t_1; elseif (b <= 7800.0) tmp = j * ((t * c) - (y * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e-23], t$95$2, If[LessEqual[b, -6e-116], t$95$1, If[LessEqual[b, -4.2e-202], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e-103], t$95$1, If[LessEqual[b, 7800.0], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{-23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -6 \cdot 10^{-116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-202}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7800:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -7.99999999999999968e-23 or 7800 < b Initial program 77.1%
Taylor expanded in b around inf 63.8%
if -7.99999999999999968e-23 < b < -6.00000000000000053e-116 or -4.1999999999999997e-202 < b < 4.20000000000000009e-103Initial program 66.2%
Taylor expanded in t around inf 67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
Simplified67.1%
if -6.00000000000000053e-116 < b < -4.1999999999999997e-202Initial program 76.6%
Taylor expanded in c around inf 62.8%
if 4.20000000000000009e-103 < b < 7800Initial program 78.6%
Taylor expanded in c around 0 82.4%
Taylor expanded in j around inf 49.4%
mul-1-neg49.4%
distribute-lft-neg-out49.4%
+-commutative49.4%
cancel-sign-sub-inv49.4%
Simplified49.4%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.15e-26)
t_2
(if (<= b -7.8e-56)
(* x (- (* y z) (* t a)))
(if (<= b -4.9e-207)
t_1
(if (<= b 4.2e-105)
(* t (- (* c j) (* x a)))
(if (<= b 8500.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.15e-26) {
tmp = t_2;
} else if (b <= -7.8e-56) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -4.9e-207) {
tmp = t_1;
} else if (b <= 4.2e-105) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 8500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.15d-26)) then
tmp = t_2
else if (b <= (-7.8d-56)) then
tmp = x * ((y * z) - (t * a))
else if (b <= (-4.9d-207)) then
tmp = t_1
else if (b <= 4.2d-105) then
tmp = t * ((c * j) - (x * a))
else if (b <= 8500.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.15e-26) {
tmp = t_2;
} else if (b <= -7.8e-56) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -4.9e-207) {
tmp = t_1;
} else if (b <= 4.2e-105) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 8500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.15e-26: tmp = t_2 elif b <= -7.8e-56: tmp = x * ((y * z) - (t * a)) elif b <= -4.9e-207: tmp = t_1 elif b <= 4.2e-105: tmp = t * ((c * j) - (x * a)) elif b <= 8500.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.15e-26) tmp = t_2; elseif (b <= -7.8e-56) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= -4.9e-207) tmp = t_1; elseif (b <= 4.2e-105) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 8500.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.15e-26) tmp = t_2; elseif (b <= -7.8e-56) tmp = x * ((y * z) - (t * a)); elseif (b <= -4.9e-207) tmp = t_1; elseif (b <= 4.2e-105) tmp = t * ((c * j) - (x * a)); elseif (b <= 8500.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e-26], t$95$2, If[LessEqual[b, -7.8e-56], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.9e-207], t$95$1, If[LessEqual[b, 4.2e-105], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8500.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.15 \cdot 10^{-26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -7.8 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq -4.9 \cdot 10^{-207}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-105}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 8500:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.15000000000000004e-26 or 8500 < b Initial program 77.1%
Taylor expanded in b around inf 63.8%
if -1.15000000000000004e-26 < b < -7.8e-56Initial program 62.3%
Taylor expanded in x around inf 87.6%
*-commutative87.6%
Simplified87.6%
if -7.8e-56 < b < -4.9e-207 or 4.2e-105 < b < 8500Initial program 72.3%
Taylor expanded in c around 0 72.1%
Taylor expanded in j around inf 54.6%
mul-1-neg54.6%
distribute-lft-neg-out54.6%
+-commutative54.6%
cancel-sign-sub-inv54.6%
Simplified54.6%
if -4.9e-207 < b < 4.2e-105Initial program 68.2%
Taylor expanded in t around inf 67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
Simplified67.6%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -5.8e+250)
t_1
(if (<= y -7.5e-17)
(+ (* j (- (* t c) (* y i))) (* z (* x y)))
(if (<= y 9.8e+148)
(+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.8e+250) {
tmp = t_1;
} else if (y <= -7.5e-17) {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
} else if (y <= 9.8e+148) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-5.8d+250)) then
tmp = t_1
else if (y <= (-7.5d-17)) then
tmp = (j * ((t * c) - (y * i))) + (z * (x * y))
else if (y <= 9.8d+148) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.8e+250) {
tmp = t_1;
} else if (y <= -7.5e-17) {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
} else if (y <= 9.8e+148) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -5.8e+250: tmp = t_1 elif y <= -7.5e-17: tmp = (j * ((t * c) - (y * i))) + (z * (x * y)) elif y <= 9.8e+148: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -5.8e+250) tmp = t_1; elseif (y <= -7.5e-17) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(x * y))); elseif (y <= 9.8e+148) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -5.8e+250) tmp = t_1; elseif (y <= -7.5e-17) tmp = (j * ((t * c) - (y * i))) + (z * (x * y)); elseif (y <= 9.8e+148) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+250], t$95$1, If[LessEqual[y, -7.5e-17], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.8e+148], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+250}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-17}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 9.8 \cdot 10^{+148}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.80000000000000018e250 or 9.8e148 < y Initial program 54.4%
Taylor expanded in y around inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
Simplified82.4%
if -5.80000000000000018e250 < y < -7.49999999999999984e-17Initial program 82.8%
Taylor expanded in y around inf 70.5%
*-commutative70.5%
*-commutative70.5%
associate-*r*72.5%
Simplified72.5%
if -7.49999999999999984e-17 < y < 9.8e148Initial program 76.4%
Taylor expanded in y around 0 70.8%
*-commutative70.8%
associate-*r*67.8%
associate-*l*67.8%
associate-*r*69.0%
distribute-rgt-in70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
Final simplification73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -7.6e-31)
t_2
(if (<= b 4.5e-245)
t_1
(if (<= b 6.5e-211) (* x (* y z)) (if (<= b 40.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.6e-31) {
tmp = t_2;
} else if (b <= 4.5e-245) {
tmp = t_1;
} else if (b <= 6.5e-211) {
tmp = x * (y * z);
} else if (b <= 40.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-7.6d-31)) then
tmp = t_2
else if (b <= 4.5d-245) then
tmp = t_1
else if (b <= 6.5d-211) then
tmp = x * (y * z)
else if (b <= 40.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.6e-31) {
tmp = t_2;
} else if (b <= 4.5e-245) {
tmp = t_1;
} else if (b <= 6.5e-211) {
tmp = x * (y * z);
} else if (b <= 40.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -7.6e-31: tmp = t_2 elif b <= 4.5e-245: tmp = t_1 elif b <= 6.5e-211: tmp = x * (y * z) elif b <= 40.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.6e-31) tmp = t_2; elseif (b <= 4.5e-245) tmp = t_1; elseif (b <= 6.5e-211) tmp = Float64(x * Float64(y * z)); elseif (b <= 40.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -7.6e-31) tmp = t_2; elseif (b <= 4.5e-245) tmp = t_1; elseif (b <= 6.5e-211) tmp = x * (y * z); elseif (b <= 40.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.6e-31], t$95$2, If[LessEqual[b, 4.5e-245], t$95$1, If[LessEqual[b, 6.5e-211], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 40.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.6 \cdot 10^{-31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-245}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-211}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 40:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -7.5999999999999999e-31 or 40 < b Initial program 77.3%
Taylor expanded in b around inf 63.3%
if -7.5999999999999999e-31 < b < 4.49999999999999969e-245 or 6.4999999999999996e-211 < b < 40Initial program 69.3%
Taylor expanded in c around 0 71.7%
Taylor expanded in j around inf 53.5%
mul-1-neg53.5%
distribute-lft-neg-out53.5%
+-commutative53.5%
cancel-sign-sub-inv53.5%
Simplified53.5%
if 4.49999999999999969e-245 < b < 6.4999999999999996e-211Initial program 66.7%
Taylor expanded in x around inf 89.6%
*-commutative89.6%
Simplified89.6%
Taylor expanded in z around inf 67.8%
Final simplification58.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -5e+28)
t_1
(if (<= c -5.6e-54)
(* y (- (* x z) (* i j)))
(if (<= c 9.5e-76)
(* i (- (* a b) (* y j)))
(if (<= c 3.6e+96) (* t (- (* c j) (* x a))) 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 <= -5e+28) {
tmp = t_1;
} else if (c <= -5.6e-54) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 9.5e-76) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 3.6e+96) {
tmp = t * ((c * j) - (x * a));
} 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 <= (-5d+28)) then
tmp = t_1
else if (c <= (-5.6d-54)) then
tmp = y * ((x * z) - (i * j))
else if (c <= 9.5d-76) then
tmp = i * ((a * b) - (y * j))
else if (c <= 3.6d+96) then
tmp = t * ((c * j) - (x * a))
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 <= -5e+28) {
tmp = t_1;
} else if (c <= -5.6e-54) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 9.5e-76) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 3.6e+96) {
tmp = t * ((c * j) - (x * a));
} 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 <= -5e+28: tmp = t_1 elif c <= -5.6e-54: tmp = y * ((x * z) - (i * j)) elif c <= 9.5e-76: tmp = i * ((a * b) - (y * j)) elif c <= 3.6e+96: tmp = t * ((c * j) - (x * a)) 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 <= -5e+28) tmp = t_1; elseif (c <= -5.6e-54) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 9.5e-76) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (c <= 3.6e+96) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); 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 <= -5e+28) tmp = t_1; elseif (c <= -5.6e-54) tmp = y * ((x * z) - (i * j)); elseif (c <= 9.5e-76) tmp = i * ((a * b) - (y * j)); elseif (c <= 3.6e+96) tmp = t * ((c * j) - (x * a)); 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, -5e+28], t$95$1, If[LessEqual[c, -5.6e-54], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-76], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.6e+96], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $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 -5 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -5.6 \cdot 10^{-54}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-76}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{+96}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.99999999999999957e28 or 3.60000000000000013e96 < c Initial program 63.8%
Taylor expanded in c around inf 69.4%
if -4.99999999999999957e28 < c < -5.6000000000000004e-54Initial program 82.0%
Taylor expanded in y around inf 58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
*-commutative58.8%
Simplified58.8%
if -5.6000000000000004e-54 < c < 9.49999999999999984e-76Initial program 81.9%
Taylor expanded in i around inf 58.5%
distribute-lft-out--58.5%
*-commutative58.5%
Simplified58.5%
if 9.49999999999999984e-76 < c < 3.60000000000000013e96Initial program 71.0%
Taylor expanded in t around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= c -1.55e+85)
t_1
(if (<= c -1.02e-172)
(* x (* y z))
(if (<= c 2.2e-75)
(* b (* a i))
(if (<= c 1.15e+80) (* a (* t (- x))) 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);
double tmp;
if (c <= -1.55e+85) {
tmp = t_1;
} else if (c <= -1.02e-172) {
tmp = x * (y * z);
} else if (c <= 2.2e-75) {
tmp = b * (a * i);
} else if (c <= 1.15e+80) {
tmp = a * (t * -x);
} 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)
if (c <= (-1.55d+85)) then
tmp = t_1
else if (c <= (-1.02d-172)) then
tmp = x * (y * z)
else if (c <= 2.2d-75) then
tmp = b * (a * i)
else if (c <= 1.15d+80) then
tmp = a * (t * -x)
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);
double tmp;
if (c <= -1.55e+85) {
tmp = t_1;
} else if (c <= -1.02e-172) {
tmp = x * (y * z);
} else if (c <= 2.2e-75) {
tmp = b * (a * i);
} else if (c <= 1.15e+80) {
tmp = a * (t * -x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if c <= -1.55e+85: tmp = t_1 elif c <= -1.02e-172: tmp = x * (y * z) elif c <= 2.2e-75: tmp = b * (a * i) elif c <= 1.15e+80: tmp = a * (t * -x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (c <= -1.55e+85) tmp = t_1; elseif (c <= -1.02e-172) tmp = Float64(x * Float64(y * z)); elseif (c <= 2.2e-75) tmp = Float64(b * Float64(a * i)); elseif (c <= 1.15e+80) tmp = Float64(a * Float64(t * Float64(-x))); 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); tmp = 0.0; if (c <= -1.55e+85) tmp = t_1; elseif (c <= -1.02e-172) tmp = x * (y * z); elseif (c <= 2.2e-75) tmp = b * (a * i); elseif (c <= 1.15e+80) tmp = a * (t * -x); 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[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.55e+85], t$95$1, If[LessEqual[c, -1.02e-172], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e-75], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.15e+80], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;c \leq -1.55 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.02 \cdot 10^{-172}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-75}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{+80}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.55000000000000006e85 or 1.15000000000000002e80 < c Initial program 60.3%
Taylor expanded in t around inf 53.6%
mul-1-neg53.6%
distribute-rgt-neg-in53.6%
distribute-rgt-neg-in53.6%
Simplified53.6%
Taylor expanded in c around inf 43.9%
if -1.55000000000000006e85 < c < -1.02e-172Initial program 78.5%
Taylor expanded in x around inf 46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in z around inf 37.2%
if -1.02e-172 < c < 2.20000000000000005e-75Initial program 85.7%
Taylor expanded in b around inf 45.6%
Taylor expanded in a around inf 41.0%
*-commutative41.0%
Simplified41.0%
if 2.20000000000000005e-75 < c < 1.15000000000000002e80Initial program 73.1%
Taylor expanded in x around inf 49.7%
*-commutative49.7%
Simplified49.7%
Taylor expanded in a around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
associate-/l*44.9%
associate-/l*44.9%
Simplified44.9%
Taylor expanded in y around 0 40.3%
mul-1-neg40.3%
distribute-lft-neg-out40.3%
*-commutative40.3%
Simplified40.3%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= c -2.65e+84)
t_1
(if (<= c -3.7e-177)
(* x (* y z))
(if (<= c 2.3e-68) (* b (* a i)) 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);
double tmp;
if (c <= -2.65e+84) {
tmp = t_1;
} else if (c <= -3.7e-177) {
tmp = x * (y * z);
} else if (c <= 2.3e-68) {
tmp = b * (a * i);
} 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)
if (c <= (-2.65d+84)) then
tmp = t_1
else if (c <= (-3.7d-177)) then
tmp = x * (y * z)
else if (c <= 2.3d-68) then
tmp = b * (a * i)
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);
double tmp;
if (c <= -2.65e+84) {
tmp = t_1;
} else if (c <= -3.7e-177) {
tmp = x * (y * z);
} else if (c <= 2.3e-68) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if c <= -2.65e+84: tmp = t_1 elif c <= -3.7e-177: tmp = x * (y * z) elif c <= 2.3e-68: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (c <= -2.65e+84) tmp = t_1; elseif (c <= -3.7e-177) tmp = Float64(x * Float64(y * z)); elseif (c <= 2.3e-68) tmp = Float64(b * Float64(a * i)); 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); tmp = 0.0; if (c <= -2.65e+84) tmp = t_1; elseif (c <= -3.7e-177) tmp = x * (y * z); elseif (c <= 2.3e-68) tmp = b * (a * i); 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[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.65e+84], t$95$1, If[LessEqual[c, -3.7e-177], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.3e-68], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;c \leq -2.65 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.7 \cdot 10^{-177}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{-68}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.6500000000000001e84 or 2.29999999999999997e-68 < c Initial program 64.0%
Taylor expanded in t around inf 54.4%
mul-1-neg54.4%
distribute-rgt-neg-in54.4%
distribute-rgt-neg-in54.4%
Simplified54.4%
Taylor expanded in c around inf 37.8%
if -2.6500000000000001e84 < c < -3.69999999999999993e-177Initial program 78.5%
Taylor expanded in x around inf 46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in z around inf 37.2%
if -3.69999999999999993e-177 < c < 2.29999999999999997e-68Initial program 85.9%
Taylor expanded in b around inf 45.1%
Taylor expanded in a around inf 40.5%
*-commutative40.5%
Simplified40.5%
Final simplification38.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.6e-26) (not (<= b 6.6e-6))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.6e-26) || !(b <= 6.6e-6)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.6d-26)) .or. (.not. (b <= 6.6d-6))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.6e-26) || !(b <= 6.6e-6)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.6e-26) or not (b <= 6.6e-6): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.6e-26) || !(b <= 6.6e-6)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.6e-26) || ~((b <= 6.6e-6))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.6e-26], N[Not[LessEqual[b, 6.6e-6]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.6 \cdot 10^{-26} \lor \neg \left(b \leq 6.6 \cdot 10^{-6}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -1.6000000000000001e-26 or 6.60000000000000034e-6 < b Initial program 76.1%
Taylor expanded in b around inf 62.3%
Taylor expanded in a around inf 35.6%
*-commutative35.6%
Simplified35.6%
if -1.6000000000000001e-26 < b < 6.60000000000000034e-6Initial program 70.2%
Taylor expanded in t around inf 67.6%
mul-1-neg67.6%
distribute-rgt-neg-in67.6%
distribute-rgt-neg-in67.6%
Simplified67.6%
Taylor expanded in c around inf 36.6%
Final simplification36.1%
(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.2%
Taylor expanded in b around inf 38.1%
Taylor expanded in a around inf 20.6%
*-commutative20.6%
Simplified20.6%
Final simplification20.6%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 73.2%
Taylor expanded in b around inf 38.1%
Taylor expanded in a around inf 21.0%
*-commutative21.0%
Simplified21.0%
Final simplification21.0%
(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 2024115
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(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)))))