
(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 32 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
(+
(* j (- (* a c) (* y i)))
(- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY)
t_1
(* a (+ (* c j) (- (/ (* y (- (* x z) (* i j))) a) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((c * j) + (((y * ((x * z) - (i * j))) / a) - (x * t)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((c * j) + (((y * ((x * z) - (i * j))) / a) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((c * j) + (((y * ((x * z) - (i * j))) / a) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(c * j) + Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) / a) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((c * j) + (((y * ((x * z) - (i * j))) / a) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(c * j), $MachinePrecision] + N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j + \left(\frac{y \cdot \left(x \cdot z - i \cdot j\right)}{a} - x \cdot t\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 90.4%
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 a around -inf 26.8%
Simplified39.3%
Taylor expanded in y around inf 60.8%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* b (- (* i (/ t z)) c)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -2.5e-5)
t_2
(if (<= y -1.35e-63)
t_1
(if (<= y -2.2e-259)
(* a (- (* c j) (* x t)))
(if (<= y 1e-203)
t_1
(if (<= y 1.35e+36)
(* a (* t (- (* c (/ j t)) x)))
(if (<= y 1e+73)
(* b (- (* t i) (* z c)))
(if (<= y 3.9e+137) (* j (- (* a c) (* y i))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * ((i * (t / z)) - c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.5e-5) {
tmp = t_2;
} else if (y <= -1.35e-63) {
tmp = t_1;
} else if (y <= -2.2e-259) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1e-203) {
tmp = t_1;
} else if (y <= 1.35e+36) {
tmp = a * (t * ((c * (j / t)) - x));
} else if (y <= 1e+73) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 3.9e+137) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (b * ((i * (t / z)) - c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-2.5d-5)) then
tmp = t_2
else if (y <= (-1.35d-63)) then
tmp = t_1
else if (y <= (-2.2d-259)) then
tmp = a * ((c * j) - (x * t))
else if (y <= 1d-203) then
tmp = t_1
else if (y <= 1.35d+36) then
tmp = a * (t * ((c * (j / t)) - x))
else if (y <= 1d+73) then
tmp = b * ((t * i) - (z * c))
else if (y <= 3.9d+137) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * ((i * (t / z)) - c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.5e-5) {
tmp = t_2;
} else if (y <= -1.35e-63) {
tmp = t_1;
} else if (y <= -2.2e-259) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1e-203) {
tmp = t_1;
} else if (y <= 1.35e+36) {
tmp = a * (t * ((c * (j / t)) - x));
} else if (y <= 1e+73) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 3.9e+137) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (b * ((i * (t / z)) - c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.5e-5: tmp = t_2 elif y <= -1.35e-63: tmp = t_1 elif y <= -2.2e-259: tmp = a * ((c * j) - (x * t)) elif y <= 1e-203: tmp = t_1 elif y <= 1.35e+36: tmp = a * (t * ((c * (j / t)) - x)) elif y <= 1e+73: tmp = b * ((t * i) - (z * c)) elif y <= 3.9e+137: tmp = j * ((a * c) - (y * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(b * Float64(Float64(i * Float64(t / z)) - c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.5e-5) tmp = t_2; elseif (y <= -1.35e-63) tmp = t_1; elseif (y <= -2.2e-259) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 1e-203) tmp = t_1; elseif (y <= 1.35e+36) tmp = Float64(a * Float64(t * Float64(Float64(c * Float64(j / t)) - x))); elseif (y <= 1e+73) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (y <= 3.9e+137) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (b * ((i * (t / z)) - c)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.5e-5) tmp = t_2; elseif (y <= -1.35e-63) tmp = t_1; elseif (y <= -2.2e-259) tmp = a * ((c * j) - (x * t)); elseif (y <= 1e-203) tmp = t_1; elseif (y <= 1.35e+36) tmp = a * (t * ((c * (j / t)) - x)); elseif (y <= 1e+73) tmp = b * ((t * i) - (z * c)); elseif (y <= 3.9e+137) tmp = j * ((a * c) - (y * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(b * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.5e-5], t$95$2, If[LessEqual[y, -1.35e-63], t$95$1, If[LessEqual[y, -2.2e-259], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-203], t$95$1, If[LessEqual[y, 1.35e+36], N[(a * N[(t * N[(N[(c * N[(j / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+73], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e+137], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.2 \cdot 10^{-259}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 10^{-203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(t \cdot \left(c \cdot \frac{j}{t} - x\right)\right)\\
\mathbf{elif}\;y \leq 10^{+73}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{+137}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.50000000000000012e-5 or 3.90000000000000029e137 < y Initial program 58.4%
Taylor expanded in y around inf 72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
if -2.50000000000000012e-5 < y < -1.3500000000000001e-63 or -2.2000000000000001e-259 < y < 1e-203Initial program 77.5%
Taylor expanded in a around -inf 62.4%
Simplified53.8%
Taylor expanded in b around inf 43.6%
mul-1-neg43.6%
distribute-rgt-neg-in43.6%
distribute-lft-neg-in43.6%
div-sub45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in z around inf 55.4%
+-commutative55.4%
associate-/l*57.1%
mul-1-neg57.1%
distribute-rgt-neg-in57.1%
distribute-lft-out58.8%
unsub-neg58.8%
associate-/l*60.6%
Simplified60.6%
if -1.3500000000000001e-63 < y < -2.2000000000000001e-259Initial program 80.1%
Taylor expanded in a around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
Simplified70.7%
if 1e-203 < y < 1.35e36Initial program 81.9%
Taylor expanded in a around inf 55.3%
+-commutative55.3%
mul-1-neg55.3%
unsub-neg55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in t around inf 53.8%
associate-/l*58.2%
Simplified58.2%
if 1.35e36 < y < 9.99999999999999983e72Initial program 70.2%
sub-neg70.2%
distribute-rgt-in70.2%
distribute-rgt-neg-in70.2%
Applied egg-rr70.2%
Taylor expanded in j around 0 80.4%
mul-1-neg80.4%
associate-*r*70.2%
distribute-lft-neg-in70.2%
mul-1-neg70.2%
*-commutative70.2%
distribute-rgt-in70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
*-commutative70.2%
*-commutative70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in x around 0 70.8%
associate-*r*70.8%
*-commutative70.8%
associate-*r*70.8%
mul-1-neg70.8%
neg-sub070.8%
associate--r-70.8%
neg-sub070.8%
+-commutative70.8%
sub-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
if 9.99999999999999983e72 < y < 3.90000000000000029e137Initial program 51.6%
Taylor expanded in j around inf 70.9%
Final simplification66.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -2.7e-5)
t_2
(if (<= y -2.6e-65)
t_1
(if (<= y -1.8e-252)
(* a (- (* c j) (* x t)))
(if (<= y 7.4e-204)
t_1
(if (<= y 1.45e+36)
(* a (* t (- (* c (/ j t)) x)))
(if (<= y 6.5e+71)
t_1
(if (<= y 4.2e+137) (* j (- (* a c) (* y i))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.7e-5) {
tmp = t_2;
} else if (y <= -2.6e-65) {
tmp = t_1;
} else if (y <= -1.8e-252) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 7.4e-204) {
tmp = t_1;
} else if (y <= 1.45e+36) {
tmp = a * (t * ((c * (j / t)) - x));
} else if (y <= 6.5e+71) {
tmp = t_1;
} else if (y <= 4.2e+137) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-2.7d-5)) then
tmp = t_2
else if (y <= (-2.6d-65)) then
tmp = t_1
else if (y <= (-1.8d-252)) then
tmp = a * ((c * j) - (x * t))
else if (y <= 7.4d-204) then
tmp = t_1
else if (y <= 1.45d+36) then
tmp = a * (t * ((c * (j / t)) - x))
else if (y <= 6.5d+71) then
tmp = t_1
else if (y <= 4.2d+137) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.7e-5) {
tmp = t_2;
} else if (y <= -2.6e-65) {
tmp = t_1;
} else if (y <= -1.8e-252) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 7.4e-204) {
tmp = t_1;
} else if (y <= 1.45e+36) {
tmp = a * (t * ((c * (j / t)) - x));
} else if (y <= 6.5e+71) {
tmp = t_1;
} else if (y <= 4.2e+137) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.7e-5: tmp = t_2 elif y <= -2.6e-65: tmp = t_1 elif y <= -1.8e-252: tmp = a * ((c * j) - (x * t)) elif y <= 7.4e-204: tmp = t_1 elif y <= 1.45e+36: tmp = a * (t * ((c * (j / t)) - x)) elif y <= 6.5e+71: tmp = t_1 elif y <= 4.2e+137: tmp = j * ((a * c) - (y * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.7e-5) tmp = t_2; elseif (y <= -2.6e-65) tmp = t_1; elseif (y <= -1.8e-252) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 7.4e-204) tmp = t_1; elseif (y <= 1.45e+36) tmp = Float64(a * Float64(t * Float64(Float64(c * Float64(j / t)) - x))); elseif (y <= 6.5e+71) tmp = t_1; elseif (y <= 4.2e+137) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.7e-5) tmp = t_2; elseif (y <= -2.6e-65) tmp = t_1; elseif (y <= -1.8e-252) tmp = a * ((c * j) - (x * t)); elseif (y <= 7.4e-204) tmp = t_1; elseif (y <= 1.45e+36) tmp = a * (t * ((c * (j / t)) - x)); elseif (y <= 6.5e+71) tmp = t_1; elseif (y <= 4.2e+137) tmp = j * ((a * c) - (y * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.7e-5], t$95$2, If[LessEqual[y, -2.6e-65], t$95$1, If[LessEqual[y, -1.8e-252], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.4e-204], t$95$1, If[LessEqual[y, 1.45e+36], N[(a * N[(t * N[(N[(c * N[(j / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+71], t$95$1, If[LessEqual[y, 4.2e+137], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{-5}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-252}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 7.4 \cdot 10^{-204}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(t \cdot \left(c \cdot \frac{j}{t} - x\right)\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+137}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.6999999999999999e-5 or 4.1999999999999998e137 < y Initial program 58.4%
Taylor expanded in y around inf 72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
if -2.6999999999999999e-5 < y < -2.6000000000000001e-65 or -1.80000000000000011e-252 < y < 7.3999999999999995e-204 or 1.45e36 < y < 6.49999999999999954e71Initial program 76.4%
sub-neg76.4%
distribute-rgt-in76.4%
distribute-rgt-neg-in76.4%
Applied egg-rr76.4%
Taylor expanded in j around 0 75.2%
mul-1-neg75.2%
associate-*r*75.2%
distribute-lft-neg-in75.2%
mul-1-neg75.2%
*-commutative75.2%
distribute-rgt-in75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in x around 0 60.7%
associate-*r*60.7%
*-commutative60.7%
associate-*r*60.7%
mul-1-neg60.7%
neg-sub060.7%
associate--r-60.7%
neg-sub060.7%
+-commutative60.7%
sub-neg60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
if -2.6000000000000001e-65 < y < -1.80000000000000011e-252Initial program 80.1%
Taylor expanded in a around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
Simplified70.7%
if 7.3999999999999995e-204 < y < 1.45e36Initial program 81.9%
Taylor expanded in a around inf 55.3%
+-commutative55.3%
mul-1-neg55.3%
unsub-neg55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in t around inf 53.8%
associate-/l*58.2%
Simplified58.2%
if 6.49999999999999954e71 < y < 4.1999999999999998e137Initial program 51.6%
Taylor expanded in j around inf 70.9%
Final simplification65.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= y -3.2e+206)
(* i (* y (- j)))
(if (<= y -4.8e-55)
(* y (* x z))
(if (<= y -6.5e-288)
t_1
(if (<= y 1.3e-203)
(* i (* t b))
(if (<= y 3.7e-47)
(* x (* t (- a)))
(if (<= y 6.7e-18)
t_1
(if (<= y 9.5e+177) (* t (* b i)) (* x (* y z)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (y <= -3.2e+206) {
tmp = i * (y * -j);
} else if (y <= -4.8e-55) {
tmp = y * (x * z);
} else if (y <= -6.5e-288) {
tmp = t_1;
} else if (y <= 1.3e-203) {
tmp = i * (t * b);
} else if (y <= 3.7e-47) {
tmp = x * (t * -a);
} else if (y <= 6.7e-18) {
tmp = t_1;
} else if (y <= 9.5e+177) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (a * c)
if (y <= (-3.2d+206)) then
tmp = i * (y * -j)
else if (y <= (-4.8d-55)) then
tmp = y * (x * z)
else if (y <= (-6.5d-288)) then
tmp = t_1
else if (y <= 1.3d-203) then
tmp = i * (t * b)
else if (y <= 3.7d-47) then
tmp = x * (t * -a)
else if (y <= 6.7d-18) then
tmp = t_1
else if (y <= 9.5d+177) then
tmp = t * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (y <= -3.2e+206) {
tmp = i * (y * -j);
} else if (y <= -4.8e-55) {
tmp = y * (x * z);
} else if (y <= -6.5e-288) {
tmp = t_1;
} else if (y <= 1.3e-203) {
tmp = i * (t * b);
} else if (y <= 3.7e-47) {
tmp = x * (t * -a);
} else if (y <= 6.7e-18) {
tmp = t_1;
} else if (y <= 9.5e+177) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if y <= -3.2e+206: tmp = i * (y * -j) elif y <= -4.8e-55: tmp = y * (x * z) elif y <= -6.5e-288: tmp = t_1 elif y <= 1.3e-203: tmp = i * (t * b) elif y <= 3.7e-47: tmp = x * (t * -a) elif y <= 6.7e-18: tmp = t_1 elif y <= 9.5e+177: tmp = t * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (y <= -3.2e+206) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -4.8e-55) tmp = Float64(y * Float64(x * z)); elseif (y <= -6.5e-288) tmp = t_1; elseif (y <= 1.3e-203) tmp = Float64(i * Float64(t * b)); elseif (y <= 3.7e-47) tmp = Float64(x * Float64(t * Float64(-a))); elseif (y <= 6.7e-18) tmp = t_1; elseif (y <= 9.5e+177) tmp = Float64(t * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (y <= -3.2e+206) tmp = i * (y * -j); elseif (y <= -4.8e-55) tmp = y * (x * z); elseif (y <= -6.5e-288) tmp = t_1; elseif (y <= 1.3e-203) tmp = i * (t * b); elseif (y <= 3.7e-47) tmp = x * (t * -a); elseif (y <= 6.7e-18) tmp = t_1; elseif (y <= 9.5e+177) tmp = t * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.2e+206], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.8e-55], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.5e-288], t$95$1, If[LessEqual[y, 1.3e-203], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-47], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.7e-18], t$95$1, If[LessEqual[y, 9.5e+177], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{+206}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -4.8 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-288}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-203}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-47}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 6.7 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{+177}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -3.20000000000000005e206Initial program 46.0%
sub-neg46.0%
distribute-rgt-in41.4%
distribute-rgt-neg-in41.4%
Applied egg-rr41.4%
Taylor expanded in i around inf 59.8%
associate-*r*59.8%
neg-mul-159.8%
cancel-sign-sub59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in t around 0 64.0%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
distribute-lft-neg-in64.0%
Simplified64.0%
if -3.20000000000000005e206 < y < -4.79999999999999983e-55Initial program 71.7%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
associate-*r*38.6%
Simplified38.6%
if -4.79999999999999983e-55 < y < -6.4999999999999999e-288 or 3.7e-47 < y < 6.6999999999999998e-18Initial program 79.6%
Taylor expanded in a around inf 60.2%
+-commutative60.2%
mul-1-neg60.2%
unsub-neg60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in j around inf 39.6%
associate-*r*44.5%
Simplified44.5%
if -6.4999999999999999e-288 < y < 1.29999999999999988e-203Initial program 73.3%
sub-neg73.3%
distribute-rgt-in73.3%
distribute-rgt-neg-in73.3%
Applied egg-rr73.3%
Taylor expanded in i around inf 40.9%
associate-*r*40.9%
neg-mul-140.9%
cancel-sign-sub40.9%
+-commutative40.9%
mul-1-neg40.9%
unsub-neg40.9%
*-commutative40.9%
Simplified40.9%
Taylor expanded in t around inf 37.8%
*-commutative37.8%
Simplified37.8%
if 1.29999999999999988e-203 < y < 3.7e-47Initial program 84.8%
Taylor expanded in x around inf 50.4%
Taylor expanded in y around 0 44.2%
associate-*r*44.2%
neg-mul-144.2%
*-commutative44.2%
Simplified44.2%
if 6.6999999999999998e-18 < y < 9.49999999999999996e177Initial program 69.5%
sub-neg69.5%
distribute-rgt-in69.5%
distribute-rgt-neg-in69.5%
Applied egg-rr69.5%
Taylor expanded in j around 0 54.4%
mul-1-neg54.4%
associate-*r*52.1%
distribute-lft-neg-in52.1%
mul-1-neg52.1%
*-commutative52.1%
distribute-rgt-in52.1%
+-commutative52.1%
mul-1-neg52.1%
unsub-neg52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in i around inf 37.2%
*-commutative37.2%
associate-*r*37.1%
*-commutative37.1%
associate-*r*37.3%
Simplified37.3%
if 9.49999999999999996e177 < y Initial program 50.1%
Taylor expanded in x around inf 68.6%
Taylor expanded in y around inf 73.3%
*-commutative73.3%
Simplified73.3%
Final simplification45.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -3e-5)
t_3
(if (<= y -1.02e-66)
t_2
(if (<= y -6.6e-257)
t_1
(if (<= y 1.35e-203)
t_2
(if (<= y 4.15e-19) t_1 (if (<= y 4.1e+74) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3e-5) {
tmp = t_3;
} else if (y <= -1.02e-66) {
tmp = t_2;
} else if (y <= -6.6e-257) {
tmp = t_1;
} else if (y <= 1.35e-203) {
tmp = t_2;
} else if (y <= 4.15e-19) {
tmp = t_1;
} else if (y <= 4.1e+74) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
t_3 = y * ((x * z) - (i * j))
if (y <= (-3d-5)) then
tmp = t_3
else if (y <= (-1.02d-66)) then
tmp = t_2
else if (y <= (-6.6d-257)) then
tmp = t_1
else if (y <= 1.35d-203) then
tmp = t_2
else if (y <= 4.15d-19) then
tmp = t_1
else if (y <= 4.1d+74) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3e-5) {
tmp = t_3;
} else if (y <= -1.02e-66) {
tmp = t_2;
} else if (y <= -6.6e-257) {
tmp = t_1;
} else if (y <= 1.35e-203) {
tmp = t_2;
} else if (y <= 4.15e-19) {
tmp = t_1;
} else if (y <= 4.1e+74) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3e-5: tmp = t_3 elif y <= -1.02e-66: tmp = t_2 elif y <= -6.6e-257: tmp = t_1 elif y <= 1.35e-203: tmp = t_2 elif y <= 4.15e-19: tmp = t_1 elif y <= 4.1e+74: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3e-5) tmp = t_3; elseif (y <= -1.02e-66) tmp = t_2; elseif (y <= -6.6e-257) tmp = t_1; elseif (y <= 1.35e-203) tmp = t_2; elseif (y <= 4.15e-19) tmp = t_1; elseif (y <= 4.1e+74) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3e-5) tmp = t_3; elseif (y <= -1.02e-66) tmp = t_2; elseif (y <= -6.6e-257) tmp = t_1; elseif (y <= 1.35e-203) tmp = t_2; elseif (y <= 4.15e-19) tmp = t_1; elseif (y <= 4.1e+74) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e-5], t$95$3, If[LessEqual[y, -1.02e-66], t$95$2, If[LessEqual[y, -6.6e-257], t$95$1, If[LessEqual[y, 1.35e-203], t$95$2, If[LessEqual[y, 4.15e-19], t$95$1, If[LessEqual[y, 4.1e+74], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{-5}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -1.02 \cdot 10^{-66}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{-257}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-203}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 4.15 \cdot 10^{-19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+74}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -3.00000000000000008e-5 or 4.1e74 < y Initial program 57.8%
Taylor expanded in y around inf 69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
*-commutative69.9%
*-commutative69.9%
Simplified69.9%
if -3.00000000000000008e-5 < y < -1.01999999999999996e-66 or -6.6e-257 < y < 1.34999999999999999e-203 or 4.1500000000000001e-19 < y < 4.1e74Initial program 77.6%
sub-neg77.6%
distribute-rgt-in77.6%
distribute-rgt-neg-in77.6%
Applied egg-rr77.6%
Taylor expanded in j around 0 69.7%
mul-1-neg69.7%
associate-*r*70.9%
distribute-lft-neg-in70.9%
mul-1-neg70.9%
*-commutative70.9%
distribute-rgt-in70.9%
+-commutative70.9%
mul-1-neg70.9%
unsub-neg70.9%
*-commutative70.9%
*-commutative70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in x around 0 58.2%
associate-*r*58.2%
*-commutative58.2%
associate-*r*58.2%
mul-1-neg58.2%
neg-sub058.2%
associate--r-58.2%
neg-sub058.2%
+-commutative58.2%
sub-neg58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
if -1.01999999999999996e-66 < y < -6.6e-257 or 1.34999999999999999e-203 < y < 4.1500000000000001e-19Initial program 81.3%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
Simplified62.9%
Final simplification64.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -28.0)
t_2
(if (<= b -7e-159)
(* j (- (* a c) (* y i)))
(if (<= b 1.06e-80)
t_1
(if (<= b 9.2e-26)
(* c (- (* a j) (* z b)))
(if (<= b 4.4e-21)
t_1
(if (<= b 2.05e+35) (* a (- (* c j) (* x t))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -28.0) {
tmp = t_2;
} else if (b <= -7e-159) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.06e-80) {
tmp = t_1;
} else if (b <= 9.2e-26) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 4.4e-21) {
tmp = t_1;
} else if (b <= 2.05e+35) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((t * i) - (z * c))
if (b <= (-28.0d0)) then
tmp = t_2
else if (b <= (-7d-159)) then
tmp = j * ((a * c) - (y * i))
else if (b <= 1.06d-80) then
tmp = t_1
else if (b <= 9.2d-26) then
tmp = c * ((a * j) - (z * b))
else if (b <= 4.4d-21) then
tmp = t_1
else if (b <= 2.05d+35) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -28.0) {
tmp = t_2;
} else if (b <= -7e-159) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.06e-80) {
tmp = t_1;
} else if (b <= 9.2e-26) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 4.4e-21) {
tmp = t_1;
} else if (b <= 2.05e+35) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -28.0: tmp = t_2 elif b <= -7e-159: tmp = j * ((a * c) - (y * i)) elif b <= 1.06e-80: tmp = t_1 elif b <= 9.2e-26: tmp = c * ((a * j) - (z * b)) elif b <= 4.4e-21: tmp = t_1 elif b <= 2.05e+35: tmp = a * ((c * j) - (x * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -28.0) tmp = t_2; elseif (b <= -7e-159) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 1.06e-80) tmp = t_1; elseif (b <= 9.2e-26) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (b <= 4.4e-21) tmp = t_1; elseif (b <= 2.05e+35) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -28.0) tmp = t_2; elseif (b <= -7e-159) tmp = j * ((a * c) - (y * i)); elseif (b <= 1.06e-80) tmp = t_1; elseif (b <= 9.2e-26) tmp = c * ((a * j) - (z * b)); elseif (b <= 4.4e-21) tmp = t_1; elseif (b <= 2.05e+35) tmp = a * ((c * j) - (x * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -28.0], t$95$2, If[LessEqual[b, -7e-159], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e-80], t$95$1, If[LessEqual[b, 9.2e-26], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e-21], t$95$1, If[LessEqual[b, 2.05e+35], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -28:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-159}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-26}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+35}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -28Initial program 70.6%
Taylor expanded in b around inf 58.2%
if -28 < b < -7.00000000000000005e-159Initial program 68.3%
Taylor expanded in j around inf 58.6%
if -7.00000000000000005e-159 < b < 1.0600000000000001e-80 or 9.20000000000000035e-26 < b < 4.4000000000000001e-21Initial program 75.5%
Taylor expanded in x around inf 62.0%
if 1.0600000000000001e-80 < b < 9.20000000000000035e-26Initial program 51.6%
Taylor expanded in c around inf 79.8%
*-commutative79.8%
Simplified79.8%
if 4.4000000000000001e-21 < b < 2.0499999999999999e35Initial program 80.0%
Taylor expanded in a around inf 80.0%
+-commutative80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
Simplified80.0%
if 2.0499999999999999e35 < b Initial program 66.8%
sub-neg66.8%
distribute-rgt-in66.8%
distribute-rgt-neg-in66.8%
Applied egg-rr66.8%
Taylor expanded in j around 0 65.7%
mul-1-neg65.7%
associate-*r*65.8%
distribute-lft-neg-in65.8%
mul-1-neg65.8%
*-commutative65.8%
distribute-rgt-in65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in x around 0 70.2%
associate-*r*70.2%
*-commutative70.2%
associate-*r*70.2%
mul-1-neg70.2%
neg-sub070.2%
associate--r-70.2%
neg-sub070.2%
+-commutative70.2%
sub-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -9e+206)
(* i (* y (- j)))
(if (<= y -3e-54)
(* y (* x z))
(if (<= y -7.6e-265)
(* j (* a c))
(if (<= y 1.2e-203)
(* z (* b (- c)))
(if (<= y 4.5e-17)
(* t (* x (- a)))
(if (<= y 4.6e+170) (* a (* i (* b (/ t a)))) (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -9e+206) {
tmp = i * (y * -j);
} else if (y <= -3e-54) {
tmp = y * (x * z);
} else if (y <= -7.6e-265) {
tmp = j * (a * c);
} else if (y <= 1.2e-203) {
tmp = z * (b * -c);
} else if (y <= 4.5e-17) {
tmp = t * (x * -a);
} else if (y <= 4.6e+170) {
tmp = a * (i * (b * (t / a)));
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-9d+206)) then
tmp = i * (y * -j)
else if (y <= (-3d-54)) then
tmp = y * (x * z)
else if (y <= (-7.6d-265)) then
tmp = j * (a * c)
else if (y <= 1.2d-203) then
tmp = z * (b * -c)
else if (y <= 4.5d-17) then
tmp = t * (x * -a)
else if (y <= 4.6d+170) then
tmp = a * (i * (b * (t / a)))
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -9e+206) {
tmp = i * (y * -j);
} else if (y <= -3e-54) {
tmp = y * (x * z);
} else if (y <= -7.6e-265) {
tmp = j * (a * c);
} else if (y <= 1.2e-203) {
tmp = z * (b * -c);
} else if (y <= 4.5e-17) {
tmp = t * (x * -a);
} else if (y <= 4.6e+170) {
tmp = a * (i * (b * (t / a)));
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -9e+206: tmp = i * (y * -j) elif y <= -3e-54: tmp = y * (x * z) elif y <= -7.6e-265: tmp = j * (a * c) elif y <= 1.2e-203: tmp = z * (b * -c) elif y <= 4.5e-17: tmp = t * (x * -a) elif y <= 4.6e+170: tmp = a * (i * (b * (t / a))) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -9e+206) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -3e-54) tmp = Float64(y * Float64(x * z)); elseif (y <= -7.6e-265) tmp = Float64(j * Float64(a * c)); elseif (y <= 1.2e-203) tmp = Float64(z * Float64(b * Float64(-c))); elseif (y <= 4.5e-17) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 4.6e+170) tmp = Float64(a * Float64(i * Float64(b * Float64(t / a)))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -9e+206) tmp = i * (y * -j); elseif (y <= -3e-54) tmp = y * (x * z); elseif (y <= -7.6e-265) tmp = j * (a * c); elseif (y <= 1.2e-203) tmp = z * (b * -c); elseif (y <= 4.5e-17) tmp = t * (x * -a); elseif (y <= 4.6e+170) tmp = a * (i * (b * (t / a))); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -9e+206], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e-54], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.6e-265], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e-203], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e-17], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+170], N[(a * N[(i * N[(b * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+206}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-54}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -7.6 \cdot 10^{-265}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-203}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-17}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+170}:\\
\;\;\;\;a \cdot \left(i \cdot \left(b \cdot \frac{t}{a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -9.00000000000000035e206Initial program 46.0%
sub-neg46.0%
distribute-rgt-in41.4%
distribute-rgt-neg-in41.4%
Applied egg-rr41.4%
Taylor expanded in i around inf 59.8%
associate-*r*59.8%
neg-mul-159.8%
cancel-sign-sub59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in t around 0 64.0%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
distribute-lft-neg-in64.0%
Simplified64.0%
if -9.00000000000000035e206 < y < -3.00000000000000009e-54Initial program 71.7%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
associate-*r*38.6%
Simplified38.6%
if -3.00000000000000009e-54 < y < -7.59999999999999961e-265Initial program 82.7%
Taylor expanded in a around inf 61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in j around inf 40.4%
associate-*r*48.7%
Simplified48.7%
if -7.59999999999999961e-265 < y < 1.1999999999999999e-203Initial program 74.8%
Taylor expanded in z around inf 45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in y around 0 45.0%
mul-1-neg45.0%
*-commutative45.0%
distribute-rgt-neg-in45.0%
Simplified45.0%
if 1.1999999999999999e-203 < y < 4.49999999999999978e-17Initial program 81.8%
Taylor expanded in t around inf 52.6%
distribute-lft-out--52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in a around inf 41.6%
if 4.49999999999999978e-17 < y < 4.6000000000000001e170Initial program 71.0%
Taylor expanded in a around -inf 66.9%
Simplified71.3%
Taylor expanded in b around inf 44.9%
mul-1-neg44.9%
distribute-rgt-neg-in44.9%
distribute-lft-neg-in44.9%
div-sub44.9%
*-commutative44.9%
Simplified44.9%
Taylor expanded in c around 0 38.2%
associate-/l*38.1%
associate-/l*38.1%
associate-*r*40.2%
*-commutative40.2%
associate-*r*40.2%
Simplified40.2%
if 4.6000000000000001e170 < y Initial program 47.9%
Taylor expanded in x around inf 65.6%
Taylor expanded in y around inf 70.1%
*-commutative70.1%
Simplified70.1%
Final simplification46.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z)))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (- (+ t_2 (* x (* y z))) (* b (* z c)))))
(if (<= j -6600.0)
t_3
(if (<= j 6e-106)
t_1
(if (<= j 1.4e+26) t_3 (if (<= j 1.46e+180) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double t_2 = j * ((a * c) - (y * i));
double t_3 = (t_2 + (x * (y * z))) - (b * (z * c));
double tmp;
if (j <= -6600.0) {
tmp = t_3;
} else if (j <= 6e-106) {
tmp = t_1;
} else if (j <= 1.4e+26) {
tmp = t_3;
} else if (j <= 1.46e+180) {
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) :: t_3
real(8) :: tmp
t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))
t_2 = j * ((a * c) - (y * i))
t_3 = (t_2 + (x * (y * z))) - (b * (z * c))
if (j <= (-6600.0d0)) then
tmp = t_3
else if (j <= 6d-106) then
tmp = t_1
else if (j <= 1.4d+26) then
tmp = t_3
else if (j <= 1.46d+180) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double t_2 = j * ((a * c) - (y * i));
double t_3 = (t_2 + (x * (y * z))) - (b * (z * c));
double tmp;
if (j <= -6600.0) {
tmp = t_3;
} else if (j <= 6e-106) {
tmp = t_1;
} else if (j <= 1.4e+26) {
tmp = t_3;
} else if (j <= 1.46e+180) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))) t_2 = j * ((a * c) - (y * i)) t_3 = (t_2 + (x * (y * z))) - (b * (z * c)) tmp = 0 if j <= -6600.0: tmp = t_3 elif j <= 6e-106: tmp = t_1 elif j <= 1.4e+26: tmp = t_3 elif j <= 1.46e+180: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(Float64(t_2 + Float64(x * Float64(y * z))) - Float64(b * Float64(z * c))) tmp = 0.0 if (j <= -6600.0) tmp = t_3; elseif (j <= 6e-106) tmp = t_1; elseif (j <= 1.4e+26) tmp = t_3; elseif (j <= 1.46e+180) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))); t_2 = j * ((a * c) - (y * i)); t_3 = (t_2 + (x * (y * z))) - (b * (z * c)); tmp = 0.0; if (j <= -6600.0) tmp = t_3; elseif (j <= 6e-106) tmp = t_1; elseif (j <= 1.4e+26) tmp = t_3; elseif (j <= 1.46e+180) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6600.0], t$95$3, If[LessEqual[j, 6e-106], t$95$1, If[LessEqual[j, 1.4e+26], t$95$3, If[LessEqual[j, 1.46e+180], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := \left(t\_2 + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{if}\;j \leq -6600:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 6 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+26}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 1.46 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -6600 or 6.00000000000000037e-106 < j < 1.4e26Initial program 66.2%
sub-neg66.2%
distribute-rgt-in66.2%
distribute-rgt-neg-in66.2%
Applied egg-rr66.2%
Taylor expanded in t around 0 69.8%
if -6600 < j < 6.00000000000000037e-106 or 1.4e26 < j < 1.45999999999999994e180Initial program 73.2%
sub-neg73.2%
distribute-rgt-in72.5%
distribute-rgt-neg-in72.5%
Applied egg-rr72.5%
Taylor expanded in j around 0 74.0%
mul-1-neg74.0%
associate-*r*76.1%
distribute-lft-neg-in76.1%
mul-1-neg76.1%
*-commutative76.1%
distribute-rgt-in78.2%
+-commutative78.2%
mul-1-neg78.2%
unsub-neg78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
if 1.45999999999999994e180 < j Initial program 71.4%
Taylor expanded in j around inf 78.4%
Final simplification75.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z))))
(t_2 (- (* b (- (* t i) (* z c))) t_1))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -9e+52)
t_3
(if (<= j 5600.0)
t_2
(if (<= j 1.02e+23) (- t_3 t_1) (if (<= j 1.3e+180) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9e+52) {
tmp = t_3;
} else if (j <= 5600.0) {
tmp = t_2;
} else if (j <= 1.02e+23) {
tmp = t_3 - t_1;
} else if (j <= 1.3e+180) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((t * a) - (y * z))
t_2 = (b * ((t * i) - (z * c))) - t_1
t_3 = j * ((a * c) - (y * i))
if (j <= (-9d+52)) then
tmp = t_3
else if (j <= 5600.0d0) then
tmp = t_2
else if (j <= 1.02d+23) then
tmp = t_3 - t_1
else if (j <= 1.3d+180) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9e+52) {
tmp = t_3;
} else if (j <= 5600.0) {
tmp = t_2;
} else if (j <= 1.02e+23) {
tmp = t_3 - t_1;
} else if (j <= 1.3e+180) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) t_2 = (b * ((t * i) - (z * c))) - t_1 t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -9e+52: tmp = t_3 elif j <= 5600.0: tmp = t_2 elif j <= 1.02e+23: tmp = t_3 - t_1 elif j <= 1.3e+180: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - t_1) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -9e+52) tmp = t_3; elseif (j <= 5600.0) tmp = t_2; elseif (j <= 1.02e+23) tmp = Float64(t_3 - t_1); elseif (j <= 1.3e+180) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); t_2 = (b * ((t * i) - (z * c))) - t_1; t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -9e+52) tmp = t_3; elseif (j <= 5600.0) tmp = t_2; elseif (j <= 1.02e+23) tmp = t_3 - t_1; elseif (j <= 1.3e+180) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9e+52], t$95$3, If[LessEqual[j, 5600.0], t$95$2, If[LessEqual[j, 1.02e+23], N[(t$95$3 - t$95$1), $MachinePrecision], If[LessEqual[j, 1.3e+180], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right) - t\_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -9 \cdot 10^{+52}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 5600:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.02 \cdot 10^{+23}:\\
\;\;\;\;t\_3 - t\_1\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+180}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if j < -8.9999999999999999e52 or 1.3000000000000001e180 < j Initial program 61.6%
Taylor expanded in j around inf 72.1%
if -8.9999999999999999e52 < j < 5600 or 1.02e23 < j < 1.3000000000000001e180Initial program 73.4%
sub-neg73.4%
distribute-rgt-in72.9%
distribute-rgt-neg-in72.9%
Applied egg-rr72.9%
Taylor expanded in j around 0 72.4%
mul-1-neg72.4%
associate-*r*73.5%
distribute-lft-neg-in73.5%
mul-1-neg73.5%
*-commutative73.5%
distribute-rgt-in75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
if 5600 < j < 1.02e23Initial program 88.7%
Taylor expanded in b around 0 88.7%
Final simplification74.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z))))
(t_2 (- (* b (- (* t i) (* z c))) t_1))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -3.8e+53)
t_3
(if (<= j 7000.0)
t_2
(if (<= j 1.5e+25) (- t_3 t_1) (if (<= j 1.3e+180) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+53) {
tmp = t_3;
} else if (j <= 7000.0) {
tmp = t_2;
} else if (j <= 1.5e+25) {
tmp = t_3 - t_1;
} else if (j <= 1.3e+180) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((t * a) - (y * z))
t_2 = (b * ((t * i) - (z * c))) - t_1
t_3 = j * ((a * c) - (y * i))
if (j <= (-3.8d+53)) then
tmp = t_3
else if (j <= 7000.0d0) then
tmp = t_2
else if (j <= 1.5d+25) then
tmp = t_3 - t_1
else if (j <= 1.3d+180) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+53) {
tmp = t_3;
} else if (j <= 7000.0) {
tmp = t_2;
} else if (j <= 1.5e+25) {
tmp = t_3 - t_1;
} else if (j <= 1.3e+180) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) t_2 = (b * ((t * i) - (z * c))) - t_1 t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -3.8e+53: tmp = t_3 elif j <= 7000.0: tmp = t_2 elif j <= 1.5e+25: tmp = t_3 - t_1 elif j <= 1.3e+180: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - t_1) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.8e+53) tmp = t_3; elseif (j <= 7000.0) tmp = t_2; elseif (j <= 1.5e+25) tmp = Float64(t_3 - t_1); elseif (j <= 1.3e+180) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); t_2 = (b * ((t * i) - (z * c))) - t_1; t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -3.8e+53) tmp = t_3; elseif (j <= 7000.0) tmp = t_2; elseif (j <= 1.5e+25) tmp = t_3 - t_1; elseif (j <= 1.3e+180) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+53], t$95$3, If[LessEqual[j, 7000.0], t$95$2, If[LessEqual[j, 1.5e+25], N[(t$95$3 - t$95$1), $MachinePrecision], If[LessEqual[j, 1.3e+180], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right) - t\_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+53}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 7000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{+25}:\\
\;\;\;\;t\_3 - t\_1\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+180}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if j < -3.79999999999999997e53 or 1.3000000000000001e180 < j Initial program 61.6%
Taylor expanded in j around inf 72.1%
if -3.79999999999999997e53 < j < 7e3 or 1.50000000000000003e25 < j < 1.3000000000000001e180Initial program 73.4%
Taylor expanded in j around 0 75.2%
if 7e3 < j < 1.50000000000000003e25Initial program 88.7%
Taylor expanded in b around 0 88.7%
Final simplification74.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -3.2e+205)
(* i (* y (- j)))
(if (<= y -1.36e-55)
(* y (* x z))
(if (<= y -9.8e-265)
(* j (* a c))
(if (<= y 1.35e-203)
(* z (* b (- c)))
(if (<= y 2.7e-17)
(* t (* x (- a)))
(if (<= y 5.2e+171) (* t (* b i)) (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.2e+205) {
tmp = i * (y * -j);
} else if (y <= -1.36e-55) {
tmp = y * (x * z);
} else if (y <= -9.8e-265) {
tmp = j * (a * c);
} else if (y <= 1.35e-203) {
tmp = z * (b * -c);
} else if (y <= 2.7e-17) {
tmp = t * (x * -a);
} else if (y <= 5.2e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-3.2d+205)) then
tmp = i * (y * -j)
else if (y <= (-1.36d-55)) then
tmp = y * (x * z)
else if (y <= (-9.8d-265)) then
tmp = j * (a * c)
else if (y <= 1.35d-203) then
tmp = z * (b * -c)
else if (y <= 2.7d-17) then
tmp = t * (x * -a)
else if (y <= 5.2d+171) then
tmp = t * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.2e+205) {
tmp = i * (y * -j);
} else if (y <= -1.36e-55) {
tmp = y * (x * z);
} else if (y <= -9.8e-265) {
tmp = j * (a * c);
} else if (y <= 1.35e-203) {
tmp = z * (b * -c);
} else if (y <= 2.7e-17) {
tmp = t * (x * -a);
} else if (y <= 5.2e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.2e+205: tmp = i * (y * -j) elif y <= -1.36e-55: tmp = y * (x * z) elif y <= -9.8e-265: tmp = j * (a * c) elif y <= 1.35e-203: tmp = z * (b * -c) elif y <= 2.7e-17: tmp = t * (x * -a) elif y <= 5.2e+171: tmp = t * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.2e+205) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -1.36e-55) tmp = Float64(y * Float64(x * z)); elseif (y <= -9.8e-265) tmp = Float64(j * Float64(a * c)); elseif (y <= 1.35e-203) tmp = Float64(z * Float64(b * Float64(-c))); elseif (y <= 2.7e-17) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 5.2e+171) tmp = Float64(t * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -3.2e+205) tmp = i * (y * -j); elseif (y <= -1.36e-55) tmp = y * (x * z); elseif (y <= -9.8e-265) tmp = j * (a * c); elseif (y <= 1.35e-203) tmp = z * (b * -c); elseif (y <= 2.7e-17) tmp = t * (x * -a); elseif (y <= 5.2e+171) tmp = t * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.2e+205], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.36e-55], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.8e-265], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e-203], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e-17], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+171], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+205}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -1.36 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{-265}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-203}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-17}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+171}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -3.19999999999999996e205Initial program 46.0%
sub-neg46.0%
distribute-rgt-in41.4%
distribute-rgt-neg-in41.4%
Applied egg-rr41.4%
Taylor expanded in i around inf 59.8%
associate-*r*59.8%
neg-mul-159.8%
cancel-sign-sub59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in t around 0 64.0%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
distribute-lft-neg-in64.0%
Simplified64.0%
if -3.19999999999999996e205 < y < -1.35999999999999993e-55Initial program 71.7%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
associate-*r*38.6%
Simplified38.6%
if -1.35999999999999993e-55 < y < -9.79999999999999999e-265Initial program 82.7%
Taylor expanded in a around inf 61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in j around inf 40.4%
associate-*r*48.7%
Simplified48.7%
if -9.79999999999999999e-265 < y < 1.34999999999999999e-203Initial program 74.8%
Taylor expanded in z around inf 45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in y around 0 45.0%
mul-1-neg45.0%
*-commutative45.0%
distribute-rgt-neg-in45.0%
Simplified45.0%
if 1.34999999999999999e-203 < y < 2.7000000000000001e-17Initial program 81.8%
Taylor expanded in t around inf 52.6%
distribute-lft-out--52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in a around inf 41.6%
if 2.7000000000000001e-17 < y < 5.2e171Initial program 69.5%
Taylor expanded in t around inf 39.5%
distribute-lft-out--39.5%
*-commutative39.5%
Simplified39.5%
Taylor expanded in a around 0 37.3%
neg-mul-137.3%
distribute-rgt-neg-in37.3%
Simplified37.3%
if 5.2e171 < y Initial program 50.1%
Taylor expanded in x around inf 68.6%
Taylor expanded in y around inf 73.3%
*-commutative73.3%
Simplified73.3%
Final simplification46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.06e+206)
(* i (* y (- j)))
(if (<= y -2.3e-54)
(* y (* x z))
(if (<= y -4.4e-265)
(* j (* a c))
(if (<= y 1e-203)
(* z (* b (- c)))
(if (<= y 3.6e-18)
(* t (* x (- a)))
(if (<= y 3.8e+177) (* t (* b i)) (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.06e+206) {
tmp = i * (y * -j);
} else if (y <= -2.3e-54) {
tmp = y * (x * z);
} else if (y <= -4.4e-265) {
tmp = j * (a * c);
} else if (y <= 1e-203) {
tmp = z * (b * -c);
} else if (y <= 3.6e-18) {
tmp = t * (x * -a);
} else if (y <= 3.8e+177) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.06d+206)) then
tmp = i * (y * -j)
else if (y <= (-2.3d-54)) then
tmp = y * (x * z)
else if (y <= (-4.4d-265)) then
tmp = j * (a * c)
else if (y <= 1d-203) then
tmp = z * (b * -c)
else if (y <= 3.6d-18) then
tmp = t * (x * -a)
else if (y <= 3.8d+177) then
tmp = t * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.06e+206) {
tmp = i * (y * -j);
} else if (y <= -2.3e-54) {
tmp = y * (x * z);
} else if (y <= -4.4e-265) {
tmp = j * (a * c);
} else if (y <= 1e-203) {
tmp = z * (b * -c);
} else if (y <= 3.6e-18) {
tmp = t * (x * -a);
} else if (y <= 3.8e+177) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.06e+206: tmp = i * (y * -j) elif y <= -2.3e-54: tmp = y * (x * z) elif y <= -4.4e-265: tmp = j * (a * c) elif y <= 1e-203: tmp = z * (b * -c) elif y <= 3.6e-18: tmp = t * (x * -a) elif y <= 3.8e+177: tmp = t * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.06e+206) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -2.3e-54) tmp = Float64(y * Float64(x * z)); elseif (y <= -4.4e-265) tmp = Float64(j * Float64(a * c)); elseif (y <= 1e-203) tmp = Float64(z * Float64(b * Float64(-c))); elseif (y <= 3.6e-18) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 3.8e+177) tmp = Float64(t * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.06e+206) tmp = i * (y * -j); elseif (y <= -2.3e-54) tmp = y * (x * z); elseif (y <= -4.4e-265) tmp = j * (a * c); elseif (y <= 1e-203) tmp = z * (b * -c); elseif (y <= 3.6e-18) tmp = t * (x * -a); elseif (y <= 3.8e+177) tmp = t * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.06e+206], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.3e-54], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.4e-265], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-203], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e-18], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e+177], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.06 \cdot 10^{+206}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-54}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{-265}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 10^{-203}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-18}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+177}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -1.0599999999999999e206Initial program 46.0%
sub-neg46.0%
distribute-rgt-in41.4%
distribute-rgt-neg-in41.4%
Applied egg-rr41.4%
Taylor expanded in i around inf 59.8%
associate-*r*59.8%
neg-mul-159.8%
cancel-sign-sub59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in t around 0 64.0%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
distribute-lft-neg-in64.0%
Simplified64.0%
if -1.0599999999999999e206 < y < -2.2999999999999999e-54Initial program 71.7%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
associate-*r*38.6%
Simplified38.6%
if -2.2999999999999999e-54 < y < -4.40000000000000021e-265Initial program 82.7%
Taylor expanded in a around inf 61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in j around inf 40.4%
associate-*r*48.7%
Simplified48.7%
if -4.40000000000000021e-265 < y < 1e-203Initial program 74.8%
Taylor expanded in z around inf 45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in y around 0 45.0%
mul-1-neg45.0%
*-commutative45.0%
distribute-rgt-neg-in45.0%
Simplified45.0%
if 1e-203 < y < 3.6000000000000001e-18Initial program 81.8%
Taylor expanded in t around inf 52.6%
distribute-lft-out--52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in a around inf 41.6%
if 3.6000000000000001e-18 < y < 3.7999999999999998e177Initial program 69.5%
sub-neg69.5%
distribute-rgt-in69.5%
distribute-rgt-neg-in69.5%
Applied egg-rr69.5%
Taylor expanded in j around 0 54.4%
mul-1-neg54.4%
associate-*r*52.1%
distribute-lft-neg-in52.1%
mul-1-neg52.1%
*-commutative52.1%
distribute-rgt-in52.1%
+-commutative52.1%
mul-1-neg52.1%
unsub-neg52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in i around inf 37.2%
*-commutative37.2%
associate-*r*37.1%
*-commutative37.1%
associate-*r*37.3%
Simplified37.3%
if 3.7999999999999998e177 < y Initial program 50.1%
Taylor expanded in x around inf 68.6%
Taylor expanded in y around inf 73.3%
*-commutative73.3%
Simplified73.3%
Final simplification46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -8e+206)
(* i (* y (- j)))
(if (<= y -2.15e-55)
(* y (* x z))
(if (<= y -1.02e-265)
(* j (* a c))
(if (<= y 8e-204)
(* z (* b (- c)))
(if (<= y 2.2e-17)
(* t (* x (- a)))
(if (<= y 6.4e+171) (* t (* b i)) (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8e+206) {
tmp = i * (y * -j);
} else if (y <= -2.15e-55) {
tmp = y * (x * z);
} else if (y <= -1.02e-265) {
tmp = j * (a * c);
} else if (y <= 8e-204) {
tmp = z * (b * -c);
} else if (y <= 2.2e-17) {
tmp = t * (x * -a);
} else if (y <= 6.4e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-8d+206)) then
tmp = i * (y * -j)
else if (y <= (-2.15d-55)) then
tmp = y * (x * z)
else if (y <= (-1.02d-265)) then
tmp = j * (a * c)
else if (y <= 8d-204) then
tmp = z * (b * -c)
else if (y <= 2.2d-17) then
tmp = t * (x * -a)
else if (y <= 6.4d+171) then
tmp = t * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8e+206) {
tmp = i * (y * -j);
} else if (y <= -2.15e-55) {
tmp = y * (x * z);
} else if (y <= -1.02e-265) {
tmp = j * (a * c);
} else if (y <= 8e-204) {
tmp = z * (b * -c);
} else if (y <= 2.2e-17) {
tmp = t * (x * -a);
} else if (y <= 6.4e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -8e+206: tmp = i * (y * -j) elif y <= -2.15e-55: tmp = y * (x * z) elif y <= -1.02e-265: tmp = j * (a * c) elif y <= 8e-204: tmp = z * (b * -c) elif y <= 2.2e-17: tmp = t * (x * -a) elif y <= 6.4e+171: tmp = t * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -8e+206) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -2.15e-55) tmp = Float64(y * Float64(x * z)); elseif (y <= -1.02e-265) tmp = Float64(j * Float64(a * c)); elseif (y <= 8e-204) tmp = Float64(z * Float64(b * Float64(-c))); elseif (y <= 2.2e-17) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 6.4e+171) tmp = Float64(t * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -8e+206) tmp = i * (y * -j); elseif (y <= -2.15e-55) tmp = y * (x * z); elseif (y <= -1.02e-265) tmp = j * (a * c); elseif (y <= 8e-204) tmp = z * (b * -c); elseif (y <= 2.2e-17) tmp = t * (x * -a); elseif (y <= 6.4e+171) tmp = t * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -8e+206], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.15e-55], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.02e-265], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-204], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-17], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.4e+171], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{+206}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -1.02 \cdot 10^{-265}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-204}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-17}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{+171}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -8.0000000000000003e206Initial program 46.0%
sub-neg46.0%
distribute-rgt-in41.4%
distribute-rgt-neg-in41.4%
Applied egg-rr41.4%
Taylor expanded in i around inf 59.8%
associate-*r*59.8%
neg-mul-159.8%
cancel-sign-sub59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in t around 0 64.0%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
distribute-lft-neg-in64.0%
Simplified64.0%
if -8.0000000000000003e206 < y < -2.15000000000000005e-55Initial program 71.7%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
associate-*r*38.6%
Simplified38.6%
if -2.15000000000000005e-55 < y < -1.02000000000000005e-265Initial program 82.7%
Taylor expanded in a around inf 61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in j around inf 40.4%
associate-*r*48.7%
Simplified48.7%
if -1.02000000000000005e-265 < y < 8.00000000000000001e-204Initial program 74.8%
Taylor expanded in z around inf 45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in y around 0 45.0%
mul-1-neg45.0%
*-commutative45.0%
distribute-rgt-neg-in45.0%
Simplified45.0%
if 8.00000000000000001e-204 < y < 2.2e-17Initial program 81.8%
Taylor expanded in t around inf 52.6%
distribute-lft-out--52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in a around inf 41.6%
Taylor expanded in t around 0 41.6%
mul-1-neg41.6%
*-commutative41.6%
distribute-rgt-neg-in41.6%
neg-mul-141.6%
associate-*r*41.6%
neg-mul-141.6%
Simplified41.6%
if 2.2e-17 < y < 6.40000000000000022e171Initial program 69.5%
sub-neg69.5%
distribute-rgt-in69.5%
distribute-rgt-neg-in69.5%
Applied egg-rr69.5%
Taylor expanded in j around 0 54.4%
mul-1-neg54.4%
associate-*r*52.1%
distribute-lft-neg-in52.1%
mul-1-neg52.1%
*-commutative52.1%
distribute-rgt-in52.1%
+-commutative52.1%
mul-1-neg52.1%
unsub-neg52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in i around inf 37.2%
*-commutative37.2%
associate-*r*37.1%
*-commutative37.1%
associate-*r*37.3%
Simplified37.3%
if 6.40000000000000022e171 < y Initial program 50.1%
Taylor expanded in x around inf 68.6%
Taylor expanded in y around inf 73.3%
*-commutative73.3%
Simplified73.3%
Final simplification46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* b (* z c))))
(t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.5e+48)
t_2
(if (<= j 1.12e+18)
t_1
(if (<= j 1.05e+77)
(* z (* b (- (* i (/ t z)) c)))
(if (<= j 1.3e+180) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (b * (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.5e+48) {
tmp = t_2;
} else if (j <= 1.12e+18) {
tmp = t_1;
} else if (j <= 1.05e+77) {
tmp = z * (b * ((i * (t / z)) - c));
} else if (j <= 1.3e+180) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) - (b * (z * c))
t_2 = j * ((a * c) - (y * i))
if (j <= (-2.5d+48)) then
tmp = t_2
else if (j <= 1.12d+18) then
tmp = t_1
else if (j <= 1.05d+77) then
tmp = z * (b * ((i * (t / z)) - c))
else if (j <= 1.3d+180) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (b * (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.5e+48) {
tmp = t_2;
} else if (j <= 1.12e+18) {
tmp = t_1;
} else if (j <= 1.05e+77) {
tmp = z * (b * ((i * (t / z)) - c));
} else if (j <= 1.3e+180) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) - (b * (z * c)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.5e+48: tmp = t_2 elif j <= 1.12e+18: tmp = t_1 elif j <= 1.05e+77: tmp = z * (b * ((i * (t / z)) - c)) elif j <= 1.3e+180: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.5e+48) tmp = t_2; elseif (j <= 1.12e+18) tmp = t_1; elseif (j <= 1.05e+77) tmp = Float64(z * Float64(b * Float64(Float64(i * Float64(t / z)) - c))); elseif (j <= 1.3e+180) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) - (b * (z * c)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.5e+48) tmp = t_2; elseif (j <= 1.12e+18) tmp = t_1; elseif (j <= 1.05e+77) tmp = z * (b * ((i * (t / z)) - c)); elseif (j <= 1.3e+180) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.5e+48], t$95$2, If[LessEqual[j, 1.12e+18], t$95$1, If[LessEqual[j, 1.05e+77], N[(z * N[(b * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.3e+180], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.5 \cdot 10^{+48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{+77}:\\
\;\;\;\;z \cdot \left(b \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -2.49999999999999987e48 or 1.3000000000000001e180 < j Initial program 61.6%
Taylor expanded in j around inf 72.1%
if -2.49999999999999987e48 < j < 1.12e18 or 1.0499999999999999e77 < j < 1.3000000000000001e180Initial program 73.6%
sub-neg73.6%
distribute-rgt-in73.0%
distribute-rgt-neg-in73.0%
Applied egg-rr73.0%
Taylor expanded in j around 0 71.3%
mul-1-neg71.3%
associate-*r*72.5%
distribute-lft-neg-in72.5%
mul-1-neg72.5%
*-commutative72.5%
distribute-rgt-in74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
*-commutative74.2%
*-commutative74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in c around inf 65.6%
if 1.12e18 < j < 1.0499999999999999e77Initial program 83.1%
Taylor expanded in a around -inf 91.3%
Simplified99.6%
Taylor expanded in b around inf 67.0%
mul-1-neg67.0%
distribute-rgt-neg-in67.0%
distribute-lft-neg-in67.0%
div-sub67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in z around inf 59.6%
+-commutative59.6%
associate-/l*59.6%
mul-1-neg59.6%
distribute-rgt-neg-in59.6%
distribute-lft-out67.9%
unsub-neg67.9%
associate-/l*68.1%
Simplified68.1%
Final simplification67.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -4.05e+155)
(* t (* b i))
(if (<= i -6000.0)
(* z (* x y))
(if (<= i -1.25e-272)
(* j (* a c))
(if (<= i 3.4e-18)
(* y (* x z))
(if (<= i 1.4e+276) (* b (* t i)) (* y (* j (- 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 <= -4.05e+155) {
tmp = t * (b * i);
} else if (i <= -6000.0) {
tmp = z * (x * y);
} else if (i <= -1.25e-272) {
tmp = j * (a * c);
} else if (i <= 3.4e-18) {
tmp = y * (x * z);
} else if (i <= 1.4e+276) {
tmp = b * (t * i);
} else {
tmp = y * (j * -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 <= (-4.05d+155)) then
tmp = t * (b * i)
else if (i <= (-6000.0d0)) then
tmp = z * (x * y)
else if (i <= (-1.25d-272)) then
tmp = j * (a * c)
else if (i <= 3.4d-18) then
tmp = y * (x * z)
else if (i <= 1.4d+276) then
tmp = b * (t * i)
else
tmp = y * (j * -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 <= -4.05e+155) {
tmp = t * (b * i);
} else if (i <= -6000.0) {
tmp = z * (x * y);
} else if (i <= -1.25e-272) {
tmp = j * (a * c);
} else if (i <= 3.4e-18) {
tmp = y * (x * z);
} else if (i <= 1.4e+276) {
tmp = b * (t * i);
} else {
tmp = y * (j * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -4.05e+155: tmp = t * (b * i) elif i <= -6000.0: tmp = z * (x * y) elif i <= -1.25e-272: tmp = j * (a * c) elif i <= 3.4e-18: tmp = y * (x * z) elif i <= 1.4e+276: tmp = b * (t * i) else: tmp = y * (j * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -4.05e+155) tmp = Float64(t * Float64(b * i)); elseif (i <= -6000.0) tmp = Float64(z * Float64(x * y)); elseif (i <= -1.25e-272) tmp = Float64(j * Float64(a * c)); elseif (i <= 3.4e-18) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.4e+276) tmp = Float64(b * Float64(t * i)); else tmp = Float64(y * Float64(j * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -4.05e+155) tmp = t * (b * i); elseif (i <= -6000.0) tmp = z * (x * y); elseif (i <= -1.25e-272) tmp = j * (a * c); elseif (i <= 3.4e-18) tmp = y * (x * z); elseif (i <= 1.4e+276) tmp = b * (t * i); else tmp = y * (j * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -4.05e+155], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6000.0], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.25e-272], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.4e-18], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e+276], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.05 \cdot 10^{+155}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -6000:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq -1.25 \cdot 10^{-272}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-18}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{+276}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if i < -4.05000000000000014e155Initial program 68.1%
sub-neg68.1%
distribute-rgt-in68.1%
distribute-rgt-neg-in68.1%
Applied egg-rr68.1%
Taylor expanded in j around 0 58.9%
mul-1-neg58.9%
associate-*r*61.8%
distribute-lft-neg-in61.8%
mul-1-neg61.8%
*-commutative61.8%
distribute-rgt-in61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
*-commutative61.8%
*-commutative61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in i around inf 41.3%
*-commutative41.3%
associate-*r*47.3%
*-commutative47.3%
associate-*r*53.4%
Simplified53.4%
if -4.05000000000000014e155 < i < -6e3Initial program 71.8%
Taylor expanded in z around inf 40.7%
*-commutative40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in y around inf 33.4%
*-commutative33.4%
Simplified33.4%
if -6e3 < i < -1.24999999999999995e-272Initial program 81.0%
Taylor expanded in a around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in j around inf 29.3%
associate-*r*40.2%
Simplified40.2%
if -1.24999999999999995e-272 < i < 3.40000000000000001e-18Initial program 74.7%
Taylor expanded in z around inf 49.9%
*-commutative49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in y around inf 28.1%
*-commutative28.1%
associate-*r*32.3%
Simplified32.3%
if 3.40000000000000001e-18 < i < 1.39999999999999997e276Initial program 66.1%
Taylor expanded in t around inf 44.0%
distribute-lft-out--44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in a around 0 45.2%
*-commutative45.2%
Simplified45.2%
if 1.39999999999999997e276 < i Initial program 0.0%
sub-neg0.0%
distribute-rgt-in0.0%
distribute-rgt-neg-in0.0%
Applied egg-rr0.0%
Taylor expanded in i around inf 57.1%
associate-*r*57.1%
neg-mul-157.1%
cancel-sign-sub57.1%
+-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in t around 0 57.9%
mul-1-neg57.9%
associate-*r*71.6%
Simplified71.6%
Final simplification40.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -6.5e+109)
t_1
(if (<= b 9e+45)
(- (* j (- (* a c) (* y i))) (* x (- (* t a) (* y z))))
(if (<= b 1.25e+78)
t_1
(if (<= b 1.5e+197)
(* z (* x (- y (* b (/ c x)))))
(* z (* b (- (* i (/ t z)) c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6.5e+109) {
tmp = t_1;
} else if (b <= 9e+45) {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else if (b <= 1.25e+78) {
tmp = t_1;
} else if (b <= 1.5e+197) {
tmp = z * (x * (y - (b * (c / x))));
} else {
tmp = z * (b * ((i * (t / z)) - c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-6.5d+109)) then
tmp = t_1
else if (b <= 9d+45) then
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)))
else if (b <= 1.25d+78) then
tmp = t_1
else if (b <= 1.5d+197) then
tmp = z * (x * (y - (b * (c / x))))
else
tmp = z * (b * ((i * (t / z)) - c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6.5e+109) {
tmp = t_1;
} else if (b <= 9e+45) {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else if (b <= 1.25e+78) {
tmp = t_1;
} else if (b <= 1.5e+197) {
tmp = z * (x * (y - (b * (c / x))));
} else {
tmp = z * (b * ((i * (t / z)) - c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -6.5e+109: tmp = t_1 elif b <= 9e+45: tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))) elif b <= 1.25e+78: tmp = t_1 elif b <= 1.5e+197: tmp = z * (x * (y - (b * (c / x)))) else: tmp = z * (b * ((i * (t / z)) - c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -6.5e+109) tmp = t_1; elseif (b <= 9e+45) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (b <= 1.25e+78) tmp = t_1; elseif (b <= 1.5e+197) tmp = Float64(z * Float64(x * Float64(y - Float64(b * Float64(c / x))))); else tmp = Float64(z * Float64(b * Float64(Float64(i * Float64(t / z)) - c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -6.5e+109) tmp = t_1; elseif (b <= 9e+45) tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))); elseif (b <= 1.25e+78) tmp = t_1; elseif (b <= 1.5e+197) tmp = z * (x * (y - (b * (c / x)))); else tmp = z * (b * ((i * (t / z)) - c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+109], t$95$1, If[LessEqual[b, 9e+45], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e+78], t$95$1, If[LessEqual[b, 1.5e+197], N[(z * N[(x * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+45}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+197}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - b \cdot \frac{c}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\
\end{array}
\end{array}
if b < -6.5e109Initial program 68.9%
Taylor expanded in b around inf 67.0%
if -6.5e109 < b < 8.9999999999999997e45Initial program 72.8%
Taylor expanded in b around 0 68.5%
if 8.9999999999999997e45 < b < 1.24999999999999996e78Initial program 67.1%
sub-neg67.1%
distribute-rgt-in67.1%
distribute-rgt-neg-in67.1%
Applied egg-rr67.1%
Taylor expanded in j around 0 66.7%
mul-1-neg66.7%
associate-*r*67.1%
distribute-lft-neg-in67.1%
mul-1-neg67.1%
*-commutative67.1%
distribute-rgt-in67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
*-commutative67.1%
*-commutative67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in x around 0 89.4%
associate-*r*89.4%
*-commutative89.4%
associate-*r*89.4%
mul-1-neg89.4%
neg-sub089.4%
associate--r-89.4%
neg-sub089.4%
+-commutative89.4%
sub-neg89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
if 1.24999999999999996e78 < b < 1.5000000000000001e197Initial program 62.9%
Taylor expanded in z around inf 70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in x around inf 74.5%
mul-1-neg74.5%
unsub-neg74.5%
associate-/l*74.5%
Simplified74.5%
if 1.5000000000000001e197 < b Initial program 69.2%
Taylor expanded in a around -inf 70.0%
Simplified66.4%
Taylor expanded in b around inf 70.2%
mul-1-neg70.2%
distribute-rgt-neg-in70.2%
distribute-lft-neg-in70.2%
div-sub70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in z around inf 61.7%
+-commutative61.7%
associate-/l*65.6%
mul-1-neg65.6%
distribute-rgt-neg-in65.6%
distribute-lft-out84.8%
unsub-neg84.8%
associate-/l*84.8%
Simplified84.8%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.25e+206)
(* i (* y (- j)))
(if (<= y -1.26e-55)
(* y (* x z))
(if (<= y 1.16e-279)
(* j (* a c))
(if (<= y 3.75e-17)
(* a (* t (- x)))
(if (<= y 3.3e+171) (* t (* b i)) (* x (* y z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.25e+206) {
tmp = i * (y * -j);
} else if (y <= -1.26e-55) {
tmp = y * (x * z);
} else if (y <= 1.16e-279) {
tmp = j * (a * c);
} else if (y <= 3.75e-17) {
tmp = a * (t * -x);
} else if (y <= 3.3e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.25d+206)) then
tmp = i * (y * -j)
else if (y <= (-1.26d-55)) then
tmp = y * (x * z)
else if (y <= 1.16d-279) then
tmp = j * (a * c)
else if (y <= 3.75d-17) then
tmp = a * (t * -x)
else if (y <= 3.3d+171) then
tmp = t * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.25e+206) {
tmp = i * (y * -j);
} else if (y <= -1.26e-55) {
tmp = y * (x * z);
} else if (y <= 1.16e-279) {
tmp = j * (a * c);
} else if (y <= 3.75e-17) {
tmp = a * (t * -x);
} else if (y <= 3.3e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.25e+206: tmp = i * (y * -j) elif y <= -1.26e-55: tmp = y * (x * z) elif y <= 1.16e-279: tmp = j * (a * c) elif y <= 3.75e-17: tmp = a * (t * -x) elif y <= 3.3e+171: tmp = t * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.25e+206) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -1.26e-55) tmp = Float64(y * Float64(x * z)); elseif (y <= 1.16e-279) tmp = Float64(j * Float64(a * c)); elseif (y <= 3.75e-17) tmp = Float64(a * Float64(t * Float64(-x))); elseif (y <= 3.3e+171) tmp = Float64(t * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.25e+206) tmp = i * (y * -j); elseif (y <= -1.26e-55) tmp = y * (x * z); elseif (y <= 1.16e-279) tmp = j * (a * c); elseif (y <= 3.75e-17) tmp = a * (t * -x); elseif (y <= 3.3e+171) tmp = t * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.25e+206], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.26e-55], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.16e-279], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.75e-17], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+171], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+206}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -1.26 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-279}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 3.75 \cdot 10^{-17}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+171}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -1.25e206Initial program 46.0%
sub-neg46.0%
distribute-rgt-in41.4%
distribute-rgt-neg-in41.4%
Applied egg-rr41.4%
Taylor expanded in i around inf 59.8%
associate-*r*59.8%
neg-mul-159.8%
cancel-sign-sub59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in t around 0 64.0%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
distribute-lft-neg-in64.0%
Simplified64.0%
if -1.25e206 < y < -1.2599999999999999e-55Initial program 71.7%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
associate-*r*38.6%
Simplified38.6%
if -1.2599999999999999e-55 < y < 1.16e-279Initial program 78.1%
Taylor expanded in a around inf 48.1%
+-commutative48.1%
mul-1-neg48.1%
unsub-neg48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in j around inf 34.6%
associate-*r*38.9%
Simplified38.9%
if 1.16e-279 < y < 3.74999999999999992e-17Initial program 80.5%
Taylor expanded in a around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in j around 0 37.4%
mul-1-neg37.4%
distribute-lft-neg-out37.4%
*-commutative37.4%
Simplified37.4%
if 3.74999999999999992e-17 < y < 3.29999999999999991e171Initial program 69.5%
sub-neg69.5%
distribute-rgt-in69.5%
distribute-rgt-neg-in69.5%
Applied egg-rr69.5%
Taylor expanded in j around 0 54.4%
mul-1-neg54.4%
associate-*r*52.1%
distribute-lft-neg-in52.1%
mul-1-neg52.1%
*-commutative52.1%
distribute-rgt-in52.1%
+-commutative52.1%
mul-1-neg52.1%
unsub-neg52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in i around inf 37.2%
*-commutative37.2%
associate-*r*37.1%
*-commutative37.1%
associate-*r*37.3%
Simplified37.3%
if 3.29999999999999991e171 < y Initial program 50.1%
Taylor expanded in x around inf 68.6%
Taylor expanded in y around inf 73.3%
*-commutative73.3%
Simplified73.3%
Final simplification43.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.1e+206)
(* y (* j (- i)))
(if (<= y -3.4e-56)
(* y (* x z))
(if (<= y 1.22e-279)
(* j (* a c))
(if (<= y 1.7e-18)
(* a (* t (- x)))
(if (<= y 3.3e+171) (* t (* b i)) (* x (* y z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.1e+206) {
tmp = y * (j * -i);
} else if (y <= -3.4e-56) {
tmp = y * (x * z);
} else if (y <= 1.22e-279) {
tmp = j * (a * c);
} else if (y <= 1.7e-18) {
tmp = a * (t * -x);
} else if (y <= 3.3e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.1d+206)) then
tmp = y * (j * -i)
else if (y <= (-3.4d-56)) then
tmp = y * (x * z)
else if (y <= 1.22d-279) then
tmp = j * (a * c)
else if (y <= 1.7d-18) then
tmp = a * (t * -x)
else if (y <= 3.3d+171) then
tmp = t * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.1e+206) {
tmp = y * (j * -i);
} else if (y <= -3.4e-56) {
tmp = y * (x * z);
} else if (y <= 1.22e-279) {
tmp = j * (a * c);
} else if (y <= 1.7e-18) {
tmp = a * (t * -x);
} else if (y <= 3.3e+171) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.1e+206: tmp = y * (j * -i) elif y <= -3.4e-56: tmp = y * (x * z) elif y <= 1.22e-279: tmp = j * (a * c) elif y <= 1.7e-18: tmp = a * (t * -x) elif y <= 3.3e+171: tmp = t * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.1e+206) tmp = Float64(y * Float64(j * Float64(-i))); elseif (y <= -3.4e-56) tmp = Float64(y * Float64(x * z)); elseif (y <= 1.22e-279) tmp = Float64(j * Float64(a * c)); elseif (y <= 1.7e-18) tmp = Float64(a * Float64(t * Float64(-x))); elseif (y <= 3.3e+171) tmp = Float64(t * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.1e+206) tmp = y * (j * -i); elseif (y <= -3.4e-56) tmp = y * (x * z); elseif (y <= 1.22e-279) tmp = j * (a * c); elseif (y <= 1.7e-18) tmp = a * (t * -x); elseif (y <= 3.3e+171) tmp = t * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.1e+206], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.4e-56], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.22e-279], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-18], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+171], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+206}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-56}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{-279}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-18}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+171}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -1.10000000000000001e206Initial program 46.0%
sub-neg46.0%
distribute-rgt-in41.4%
distribute-rgt-neg-in41.4%
Applied egg-rr41.4%
Taylor expanded in i around inf 59.8%
associate-*r*59.8%
neg-mul-159.8%
cancel-sign-sub59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in t around 0 64.0%
mul-1-neg64.0%
associate-*r*59.6%
Simplified59.6%
if -1.10000000000000001e206 < y < -3.39999999999999982e-56Initial program 71.7%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
associate-*r*38.6%
Simplified38.6%
if -3.39999999999999982e-56 < y < 1.22000000000000002e-279Initial program 78.1%
Taylor expanded in a around inf 48.1%
+-commutative48.1%
mul-1-neg48.1%
unsub-neg48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in j around inf 34.6%
associate-*r*38.9%
Simplified38.9%
if 1.22000000000000002e-279 < y < 1.70000000000000001e-18Initial program 80.5%
Taylor expanded in a around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in j around 0 37.4%
mul-1-neg37.4%
distribute-lft-neg-out37.4%
*-commutative37.4%
Simplified37.4%
if 1.70000000000000001e-18 < y < 3.29999999999999991e171Initial program 69.5%
sub-neg69.5%
distribute-rgt-in69.5%
distribute-rgt-neg-in69.5%
Applied egg-rr69.5%
Taylor expanded in j around 0 54.4%
mul-1-neg54.4%
associate-*r*52.1%
distribute-lft-neg-in52.1%
mul-1-neg52.1%
*-commutative52.1%
distribute-rgt-in52.1%
+-commutative52.1%
mul-1-neg52.1%
unsub-neg52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in i around inf 37.2%
*-commutative37.2%
associate-*r*37.1%
*-commutative37.1%
associate-*r*37.3%
Simplified37.3%
if 3.29999999999999991e171 < y Initial program 50.1%
Taylor expanded in x around inf 68.6%
Taylor expanded in y around inf 73.3%
*-commutative73.3%
Simplified73.3%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= y -3.2e+242)
t_1
(if (<= y -5.4e+199)
(* b (* t i))
(if (<= y -2.9e-55)
t_1
(if (<= y -7.5e-288)
(* a (* c j))
(if (<= y 4.9e+170) (* i (* t b)) (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (y <= -3.2e+242) {
tmp = t_1;
} else if (y <= -5.4e+199) {
tmp = b * (t * i);
} else if (y <= -2.9e-55) {
tmp = t_1;
} else if (y <= -7.5e-288) {
tmp = a * (c * j);
} else if (y <= 4.9e+170) {
tmp = i * (t * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (y <= (-3.2d+242)) then
tmp = t_1
else if (y <= (-5.4d+199)) then
tmp = b * (t * i)
else if (y <= (-2.9d-55)) then
tmp = t_1
else if (y <= (-7.5d-288)) then
tmp = a * (c * j)
else if (y <= 4.9d+170) then
tmp = i * (t * b)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (y <= -3.2e+242) {
tmp = t_1;
} else if (y <= -5.4e+199) {
tmp = b * (t * i);
} else if (y <= -2.9e-55) {
tmp = t_1;
} else if (y <= -7.5e-288) {
tmp = a * (c * j);
} else if (y <= 4.9e+170) {
tmp = i * (t * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if y <= -3.2e+242: tmp = t_1 elif y <= -5.4e+199: tmp = b * (t * i) elif y <= -2.9e-55: tmp = t_1 elif y <= -7.5e-288: tmp = a * (c * j) elif y <= 4.9e+170: tmp = i * (t * b) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (y <= -3.2e+242) tmp = t_1; elseif (y <= -5.4e+199) tmp = Float64(b * Float64(t * i)); elseif (y <= -2.9e-55) tmp = t_1; elseif (y <= -7.5e-288) tmp = Float64(a * Float64(c * j)); elseif (y <= 4.9e+170) tmp = Float64(i * Float64(t * b)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (y <= -3.2e+242) tmp = t_1; elseif (y <= -5.4e+199) tmp = b * (t * i); elseif (y <= -2.9e-55) tmp = t_1; elseif (y <= -7.5e-288) tmp = a * (c * j); elseif (y <= 4.9e+170) tmp = i * (t * b); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.2e+242], t$95$1, If[LessEqual[y, -5.4e+199], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.9e-55], t$95$1, If[LessEqual[y, -7.5e-288], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.9e+170], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{+242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -5.4 \cdot 10^{+199}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-288}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+170}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -3.2000000000000002e242 or -5.3999999999999998e199 < y < -2.9e-55Initial program 66.4%
Taylor expanded in z around inf 56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in y around inf 38.7%
*-commutative38.7%
associate-*r*41.6%
Simplified41.6%
if -3.2000000000000002e242 < y < -5.3999999999999998e199Initial program 54.5%
Taylor expanded in t around inf 25.6%
distribute-lft-out--25.6%
*-commutative25.6%
Simplified25.6%
Taylor expanded in a around 0 39.0%
*-commutative39.0%
Simplified39.0%
if -2.9e-55 < y < -7.4999999999999998e-288Initial program 82.8%
Taylor expanded in a around inf 59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in j around inf 39.1%
if -7.4999999999999998e-288 < y < 4.9000000000000004e170Initial program 75.8%
sub-neg75.8%
distribute-rgt-in75.8%
distribute-rgt-neg-in75.8%
Applied egg-rr75.8%
Taylor expanded in i around inf 38.3%
associate-*r*38.3%
neg-mul-138.3%
cancel-sign-sub38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
*-commutative38.3%
Simplified38.3%
Taylor expanded in t around inf 31.3%
*-commutative31.3%
Simplified31.3%
if 4.9000000000000004e170 < y Initial program 47.9%
Taylor expanded in x around inf 65.6%
Taylor expanded in y around inf 70.1%
*-commutative70.1%
Simplified70.1%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -6.2e+48)
t_1
(if (<= j 8e-10)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(if (<= j 1.4e+154) (- (* b (* t i)) (* x (- (* t a) (* y z)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -6.2e+48) {
tmp = t_1;
} else if (j <= 8e-10) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (j <= 1.4e+154) {
tmp = (b * (t * i)) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-6.2d+48)) then
tmp = t_1
else if (j <= 8d-10) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else if (j <= 1.4d+154) then
tmp = (b * (t * i)) - (x * ((t * a) - (y * z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -6.2e+48) {
tmp = t_1;
} else if (j <= 8e-10) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (j <= 1.4e+154) {
tmp = (b * (t * i)) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -6.2e+48: tmp = t_1 elif j <= 8e-10: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) elif j <= 1.4e+154: tmp = (b * (t * i)) - (x * ((t * a) - (y * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -6.2e+48) tmp = t_1; elseif (j <= 8e-10) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); elseif (j <= 1.4e+154) tmp = Float64(Float64(b * Float64(t * i)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -6.2e+48) tmp = t_1; elseif (j <= 8e-10) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); elseif (j <= 1.4e+154) tmp = (b * (t * i)) - (x * ((t * a) - (y * z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.2e+48], t$95$1, If[LessEqual[j, 8e-10], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e+154], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -6.2 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+154}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -6.20000000000000011e48 or 1.4e154 < j Initial program 60.2%
Taylor expanded in j around inf 70.1%
if -6.20000000000000011e48 < j < 8.00000000000000029e-10Initial program 72.9%
sub-neg72.9%
distribute-rgt-in72.3%
distribute-rgt-neg-in72.3%
Applied egg-rr72.3%
Taylor expanded in j around 0 74.2%
mul-1-neg74.2%
associate-*r*75.0%
distribute-lft-neg-in75.0%
mul-1-neg75.0%
*-commutative75.0%
distribute-rgt-in76.4%
+-commutative76.4%
mul-1-neg76.4%
unsub-neg76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in c around inf 67.3%
if 8.00000000000000029e-10 < j < 1.4e154Initial program 83.5%
sub-neg83.5%
distribute-rgt-in83.5%
distribute-rgt-neg-in83.5%
Applied egg-rr83.5%
Taylor expanded in j around 0 63.0%
mul-1-neg63.0%
associate-*r*65.4%
distribute-lft-neg-in65.4%
mul-1-neg65.4%
*-commutative65.4%
distribute-rgt-in65.4%
+-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
*-commutative65.4%
*-commutative65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in c around 0 60.4%
associate-*r*60.4%
neg-mul-160.4%
Simplified60.4%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))))
(if (<= b -1060000000000.0)
t_1
(if (<= b 1.35e+46)
(* a (- (* c j) (* x t)))
(if (<= b 3.6e+77)
t_1
(if (<= b 5.5e+129) (* a (* t (- x))) (* z (* b (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (b <= -1060000000000.0) {
tmp = t_1;
} else if (b <= 1.35e+46) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.6e+77) {
tmp = t_1;
} else if (b <= 5.5e+129) {
tmp = a * (t * -x);
} else {
tmp = z * (b * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (t * b)
if (b <= (-1060000000000.0d0)) then
tmp = t_1
else if (b <= 1.35d+46) then
tmp = a * ((c * j) - (x * t))
else if (b <= 3.6d+77) then
tmp = t_1
else if (b <= 5.5d+129) then
tmp = a * (t * -x)
else
tmp = z * (b * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (b <= -1060000000000.0) {
tmp = t_1;
} else if (b <= 1.35e+46) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.6e+77) {
tmp = t_1;
} else if (b <= 5.5e+129) {
tmp = a * (t * -x);
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if b <= -1060000000000.0: tmp = t_1 elif b <= 1.35e+46: tmp = a * ((c * j) - (x * t)) elif b <= 3.6e+77: tmp = t_1 elif b <= 5.5e+129: tmp = a * (t * -x) else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (b <= -1060000000000.0) tmp = t_1; elseif (b <= 1.35e+46) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 3.6e+77) tmp = t_1; elseif (b <= 5.5e+129) tmp = Float64(a * Float64(t * Float64(-x))); else tmp = Float64(z * Float64(b * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (t * b); tmp = 0.0; if (b <= -1060000000000.0) tmp = t_1; elseif (b <= 1.35e+46) tmp = a * ((c * j) - (x * t)); elseif (b <= 3.6e+77) tmp = t_1; elseif (b <= 5.5e+129) tmp = a * (t * -x); else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1060000000000.0], t$95$1, If[LessEqual[b, 1.35e+46], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e+77], t$95$1, If[LessEqual[b, 5.5e+129], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;b \leq -1060000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{+46}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+129}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -1.06e12Initial program 69.6%
Taylor expanded in a around -inf 59.7%
Simplified59.5%
Taylor expanded in b around inf 54.1%
mul-1-neg54.1%
distribute-rgt-neg-in54.1%
distribute-lft-neg-in54.1%
div-sub54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in c around 0 37.3%
associate-*r*35.6%
*-commutative35.6%
associate-*r*39.0%
Simplified39.0%
if -1.06e12 < b < 1.3500000000000001e46Initial program 72.9%
Taylor expanded in a around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
if 1.3500000000000001e46 < b < 3.5999999999999998e77Initial program 67.1%
sub-neg67.1%
distribute-rgt-in67.1%
distribute-rgt-neg-in67.1%
Applied egg-rr67.1%
Taylor expanded in i around inf 78.1%
associate-*r*78.1%
neg-mul-178.1%
cancel-sign-sub78.1%
+-commutative78.1%
mul-1-neg78.1%
unsub-neg78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in t around inf 78.1%
*-commutative78.1%
Simplified78.1%
if 3.5999999999999998e77 < b < 5.49999999999999984e129Initial program 62.5%
Taylor expanded in a around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in j around 0 75.4%
mul-1-neg75.4%
distribute-lft-neg-out75.4%
*-commutative75.4%
Simplified75.4%
if 5.49999999999999984e129 < b Initial program 66.9%
Taylor expanded in z around inf 67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in y around 0 62.9%
mul-1-neg62.9%
*-commutative62.9%
distribute-rgt-neg-in62.9%
Simplified62.9%
Final simplification51.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.32e+156)
(* t (* b i))
(if (<= i -62000.0)
(* z (* x y))
(if (<= i -6.2e-275)
(* j (* a c))
(if (<= i 2.7e-18) (* y (* x z)) (* 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.32e+156) {
tmp = t * (b * i);
} else if (i <= -62000.0) {
tmp = z * (x * y);
} else if (i <= -6.2e-275) {
tmp = j * (a * c);
} else if (i <= 2.7e-18) {
tmp = y * (x * z);
} 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.32d+156)) then
tmp = t * (b * i)
else if (i <= (-62000.0d0)) then
tmp = z * (x * y)
else if (i <= (-6.2d-275)) then
tmp = j * (a * c)
else if (i <= 2.7d-18) then
tmp = y * (x * z)
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.32e+156) {
tmp = t * (b * i);
} else if (i <= -62000.0) {
tmp = z * (x * y);
} else if (i <= -6.2e-275) {
tmp = j * (a * c);
} else if (i <= 2.7e-18) {
tmp = y * (x * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.32e+156: tmp = t * (b * i) elif i <= -62000.0: tmp = z * (x * y) elif i <= -6.2e-275: tmp = j * (a * c) elif i <= 2.7e-18: tmp = y * (x * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.32e+156) tmp = Float64(t * Float64(b * i)); elseif (i <= -62000.0) tmp = Float64(z * Float64(x * y)); elseif (i <= -6.2e-275) tmp = Float64(j * Float64(a * c)); elseif (i <= 2.7e-18) tmp = Float64(y * Float64(x * z)); 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.32e+156) tmp = t * (b * i); elseif (i <= -62000.0) tmp = z * (x * y); elseif (i <= -6.2e-275) tmp = j * (a * c); elseif (i <= 2.7e-18) tmp = y * (x * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.32e+156], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -62000.0], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6.2e-275], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.7e-18], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.32 \cdot 10^{+156}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -62000:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq -6.2 \cdot 10^{-275}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-18}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.3199999999999999e156Initial program 68.1%
sub-neg68.1%
distribute-rgt-in68.1%
distribute-rgt-neg-in68.1%
Applied egg-rr68.1%
Taylor expanded in j around 0 58.9%
mul-1-neg58.9%
associate-*r*61.8%
distribute-lft-neg-in61.8%
mul-1-neg61.8%
*-commutative61.8%
distribute-rgt-in61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
*-commutative61.8%
*-commutative61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in i around inf 41.3%
*-commutative41.3%
associate-*r*47.3%
*-commutative47.3%
associate-*r*53.4%
Simplified53.4%
if -1.3199999999999999e156 < i < -62000Initial program 71.8%
Taylor expanded in z around inf 40.7%
*-commutative40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in y around inf 33.4%
*-commutative33.4%
Simplified33.4%
if -62000 < i < -6.200000000000001e-275Initial program 81.0%
Taylor expanded in a around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in j around inf 29.3%
associate-*r*40.2%
Simplified40.2%
if -6.200000000000001e-275 < i < 2.69999999999999989e-18Initial program 74.7%
Taylor expanded in z around inf 49.9%
*-commutative49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in y around inf 28.1%
*-commutative28.1%
associate-*r*32.3%
Simplified32.3%
if 2.69999999999999989e-18 < i Initial program 59.3%
Taylor expanded in t around inf 41.0%
distribute-lft-out--41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in a around 0 42.0%
*-commutative42.0%
Simplified42.0%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -6.8e+155)
(* t (* b i))
(if (<= i -3.5e-24)
(* z (* x y))
(if (<= i -1.75e-181)
(* a (* c j))
(if (<= i 8e-19) (* y (* x z)) (* 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 <= -6.8e+155) {
tmp = t * (b * i);
} else if (i <= -3.5e-24) {
tmp = z * (x * y);
} else if (i <= -1.75e-181) {
tmp = a * (c * j);
} else if (i <= 8e-19) {
tmp = y * (x * z);
} 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 <= (-6.8d+155)) then
tmp = t * (b * i)
else if (i <= (-3.5d-24)) then
tmp = z * (x * y)
else if (i <= (-1.75d-181)) then
tmp = a * (c * j)
else if (i <= 8d-19) then
tmp = y * (x * z)
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 <= -6.8e+155) {
tmp = t * (b * i);
} else if (i <= -3.5e-24) {
tmp = z * (x * y);
} else if (i <= -1.75e-181) {
tmp = a * (c * j);
} else if (i <= 8e-19) {
tmp = y * (x * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -6.8e+155: tmp = t * (b * i) elif i <= -3.5e-24: tmp = z * (x * y) elif i <= -1.75e-181: tmp = a * (c * j) elif i <= 8e-19: tmp = y * (x * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -6.8e+155) tmp = Float64(t * Float64(b * i)); elseif (i <= -3.5e-24) tmp = Float64(z * Float64(x * y)); elseif (i <= -1.75e-181) tmp = Float64(a * Float64(c * j)); elseif (i <= 8e-19) tmp = Float64(y * Float64(x * z)); 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 <= -6.8e+155) tmp = t * (b * i); elseif (i <= -3.5e-24) tmp = z * (x * y); elseif (i <= -1.75e-181) tmp = a * (c * j); elseif (i <= 8e-19) tmp = y * (x * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -6.8e+155], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.5e-24], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.75e-181], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8e-19], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.8 \cdot 10^{+155}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -3.5 \cdot 10^{-24}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq -1.75 \cdot 10^{-181}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 8 \cdot 10^{-19}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -6.8000000000000002e155Initial program 68.1%
sub-neg68.1%
distribute-rgt-in68.1%
distribute-rgt-neg-in68.1%
Applied egg-rr68.1%
Taylor expanded in j around 0 58.9%
mul-1-neg58.9%
associate-*r*61.8%
distribute-lft-neg-in61.8%
mul-1-neg61.8%
*-commutative61.8%
distribute-rgt-in61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
*-commutative61.8%
*-commutative61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in i around inf 41.3%
*-commutative41.3%
associate-*r*47.3%
*-commutative47.3%
associate-*r*53.4%
Simplified53.4%
if -6.8000000000000002e155 < i < -3.4999999999999996e-24Initial program 72.1%
Taylor expanded in z around inf 41.7%
*-commutative41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in y around inf 32.7%
*-commutative32.7%
Simplified32.7%
if -3.4999999999999996e-24 < i < -1.74999999999999998e-181Initial program 79.8%
Taylor expanded in a around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in j around inf 37.9%
if -1.74999999999999998e-181 < i < 7.9999999999999998e-19Initial program 76.6%
Taylor expanded in z around inf 49.8%
*-commutative49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in y around inf 26.1%
*-commutative26.1%
associate-*r*29.5%
Simplified29.5%
if 7.9999999999999998e-19 < i Initial program 59.3%
Taylor expanded in t around inf 41.0%
distribute-lft-out--41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in a around 0 42.0%
*-commutative42.0%
Simplified42.0%
Final simplification37.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= b -3.9e-14)
(* i (* t b))
(if (<= b -2e-147)
t_1
(if (<= b 8.5e-81)
(* x (* y z))
(if (<= b 8.5e+40) t_1 (* t (* b i))))))))
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);
double tmp;
if (b <= -3.9e-14) {
tmp = i * (t * b);
} else if (b <= -2e-147) {
tmp = t_1;
} else if (b <= 8.5e-81) {
tmp = x * (y * z);
} else if (b <= 8.5e+40) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (b <= (-3.9d-14)) then
tmp = i * (t * b)
else if (b <= (-2d-147)) then
tmp = t_1
else if (b <= 8.5d-81) then
tmp = x * (y * z)
else if (b <= 8.5d+40) then
tmp = t_1
else
tmp = 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 t_1 = a * (c * j);
double tmp;
if (b <= -3.9e-14) {
tmp = i * (t * b);
} else if (b <= -2e-147) {
tmp = t_1;
} else if (b <= 8.5e-81) {
tmp = x * (y * z);
} else if (b <= 8.5e+40) {
tmp = t_1;
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if b <= -3.9e-14: tmp = i * (t * b) elif b <= -2e-147: tmp = t_1 elif b <= 8.5e-81: tmp = x * (y * z) elif b <= 8.5e+40: tmp = t_1 else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (b <= -3.9e-14) tmp = Float64(i * Float64(t * b)); elseif (b <= -2e-147) tmp = t_1; elseif (b <= 8.5e-81) tmp = Float64(x * Float64(y * z)); elseif (b <= 8.5e+40) tmp = t_1; else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (b <= -3.9e-14) tmp = i * (t * b); elseif (b <= -2e-147) tmp = t_1; elseif (b <= 8.5e-81) tmp = x * (y * z); elseif (b <= 8.5e+40) tmp = t_1; else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.9e-14], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e-147], t$95$1, If[LessEqual[b, 8.5e-81], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+40], t$95$1, N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;b \leq -3.9 \cdot 10^{-14}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -3.8999999999999998e-14Initial program 72.0%
Taylor expanded in a around -inf 59.7%
Simplified58.0%
Taylor expanded in b around inf 52.2%
mul-1-neg52.2%
distribute-rgt-neg-in52.2%
distribute-lft-neg-in52.2%
div-sub52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in c around 0 36.1%
associate-*r*34.6%
*-commutative34.6%
associate-*r*37.7%
Simplified37.7%
if -3.8999999999999998e-14 < b < -1.9999999999999999e-147 or 8.5000000000000001e-81 < b < 8.49999999999999996e40Initial program 69.7%
Taylor expanded in a around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in j around inf 36.2%
if -1.9999999999999999e-147 < b < 8.5000000000000001e-81Initial program 73.2%
Taylor expanded in x around inf 59.6%
Taylor expanded in y around inf 35.1%
*-commutative35.1%
Simplified35.1%
if 8.49999999999999996e40 < b Initial program 66.3%
sub-neg66.3%
distribute-rgt-in66.3%
distribute-rgt-neg-in66.3%
Applied egg-rr66.3%
Taylor expanded in j around 0 66.7%
mul-1-neg66.7%
associate-*r*66.8%
distribute-lft-neg-in66.8%
mul-1-neg66.8%
*-commutative66.8%
distribute-rgt-in66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in i around inf 36.9%
*-commutative36.9%
associate-*r*36.9%
*-commutative36.9%
associate-*r*40.2%
Simplified40.2%
Final simplification37.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -420000.0) (not (<= b 2.45e+34))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -420000.0) || !(b <= 2.45e+34)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-420000.0d0)) .or. (.not. (b <= 2.45d+34))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -420000.0) || !(b <= 2.45e+34)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -420000.0) or not (b <= 2.45e+34): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -420000.0) || !(b <= 2.45e+34)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -420000.0) || ~((b <= 2.45e+34))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -420000.0], N[Not[LessEqual[b, 2.45e+34]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -420000 \lor \neg \left(b \leq 2.45 \cdot 10^{+34}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -4.2e5Initial program 70.1%
Taylor expanded in b around inf 59.1%
if -4.2e5 < b < 2.4500000000000001e34Initial program 72.6%
Taylor expanded in a around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
*-commutative50.9%
Simplified50.9%
if 2.4500000000000001e34 < b Initial program 66.8%
sub-neg66.8%
distribute-rgt-in66.8%
distribute-rgt-neg-in66.8%
Applied egg-rr66.8%
Taylor expanded in j around 0 65.7%
mul-1-neg65.7%
associate-*r*65.8%
distribute-lft-neg-in65.8%
mul-1-neg65.8%
*-commutative65.8%
distribute-rgt-in65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in x around 0 70.2%
associate-*r*70.2%
*-commutative70.2%
associate-*r*70.2%
mul-1-neg70.2%
neg-sub070.2%
associate--r-70.2%
neg-sub070.2%
+-commutative70.2%
sub-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Final simplification57.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -700000.0) (not (<= b 2.2e+35))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -700000.0) || !(b <= 2.2e+35)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-700000.0d0)) .or. (.not. (b <= 2.2d+35))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -700000.0) || !(b <= 2.2e+35)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -700000.0) or not (b <= 2.2e+35): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -700000.0) || !(b <= 2.2e+35)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -700000.0) || ~((b <= 2.2e+35))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -700000.0], N[Not[LessEqual[b, 2.2e+35]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -700000 \lor \neg \left(b \leq 2.2 \cdot 10^{+35}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -7e5Initial program 70.1%
Taylor expanded in b around inf 59.1%
if -7e5 < b < 2.1999999999999999e35Initial program 72.6%
Taylor expanded in a around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
*-commutative50.9%
Simplified50.9%
if 2.1999999999999999e35 < b Initial program 66.8%
sub-neg66.8%
distribute-rgt-in66.8%
distribute-rgt-neg-in66.8%
Applied egg-rr66.8%
Taylor expanded in b around inf 70.2%
*-commutative70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Final simplification57.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -350000.0) (not (<= b 2.2e+33))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -350000.0) || !(b <= 2.2e+33)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-350000.0d0)) .or. (.not. (b <= 2.2d+33))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -350000.0) || !(b <= 2.2e+33)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -350000.0) or not (b <= 2.2e+33): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -350000.0) || !(b <= 2.2e+33)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -350000.0) || ~((b <= 2.2e+33))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -350000.0], N[Not[LessEqual[b, 2.2e+33]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -350000 \lor \neg \left(b \leq 2.2 \cdot 10^{+33}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -3.5e5 or 2.19999999999999994e33 < b Initial program 68.4%
Taylor expanded in b around inf 64.9%
if -3.5e5 < b < 2.19999999999999994e33Initial program 72.6%
Taylor expanded in a around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
*-commutative50.9%
Simplified50.9%
Final simplification57.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.1e-14) (not (<= b 5.5e+44))) (* i (* t b)) (* 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 ((b <= -1.1e-14) || !(b <= 5.5e+44)) {
tmp = i * (t * b);
} 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 ((b <= (-1.1d-14)) .or. (.not. (b <= 5.5d+44))) then
tmp = i * (t * b)
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 ((b <= -1.1e-14) || !(b <= 5.5e+44)) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.1e-14) or not (b <= 5.5e+44): tmp = i * (t * b) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.1e-14) || !(b <= 5.5e+44)) tmp = Float64(i * Float64(t * b)); 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 ((b <= -1.1e-14) || ~((b <= 5.5e+44))) tmp = i * (t * b); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.1e-14], N[Not[LessEqual[b, 5.5e+44]], $MachinePrecision]], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{-14} \lor \neg \left(b \leq 5.5 \cdot 10^{+44}\right):\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -1.1e-14Initial program 72.0%
Taylor expanded in a around -inf 59.7%
Simplified58.0%
Taylor expanded in b around inf 52.2%
mul-1-neg52.2%
distribute-rgt-neg-in52.2%
distribute-lft-neg-in52.2%
div-sub52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in c around 0 36.1%
associate-*r*34.6%
*-commutative34.6%
associate-*r*37.7%
Simplified37.7%
if -1.1e-14 < b < 5.5000000000000001e44Initial program 71.9%
Taylor expanded in a around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in j around inf 27.4%
if 5.5000000000000001e44 < b Initial program 66.3%
sub-neg66.3%
distribute-rgt-in66.3%
distribute-rgt-neg-in66.3%
Applied egg-rr66.3%
Taylor expanded in i around inf 45.2%
associate-*r*45.2%
neg-mul-145.2%
cancel-sign-sub45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in t around inf 36.9%
*-commutative36.9%
Simplified36.9%
Final simplification32.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -8.8e-15) (not (<= b 4.8e+41))) (* i (* t b)) (* 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 ((b <= -8.8e-15) || !(b <= 4.8e+41)) {
tmp = i * (t * b);
} 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 ((b <= (-8.8d-15)) .or. (.not. (b <= 4.8d+41))) then
tmp = i * (t * b)
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 ((b <= -8.8e-15) || !(b <= 4.8e+41)) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -8.8e-15) or not (b <= 4.8e+41): tmp = i * (t * b) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -8.8e-15) || !(b <= 4.8e+41)) tmp = Float64(i * Float64(t * b)); 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 ((b <= -8.8e-15) || ~((b <= 4.8e+41))) tmp = i * (t * b); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -8.8e-15], N[Not[LessEqual[b, 4.8e+41]], $MachinePrecision]], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.8 \cdot 10^{-15} \lor \neg \left(b \leq 4.8 \cdot 10^{+41}\right):\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -8.79999999999999942e-15 or 4.8000000000000003e41 < b Initial program 69.2%
Taylor expanded in a around -inf 63.2%
Simplified62.4%
Taylor expanded in b around inf 55.3%
mul-1-neg55.3%
distribute-rgt-neg-in55.3%
distribute-lft-neg-in55.3%
div-sub56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in c around 0 36.5%
associate-*r*37.3%
*-commutative37.3%
associate-*r*37.3%
Simplified37.3%
if -8.79999999999999942e-15 < b < 4.8000000000000003e41Initial program 71.9%
Taylor expanded in a around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in j around inf 27.4%
Final simplification32.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.02e-13) (not (<= b 5.2e+42))) (* 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 ((b <= -2.02e-13) || !(b <= 5.2e+42)) {
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 ((b <= (-2.02d-13)) .or. (.not. (b <= 5.2d+42))) 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 ((b <= -2.02e-13) || !(b <= 5.2e+42)) {
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 (b <= -2.02e-13) or not (b <= 5.2e+42): 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 ((b <= -2.02e-13) || !(b <= 5.2e+42)) 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 ((b <= -2.02e-13) || ~((b <= 5.2e+42))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.02e-13], N[Not[LessEqual[b, 5.2e+42]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.02 \cdot 10^{-13} \lor \neg \left(b \leq 5.2 \cdot 10^{+42}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -2.02e-13 or 5.1999999999999998e42 < b Initial program 69.2%
Taylor expanded in t around inf 43.8%
distribute-lft-out--43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in a around 0 36.5%
*-commutative36.5%
Simplified36.5%
if -2.02e-13 < b < 5.1999999999999998e42Initial program 71.9%
Taylor expanded in a around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in j around inf 27.4%
Final simplification31.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -5.8e-14) (* i (* t b)) (if (<= b 9e+40) (* a (* c 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 (b <= -5.8e-14) {
tmp = i * (t * b);
} else if (b <= 9e+40) {
tmp = a * (c * j);
} else {
tmp = 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 (b <= (-5.8d-14)) then
tmp = i * (t * b)
else if (b <= 9d+40) then
tmp = a * (c * j)
else
tmp = 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 (b <= -5.8e-14) {
tmp = i * (t * b);
} else if (b <= 9e+40) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5.8e-14: tmp = i * (t * b) elif b <= 9e+40: tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5.8e-14) tmp = Float64(i * Float64(t * b)); elseif (b <= 9e+40) tmp = Float64(a * Float64(c * j)); else tmp = 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 (b <= -5.8e-14) tmp = i * (t * b); elseif (b <= 9e+40) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5.8e-14], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e+40], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{-14}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+40}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -5.8000000000000005e-14Initial program 72.0%
Taylor expanded in a around -inf 59.7%
Simplified58.0%
Taylor expanded in b around inf 52.2%
mul-1-neg52.2%
distribute-rgt-neg-in52.2%
distribute-lft-neg-in52.2%
div-sub52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in c around 0 36.1%
associate-*r*34.6%
*-commutative34.6%
associate-*r*37.7%
Simplified37.7%
if -5.8000000000000005e-14 < b < 9.00000000000000064e40Initial program 71.9%
Taylor expanded in a around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in j around inf 27.4%
if 9.00000000000000064e40 < b Initial program 66.3%
sub-neg66.3%
distribute-rgt-in66.3%
distribute-rgt-neg-in66.3%
Applied egg-rr66.3%
Taylor expanded in j around 0 66.7%
mul-1-neg66.7%
associate-*r*66.8%
distribute-lft-neg-in66.8%
mul-1-neg66.8%
*-commutative66.8%
distribute-rgt-in66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in i around inf 36.9%
*-commutative36.9%
associate-*r*36.9%
*-commutative36.9%
associate-*r*40.2%
Simplified40.2%
Final simplification32.8%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 70.6%
Taylor expanded in a around inf 36.9%
+-commutative36.9%
mul-1-neg36.9%
unsub-neg36.9%
*-commutative36.9%
Simplified36.9%
Taylor expanded in j around inf 19.0%
(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 2024103
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))