
(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 23 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 (* z (* x (- y (* b (/ c x))))))))
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 = z * (x * (y - (b * (c / x))));
}
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 = z * (x * (y - (b * (c / x))));
}
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 = z * (x * (y - (b * (c / x)))) 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(z * Float64(x * Float64(y - Float64(b * Float64(c / x))))); 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 = z * (x * (y - (b * (c / x)))); 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[(z * N[(x * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $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}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - b \cdot \frac{c}{x}\right)\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 89.1%
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 z around inf 43.3%
*-commutative43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in x around inf 47.9%
mul-1-neg47.9%
unsub-neg47.9%
associate-/l*49.4%
Simplified49.4%
Final simplification79.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -5.8e+163)
t_1
(if (<= z -2.8e-64)
(+ (* y (- (* x z) (* i j))) (* t (* b i)))
(if (<= z -9.5e-169)
(* t (- (* b i) (* x a)))
(if (<= z 2.55e-130)
(* i (- (* t b) (* y j)))
(if (<= z 6.8e+43)
(- (* x (- (* y z) (* t a))) (* i (* y j)))
(if (<= z 5.4e+147)
(* i (- (* a (/ (* c j) i)) (* y j)))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.8e+163) {
tmp = t_1;
} else if (z <= -2.8e-64) {
tmp = (y * ((x * z) - (i * j))) + (t * (b * i));
} else if (z <= -9.5e-169) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 2.55e-130) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 6.8e+43) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (z <= 5.4e+147) {
tmp = i * ((a * ((c * j) / i)) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-5.8d+163)) then
tmp = t_1
else if (z <= (-2.8d-64)) then
tmp = (y * ((x * z) - (i * j))) + (t * (b * i))
else if (z <= (-9.5d-169)) then
tmp = t * ((b * i) - (x * a))
else if (z <= 2.55d-130) then
tmp = i * ((t * b) - (y * j))
else if (z <= 6.8d+43) then
tmp = (x * ((y * z) - (t * a))) - (i * (y * j))
else if (z <= 5.4d+147) then
tmp = i * ((a * ((c * j) / i)) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.8e+163) {
tmp = t_1;
} else if (z <= -2.8e-64) {
tmp = (y * ((x * z) - (i * j))) + (t * (b * i));
} else if (z <= -9.5e-169) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 2.55e-130) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 6.8e+43) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (z <= 5.4e+147) {
tmp = i * ((a * ((c * j) / i)) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -5.8e+163: tmp = t_1 elif z <= -2.8e-64: tmp = (y * ((x * z) - (i * j))) + (t * (b * i)) elif z <= -9.5e-169: tmp = t * ((b * i) - (x * a)) elif z <= 2.55e-130: tmp = i * ((t * b) - (y * j)) elif z <= 6.8e+43: tmp = (x * ((y * z) - (t * a))) - (i * (y * j)) elif z <= 5.4e+147: tmp = i * ((a * ((c * j) / i)) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -5.8e+163) tmp = t_1; elseif (z <= -2.8e-64) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(b * i))); elseif (z <= -9.5e-169) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= 2.55e-130) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 6.8e+43) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))); elseif (z <= 5.4e+147) tmp = Float64(i * Float64(Float64(a * Float64(Float64(c * j) / i)) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -5.8e+163) tmp = t_1; elseif (z <= -2.8e-64) tmp = (y * ((x * z) - (i * j))) + (t * (b * i)); elseif (z <= -9.5e-169) tmp = t * ((b * i) - (x * a)); elseif (z <= 2.55e-130) tmp = i * ((t * b) - (y * j)); elseif (z <= 6.8e+43) tmp = (x * ((y * z) - (t * a))) - (i * (y * j)); elseif (z <= 5.4e+147) tmp = i * ((a * ((c * j) / i)) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e+163], t$95$1, If[LessEqual[z, -2.8e-64], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -9.5e-169], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.55e-130], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e+43], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e+147], N[(i * N[(N[(a * N[(N[(c * j), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-64}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-169}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-130}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+43}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{+147}:\\
\;\;\;\;i \cdot \left(a \cdot \frac{c \cdot j}{i} - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.79999999999999996e163 or 5.39999999999999995e147 < z Initial program 48.2%
Taylor expanded in z around inf 79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
if -5.79999999999999996e163 < z < -2.80000000000000004e-64Initial program 69.1%
Taylor expanded in a around 0 66.6%
Simplified77.2%
Taylor expanded in i around inf 66.5%
associate-*r*66.5%
*-commutative66.5%
Simplified66.5%
if -2.80000000000000004e-64 < z < -9.5000000000000001e-169Initial program 83.3%
Taylor expanded in t around inf 61.9%
distribute-lft-out--61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in a around 0 61.9%
+-commutative61.9%
*-commutative61.9%
mul-1-neg61.9%
*-commutative61.9%
unsub-neg61.9%
Simplified61.9%
if -9.5000000000000001e-169 < z < 2.5499999999999999e-130Initial program 72.3%
Taylor expanded in a around 0 60.1%
Simplified61.4%
Taylor expanded in i around -inf 61.9%
mul-1-neg61.9%
*-commutative61.9%
distribute-rgt-neg-in61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if 2.5499999999999999e-130 < z < 6.80000000000000024e43Initial program 74.6%
Taylor expanded in b around 0 66.1%
Taylor expanded in c around 0 61.7%
+-commutative61.7%
sub-neg61.7%
sub-neg61.7%
*-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
if 6.80000000000000024e43 < z < 5.39999999999999995e147Initial program 72.1%
Taylor expanded in j around inf 51.4%
Taylor expanded in i around -inf 62.0%
mul-1-neg62.0%
*-commutative62.0%
distribute-rgt-neg-in62.0%
+-commutative62.0%
*-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
associate-/l*67.4%
*-commutative67.4%
Simplified67.4%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.22e-57)
(* z (* x (- y (* b (/ c x)))))
(if (<= z -1.7e-173)
(* t (- (* b i) (* x a)))
(if (<= z 3.2e-7)
(* i (- (* t b) (* y j)))
(if (<= z 2.2e+43)
(* x (- (* y z) (* t a)))
(if (<= z 5.4e+147)
(* i (- (* a (/ (* c j) i)) (* y j)))
(* 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 tmp;
if (z <= -1.22e-57) {
tmp = z * (x * (y - (b * (c / x))));
} else if (z <= -1.7e-173) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 3.2e-7) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 2.2e+43) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 5.4e+147) {
tmp = i * ((a * ((c * j) / i)) - (y * j));
} 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) :: tmp
if (z <= (-1.22d-57)) then
tmp = z * (x * (y - (b * (c / x))))
else if (z <= (-1.7d-173)) then
tmp = t * ((b * i) - (x * a))
else if (z <= 3.2d-7) then
tmp = i * ((t * b) - (y * j))
else if (z <= 2.2d+43) then
tmp = x * ((y * z) - (t * a))
else if (z <= 5.4d+147) then
tmp = i * ((a * ((c * j) / i)) - (y * j))
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 tmp;
if (z <= -1.22e-57) {
tmp = z * (x * (y - (b * (c / x))));
} else if (z <= -1.7e-173) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 3.2e-7) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 2.2e+43) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 5.4e+147) {
tmp = i * ((a * ((c * j) / i)) - (y * j));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.22e-57: tmp = z * (x * (y - (b * (c / x)))) elif z <= -1.7e-173: tmp = t * ((b * i) - (x * a)) elif z <= 3.2e-7: tmp = i * ((t * b) - (y * j)) elif z <= 2.2e+43: tmp = x * ((y * z) - (t * a)) elif z <= 5.4e+147: tmp = i * ((a * ((c * j) / i)) - (y * j)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.22e-57) tmp = Float64(z * Float64(x * Float64(y - Float64(b * Float64(c / x))))); elseif (z <= -1.7e-173) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= 3.2e-7) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 2.2e+43) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= 5.4e+147) tmp = Float64(i * Float64(Float64(a * Float64(Float64(c * j) / i)) - Float64(y * j))); 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) tmp = 0.0; if (z <= -1.22e-57) tmp = z * (x * (y - (b * (c / x)))); elseif (z <= -1.7e-173) tmp = t * ((b * i) - (x * a)); elseif (z <= 3.2e-7) tmp = i * ((t * b) - (y * j)); elseif (z <= 2.2e+43) tmp = x * ((y * z) - (t * a)); elseif (z <= 5.4e+147) tmp = i * ((a * ((c * j) / i)) - (y * j)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.22e-57], N[(z * N[(x * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.7e-173], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e-7], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+43], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e+147], N[(i * N[(N[(a * N[(N[(c * j), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.22 \cdot 10^{-57}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - b \cdot \frac{c}{x}\right)\right)\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-173}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-7}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+43}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{+147}:\\
\;\;\;\;i \cdot \left(a \cdot \frac{c \cdot j}{i} - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -1.2200000000000001e-57Initial program 52.8%
Taylor expanded in z around inf 57.3%
*-commutative57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in x around inf 60.4%
mul-1-neg60.4%
unsub-neg60.4%
associate-/l*59.0%
Simplified59.0%
if -1.2200000000000001e-57 < z < -1.6999999999999999e-173Initial program 83.3%
Taylor expanded in t around inf 61.9%
distribute-lft-out--61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in a around 0 61.9%
+-commutative61.9%
*-commutative61.9%
mul-1-neg61.9%
*-commutative61.9%
unsub-neg61.9%
Simplified61.9%
if -1.6999999999999999e-173 < z < 3.2000000000000001e-7Initial program 73.3%
Taylor expanded in a around 0 59.9%
Simplified60.8%
Taylor expanded in i around -inf 57.4%
mul-1-neg57.4%
*-commutative57.4%
distribute-rgt-neg-in57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
if 3.2000000000000001e-7 < z < 2.20000000000000001e43Initial program 71.8%
Taylor expanded in x around inf 79.0%
if 2.20000000000000001e43 < z < 5.39999999999999995e147Initial program 72.1%
Taylor expanded in j around inf 51.4%
Taylor expanded in i around -inf 62.0%
mul-1-neg62.0%
*-commutative62.0%
distribute-rgt-neg-in62.0%
+-commutative62.0%
*-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
associate-/l*67.4%
*-commutative67.4%
Simplified67.4%
if 5.39999999999999995e147 < z Initial program 57.0%
Taylor expanded in z around inf 90.2%
*-commutative90.2%
*-commutative90.2%
Simplified90.2%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* a c) (* y i))) t_1)))
(if (<= j -1.28e+48)
t_2
(if (<= j 3.15e-176)
(- (+ (+ t_1 (* i (* t b))) (* a (* c j))) (* b (* z c)))
(if (<= j 1.75e+71)
(- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double tmp;
if (j <= -1.28e+48) {
tmp = t_2;
} else if (j <= 3.15e-176) {
tmp = ((t_1 + (i * (t * b))) + (a * (c * j))) - (b * (z * c));
} else if (j <= 1.75e+71) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (j * ((a * c) - (y * i))) + t_1
if (j <= (-1.28d+48)) then
tmp = t_2
else if (j <= 3.15d-176) then
tmp = ((t_1 + (i * (t * b))) + (a * (c * j))) - (b * (z * c))
else if (j <= 1.75d+71) then
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double tmp;
if (j <= -1.28e+48) {
tmp = t_2;
} else if (j <= 3.15e-176) {
tmp = ((t_1 + (i * (t * b))) + (a * (c * j))) - (b * (z * c));
} else if (j <= 1.75e+71) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((a * c) - (y * i))) + t_1 tmp = 0 if j <= -1.28e+48: tmp = t_2 elif j <= 3.15e-176: tmp = ((t_1 + (i * (t * b))) + (a * (c * j))) - (b * (z * c)) elif j <= 1.75e+71: tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1) tmp = 0.0 if (j <= -1.28e+48) tmp = t_2; elseif (j <= 3.15e-176) tmp = Float64(Float64(Float64(t_1 + Float64(i * Float64(t * b))) + Float64(a * Float64(c * j))) - Float64(b * Float64(z * c))); elseif (j <= 1.75e+71) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (j * ((a * c) - (y * i))) + t_1; tmp = 0.0; if (j <= -1.28e+48) tmp = t_2; elseif (j <= 3.15e-176) tmp = ((t_1 + (i * (t * b))) + (a * (c * j))) - (b * (z * c)); elseif (j <= 1.75e+71) tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[j, -1.28e+48], t$95$2, If[LessEqual[j, 3.15e-176], N[(N[(N[(t$95$1 + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.75e+71], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
\mathbf{if}\;j \leq -1.28 \cdot 10^{+48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 3.15 \cdot 10^{-176}:\\
\;\;\;\;\left(\left(t\_1 + i \cdot \left(t \cdot b\right)\right) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.75 \cdot 10^{+71}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -1.28e48 or 1.75e71 < j Initial program 62.0%
Taylor expanded in b around 0 64.4%
if -1.28e48 < j < 3.15000000000000006e-176Initial program 70.7%
Taylor expanded in i around 0 83.3%
Taylor expanded in j around 0 74.5%
*-commutative74.5%
Simplified74.5%
if 3.15000000000000006e-176 < j < 1.75e71Initial program 72.1%
Taylor expanded in a around 0 77.9%
Simplified85.2%
Final simplification72.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.25e+118)
(* t (* x (- a)))
(if (<= x -1.5e+39)
(* z (* x y))
(if (<= x 4.4e-100)
(* b (* t i))
(if (<= x 1.7e+43)
(* (* y i) (- j))
(if (<= x 9e+269) (* a (* x (- t))) (* y (* x z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.25e+118) {
tmp = t * (x * -a);
} else if (x <= -1.5e+39) {
tmp = z * (x * y);
} else if (x <= 4.4e-100) {
tmp = b * (t * i);
} else if (x <= 1.7e+43) {
tmp = (y * i) * -j;
} else if (x <= 9e+269) {
tmp = a * (x * -t);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-1.25d+118)) then
tmp = t * (x * -a)
else if (x <= (-1.5d+39)) then
tmp = z * (x * y)
else if (x <= 4.4d-100) then
tmp = b * (t * i)
else if (x <= 1.7d+43) then
tmp = (y * i) * -j
else if (x <= 9d+269) then
tmp = a * (x * -t)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.25e+118) {
tmp = t * (x * -a);
} else if (x <= -1.5e+39) {
tmp = z * (x * y);
} else if (x <= 4.4e-100) {
tmp = b * (t * i);
} else if (x <= 1.7e+43) {
tmp = (y * i) * -j;
} else if (x <= 9e+269) {
tmp = a * (x * -t);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.25e+118: tmp = t * (x * -a) elif x <= -1.5e+39: tmp = z * (x * y) elif x <= 4.4e-100: tmp = b * (t * i) elif x <= 1.7e+43: tmp = (y * i) * -j elif x <= 9e+269: tmp = a * (x * -t) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.25e+118) tmp = Float64(t * Float64(x * Float64(-a))); elseif (x <= -1.5e+39) tmp = Float64(z * Float64(x * y)); elseif (x <= 4.4e-100) tmp = Float64(b * Float64(t * i)); elseif (x <= 1.7e+43) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (x <= 9e+269) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.25e+118) tmp = t * (x * -a); elseif (x <= -1.5e+39) tmp = z * (x * y); elseif (x <= 4.4e-100) tmp = b * (t * i); elseif (x <= 1.7e+43) tmp = (y * i) * -j; elseif (x <= 9e+269) tmp = a * (x * -t); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.25e+118], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.5e+39], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.4e-100], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e+43], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[x, 9e+269], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25 \cdot 10^{+118}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{+39}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-100}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+43}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+269}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if x < -1.24999999999999993e118Initial program 63.0%
Taylor expanded in t around inf 56.6%
distribute-lft-out--56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in a around inf 51.6%
mul-1-neg51.6%
*-commutative51.6%
distribute-rgt-neg-in51.6%
Simplified51.6%
if -1.24999999999999993e118 < x < -1.5e39Initial program 66.6%
Taylor expanded in z around inf 56.8%
*-commutative56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in y around inf 46.0%
if -1.5e39 < x < 4.39999999999999978e-100Initial program 65.0%
Taylor expanded in b around inf 51.0%
Taylor expanded in i around inf 31.6%
if 4.39999999999999978e-100 < x < 1.70000000000000006e43Initial program 84.1%
Taylor expanded in j around inf 49.6%
Taylor expanded in a around 0 37.3%
mul-1-neg37.3%
distribute-lft-neg-out37.3%
*-commutative37.3%
Simplified37.3%
if 1.70000000000000006e43 < x < 9.0000000000000004e269Initial program 74.3%
Taylor expanded in a around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in j around 0 39.8%
mul-1-neg39.8%
distribute-lft-neg-out39.8%
*-commutative39.8%
Simplified39.8%
if 9.0000000000000004e269 < x Initial program 50.0%
Taylor expanded in z around inf 70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in y around inf 70.9%
Taylor expanded in z around 0 80.2%
associate-*r*70.9%
*-commutative70.9%
associate-*r*80.2%
Simplified80.2%
Final simplification39.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))))
(if (<= x -6.2e+142)
t_1
(if (<= x -8e+38)
(* z (* x y))
(if (<= x 1.3e-102)
(* b (* t i))
(if (<= x 1e+46)
(* (* y i) (- j))
(if (<= x 5e+269) t_1 (* y (* x z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double tmp;
if (x <= -6.2e+142) {
tmp = t_1;
} else if (x <= -8e+38) {
tmp = z * (x * y);
} else if (x <= 1.3e-102) {
tmp = b * (t * i);
} else if (x <= 1e+46) {
tmp = (y * i) * -j;
} else if (x <= 5e+269) {
tmp = t_1;
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (x * -t)
if (x <= (-6.2d+142)) then
tmp = t_1
else if (x <= (-8d+38)) then
tmp = z * (x * y)
else if (x <= 1.3d-102) then
tmp = b * (t * i)
else if (x <= 1d+46) then
tmp = (y * i) * -j
else if (x <= 5d+269) then
tmp = t_1
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double tmp;
if (x <= -6.2e+142) {
tmp = t_1;
} else if (x <= -8e+38) {
tmp = z * (x * y);
} else if (x <= 1.3e-102) {
tmp = b * (t * i);
} else if (x <= 1e+46) {
tmp = (y * i) * -j;
} else if (x <= 5e+269) {
tmp = t_1;
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) tmp = 0 if x <= -6.2e+142: tmp = t_1 elif x <= -8e+38: tmp = z * (x * y) elif x <= 1.3e-102: tmp = b * (t * i) elif x <= 1e+46: tmp = (y * i) * -j elif x <= 5e+269: tmp = t_1 else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (x <= -6.2e+142) tmp = t_1; elseif (x <= -8e+38) tmp = Float64(z * Float64(x * y)); elseif (x <= 1.3e-102) tmp = Float64(b * Float64(t * i)); elseif (x <= 1e+46) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (x <= 5e+269) tmp = t_1; else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * -t); tmp = 0.0; if (x <= -6.2e+142) tmp = t_1; elseif (x <= -8e+38) tmp = z * (x * y); elseif (x <= 1.3e-102) tmp = b * (t * i); elseif (x <= 1e+46) tmp = (y * i) * -j; elseif (x <= 5e+269) tmp = t_1; else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.2e+142], t$95$1, If[LessEqual[x, -8e+38], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e-102], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+46], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[x, 5e+269], t$95$1, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;x \leq -6.2 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -8 \cdot 10^{+38}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-102}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 10^{+46}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+269}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if x < -6.1999999999999998e142 or 9.9999999999999999e45 < x < 5.0000000000000002e269Initial program 66.6%
Taylor expanded in a around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
*-commutative53.3%
Simplified53.3%
Taylor expanded in j around 0 46.3%
mul-1-neg46.3%
distribute-lft-neg-out46.3%
*-commutative46.3%
Simplified46.3%
if -6.1999999999999998e142 < x < -7.99999999999999982e38Initial program 73.0%
Taylor expanded in z around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in y around inf 43.7%
if -7.99999999999999982e38 < x < 1.29999999999999993e-102Initial program 65.0%
Taylor expanded in b around inf 51.0%
Taylor expanded in i around inf 31.6%
if 1.29999999999999993e-102 < x < 9.9999999999999999e45Initial program 84.1%
Taylor expanded in j around inf 49.6%
Taylor expanded in a around 0 37.3%
mul-1-neg37.3%
distribute-lft-neg-out37.3%
*-commutative37.3%
Simplified37.3%
if 5.0000000000000002e269 < x Initial program 50.0%
Taylor expanded in z around inf 70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in y around inf 70.9%
Taylor expanded in z around 0 80.2%
associate-*r*70.9%
*-commutative70.9%
associate-*r*80.2%
Simplified80.2%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -1.22e-57)
t_2
(if (<= z -1.75e-237)
t_1
(if (<= z 2.1e-232)
(* j (- (* a c) (* y i)))
(if (<= z 1.15e+67) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.22e-57) {
tmp = t_2;
} else if (z <= -1.75e-237) {
tmp = t_1;
} else if (z <= 2.1e-232) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.15e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
t_2 = z * ((x * y) - (b * c))
if (z <= (-1.22d-57)) then
tmp = t_2
else if (z <= (-1.75d-237)) then
tmp = t_1
else if (z <= 2.1d-232) then
tmp = j * ((a * c) - (y * i))
else if (z <= 1.15d+67) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.22e-57) {
tmp = t_2;
} else if (z <= -1.75e-237) {
tmp = t_1;
} else if (z <= 2.1e-232) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.15e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.22e-57: tmp = t_2 elif z <= -1.75e-237: tmp = t_1 elif z <= 2.1e-232: tmp = j * ((a * c) - (y * i)) elif z <= 1.15e+67: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.22e-57) tmp = t_2; elseif (z <= -1.75e-237) tmp = t_1; elseif (z <= 2.1e-232) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 1.15e+67) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.22e-57) tmp = t_2; elseif (z <= -1.75e-237) tmp = t_1; elseif (z <= 2.1e-232) tmp = j * ((a * c) - (y * i)); elseif (z <= 1.15e+67) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.22e-57], t$95$2, If[LessEqual[z, -1.75e-237], t$95$1, If[LessEqual[z, 2.1e-232], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e+67], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.22 \cdot 10^{-57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-232}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.2200000000000001e-57 or 1.1499999999999999e67 < z Initial program 56.8%
Taylor expanded in z around inf 65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
if -1.2200000000000001e-57 < z < -1.74999999999999992e-237 or 2.1e-232 < z < 1.1499999999999999e67Initial program 76.2%
Taylor expanded in t around inf 51.7%
distribute-lft-out--51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in a around 0 51.7%
+-commutative51.7%
*-commutative51.7%
mul-1-neg51.7%
*-commutative51.7%
unsub-neg51.7%
Simplified51.7%
if -1.74999999999999992e-237 < z < 2.1e-232Initial program 71.1%
Taylor expanded in j around inf 65.2%
Final simplification59.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -4.2e+66)
t_1
(if (<= a -1.7e-193)
(* b (* t i))
(if (<= a 2.2e-303)
(* z (* x y))
(if (<= a 1.55e-102) (* b (* z (- c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.2e+66) {
tmp = t_1;
} else if (a <= -1.7e-193) {
tmp = b * (t * i);
} else if (a <= 2.2e-303) {
tmp = z * (x * y);
} else if (a <= 1.55e-102) {
tmp = b * (z * -c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-4.2d+66)) then
tmp = t_1
else if (a <= (-1.7d-193)) then
tmp = b * (t * i)
else if (a <= 2.2d-303) then
tmp = z * (x * y)
else if (a <= 1.55d-102) then
tmp = b * (z * -c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.2e+66) {
tmp = t_1;
} else if (a <= -1.7e-193) {
tmp = b * (t * i);
} else if (a <= 2.2e-303) {
tmp = z * (x * y);
} else if (a <= 1.55e-102) {
tmp = b * (z * -c);
} 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 <= -4.2e+66: tmp = t_1 elif a <= -1.7e-193: tmp = b * (t * i) elif a <= 2.2e-303: tmp = z * (x * y) elif a <= 1.55e-102: tmp = b * (z * -c) 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 <= -4.2e+66) tmp = t_1; elseif (a <= -1.7e-193) tmp = Float64(b * Float64(t * i)); elseif (a <= 2.2e-303) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.55e-102) tmp = Float64(b * Float64(z * Float64(-c))); 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 <= -4.2e+66) tmp = t_1; elseif (a <= -1.7e-193) tmp = b * (t * i); elseif (a <= 2.2e-303) tmp = z * (x * y); elseif (a <= 1.55e-102) tmp = b * (z * -c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+66], t$95$1, If[LessEqual[a, -1.7e-193], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-303], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e-102], N[(b * N[(z * (-c)), $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 -4.2 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-193}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-303}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-102}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.20000000000000011e66 or 1.55000000000000006e-102 < a Initial program 58.6%
Taylor expanded in a around inf 55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
*-commutative55.2%
Simplified55.2%
if -4.20000000000000011e66 < a < -1.7000000000000001e-193Initial program 72.6%
Taylor expanded in b around inf 44.5%
Taylor expanded in i around inf 34.5%
if -1.7000000000000001e-193 < a < 2.20000000000000014e-303Initial program 88.0%
Taylor expanded in z around inf 56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in y around inf 41.7%
if 2.20000000000000014e-303 < a < 1.55000000000000006e-102Initial program 75.4%
Taylor expanded in z around inf 49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
Taylor expanded in y around 0 40.3%
associate-*r*40.3%
neg-mul-140.3%
*-commutative40.3%
Simplified40.3%
Final simplification46.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -2.25e-14) (not (<= i 1.4e+88))) (* i (- (* t b) (* y j))) (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -2.25e-14) || !(i <= 1.4e+88)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-2.25d-14)) .or. (.not. (i <= 1.4d+88))) then
tmp = i * ((t * b) - (y * j))
else
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -2.25e-14) || !(i <= 1.4e+88)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -2.25e-14) or not (i <= 1.4e+88): tmp = i * ((t * b) - (y * j)) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -2.25e-14) || !(i <= 1.4e+88)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -2.25e-14) || ~((i <= 1.4e+88))) tmp = i * ((t * b) - (y * j)); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -2.25e-14], N[Not[LessEqual[i, 1.4e+88]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.25 \cdot 10^{-14} \lor \neg \left(i \leq 1.4 \cdot 10^{+88}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if i < -2.2499999999999999e-14 or 1.39999999999999994e88 < i Initial program 57.8%
Taylor expanded in a around 0 63.5%
Simplified67.6%
Taylor expanded in i around -inf 68.1%
mul-1-neg68.1%
*-commutative68.1%
distribute-rgt-neg-in68.1%
+-commutative68.1%
mul-1-neg68.1%
unsub-neg68.1%
*-commutative68.1%
Simplified68.1%
if -2.2499999999999999e-14 < i < 1.39999999999999994e88Initial program 75.7%
Taylor expanded in b around 0 63.7%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -6.4e+102)
t_1
(if (<= x 3.5e+28)
(- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z))))
(+ (* j (- (* a c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -6.4e+102) {
tmp = t_1;
} else if (x <= 3.5e+28) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else {
tmp = (j * ((a * c) - (y * i))) + 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 = x * ((y * z) - (t * a))
if (x <= (-6.4d+102)) then
tmp = t_1
else if (x <= 3.5d+28) then
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
else
tmp = (j * ((a * c) - (y * i))) + 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -6.4e+102) {
tmp = t_1;
} else if (x <= 3.5e+28) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else {
tmp = (j * ((a * c) - (y * i))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -6.4e+102: tmp = t_1 elif x <= 3.5e+28: tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) else: tmp = (j * ((a * c) - (y * i))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -6.4e+102) tmp = t_1; elseif (x <= 3.5e+28) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -6.4e+102) tmp = t_1; elseif (x <= 3.5e+28) tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); else tmp = (j * ((a * c) - (y * i))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.4e+102], t$95$1, If[LessEqual[x, 3.5e+28], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -6.4 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+28}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
\end{array}
\end{array}
if x < -6.3999999999999999e102Initial program 65.1%
Taylor expanded in x around inf 70.0%
if -6.3999999999999999e102 < x < 3.5e28Initial program 66.8%
Taylor expanded in a around 0 66.2%
Simplified68.7%
if 3.5e28 < x Initial program 71.7%
Taylor expanded in b around 0 75.8%
Final simplification70.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.8e+68) (not (<= c 7.5e+30))) (* c (- (* a j) (* z b))) (+ (* y (- (* x z) (* i j))) (* t (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e+68) || !(c <= 7.5e+30)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = (y * ((x * z) - (i * j))) + (t * (b * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.8d+68)) .or. (.not. (c <= 7.5d+30))) then
tmp = c * ((a * j) - (z * b))
else
tmp = (y * ((x * z) - (i * j))) + (t * (b * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e+68) || !(c <= 7.5e+30)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = (y * ((x * z) - (i * j))) + (t * (b * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.8e+68) or not (c <= 7.5e+30): tmp = c * ((a * j) - (z * b)) else: tmp = (y * ((x * z) - (i * j))) + (t * (b * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.8e+68) || !(c <= 7.5e+30)) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(b * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.8e+68) || ~((c <= 7.5e+30))) tmp = c * ((a * j) - (z * b)); else tmp = (y * ((x * z) - (i * j))) + (t * (b * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.8e+68], N[Not[LessEqual[c, 7.5e+30]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.8 \cdot 10^{+68} \lor \neg \left(c \leq 7.5 \cdot 10^{+30}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -3.8000000000000001e68 or 7.49999999999999973e30 < c Initial program 55.7%
Taylor expanded in c around inf 60.9%
*-commutative60.9%
Simplified60.9%
if -3.8000000000000001e68 < c < 7.49999999999999973e30Initial program 75.7%
Taylor expanded in a around 0 62.3%
Simplified66.2%
Taylor expanded in i around inf 63.3%
associate-*r*59.7%
*-commutative59.7%
Simplified59.7%
Final simplification60.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.75e-37)
t_1
(if (<= i 2.5e-130)
(* x (- (* y z) (* t a)))
(if (<= i 3.1e+85) (* j (- (* a c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.75e-37) {
tmp = t_1;
} else if (i <= 2.5e-130) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 3.1e+85) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-1.75d-37)) then
tmp = t_1
else if (i <= 2.5d-130) then
tmp = x * ((y * z) - (t * a))
else if (i <= 3.1d+85) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.75e-37) {
tmp = t_1;
} else if (i <= 2.5e-130) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 3.1e+85) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.75e-37: tmp = t_1 elif i <= 2.5e-130: tmp = x * ((y * z) - (t * a)) elif i <= 3.1e+85: tmp = j * ((a * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.75e-37) tmp = t_1; elseif (i <= 2.5e-130) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 3.1e+85) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); 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) - (y * j)); tmp = 0.0; if (i <= -1.75e-37) tmp = t_1; elseif (i <= 2.5e-130) tmp = x * ((y * z) - (t * a)); elseif (i <= 3.1e+85) tmp = j * ((a * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.75e-37], t$95$1, If[LessEqual[i, 2.5e-130], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e+85], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.75 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{-130}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{+85}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.7500000000000001e-37 or 3.10000000000000011e85 < i Initial program 60.4%
Taylor expanded in a around 0 64.3%
Simplified68.2%
Taylor expanded in i around -inf 67.0%
mul-1-neg67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
*-commutative67.0%
Simplified67.0%
if -1.7500000000000001e-37 < i < 2.4999999999999998e-130Initial program 76.5%
Taylor expanded in x around inf 58.2%
if 2.4999999999999998e-130 < i < 3.10000000000000011e85Initial program 70.1%
Taylor expanded in j around inf 48.6%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.9e-36)
(* t (* b i))
(if (<= i 3.1e-307)
(* y (* x z))
(if (<= i 1.9e+15) (* z (* b (- c))) (* b (* t i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.9e-36) {
tmp = t * (b * i);
} else if (i <= 3.1e-307) {
tmp = y * (x * z);
} else if (i <= 1.9e+15) {
tmp = z * (b * -c);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.9d-36)) then
tmp = t * (b * i)
else if (i <= 3.1d-307) then
tmp = y * (x * z)
else if (i <= 1.9d+15) then
tmp = z * (b * -c)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.9e-36) {
tmp = t * (b * i);
} else if (i <= 3.1e-307) {
tmp = y * (x * z);
} else if (i <= 1.9e+15) {
tmp = z * (b * -c);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.9e-36: tmp = t * (b * i) elif i <= 3.1e-307: tmp = y * (x * z) elif i <= 1.9e+15: tmp = z * (b * -c) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.9e-36) tmp = Float64(t * Float64(b * i)); elseif (i <= 3.1e-307) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.9e+15) tmp = Float64(z * Float64(b * Float64(-c))); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.9e-36) tmp = t * (b * i); elseif (i <= 3.1e-307) tmp = y * (x * z); elseif (i <= 1.9e+15) tmp = z * (b * -c); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.9e-36], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e-307], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.9e+15], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.9 \cdot 10^{-36}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{-307}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.9 \cdot 10^{+15}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.89999999999999985e-36Initial program 59.5%
Taylor expanded in t around inf 47.1%
distribute-lft-out--47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in a around 0 36.9%
*-commutative36.9%
Simplified36.9%
if -1.89999999999999985e-36 < i < 3.0999999999999998e-307Initial program 70.8%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around inf 36.1%
Taylor expanded in z around 0 39.7%
associate-*r*36.1%
*-commutative36.1%
associate-*r*45.1%
Simplified45.1%
if 3.0999999999999998e-307 < i < 1.9e15Initial program 78.8%
Taylor expanded in z around inf 42.6%
*-commutative42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in y around 0 29.1%
mul-1-neg29.1%
associate-*r*29.2%
distribute-rgt-neg-in29.2%
Simplified29.2%
if 1.9e15 < i Initial program 62.7%
Taylor expanded in b around inf 45.2%
Taylor expanded in i around inf 37.4%
Final simplification36.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.25e-36)
(* t (* b i))
(if (<= i -7.5e-308)
(* y (* x z))
(if (<= i 4.1e+14) (* b (* z (- c))) (* b (* t i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.25e-36) {
tmp = t * (b * i);
} else if (i <= -7.5e-308) {
tmp = y * (x * z);
} else if (i <= 4.1e+14) {
tmp = b * (z * -c);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.25d-36)) then
tmp = t * (b * i)
else if (i <= (-7.5d-308)) then
tmp = y * (x * z)
else if (i <= 4.1d+14) then
tmp = b * (z * -c)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.25e-36) {
tmp = t * (b * i);
} else if (i <= -7.5e-308) {
tmp = y * (x * z);
} else if (i <= 4.1e+14) {
tmp = b * (z * -c);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.25e-36: tmp = t * (b * i) elif i <= -7.5e-308: tmp = y * (x * z) elif i <= 4.1e+14: tmp = b * (z * -c) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.25e-36) tmp = Float64(t * Float64(b * i)); elseif (i <= -7.5e-308) tmp = Float64(y * Float64(x * z)); elseif (i <= 4.1e+14) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.25e-36) tmp = t * (b * i); elseif (i <= -7.5e-308) tmp = y * (x * z); elseif (i <= 4.1e+14) tmp = b * (z * -c); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.25e-36], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.5e-308], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.1e+14], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.25 \cdot 10^{-36}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -7.5 \cdot 10^{-308}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 4.1 \cdot 10^{+14}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.25000000000000001e-36Initial program 59.5%
Taylor expanded in t around inf 47.1%
distribute-lft-out--47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in a around 0 36.9%
*-commutative36.9%
Simplified36.9%
if -1.25000000000000001e-36 < i < -7.4999999999999998e-308Initial program 70.8%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around inf 36.1%
Taylor expanded in z around 0 39.7%
associate-*r*36.1%
*-commutative36.1%
associate-*r*45.1%
Simplified45.1%
if -7.4999999999999998e-308 < i < 4.1e14Initial program 78.8%
Taylor expanded in z around inf 42.6%
*-commutative42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in y around 0 29.1%
associate-*r*29.1%
neg-mul-129.1%
*-commutative29.1%
Simplified29.1%
if 4.1e14 < i Initial program 62.7%
Taylor expanded in b around inf 45.2%
Taylor expanded in i around inf 37.4%
Final simplification36.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.75e-37)
(* t (* b i))
(if (<= i 2.8e-131)
(* y (* x z))
(if (<= i 5.6e+85) (* j (* a c)) (* b (* t i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.75e-37) {
tmp = t * (b * i);
} else if (i <= 2.8e-131) {
tmp = y * (x * z);
} else if (i <= 5.6e+85) {
tmp = j * (a * c);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.75d-37)) then
tmp = t * (b * i)
else if (i <= 2.8d-131) then
tmp = y * (x * z)
else if (i <= 5.6d+85) then
tmp = j * (a * c)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.75e-37) {
tmp = t * (b * i);
} else if (i <= 2.8e-131) {
tmp = y * (x * z);
} else if (i <= 5.6e+85) {
tmp = j * (a * c);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.75e-37: tmp = t * (b * i) elif i <= 2.8e-131: tmp = y * (x * z) elif i <= 5.6e+85: tmp = j * (a * c) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.75e-37) tmp = Float64(t * Float64(b * i)); elseif (i <= 2.8e-131) tmp = Float64(y * Float64(x * z)); elseif (i <= 5.6e+85) tmp = Float64(j * Float64(a * c)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.75e-37) tmp = t * (b * i); elseif (i <= 2.8e-131) tmp = y * (x * z); elseif (i <= 5.6e+85) tmp = j * (a * c); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.75e-37], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.8e-131], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.6e+85], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.75 \cdot 10^{-37}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{-131}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 5.6 \cdot 10^{+85}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.7500000000000001e-37Initial program 59.5%
Taylor expanded in t around inf 47.1%
distribute-lft-out--47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in a around 0 36.9%
*-commutative36.9%
Simplified36.9%
if -1.7500000000000001e-37 < i < 2.8e-131Initial program 76.5%
Taylor expanded in z around inf 48.7%
*-commutative48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in y around inf 29.5%
Taylor expanded in z around 0 32.8%
associate-*r*29.5%
*-commutative29.5%
associate-*r*36.0%
Simplified36.0%
if 2.8e-131 < i < 5.5999999999999998e85Initial program 70.1%
Taylor expanded in j around inf 48.6%
Taylor expanded in a around inf 29.3%
if 5.5999999999999998e85 < i Initial program 61.9%
Taylor expanded in b around inf 47.3%
Taylor expanded in i around inf 41.5%
Final simplification36.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.16e+93)
(* j (* a c))
(if (<= j 4e-284)
(* b (* t i))
(if (<= j 1.55e+67) (* x (* y z)) (* c (* a j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.16e+93) {
tmp = j * (a * c);
} else if (j <= 4e-284) {
tmp = b * (t * i);
} else if (j <= 1.55e+67) {
tmp = x * (y * z);
} else {
tmp = c * (a * 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 (j <= (-1.16d+93)) then
tmp = j * (a * c)
else if (j <= 4d-284) then
tmp = b * (t * i)
else if (j <= 1.55d+67) then
tmp = x * (y * z)
else
tmp = c * (a * 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 (j <= -1.16e+93) {
tmp = j * (a * c);
} else if (j <= 4e-284) {
tmp = b * (t * i);
} else if (j <= 1.55e+67) {
tmp = x * (y * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.16e+93: tmp = j * (a * c) elif j <= 4e-284: tmp = b * (t * i) elif j <= 1.55e+67: tmp = x * (y * z) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.16e+93) tmp = Float64(j * Float64(a * c)); elseif (j <= 4e-284) tmp = Float64(b * Float64(t * i)); elseif (j <= 1.55e+67) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.16e+93) tmp = j * (a * c); elseif (j <= 4e-284) tmp = b * (t * i); elseif (j <= 1.55e+67) tmp = x * (y * z); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.16e+93], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4e-284], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.55e+67], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.16 \cdot 10^{+93}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;j \leq 4 \cdot 10^{-284}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 1.55 \cdot 10^{+67}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if j < -1.16e93Initial program 62.9%
Taylor expanded in j around inf 57.4%
Taylor expanded in a around inf 40.3%
if -1.16e93 < j < 4.00000000000000015e-284Initial program 73.7%
Taylor expanded in b around inf 48.0%
Taylor expanded in i around inf 32.7%
if 4.00000000000000015e-284 < j < 1.54999999999999998e67Initial program 68.5%
Taylor expanded in z around inf 50.1%
*-commutative50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in y around inf 29.0%
Taylor expanded in z around 0 30.2%
if 1.54999999999999998e67 < j Initial program 59.1%
Taylor expanded in c around inf 45.8%
*-commutative45.8%
Simplified45.8%
Taylor expanded in j around inf 42.0%
*-commutative42.0%
Simplified42.0%
Final simplification35.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -5.5e+101) (not (<= x 8e+42))) (* x (- (* y z) (* t a))) (* 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 <= -5.5e+101) || !(x <= 8e+42)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = 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 <= (-5.5d+101)) .or. (.not. (x <= 8d+42))) then
tmp = x * ((y * z) - (t * a))
else
tmp = 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 <= -5.5e+101) || !(x <= 8e+42)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -5.5e+101) or not (x <= 8e+42): tmp = x * ((y * z) - (t * a)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -5.5e+101) || !(x <= 8e+42)) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = 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 <= -5.5e+101) || ~((x <= 8e+42))) tmp = x * ((y * z) - (t * a)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -5.5e+101], N[Not[LessEqual[x, 8e+42]], $MachinePrecision]], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \cdot 10^{+101} \lor \neg \left(x \leq 8 \cdot 10^{+42}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -5.50000000000000018e101 or 8.00000000000000036e42 < x Initial program 67.9%
Taylor expanded in x around inf 64.7%
if -5.50000000000000018e101 < x < 8.00000000000000036e42Initial program 67.2%
Taylor expanded in b around inf 48.9%
Final simplification54.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.1e+147) (not (<= a 9.5e+17))) (* a (- (* c j) (* x t))) (* 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 ((a <= -1.1e+147) || !(a <= 9.5e+17)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = 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 ((a <= (-1.1d+147)) .or. (.not. (a <= 9.5d+17))) then
tmp = a * ((c * j) - (x * t))
else
tmp = 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 ((a <= -1.1e+147) || !(a <= 9.5e+17)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.1e+147) or not (a <= 9.5e+17): tmp = a * ((c * j) - (x * t)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.1e+147) || !(a <= 9.5e+17)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = 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 ((a <= -1.1e+147) || ~((a <= 9.5e+17))) tmp = a * ((c * j) - (x * t)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.1e+147], N[Not[LessEqual[a, 9.5e+17]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{+147} \lor \neg \left(a \leq 9.5 \cdot 10^{+17}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -1.1000000000000001e147 or 9.5e17 < a Initial program 57.2%
Taylor expanded in a around inf 62.8%
+-commutative62.8%
mul-1-neg62.8%
unsub-neg62.8%
*-commutative62.8%
Simplified62.8%
if -1.1000000000000001e147 < a < 9.5e17Initial program 73.1%
Taylor expanded in b around inf 47.5%
Final simplification52.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.55e+68) (not (<= a 1.12e+74))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.55e+68) || !(a <= 1.12e+74)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.55d+68)) .or. (.not. (a <= 1.12d+74))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.55e+68) || !(a <= 1.12e+74)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.55e+68) or not (a <= 1.12e+74): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.55e+68) || !(a <= 1.12e+74)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.55e+68) || ~((a <= 1.12e+74))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.55e+68], N[Not[LessEqual[a, 1.12e+74]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.55 \cdot 10^{+68} \lor \neg \left(a \leq 1.12 \cdot 10^{+74}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if a < -1.5499999999999999e68 or 1.12000000000000003e74 < a Initial program 53.2%
Taylor expanded in a around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in j around inf 35.8%
*-commutative35.8%
Simplified35.8%
if -1.5499999999999999e68 < a < 1.12000000000000003e74Initial program 75.9%
Taylor expanded in b around inf 47.1%
Taylor expanded in i around inf 29.8%
Final simplification32.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -9.5e+139) (* j (* a c)) (if (<= a 1.08e+74) (* t (* b 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 (a <= -9.5e+139) {
tmp = j * (a * c);
} else if (a <= 1.08e+74) {
tmp = t * (b * 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 (a <= (-9.5d+139)) then
tmp = j * (a * c)
else if (a <= 1.08d+74) then
tmp = t * (b * 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 (a <= -9.5e+139) {
tmp = j * (a * c);
} else if (a <= 1.08e+74) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -9.5e+139: tmp = j * (a * c) elif a <= 1.08e+74: tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -9.5e+139) tmp = Float64(j * Float64(a * c)); elseif (a <= 1.08e+74) tmp = Float64(t * Float64(b * 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 (a <= -9.5e+139) tmp = j * (a * c); elseif (a <= 1.08e+74) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -9.5e+139], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.08e+74], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+139}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq 1.08 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if a < -9.5000000000000002e139Initial program 62.8%
Taylor expanded in j around inf 44.9%
Taylor expanded in a around inf 38.4%
if -9.5000000000000002e139 < a < 1.08e74Initial program 74.0%
Taylor expanded in t around inf 39.7%
distribute-lft-out--39.7%
*-commutative39.7%
Simplified39.7%
Taylor expanded in a around 0 30.4%
*-commutative30.4%
Simplified30.4%
if 1.08e74 < a Initial program 48.9%
Taylor expanded in a around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in j around inf 41.0%
*-commutative41.0%
Simplified41.0%
Final simplification33.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -1.8e+140) (* j (* a c)) (if (<= a 9.7e+73) (* 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 (a <= -1.8e+140) {
tmp = j * (a * c);
} else if (a <= 9.7e+73) {
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 (a <= (-1.8d+140)) then
tmp = j * (a * c)
else if (a <= 9.7d+73) 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 (a <= -1.8e+140) {
tmp = j * (a * c);
} else if (a <= 9.7e+73) {
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 a <= -1.8e+140: tmp = j * (a * c) elif a <= 9.7e+73: 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 (a <= -1.8e+140) tmp = Float64(j * Float64(a * c)); elseif (a <= 9.7e+73) 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 (a <= -1.8e+140) tmp = j * (a * c); elseif (a <= 9.7e+73) 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[LessEqual[a, -1.8e+140], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.7e+73], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.8 \cdot 10^{+140}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq 9.7 \cdot 10^{+73}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if a < -1.8e140Initial program 62.8%
Taylor expanded in j around inf 44.9%
Taylor expanded in a around inf 38.4%
if -1.8e140 < a < 9.7000000000000006e73Initial program 74.0%
Taylor expanded in b around inf 46.5%
Taylor expanded in i around inf 29.2%
if 9.7000000000000006e73 < a Initial program 48.9%
Taylor expanded in a around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in j around inf 41.0%
*-commutative41.0%
Simplified41.0%
Final simplification32.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -9.4e+92) (* a (* c j)) (if (<= j 4.5e+88) (* b (* t i)) (* c (* a j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.4e+92) {
tmp = a * (c * j);
} else if (j <= 4.5e+88) {
tmp = b * (t * i);
} else {
tmp = c * (a * 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 (j <= (-9.4d+92)) then
tmp = a * (c * j)
else if (j <= 4.5d+88) then
tmp = b * (t * i)
else
tmp = c * (a * 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 (j <= -9.4e+92) {
tmp = a * (c * j);
} else if (j <= 4.5e+88) {
tmp = b * (t * i);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.4e+92: tmp = a * (c * j) elif j <= 4.5e+88: tmp = b * (t * i) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.4e+92) tmp = Float64(a * Float64(c * j)); elseif (j <= 4.5e+88) tmp = Float64(b * Float64(t * i)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.4e+92) tmp = a * (c * j); elseif (j <= 4.5e+88) tmp = b * (t * i); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.4e+92], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.5e+88], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.4 \cdot 10^{+92}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+88}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if j < -9.4000000000000001e92Initial program 62.9%
Taylor expanded in a around inf 46.5%
+-commutative46.5%
mul-1-neg46.5%
unsub-neg46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in j around inf 40.2%
*-commutative40.2%
Simplified40.2%
if -9.4000000000000001e92 < j < 4.5e88Initial program 71.5%
Taylor expanded in b around inf 43.6%
Taylor expanded in i around inf 27.6%
if 4.5e88 < j Initial program 57.7%
Taylor expanded in c around inf 47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in j around inf 43.4%
*-commutative43.4%
Simplified43.4%
Final simplification32.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 67.5%
Taylor expanded in a around inf 34.7%
+-commutative34.7%
mul-1-neg34.7%
unsub-neg34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in j around inf 19.3%
*-commutative19.3%
Simplified19.3%
Final simplification19.3%
(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 2024116
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))