
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* b i) (* 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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((b * i) - (x * a)) 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(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); 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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((b * i) - (x * a)); 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - 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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in t around -inf 52.6%
Final simplification82.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -9.5e+61)
t_2
(if (<= b -5.7e-86)
(* i (- (* t b) (* y j)))
(if (<= b -1.6e-159)
(* z (- (* x y) (* b c)))
(if (<= b -1.15e-178)
t_1
(if (<= b 2e-211)
(* a (- (* c j) (* x t)))
(if (<= b 6.8e-127)
t_1
(if (<= b 1e+37) (* a (* t (- (/ (* b i) a) x))) 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 * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9.5e+61) {
tmp = t_2;
} else if (b <= -5.7e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1.6e-159) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -1.15e-178) {
tmp = t_1;
} else if (b <= 2e-211) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 6.8e-127) {
tmp = t_1;
} else if (b <= 1e+37) {
tmp = a * (t * (((b * i) / a) - x));
} 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 * ((a * c) - (y * i))
t_2 = b * ((t * i) - (z * c))
if (b <= (-9.5d+61)) then
tmp = t_2
else if (b <= (-5.7d-86)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-1.6d-159)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-1.15d-178)) then
tmp = t_1
else if (b <= 2d-211) then
tmp = a * ((c * j) - (x * t))
else if (b <= 6.8d-127) then
tmp = t_1
else if (b <= 1d+37) then
tmp = a * (t * (((b * i) / a) - x))
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 * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9.5e+61) {
tmp = t_2;
} else if (b <= -5.7e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1.6e-159) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -1.15e-178) {
tmp = t_1;
} else if (b <= 2e-211) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 6.8e-127) {
tmp = t_1;
} else if (b <= 1e+37) {
tmp = a * (t * (((b * i) / a) - x));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -9.5e+61: tmp = t_2 elif b <= -5.7e-86: tmp = i * ((t * b) - (y * j)) elif b <= -1.6e-159: tmp = z * ((x * y) - (b * c)) elif b <= -1.15e-178: tmp = t_1 elif b <= 2e-211: tmp = a * ((c * j) - (x * t)) elif b <= 6.8e-127: tmp = t_1 elif b <= 1e+37: tmp = a * (t * (((b * i) / a) - x)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -9.5e+61) tmp = t_2; elseif (b <= -5.7e-86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -1.6e-159) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -1.15e-178) tmp = t_1; elseif (b <= 2e-211) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 6.8e-127) tmp = t_1; elseif (b <= 1e+37) tmp = Float64(a * Float64(t * Float64(Float64(Float64(b * i) / a) - x))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -9.5e+61) tmp = t_2; elseif (b <= -5.7e-86) tmp = i * ((t * b) - (y * j)); elseif (b <= -1.6e-159) tmp = z * ((x * y) - (b * c)); elseif (b <= -1.15e-178) tmp = t_1; elseif (b <= 2e-211) tmp = a * ((c * j) - (x * t)); elseif (b <= 6.8e-127) tmp = t_1; elseif (b <= 1e+37) tmp = a * (t * (((b * i) / a) - x)); 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[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.5e+61], t$95$2, If[LessEqual[b, -5.7e-86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.6e-159], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e-178], t$95$1, If[LessEqual[b, 2e-211], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-127], t$95$1, If[LessEqual[b, 1e+37], N[(a * N[(t * N[(N[(N[(b * i), $MachinePrecision] / a), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.5 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -5.7 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-159}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-127}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 10^{+37}:\\
\;\;\;\;a \cdot \left(t \cdot \left(\frac{b \cdot i}{a} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -9.49999999999999959e61 or 9.99999999999999954e36 < b Initial program 75.1%
Taylor expanded in b around inf 70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
if -9.49999999999999959e61 < b < -5.7000000000000004e-86Initial program 71.8%
Taylor expanded in i around inf 65.0%
distribute-lft-out--65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -5.7000000000000004e-86 < b < -1.6e-159Initial program 74.9%
Taylor expanded in z around inf 63.1%
if -1.6e-159 < b < -1.14999999999999997e-178 or 2.00000000000000017e-211 < b < 6.7999999999999997e-127Initial program 59.8%
Taylor expanded in j around inf 67.0%
*-commutative67.0%
Simplified67.0%
if -1.14999999999999997e-178 < b < 2.00000000000000017e-211Initial program 59.3%
Taylor expanded in a around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
Simplified61.7%
if 6.7999999999999997e-127 < b < 9.99999999999999954e36Initial program 78.7%
Taylor expanded in a around -inf 78.5%
Simplified85.5%
Taylor expanded in t around inf 68.9%
Final simplification66.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -5.6e+62)
t_1
(if (<= b -6.8e-86)
(* i (- (* t b) (* y j)))
(if (<= b -1.45e-162)
(* (* z c) (- (* x (/ y c)) b))
(if (<= b -2.4e-178)
(* i (* y (- j)))
(if (<= b 6.2e-212)
(* a (- (* c j) (* x t)))
(if (<= b 5.2e-122)
(* j (- (* a c) (* y i)))
(if (<= b 3.1e+36) (* a (* t (- (/ (* b i) a) 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.6e+62) {
tmp = t_1;
} else if (b <= -6.8e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1.45e-162) {
tmp = (z * c) * ((x * (y / c)) - b);
} else if (b <= -2.4e-178) {
tmp = i * (y * -j);
} else if (b <= 6.2e-212) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 5.2e-122) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 3.1e+36) {
tmp = a * (t * (((b * i) / a) - 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 = b * ((t * i) - (z * c))
if (b <= (-5.6d+62)) then
tmp = t_1
else if (b <= (-6.8d-86)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-1.45d-162)) then
tmp = (z * c) * ((x * (y / c)) - b)
else if (b <= (-2.4d-178)) then
tmp = i * (y * -j)
else if (b <= 6.2d-212) then
tmp = a * ((c * j) - (x * t))
else if (b <= 5.2d-122) then
tmp = j * ((a * c) - (y * i))
else if (b <= 3.1d+36) then
tmp = a * (t * (((b * i) / a) - 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.6e+62) {
tmp = t_1;
} else if (b <= -6.8e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1.45e-162) {
tmp = (z * c) * ((x * (y / c)) - b);
} else if (b <= -2.4e-178) {
tmp = i * (y * -j);
} else if (b <= 6.2e-212) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 5.2e-122) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 3.1e+36) {
tmp = a * (t * (((b * i) / a) - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.6e+62: tmp = t_1 elif b <= -6.8e-86: tmp = i * ((t * b) - (y * j)) elif b <= -1.45e-162: tmp = (z * c) * ((x * (y / c)) - b) elif b <= -2.4e-178: tmp = i * (y * -j) elif b <= 6.2e-212: tmp = a * ((c * j) - (x * t)) elif b <= 5.2e-122: tmp = j * ((a * c) - (y * i)) elif b <= 3.1e+36: tmp = a * (t * (((b * i) / a) - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.6e+62) tmp = t_1; elseif (b <= -6.8e-86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -1.45e-162) tmp = Float64(Float64(z * c) * Float64(Float64(x * Float64(y / c)) - b)); elseif (b <= -2.4e-178) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 6.2e-212) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 5.2e-122) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 3.1e+36) tmp = Float64(a * Float64(t * Float64(Float64(Float64(b * i) / a) - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.6e+62) tmp = t_1; elseif (b <= -6.8e-86) tmp = i * ((t * b) - (y * j)); elseif (b <= -1.45e-162) tmp = (z * c) * ((x * (y / c)) - b); elseif (b <= -2.4e-178) tmp = i * (y * -j); elseif (b <= 6.2e-212) tmp = a * ((c * j) - (x * t)); elseif (b <= 5.2e-122) tmp = j * ((a * c) - (y * i)); elseif (b <= 3.1e+36) tmp = a * (t * (((b * i) / a) - 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.6e+62], t$95$1, If[LessEqual[b, -6.8e-86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e-162], N[(N[(z * c), $MachinePrecision] * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.4e-178], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e-212], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e-122], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e+36], N[(a * N[(t * N[(N[(N[(b * i), $MachinePrecision] / a), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-162}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(x \cdot \frac{y}{c} - b\right)\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-178}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{-212}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-122}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(t \cdot \left(\frac{b \cdot i}{a} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.60000000000000029e62 or 3.0999999999999999e36 < b Initial program 75.1%
Taylor expanded in b around inf 70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
if -5.60000000000000029e62 < b < -6.8000000000000001e-86Initial program 71.8%
Taylor expanded in i around inf 65.0%
distribute-lft-out--65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -6.8000000000000001e-86 < b < -1.4500000000000001e-162Initial program 70.5%
Taylor expanded in c around inf 82.2%
Taylor expanded in z around inf 59.7%
associate-*r*65.2%
associate-/l*65.2%
Simplified65.2%
if -1.4500000000000001e-162 < b < -2.40000000000000005e-178Initial program 99.0%
Taylor expanded in y around inf 69.8%
+-commutative69.8%
mul-1-neg69.8%
unsub-neg69.8%
Simplified69.8%
Taylor expanded in x around 0 99.5%
associate-*r*99.5%
neg-mul-199.5%
Simplified99.5%
if -2.40000000000000005e-178 < b < 6.20000000000000011e-212Initial program 59.3%
Taylor expanded in a around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
Simplified61.7%
if 6.20000000000000011e-212 < b < 5.1999999999999995e-122Initial program 56.6%
Taylor expanded in j around inf 59.9%
*-commutative59.9%
Simplified59.9%
if 5.1999999999999995e-122 < b < 3.0999999999999999e36Initial program 78.7%
Taylor expanded in a around -inf 78.5%
Simplified85.5%
Taylor expanded in t around inf 68.9%
Final simplification66.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* x a) (- (* y (/ z a)) t))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -7e+62)
t_2
(if (<= b -4e-86)
(* i (- (* t b) (* y j)))
(if (<= b -2.25e-160)
t_1
(if (<= b 8.5e-222)
(* a (- (* c j) (* x t)))
(if (<= b 8.5e-193)
(* y (- (* x z) (* i j)))
(if (<= b 8.4e-132)
(* j (- (* a c) (* y i)))
(if (<= b 1.45e+64) 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 * a) * ((y * (z / a)) - t);
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e+62) {
tmp = t_2;
} else if (b <= -4e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -2.25e-160) {
tmp = t_1;
} else if (b <= 8.5e-222) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 8.5e-193) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 8.4e-132) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.45e+64) {
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 * a) * ((y * (z / a)) - t)
t_2 = b * ((t * i) - (z * c))
if (b <= (-7d+62)) then
tmp = t_2
else if (b <= (-4d-86)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-2.25d-160)) then
tmp = t_1
else if (b <= 8.5d-222) then
tmp = a * ((c * j) - (x * t))
else if (b <= 8.5d-193) then
tmp = y * ((x * z) - (i * j))
else if (b <= 8.4d-132) then
tmp = j * ((a * c) - (y * i))
else if (b <= 1.45d+64) 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 * a) * ((y * (z / a)) - t);
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e+62) {
tmp = t_2;
} else if (b <= -4e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -2.25e-160) {
tmp = t_1;
} else if (b <= 8.5e-222) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 8.5e-193) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 8.4e-132) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.45e+64) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * a) * ((y * (z / a)) - t) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -7e+62: tmp = t_2 elif b <= -4e-86: tmp = i * ((t * b) - (y * j)) elif b <= -2.25e-160: tmp = t_1 elif b <= 8.5e-222: tmp = a * ((c * j) - (x * t)) elif b <= 8.5e-193: tmp = y * ((x * z) - (i * j)) elif b <= 8.4e-132: tmp = j * ((a * c) - (y * i)) elif b <= 1.45e+64: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * a) * Float64(Float64(y * Float64(z / a)) - t)) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -7e+62) tmp = t_2; elseif (b <= -4e-86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -2.25e-160) tmp = t_1; elseif (b <= 8.5e-222) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 8.5e-193) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 8.4e-132) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 1.45e+64) 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 * a) * ((y * (z / a)) - t); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -7e+62) tmp = t_2; elseif (b <= -4e-86) tmp = i * ((t * b) - (y * j)); elseif (b <= -2.25e-160) tmp = t_1; elseif (b <= 8.5e-222) tmp = a * ((c * j) - (x * t)); elseif (b <= 8.5e-193) tmp = y * ((x * z) - (i * j)); elseif (b <= 8.4e-132) tmp = j * ((a * c) - (y * i)); elseif (b <= 1.45e+64) 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[(x * a), $MachinePrecision] * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7e+62], t$95$2, If[LessEqual[b, -4e-86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.25e-160], t$95$1, If[LessEqual[b, 8.5e-222], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e-193], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.4e-132], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e+64], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot a\right) \cdot \left(y \cdot \frac{z}{a} - t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{-160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-193}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 8.4 \cdot 10^{-132}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -6.99999999999999967e62 or 1.44999999999999997e64 < b Initial program 73.6%
Taylor expanded in b around inf 73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
if -6.99999999999999967e62 < b < -4.00000000000000034e-86Initial program 71.8%
Taylor expanded in i around inf 65.0%
distribute-lft-out--65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -4.00000000000000034e-86 < b < -2.25000000000000013e-160 or 8.4000000000000004e-132 < b < 1.44999999999999997e64Initial program 80.4%
Taylor expanded in a around -inf 78.4%
Simplified84.2%
Taylor expanded in x around inf 67.6%
associate-*r*67.7%
*-commutative67.7%
associate-/l*69.5%
Simplified69.5%
if -2.25000000000000013e-160 < b < 8.5000000000000003e-222Initial program 60.3%
Taylor expanded in a around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
*-commutative61.0%
Simplified61.0%
if 8.5000000000000003e-222 < b < 8.50000000000000004e-193Initial program 56.6%
Taylor expanded in y around inf 71.9%
+-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
Simplified71.9%
if 8.50000000000000004e-193 < b < 8.4000000000000004e-132Initial program 54.9%
Taylor expanded in j around inf 56.3%
*-commutative56.3%
Simplified56.3%
Final simplification68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -5.8e-85)
t_3
(if (<= b -2.3e-178)
t_2
(if (<= b 2.7e-211)
t_1
(if (<= b 7.8e-125)
(* j (- (* a c) (* y i)))
(if (<= b 0.00023)
(* (* x t) (- a))
(if (<= b 1.4e+31) t_2 (if (<= b 3.3e+63) 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 = a * ((c * j) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e-85) {
tmp = t_3;
} else if (b <= -2.3e-178) {
tmp = t_2;
} else if (b <= 2.7e-211) {
tmp = t_1;
} else if (b <= 7.8e-125) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.00023) {
tmp = (x * t) * -a;
} else if (b <= 1.4e+31) {
tmp = t_2;
} else if (b <= 3.3e+63) {
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 = a * ((c * j) - (x * t))
t_2 = y * ((x * z) - (i * j))
t_3 = b * ((t * i) - (z * c))
if (b <= (-5.8d-85)) then
tmp = t_3
else if (b <= (-2.3d-178)) then
tmp = t_2
else if (b <= 2.7d-211) then
tmp = t_1
else if (b <= 7.8d-125) then
tmp = j * ((a * c) - (y * i))
else if (b <= 0.00023d0) then
tmp = (x * t) * -a
else if (b <= 1.4d+31) then
tmp = t_2
else if (b <= 3.3d+63) 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 = a * ((c * j) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e-85) {
tmp = t_3;
} else if (b <= -2.3e-178) {
tmp = t_2;
} else if (b <= 2.7e-211) {
tmp = t_1;
} else if (b <= 7.8e-125) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.00023) {
tmp = (x * t) * -a;
} else if (b <= 1.4e+31) {
tmp = t_2;
} else if (b <= 3.3e+63) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = y * ((x * z) - (i * j)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.8e-85: tmp = t_3 elif b <= -2.3e-178: tmp = t_2 elif b <= 2.7e-211: tmp = t_1 elif b <= 7.8e-125: tmp = j * ((a * c) - (y * i)) elif b <= 0.00023: tmp = (x * t) * -a elif b <= 1.4e+31: tmp = t_2 elif b <= 3.3e+63: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.8e-85) tmp = t_3; elseif (b <= -2.3e-178) tmp = t_2; elseif (b <= 2.7e-211) tmp = t_1; elseif (b <= 7.8e-125) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 0.00023) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (b <= 1.4e+31) tmp = t_2; elseif (b <= 3.3e+63) 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 = a * ((c * j) - (x * t)); t_2 = y * ((x * z) - (i * j)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.8e-85) tmp = t_3; elseif (b <= -2.3e-178) tmp = t_2; elseif (b <= 2.7e-211) tmp = t_1; elseif (b <= 7.8e-125) tmp = j * ((a * c) - (y * i)); elseif (b <= 0.00023) tmp = (x * t) * -a; elseif (b <= 1.4e+31) tmp = t_2; elseif (b <= 3.3e+63) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e-85], t$95$3, If[LessEqual[b, -2.3e-178], t$95$2, If[LessEqual[b, 2.7e-211], t$95$1, If[LessEqual[b, 7.8e-125], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00023], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[b, 1.4e+31], t$95$2, If[LessEqual[b, 3.3e+63], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{-85}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-178}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-211}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{-125}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 0.00023:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -5.8000000000000004e-85 or 3.3000000000000002e63 < b Initial program 73.5%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
if -5.8000000000000004e-85 < b < -2.29999999999999994e-178 or 2.3000000000000001e-4 < b < 1.40000000000000008e31Initial program 72.8%
Taylor expanded in y around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
Simplified66.1%
if -2.29999999999999994e-178 < b < 2.6999999999999999e-211 or 1.40000000000000008e31 < b < 3.3000000000000002e63Initial program 65.7%
Taylor expanded in a around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
Simplified61.7%
if 2.6999999999999999e-211 < b < 7.79999999999999965e-125Initial program 56.6%
Taylor expanded in j around inf 59.9%
*-commutative59.9%
Simplified59.9%
if 7.79999999999999965e-125 < b < 2.3000000000000001e-4Initial program 75.1%
Taylor expanded in a around inf 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in c around 0 60.4%
associate-*r*60.4%
mul-1-neg60.4%
Simplified60.4%
Final simplification64.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -9.2e-85)
t_2
(if (<= b -1.5e-178)
(* y (- (* x z) (* i j)))
(if (<= b 2e-211)
t_1
(if (<= b 1.65e-122)
(* j (- (* a c) (* y i)))
(if (<= b 1.7e-7)
(* z (- (* x y) (* b c)))
(if (<= b 2.1e+31)
(* t (- (* b i) (* x a)))
(if (<= b 4.9e+64) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9.2e-85) {
tmp = t_2;
} else if (b <= -1.5e-178) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2e-211) {
tmp = t_1;
} else if (b <= 1.65e-122) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.7e-7) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 2.1e+31) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 4.9e+64) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-9.2d-85)) then
tmp = t_2
else if (b <= (-1.5d-178)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 2d-211) then
tmp = t_1
else if (b <= 1.65d-122) then
tmp = j * ((a * c) - (y * i))
else if (b <= 1.7d-7) then
tmp = z * ((x * y) - (b * c))
else if (b <= 2.1d+31) then
tmp = t * ((b * i) - (x * a))
else if (b <= 4.9d+64) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9.2e-85) {
tmp = t_2;
} else if (b <= -1.5e-178) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2e-211) {
tmp = t_1;
} else if (b <= 1.65e-122) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.7e-7) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 2.1e+31) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 4.9e+64) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -9.2e-85: tmp = t_2 elif b <= -1.5e-178: tmp = y * ((x * z) - (i * j)) elif b <= 2e-211: tmp = t_1 elif b <= 1.65e-122: tmp = j * ((a * c) - (y * i)) elif b <= 1.7e-7: tmp = z * ((x * y) - (b * c)) elif b <= 2.1e+31: tmp = t * ((b * i) - (x * a)) elif b <= 4.9e+64: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -9.2e-85) tmp = t_2; elseif (b <= -1.5e-178) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 2e-211) tmp = t_1; elseif (b <= 1.65e-122) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 1.7e-7) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= 2.1e+31) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 4.9e+64) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -9.2e-85) tmp = t_2; elseif (b <= -1.5e-178) tmp = y * ((x * z) - (i * j)); elseif (b <= 2e-211) tmp = t_1; elseif (b <= 1.65e-122) tmp = j * ((a * c) - (y * i)); elseif (b <= 1.7e-7) tmp = z * ((x * y) - (b * c)); elseif (b <= 2.1e+31) tmp = t * ((b * i) - (x * a)); elseif (b <= 4.9e+64) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.2e-85], t$95$2, If[LessEqual[b, -1.5e-178], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e-211], t$95$1, If[LessEqual[b, 1.65e-122], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e-7], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+31], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.9e+64], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.2 \cdot 10^{-85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-178}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-211}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-122}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-7}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+31}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 4.9 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -9.2000000000000001e-85 or 4.9000000000000003e64 < b Initial program 73.5%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
if -9.2000000000000001e-85 < b < -1.4999999999999999e-178Initial program 72.4%
Taylor expanded in y around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
if -1.4999999999999999e-178 < b < 2.00000000000000017e-211 or 2.09999999999999979e31 < b < 4.9000000000000003e64Initial program 65.2%
Taylor expanded in a around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
if 2.00000000000000017e-211 < b < 1.65e-122Initial program 56.6%
Taylor expanded in j around inf 59.9%
*-commutative59.9%
Simplified59.9%
if 1.65e-122 < b < 1.69999999999999987e-7Initial program 77.9%
Taylor expanded in z around inf 61.9%
if 1.69999999999999987e-7 < b < 2.09999999999999979e31Initial program 71.4%
Taylor expanded in t around -inf 75.5%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i)))))
(t_2 (+ (* j (* a c)) (* b (- (* t i) (* z c))))))
(if (<= b -7.4e+61)
t_2
(if (<= b -9.6e-86)
(* i (- (* t b) (* y j)))
(if (<= b -9e-123)
t_1
(if (<= b -5.8e-134)
(* (* x a) (- (* y (/ z a)) t))
(if (<= b 2.6e+63) 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))) + (j * ((a * c) - (y * i)));
double t_2 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -7.4e+61) {
tmp = t_2;
} else if (b <= -9.6e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -9e-123) {
tmp = t_1;
} else if (b <= -5.8e-134) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 2.6e+63) {
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))) + (j * ((a * c) - (y * i)))
t_2 = (j * (a * c)) + (b * ((t * i) - (z * c)))
if (b <= (-7.4d+61)) then
tmp = t_2
else if (b <= (-9.6d-86)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-9d-123)) then
tmp = t_1
else if (b <= (-5.8d-134)) then
tmp = (x * a) * ((y * (z / a)) - t)
else if (b <= 2.6d+63) 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))) + (j * ((a * c) - (y * i)));
double t_2 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -7.4e+61) {
tmp = t_2;
} else if (b <= -9.6e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -9e-123) {
tmp = t_1;
} else if (b <= -5.8e-134) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 2.6e+63) {
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))) + (j * ((a * c) - (y * i))) t_2 = (j * (a * c)) + (b * ((t * i) - (z * c))) tmp = 0 if b <= -7.4e+61: tmp = t_2 elif b <= -9.6e-86: tmp = i * ((t * b) - (y * j)) elif b <= -9e-123: tmp = t_1 elif b <= -5.8e-134: tmp = (x * a) * ((y * (z / a)) - t) elif b <= 2.6e+63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) t_2 = Float64(Float64(j * Float64(a * c)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (b <= -7.4e+61) tmp = t_2; elseif (b <= -9.6e-86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -9e-123) tmp = t_1; elseif (b <= -5.8e-134) tmp = Float64(Float64(x * a) * Float64(Float64(y * Float64(z / a)) - t)); elseif (b <= 2.6e+63) 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))) + (j * ((a * c) - (y * i))); t_2 = (j * (a * c)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (b <= -7.4e+61) tmp = t_2; elseif (b <= -9.6e-86) tmp = i * ((t * b) - (y * j)); elseif (b <= -9e-123) tmp = t_1; elseif (b <= -5.8e-134) tmp = (x * a) * ((y * (z / a)) - t); elseif (b <= 2.6e+63) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.4e+61], t$95$2, If[LessEqual[b, -9.6e-86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9e-123], t$95$1, If[LessEqual[b, -5.8e-134], N[(N[(x * a), $MachinePrecision] * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+63], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := j \cdot \left(a \cdot c\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.4 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -9.6 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -9 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-134}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(y \cdot \frac{z}{a} - t\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -7.40000000000000005e61 or 2.6000000000000001e63 < b Initial program 73.9%
Taylor expanded in x around 0 76.2%
Taylor expanded in y around 0 78.0%
*-commutative78.0%
*-commutative78.0%
associate-*r*80.0%
Simplified80.0%
if -7.40000000000000005e61 < b < -9.60000000000000053e-86Initial program 71.8%
Taylor expanded in i around inf 65.0%
distribute-lft-out--65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -9.60000000000000053e-86 < b < -8.99999999999999986e-123 or -5.79999999999999986e-134 < b < 2.6000000000000001e63Initial program 68.0%
Taylor expanded in b around 0 65.9%
if -8.99999999999999986e-123 < b < -5.79999999999999986e-134Initial program 56.9%
Taylor expanded in a around -inf 57.1%
Simplified71.4%
Taylor expanded in x around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
associate-/l*100.0%
Simplified100.0%
Final simplification72.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (* a c)) (* b (- (* t i) (* z c))))))
(if (<= b -2.1e+63)
t_1
(if (<= b -1.48e-86)
(* i (- (* t b) (* y j)))
(if (<= b -1.65e-106)
t_1
(if (<= b -4.6e-159)
(* (* x a) (- (* y (/ z a)) t))
(if (<= b 1.32e+14)
(* a (- (* c j) (+ (* x t) (/ (* i (* y j)) 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 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -2.1e+63) {
tmp = t_1;
} else if (b <= -1.48e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1.65e-106) {
tmp = t_1;
} else if (b <= -4.6e-159) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 1.32e+14) {
tmp = a * ((c * j) - ((x * t) + ((i * (y * j)) / 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 = (j * (a * c)) + (b * ((t * i) - (z * c)))
if (b <= (-2.1d+63)) then
tmp = t_1
else if (b <= (-1.48d-86)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-1.65d-106)) then
tmp = t_1
else if (b <= (-4.6d-159)) then
tmp = (x * a) * ((y * (z / a)) - t)
else if (b <= 1.32d+14) then
tmp = a * ((c * j) - ((x * t) + ((i * (y * j)) / 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 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -2.1e+63) {
tmp = t_1;
} else if (b <= -1.48e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1.65e-106) {
tmp = t_1;
} else if (b <= -4.6e-159) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 1.32e+14) {
tmp = a * ((c * j) - ((x * t) + ((i * (y * j)) / a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * (a * c)) + (b * ((t * i) - (z * c))) tmp = 0 if b <= -2.1e+63: tmp = t_1 elif b <= -1.48e-86: tmp = i * ((t * b) - (y * j)) elif b <= -1.65e-106: tmp = t_1 elif b <= -4.6e-159: tmp = (x * a) * ((y * (z / a)) - t) elif b <= 1.32e+14: tmp = a * ((c * j) - ((x * t) + ((i * (y * j)) / a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(a * c)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (b <= -2.1e+63) tmp = t_1; elseif (b <= -1.48e-86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -1.65e-106) tmp = t_1; elseif (b <= -4.6e-159) tmp = Float64(Float64(x * a) * Float64(Float64(y * Float64(z / a)) - t)); elseif (b <= 1.32e+14) tmp = Float64(a * Float64(Float64(c * j) - Float64(Float64(x * t) + Float64(Float64(i * Float64(y * j)) / a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * (a * c)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (b <= -2.1e+63) tmp = t_1; elseif (b <= -1.48e-86) tmp = i * ((t * b) - (y * j)); elseif (b <= -1.65e-106) tmp = t_1; elseif (b <= -4.6e-159) tmp = (x * a) * ((y * (z / a)) - t); elseif (b <= 1.32e+14) tmp = a * ((c * j) - ((x * t) + ((i * (y * j)) / 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[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.1e+63], t$95$1, If[LessEqual[b, -1.48e-86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.65e-106], t$95$1, If[LessEqual[b, -4.6e-159], N[(N[(x * a), $MachinePrecision] * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.32e+14], N[(a * N[(N[(c * j), $MachinePrecision] - N[(N[(x * t), $MachinePrecision] + N[(N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.1 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.48 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -1.65 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.6 \cdot 10^{-159}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(y \cdot \frac{z}{a} - t\right)\\
\mathbf{elif}\;b \leq 1.32 \cdot 10^{+14}:\\
\;\;\;\;a \cdot \left(c \cdot j - \left(x \cdot t + \frac{i \cdot \left(y \cdot j\right)}{a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.1000000000000002e63 or -1.4800000000000001e-86 < b < -1.65000000000000008e-106 or 1.32e14 < b Initial program 76.8%
Taylor expanded in x around 0 74.7%
Taylor expanded in y around 0 76.2%
*-commutative76.2%
*-commutative76.2%
associate-*r*77.9%
Simplified77.9%
if -2.1000000000000002e63 < b < -1.4800000000000001e-86Initial program 71.8%
Taylor expanded in i around inf 65.0%
distribute-lft-out--65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -1.65000000000000008e-106 < b < -4.59999999999999957e-159Initial program 63.5%
Taylor expanded in a around -inf 63.6%
Simplified72.7%
Taylor expanded in x around inf 82.9%
associate-*r*91.1%
*-commutative91.1%
associate-/l*90.8%
Simplified90.8%
if -4.59999999999999957e-159 < b < 1.32e14Initial program 63.1%
Taylor expanded in a around -inf 67.2%
Simplified72.4%
Taylor expanded in j around inf 63.4%
associate-*r/63.4%
associate-*r*63.4%
neg-mul-163.4%
Simplified63.4%
Final simplification71.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (* a c)) (* b (- (* t i) (* z c))))))
(if (<= b -7.5e+62)
t_1
(if (<= b -1.55e-86)
(* i (- (* t b) (* y j)))
(if (<= b -2.6e-113)
t_1
(if (<= b -9.2e-160)
(* (* x a) (- (* y (/ z a)) t))
(if (<= b 2e+36)
(* a (+ (* c j) (* t (- (* b (/ i a)) 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 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -7.5e+62) {
tmp = t_1;
} else if (b <= -1.55e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -2.6e-113) {
tmp = t_1;
} else if (b <= -9.2e-160) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 2e+36) {
tmp = a * ((c * j) + (t * ((b * (i / a)) - 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 = (j * (a * c)) + (b * ((t * i) - (z * c)))
if (b <= (-7.5d+62)) then
tmp = t_1
else if (b <= (-1.55d-86)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-2.6d-113)) then
tmp = t_1
else if (b <= (-9.2d-160)) then
tmp = (x * a) * ((y * (z / a)) - t)
else if (b <= 2d+36) then
tmp = a * ((c * j) + (t * ((b * (i / a)) - 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 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -7.5e+62) {
tmp = t_1;
} else if (b <= -1.55e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -2.6e-113) {
tmp = t_1;
} else if (b <= -9.2e-160) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 2e+36) {
tmp = a * ((c * j) + (t * ((b * (i / a)) - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * (a * c)) + (b * ((t * i) - (z * c))) tmp = 0 if b <= -7.5e+62: tmp = t_1 elif b <= -1.55e-86: tmp = i * ((t * b) - (y * j)) elif b <= -2.6e-113: tmp = t_1 elif b <= -9.2e-160: tmp = (x * a) * ((y * (z / a)) - t) elif b <= 2e+36: tmp = a * ((c * j) + (t * ((b * (i / a)) - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(a * c)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (b <= -7.5e+62) tmp = t_1; elseif (b <= -1.55e-86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -2.6e-113) tmp = t_1; elseif (b <= -9.2e-160) tmp = Float64(Float64(x * a) * Float64(Float64(y * Float64(z / a)) - t)); elseif (b <= 2e+36) tmp = Float64(a * Float64(Float64(c * j) + Float64(t * Float64(Float64(b * Float64(i / a)) - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * (a * c)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (b <= -7.5e+62) tmp = t_1; elseif (b <= -1.55e-86) tmp = i * ((t * b) - (y * j)); elseif (b <= -2.6e-113) tmp = t_1; elseif (b <= -9.2e-160) tmp = (x * a) * ((y * (z / a)) - t); elseif (b <= 2e+36) tmp = a * ((c * j) + (t * ((b * (i / a)) - 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[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.5e+62], t$95$1, If[LessEqual[b, -1.55e-86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.6e-113], t$95$1, If[LessEqual[b, -9.2e-160], N[(N[(x * a), $MachinePrecision] * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e+36], N[(a * N[(N[(c * j), $MachinePrecision] + N[(t * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.5 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{-160}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(y \cdot \frac{z}{a} - t\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(c \cdot j + t \cdot \left(b \cdot \frac{i}{a} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -7.49999999999999998e62 or -1.54999999999999994e-86 < b < -2.5999999999999999e-113 or 2.00000000000000008e36 < b Initial program 76.3%
Taylor expanded in x around 0 75.7%
Taylor expanded in y around 0 77.4%
*-commutative77.4%
*-commutative77.4%
associate-*r*79.2%
Simplified79.2%
if -7.49999999999999998e62 < b < -1.54999999999999994e-86Initial program 71.8%
Taylor expanded in i around inf 65.0%
distribute-lft-out--65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -2.5999999999999999e-113 < b < -9.19999999999999939e-160Initial program 63.5%
Taylor expanded in a around -inf 63.6%
Simplified72.7%
Taylor expanded in x around inf 82.9%
associate-*r*91.1%
*-commutative91.1%
associate-/l*90.8%
Simplified90.8%
if -9.19999999999999939e-160 < b < 2.00000000000000008e36Initial program 64.6%
Taylor expanded in a around -inf 67.5%
Simplified73.3%
Taylor expanded in t around inf 55.6%
associate-/l*54.7%
associate-/l*55.5%
Simplified55.5%
Taylor expanded in t around 0 55.5%
distribute-lft-out59.4%
associate-/l*60.3%
Simplified60.3%
Final simplification70.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (* a c)) (* b (- (* t i) (* z c))))))
(if (<= b -7.2e+61)
t_1
(if (<= b -5.6e-86)
(* i (- (* t b) (* y j)))
(if (<= b -1e-103)
t_1
(if (<= b -6.2e-159)
(* (* x a) (- (* y (/ z a)) t))
(if (<= b 1.25e+37)
(- (* j (- (* a c) (* y i))) (* a (* x t)))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -7.2e+61) {
tmp = t_1;
} else if (b <= -5.6e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1e-103) {
tmp = t_1;
} else if (b <= -6.2e-159) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 1.25e+37) {
tmp = (j * ((a * c) - (y * i))) - (a * (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * (a * c)) + (b * ((t * i) - (z * c)))
if (b <= (-7.2d+61)) then
tmp = t_1
else if (b <= (-5.6d-86)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-1d-103)) then
tmp = t_1
else if (b <= (-6.2d-159)) then
tmp = (x * a) * ((y * (z / a)) - t)
else if (b <= 1.25d+37) then
tmp = (j * ((a * c) - (y * i))) - (a * (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * (a * c)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -7.2e+61) {
tmp = t_1;
} else if (b <= -5.6e-86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -1e-103) {
tmp = t_1;
} else if (b <= -6.2e-159) {
tmp = (x * a) * ((y * (z / a)) - t);
} else if (b <= 1.25e+37) {
tmp = (j * ((a * c) - (y * i))) - (a * (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * (a * c)) + (b * ((t * i) - (z * c))) tmp = 0 if b <= -7.2e+61: tmp = t_1 elif b <= -5.6e-86: tmp = i * ((t * b) - (y * j)) elif b <= -1e-103: tmp = t_1 elif b <= -6.2e-159: tmp = (x * a) * ((y * (z / a)) - t) elif b <= 1.25e+37: tmp = (j * ((a * c) - (y * i))) - (a * (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(a * c)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (b <= -7.2e+61) tmp = t_1; elseif (b <= -5.6e-86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -1e-103) tmp = t_1; elseif (b <= -6.2e-159) tmp = Float64(Float64(x * a) * Float64(Float64(y * Float64(z / a)) - t)); elseif (b <= 1.25e+37) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(a * Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * (a * c)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (b <= -7.2e+61) tmp = t_1; elseif (b <= -5.6e-86) tmp = i * ((t * b) - (y * j)); elseif (b <= -1e-103) tmp = t_1; elseif (b <= -6.2e-159) tmp = (x * a) * ((y * (z / a)) - t); elseif (b <= 1.25e+37) tmp = (j * ((a * c) - (y * i))) - (a * (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+61], t$95$1, If[LessEqual[b, -5.6e-86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e-103], t$95$1, If[LessEqual[b, -6.2e-159], N[(N[(x * a), $MachinePrecision] * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e+37], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-159}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(y \cdot \frac{z}{a} - t\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+37}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -7.20000000000000021e61 or -5.60000000000000019e-86 < b < -9.99999999999999958e-104 or 1.24999999999999997e37 < b Initial program 76.3%
Taylor expanded in x around 0 75.7%
Taylor expanded in y around 0 77.4%
*-commutative77.4%
*-commutative77.4%
associate-*r*79.2%
Simplified79.2%
if -7.20000000000000021e61 < b < -5.60000000000000019e-86Initial program 71.8%
Taylor expanded in i around inf 65.0%
distribute-lft-out--65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -9.99999999999999958e-104 < b < -6.2e-159Initial program 63.5%
Taylor expanded in a around -inf 63.6%
Simplified72.7%
Taylor expanded in x around inf 82.9%
associate-*r*91.1%
*-commutative91.1%
associate-/l*90.8%
Simplified90.8%
if -6.2e-159 < b < 1.24999999999999997e37Initial program 64.6%
Taylor expanded in b around 0 63.1%
Taylor expanded in z around 0 62.2%
+-commutative62.2%
*-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
Simplified62.2%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* (* x a) (- (* y (/ z a)) t))))
(if (<= x -2.5e+159)
t_2
(if (<= x -4.5e+66)
(+ (- t_1 (* a (* x t))) (* b (* t i)))
(if (<= x -1.3e+60)
(* z (- (* x y) (* b c)))
(if (<= x 3.1e+41) (+ t_1 (* b (- (* t i) (* z c)))) 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 * ((a * c) - (y * i));
double t_2 = (x * a) * ((y * (z / a)) - t);
double tmp;
if (x <= -2.5e+159) {
tmp = t_2;
} else if (x <= -4.5e+66) {
tmp = (t_1 - (a * (x * t))) + (b * (t * i));
} else if (x <= -1.3e+60) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 3.1e+41) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} 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 * ((a * c) - (y * i))
t_2 = (x * a) * ((y * (z / a)) - t)
if (x <= (-2.5d+159)) then
tmp = t_2
else if (x <= (-4.5d+66)) then
tmp = (t_1 - (a * (x * t))) + (b * (t * i))
else if (x <= (-1.3d+60)) then
tmp = z * ((x * y) - (b * c))
else if (x <= 3.1d+41) then
tmp = t_1 + (b * ((t * i) - (z * c)))
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 * ((a * c) - (y * i));
double t_2 = (x * a) * ((y * (z / a)) - t);
double tmp;
if (x <= -2.5e+159) {
tmp = t_2;
} else if (x <= -4.5e+66) {
tmp = (t_1 - (a * (x * t))) + (b * (t * i));
} else if (x <= -1.3e+60) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 3.1e+41) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = (x * a) * ((y * (z / a)) - t) tmp = 0 if x <= -2.5e+159: tmp = t_2 elif x <= -4.5e+66: tmp = (t_1 - (a * (x * t))) + (b * (t * i)) elif x <= -1.3e+60: tmp = z * ((x * y) - (b * c)) elif x <= 3.1e+41: tmp = t_1 + (b * ((t * i) - (z * c))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(Float64(x * a) * Float64(Float64(y * Float64(z / a)) - t)) tmp = 0.0 if (x <= -2.5e+159) tmp = t_2; elseif (x <= -4.5e+66) tmp = Float64(Float64(t_1 - Float64(a * Float64(x * t))) + Float64(b * Float64(t * i))); elseif (x <= -1.3e+60) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (x <= 3.1e+41) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = (x * a) * ((y * (z / a)) - t); tmp = 0.0; if (x <= -2.5e+159) tmp = t_2; elseif (x <= -4.5e+66) tmp = (t_1 - (a * (x * t))) + (b * (t * i)); elseif (x <= -1.3e+60) tmp = z * ((x * y) - (b * c)); elseif (x <= 3.1e+41) tmp = t_1 + (b * ((t * i) - (z * c))); 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[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * a), $MachinePrecision] * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+159], t$95$2, If[LessEqual[x, -4.5e+66], N[(N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.3e+60], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+41], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := \left(x \cdot a\right) \cdot \left(y \cdot \frac{z}{a} - t\right)\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+159}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{+66}:\\
\;\;\;\;\left(t\_1 - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{+60}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+41}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -2.50000000000000002e159 or 3.1e41 < x Initial program 67.4%
Taylor expanded in a around -inf 54.8%
Simplified59.2%
Taylor expanded in x around inf 68.0%
associate-*r*71.1%
*-commutative71.1%
associate-/l*72.2%
Simplified72.2%
if -2.50000000000000002e159 < x < -4.4999999999999998e66Initial program 82.2%
Taylor expanded in z around 0 82.6%
if -4.4999999999999998e66 < x < -1.30000000000000004e60Initial program 99.5%
Taylor expanded in z around inf 100.0%
if -1.30000000000000004e60 < x < 3.1e41Initial program 70.4%
Taylor expanded in x around 0 72.3%
Final simplification73.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -9e-85)
t_1
(if (<= b -1.9e-178)
(* y (- (* x z) (* i j)))
(if (<= b 2.8e-211)
(* a (- (* c j) (* x t)))
(if (<= b 9.5e-125)
(* j (- (* a c) (* y i)))
(if (<= b 1.15e+36) (* a (* t (- (/ (* b i) a) 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9e-85) {
tmp = t_1;
} else if (b <= -1.9e-178) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.8e-211) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 9.5e-125) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.15e+36) {
tmp = a * (t * (((b * i) / a) - 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 = b * ((t * i) - (z * c))
if (b <= (-9d-85)) then
tmp = t_1
else if (b <= (-1.9d-178)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 2.8d-211) then
tmp = a * ((c * j) - (x * t))
else if (b <= 9.5d-125) then
tmp = j * ((a * c) - (y * i))
else if (b <= 1.15d+36) then
tmp = a * (t * (((b * i) / a) - 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9e-85) {
tmp = t_1;
} else if (b <= -1.9e-178) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.8e-211) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 9.5e-125) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.15e+36) {
tmp = a * (t * (((b * i) / a) - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -9e-85: tmp = t_1 elif b <= -1.9e-178: tmp = y * ((x * z) - (i * j)) elif b <= 2.8e-211: tmp = a * ((c * j) - (x * t)) elif b <= 9.5e-125: tmp = j * ((a * c) - (y * i)) elif b <= 1.15e+36: tmp = a * (t * (((b * i) / a) - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -9e-85) tmp = t_1; elseif (b <= -1.9e-178) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 2.8e-211) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 9.5e-125) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 1.15e+36) tmp = Float64(a * Float64(t * Float64(Float64(Float64(b * i) / a) - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -9e-85) tmp = t_1; elseif (b <= -1.9e-178) tmp = y * ((x * z) - (i * j)); elseif (b <= 2.8e-211) tmp = a * ((c * j) - (x * t)); elseif (b <= 9.5e-125) tmp = j * ((a * c) - (y * i)); elseif (b <= 1.15e+36) tmp = a * (t * (((b * i) / a) - 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e-85], t$95$1, If[LessEqual[b, -1.9e-178], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-211], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-125], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+36], N[(a * N[(t * N[(N[(N[(b * i), $MachinePrecision] / a), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-178}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-125}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(t \cdot \left(\frac{b \cdot i}{a} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -9.00000000000000008e-85 or 1.14999999999999998e36 < b Initial program 74.7%
Taylor expanded in b around inf 65.6%
*-commutative65.6%
*-commutative65.6%
Simplified65.6%
if -9.00000000000000008e-85 < b < -1.90000000000000007e-178Initial program 72.4%
Taylor expanded in y around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
if -1.90000000000000007e-178 < b < 2.7999999999999998e-211Initial program 59.3%
Taylor expanded in a around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
Simplified61.7%
if 2.7999999999999998e-211 < b < 9.50000000000000031e-125Initial program 56.6%
Taylor expanded in j around inf 59.9%
*-commutative59.9%
Simplified59.9%
if 9.50000000000000031e-125 < b < 1.14999999999999998e36Initial program 78.7%
Taylor expanded in a around -inf 78.5%
Simplified85.5%
Taylor expanded in t around inf 68.9%
Final simplification64.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- (* x (/ y c)) b))))
(if (<= z -7.2e+202)
t_1
(if (<= z -9.8e+170)
(* (* c j) (- a (* i (/ y c))))
(if (<= z -1.3e+46)
t_1
(if (<= z 3e+197)
(* a (+ (* c j) (* t (- (* b (/ i a)) x))))
(* z (- (* x y) (* b c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * c) * ((x * (y / c)) - b);
double tmp;
if (z <= -7.2e+202) {
tmp = t_1;
} else if (z <= -9.8e+170) {
tmp = (c * j) * (a - (i * (y / c)));
} else if (z <= -1.3e+46) {
tmp = t_1;
} else if (z <= 3e+197) {
tmp = a * ((c * j) + (t * ((b * (i / a)) - x)));
} else {
tmp = z * ((x * y) - (b * 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 = (z * c) * ((x * (y / c)) - b)
if (z <= (-7.2d+202)) then
tmp = t_1
else if (z <= (-9.8d+170)) then
tmp = (c * j) * (a - (i * (y / c)))
else if (z <= (-1.3d+46)) then
tmp = t_1
else if (z <= 3d+197) then
tmp = a * ((c * j) + (t * ((b * (i / a)) - x)))
else
tmp = z * ((x * y) - (b * 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 = (z * c) * ((x * (y / c)) - b);
double tmp;
if (z <= -7.2e+202) {
tmp = t_1;
} else if (z <= -9.8e+170) {
tmp = (c * j) * (a - (i * (y / c)));
} else if (z <= -1.3e+46) {
tmp = t_1;
} else if (z <= 3e+197) {
tmp = a * ((c * j) + (t * ((b * (i / a)) - x)));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * ((x * (y / c)) - b) tmp = 0 if z <= -7.2e+202: tmp = t_1 elif z <= -9.8e+170: tmp = (c * j) * (a - (i * (y / c))) elif z <= -1.3e+46: tmp = t_1 elif z <= 3e+197: tmp = a * ((c * j) + (t * ((b * (i / a)) - x))) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(Float64(x * Float64(y / c)) - b)) tmp = 0.0 if (z <= -7.2e+202) tmp = t_1; elseif (z <= -9.8e+170) tmp = Float64(Float64(c * j) * Float64(a - Float64(i * Float64(y / c)))); elseif (z <= -1.3e+46) tmp = t_1; elseif (z <= 3e+197) tmp = Float64(a * Float64(Float64(c * j) + Float64(t * Float64(Float64(b * Float64(i / a)) - x)))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * c) * ((x * (y / c)) - b); tmp = 0.0; if (z <= -7.2e+202) tmp = t_1; elseif (z <= -9.8e+170) tmp = (c * j) * (a - (i * (y / c))); elseif (z <= -1.3e+46) tmp = t_1; elseif (z <= 3e+197) tmp = a * ((c * j) + (t * ((b * (i / a)) - x))); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * c), $MachinePrecision] * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.2e+202], t$95$1, If[LessEqual[z, -9.8e+170], N[(N[(c * j), $MachinePrecision] * N[(a - N[(i * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.3e+46], t$95$1, If[LessEqual[z, 3e+197], N[(a * N[(N[(c * j), $MachinePrecision] + N[(t * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(x \cdot \frac{y}{c} - b\right)\\
\mathbf{if}\;z \leq -7.2 \cdot 10^{+202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9.8 \cdot 10^{+170}:\\
\;\;\;\;\left(c \cdot j\right) \cdot \left(a - i \cdot \frac{y}{c}\right)\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+197}:\\
\;\;\;\;a \cdot \left(c \cdot j + t \cdot \left(b \cdot \frac{i}{a} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -7.20000000000000016e202 or -9.80000000000000079e170 < z < -1.30000000000000007e46Initial program 63.2%
Taylor expanded in c around inf 54.8%
Taylor expanded in z around inf 71.1%
associate-*r*71.2%
associate-/l*71.2%
Simplified71.2%
if -7.20000000000000016e202 < z < -9.80000000000000079e170Initial program 56.9%
Taylor expanded in c around inf 57.8%
Taylor expanded in j around inf 86.1%
associate-*r*86.3%
mul-1-neg86.3%
unsub-neg86.3%
associate-/l*86.3%
Simplified86.3%
if -1.30000000000000007e46 < z < 3.0000000000000002e197Initial program 75.9%
Taylor expanded in a around -inf 74.9%
Simplified73.0%
Taylor expanded in t around inf 62.7%
associate-/l*62.2%
associate-/l*62.7%
Simplified62.7%
Taylor expanded in t around 0 63.8%
distribute-lft-out65.6%
associate-/l*66.2%
Simplified66.2%
if 3.0000000000000002e197 < z Initial program 52.9%
Taylor expanded in z around inf 74.7%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -5.6e-52)
(* i (* t b))
(if (<= b -1.45e-159)
(* x (* y z))
(if (<= b -1.42e-296)
(* a (* c j))
(if (<= b 8.5e-240)
(* y (* x z))
(if (<= b 3e+45) (* (* x t) (- a)) (* z (* b (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.6e-52) {
tmp = i * (t * b);
} else if (b <= -1.45e-159) {
tmp = x * (y * z);
} else if (b <= -1.42e-296) {
tmp = a * (c * j);
} else if (b <= 8.5e-240) {
tmp = y * (x * z);
} else if (b <= 3e+45) {
tmp = (x * t) * -a;
} else {
tmp = z * (b * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-5.6d-52)) then
tmp = i * (t * b)
else if (b <= (-1.45d-159)) then
tmp = x * (y * z)
else if (b <= (-1.42d-296)) then
tmp = a * (c * j)
else if (b <= 8.5d-240) then
tmp = y * (x * z)
else if (b <= 3d+45) then
tmp = (x * t) * -a
else
tmp = z * (b * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.6e-52) {
tmp = i * (t * b);
} else if (b <= -1.45e-159) {
tmp = x * (y * z);
} else if (b <= -1.42e-296) {
tmp = a * (c * j);
} else if (b <= 8.5e-240) {
tmp = y * (x * z);
} else if (b <= 3e+45) {
tmp = (x * t) * -a;
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5.6e-52: tmp = i * (t * b) elif b <= -1.45e-159: tmp = x * (y * z) elif b <= -1.42e-296: tmp = a * (c * j) elif b <= 8.5e-240: tmp = y * (x * z) elif b <= 3e+45: tmp = (x * t) * -a else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5.6e-52) tmp = Float64(i * Float64(t * b)); elseif (b <= -1.45e-159) tmp = Float64(x * Float64(y * z)); elseif (b <= -1.42e-296) tmp = Float64(a * Float64(c * j)); elseif (b <= 8.5e-240) tmp = Float64(y * Float64(x * z)); elseif (b <= 3e+45) tmp = Float64(Float64(x * t) * Float64(-a)); else tmp = Float64(z * Float64(b * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -5.6e-52) tmp = i * (t * b); elseif (b <= -1.45e-159) tmp = x * (y * z); elseif (b <= -1.42e-296) tmp = a * (c * j); elseif (b <= 8.5e-240) tmp = y * (x * z); elseif (b <= 3e+45) tmp = (x * t) * -a; else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5.6e-52], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e-159], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.42e-296], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e-240], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e+45], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.6 \cdot 10^{-52}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-159}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -1.42 \cdot 10^{-296}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-240}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+45}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -5.59999999999999989e-52Initial program 74.8%
Taylor expanded in x around 0 72.3%
Taylor expanded in t around inf 47.7%
associate-*r*50.4%
*-commutative50.4%
associate-*r*47.9%
Simplified47.9%
if -5.59999999999999989e-52 < b < -1.44999999999999995e-159Initial program 72.2%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Taylor expanded in x around inf 48.9%
if -1.44999999999999995e-159 < b < -1.4200000000000001e-296Initial program 65.2%
Taylor expanded in a around inf 60.4%
+-commutative60.4%
mul-1-neg60.4%
unsub-neg60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in c around inf 36.8%
if -1.4200000000000001e-296 < b < 8.5e-240Initial program 57.8%
Taylor expanded in y around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
Simplified58.4%
Taylor expanded in x around inf 58.5%
*-commutative58.5%
Simplified58.5%
if 8.5e-240 < b < 3.00000000000000011e45Initial program 66.7%
Taylor expanded in a around inf 49.5%
+-commutative49.5%
mul-1-neg49.5%
unsub-neg49.5%
*-commutative49.5%
Simplified49.5%
Taylor expanded in c around 0 41.5%
associate-*r*41.5%
mul-1-neg41.5%
Simplified41.5%
if 3.00000000000000011e45 < b Initial program 74.5%
Taylor expanded in x around 0 74.8%
Taylor expanded in z around inf 44.0%
associate-*r*49.0%
associate-*r*49.0%
*-commutative49.0%
mul-1-neg49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
Simplified49.0%
Final simplification45.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -7e-40)
t_1
(if (<= a -2.15e-259)
(* b (* t i))
(if (<= a 4.05e-237)
(* x (* y z))
(if (<= a 8.5e-134) (* a (* t (/ (* b i) 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7e-40) {
tmp = t_1;
} else if (a <= -2.15e-259) {
tmp = b * (t * i);
} else if (a <= 4.05e-237) {
tmp = x * (y * z);
} else if (a <= 8.5e-134) {
tmp = a * (t * ((b * i) / 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 = a * ((c * j) - (x * t))
if (a <= (-7d-40)) then
tmp = t_1
else if (a <= (-2.15d-259)) then
tmp = b * (t * i)
else if (a <= 4.05d-237) then
tmp = x * (y * z)
else if (a <= 8.5d-134) then
tmp = a * (t * ((b * i) / 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7e-40) {
tmp = t_1;
} else if (a <= -2.15e-259) {
tmp = b * (t * i);
} else if (a <= 4.05e-237) {
tmp = x * (y * z);
} else if (a <= 8.5e-134) {
tmp = a * (t * ((b * i) / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -7e-40: tmp = t_1 elif a <= -2.15e-259: tmp = b * (t * i) elif a <= 4.05e-237: tmp = x * (y * z) elif a <= 8.5e-134: tmp = a * (t * ((b * i) / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -7e-40) tmp = t_1; elseif (a <= -2.15e-259) tmp = Float64(b * Float64(t * i)); elseif (a <= 4.05e-237) tmp = Float64(x * Float64(y * z)); elseif (a <= 8.5e-134) tmp = Float64(a * Float64(t * Float64(Float64(b * i) / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -7e-40) tmp = t_1; elseif (a <= -2.15e-259) tmp = b * (t * i); elseif (a <= 4.05e-237) tmp = x * (y * z); elseif (a <= 8.5e-134) tmp = a * (t * ((b * i) / 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7e-40], t$95$1, If[LessEqual[a, -2.15e-259], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.05e-237], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-134], N[(a * N[(t * N[(N[(b * i), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -7 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.15 \cdot 10^{-259}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq 4.05 \cdot 10^{-237}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-134}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{b \cdot i}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.0000000000000003e-40 or 8.50000000000000015e-134 < a Initial program 67.0%
Taylor expanded in a around inf 55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
Simplified55.4%
if -7.0000000000000003e-40 < a < -2.15e-259Initial program 88.8%
Taylor expanded in x around 0 89.1%
Taylor expanded in t around inf 48.8%
if -2.15e-259 < a < 4.05e-237Initial program 69.3%
Taylor expanded in y around inf 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
Simplified49.9%
Taylor expanded in x around inf 39.7%
if 4.05e-237 < a < 8.50000000000000015e-134Initial program 53.6%
Taylor expanded in a around -inf 46.4%
Simplified46.4%
Taylor expanded in t around inf 77.6%
Taylor expanded in b around inf 77.8%
Final simplification53.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.45e-43)
t_2
(if (<= b 9.4e-212)
t_1
(if (<= b 5e-120)
(* j (- (* a c) (* y i)))
(if (<= b 3.5e+63) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.45e-43) {
tmp = t_2;
} else if (b <= 9.4e-212) {
tmp = t_1;
} else if (b <= 5e-120) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 3.5e+63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.45d-43)) then
tmp = t_2
else if (b <= 9.4d-212) then
tmp = t_1
else if (b <= 5d-120) then
tmp = j * ((a * c) - (y * i))
else if (b <= 3.5d+63) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.45e-43) {
tmp = t_2;
} else if (b <= 9.4e-212) {
tmp = t_1;
} else if (b <= 5e-120) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 3.5e+63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.45e-43: tmp = t_2 elif b <= 9.4e-212: tmp = t_1 elif b <= 5e-120: tmp = j * ((a * c) - (y * i)) elif b <= 3.5e+63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.45e-43) tmp = t_2; elseif (b <= 9.4e-212) tmp = t_1; elseif (b <= 5e-120) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 3.5e+63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.45e-43) tmp = t_2; elseif (b <= 9.4e-212) tmp = t_1; elseif (b <= 5e-120) tmp = j * ((a * c) - (y * i)); elseif (b <= 3.5e+63) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.45e-43], t$95$2, If[LessEqual[b, 9.4e-212], t$95$1, If[LessEqual[b, 5e-120], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e+63], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.45 \cdot 10^{-43}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 9.4 \cdot 10^{-212}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-120}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.44999999999999982e-43 or 3.50000000000000029e63 < b Initial program 73.8%
Taylor expanded in b around inf 70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
if -3.44999999999999982e-43 < b < 9.39999999999999996e-212 or 5.00000000000000007e-120 < b < 3.50000000000000029e63Initial program 69.9%
Taylor expanded in a around inf 52.2%
+-commutative52.2%
mul-1-neg52.2%
unsub-neg52.2%
*-commutative52.2%
Simplified52.2%
if 9.39999999999999996e-212 < b < 5.00000000000000007e-120Initial program 53.6%
Taylor expanded in j around inf 56.7%
*-commutative56.7%
Simplified56.7%
Final simplification61.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -7.6e+118) (not (<= x 2.8e+42))) (* (* x a) (- (* y (/ z a)) t)) (+ (* j (- (* a c) (* y i))) (* b (- (* t i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -7.6e+118) || !(x <= 2.8e+42)) {
tmp = (x * a) * ((y * (z / a)) - t);
} else {
tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-7.6d+118)) .or. (.not. (x <= 2.8d+42))) then
tmp = (x * a) * ((y * (z / a)) - t)
else
tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -7.6e+118) || !(x <= 2.8e+42)) {
tmp = (x * a) * ((y * (z / a)) - t);
} else {
tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -7.6e+118) or not (x <= 2.8e+42): tmp = (x * a) * ((y * (z / a)) - t) else: tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -7.6e+118) || !(x <= 2.8e+42)) tmp = Float64(Float64(x * a) * Float64(Float64(y * Float64(z / a)) - t)); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -7.6e+118) || ~((x <= 2.8e+42))) tmp = (x * a) * ((y * (z / a)) - t); else tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -7.6e+118], N[Not[LessEqual[x, 2.8e+42]], $MachinePrecision]], N[(N[(x * a), $MachinePrecision] * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.6 \cdot 10^{+118} \lor \neg \left(x \leq 2.8 \cdot 10^{+42}\right):\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(y \cdot \frac{z}{a} - t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -7.60000000000000033e118 or 2.7999999999999999e42 < x Initial program 68.0%
Taylor expanded in a around -inf 56.5%
Simplified60.5%
Taylor expanded in x around inf 65.8%
associate-*r*68.7%
*-commutative68.7%
associate-/l*69.7%
Simplified69.7%
if -7.60000000000000033e118 < x < 2.7999999999999999e42Initial program 72.1%
Taylor expanded in x around 0 72.6%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -5.1e-51)
(* i (* t b))
(if (<= b -2.75e-160)
(* x (* y z))
(if (<= b -3.2e-297)
(* a (* c j))
(if (<= b 1.5e+63) (* z (* x y)) (* z (* b (- c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.1e-51) {
tmp = i * (t * b);
} else if (b <= -2.75e-160) {
tmp = x * (y * z);
} else if (b <= -3.2e-297) {
tmp = a * (c * j);
} else if (b <= 1.5e+63) {
tmp = z * (x * y);
} else {
tmp = z * (b * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-5.1d-51)) then
tmp = i * (t * b)
else if (b <= (-2.75d-160)) then
tmp = x * (y * z)
else if (b <= (-3.2d-297)) then
tmp = a * (c * j)
else if (b <= 1.5d+63) then
tmp = z * (x * y)
else
tmp = z * (b * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.1e-51) {
tmp = i * (t * b);
} else if (b <= -2.75e-160) {
tmp = x * (y * z);
} else if (b <= -3.2e-297) {
tmp = a * (c * j);
} else if (b <= 1.5e+63) {
tmp = z * (x * y);
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5.1e-51: tmp = i * (t * b) elif b <= -2.75e-160: tmp = x * (y * z) elif b <= -3.2e-297: tmp = a * (c * j) elif b <= 1.5e+63: tmp = z * (x * y) else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5.1e-51) tmp = Float64(i * Float64(t * b)); elseif (b <= -2.75e-160) tmp = Float64(x * Float64(y * z)); elseif (b <= -3.2e-297) tmp = Float64(a * Float64(c * j)); elseif (b <= 1.5e+63) tmp = Float64(z * Float64(x * y)); else tmp = Float64(z * Float64(b * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -5.1e-51) tmp = i * (t * b); elseif (b <= -2.75e-160) tmp = x * (y * z); elseif (b <= -3.2e-297) tmp = a * (c * j); elseif (b <= 1.5e+63) tmp = z * (x * y); else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5.1e-51], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.75e-160], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.2e-297], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+63], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.1 \cdot 10^{-51}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -2.75 \cdot 10^{-160}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-297}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+63}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -5.0999999999999997e-51Initial program 74.8%
Taylor expanded in x around 0 72.3%
Taylor expanded in t around inf 47.7%
associate-*r*50.4%
*-commutative50.4%
associate-*r*47.9%
Simplified47.9%
if -5.0999999999999997e-51 < b < -2.75e-160Initial program 72.2%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Taylor expanded in x around inf 48.9%
if -2.75e-160 < b < -3.19999999999999972e-297Initial program 65.2%
Taylor expanded in a around inf 60.4%
+-commutative60.4%
mul-1-neg60.4%
unsub-neg60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in c around inf 36.8%
if -3.19999999999999972e-297 < b < 1.5e63Initial program 66.8%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Taylor expanded in x around inf 28.1%
associate-*r*35.6%
*-commutative35.6%
Simplified35.6%
if 1.5e63 < b Initial program 72.5%
Taylor expanded in x around 0 76.6%
Taylor expanded in z around inf 45.1%
associate-*r*50.6%
associate-*r*50.6%
*-commutative50.6%
mul-1-neg50.6%
*-commutative50.6%
distribute-rgt-neg-in50.6%
Simplified50.6%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* i (* t b))))
(if (<= b -6.2e-52)
t_2
(if (<= b -1.5e-160)
t_1
(if (<= b 1.02e-165) (* a (* c j)) (if (<= b 6.3e+63) 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);
double t_2 = i * (t * b);
double tmp;
if (b <= -6.2e-52) {
tmp = t_2;
} else if (b <= -1.5e-160) {
tmp = t_1;
} else if (b <= 1.02e-165) {
tmp = a * (c * j);
} else if (b <= 6.3e+63) {
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_2 = i * (t * b)
if (b <= (-6.2d-52)) then
tmp = t_2
else if (b <= (-1.5d-160)) then
tmp = t_1
else if (b <= 1.02d-165) then
tmp = a * (c * j)
else if (b <= 6.3d+63) 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);
double t_2 = i * (t * b);
double tmp;
if (b <= -6.2e-52) {
tmp = t_2;
} else if (b <= -1.5e-160) {
tmp = t_1;
} else if (b <= 1.02e-165) {
tmp = a * (c * j);
} else if (b <= 6.3e+63) {
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_2 = i * (t * b) tmp = 0 if b <= -6.2e-52: tmp = t_2 elif b <= -1.5e-160: tmp = t_1 elif b <= 1.02e-165: tmp = a * (c * j) elif b <= 6.3e+63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (b <= -6.2e-52) tmp = t_2; elseif (b <= -1.5e-160) tmp = t_1; elseif (b <= 1.02e-165) tmp = Float64(a * Float64(c * j)); elseif (b <= 6.3e+63) 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_2 = i * (t * b); tmp = 0.0; if (b <= -6.2e-52) tmp = t_2; elseif (b <= -1.5e-160) tmp = t_1; elseif (b <= 1.02e-165) tmp = a * (c * j); elseif (b <= 6.3e+63) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e-52], t$95$2, If[LessEqual[b, -1.5e-160], t$95$1, If[LessEqual[b, 1.02e-165], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.3e+63], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{-52}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.02 \cdot 10^{-165}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 6.3 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -6.1999999999999998e-52 or 6.2999999999999998e63 < b Initial program 73.6%
Taylor expanded in x around 0 73.9%
Taylor expanded in t around inf 45.4%
associate-*r*47.8%
*-commutative47.8%
associate-*r*47.1%
Simplified47.1%
if -6.1999999999999998e-52 < b < -1.49999999999999998e-160 or 1.02e-165 < b < 6.2999999999999998e63Initial program 75.9%
Taylor expanded in y around inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
Simplified52.7%
Taylor expanded in x around inf 40.8%
if -1.49999999999999998e-160 < b < 1.02e-165Initial program 59.6%
Taylor expanded in a around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in c around inf 29.9%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))))
(if (<= b -5.5e-51)
t_1
(if (<= b -4.5e-159)
(* x (* y z))
(if (<= b -8.6e-298)
(* a (* c j))
(if (<= b 3.1e+64) (* y (* x z)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (b <= -5.5e-51) {
tmp = t_1;
} else if (b <= -4.5e-159) {
tmp = x * (y * z);
} else if (b <= -8.6e-298) {
tmp = a * (c * j);
} else if (b <= 3.1e+64) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (t * b)
if (b <= (-5.5d-51)) then
tmp = t_1
else if (b <= (-4.5d-159)) then
tmp = x * (y * z)
else if (b <= (-8.6d-298)) then
tmp = a * (c * j)
else if (b <= 3.1d+64) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (b <= -5.5e-51) {
tmp = t_1;
} else if (b <= -4.5e-159) {
tmp = x * (y * z);
} else if (b <= -8.6e-298) {
tmp = a * (c * j);
} else if (b <= 3.1e+64) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if b <= -5.5e-51: tmp = t_1 elif b <= -4.5e-159: tmp = x * (y * z) elif b <= -8.6e-298: tmp = a * (c * j) elif b <= 3.1e+64: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (b <= -5.5e-51) tmp = t_1; elseif (b <= -4.5e-159) tmp = Float64(x * Float64(y * z)); elseif (b <= -8.6e-298) tmp = Float64(a * Float64(c * j)); elseif (b <= 3.1e+64) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (t * b); tmp = 0.0; if (b <= -5.5e-51) tmp = t_1; elseif (b <= -4.5e-159) tmp = x * (y * z); elseif (b <= -8.6e-298) tmp = a * (c * j); elseif (b <= 3.1e+64) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e-51], t$95$1, If[LessEqual[b, -4.5e-159], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.6e-298], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e+64], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{-51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-159}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -8.6 \cdot 10^{-298}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+64}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.4999999999999997e-51 or 3.0999999999999999e64 < b Initial program 73.6%
Taylor expanded in x around 0 73.9%
Taylor expanded in t around inf 45.4%
associate-*r*47.8%
*-commutative47.8%
associate-*r*47.1%
Simplified47.1%
if -5.4999999999999997e-51 < b < -4.49999999999999989e-159Initial program 72.2%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Taylor expanded in x around inf 48.9%
if -4.49999999999999989e-159 < b < -8.600000000000001e-298Initial program 65.2%
Taylor expanded in a around inf 60.4%
+-commutative60.4%
mul-1-neg60.4%
unsub-neg60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in c around inf 36.8%
if -8.600000000000001e-298 < b < 3.0999999999999999e64Initial program 67.2%
Taylor expanded in y around inf 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
Simplified49.9%
Taylor expanded in x around inf 35.1%
*-commutative35.1%
Simplified35.1%
Final simplification42.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))))
(if (<= b -1.5e-51)
t_1
(if (<= b -2.9e-159)
(* x (* y z))
(if (<= b -3.1e-298)
(* a (* c j))
(if (<= b 7.5e+64) (* z (* x y)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (b <= -1.5e-51) {
tmp = t_1;
} else if (b <= -2.9e-159) {
tmp = x * (y * z);
} else if (b <= -3.1e-298) {
tmp = a * (c * j);
} else if (b <= 7.5e+64) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (t * b)
if (b <= (-1.5d-51)) then
tmp = t_1
else if (b <= (-2.9d-159)) then
tmp = x * (y * z)
else if (b <= (-3.1d-298)) then
tmp = a * (c * j)
else if (b <= 7.5d+64) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (b <= -1.5e-51) {
tmp = t_1;
} else if (b <= -2.9e-159) {
tmp = x * (y * z);
} else if (b <= -3.1e-298) {
tmp = a * (c * j);
} else if (b <= 7.5e+64) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if b <= -1.5e-51: tmp = t_1 elif b <= -2.9e-159: tmp = x * (y * z) elif b <= -3.1e-298: tmp = a * (c * j) elif b <= 7.5e+64: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (b <= -1.5e-51) tmp = t_1; elseif (b <= -2.9e-159) tmp = Float64(x * Float64(y * z)); elseif (b <= -3.1e-298) tmp = Float64(a * Float64(c * j)); elseif (b <= 7.5e+64) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (t * b); tmp = 0.0; if (b <= -1.5e-51) tmp = t_1; elseif (b <= -2.9e-159) tmp = x * (y * z); elseif (b <= -3.1e-298) tmp = a * (c * j); elseif (b <= 7.5e+64) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e-51], t$95$1, If[LessEqual[b, -2.9e-159], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.1e-298], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e+64], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{-51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-159}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-298}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+64}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.50000000000000001e-51 or 7.5000000000000005e64 < b Initial program 73.6%
Taylor expanded in x around 0 73.9%
Taylor expanded in t around inf 45.4%
associate-*r*47.8%
*-commutative47.8%
associate-*r*47.1%
Simplified47.1%
if -1.50000000000000001e-51 < b < -2.8999999999999999e-159Initial program 72.2%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Taylor expanded in x around inf 48.9%
if -2.8999999999999999e-159 < b < -3.1000000000000002e-298Initial program 65.2%
Taylor expanded in a around inf 60.4%
+-commutative60.4%
mul-1-neg60.4%
unsub-neg60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in c around inf 36.8%
if -3.1000000000000002e-298 < b < 7.5000000000000005e64Initial program 67.2%
Taylor expanded in y around inf 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
Simplified49.9%
Taylor expanded in x around inf 27.8%
associate-*r*35.2%
*-commutative35.2%
Simplified35.2%
Final simplification42.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3e-43) (not (<= b 1.06e+64))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3e-43) || !(b <= 1.06e+64)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-3d-43)) .or. (.not. (b <= 1.06d+64))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3e-43) || !(b <= 1.06e+64)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3e-43) or not (b <= 1.06e+64): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3e-43) || !(b <= 1.06e+64)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3e-43) || ~((b <= 1.06e+64))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3e-43], N[Not[LessEqual[b, 1.06e+64]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{-43} \lor \neg \left(b \leq 1.06 \cdot 10^{+64}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -3.00000000000000003e-43 or 1.06e64 < b Initial program 73.8%
Taylor expanded in b around inf 70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
if -3.00000000000000003e-43 < b < 1.06e64Initial program 67.6%
Taylor expanded in a around inf 49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
*-commutative49.7%
Simplified49.7%
Final simplification59.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.45e-72) (not (<= t 1.55e-41))) (* b (* t i)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.45e-72) || !(t <= 1.55e-41)) {
tmp = b * (t * i);
} else {
tmp = a * (c * 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 ((t <= (-1.45d-72)) .or. (.not. (t <= 1.55d-41))) then
tmp = b * (t * i)
else
tmp = a * (c * 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 ((t <= -1.45e-72) || !(t <= 1.55e-41)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.45e-72) or not (t <= 1.55e-41): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.45e-72) || !(t <= 1.55e-41)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.45e-72) || ~((t <= 1.55e-41))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.45e-72], N[Not[LessEqual[t, 1.55e-41]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{-72} \lor \neg \left(t \leq 1.55 \cdot 10^{-41}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.44999999999999999e-72 or 1.55e-41 < t Initial program 65.3%
Taylor expanded in x around 0 55.8%
Taylor expanded in t around inf 37.9%
if -1.44999999999999999e-72 < t < 1.55e-41Initial program 80.1%
Taylor expanded in a around inf 38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in c around inf 32.0%
Final simplification35.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.9e-72) (* b (* t i)) (if (<= t 1.6e-40) (* a (* c j)) (* i (* t b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.9e-72) {
tmp = b * (t * i);
} else if (t <= 1.6e-40) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.9d-72)) then
tmp = b * (t * i)
else if (t <= 1.6d-40) then
tmp = a * (c * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.9e-72) {
tmp = b * (t * i);
} else if (t <= 1.6e-40) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.9e-72: tmp = b * (t * i) elif t <= 1.6e-40: tmp = a * (c * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.9e-72) tmp = Float64(b * Float64(t * i)); elseif (t <= 1.6e-40) tmp = Float64(a * Float64(c * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.9e-72) tmp = b * (t * i); elseif (t <= 1.6e-40) tmp = a * (c * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.9e-72], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-40], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-72}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-40}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -1.90000000000000001e-72Initial program 64.2%
Taylor expanded in x around 0 57.2%
Taylor expanded in t around inf 39.8%
if -1.90000000000000001e-72 < t < 1.60000000000000001e-40Initial program 80.1%
Taylor expanded in a around inf 38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in c around inf 32.0%
if 1.60000000000000001e-40 < t Initial program 66.7%
Taylor expanded in x around 0 54.1%
Taylor expanded in t around inf 35.5%
associate-*r*34.1%
*-commutative34.1%
associate-*r*38.1%
Simplified38.1%
Final simplification36.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 70.5%
Taylor expanded in a around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in c around inf 22.2%
Final simplification22.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024081
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))