
(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 21 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))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(* (* a c) (- j (* b (/ z a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double t_2 = (a * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = (a * c) * (j - (b * (z / a)));
}
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)) tmp = 0.0 if (Float64(t_1 + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(Float64(a * c) * Float64(j - Float64(b * Float64(z / a)))); 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]}, If[LessEqual[N[(t$95$1 + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(N[(a * c), $MachinePrecision] * N[(j - N[(b * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\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\\
\mathbf{if}\;t\_1 + j \cdot t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot c\right) \cdot \left(j - b \cdot \frac{z}{a}\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.6%
+-commutative91.6%
fma-define91.6%
*-commutative91.6%
sub-neg91.6%
*-commutative91.6%
sub-neg91.6%
*-commutative91.6%
*-commutative91.6%
Simplified91.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around -inf 22.9%
Simplified29.2%
Taylor expanded in c around inf 52.6%
associate-*r*52.6%
mul-1-neg52.6%
unsub-neg52.6%
associate-/l*52.7%
Simplified52.7%
Final simplification84.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* (* a c) (- j (* b (/ z a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (a * c) * (j - (b * (z / a)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (a * c) * (j - (b * (z / a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (a * c) * (j - (b * (z / a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(a * c) * Float64(j - Float64(b * Float64(z / a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (a * c) * (j - (b * (z / a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(a * c), $MachinePrecision] * N[(j - N[(b * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot c\right) \cdot \left(j - b \cdot \frac{z}{a}\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around -inf 22.9%
Simplified29.2%
Taylor expanded in c around inf 52.6%
associate-*r*52.6%
mul-1-neg52.6%
unsub-neg52.6%
associate-/l*52.7%
Simplified52.7%
Final simplification84.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= t -1.35e+53)
(* (* t a) (- (* b (/ i a)) x))
(if (<= t 5.3e-200)
(- t_1 (* j (- (* y i) (* a c))))
(if (<= t 6.1e-96)
(* z (- (* x y) (* b c)))
(if (<= t 1.6e+142)
(* a (+ (* c j) (- (/ t_1 a) (* x t))))
(* t (- (* b i) (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (t <= -1.35e+53) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 5.3e-200) {
tmp = t_1 - (j * ((y * i) - (a * c)));
} else if (t <= 6.1e-96) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.6e+142) {
tmp = a * ((c * j) + ((t_1 / a) - (x * t)));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (t <= (-1.35d+53)) then
tmp = (t * a) * ((b * (i / a)) - x)
else if (t <= 5.3d-200) then
tmp = t_1 - (j * ((y * i) - (a * c)))
else if (t <= 6.1d-96) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.6d+142) then
tmp = a * ((c * j) + ((t_1 / a) - (x * t)))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (t <= -1.35e+53) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 5.3e-200) {
tmp = t_1 - (j * ((y * i) - (a * c)));
} else if (t <= 6.1e-96) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.6e+142) {
tmp = a * ((c * j) + ((t_1 / a) - (x * t)));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if t <= -1.35e+53: tmp = (t * a) * ((b * (i / a)) - x) elif t <= 5.3e-200: tmp = t_1 - (j * ((y * i) - (a * c))) elif t <= 6.1e-96: tmp = z * ((x * y) - (b * c)) elif t <= 1.6e+142: tmp = a * ((c * j) + ((t_1 / a) - (x * t))) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (t <= -1.35e+53) tmp = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / a)) - x)); elseif (t <= 5.3e-200) tmp = Float64(t_1 - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (t <= 6.1e-96) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.6e+142) tmp = Float64(a * Float64(Float64(c * j) + Float64(Float64(t_1 / a) - Float64(x * t)))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (t <= -1.35e+53) tmp = (t * a) * ((b * (i / a)) - x); elseif (t <= 5.3e-200) tmp = t_1 - (j * ((y * i) - (a * c))); elseif (t <= 6.1e-96) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.6e+142) tmp = a * ((c * j) + ((t_1 / a) - (x * t))); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.35e+53], N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.3e-200], N[(t$95$1 - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.1e-96], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e+142], N[(a * N[(N[(c * j), $MachinePrecision] + N[(N[(t$95$1 / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{+53}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{a} - x\right)\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{-200}:\\
\;\;\;\;t\_1 - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;t \leq 6.1 \cdot 10^{-96}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{+142}:\\
\;\;\;\;a \cdot \left(c \cdot j + \left(\frac{t\_1}{a} - x \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -1.3500000000000001e53Initial program 70.4%
Taylor expanded in a around -inf 59.9%
Simplified63.7%
Taylor expanded in t around inf 60.1%
associate-*r*69.4%
associate-/l*71.3%
Simplified71.3%
if -1.3500000000000001e53 < t < 5.29999999999999973e-200Initial program 81.7%
Taylor expanded in b around 0 70.9%
Taylor expanded in t around 0 63.3%
if 5.29999999999999973e-200 < t < 6.1000000000000001e-96Initial program 76.9%
Taylor expanded in z around inf 72.7%
*-commutative72.7%
Simplified72.7%
if 6.1000000000000001e-96 < t < 1.60000000000000003e142Initial program 73.6%
Taylor expanded in a around -inf 68.3%
Simplified72.1%
Taylor expanded in x around inf 70.9%
if 1.60000000000000003e142 < t Initial program 59.4%
Taylor expanded in t around inf 83.0%
distribute-lft-out--83.0%
Simplified83.0%
Final simplification69.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))) (t_2 (* c (* z (- b)))))
(if (<= b -7.5e+95)
t_2
(if (<= b -1.1e+19)
t_1
(if (<= b -2.22e-293)
(* c (* a j))
(if (<= b 9.2e-117)
(* y (* x z))
(if (<= b 1.54e+97)
(* j (* a c))
(if (<= b 1.15e+204) 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);
double t_2 = c * (z * -b);
double tmp;
if (b <= -7.5e+95) {
tmp = t_2;
} else if (b <= -1.1e+19) {
tmp = t_1;
} else if (b <= -2.22e-293) {
tmp = c * (a * j);
} else if (b <= 9.2e-117) {
tmp = y * (x * z);
} else if (b <= 1.54e+97) {
tmp = j * (a * c);
} else if (b <= 1.15e+204) {
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)
t_2 = c * (z * -b)
if (b <= (-7.5d+95)) then
tmp = t_2
else if (b <= (-1.1d+19)) then
tmp = t_1
else if (b <= (-2.22d-293)) then
tmp = c * (a * j)
else if (b <= 9.2d-117) then
tmp = y * (x * z)
else if (b <= 1.54d+97) then
tmp = j * (a * c)
else if (b <= 1.15d+204) 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);
double t_2 = c * (z * -b);
double tmp;
if (b <= -7.5e+95) {
tmp = t_2;
} else if (b <= -1.1e+19) {
tmp = t_1;
} else if (b <= -2.22e-293) {
tmp = c * (a * j);
} else if (b <= 9.2e-117) {
tmp = y * (x * z);
} else if (b <= 1.54e+97) {
tmp = j * (a * c);
} else if (b <= 1.15e+204) {
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) t_2 = c * (z * -b) tmp = 0 if b <= -7.5e+95: tmp = t_2 elif b <= -1.1e+19: tmp = t_1 elif b <= -2.22e-293: tmp = c * (a * j) elif b <= 9.2e-117: tmp = y * (x * z) elif b <= 1.54e+97: tmp = j * (a * c) elif b <= 1.15e+204: 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(t * i)) t_2 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (b <= -7.5e+95) tmp = t_2; elseif (b <= -1.1e+19) tmp = t_1; elseif (b <= -2.22e-293) tmp = Float64(c * Float64(a * j)); elseif (b <= 9.2e-117) tmp = Float64(y * Float64(x * z)); elseif (b <= 1.54e+97) tmp = Float64(j * Float64(a * c)); elseif (b <= 1.15e+204) 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); t_2 = c * (z * -b); tmp = 0.0; if (b <= -7.5e+95) tmp = t_2; elseif (b <= -1.1e+19) tmp = t_1; elseif (b <= -2.22e-293) tmp = c * (a * j); elseif (b <= 9.2e-117) tmp = y * (x * z); elseif (b <= 1.54e+97) tmp = j * (a * c); elseif (b <= 1.15e+204) 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[(t * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.5e+95], t$95$2, If[LessEqual[b, -1.1e+19], t$95$1, If[LessEqual[b, -2.22e-293], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e-117], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.54e+97], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+204], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
t_2 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;b \leq -7.5 \cdot 10^{+95}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.22 \cdot 10^{-293}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-117}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 1.54 \cdot 10^{+97}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+204}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -7.5000000000000001e95 or 1.14999999999999995e204 < b Initial program 75.9%
Taylor expanded in a around -inf 64.9%
Simplified67.6%
Taylor expanded in z around inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in b around inf 51.1%
mul-1-neg51.1%
*-commutative51.1%
associate-*r*53.3%
*-commutative53.3%
distribute-rgt-neg-out53.3%
distribute-rgt-neg-in53.3%
Simplified53.3%
if -7.5000000000000001e95 < b < -1.1e19 or 1.54000000000000002e97 < b < 1.14999999999999995e204Initial program 66.3%
Taylor expanded in a around -inf 59.0%
Simplified61.7%
Taylor expanded in b around -inf 65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in t around inf 48.5%
if -1.1e19 < b < -2.2200000000000001e-293Initial program 68.1%
Taylor expanded in a around -inf 64.5%
Simplified62.7%
Taylor expanded in c around inf 41.9%
associate-*r*42.1%
mul-1-neg42.1%
unsub-neg42.1%
associate-/l*42.0%
Simplified42.0%
Taylor expanded in a around inf 38.0%
associate-*r*34.5%
*-commutative34.5%
associate-*l*42.8%
Simplified42.8%
if -2.2200000000000001e-293 < b < 9.19999999999999978e-117Initial program 79.3%
Taylor expanded in y around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
Simplified56.4%
Taylor expanded in z around inf 44.7%
*-commutative44.7%
Simplified44.7%
if 9.19999999999999978e-117 < b < 1.54000000000000002e97Initial program 80.6%
Taylor expanded in a around inf 49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
Simplified49.7%
Taylor expanded in c around inf 29.4%
associate-*r*34.7%
Simplified34.7%
Final simplification45.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.2e+54)
(* (* t a) (- (* b (/ i a)) x))
(if (<= t 4e+61)
(- (- (* x (* y z)) (* j (- (* y i) (* a c)))) (* b (* z c)))
(if (<= t 1.45e+142)
(* a (* j (+ (* x (/ (* y z) (* a j))) (- c (* t (/ x j))))))
(* t (- (* b i) (* x a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.2e+54) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 4e+61) {
tmp = ((x * (y * z)) - (j * ((y * i) - (a * c)))) - (b * (z * c));
} else if (t <= 1.45e+142) {
tmp = a * (j * ((x * ((y * z) / (a * j))) + (c - (t * (x / j)))));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-2.2d+54)) then
tmp = (t * a) * ((b * (i / a)) - x)
else if (t <= 4d+61) then
tmp = ((x * (y * z)) - (j * ((y * i) - (a * c)))) - (b * (z * c))
else if (t <= 1.45d+142) then
tmp = a * (j * ((x * ((y * z) / (a * j))) + (c - (t * (x / j)))))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.2e+54) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 4e+61) {
tmp = ((x * (y * z)) - (j * ((y * i) - (a * c)))) - (b * (z * c));
} else if (t <= 1.45e+142) {
tmp = a * (j * ((x * ((y * z) / (a * j))) + (c - (t * (x / j)))));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.2e+54: tmp = (t * a) * ((b * (i / a)) - x) elif t <= 4e+61: tmp = ((x * (y * z)) - (j * ((y * i) - (a * c)))) - (b * (z * c)) elif t <= 1.45e+142: tmp = a * (j * ((x * ((y * z) / (a * j))) + (c - (t * (x / j))))) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.2e+54) tmp = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / a)) - x)); elseif (t <= 4e+61) tmp = Float64(Float64(Float64(x * Float64(y * z)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))) - Float64(b * Float64(z * c))); elseif (t <= 1.45e+142) tmp = Float64(a * Float64(j * Float64(Float64(x * Float64(Float64(y * z) / Float64(a * j))) + Float64(c - Float64(t * Float64(x / j)))))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.2e+54) tmp = (t * a) * ((b * (i / a)) - x); elseif (t <= 4e+61) tmp = ((x * (y * z)) - (j * ((y * i) - (a * c)))) - (b * (z * c)); elseif (t <= 1.45e+142) tmp = a * (j * ((x * ((y * z) / (a * j))) + (c - (t * (x / j))))); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.2e+54], N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+61], N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e+142], N[(a * N[(j * N[(N[(x * N[(N[(y * z), $MachinePrecision] / N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c - N[(t * N[(x / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+54}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{a} - x\right)\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+61}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z\right) - j \cdot \left(y \cdot i - a \cdot c\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+142}:\\
\;\;\;\;a \cdot \left(j \cdot \left(x \cdot \frac{y \cdot z}{a \cdot j} + \left(c - t \cdot \frac{x}{j}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -2.1999999999999999e54Initial program 70.4%
Taylor expanded in a around -inf 59.9%
Simplified63.7%
Taylor expanded in t around inf 60.1%
associate-*r*69.4%
associate-/l*71.3%
Simplified71.3%
if -2.1999999999999999e54 < t < 3.9999999999999998e61Initial program 82.8%
Taylor expanded in t around 0 72.9%
if 3.9999999999999998e61 < t < 1.45000000000000007e142Initial program 50.0%
Taylor expanded in a around -inf 49.9%
Simplified54.5%
Taylor expanded in x around inf 82.0%
Taylor expanded in j around inf 90.8%
associate--r+90.8%
associate-/l*90.8%
associate-/l*95.4%
*-commutative95.4%
Simplified95.4%
if 1.45000000000000007e142 < t Initial program 59.4%
Taylor expanded in t around inf 83.0%
distribute-lft-out--83.0%
Simplified83.0%
Final simplification75.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= a -6.3e+112)
t_1
(if (<= a -4.7e-163)
(* (* z c) (- b))
(if (<= a 1.65e-223)
(* z (* x y))
(if (<= a 3.9e-122)
(* c (* z (- b)))
(if (<= a 2.7e+203) (* t (* x (- a))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (a <= -6.3e+112) {
tmp = t_1;
} else if (a <= -4.7e-163) {
tmp = (z * c) * -b;
} else if (a <= 1.65e-223) {
tmp = z * (x * y);
} else if (a <= 3.9e-122) {
tmp = c * (z * -b);
} else if (a <= 2.7e+203) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (a * j)
if (a <= (-6.3d+112)) then
tmp = t_1
else if (a <= (-4.7d-163)) then
tmp = (z * c) * -b
else if (a <= 1.65d-223) then
tmp = z * (x * y)
else if (a <= 3.9d-122) then
tmp = c * (z * -b)
else if (a <= 2.7d+203) then
tmp = t * (x * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (a <= -6.3e+112) {
tmp = t_1;
} else if (a <= -4.7e-163) {
tmp = (z * c) * -b;
} else if (a <= 1.65e-223) {
tmp = z * (x * y);
} else if (a <= 3.9e-122) {
tmp = c * (z * -b);
} else if (a <= 2.7e+203) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if a <= -6.3e+112: tmp = t_1 elif a <= -4.7e-163: tmp = (z * c) * -b elif a <= 1.65e-223: tmp = z * (x * y) elif a <= 3.9e-122: tmp = c * (z * -b) elif a <= 2.7e+203: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (a <= -6.3e+112) tmp = t_1; elseif (a <= -4.7e-163) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (a <= 1.65e-223) tmp = Float64(z * Float64(x * y)); elseif (a <= 3.9e-122) tmp = Float64(c * Float64(z * Float64(-b))); elseif (a <= 2.7e+203) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (a * j); tmp = 0.0; if (a <= -6.3e+112) tmp = t_1; elseif (a <= -4.7e-163) tmp = (z * c) * -b; elseif (a <= 1.65e-223) tmp = z * (x * y); elseif (a <= 3.9e-122) tmp = c * (z * -b); elseif (a <= 2.7e+203) tmp = t * (x * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.3e+112], t$95$1, If[LessEqual[a, -4.7e-163], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[a, 1.65e-223], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.9e-122], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+203], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;a \leq -6.3 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-163}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-223}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-122}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+203}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.2999999999999997e112 or 2.7e203 < a Initial program 57.5%
Taylor expanded in a around -inf 68.3%
Simplified74.5%
Taylor expanded in c around inf 61.6%
associate-*r*58.7%
mul-1-neg58.7%
unsub-neg58.7%
associate-/l*57.4%
Simplified57.4%
Taylor expanded in a around inf 48.1%
associate-*r*48.2%
*-commutative48.2%
associate-*l*55.6%
Simplified55.6%
if -6.2999999999999997e112 < a < -4.7e-163Initial program 77.0%
Taylor expanded in a around -inf 65.6%
Simplified67.1%
Taylor expanded in b around -inf 49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
Taylor expanded in t around 0 33.8%
associate-*r*33.8%
neg-mul-133.8%
Simplified33.8%
if -4.7e-163 < a < 1.64999999999999997e-223Initial program 89.6%
Taylor expanded in a around -inf 52.6%
Simplified54.9%
Taylor expanded in z around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
*-commutative43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in y around inf 43.6%
associate-*r*43.6%
Simplified43.6%
if 1.64999999999999997e-223 < a < 3.8999999999999999e-122Initial program 99.7%
Taylor expanded in a around -inf 57.0%
Simplified52.1%
Taylor expanded in z around inf 41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
*-commutative41.8%
*-commutative41.8%
Simplified41.8%
Taylor expanded in b around inf 46.6%
mul-1-neg46.6%
*-commutative46.6%
associate-*r*46.6%
*-commutative46.6%
distribute-rgt-neg-out46.6%
distribute-rgt-neg-in46.6%
Simplified46.6%
if 3.8999999999999999e-122 < a < 2.7e203Initial program 69.9%
Taylor expanded in a around -inf 72.6%
Simplified72.8%
Taylor expanded in z around inf 72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in t around inf 45.9%
mul-1-neg45.9%
*-commutative45.9%
associate-*r*44.5%
*-commutative44.5%
distribute-rgt-neg-out44.5%
*-commutative44.5%
distribute-rgt-neg-in44.5%
Simplified44.5%
Final simplification44.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -1.02e+21)
t_1
(if (<= b 6.5e+99)
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(+ (- (* x (* y z)) (* i (* y j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.02e+21) {
tmp = t_1;
} else if (b <= 6.5e+99) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = ((x * (y * z)) - (i * (y * 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 <= (-1.02d+21)) then
tmp = t_1
else if (b <= 6.5d+99) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = ((x * (y * z)) - (i * (y * 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 <= -1.02e+21) {
tmp = t_1;
} else if (b <= 6.5e+99) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = ((x * (y * z)) - (i * (y * 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 <= -1.02e+21: tmp = t_1 elif b <= 6.5e+99: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = ((x * (y * z)) - (i * (y * 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 <= -1.02e+21) tmp = t_1; elseif (b <= 6.5e+99) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(Float64(x * Float64(y * z)) - Float64(i * Float64(y * 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 <= -1.02e+21) tmp = t_1; elseif (b <= 6.5e+99) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = ((x * (y * z)) - (i * (y * 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, -1.02e+21], t$95$1, If[LessEqual[b, 6.5e+99], 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[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * 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 -1.02 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+99}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z\right) - i \cdot \left(y \cdot j\right)\right) + t\_1\\
\end{array}
\end{array}
if b < -1.02e21Initial program 71.5%
Taylor expanded in b around inf 65.5%
*-commutative65.5%
Simplified65.5%
if -1.02e21 < b < 6.5000000000000004e99Initial program 75.9%
Taylor expanded in b around 0 79.0%
if 6.5000000000000004e99 < b Initial program 74.1%
Taylor expanded in a around 0 72.3%
Final simplification74.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -5e+53)
(* (* t a) (- (* b (/ i a)) x))
(if (<= t 7.5e-170)
(* c (- (* a j) (* z b)))
(if (<= t 1.55e-21)
(* z (- (* x y) (* b c)))
(if (<= t 1.1e+142)
(* a (- (* c j) (* x t)))
(* t (- (* b i) (* x a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5e+53) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 7.5e-170) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 1.55e-21) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.1e+142) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-5d+53)) then
tmp = (t * a) * ((b * (i / a)) - x)
else if (t <= 7.5d-170) then
tmp = c * ((a * j) - (z * b))
else if (t <= 1.55d-21) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.1d+142) then
tmp = a * ((c * j) - (x * t))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5e+53) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 7.5e-170) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 1.55e-21) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.1e+142) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -5e+53: tmp = (t * a) * ((b * (i / a)) - x) elif t <= 7.5e-170: tmp = c * ((a * j) - (z * b)) elif t <= 1.55e-21: tmp = z * ((x * y) - (b * c)) elif t <= 1.1e+142: tmp = a * ((c * j) - (x * t)) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -5e+53) tmp = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / a)) - x)); elseif (t <= 7.5e-170) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 1.55e-21) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.1e+142) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -5e+53) tmp = (t * a) * ((b * (i / a)) - x); elseif (t <= 7.5e-170) tmp = c * ((a * j) - (z * b)); elseif (t <= 1.55e-21) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.1e+142) tmp = a * ((c * j) - (x * t)); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -5e+53], N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-170], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e-21], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e+142], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+53}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{a} - x\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-170}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-21}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -5.0000000000000004e53Initial program 70.4%
Taylor expanded in a around -inf 59.9%
Simplified63.7%
Taylor expanded in t around inf 60.1%
associate-*r*69.4%
associate-/l*71.3%
Simplified71.3%
if -5.0000000000000004e53 < t < 7.4999999999999998e-170Initial program 82.5%
Taylor expanded in c around inf 55.6%
if 7.4999999999999998e-170 < t < 1.5499999999999999e-21Initial program 77.8%
Taylor expanded in z around inf 74.8%
*-commutative74.8%
Simplified74.8%
if 1.5499999999999999e-21 < t < 1.09999999999999993e142Initial program 68.5%
Taylor expanded in a around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
Simplified65.6%
if 1.09999999999999993e142 < t Initial program 59.4%
Taylor expanded in t around inf 83.0%
distribute-lft-out--83.0%
Simplified83.0%
Final simplification66.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -8.5e+59)
t_1
(if (<= t 5.2e-171)
(* c (- (* a j) (* z b)))
(if (<= t 1.22e-22)
(* z (- (* x y) (* b c)))
(if (<= t 1.7e+142) (* a (- (* c j) (* x t))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -8.5e+59) {
tmp = t_1;
} else if (t <= 5.2e-171) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 1.22e-22) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.7e+142) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-8.5d+59)) then
tmp = t_1
else if (t <= 5.2d-171) then
tmp = c * ((a * j) - (z * b))
else if (t <= 1.22d-22) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.7d+142) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -8.5e+59) {
tmp = t_1;
} else if (t <= 5.2e-171) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 1.22e-22) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.7e+142) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -8.5e+59: tmp = t_1 elif t <= 5.2e-171: tmp = c * ((a * j) - (z * b)) elif t <= 1.22e-22: tmp = z * ((x * y) - (b * c)) elif t <= 1.7e+142: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -8.5e+59) tmp = t_1; elseif (t <= 5.2e-171) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 1.22e-22) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.7e+142) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -8.5e+59) tmp = t_1; elseif (t <= 5.2e-171) tmp = c * ((a * j) - (z * b)); elseif (t <= 1.22e-22) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.7e+142) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.5e+59], t$95$1, If[LessEqual[t, 5.2e-171], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.22e-22], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+142], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-171}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-22}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+142}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.4999999999999999e59 or 1.6999999999999999e142 < t Initial program 66.3%
Taylor expanded in t around inf 71.9%
distribute-lft-out--71.9%
Simplified71.9%
if -8.4999999999999999e59 < t < 5.2000000000000001e-171Initial program 81.9%
Taylor expanded in c around inf 55.5%
if 5.2000000000000001e-171 < t < 1.2200000000000001e-22Initial program 77.8%
Taylor expanded in z around inf 74.8%
*-commutative74.8%
Simplified74.8%
if 1.2200000000000001e-22 < t < 1.6999999999999999e142Initial program 68.5%
Taylor expanded in a around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
Simplified65.6%
Final simplification64.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.6e+21) (not (<= b 1.62e+103))) (* b (- (* t i) (* z c))) (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.6e+21) || !(b <= 1.62e+103)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-3.6d+21)) .or. (.not. (b <= 1.62d+103))) then
tmp = b * ((t * i) - (z * c))
else
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.6e+21) || !(b <= 1.62e+103)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.6e+21) or not (b <= 1.62e+103): tmp = b * ((t * i) - (z * c)) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.6e+21) || !(b <= 1.62e+103)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.6e+21) || ~((b <= 1.62e+103))) tmp = b * ((t * i) - (z * c)); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.6e+21], N[Not[LessEqual[b, 1.62e+103]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+21} \lor \neg \left(b \leq 1.62 \cdot 10^{+103}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -3.6e21 or 1.62000000000000007e103 < b Initial program 72.5%
Taylor expanded in b around inf 66.6%
*-commutative66.6%
Simplified66.6%
if -3.6e21 < b < 1.62000000000000007e103Initial program 75.9%
Taylor expanded in b around 0 79.0%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.2e+21)
t_2
(if (<= b 1e+94) (+ (* j (- (* a c) (* y i))) t_1) (+ 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));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+21) {
tmp = t_2;
} else if (b <= 1e+94) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else {
tmp = t_1 + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.2d+21)) then
tmp = t_2
else if (b <= 1d+94) then
tmp = (j * ((a * c) - (y * i))) + t_1
else
tmp = t_1 + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+21) {
tmp = t_2;
} else if (b <= 1e+94) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else {
tmp = t_1 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.2e+21: tmp = t_2 elif b <= 1e+94: tmp = (j * ((a * c) - (y * i))) + t_1 else: tmp = t_1 + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.2e+21) tmp = t_2; elseif (b <= 1e+94) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); else tmp = Float64(t_1 + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.2e+21) tmp = t_2; elseif (b <= 1e+94) tmp = (j * ((a * c) - (y * i))) + t_1; else tmp = t_1 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+21], t$95$2, If[LessEqual[b, 1e+94], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+21}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 10^{+94}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 + t\_2\\
\end{array}
\end{array}
if b < -3.2e21Initial program 71.5%
Taylor expanded in b around inf 65.5%
*-commutative65.5%
Simplified65.5%
if -3.2e21 < b < 1e94Initial program 75.9%
Taylor expanded in b around 0 79.0%
if 1e94 < b Initial program 74.1%
Taylor expanded in j around 0 69.9%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.75e+113)
(* c (* a j))
(if (<= a -4.2e-163)
(* (* z c) (- b))
(if (<= a 4.8e-226)
(* z (* x y))
(if (<= a 3.9e-122) (* c (* z (- b))) (* a (* x (- t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.75e+113) {
tmp = c * (a * j);
} else if (a <= -4.2e-163) {
tmp = (z * c) * -b;
} else if (a <= 4.8e-226) {
tmp = z * (x * y);
} else if (a <= 3.9e-122) {
tmp = c * (z * -b);
} else {
tmp = a * (x * -t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.75d+113)) then
tmp = c * (a * j)
else if (a <= (-4.2d-163)) then
tmp = (z * c) * -b
else if (a <= 4.8d-226) then
tmp = z * (x * y)
else if (a <= 3.9d-122) then
tmp = c * (z * -b)
else
tmp = a * (x * -t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.75e+113) {
tmp = c * (a * j);
} else if (a <= -4.2e-163) {
tmp = (z * c) * -b;
} else if (a <= 4.8e-226) {
tmp = z * (x * y);
} else if (a <= 3.9e-122) {
tmp = c * (z * -b);
} else {
tmp = a * (x * -t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.75e+113: tmp = c * (a * j) elif a <= -4.2e-163: tmp = (z * c) * -b elif a <= 4.8e-226: tmp = z * (x * y) elif a <= 3.9e-122: tmp = c * (z * -b) else: tmp = a * (x * -t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.75e+113) tmp = Float64(c * Float64(a * j)); elseif (a <= -4.2e-163) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (a <= 4.8e-226) tmp = Float64(z * Float64(x * y)); elseif (a <= 3.9e-122) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(a * Float64(x * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.75e+113) tmp = c * (a * j); elseif (a <= -4.2e-163) tmp = (z * c) * -b; elseif (a <= 4.8e-226) tmp = z * (x * y); elseif (a <= 3.9e-122) tmp = c * (z * -b); else tmp = a * (x * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.75e+113], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.2e-163], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[a, 4.8e-226], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.9e-122], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.75 \cdot 10^{+113}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-163}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-226}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-122}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if a < -1.75e113Initial program 53.8%
Taylor expanded in a around -inf 67.5%
Simplified71.9%
Taylor expanded in c around inf 59.5%
associate-*r*57.4%
mul-1-neg57.4%
unsub-neg57.4%
associate-/l*55.2%
Simplified55.2%
Taylor expanded in a around inf 44.2%
associate-*r*44.3%
*-commutative44.3%
associate-*l*50.7%
Simplified50.7%
if -1.75e113 < a < -4.19999999999999996e-163Initial program 77.0%
Taylor expanded in a around -inf 65.6%
Simplified67.1%
Taylor expanded in b around -inf 49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
Taylor expanded in t around 0 33.8%
associate-*r*33.8%
neg-mul-133.8%
Simplified33.8%
if -4.19999999999999996e-163 < a < 4.7999999999999999e-226Initial program 89.6%
Taylor expanded in a around -inf 52.6%
Simplified54.9%
Taylor expanded in z around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
*-commutative43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in y around inf 43.6%
associate-*r*43.6%
Simplified43.6%
if 4.7999999999999999e-226 < a < 3.8999999999999999e-122Initial program 99.7%
Taylor expanded in a around -inf 57.0%
Simplified52.1%
Taylor expanded in z around inf 41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
*-commutative41.8%
*-commutative41.8%
Simplified41.8%
Taylor expanded in b around inf 46.6%
mul-1-neg46.6%
*-commutative46.6%
associate-*r*46.6%
*-commutative46.6%
distribute-rgt-neg-out46.6%
distribute-rgt-neg-in46.6%
Simplified46.6%
if 3.8999999999999999e-122 < a Initial program 68.9%
Taylor expanded in a around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
Simplified65.6%
Taylor expanded in c around 0 46.9%
mul-1-neg46.9%
*-commutative46.9%
distribute-rgt-neg-in46.9%
Simplified46.9%
Final simplification44.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.3e+54)
(* (* t a) (- (* b (/ i a)) x))
(if (<= t 2e+87)
(- (* x (* y z)) (* j (- (* y i) (* a c))))
(* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.3e+54) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 2e+87) {
tmp = (x * (y * z)) - (j * ((y * i) - (a * c)));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-2.3d+54)) then
tmp = (t * a) * ((b * (i / a)) - x)
else if (t <= 2d+87) then
tmp = (x * (y * z)) - (j * ((y * i) - (a * c)))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.3e+54) {
tmp = (t * a) * ((b * (i / a)) - x);
} else if (t <= 2e+87) {
tmp = (x * (y * z)) - (j * ((y * i) - (a * c)));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.3e+54: tmp = (t * a) * ((b * (i / a)) - x) elif t <= 2e+87: tmp = (x * (y * z)) - (j * ((y * i) - (a * c))) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.3e+54) tmp = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / a)) - x)); elseif (t <= 2e+87) tmp = Float64(Float64(x * Float64(y * z)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.3e+54) tmp = (t * a) * ((b * (i / a)) - x); elseif (t <= 2e+87) tmp = (x * (y * z)) - (j * ((y * i) - (a * c))); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.3e+54], N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+87], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.3 \cdot 10^{+54}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{a} - x\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+87}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -2.29999999999999994e54Initial program 70.4%
Taylor expanded in a around -inf 59.9%
Simplified63.7%
Taylor expanded in t around inf 60.1%
associate-*r*69.4%
associate-/l*71.3%
Simplified71.3%
if -2.29999999999999994e54 < t < 1.9999999999999999e87Initial program 80.7%
Taylor expanded in b around 0 67.4%
Taylor expanded in t around 0 61.3%
if 1.9999999999999999e87 < t Initial program 57.0%
Taylor expanded in t around inf 76.8%
distribute-lft-out--76.8%
Simplified76.8%
Final simplification66.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1.9e-5) (not (<= c 5.1e-55))) (* c (- (* a j) (* z b))) (* x (- (* y z) (* t a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.9e-5) || !(c <= 5.1e-55)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1.9d-5)) .or. (.not. (c <= 5.1d-55))) then
tmp = c * ((a * j) - (z * b))
else
tmp = x * ((y * z) - (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.9e-5) || !(c <= 5.1e-55)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.9e-5) or not (c <= 5.1e-55): tmp = c * ((a * j) - (z * b)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.9e-5) || !(c <= 5.1e-55)) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.9e-5) || ~((c <= 5.1e-55))) tmp = c * ((a * j) - (z * b)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.9e-5], N[Not[LessEqual[c, 5.1e-55]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.9 \cdot 10^{-5} \lor \neg \left(c \leq 5.1 \cdot 10^{-55}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if c < -1.9000000000000001e-5 or 5.09999999999999995e-55 < c Initial program 67.3%
Taylor expanded in c around inf 63.4%
if -1.9000000000000001e-5 < c < 5.09999999999999995e-55Initial program 83.8%
Taylor expanded in b around 0 72.8%
Taylor expanded in j around 0 56.9%
Final simplification60.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -5.5e+20) (not (<= b 1.65e+94))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5.5e+20) || !(b <= 1.65e+94)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-5.5d+20)) .or. (.not. (b <= 1.65d+94))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5.5e+20) || !(b <= 1.65e+94)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -5.5e+20) or not (b <= 1.65e+94): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -5.5e+20) || !(b <= 1.65e+94)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -5.5e+20) || ~((b <= 1.65e+94))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -5.5e+20], N[Not[LessEqual[b, 1.65e+94]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{+20} \lor \neg \left(b \leq 1.65 \cdot 10^{+94}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -5.5e20 or 1.65e94 < b Initial program 72.5%
Taylor expanded in b around inf 66.6%
*-commutative66.6%
Simplified66.6%
if -5.5e20 < b < 1.65e94Initial program 75.9%
Taylor expanded in a around inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
Simplified52.7%
Final simplification58.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -1.12e+198) (* (* z c) (- b)) (if (<= b 1.05e+208) (* a (- (* c j) (* x t))) (* c (* z (- b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.12e+198) {
tmp = (z * c) * -b;
} else if (b <= 1.05e+208) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = c * (z * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-1.12d+198)) then
tmp = (z * c) * -b
else if (b <= 1.05d+208) then
tmp = a * ((c * j) - (x * t))
else
tmp = c * (z * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.12e+198) {
tmp = (z * c) * -b;
} else if (b <= 1.05e+208) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1.12e+198: tmp = (z * c) * -b elif b <= 1.05e+208: tmp = a * ((c * j) - (x * t)) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1.12e+198) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (b <= 1.05e+208) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1.12e+198) tmp = (z * c) * -b; elseif (b <= 1.05e+208) tmp = a * ((c * j) - (x * t)); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.12e+198], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[b, 1.05e+208], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.12 \cdot 10^{+198}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+208}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if b < -1.1199999999999999e198Initial program 73.0%
Taylor expanded in a around -inf 66.2%
Simplified63.0%
Taylor expanded in b around -inf 82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in t around 0 63.8%
associate-*r*63.8%
neg-mul-163.8%
Simplified63.8%
if -1.1199999999999999e198 < b < 1.0499999999999999e208Initial program 74.0%
Taylor expanded in a around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
if 1.0499999999999999e208 < b Initial program 80.8%
Taylor expanded in a around -inf 72.7%
Simplified72.7%
Taylor expanded in z around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in b around inf 63.3%
mul-1-neg63.3%
*-commutative63.3%
associate-*r*72.0%
*-commutative72.0%
distribute-rgt-neg-out72.0%
distribute-rgt-neg-in72.0%
Simplified72.0%
Final simplification52.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -9.8) (* j (* a c)) (if (<= c 5.1e-54) (* t (* x (- a))) (* 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 (c <= -9.8) {
tmp = j * (a * c);
} else if (c <= 5.1e-54) {
tmp = t * (x * -a);
} 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 (c <= (-9.8d0)) then
tmp = j * (a * c)
else if (c <= 5.1d-54) then
tmp = t * (x * -a)
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 (c <= -9.8) {
tmp = j * (a * c);
} else if (c <= 5.1e-54) {
tmp = t * (x * -a);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -9.8: tmp = j * (a * c) elif c <= 5.1e-54: tmp = t * (x * -a) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -9.8) tmp = Float64(j * Float64(a * c)); elseif (c <= 5.1e-54) tmp = Float64(t * Float64(x * Float64(-a))); 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 (c <= -9.8) tmp = j * (a * c); elseif (c <= 5.1e-54) tmp = t * (x * -a); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -9.8], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.1e-54], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9.8:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;c \leq 5.1 \cdot 10^{-54}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -9.8000000000000007Initial program 70.3%
Taylor expanded in a around inf 46.2%
+-commutative46.2%
mul-1-neg46.2%
unsub-neg46.2%
Simplified46.2%
Taylor expanded in c around inf 39.3%
associate-*r*42.4%
Simplified42.4%
if -9.8000000000000007 < c < 5.1000000000000001e-54Initial program 83.4%
Taylor expanded in a around -inf 68.6%
Simplified68.6%
Taylor expanded in z around inf 53.5%
+-commutative53.5%
mul-1-neg53.5%
unsub-neg53.5%
*-commutative53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in t around inf 38.9%
mul-1-neg38.9%
*-commutative38.9%
associate-*r*37.2%
*-commutative37.2%
distribute-rgt-neg-out37.2%
*-commutative37.2%
distribute-rgt-neg-in37.2%
Simplified37.2%
if 5.1000000000000001e-54 < c Initial program 65.0%
Taylor expanded in a around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
Taylor expanded in c around inf 41.9%
Final simplification39.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -2.15e-52) (not (<= j 1.3e-24))) (* c (* a j)) (* y (* x z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.15e-52) || !(j <= 1.3e-24)) {
tmp = c * (a * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-2.15d-52)) .or. (.not. (j <= 1.3d-24))) then
tmp = c * (a * j)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.15e-52) || !(j <= 1.3e-24)) {
tmp = c * (a * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -2.15e-52) or not (j <= 1.3e-24): tmp = c * (a * j) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -2.15e-52) || !(j <= 1.3e-24)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -2.15e-52) || ~((j <= 1.3e-24))) tmp = c * (a * j); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -2.15e-52], N[Not[LessEqual[j, 1.3e-24]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.15 \cdot 10^{-52} \lor \neg \left(j \leq 1.3 \cdot 10^{-24}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if j < -2.1500000000000002e-52 or 1.3e-24 < j Initial program 75.9%
Taylor expanded in a around -inf 61.5%
Simplified64.3%
Taylor expanded in c around inf 47.9%
associate-*r*49.5%
mul-1-neg49.5%
unsub-neg49.5%
associate-/l*48.9%
Simplified48.9%
Taylor expanded in a around inf 37.9%
associate-*r*36.4%
*-commutative36.4%
associate-*l*41.0%
Simplified41.0%
if -2.1500000000000002e-52 < j < 1.3e-24Initial program 72.5%
Taylor expanded in y around inf 36.6%
+-commutative36.6%
mul-1-neg36.6%
unsub-neg36.6%
*-commutative36.6%
Simplified36.6%
Taylor expanded in z around inf 33.2%
*-commutative33.2%
Simplified33.2%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.3e+51) (not (<= j 1.8e-58))) (* c (* a j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.3e+51) || !(j <= 1.8e-58)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1.3d+51)) .or. (.not. (j <= 1.8d-58))) then
tmp = c * (a * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.3e+51) || !(j <= 1.8e-58)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.3e+51) or not (j <= 1.8e-58): tmp = c * (a * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.3e+51) || !(j <= 1.8e-58)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.3e+51) || ~((j <= 1.8e-58))) tmp = c * (a * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.3e+51], N[Not[LessEqual[j, 1.8e-58]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.3 \cdot 10^{+51} \lor \neg \left(j \leq 1.8 \cdot 10^{-58}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -1.3000000000000001e51 or 1.80000000000000005e-58 < j Initial program 75.6%
Taylor expanded in a around -inf 60.8%
Simplified64.0%
Taylor expanded in c around inf 48.3%
associate-*r*50.2%
mul-1-neg50.2%
unsub-neg50.2%
associate-/l*48.8%
Simplified48.8%
Taylor expanded in a around inf 39.3%
associate-*r*37.6%
*-commutative37.6%
associate-*l*42.5%
Simplified42.5%
if -1.3000000000000001e51 < j < 1.80000000000000005e-58Initial program 73.3%
Taylor expanded in a around -inf 69.2%
Simplified69.9%
Taylor expanded in b around -inf 45.0%
*-commutative45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in t around inf 25.9%
Final simplification34.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -6.3e-55) (not (<= c 3.1e-89))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -6.3e-55) || !(c <= 3.1e-89)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-6.3d-55)) .or. (.not. (c <= 3.1d-89))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -6.3e-55) || !(c <= 3.1e-89)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -6.3e-55) or not (c <= 3.1e-89): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -6.3e-55) || !(c <= 3.1e-89)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -6.3e-55) || ~((c <= 3.1e-89))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -6.3e-55], N[Not[LessEqual[c, 3.1e-89]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.3 \cdot 10^{-55} \lor \neg \left(c \leq 3.1 \cdot 10^{-89}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -6.2999999999999997e-55 or 3.09999999999999996e-89 < c Initial program 69.6%
Taylor expanded in a around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
Taylor expanded in c around inf 38.1%
if -6.2999999999999997e-55 < c < 3.09999999999999996e-89Initial program 82.9%
Taylor expanded in a around -inf 66.7%
Simplified67.8%
Taylor expanded in b around -inf 33.1%
*-commutative33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in t around inf 25.6%
Final simplification33.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 74.4%
Taylor expanded in a around inf 44.7%
+-commutative44.7%
mul-1-neg44.7%
unsub-neg44.7%
Simplified44.7%
Taylor expanded in c around inf 25.5%
(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 2024152
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))