
(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 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))
(t_2 (- (* a c) (* y i)))
(t_3 (* j t_2)))
(if (<= (+ t_1 t_3) INFINITY) (fma j t_2 t_1) t_3)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double t_2 = (a * c) - (y * i);
double t_3 = j * t_2;
double tmp;
if ((t_1 + t_3) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(Float64(a * c) - Float64(y * i)) t_3 = Float64(j * t_2) tmp = 0.0 if (Float64(t_1 + t_3) <= Inf) tmp = fma(j, t_2, t_1); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * t$95$2), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + t$95$3), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], t$95$3]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot c - y \cdot i\\
t_3 := j \cdot t\_2\\
\mathbf{if}\;t\_1 + t\_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\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 88.0%
+-commutative88.0%
fma-define88.0%
*-commutative88.0%
*-commutative88.0%
Simplified88.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in t around inf 17.5%
associate--l+17.5%
mul-1-neg17.5%
distribute-rgt-neg-in17.5%
associate--l+17.5%
associate-/l*22.5%
mul-1-neg22.5%
+-commutative22.5%
associate--r+22.5%
Simplified32.5%
Taylor expanded in j around -inf 57.8%
Final simplification83.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (+ (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))) t_1)))
(if (<= t_2 INFINITY) t_2 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 t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1;
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t_1;
}
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));
double t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1;
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1 tmp = 0 if t_2 <= math.inf: tmp = t_2 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))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + t_1) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; 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)); t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1; tmp = 0.0; if (t_2 <= Inf) tmp = t_2; 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]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + t\_1\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\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 88.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in t around inf 17.5%
associate--l+17.5%
mul-1-neg17.5%
distribute-rgt-neg-in17.5%
associate--l+17.5%
associate-/l*22.5%
mul-1-neg22.5%
+-commutative22.5%
associate--r+22.5%
Simplified32.5%
Taylor expanded in j around -inf 57.8%
Final simplification83.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t i) (* z c)))
(t_2 (* b t_1))
(t_3 (* a (- (* c j) (* x t))))
(t_4 (* x (- (* y z) (* t a)))))
(if (<= a -7.8e+217)
t_3
(if (<= a -3.15e+186)
(- t_2 (* x (* z (- (* a (/ t z)) y))))
(if (<= a -2.45e-21)
(+ (* j (- (* a c) (* y i))) t_4)
(if (<= a -7.4e-93)
(+ t_4 (* t (* b (- i (/ (* z c) t)))))
(if (<= a 3.5e-33)
(+ (* y (- (* x z) (* i j))) t_2)
(if (<= a 8.5e+166)
(* a (+ (* x (- (* y (/ z a)) t)) (* b (/ t_1 a))))
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 = (t * i) - (z * c);
double t_2 = b * t_1;
double t_3 = a * ((c * j) - (x * t));
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (a <= -7.8e+217) {
tmp = t_3;
} else if (a <= -3.15e+186) {
tmp = t_2 - (x * (z * ((a * (t / z)) - y)));
} else if (a <= -2.45e-21) {
tmp = (j * ((a * c) - (y * i))) + t_4;
} else if (a <= -7.4e-93) {
tmp = t_4 + (t * (b * (i - ((z * c) / t))));
} else if (a <= 3.5e-33) {
tmp = (y * ((x * z) - (i * j))) + t_2;
} else if (a <= 8.5e+166) {
tmp = a * ((x * ((y * (z / a)) - t)) + (b * (t_1 / a)));
} 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) :: t_4
real(8) :: tmp
t_1 = (t * i) - (z * c)
t_2 = b * t_1
t_3 = a * ((c * j) - (x * t))
t_4 = x * ((y * z) - (t * a))
if (a <= (-7.8d+217)) then
tmp = t_3
else if (a <= (-3.15d+186)) then
tmp = t_2 - (x * (z * ((a * (t / z)) - y)))
else if (a <= (-2.45d-21)) then
tmp = (j * ((a * c) - (y * i))) + t_4
else if (a <= (-7.4d-93)) then
tmp = t_4 + (t * (b * (i - ((z * c) / t))))
else if (a <= 3.5d-33) then
tmp = (y * ((x * z) - (i * j))) + t_2
else if (a <= 8.5d+166) then
tmp = a * ((x * ((y * (z / a)) - t)) + (b * (t_1 / a)))
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 = (t * i) - (z * c);
double t_2 = b * t_1;
double t_3 = a * ((c * j) - (x * t));
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (a <= -7.8e+217) {
tmp = t_3;
} else if (a <= -3.15e+186) {
tmp = t_2 - (x * (z * ((a * (t / z)) - y)));
} else if (a <= -2.45e-21) {
tmp = (j * ((a * c) - (y * i))) + t_4;
} else if (a <= -7.4e-93) {
tmp = t_4 + (t * (b * (i - ((z * c) / t))));
} else if (a <= 3.5e-33) {
tmp = (y * ((x * z) - (i * j))) + t_2;
} else if (a <= 8.5e+166) {
tmp = a * ((x * ((y * (z / a)) - t)) + (b * (t_1 / a)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * i) - (z * c) t_2 = b * t_1 t_3 = a * ((c * j) - (x * t)) t_4 = x * ((y * z) - (t * a)) tmp = 0 if a <= -7.8e+217: tmp = t_3 elif a <= -3.15e+186: tmp = t_2 - (x * (z * ((a * (t / z)) - y))) elif a <= -2.45e-21: tmp = (j * ((a * c) - (y * i))) + t_4 elif a <= -7.4e-93: tmp = t_4 + (t * (b * (i - ((z * c) / t)))) elif a <= 3.5e-33: tmp = (y * ((x * z) - (i * j))) + t_2 elif a <= 8.5e+166: tmp = a * ((x * ((y * (z / a)) - t)) + (b * (t_1 / a))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) - Float64(z * c)) t_2 = Float64(b * t_1) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_4 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (a <= -7.8e+217) tmp = t_3; elseif (a <= -3.15e+186) tmp = Float64(t_2 - Float64(x * Float64(z * Float64(Float64(a * Float64(t / z)) - y)))); elseif (a <= -2.45e-21) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_4); elseif (a <= -7.4e-93) tmp = Float64(t_4 + Float64(t * Float64(b * Float64(i - Float64(Float64(z * c) / t))))); elseif (a <= 3.5e-33) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_2); elseif (a <= 8.5e+166) tmp = Float64(a * Float64(Float64(x * Float64(Float64(y * Float64(z / a)) - t)) + Float64(b * Float64(t_1 / a)))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * i) - (z * c); t_2 = b * t_1; t_3 = a * ((c * j) - (x * t)); t_4 = x * ((y * z) - (t * a)); tmp = 0.0; if (a <= -7.8e+217) tmp = t_3; elseif (a <= -3.15e+186) tmp = t_2 - (x * (z * ((a * (t / z)) - y))); elseif (a <= -2.45e-21) tmp = (j * ((a * c) - (y * i))) + t_4; elseif (a <= -7.4e-93) tmp = t_4 + (t * (b * (i - ((z * c) / t)))); elseif (a <= 3.5e-33) tmp = (y * ((x * z) - (i * j))) + t_2; elseif (a <= 8.5e+166) tmp = a * ((x * ((y * (z / a)) - t)) + (b * (t_1 / a))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.8e+217], t$95$3, If[LessEqual[a, -3.15e+186], N[(t$95$2 - N[(x * N[(z * N[(N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.45e-21], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$4), $MachinePrecision], If[LessEqual[a, -7.4e-93], N[(t$95$4 + N[(t * N[(b * N[(i - N[(N[(z * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-33], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[a, 8.5e+166], N[(a * N[(N[(x * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t$95$1 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot i - z \cdot c\\
t_2 := b \cdot t\_1\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;a \leq -7.8 \cdot 10^{+217}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -3.15 \cdot 10^{+186}:\\
\;\;\;\;t\_2 - x \cdot \left(z \cdot \left(a \cdot \frac{t}{z} - y\right)\right)\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-21}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t\_4\\
\mathbf{elif}\;a \leq -7.4 \cdot 10^{-93}:\\
\;\;\;\;t\_4 + t \cdot \left(b \cdot \left(i - \frac{z \cdot c}{t}\right)\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-33}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_2\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+166}:\\
\;\;\;\;a \cdot \left(x \cdot \left(y \cdot \frac{z}{a} - t\right) + b \cdot \frac{t\_1}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -7.79999999999999986e217 or 8.5000000000000001e166 < a Initial program 56.3%
Taylor expanded in a around inf 81.5%
+-commutative81.5%
mul-1-neg81.5%
unsub-neg81.5%
*-commutative81.5%
Simplified81.5%
if -7.79999999999999986e217 < a < -3.15e186Initial program 74.9%
Taylor expanded in j around 0 91.5%
Taylor expanded in z around inf 99.9%
mul-1-neg99.9%
unsub-neg99.9%
associate-/l*100.0%
Simplified100.0%
if -3.15e186 < a < -2.4500000000000001e-21Initial program 76.3%
Taylor expanded in b around 0 74.5%
if -2.4500000000000001e-21 < a < -7.40000000000000005e-93Initial program 71.7%
Taylor expanded in j around 0 86.0%
Taylor expanded in t around inf 92.7%
+-commutative92.7%
associate-/l*92.8%
mul-1-neg92.8%
distribute-rgt-neg-in92.8%
distribute-lft-out92.8%
*-commutative92.8%
Simplified92.8%
if -7.40000000000000005e-93 < a < 3.4999999999999999e-33Initial program 80.3%
Taylor expanded in a around 0 75.7%
Simplified76.6%
if 3.4999999999999999e-33 < a < 8.5000000000000001e166Initial program 78.8%
Taylor expanded in j around 0 71.7%
Taylor expanded in a around inf 74.3%
mul-1-neg74.3%
distribute-lft-neg-out74.3%
+-commutative74.3%
associate-/l*76.9%
*-commutative76.9%
distribute-lft-out76.9%
sub-neg76.9%
associate-/l*76.9%
associate-/l*79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Final simplification79.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -3.45e-43)
t_3
(if (<= i 3.05e-232)
t_2
(if (<= i 2.5e-67)
t_1
(if (<= i 1800000000.0)
(* c (- (* a j) (* z b)))
(if (<= i 2e+16)
t_1
(if (<= i 4.4e+92)
t_2
(if (<= i 2.4e+125) (* (* x t) (- (* y (/ z t)) a)) 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 * ((y * z) - (t * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -3.45e-43) {
tmp = t_3;
} else if (i <= 3.05e-232) {
tmp = t_2;
} else if (i <= 2.5e-67) {
tmp = t_1;
} else if (i <= 1800000000.0) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2e+16) {
tmp = t_1;
} else if (i <= 4.4e+92) {
tmp = t_2;
} else if (i <= 2.4e+125) {
tmp = (x * t) * ((y * (z / t)) - a);
} 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 * ((y * z) - (t * a))
t_2 = z * ((x * y) - (b * c))
t_3 = i * ((t * b) - (y * j))
if (i <= (-3.45d-43)) then
tmp = t_3
else if (i <= 3.05d-232) then
tmp = t_2
else if (i <= 2.5d-67) then
tmp = t_1
else if (i <= 1800000000.0d0) then
tmp = c * ((a * j) - (z * b))
else if (i <= 2d+16) then
tmp = t_1
else if (i <= 4.4d+92) then
tmp = t_2
else if (i <= 2.4d+125) then
tmp = (x * t) * ((y * (z / t)) - a)
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 * ((y * z) - (t * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -3.45e-43) {
tmp = t_3;
} else if (i <= 3.05e-232) {
tmp = t_2;
} else if (i <= 2.5e-67) {
tmp = t_1;
} else if (i <= 1800000000.0) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2e+16) {
tmp = t_1;
} else if (i <= 4.4e+92) {
tmp = t_2;
} else if (i <= 2.4e+125) {
tmp = (x * t) * ((y * (z / t)) - a);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = z * ((x * y) - (b * c)) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -3.45e-43: tmp = t_3 elif i <= 3.05e-232: tmp = t_2 elif i <= 2.5e-67: tmp = t_1 elif i <= 1800000000.0: tmp = c * ((a * j) - (z * b)) elif i <= 2e+16: tmp = t_1 elif i <= 4.4e+92: tmp = t_2 elif i <= 2.4e+125: tmp = (x * t) * ((y * (z / t)) - a) else: tmp = t_3 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(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -3.45e-43) tmp = t_3; elseif (i <= 3.05e-232) tmp = t_2; elseif (i <= 2.5e-67) tmp = t_1; elseif (i <= 1800000000.0) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 2e+16) tmp = t_1; elseif (i <= 4.4e+92) tmp = t_2; elseif (i <= 2.4e+125) tmp = Float64(Float64(x * t) * Float64(Float64(y * Float64(z / t)) - a)); else tmp = t_3; 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 = z * ((x * y) - (b * c)); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -3.45e-43) tmp = t_3; elseif (i <= 3.05e-232) tmp = t_2; elseif (i <= 2.5e-67) tmp = t_1; elseif (i <= 1800000000.0) tmp = c * ((a * j) - (z * b)); elseif (i <= 2e+16) tmp = t_1; elseif (i <= 4.4e+92) tmp = t_2; elseif (i <= 2.4e+125) tmp = (x * t) * ((y * (z / t)) - a); 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[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.45e-43], t$95$3, If[LessEqual[i, 3.05e-232], t$95$2, If[LessEqual[i, 2.5e-67], t$95$1, If[LessEqual[i, 1800000000.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e+16], t$95$1, If[LessEqual[i, 4.4e+92], t$95$2, If[LessEqual[i, 2.4e+125], N[(N[(x * t), $MachinePrecision] * N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -3.45 \cdot 10^{-43}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 3.05 \cdot 10^{-232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1800000000:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.4 \cdot 10^{+92}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+125}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(y \cdot \frac{z}{t} - a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -3.44999999999999982e-43 or 2.4e125 < i Initial program 66.9%
Taylor expanded in a around 0 63.4%
Simplified61.7%
Taylor expanded in z around 0 58.1%
mul-1-neg58.1%
distribute-rgt-neg-in58.1%
mul-1-neg58.1%
associate-*r*65.1%
*-commutative65.1%
associate-*r*66.1%
distribute-lft-in72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
*-commutative72.7%
Simplified72.7%
if -3.44999999999999982e-43 < i < 3.0500000000000001e-232 or 2e16 < i < 4.39999999999999984e92Initial program 80.9%
Taylor expanded in z around inf 59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
if 3.0500000000000001e-232 < i < 2.4999999999999999e-67 or 1.8e9 < i < 2e16Initial program 82.7%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
mul-1-neg72.1%
distribute-rgt-neg-in72.1%
associate--l+72.1%
associate-/l*67.8%
mul-1-neg67.8%
+-commutative67.8%
associate--r+67.8%
Simplified70.1%
Taylor expanded in x around inf 51.8%
associate-*r*49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
associate-/l*49.5%
Simplified49.5%
Taylor expanded in t around 0 49.5%
mul-1-neg49.5%
distribute-lft-neg-out49.5%
+-commutative49.5%
*-commutative49.5%
associate-*r*55.7%
distribute-rgt-out62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if 2.4999999999999999e-67 < i < 1.8e9Initial program 72.7%
Taylor expanded in c around inf 82.5%
*-commutative82.5%
Simplified82.5%
if 4.39999999999999984e92 < i < 2.4e125Initial program 61.2%
Taylor expanded in t around inf 70.6%
associate--l+70.6%
mul-1-neg70.6%
distribute-rgt-neg-in70.6%
associate--l+70.6%
associate-/l*60.6%
mul-1-neg60.6%
+-commutative60.6%
associate--r+60.6%
Simplified50.6%
Taylor expanded in x around inf 70.7%
associate-*r*70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
associate-/l*70.7%
Simplified70.7%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -8.2e-43)
t_3
(if (<= i 4.3e-232)
t_2
(if (<= i 2.2e-67)
t_1
(if (<= i 7400000.0)
(* c (- (* a j) (* z b)))
(if (<= i 3.7e+18)
t_1
(if (<= i 2.45e+82)
t_2
(if (<= i 1.75e+127) (* t (- (* b i) (* x a))) 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 * ((y * z) - (t * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.2e-43) {
tmp = t_3;
} else if (i <= 4.3e-232) {
tmp = t_2;
} else if (i <= 2.2e-67) {
tmp = t_1;
} else if (i <= 7400000.0) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 3.7e+18) {
tmp = t_1;
} else if (i <= 2.45e+82) {
tmp = t_2;
} else if (i <= 1.75e+127) {
tmp = t * ((b * i) - (x * a));
} 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 * ((y * z) - (t * a))
t_2 = z * ((x * y) - (b * c))
t_3 = i * ((t * b) - (y * j))
if (i <= (-8.2d-43)) then
tmp = t_3
else if (i <= 4.3d-232) then
tmp = t_2
else if (i <= 2.2d-67) then
tmp = t_1
else if (i <= 7400000.0d0) then
tmp = c * ((a * j) - (z * b))
else if (i <= 3.7d+18) then
tmp = t_1
else if (i <= 2.45d+82) then
tmp = t_2
else if (i <= 1.75d+127) then
tmp = t * ((b * i) - (x * a))
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 * ((y * z) - (t * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.2e-43) {
tmp = t_3;
} else if (i <= 4.3e-232) {
tmp = t_2;
} else if (i <= 2.2e-67) {
tmp = t_1;
} else if (i <= 7400000.0) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 3.7e+18) {
tmp = t_1;
} else if (i <= 2.45e+82) {
tmp = t_2;
} else if (i <= 1.75e+127) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = z * ((x * y) - (b * c)) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -8.2e-43: tmp = t_3 elif i <= 4.3e-232: tmp = t_2 elif i <= 2.2e-67: tmp = t_1 elif i <= 7400000.0: tmp = c * ((a * j) - (z * b)) elif i <= 3.7e+18: tmp = t_1 elif i <= 2.45e+82: tmp = t_2 elif i <= 1.75e+127: tmp = t * ((b * i) - (x * a)) else: tmp = t_3 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(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -8.2e-43) tmp = t_3; elseif (i <= 4.3e-232) tmp = t_2; elseif (i <= 2.2e-67) tmp = t_1; elseif (i <= 7400000.0) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 3.7e+18) tmp = t_1; elseif (i <= 2.45e+82) tmp = t_2; elseif (i <= 1.75e+127) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_3; 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 = z * ((x * y) - (b * c)); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -8.2e-43) tmp = t_3; elseif (i <= 4.3e-232) tmp = t_2; elseif (i <= 2.2e-67) tmp = t_1; elseif (i <= 7400000.0) tmp = c * ((a * j) - (z * b)); elseif (i <= 3.7e+18) tmp = t_1; elseif (i <= 2.45e+82) tmp = t_2; elseif (i <= 1.75e+127) tmp = t * ((b * i) - (x * a)); 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[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.2e-43], t$95$3, If[LessEqual[i, 4.3e-232], t$95$2, If[LessEqual[i, 2.2e-67], t$95$1, If[LessEqual[i, 7400000.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.7e+18], t$95$1, If[LessEqual[i, 2.45e+82], t$95$2, If[LessEqual[i, 1.75e+127], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -8.2 \cdot 10^{-43}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{-232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.2 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7400000:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.45 \cdot 10^{+82}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{+127}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -8.1999999999999996e-43 or 1.74999999999999989e127 < i Initial program 66.9%
Taylor expanded in a around 0 63.4%
Simplified61.7%
Taylor expanded in z around 0 58.1%
mul-1-neg58.1%
distribute-rgt-neg-in58.1%
mul-1-neg58.1%
associate-*r*65.1%
*-commutative65.1%
associate-*r*66.1%
distribute-lft-in72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
*-commutative72.7%
Simplified72.7%
if -8.1999999999999996e-43 < i < 4.2999999999999997e-232 or 3.7e18 < i < 2.45e82Initial program 81.9%
Taylor expanded in z around inf 59.3%
*-commutative59.3%
*-commutative59.3%
Simplified59.3%
if 4.2999999999999997e-232 < i < 2.2000000000000001e-67 or 7.4e6 < i < 3.7e18Initial program 82.7%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
mul-1-neg72.1%
distribute-rgt-neg-in72.1%
associate--l+72.1%
associate-/l*67.8%
mul-1-neg67.8%
+-commutative67.8%
associate--r+67.8%
Simplified70.1%
Taylor expanded in x around inf 51.8%
associate-*r*49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
associate-/l*49.5%
Simplified49.5%
Taylor expanded in t around 0 49.5%
mul-1-neg49.5%
distribute-lft-neg-out49.5%
+-commutative49.5%
*-commutative49.5%
associate-*r*55.7%
distribute-rgt-out62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if 2.2000000000000001e-67 < i < 7.4e6Initial program 72.7%
Taylor expanded in c around inf 82.5%
*-commutative82.5%
Simplified82.5%
if 2.45e82 < i < 1.74999999999999989e127Initial program 55.7%
Taylor expanded in t around inf 73.1%
distribute-lft-out--73.1%
*-commutative73.1%
Simplified73.1%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -3.45e-43)
t_3
(if (<= i 5e-231)
t_2
(if (<= i 4.2e-67)
t_1
(if (<= i 14500000000.0)
(* c (- (* a j) (* z b)))
(if (<= i 2.5e+16)
t_1
(if (<= i 3.9e+89)
t_2
(if (<= i 2.3e+126) (* a (- (* c j) (* x t))) 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 * ((y * z) - (t * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -3.45e-43) {
tmp = t_3;
} else if (i <= 5e-231) {
tmp = t_2;
} else if (i <= 4.2e-67) {
tmp = t_1;
} else if (i <= 14500000000.0) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2.5e+16) {
tmp = t_1;
} else if (i <= 3.9e+89) {
tmp = t_2;
} else if (i <= 2.3e+126) {
tmp = a * ((c * j) - (x * t));
} 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 * ((y * z) - (t * a))
t_2 = z * ((x * y) - (b * c))
t_3 = i * ((t * b) - (y * j))
if (i <= (-3.45d-43)) then
tmp = t_3
else if (i <= 5d-231) then
tmp = t_2
else if (i <= 4.2d-67) then
tmp = t_1
else if (i <= 14500000000.0d0) then
tmp = c * ((a * j) - (z * b))
else if (i <= 2.5d+16) then
tmp = t_1
else if (i <= 3.9d+89) then
tmp = t_2
else if (i <= 2.3d+126) then
tmp = a * ((c * j) - (x * t))
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 * ((y * z) - (t * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -3.45e-43) {
tmp = t_3;
} else if (i <= 5e-231) {
tmp = t_2;
} else if (i <= 4.2e-67) {
tmp = t_1;
} else if (i <= 14500000000.0) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2.5e+16) {
tmp = t_1;
} else if (i <= 3.9e+89) {
tmp = t_2;
} else if (i <= 2.3e+126) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = z * ((x * y) - (b * c)) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -3.45e-43: tmp = t_3 elif i <= 5e-231: tmp = t_2 elif i <= 4.2e-67: tmp = t_1 elif i <= 14500000000.0: tmp = c * ((a * j) - (z * b)) elif i <= 2.5e+16: tmp = t_1 elif i <= 3.9e+89: tmp = t_2 elif i <= 2.3e+126: tmp = a * ((c * j) - (x * t)) else: tmp = t_3 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(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -3.45e-43) tmp = t_3; elseif (i <= 5e-231) tmp = t_2; elseif (i <= 4.2e-67) tmp = t_1; elseif (i <= 14500000000.0) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 2.5e+16) tmp = t_1; elseif (i <= 3.9e+89) tmp = t_2; elseif (i <= 2.3e+126) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_3; 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 = z * ((x * y) - (b * c)); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -3.45e-43) tmp = t_3; elseif (i <= 5e-231) tmp = t_2; elseif (i <= 4.2e-67) tmp = t_1; elseif (i <= 14500000000.0) tmp = c * ((a * j) - (z * b)); elseif (i <= 2.5e+16) tmp = t_1; elseif (i <= 3.9e+89) tmp = t_2; elseif (i <= 2.3e+126) tmp = a * ((c * j) - (x * t)); 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[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.45e-43], t$95$3, If[LessEqual[i, 5e-231], t$95$2, If[LessEqual[i, 4.2e-67], t$95$1, If[LessEqual[i, 14500000000.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.5e+16], t$95$1, If[LessEqual[i, 3.9e+89], t$95$2, If[LessEqual[i, 2.3e+126], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -3.45 \cdot 10^{-43}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 5 \cdot 10^{-231}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 14500000000:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{+89}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+126}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -3.44999999999999982e-43 or 2.3000000000000001e126 < i Initial program 66.9%
Taylor expanded in a around 0 63.4%
Simplified61.7%
Taylor expanded in z around 0 58.1%
mul-1-neg58.1%
distribute-rgt-neg-in58.1%
mul-1-neg58.1%
associate-*r*65.1%
*-commutative65.1%
associate-*r*66.1%
distribute-lft-in72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
*-commutative72.7%
Simplified72.7%
if -3.44999999999999982e-43 < i < 5.00000000000000023e-231 or 2.5e16 < i < 3.90000000000000011e89Initial program 81.9%
Taylor expanded in z around inf 59.3%
*-commutative59.3%
*-commutative59.3%
Simplified59.3%
if 5.00000000000000023e-231 < i < 4.2000000000000003e-67 or 1.45e10 < i < 2.5e16Initial program 82.7%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
mul-1-neg72.1%
distribute-rgt-neg-in72.1%
associate--l+72.1%
associate-/l*67.8%
mul-1-neg67.8%
+-commutative67.8%
associate--r+67.8%
Simplified70.1%
Taylor expanded in x around inf 51.8%
associate-*r*49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
associate-/l*49.5%
Simplified49.5%
Taylor expanded in t around 0 49.5%
mul-1-neg49.5%
distribute-lft-neg-out49.5%
+-commutative49.5%
*-commutative49.5%
associate-*r*55.7%
distribute-rgt-out62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if 4.2000000000000003e-67 < i < 1.45e10Initial program 72.7%
Taylor expanded in c around inf 82.5%
*-commutative82.5%
Simplified82.5%
if 3.90000000000000011e89 < i < 2.3000000000000001e126Initial program 55.7%
Taylor expanded in a around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* a c) (* y i))) t_1))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -1.65e+153)
t_3
(if (<= b -6.5e+137)
t_2
(if (<= b -4.8e+109)
(* b (* t i))
(if (<= b -0.0146)
(- t_1 (* z (* b c)))
(if (<= b 2.15e+155) 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 * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.65e+153) {
tmp = t_3;
} else if (b <= -6.5e+137) {
tmp = t_2;
} else if (b <= -4.8e+109) {
tmp = b * (t * i);
} else if (b <= -0.0146) {
tmp = t_1 - (z * (b * c));
} else if (b <= 2.15e+155) {
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 * ((y * z) - (t * a))
t_2 = (j * ((a * c) - (y * i))) + t_1
t_3 = b * ((t * i) - (z * c))
if (b <= (-1.65d+153)) then
tmp = t_3
else if (b <= (-6.5d+137)) then
tmp = t_2
else if (b <= (-4.8d+109)) then
tmp = b * (t * i)
else if (b <= (-0.0146d0)) then
tmp = t_1 - (z * (b * c))
else if (b <= 2.15d+155) 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 * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.65e+153) {
tmp = t_3;
} else if (b <= -6.5e+137) {
tmp = t_2;
} else if (b <= -4.8e+109) {
tmp = b * (t * i);
} else if (b <= -0.0146) {
tmp = t_1 - (z * (b * c));
} else if (b <= 2.15e+155) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((a * c) - (y * i))) + t_1 t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -1.65e+153: tmp = t_3 elif b <= -6.5e+137: tmp = t_2 elif b <= -4.8e+109: tmp = b * (t * i) elif b <= -0.0146: tmp = t_1 - (z * (b * c)) elif b <= 2.15e+155: 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(y * z) - Float64(t * a))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.65e+153) tmp = t_3; elseif (b <= -6.5e+137) tmp = t_2; elseif (b <= -4.8e+109) tmp = Float64(b * Float64(t * i)); elseif (b <= -0.0146) tmp = Float64(t_1 - Float64(z * Float64(b * c))); elseif (b <= 2.15e+155) 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 * ((y * z) - (t * a)); t_2 = (j * ((a * c) - (y * i))) + t_1; t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -1.65e+153) tmp = t_3; elseif (b <= -6.5e+137) tmp = t_2; elseif (b <= -4.8e+109) tmp = b * (t * i); elseif (b <= -0.0146) tmp = t_1 - (z * (b * c)); elseif (b <= 2.15e+155) 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[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.65e+153], t$95$3, If[LessEqual[b, -6.5e+137], t$95$2, If[LessEqual[b, -4.8e+109], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -0.0146], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.15e+155], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.65 \cdot 10^{+153}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{+137}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{+109}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -0.0146:\\
\;\;\;\;t\_1 - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{+155}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -1.64999999999999997e153 or 2.1500000000000001e155 < b Initial program 71.4%
Taylor expanded in b around inf 78.3%
if -1.64999999999999997e153 < b < -6.5000000000000002e137 or -0.0146000000000000001 < b < 2.1500000000000001e155Initial program 72.4%
Taylor expanded in b around 0 71.9%
if -6.5000000000000002e137 < b < -4.79999999999999975e109Initial program 75.0%
Taylor expanded in t around inf 75.0%
distribute-lft-out--75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in a around 0 100.0%
*-commutative100.0%
Simplified100.0%
if -4.79999999999999975e109 < b < -0.0146000000000000001Initial program 90.2%
Taylor expanded in j around 0 90.4%
Taylor expanded in c around inf 77.4%
*-commutative77.4%
*-commutative77.4%
associate-*r*77.4%
Simplified77.4%
Final simplification74.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* z (* x y))))
(if (<= y -2.9e+180)
t_2
(if (<= y -220000.0)
t_1
(if (<= y -3.35e-286)
(* (* z c) (- b))
(if (<= y 6.8e-140)
(* j (* a c))
(if (<= y 3e-121)
(* i (* t b))
(if (<= y 1.9e-34)
(* a (* c j))
(if (<= y 8.8e+153) 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 = i * (y * -j);
double t_2 = z * (x * y);
double tmp;
if (y <= -2.9e+180) {
tmp = t_2;
} else if (y <= -220000.0) {
tmp = t_1;
} else if (y <= -3.35e-286) {
tmp = (z * c) * -b;
} else if (y <= 6.8e-140) {
tmp = j * (a * c);
} else if (y <= 3e-121) {
tmp = i * (t * b);
} else if (y <= 1.9e-34) {
tmp = a * (c * j);
} else if (y <= 8.8e+153) {
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 = i * (y * -j)
t_2 = z * (x * y)
if (y <= (-2.9d+180)) then
tmp = t_2
else if (y <= (-220000.0d0)) then
tmp = t_1
else if (y <= (-3.35d-286)) then
tmp = (z * c) * -b
else if (y <= 6.8d-140) then
tmp = j * (a * c)
else if (y <= 3d-121) then
tmp = i * (t * b)
else if (y <= 1.9d-34) then
tmp = a * (c * j)
else if (y <= 8.8d+153) 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 = i * (y * -j);
double t_2 = z * (x * y);
double tmp;
if (y <= -2.9e+180) {
tmp = t_2;
} else if (y <= -220000.0) {
tmp = t_1;
} else if (y <= -3.35e-286) {
tmp = (z * c) * -b;
} else if (y <= 6.8e-140) {
tmp = j * (a * c);
} else if (y <= 3e-121) {
tmp = i * (t * b);
} else if (y <= 1.9e-34) {
tmp = a * (c * j);
} else if (y <= 8.8e+153) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = z * (x * y) tmp = 0 if y <= -2.9e+180: tmp = t_2 elif y <= -220000.0: tmp = t_1 elif y <= -3.35e-286: tmp = (z * c) * -b elif y <= 6.8e-140: tmp = j * (a * c) elif y <= 3e-121: tmp = i * (t * b) elif y <= 1.9e-34: tmp = a * (c * j) elif y <= 8.8e+153: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -2.9e+180) tmp = t_2; elseif (y <= -220000.0) tmp = t_1; elseif (y <= -3.35e-286) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (y <= 6.8e-140) tmp = Float64(j * Float64(a * c)); elseif (y <= 3e-121) tmp = Float64(i * Float64(t * b)); elseif (y <= 1.9e-34) tmp = Float64(a * Float64(c * j)); elseif (y <= 8.8e+153) 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 = i * (y * -j); t_2 = z * (x * y); tmp = 0.0; if (y <= -2.9e+180) tmp = t_2; elseif (y <= -220000.0) tmp = t_1; elseif (y <= -3.35e-286) tmp = (z * c) * -b; elseif (y <= 6.8e-140) tmp = j * (a * c); elseif (y <= 3e-121) tmp = i * (t * b); elseif (y <= 1.9e-34) tmp = a * (c * j); elseif (y <= 8.8e+153) 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[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.9e+180], t$95$2, If[LessEqual[y, -220000.0], t$95$1, If[LessEqual[y, -3.35e-286], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[y, 6.8e-140], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e-121], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-34], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.8e+153], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{+180}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -220000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.35 \cdot 10^{-286}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-140}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-121}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-34}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.90000000000000007e180 or 8.7999999999999998e153 < y Initial program 68.9%
Taylor expanded in a around 0 65.4%
Simplified81.7%
Taylor expanded in x around inf 49.4%
*-commutative49.4%
*-commutative49.4%
associate-*r*54.5%
Simplified54.5%
if -2.90000000000000007e180 < y < -2.2e5 or 1.9000000000000001e-34 < y < 8.7999999999999998e153Initial program 66.0%
Taylor expanded in y around inf 48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
*-commutative48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around 0 42.3%
associate-*r*42.3%
neg-mul-142.3%
*-commutative42.3%
Simplified42.3%
if -2.2e5 < y < -3.34999999999999998e-286Initial program 84.7%
Taylor expanded in j around 0 74.0%
Taylor expanded in c around inf 39.1%
associate-*r*39.1%
neg-mul-139.1%
*-commutative39.1%
Simplified39.1%
if -3.34999999999999998e-286 < y < 6.80000000000000017e-140Initial program 80.6%
Taylor expanded in a around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in j around inf 40.6%
associate-*r*44.5%
Simplified44.5%
if 6.80000000000000017e-140 < y < 2.9999999999999999e-121Initial program 63.4%
Taylor expanded in t around inf 63.7%
distribute-lft-out--63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in a around 0 39.4%
*-commutative39.4%
associate-*r*63.3%
Simplified63.3%
if 2.9999999999999999e-121 < y < 1.9000000000000001e-34Initial program 87.2%
Taylor expanded in a around inf 55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in j around inf 42.8%
Final simplification45.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -2.65e-46)
t_2
(if (<= i -8.5e-246)
(* c (- (* a j) (* z b)))
(if (<= i 5.4e-199)
t_1
(if (<= i 5.2e-142)
(* x (* y z))
(if (<= i 7.1e-16)
t_1
(if (<= i 8.5e+108) (* b (- (* t i) (* z c))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.65e-46) {
tmp = t_2;
} else if (i <= -8.5e-246) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 5.4e-199) {
tmp = t_1;
} else if (i <= 5.2e-142) {
tmp = x * (y * z);
} else if (i <= 7.1e-16) {
tmp = t_1;
} else if (i <= 8.5e+108) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = i * ((t * b) - (y * j))
if (i <= (-2.65d-46)) then
tmp = t_2
else if (i <= (-8.5d-246)) then
tmp = c * ((a * j) - (z * b))
else if (i <= 5.4d-199) then
tmp = t_1
else if (i <= 5.2d-142) then
tmp = x * (y * z)
else if (i <= 7.1d-16) then
tmp = t_1
else if (i <= 8.5d+108) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.65e-46) {
tmp = t_2;
} else if (i <= -8.5e-246) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 5.4e-199) {
tmp = t_1;
} else if (i <= 5.2e-142) {
tmp = x * (y * z);
} else if (i <= 7.1e-16) {
tmp = t_1;
} else if (i <= 8.5e+108) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.65e-46: tmp = t_2 elif i <= -8.5e-246: tmp = c * ((a * j) - (z * b)) elif i <= 5.4e-199: tmp = t_1 elif i <= 5.2e-142: tmp = x * (y * z) elif i <= 7.1e-16: tmp = t_1 elif i <= 8.5e+108: tmp = b * ((t * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.65e-46) tmp = t_2; elseif (i <= -8.5e-246) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 5.4e-199) tmp = t_1; elseif (i <= 5.2e-142) tmp = Float64(x * Float64(y * z)); elseif (i <= 7.1e-16) tmp = t_1; elseif (i <= 8.5e+108) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.65e-46) tmp = t_2; elseif (i <= -8.5e-246) tmp = c * ((a * j) - (z * b)); elseif (i <= 5.4e-199) tmp = t_1; elseif (i <= 5.2e-142) tmp = x * (y * z); elseif (i <= 7.1e-16) tmp = t_1; elseif (i <= 8.5e+108) tmp = b * ((t * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.65e-46], t$95$2, If[LessEqual[i, -8.5e-246], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.4e-199], t$95$1, If[LessEqual[i, 5.2e-142], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.1e-16], t$95$1, If[LessEqual[i, 8.5e+108], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.65 \cdot 10^{-46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 5.4 \cdot 10^{-199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{-142}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 7.1 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{+108}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.65000000000000009e-46 or 8.50000000000000016e108 < i Initial program 66.2%
Taylor expanded in a around 0 62.8%
Simplified61.1%
Taylor expanded in z around 0 56.9%
mul-1-neg56.9%
distribute-rgt-neg-in56.9%
mul-1-neg56.9%
associate-*r*63.5%
*-commutative63.5%
associate-*r*64.5%
distribute-lft-in70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
Simplified70.7%
if -2.65000000000000009e-46 < i < -8.4999999999999998e-246Initial program 87.2%
Taylor expanded in c around inf 67.4%
*-commutative67.4%
Simplified67.4%
if -8.4999999999999998e-246 < i < 5.39999999999999979e-199 or 5.1999999999999999e-142 < i < 7.1e-16Initial program 76.7%
Taylor expanded in a around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
if 5.39999999999999979e-199 < i < 5.1999999999999999e-142Initial program 88.8%
Taylor expanded in a around 0 56.0%
Simplified72.7%
Taylor expanded in x around inf 52.1%
*-commutative52.1%
Simplified52.1%
if 7.1e-16 < i < 8.50000000000000016e108Initial program 78.5%
Taylor expanded in b around inf 62.3%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -7e+169)
t_1
(if (or (<= b -2.15e+46) (and (not (<= b -5e-18)) (<= b 1.95e+155)))
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(+ (* y (- (* x z) (* i j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e+169) {
tmp = t_1;
} else if ((b <= -2.15e+46) || (!(b <= -5e-18) && (b <= 1.95e+155))) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (y * ((x * z) - (i * j))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-7d+169)) then
tmp = t_1
else if ((b <= (-2.15d+46)) .or. (.not. (b <= (-5d-18))) .and. (b <= 1.95d+155)) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (y * ((x * z) - (i * j))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e+169) {
tmp = t_1;
} else if ((b <= -2.15e+46) || (!(b <= -5e-18) && (b <= 1.95e+155))) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (y * ((x * z) - (i * j))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -7e+169: tmp = t_1 elif (b <= -2.15e+46) or (not (b <= -5e-18) and (b <= 1.95e+155)): tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (y * ((x * z) - (i * j))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -7e+169) tmp = t_1; elseif ((b <= -2.15e+46) || (!(b <= -5e-18) && (b <= 1.95e+155))) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -7e+169) tmp = t_1; elseif ((b <= -2.15e+46) || (~((b <= -5e-18)) && (b <= 1.95e+155))) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (y * ((x * z) - (i * j))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7e+169], t$95$1, If[Or[LessEqual[b, -2.15e+46], And[N[Not[LessEqual[b, -5e-18]], $MachinePrecision], LessEqual[b, 1.95e+155]]], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7 \cdot 10^{+169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.15 \cdot 10^{+46} \lor \neg \left(b \leq -5 \cdot 10^{-18}\right) \land b \leq 1.95 \cdot 10^{+155}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
\end{array}
\end{array}
if b < -7.00000000000000038e169Initial program 71.3%
Taylor expanded in b around inf 85.7%
if -7.00000000000000038e169 < b < -2.15000000000000002e46 or -5.00000000000000036e-18 < b < 1.9499999999999999e155Initial program 74.5%
Taylor expanded in b around 0 72.8%
if -2.15000000000000002e46 < b < -5.00000000000000036e-18 or 1.9499999999999999e155 < b Initial program 75.1%
Taylor expanded in a around 0 76.7%
Simplified76.8%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* a c) (* y i))) t_1))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -6.5e+153)
t_3
(if (<= b -1.15e+138)
t_2
(if (<= b -0.0055)
(+ t_1 t_3)
(if (<= b 1.95e+155) t_2 (+ (* y (- (* x z) (* i j))) 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 * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6.5e+153) {
tmp = t_3;
} else if (b <= -1.15e+138) {
tmp = t_2;
} else if (b <= -0.0055) {
tmp = t_1 + t_3;
} else if (b <= 1.95e+155) {
tmp = t_2;
} else {
tmp = (y * ((x * z) - (i * j))) + 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 * ((y * z) - (t * a))
t_2 = (j * ((a * c) - (y * i))) + t_1
t_3 = b * ((t * i) - (z * c))
if (b <= (-6.5d+153)) then
tmp = t_3
else if (b <= (-1.15d+138)) then
tmp = t_2
else if (b <= (-0.0055d0)) then
tmp = t_1 + t_3
else if (b <= 1.95d+155) then
tmp = t_2
else
tmp = (y * ((x * z) - (i * j))) + 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 * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6.5e+153) {
tmp = t_3;
} else if (b <= -1.15e+138) {
tmp = t_2;
} else if (b <= -0.0055) {
tmp = t_1 + t_3;
} else if (b <= 1.95e+155) {
tmp = t_2;
} else {
tmp = (y * ((x * z) - (i * j))) + t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((a * c) - (y * i))) + t_1 t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -6.5e+153: tmp = t_3 elif b <= -1.15e+138: tmp = t_2 elif b <= -0.0055: tmp = t_1 + t_3 elif b <= 1.95e+155: tmp = t_2 else: tmp = (y * ((x * z) - (i * j))) + t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -6.5e+153) tmp = t_3; elseif (b <= -1.15e+138) tmp = t_2; elseif (b <= -0.0055) tmp = Float64(t_1 + t_3); elseif (b <= 1.95e+155) tmp = t_2; else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_3); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (j * ((a * c) - (y * i))) + t_1; t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -6.5e+153) tmp = t_3; elseif (b <= -1.15e+138) tmp = t_2; elseif (b <= -0.0055) tmp = t_1 + t_3; elseif (b <= 1.95e+155) tmp = t_2; else tmp = (y * ((x * z) - (i * j))) + 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[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+153], t$95$3, If[LessEqual[b, -1.15e+138], t$95$2, If[LessEqual[b, -0.0055], N[(t$95$1 + t$95$3), $MachinePrecision], If[LessEqual[b, 1.95e+155], t$95$2, N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+153}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+138}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -0.0055:\\
\;\;\;\;t\_1 + t\_3\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+155}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_3\\
\end{array}
\end{array}
if b < -6.49999999999999972e153Initial program 71.3%
Taylor expanded in b around inf 85.7%
if -6.49999999999999972e153 < b < -1.15000000000000004e138 or -0.0054999999999999997 < b < 1.9499999999999999e155Initial program 72.4%
Taylor expanded in b around 0 71.9%
if -1.15000000000000004e138 < b < -0.0054999999999999997Initial program 88.5%
Taylor expanded in j around 0 88.6%
if 1.9499999999999999e155 < b Initial program 71.4%
Taylor expanded in a around 0 73.7%
Simplified73.8%
Final simplification75.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))))
(if (<= i -3.5e-46)
t_1
(if (<= i -3.2e-291)
(* z (* c (- b)))
(if (<= i 2.25e-141)
(* y (* x z))
(if (<= i 1.02e-15)
(* a (* c j))
(if (<= i 1.08e+101)
(* (* z c) (- b))
(if (<= i 1.48e+264) t_1 (- (* y (* i j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (i <= -3.5e-46) {
tmp = t_1;
} else if (i <= -3.2e-291) {
tmp = z * (c * -b);
} else if (i <= 2.25e-141) {
tmp = y * (x * z);
} else if (i <= 1.02e-15) {
tmp = a * (c * j);
} else if (i <= 1.08e+101) {
tmp = (z * c) * -b;
} else if (i <= 1.48e+264) {
tmp = t_1;
} else {
tmp = -(y * (i * 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) :: t_1
real(8) :: tmp
t_1 = i * (t * b)
if (i <= (-3.5d-46)) then
tmp = t_1
else if (i <= (-3.2d-291)) then
tmp = z * (c * -b)
else if (i <= 2.25d-141) then
tmp = y * (x * z)
else if (i <= 1.02d-15) then
tmp = a * (c * j)
else if (i <= 1.08d+101) then
tmp = (z * c) * -b
else if (i <= 1.48d+264) then
tmp = t_1
else
tmp = -(y * (i * 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 t_1 = i * (t * b);
double tmp;
if (i <= -3.5e-46) {
tmp = t_1;
} else if (i <= -3.2e-291) {
tmp = z * (c * -b);
} else if (i <= 2.25e-141) {
tmp = y * (x * z);
} else if (i <= 1.02e-15) {
tmp = a * (c * j);
} else if (i <= 1.08e+101) {
tmp = (z * c) * -b;
} else if (i <= 1.48e+264) {
tmp = t_1;
} else {
tmp = -(y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if i <= -3.5e-46: tmp = t_1 elif i <= -3.2e-291: tmp = z * (c * -b) elif i <= 2.25e-141: tmp = y * (x * z) elif i <= 1.02e-15: tmp = a * (c * j) elif i <= 1.08e+101: tmp = (z * c) * -b elif i <= 1.48e+264: tmp = t_1 else: tmp = -(y * (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -3.5e-46) tmp = t_1; elseif (i <= -3.2e-291) tmp = Float64(z * Float64(c * Float64(-b))); elseif (i <= 2.25e-141) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.02e-15) tmp = Float64(a * Float64(c * j)); elseif (i <= 1.08e+101) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (i <= 1.48e+264) tmp = t_1; else tmp = Float64(-Float64(y * Float64(i * j))); 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 (i <= -3.5e-46) tmp = t_1; elseif (i <= -3.2e-291) tmp = z * (c * -b); elseif (i <= 2.25e-141) tmp = y * (x * z); elseif (i <= 1.02e-15) tmp = a * (c * j); elseif (i <= 1.08e+101) tmp = (z * c) * -b; elseif (i <= 1.48e+264) tmp = t_1; else tmp = -(y * (i * j)); 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[i, -3.5e-46], t$95$1, If[LessEqual[i, -3.2e-291], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.25e-141], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.02e-15], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.08e+101], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[i, 1.48e+264], t$95$1, (-N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision])]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{-46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -3.2 \cdot 10^{-291}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 2.25 \cdot 10^{-141}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.02 \cdot 10^{-15}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 1.08 \cdot 10^{+101}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;i \leq 1.48 \cdot 10^{+264}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;-y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if i < -3.5000000000000002e-46 or 1.07999999999999999e101 < i < 1.4800000000000001e264Initial program 70.2%
Taylor expanded in t around inf 50.4%
distribute-lft-out--50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in a around 0 38.6%
*-commutative38.6%
associate-*r*42.3%
Simplified42.3%
if -3.5000000000000002e-46 < i < -3.2000000000000002e-291Initial program 81.9%
Taylor expanded in j around 0 64.0%
Taylor expanded in c around inf 34.9%
mul-1-neg34.9%
*-commutative34.9%
*-commutative34.9%
associate-*r*37.0%
*-commutative37.0%
distribute-rgt-neg-out37.0%
*-commutative37.0%
distribute-lft-neg-in37.0%
Simplified37.0%
if -3.2000000000000002e-291 < i < 2.25e-141Initial program 86.1%
Taylor expanded in y around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in z around inf 39.9%
if 2.25e-141 < i < 1.02e-15Initial program 70.6%
Taylor expanded in a around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in j around inf 49.1%
if 1.02e-15 < i < 1.07999999999999999e101Initial program 76.4%
Taylor expanded in j around 0 81.5%
Taylor expanded in c around inf 45.2%
associate-*r*45.2%
neg-mul-145.2%
*-commutative45.2%
Simplified45.2%
if 1.4800000000000001e264 < i Initial program 30.7%
Taylor expanded in y around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in z around 0 90.2%
mul-1-neg90.2%
*-commutative90.2%
distribute-rgt-neg-in90.2%
Simplified90.2%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* c (- b)))) (t_2 (* i (* t b))))
(if (<= i -3.4e-46)
t_2
(if (<= i -4.4e-291)
t_1
(if (<= i 2.4e-141)
(* y (* x z))
(if (<= i 5.2e-16)
(* a (* c j))
(if (<= i 1.24e+98)
t_1
(if (<= i 1.76e+264) t_2 (- (* y (* i j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (c * -b);
double t_2 = i * (t * b);
double tmp;
if (i <= -3.4e-46) {
tmp = t_2;
} else if (i <= -4.4e-291) {
tmp = t_1;
} else if (i <= 2.4e-141) {
tmp = y * (x * z);
} else if (i <= 5.2e-16) {
tmp = a * (c * j);
} else if (i <= 1.24e+98) {
tmp = t_1;
} else if (i <= 1.76e+264) {
tmp = t_2;
} else {
tmp = -(y * (i * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (c * -b)
t_2 = i * (t * b)
if (i <= (-3.4d-46)) then
tmp = t_2
else if (i <= (-4.4d-291)) then
tmp = t_1
else if (i <= 2.4d-141) then
tmp = y * (x * z)
else if (i <= 5.2d-16) then
tmp = a * (c * j)
else if (i <= 1.24d+98) then
tmp = t_1
else if (i <= 1.76d+264) then
tmp = t_2
else
tmp = -(y * (i * 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 t_1 = z * (c * -b);
double t_2 = i * (t * b);
double tmp;
if (i <= -3.4e-46) {
tmp = t_2;
} else if (i <= -4.4e-291) {
tmp = t_1;
} else if (i <= 2.4e-141) {
tmp = y * (x * z);
} else if (i <= 5.2e-16) {
tmp = a * (c * j);
} else if (i <= 1.24e+98) {
tmp = t_1;
} else if (i <= 1.76e+264) {
tmp = t_2;
} else {
tmp = -(y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (c * -b) t_2 = i * (t * b) tmp = 0 if i <= -3.4e-46: tmp = t_2 elif i <= -4.4e-291: tmp = t_1 elif i <= 2.4e-141: tmp = y * (x * z) elif i <= 5.2e-16: tmp = a * (c * j) elif i <= 1.24e+98: tmp = t_1 elif i <= 1.76e+264: tmp = t_2 else: tmp = -(y * (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(c * Float64(-b))) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -3.4e-46) tmp = t_2; elseif (i <= -4.4e-291) tmp = t_1; elseif (i <= 2.4e-141) tmp = Float64(y * Float64(x * z)); elseif (i <= 5.2e-16) tmp = Float64(a * Float64(c * j)); elseif (i <= 1.24e+98) tmp = t_1; elseif (i <= 1.76e+264) tmp = t_2; else tmp = Float64(-Float64(y * Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (c * -b); t_2 = i * (t * b); tmp = 0.0; if (i <= -3.4e-46) tmp = t_2; elseif (i <= -4.4e-291) tmp = t_1; elseif (i <= 2.4e-141) tmp = y * (x * z); elseif (i <= 5.2e-16) tmp = a * (c * j); elseif (i <= 1.24e+98) tmp = t_1; elseif (i <= 1.76e+264) tmp = t_2; else tmp = -(y * (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.4e-46], t$95$2, If[LessEqual[i, -4.4e-291], t$95$1, If[LessEqual[i, 2.4e-141], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e-16], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.24e+98], t$95$1, If[LessEqual[i, 1.76e+264], t$95$2, (-N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision])]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(c \cdot \left(-b\right)\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -3.4 \cdot 10^{-46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-141}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{-16}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 1.24 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.76 \cdot 10^{+264}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;-y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if i < -3.39999999999999996e-46 or 1.23999999999999992e98 < i < 1.76e264Initial program 70.2%
Taylor expanded in t around inf 50.4%
distribute-lft-out--50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in a around 0 38.6%
*-commutative38.6%
associate-*r*42.3%
Simplified42.3%
if -3.39999999999999996e-46 < i < -4.40000000000000005e-291 or 5.1999999999999997e-16 < i < 1.23999999999999992e98Initial program 80.1%
Taylor expanded in j around 0 69.7%
Taylor expanded in c around inf 38.3%
mul-1-neg38.3%
*-commutative38.3%
*-commutative38.3%
associate-*r*39.7%
*-commutative39.7%
distribute-rgt-neg-out39.7%
*-commutative39.7%
distribute-lft-neg-in39.7%
Simplified39.7%
if -4.40000000000000005e-291 < i < 2.4000000000000001e-141Initial program 86.1%
Taylor expanded in y around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in z around inf 39.9%
if 2.4000000000000001e-141 < i < 5.1999999999999997e-16Initial program 70.6%
Taylor expanded in a around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in j around inf 49.1%
if 1.76e264 < i Initial program 30.7%
Taylor expanded in y around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in z around 0 90.2%
mul-1-neg90.2%
*-commutative90.2%
distribute-rgt-neg-in90.2%
Simplified90.2%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (- (* x z) (* i j))) (* t (* b i))))
(t_2 (* a (- (* c j) (* x t)))))
(if (<= a -5.2e+107)
t_2
(if (<= a -9.2e-70)
t_1
(if (<= a -2.7e-88)
(* c (- (* a j) (* z b)))
(if (<= a 5.5e-20)
t_1
(if (<= a 2.5e+62) (* b (* z (- (* i (/ t z)) c))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) + (t * (b * i));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.2e+107) {
tmp = t_2;
} else if (a <= -9.2e-70) {
tmp = t_1;
} else if (a <= -2.7e-88) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 5.5e-20) {
tmp = t_1;
} else if (a <= 2.5e+62) {
tmp = b * (z * ((i * (t / z)) - c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) + (t * (b * i))
t_2 = a * ((c * j) - (x * t))
if (a <= (-5.2d+107)) then
tmp = t_2
else if (a <= (-9.2d-70)) then
tmp = t_1
else if (a <= (-2.7d-88)) then
tmp = c * ((a * j) - (z * b))
else if (a <= 5.5d-20) then
tmp = t_1
else if (a <= 2.5d+62) then
tmp = b * (z * ((i * (t / z)) - c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) + (t * (b * i));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.2e+107) {
tmp = t_2;
} else if (a <= -9.2e-70) {
tmp = t_1;
} else if (a <= -2.7e-88) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 5.5e-20) {
tmp = t_1;
} else if (a <= 2.5e+62) {
tmp = b * (z * ((i * (t / z)) - c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) + (t * (b * i)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -5.2e+107: tmp = t_2 elif a <= -9.2e-70: tmp = t_1 elif a <= -2.7e-88: tmp = c * ((a * j) - (z * b)) elif a <= 5.5e-20: tmp = t_1 elif a <= 2.5e+62: tmp = b * (z * ((i * (t / z)) - c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(b * i))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -5.2e+107) tmp = t_2; elseif (a <= -9.2e-70) tmp = t_1; elseif (a <= -2.7e-88) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= 5.5e-20) tmp = t_1; elseif (a <= 2.5e+62) tmp = Float64(b * Float64(z * Float64(Float64(i * Float64(t / z)) - c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) + (t * (b * i)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -5.2e+107) tmp = t_2; elseif (a <= -9.2e-70) tmp = t_1; elseif (a <= -2.7e-88) tmp = c * ((a * j) - (z * b)); elseif (a <= 5.5e-20) tmp = t_1; elseif (a <= 2.5e+62) tmp = b * (z * ((i * (t / z)) - c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.2e+107], t$95$2, If[LessEqual[a, -9.2e-70], t$95$1, If[LessEqual[a, -2.7e-88], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e-20], t$95$1, If[LessEqual[a, 2.5e+62], N[(b * N[(z * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(b \cdot i\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -5.2 \cdot 10^{+107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-88}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+62}:\\
\;\;\;\;b \cdot \left(z \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -5.2000000000000002e107 or 2.50000000000000014e62 < a Initial program 64.8%
Taylor expanded in a around inf 71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
*-commutative71.3%
Simplified71.3%
if -5.2000000000000002e107 < a < -9.20000000000000002e-70 or -2.69999999999999995e-88 < a < 5.4999999999999996e-20Initial program 79.7%
Taylor expanded in a around 0 69.8%
Simplified72.4%
Taylor expanded in i around inf 63.7%
associate-*r*66.3%
*-commutative66.3%
Simplified66.3%
if -9.20000000000000002e-70 < a < -2.69999999999999995e-88Initial program 60.0%
Taylor expanded in c around inf 100.0%
*-commutative100.0%
Simplified100.0%
if 5.4999999999999996e-20 < a < 2.50000000000000014e62Initial program 78.1%
Taylor expanded in j around 0 74.4%
Taylor expanded in b around inf 70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in z around inf 70.2%
associate-/l*74.4%
Simplified74.4%
Final simplification69.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* z (* b c))))
(t_2 (* i (- (* t b) (* y j)))))
(if (<= i -1.5e-43)
t_2
(if (<= i 2.8e-46)
t_1
(if (<= i 4.2e-16) (* j (* a c)) (if (<= i 2.05e+98) 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))) - (z * (b * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.5e-43) {
tmp = t_2;
} else if (i <= 2.8e-46) {
tmp = t_1;
} else if (i <= 4.2e-16) {
tmp = j * (a * c);
} else if (i <= 2.05e+98) {
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))) - (z * (b * c))
t_2 = i * ((t * b) - (y * j))
if (i <= (-1.5d-43)) then
tmp = t_2
else if (i <= 2.8d-46) then
tmp = t_1
else if (i <= 4.2d-16) then
tmp = j * (a * c)
else if (i <= 2.05d+98) 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))) - (z * (b * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.5e-43) {
tmp = t_2;
} else if (i <= 2.8e-46) {
tmp = t_1;
} else if (i <= 4.2e-16) {
tmp = j * (a * c);
} else if (i <= 2.05e+98) {
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))) - (z * (b * c)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.5e-43: tmp = t_2 elif i <= 2.8e-46: tmp = t_1 elif i <= 4.2e-16: tmp = j * (a * c) elif i <= 2.05e+98: 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(z * Float64(b * c))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.5e-43) tmp = t_2; elseif (i <= 2.8e-46) tmp = t_1; elseif (i <= 4.2e-16) tmp = Float64(j * Float64(a * c)); elseif (i <= 2.05e+98) 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))) - (z * (b * c)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.5e-43) tmp = t_2; elseif (i <= 2.8e-46) tmp = t_1; elseif (i <= 4.2e-16) tmp = j * (a * c); elseif (i <= 2.05e+98) 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[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.5e-43], t$95$2, If[LessEqual[i, 2.8e-46], t$95$1, If[LessEqual[i, 4.2e-16], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.05e+98], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - z \cdot \left(b \cdot c\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.5 \cdot 10^{-43}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{-46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-16}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 2.05 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.50000000000000002e-43 or 2.05e98 < i Initial program 66.5%
Taylor expanded in a around 0 63.1%
Simplified61.5%
Taylor expanded in z around 0 58.1%
mul-1-neg58.1%
distribute-rgt-neg-in58.1%
mul-1-neg58.1%
associate-*r*63.9%
*-commutative63.9%
associate-*r*64.8%
distribute-lft-in71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
*-commutative71.0%
Simplified71.0%
if -1.50000000000000002e-43 < i < 2.7999999999999998e-46 or 4.2000000000000002e-16 < i < 2.05e98Initial program 81.2%
Taylor expanded in j around 0 69.9%
Taylor expanded in c around inf 65.7%
*-commutative65.7%
*-commutative65.7%
associate-*r*65.7%
Simplified65.7%
if 2.7999999999999998e-46 < i < 4.2000000000000002e-16Initial program 66.7%
Taylor expanded in a around inf 83.2%
+-commutative83.2%
mul-1-neg83.2%
unsub-neg83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in j around inf 83.3%
associate-*r*83.6%
Simplified83.6%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* i (* t b))))
(if (<= i -3.5e-46)
t_2
(if (<= i -3e-291)
t_1
(if (<= i 2.4e-139)
(* y (* x z))
(if (<= i 7.2e-16)
t_1
(if (<= i 3.3e+263) t_2 (- (* y (* i j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = i * (t * b);
double tmp;
if (i <= -3.5e-46) {
tmp = t_2;
} else if (i <= -3e-291) {
tmp = t_1;
} else if (i <= 2.4e-139) {
tmp = y * (x * z);
} else if (i <= 7.2e-16) {
tmp = t_1;
} else if (i <= 3.3e+263) {
tmp = t_2;
} else {
tmp = -(y * (i * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = i * (t * b)
if (i <= (-3.5d-46)) then
tmp = t_2
else if (i <= (-3d-291)) then
tmp = t_1
else if (i <= 2.4d-139) then
tmp = y * (x * z)
else if (i <= 7.2d-16) then
tmp = t_1
else if (i <= 3.3d+263) then
tmp = t_2
else
tmp = -(y * (i * 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 t_1 = a * (c * j);
double t_2 = i * (t * b);
double tmp;
if (i <= -3.5e-46) {
tmp = t_2;
} else if (i <= -3e-291) {
tmp = t_1;
} else if (i <= 2.4e-139) {
tmp = y * (x * z);
} else if (i <= 7.2e-16) {
tmp = t_1;
} else if (i <= 3.3e+263) {
tmp = t_2;
} else {
tmp = -(y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = i * (t * b) tmp = 0 if i <= -3.5e-46: tmp = t_2 elif i <= -3e-291: tmp = t_1 elif i <= 2.4e-139: tmp = y * (x * z) elif i <= 7.2e-16: tmp = t_1 elif i <= 3.3e+263: tmp = t_2 else: tmp = -(y * (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -3.5e-46) tmp = t_2; elseif (i <= -3e-291) tmp = t_1; elseif (i <= 2.4e-139) tmp = Float64(y * Float64(x * z)); elseif (i <= 7.2e-16) tmp = t_1; elseif (i <= 3.3e+263) tmp = t_2; else tmp = Float64(-Float64(y * Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = i * (t * b); tmp = 0.0; if (i <= -3.5e-46) tmp = t_2; elseif (i <= -3e-291) tmp = t_1; elseif (i <= 2.4e-139) tmp = y * (x * z); elseif (i <= 7.2e-16) tmp = t_1; elseif (i <= 3.3e+263) tmp = t_2; else tmp = -(y * (i * j)); 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]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e-46], t$95$2, If[LessEqual[i, -3e-291], t$95$1, If[LessEqual[i, 2.4e-139], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.2e-16], t$95$1, If[LessEqual[i, 3.3e+263], t$95$2, (-N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision])]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{-46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -3 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-139}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 7.2 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{+263}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;-y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if i < -3.5000000000000002e-46 or 7.19999999999999965e-16 < i < 3.3e263Initial program 71.2%
Taylor expanded in t around inf 48.6%
distribute-lft-out--48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in a around 0 36.5%
*-commutative36.5%
associate-*r*39.5%
Simplified39.5%
if -3.5000000000000002e-46 < i < -3.0000000000000001e-291 or 2.40000000000000015e-139 < i < 7.19999999999999965e-16Initial program 77.6%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in j around inf 39.7%
if -3.0000000000000001e-291 < i < 2.40000000000000015e-139Initial program 86.1%
Taylor expanded in y around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in z around inf 39.9%
if 3.3e263 < i Initial program 30.7%
Taylor expanded in y around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in z around 0 90.2%
mul-1-neg90.2%
*-commutative90.2%
distribute-rgt-neg-in90.2%
Simplified90.2%
Final simplification41.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* i (* t b))))
(if (<= i -6.5e-46)
t_2
(if (<= i -5.2e-291)
t_1
(if (<= i 3.3e-139)
(* y (* x z))
(if (<= i 8.2e-16)
t_1
(if (<= i 6.2e+263) t_2 (* j (- (* y 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 t_2 = i * (t * b);
double tmp;
if (i <= -6.5e-46) {
tmp = t_2;
} else if (i <= -5.2e-291) {
tmp = t_1;
} else if (i <= 3.3e-139) {
tmp = y * (x * z);
} else if (i <= 8.2e-16) {
tmp = t_1;
} else if (i <= 6.2e+263) {
tmp = t_2;
} else {
tmp = j * -(y * 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) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = i * (t * b)
if (i <= (-6.5d-46)) then
tmp = t_2
else if (i <= (-5.2d-291)) then
tmp = t_1
else if (i <= 3.3d-139) then
tmp = y * (x * z)
else if (i <= 8.2d-16) then
tmp = t_1
else if (i <= 6.2d+263) then
tmp = t_2
else
tmp = j * -(y * 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 t_2 = i * (t * b);
double tmp;
if (i <= -6.5e-46) {
tmp = t_2;
} else if (i <= -5.2e-291) {
tmp = t_1;
} else if (i <= 3.3e-139) {
tmp = y * (x * z);
} else if (i <= 8.2e-16) {
tmp = t_1;
} else if (i <= 6.2e+263) {
tmp = t_2;
} else {
tmp = j * -(y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = i * (t * b) tmp = 0 if i <= -6.5e-46: tmp = t_2 elif i <= -5.2e-291: tmp = t_1 elif i <= 3.3e-139: tmp = y * (x * z) elif i <= 8.2e-16: tmp = t_1 elif i <= 6.2e+263: tmp = t_2 else: tmp = j * -(y * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -6.5e-46) tmp = t_2; elseif (i <= -5.2e-291) tmp = t_1; elseif (i <= 3.3e-139) tmp = Float64(y * Float64(x * z)); elseif (i <= 8.2e-16) tmp = t_1; elseif (i <= 6.2e+263) tmp = t_2; else tmp = Float64(j * Float64(-Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = i * (t * b); tmp = 0.0; if (i <= -6.5e-46) tmp = t_2; elseif (i <= -5.2e-291) tmp = t_1; elseif (i <= 3.3e-139) tmp = y * (x * z); elseif (i <= 8.2e-16) tmp = t_1; elseif (i <= 6.2e+263) tmp = t_2; else tmp = j * -(y * 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]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6.5e-46], t$95$2, If[LessEqual[i, -5.2e-291], t$95$1, If[LessEqual[i, 3.3e-139], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.2e-16], t$95$1, If[LessEqual[i, 6.2e+263], t$95$2, N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -6.5 \cdot 10^{-46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -5.2 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{-139}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.2 \cdot 10^{+263}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\end{array}
\end{array}
if i < -6.49999999999999966e-46 or 8.20000000000000012e-16 < i < 6.2000000000000005e263Initial program 71.2%
Taylor expanded in t around inf 48.6%
distribute-lft-out--48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in a around 0 36.5%
*-commutative36.5%
associate-*r*39.5%
Simplified39.5%
if -6.49999999999999966e-46 < i < -5.1999999999999997e-291 or 3.3e-139 < i < 8.20000000000000012e-16Initial program 77.6%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in j around inf 39.7%
if -5.1999999999999997e-291 < i < 3.3e-139Initial program 86.1%
Taylor expanded in y around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in z around inf 39.9%
if 6.2000000000000005e263 < i Initial program 30.7%
Taylor expanded in y around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in z around 0 90.3%
mul-1-neg90.3%
*-commutative90.3%
associate-*r*80.8%
*-commutative80.8%
distribute-rgt-neg-out80.8%
*-commutative80.8%
distribute-rgt-neg-in80.8%
Simplified80.8%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -8.5e-43)
t_1
(if (<= i 4.2e-142)
(* z (- (* x y) (* b c)))
(if (<= i 7.6e-16)
(* a (- (* c j) (* x t)))
(if (<= i 7.8e+108) (* b (- (* t i) (* z c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.5e-43) {
tmp = t_1;
} else if (i <= 4.2e-142) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 7.6e-16) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 7.8e+108) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-8.5d-43)) then
tmp = t_1
else if (i <= 4.2d-142) then
tmp = z * ((x * y) - (b * c))
else if (i <= 7.6d-16) then
tmp = a * ((c * j) - (x * t))
else if (i <= 7.8d+108) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.5e-43) {
tmp = t_1;
} else if (i <= 4.2e-142) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 7.6e-16) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 7.8e+108) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -8.5e-43: tmp = t_1 elif i <= 4.2e-142: tmp = z * ((x * y) - (b * c)) elif i <= 7.6e-16: tmp = a * ((c * j) - (x * t)) elif i <= 7.8e+108: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -8.5e-43) tmp = t_1; elseif (i <= 4.2e-142) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 7.6e-16) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 7.8e+108) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -8.5e-43) tmp = t_1; elseif (i <= 4.2e-142) tmp = z * ((x * y) - (b * c)); elseif (i <= 7.6e-16) tmp = a * ((c * j) - (x * t)); elseif (i <= 7.8e+108) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.5e-43], t$95$1, If[LessEqual[i, 4.2e-142], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.6e-16], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.8e+108], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -8.5 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-142}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 7.6 \cdot 10^{-16}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 7.8 \cdot 10^{+108}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -8.50000000000000056e-43 or 7.79999999999999969e108 < i Initial program 65.9%
Taylor expanded in a around 0 62.5%
Simplified60.8%
Taylor expanded in z around 0 57.4%
mul-1-neg57.4%
distribute-rgt-neg-in57.4%
mul-1-neg57.4%
associate-*r*64.1%
*-commutative64.1%
associate-*r*65.1%
distribute-lft-in71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
*-commutative71.3%
Simplified71.3%
if -8.50000000000000056e-43 < i < 4.1999999999999999e-142Initial program 84.2%
Taylor expanded in z around inf 56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
if 4.1999999999999999e-142 < i < 7.60000000000000024e-16Initial program 71.6%
Taylor expanded in a around inf 61.3%
+-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
if 7.60000000000000024e-16 < i < 7.79999999999999969e108Initial program 78.5%
Taylor expanded in b around inf 62.3%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.55e+28)
t_1
(if (<= y 3.5e-233)
(* b (- (* t i) (* z c)))
(if (<= y 2.1e-28)
(* c (- (* a j) (* z b)))
(if (<= y 7e+156) (* i (- (* t b) (* y j))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.55e+28) {
tmp = t_1;
} else if (y <= 3.5e-233) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 2.1e-28) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 7e+156) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-1.55d+28)) then
tmp = t_1
else if (y <= 3.5d-233) then
tmp = b * ((t * i) - (z * c))
else if (y <= 2.1d-28) then
tmp = c * ((a * j) - (z * b))
else if (y <= 7d+156) then
tmp = i * ((t * b) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.55e+28) {
tmp = t_1;
} else if (y <= 3.5e-233) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 2.1e-28) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 7e+156) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.55e+28: tmp = t_1 elif y <= 3.5e-233: tmp = b * ((t * i) - (z * c)) elif y <= 2.1e-28: tmp = c * ((a * j) - (z * b)) elif y <= 7e+156: tmp = i * ((t * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.55e+28) tmp = t_1; elseif (y <= 3.5e-233) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (y <= 2.1e-28) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 7e+156) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.55e+28) tmp = t_1; elseif (y <= 3.5e-233) tmp = b * ((t * i) - (z * c)); elseif (y <= 2.1e-28) tmp = c * ((a * j) - (z * b)); elseif (y <= 7e+156) tmp = i * ((t * b) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.55e+28], t$95$1, If[LessEqual[y, 3.5e-233], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e-28], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+156], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-233}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-28}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+156}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.55e28 or 7.0000000000000006e156 < y Initial program 65.3%
Taylor expanded in y around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if -1.55e28 < y < 3.49999999999999991e-233Initial program 86.6%
Taylor expanded in b around inf 54.2%
if 3.49999999999999991e-233 < y < 2.10000000000000006e-28Initial program 77.4%
Taylor expanded in c around inf 55.2%
*-commutative55.2%
Simplified55.2%
if 2.10000000000000006e-28 < y < 7.0000000000000006e156Initial program 66.3%
Taylor expanded in a around 0 66.0%
Simplified66.1%
Taylor expanded in z around 0 56.4%
mul-1-neg56.4%
distribute-rgt-neg-in56.4%
mul-1-neg56.4%
associate-*r*56.4%
*-commutative56.4%
associate-*r*54.6%
distribute-lft-in61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
Final simplification61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -7.6e+108)
t_2
(if (<= a -8e-234)
t_1
(if (<= a 1.2e-231) (* z (* x y)) (if (<= a 8.5e+63) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.6e+108) {
tmp = t_2;
} else if (a <= -8e-234) {
tmp = t_1;
} else if (a <= 1.2e-231) {
tmp = z * (x * y);
} else if (a <= 8.5e+63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-7.6d+108)) then
tmp = t_2
else if (a <= (-8d-234)) then
tmp = t_1
else if (a <= 1.2d-231) then
tmp = z * (x * y)
else if (a <= 8.5d+63) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.6e+108) {
tmp = t_2;
} else if (a <= -8e-234) {
tmp = t_1;
} else if (a <= 1.2e-231) {
tmp = z * (x * y);
} else if (a <= 8.5e+63) {
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)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -7.6e+108: tmp = t_2 elif a <= -8e-234: tmp = t_1 elif a <= 1.2e-231: tmp = z * (x * y) elif a <= 8.5e+63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -7.6e+108) tmp = t_2; elseif (a <= -8e-234) tmp = t_1; elseif (a <= 1.2e-231) tmp = Float64(z * Float64(x * y)); elseif (a <= 8.5e+63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -7.6e+108) tmp = t_2; elseif (a <= -8e-234) tmp = t_1; elseif (a <= 1.2e-231) tmp = z * (x * y); elseif (a <= 8.5e+63) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.6e+108], t$95$2, If[LessEqual[a, -8e-234], t$95$1, If[LessEqual[a, 1.2e-231], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e+63], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.6 \cdot 10^{+108}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-231}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -7.60000000000000015e108 or 8.5000000000000004e63 < a Initial program 64.8%
Taylor expanded in a around inf 71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
*-commutative71.3%
Simplified71.3%
if -7.60000000000000015e108 < a < -7.9999999999999997e-234 or 1.19999999999999996e-231 < a < 8.5000000000000004e63Initial program 80.9%
Taylor expanded in b around inf 51.2%
if -7.9999999999999997e-234 < a < 1.19999999999999996e-231Initial program 70.3%
Taylor expanded in a around 0 67.4%
Simplified70.2%
Taylor expanded in x around inf 41.1%
*-commutative41.1%
*-commutative41.1%
associate-*r*43.9%
Simplified43.9%
Final simplification56.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* i (* t b))))
(if (<= i -7.2e-46)
t_2
(if (<= i -3.7e-291)
t_1
(if (<= i 6.5e-142) (* y (* x z)) (if (<= i 8e-16) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = i * (t * b);
double tmp;
if (i <= -7.2e-46) {
tmp = t_2;
} else if (i <= -3.7e-291) {
tmp = t_1;
} else if (i <= 6.5e-142) {
tmp = y * (x * z);
} else if (i <= 8e-16) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = i * (t * b)
if (i <= (-7.2d-46)) then
tmp = t_2
else if (i <= (-3.7d-291)) then
tmp = t_1
else if (i <= 6.5d-142) then
tmp = y * (x * z)
else if (i <= 8d-16) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = i * (t * b);
double tmp;
if (i <= -7.2e-46) {
tmp = t_2;
} else if (i <= -3.7e-291) {
tmp = t_1;
} else if (i <= 6.5e-142) {
tmp = y * (x * z);
} else if (i <= 8e-16) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = i * (t * b) tmp = 0 if i <= -7.2e-46: tmp = t_2 elif i <= -3.7e-291: tmp = t_1 elif i <= 6.5e-142: tmp = y * (x * z) elif i <= 8e-16: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -7.2e-46) tmp = t_2; elseif (i <= -3.7e-291) tmp = t_1; elseif (i <= 6.5e-142) tmp = Float64(y * Float64(x * z)); elseif (i <= 8e-16) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = i * (t * b); tmp = 0.0; if (i <= -7.2e-46) tmp = t_2; elseif (i <= -3.7e-291) tmp = t_1; elseif (i <= 6.5e-142) tmp = y * (x * z); elseif (i <= 8e-16) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.2e-46], t$95$2, If[LessEqual[i, -3.7e-291], t$95$1, If[LessEqual[i, 6.5e-142], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8e-16], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -7.2 \cdot 10^{-46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -3.7 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{-142}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 8 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -7.2e-46 or 7.9999999999999998e-16 < i Initial program 68.2%
Taylor expanded in t around inf 47.3%
distribute-lft-out--47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in a around 0 35.4%
*-commutative35.4%
associate-*r*38.2%
Simplified38.2%
if -7.2e-46 < i < -3.7000000000000001e-291 or 6.50000000000000027e-142 < i < 7.9999999999999998e-16Initial program 77.6%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in j around inf 39.7%
if -3.7000000000000001e-291 < i < 6.50000000000000027e-142Initial program 86.1%
Taylor expanded in y around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in z around inf 39.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* i (* t b))))
(if (<= i -8e-46)
t_2
(if (<= i -5e-291)
t_1
(if (<= i 5.5e-140) (* x (* y z)) (if (<= i 1.05e-15) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = i * (t * b);
double tmp;
if (i <= -8e-46) {
tmp = t_2;
} else if (i <= -5e-291) {
tmp = t_1;
} else if (i <= 5.5e-140) {
tmp = x * (y * z);
} else if (i <= 1.05e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = i * (t * b)
if (i <= (-8d-46)) then
tmp = t_2
else if (i <= (-5d-291)) then
tmp = t_1
else if (i <= 5.5d-140) then
tmp = x * (y * z)
else if (i <= 1.05d-15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = i * (t * b);
double tmp;
if (i <= -8e-46) {
tmp = t_2;
} else if (i <= -5e-291) {
tmp = t_1;
} else if (i <= 5.5e-140) {
tmp = x * (y * z);
} else if (i <= 1.05e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = i * (t * b) tmp = 0 if i <= -8e-46: tmp = t_2 elif i <= -5e-291: tmp = t_1 elif i <= 5.5e-140: tmp = x * (y * z) elif i <= 1.05e-15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -8e-46) tmp = t_2; elseif (i <= -5e-291) tmp = t_1; elseif (i <= 5.5e-140) tmp = Float64(x * Float64(y * z)); elseif (i <= 1.05e-15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = i * (t * b); tmp = 0.0; if (i <= -8e-46) tmp = t_2; elseif (i <= -5e-291) tmp = t_1; elseif (i <= 5.5e-140) tmp = x * (y * z); elseif (i <= 1.05e-15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8e-46], t$95$2, If[LessEqual[i, -5e-291], t$95$1, If[LessEqual[i, 5.5e-140], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e-15], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -8 \cdot 10^{-46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -5 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{-140}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -8.00000000000000018e-46 or 1.0499999999999999e-15 < i Initial program 68.2%
Taylor expanded in t around inf 47.3%
distribute-lft-out--47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in a around 0 35.4%
*-commutative35.4%
associate-*r*38.2%
Simplified38.2%
if -8.00000000000000018e-46 < i < -5.0000000000000003e-291 or 5.50000000000000026e-140 < i < 1.0499999999999999e-15Initial program 77.6%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in j around inf 39.7%
if -5.0000000000000003e-291 < i < 5.50000000000000026e-140Initial program 86.1%
Taylor expanded in a around 0 54.8%
Simplified64.5%
Taylor expanded in x around inf 36.2%
*-commutative36.2%
Simplified36.2%
Final simplification38.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -1e-70)
t_1
(if (<= a -4.9e-225)
(* (* z c) (- b))
(if (<= a 4.5e-27) (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1e-70) {
tmp = t_1;
} else if (a <= -4.9e-225) {
tmp = (z * c) * -b;
} else if (a <= 4.5e-27) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-1d-70)) then
tmp = t_1
else if (a <= (-4.9d-225)) then
tmp = (z * c) * -b
else if (a <= 4.5d-27) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1e-70) {
tmp = t_1;
} else if (a <= -4.9e-225) {
tmp = (z * c) * -b;
} else if (a <= 4.5e-27) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -1e-70: tmp = t_1 elif a <= -4.9e-225: tmp = (z * c) * -b elif a <= 4.5e-27: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -1e-70) tmp = t_1; elseif (a <= -4.9e-225) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (a <= 4.5e-27) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -1e-70) tmp = t_1; elseif (a <= -4.9e-225) tmp = (z * c) * -b; elseif (a <= 4.5e-27) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1e-70], t$95$1, If[LessEqual[a, -4.9e-225], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[a, 4.5e-27], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -1 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.9 \cdot 10^{-225}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-27}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.99999999999999996e-71 or 4.5000000000000002e-27 < a Initial program 71.1%
Taylor expanded in a around inf 57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
if -9.99999999999999996e-71 < a < -4.89999999999999971e-225Initial program 79.2%
Taylor expanded in j around 0 67.9%
Taylor expanded in c around inf 40.2%
associate-*r*40.2%
neg-mul-140.2%
*-commutative40.2%
Simplified40.2%
if -4.89999999999999971e-225 < a < 4.5000000000000002e-27Initial program 78.0%
Taylor expanded in a around 0 74.4%
Simplified75.6%
Taylor expanded in x around inf 35.6%
*-commutative35.6%
*-commutative35.6%
associate-*r*37.1%
Simplified37.1%
Final simplification49.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -6.5e-46) (not (<= i 9e-16))) (* 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 ((i <= -6.5e-46) || !(i <= 9e-16)) {
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 ((i <= (-6.5d-46)) .or. (.not. (i <= 9d-16))) 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 ((i <= -6.5e-46) || !(i <= 9e-16)) {
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 (i <= -6.5e-46) or not (i <= 9e-16): 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 ((i <= -6.5e-46) || !(i <= 9e-16)) 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 ((i <= -6.5e-46) || ~((i <= 9e-16))) 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[i, -6.5e-46], N[Not[LessEqual[i, 9e-16]], $MachinePrecision]], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.5 \cdot 10^{-46} \lor \neg \left(i \leq 9 \cdot 10^{-16}\right):\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -6.49999999999999966e-46 or 9.0000000000000003e-16 < i Initial program 68.2%
Taylor expanded in t around inf 47.3%
distribute-lft-out--47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in a around 0 35.4%
*-commutative35.4%
associate-*r*38.2%
Simplified38.2%
if -6.49999999999999966e-46 < i < 9.0000000000000003e-16Initial program 81.1%
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 33.3%
Final simplification35.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -2.5e-46) (not (<= i 1.02e-15))) (* 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 ((i <= -2.5e-46) || !(i <= 1.02e-15)) {
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 ((i <= (-2.5d-46)) .or. (.not. (i <= 1.02d-15))) 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 ((i <= -2.5e-46) || !(i <= 1.02e-15)) {
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 (i <= -2.5e-46) or not (i <= 1.02e-15): 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 ((i <= -2.5e-46) || !(i <= 1.02e-15)) 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 ((i <= -2.5e-46) || ~((i <= 1.02e-15))) 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[i, -2.5e-46], N[Not[LessEqual[i, 1.02e-15]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.5 \cdot 10^{-46} \lor \neg \left(i \leq 1.02 \cdot 10^{-15}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -2.49999999999999996e-46 or 1.02e-15 < i Initial program 68.2%
Taylor expanded in t around inf 47.3%
distribute-lft-out--47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in a around 0 35.4%
*-commutative35.4%
Simplified35.4%
if -2.49999999999999996e-46 < i < 1.02e-15Initial program 81.1%
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 33.3%
Final simplification34.4%
(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 74.3%
Taylor expanded in a around inf 37.0%
+-commutative37.0%
mul-1-neg37.0%
unsub-neg37.0%
*-commutative37.0%
Simplified37.0%
Taylor expanded in j around inf 23.6%
(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 2024100
(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)))))