
(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 (* j (- c (* t (/ x j))))))))
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 * (j * (c - (t * (x / j))));
}
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(a * Float64(j * Float64(c - Float64(t * Float64(x / j))))); 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[(a * N[(j * N[(c - N[(t * N[(x / j), $MachinePrecision]), $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}:\\
\;\;\;\;a \cdot \left(j \cdot \left(c - t \cdot \frac{x}{j}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.8%
+-commutative90.8%
fma-define90.8%
*-commutative90.8%
*-commutative90.8%
Simplified90.8%
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 48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
Simplified48.5%
Taylor expanded in j around inf 52.3%
mul-1-neg52.3%
unsub-neg52.3%
associate-/l*56.1%
Simplified56.1%
Final simplification83.7%
(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 (* j (- c (* t (/ x j))))))))
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 * (j * (c - (t * (x / j))));
}
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 * (j * (c - (t * (x / j))));
}
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 * (j * (c - (t * (x / j)))) 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(a * Float64(j * Float64(c - Float64(t * Float64(x / j))))); 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 * (j * (c - (t * (x / j)))); 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[(a * N[(j * N[(c - N[(t * N[(x / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(j \cdot \left(c - t \cdot \frac{x}{j}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.8%
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 48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
Simplified48.5%
Taylor expanded in j around inf 52.3%
mul-1-neg52.3%
unsub-neg52.3%
associate-/l*56.1%
Simplified56.1%
Final simplification83.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -4.2e+134)
t_1
(if (<= c -3700000000.0)
(* j (- (* a c) (* y i)))
(if (<= c -2.35e-209)
(* x (- (* y z) (* t a)))
(if (<= c 1.1e-150)
(* y (- (* x z) (* i j)))
(if (<= c 5e+28) (* 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -4.2e+134) {
tmp = t_1;
} else if (c <= -3700000000.0) {
tmp = j * ((a * c) - (y * i));
} else if (c <= -2.35e-209) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 1.1e-150) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 5e+28) {
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 = c * ((a * j) - (z * b))
if (c <= (-4.2d+134)) then
tmp = t_1
else if (c <= (-3700000000.0d0)) then
tmp = j * ((a * c) - (y * i))
else if (c <= (-2.35d-209)) then
tmp = x * ((y * z) - (t * a))
else if (c <= 1.1d-150) then
tmp = y * ((x * z) - (i * j))
else if (c <= 5d+28) 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -4.2e+134) {
tmp = t_1;
} else if (c <= -3700000000.0) {
tmp = j * ((a * c) - (y * i));
} else if (c <= -2.35e-209) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 1.1e-150) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 5e+28) {
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 = c * ((a * j) - (z * b)) tmp = 0 if c <= -4.2e+134: tmp = t_1 elif c <= -3700000000.0: tmp = j * ((a * c) - (y * i)) elif c <= -2.35e-209: tmp = x * ((y * z) - (t * a)) elif c <= 1.1e-150: tmp = y * ((x * z) - (i * j)) elif c <= 5e+28: 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(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -4.2e+134) tmp = t_1; elseif (c <= -3700000000.0) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= -2.35e-209) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= 1.1e-150) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 5e+28) 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 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -4.2e+134) tmp = t_1; elseif (c <= -3700000000.0) tmp = j * ((a * c) - (y * i)); elseif (c <= -2.35e-209) tmp = x * ((y * z) - (t * a)); elseif (c <= 1.1e-150) tmp = y * ((x * z) - (i * j)); elseif (c <= 5e+28) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.2e+134], t$95$1, If[LessEqual[c, -3700000000.0], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.35e-209], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e-150], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5e+28], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -4.2 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3700000000:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq -2.35 \cdot 10^{-209}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{-150}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 5 \cdot 10^{+28}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.2000000000000002e134 or 4.99999999999999957e28 < c Initial program 51.3%
Taylor expanded in c around inf 69.5%
if -4.2000000000000002e134 < c < -3.7e9Initial program 57.3%
*-commutative57.3%
prod-diff52.7%
*-commutative52.7%
fma-neg52.7%
*-commutative52.7%
prod-diff52.7%
*-commutative52.7%
fma-neg52.7%
associate-+l+52.7%
*-commutative52.7%
fma-neg52.7%
distribute-rgt-neg-in52.7%
*-commutative52.7%
*-commutative52.7%
Applied egg-rr52.7%
distribute-rgt-neg-out52.7%
fma-neg52.7%
*-commutative52.7%
count-252.7%
Simplified52.7%
Taylor expanded in j around inf 57.7%
*-commutative57.7%
Simplified57.7%
if -3.7e9 < c < -2.35e-209Initial program 82.6%
Taylor expanded in x around inf 52.0%
*-commutative52.0%
Simplified52.0%
if -2.35e-209 < c < 1.1e-150Initial program 92.0%
Taylor expanded in y around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
Simplified67.8%
if 1.1e-150 < c < 4.99999999999999957e28Initial program 89.4%
Taylor expanded in b around inf 54.0%
*-commutative54.0%
Simplified54.0%
Final simplification62.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z c))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.6e-15)
t_2
(if (<= j -1.42e-179)
(* t (- (* b i) (* x a)))
(if (<= j 1.35e-15) (- (* x (- (* y z) (* t a))) t_1) (- 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 = b * (z * c);
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.6e-15) {
tmp = t_2;
} else if (j <= -1.42e-179) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 1.35e-15) {
tmp = (x * ((y * z) - (t * a))) - t_1;
} else {
tmp = t_2 - 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) :: t_2
real(8) :: tmp
t_1 = b * (z * c)
t_2 = j * ((a * c) - (y * i))
if (j <= (-2.6d-15)) then
tmp = t_2
else if (j <= (-1.42d-179)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 1.35d-15) then
tmp = (x * ((y * z) - (t * a))) - t_1
else
tmp = t_2 - 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 * (z * c);
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.6e-15) {
tmp = t_2;
} else if (j <= -1.42e-179) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 1.35e-15) {
tmp = (x * ((y * z) - (t * a))) - t_1;
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * c) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.6e-15: tmp = t_2 elif j <= -1.42e-179: tmp = t * ((b * i) - (x * a)) elif j <= 1.35e-15: tmp = (x * ((y * z) - (t * a))) - t_1 else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * c)) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.6e-15) tmp = t_2; elseif (j <= -1.42e-179) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 1.35e-15) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - t_1); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * c); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.6e-15) tmp = t_2; elseif (j <= -1.42e-179) tmp = t * ((b * i) - (x * a)); elseif (j <= 1.35e-15) tmp = (x * ((y * z) - (t * a))) - t_1; else tmp = t_2 - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.6e-15], t$95$2, If[LessEqual[j, -1.42e-179], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.35e-15], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.6 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -1.42 \cdot 10^{-179}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 1.35 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if j < -2.60000000000000004e-15Initial program 74.5%
*-commutative74.5%
prod-diff66.9%
*-commutative66.9%
fma-neg66.9%
*-commutative66.9%
prod-diff66.9%
*-commutative66.9%
fma-neg66.9%
associate-+l+66.9%
*-commutative66.9%
fma-neg66.9%
distribute-rgt-neg-in66.9%
*-commutative66.9%
*-commutative66.9%
Applied egg-rr66.9%
distribute-rgt-neg-out66.9%
fma-neg66.9%
*-commutative66.9%
count-266.9%
Simplified66.9%
Taylor expanded in j around inf 65.0%
*-commutative65.0%
Simplified65.0%
if -2.60000000000000004e-15 < j < -1.42e-179Initial program 76.3%
add-cube-cbrt75.9%
pow375.9%
fma-neg75.9%
*-commutative75.9%
distribute-rgt-neg-in75.9%
Applied egg-rr75.9%
Taylor expanded in t around -inf 58.7%
associate-*r*58.7%
neg-mul-158.7%
*-commutative58.7%
*-commutative58.7%
Simplified58.7%
if -1.42e-179 < j < 1.35000000000000005e-15Initial program 71.4%
Taylor expanded in j around 0 76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in c around inf 68.0%
if 1.35000000000000005e-15 < j Initial program 68.8%
Taylor expanded in x around 0 74.1%
Taylor expanded in t around 0 65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* y i) (* a c)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= j -1.75e-40)
(- (* b (* t i)) t_1)
(if (<= j 3.3e-5) (+ (* x (- (* y z) (* t a))) t_2) (- 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 * ((y * i) - (a * c));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (j <= -1.75e-40) {
tmp = (b * (t * i)) - t_1;
} else if (j <= 3.3e-5) {
tmp = (x * ((y * z) - (t * a))) + t_2;
} else {
tmp = t_2 - 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) :: t_2
real(8) :: tmp
t_1 = j * ((y * i) - (a * c))
t_2 = b * ((t * i) - (z * c))
if (j <= (-1.75d-40)) then
tmp = (b * (t * i)) - t_1
else if (j <= 3.3d-5) then
tmp = (x * ((y * z) - (t * a))) + t_2
else
tmp = t_2 - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((y * i) - (a * c));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (j <= -1.75e-40) {
tmp = (b * (t * i)) - t_1;
} else if (j <= 3.3e-5) {
tmp = (x * ((y * z) - (t * a))) + t_2;
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((y * i) - (a * c)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if j <= -1.75e-40: tmp = (b * (t * i)) - t_1 elif j <= 3.3e-5: tmp = (x * ((y * z) - (t * a))) + t_2 else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(y * i) - Float64(a * c))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (j <= -1.75e-40) tmp = Float64(Float64(b * Float64(t * i)) - t_1); elseif (j <= 3.3e-5) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_2); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((y * i) - (a * c)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (j <= -1.75e-40) tmp = (b * (t * i)) - t_1; elseif (j <= 3.3e-5) tmp = (x * ((y * z) - (t * a))) + t_2; else tmp = t_2 - 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[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.75e-40], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[j, 3.3e-5], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot i - a \cdot c\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{-40}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - t\_1\\
\mathbf{elif}\;j \leq 3.3 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if j < -1.7500000000000001e-40Initial program 74.3%
Taylor expanded in x around 0 70.9%
Taylor expanded in z around 0 72.3%
*-commutative72.3%
associate-*r*72.3%
neg-mul-172.3%
*-commutative72.3%
Simplified72.3%
if -1.7500000000000001e-40 < j < 3.3000000000000003e-5Initial program 72.8%
Taylor expanded in j around 0 75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
if 3.3000000000000003e-5 < j Initial program 68.8%
Taylor expanded in x around 0 74.1%
Final simplification74.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* y i) (* a c)))))
(if (<= j -8.8e-156)
(- (* b (* t i)) t_1)
(if (<= j 2.05e-25)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(- (* 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 = j * ((y * i) - (a * c));
double tmp;
if (j <= -8.8e-156) {
tmp = (b * (t * i)) - t_1;
} else if (j <= 2.05e-25) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else {
tmp = (b * ((t * i) - (z * c))) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((y * i) - (a * c))
if (j <= (-8.8d-156)) then
tmp = (b * (t * i)) - t_1
else if (j <= 2.05d-25) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else
tmp = (b * ((t * i) - (z * c))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((y * i) - (a * c));
double tmp;
if (j <= -8.8e-156) {
tmp = (b * (t * i)) - t_1;
} else if (j <= 2.05e-25) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else {
tmp = (b * ((t * i) - (z * c))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((y * i) - (a * c)) tmp = 0 if j <= -8.8e-156: tmp = (b * (t * i)) - t_1 elif j <= 2.05e-25: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) else: tmp = (b * ((t * i) - (z * c))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(y * i) - Float64(a * c))) tmp = 0.0 if (j <= -8.8e-156) tmp = Float64(Float64(b * Float64(t * i)) - t_1); elseif (j <= 2.05e-25) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((y * i) - (a * c)); tmp = 0.0; if (j <= -8.8e-156) tmp = (b * (t * i)) - t_1; elseif (j <= 2.05e-25) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); else tmp = (b * ((t * i) - (z * c))) - 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[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8.8e-156], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[j, 2.05e-25], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{if}\;j \leq -8.8 \cdot 10^{-156}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - t\_1\\
\mathbf{elif}\;j \leq 2.05 \cdot 10^{-25}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - t\_1\\
\end{array}
\end{array}
if j < -8.7999999999999996e-156Initial program 74.9%
Taylor expanded in x around 0 66.4%
Taylor expanded in z around 0 66.6%
*-commutative66.6%
associate-*r*66.6%
neg-mul-166.6%
*-commutative66.6%
Simplified66.6%
if -8.7999999999999996e-156 < j < 2.04999999999999994e-25Initial program 71.0%
Taylor expanded in j around 0 77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in c around inf 68.6%
if 2.04999999999999994e-25 < j Initial program 70.3%
Taylor expanded in x around 0 73.7%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.05e+123)
(* z (* b (- c)))
(if (<= c -3.3e-211)
(* a (* t (- x)))
(if (<= c 3.5e-148)
(* (* i j) (- y))
(if (<= c 1.15e+29) (* b (* t i)) (* j (* a c)))))))
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.05e+123) {
tmp = z * (b * -c);
} else if (c <= -3.3e-211) {
tmp = a * (t * -x);
} else if (c <= 3.5e-148) {
tmp = (i * j) * -y;
} else if (c <= 1.15e+29) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-1.05d+123)) then
tmp = z * (b * -c)
else if (c <= (-3.3d-211)) then
tmp = a * (t * -x)
else if (c <= 3.5d-148) then
tmp = (i * j) * -y
else if (c <= 1.15d+29) then
tmp = b * (t * i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.05e+123) {
tmp = z * (b * -c);
} else if (c <= -3.3e-211) {
tmp = a * (t * -x);
} else if (c <= 3.5e-148) {
tmp = (i * j) * -y;
} else if (c <= 1.15e+29) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.05e+123: tmp = z * (b * -c) elif c <= -3.3e-211: tmp = a * (t * -x) elif c <= 3.5e-148: tmp = (i * j) * -y elif c <= 1.15e+29: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.05e+123) tmp = Float64(z * Float64(b * Float64(-c))); elseif (c <= -3.3e-211) tmp = Float64(a * Float64(t * Float64(-x))); elseif (c <= 3.5e-148) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (c <= 1.15e+29) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.05e+123) tmp = z * (b * -c); elseif (c <= -3.3e-211) tmp = a * (t * -x); elseif (c <= 3.5e-148) tmp = (i * j) * -y; elseif (c <= 1.15e+29) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.05e+123], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.3e-211], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.5e-148], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[c, 1.15e+29], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.05 \cdot 10^{+123}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{-148}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{+29}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -1.04999999999999997e123Initial program 49.2%
Taylor expanded in x around 0 57.3%
Taylor expanded in z around inf 41.7%
associate-*r*41.7%
neg-mul-141.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in b around 0 41.7%
neg-mul-141.7%
associate-*r*50.4%
distribute-rgt-neg-in50.4%
Simplified50.4%
if -1.04999999999999997e123 < c < -3.3000000000000002e-211Initial program 74.7%
Taylor expanded in a around inf 38.7%
+-commutative38.7%
mul-1-neg38.7%
unsub-neg38.7%
Simplified38.7%
Taylor expanded in c around 0 30.1%
mul-1-neg30.1%
distribute-lft-neg-out30.1%
*-commutative30.1%
Simplified30.1%
if -3.3000000000000002e-211 < c < 3.5e-148Initial program 92.0%
Taylor expanded in y around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in z around 0 40.1%
mul-1-neg40.1%
distribute-lft-neg-out40.1%
*-commutative40.1%
Simplified40.1%
if 3.5e-148 < c < 1.1500000000000001e29Initial program 89.4%
Taylor expanded in x around 0 72.1%
Taylor expanded in t around inf 51.3%
*-commutative51.3%
Simplified51.3%
if 1.1500000000000001e29 < c Initial program 54.5%
Taylor expanded in a around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
Simplified59.2%
Taylor expanded in c around inf 40.3%
associate-*r*48.4%
Simplified48.4%
Final simplification42.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -9.8e+138)
(* b (* z (- c)))
(if (<= c -3e-211)
(* a (* t (- x)))
(if (<= c 2e-151)
(* (* i j) (- y))
(if (<= c 1.52e+29) (* b (* t i)) (* j (* a c)))))))
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.8e+138) {
tmp = b * (z * -c);
} else if (c <= -3e-211) {
tmp = a * (t * -x);
} else if (c <= 2e-151) {
tmp = (i * j) * -y;
} else if (c <= 1.52e+29) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-9.8d+138)) then
tmp = b * (z * -c)
else if (c <= (-3d-211)) then
tmp = a * (t * -x)
else if (c <= 2d-151) then
tmp = (i * j) * -y
else if (c <= 1.52d+29) then
tmp = b * (t * i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -9.8e+138) {
tmp = b * (z * -c);
} else if (c <= -3e-211) {
tmp = a * (t * -x);
} else if (c <= 2e-151) {
tmp = (i * j) * -y;
} else if (c <= 1.52e+29) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -9.8e+138: tmp = b * (z * -c) elif c <= -3e-211: tmp = a * (t * -x) elif c <= 2e-151: tmp = (i * j) * -y elif c <= 1.52e+29: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -9.8e+138) tmp = Float64(b * Float64(z * Float64(-c))); elseif (c <= -3e-211) tmp = Float64(a * Float64(t * Float64(-x))); elseif (c <= 2e-151) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (c <= 1.52e+29) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -9.8e+138) tmp = b * (z * -c); elseif (c <= -3e-211) tmp = a * (t * -x); elseif (c <= 2e-151) tmp = (i * j) * -y; elseif (c <= 1.52e+29) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -9.8e+138], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3e-211], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2e-151], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[c, 1.52e+29], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9.8 \cdot 10^{+138}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;c \leq -3 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-151}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;c \leq 1.52 \cdot 10^{+29}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -9.79999999999999966e138Initial program 45.9%
Taylor expanded in x around 0 55.0%
Taylor expanded in z around inf 46.3%
associate-*r*46.3%
neg-mul-146.3%
*-commutative46.3%
Simplified46.3%
if -9.79999999999999966e138 < c < -3.00000000000000005e-211Initial program 74.8%
Taylor expanded in a around inf 39.4%
+-commutative39.4%
mul-1-neg39.4%
unsub-neg39.4%
Simplified39.4%
Taylor expanded in c around 0 30.0%
mul-1-neg30.0%
distribute-lft-neg-out30.0%
*-commutative30.0%
Simplified30.0%
if -3.00000000000000005e-211 < c < 1.9999999999999999e-151Initial program 92.0%
Taylor expanded in y around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in z around 0 40.1%
mul-1-neg40.1%
distribute-lft-neg-out40.1%
*-commutative40.1%
Simplified40.1%
if 1.9999999999999999e-151 < c < 1.52e29Initial program 89.4%
Taylor expanded in x around 0 72.1%
Taylor expanded in t around inf 51.3%
*-commutative51.3%
Simplified51.3%
if 1.52e29 < c Initial program 54.5%
Taylor expanded in a around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
Simplified59.2%
Taylor expanded in c around inf 40.3%
associate-*r*48.4%
Simplified48.4%
Final simplification41.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -8e-156) (not (<= j 2.05e-25))) (- (* b (* t i)) (* j (- (* y i) (* a c)))) (- (* x (- (* y z) (* t a))) (* b (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -8e-156) || !(j <= 2.05e-25)) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-8d-156)) .or. (.not. (j <= 2.05d-25))) then
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)))
else
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -8e-156) || !(j <= 2.05e-25)) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -8e-156) or not (j <= 2.05e-25): tmp = (b * (t * i)) - (j * ((y * i) - (a * c))) else: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -8e-156) || !(j <= 2.05e-25)) tmp = Float64(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -8e-156) || ~((j <= 2.05e-25))) tmp = (b * (t * i)) - (j * ((y * i) - (a * c))); else tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -8e-156], N[Not[LessEqual[j, 2.05e-25]], $MachinePrecision]], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8 \cdot 10^{-156} \lor \neg \left(j \leq 2.05 \cdot 10^{-25}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -8.00000000000000032e-156 or 2.04999999999999994e-25 < j Initial program 73.1%
Taylor expanded in x around 0 69.2%
Taylor expanded in z around 0 68.8%
*-commutative68.8%
associate-*r*68.8%
neg-mul-168.8%
*-commutative68.8%
Simplified68.8%
if -8.00000000000000032e-156 < j < 2.04999999999999994e-25Initial program 71.0%
Taylor expanded in j around 0 77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in c around inf 68.6%
Final simplification68.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.25e+123) (not (<= t 2.3e+65))) (* t (- (* b i) (* x a))) (- (* j (- (* a c) (* y i))) (* b (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.25e+123) || !(t <= 2.3e+65)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-1.25d+123)) .or. (.not. (t <= 2.3d+65))) then
tmp = t * ((b * i) - (x * a))
else
tmp = (j * ((a * c) - (y * i))) - (b * (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.25e+123) || !(t <= 2.3e+65)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.25e+123) or not (t <= 2.3e+65): tmp = t * ((b * i) - (x * a)) else: tmp = (j * ((a * c) - (y * i))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.25e+123) || !(t <= 2.3e+65)) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.25e+123) || ~((t <= 2.3e+65))) tmp = t * ((b * i) - (x * a)); else tmp = (j * ((a * c) - (y * i))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.25e+123], N[Not[LessEqual[t, 2.3e+65]], $MachinePrecision]], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+123} \lor \neg \left(t \leq 2.3 \cdot 10^{+65}\right):\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if t < -1.24999999999999994e123 or 2.3e65 < t Initial program 65.8%
add-cube-cbrt65.6%
pow365.6%
fma-neg66.6%
*-commutative66.6%
distribute-rgt-neg-in66.6%
Applied egg-rr66.6%
Taylor expanded in t around -inf 70.0%
associate-*r*70.0%
neg-mul-170.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
if -1.24999999999999994e123 < t < 2.3e65Initial program 76.6%
Taylor expanded in x around 0 62.5%
Taylor expanded in t around 0 56.1%
*-commutative56.1%
*-commutative56.1%
Simplified56.1%
Final simplification61.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -2.25e-14)
t_1
(if (<= j -3.4e-290)
(* t (- (* b i) (* x a)))
(if (<= j 550.0) (* z (- (* x y) (* b 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.25e-14) {
tmp = t_1;
} else if (j <= -3.4e-290) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 550.0) {
tmp = z * ((x * y) - (b * 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 = j * ((a * c) - (y * i))
if (j <= (-2.25d-14)) then
tmp = t_1
else if (j <= (-3.4d-290)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 550.0d0) then
tmp = z * ((x * y) - (b * 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.25e-14) {
tmp = t_1;
} else if (j <= -3.4e-290) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 550.0) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.25e-14: tmp = t_1 elif j <= -3.4e-290: tmp = t * ((b * i) - (x * a)) elif j <= 550.0: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.25e-14) tmp = t_1; elseif (j <= -3.4e-290) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 550.0) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.25e-14) tmp = t_1; elseif (j <= -3.4e-290) tmp = t * ((b * i) - (x * a)); elseif (j <= 550.0) tmp = z * ((x * y) - (b * 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.25e-14], t$95$1, If[LessEqual[j, -3.4e-290], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 550.0], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.25 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{-290}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 550:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.2499999999999999e-14 or 550 < j Initial program 71.4%
*-commutative71.4%
prod-diff66.5%
*-commutative66.5%
fma-neg66.5%
*-commutative66.5%
prod-diff66.5%
*-commutative66.5%
fma-neg66.5%
associate-+l+66.5%
*-commutative66.5%
fma-neg66.5%
distribute-rgt-neg-in66.5%
*-commutative66.5%
*-commutative66.5%
Applied egg-rr66.5%
distribute-rgt-neg-out66.5%
fma-neg66.5%
*-commutative66.5%
count-266.5%
Simplified66.5%
Taylor expanded in j around inf 65.5%
*-commutative65.5%
Simplified65.5%
if -2.2499999999999999e-14 < j < -3.39999999999999984e-290Initial program 67.3%
add-cube-cbrt67.1%
pow367.0%
fma-neg67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
Applied egg-rr67.0%
Taylor expanded in t around -inf 59.2%
associate-*r*59.2%
neg-mul-159.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
if -3.39999999999999984e-290 < j < 550Initial program 79.0%
Taylor expanded in z around inf 55.6%
*-commutative55.6%
Simplified55.6%
Final simplification61.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -0.05)
t_1
(if (<= j -8.1e-290)
(* x (- (* y z) (* t a)))
(if (<= j 245.0) (* z (- (* x y) (* b 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -0.05) {
tmp = t_1;
} else if (j <= -8.1e-290) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 245.0) {
tmp = z * ((x * y) - (b * 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 = j * ((a * c) - (y * i))
if (j <= (-0.05d0)) then
tmp = t_1
else if (j <= (-8.1d-290)) then
tmp = x * ((y * z) - (t * a))
else if (j <= 245.0d0) then
tmp = z * ((x * y) - (b * 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -0.05) {
tmp = t_1;
} else if (j <= -8.1e-290) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 245.0) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -0.05: tmp = t_1 elif j <= -8.1e-290: tmp = x * ((y * z) - (t * a)) elif j <= 245.0: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -0.05) tmp = t_1; elseif (j <= -8.1e-290) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (j <= 245.0) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -0.05) tmp = t_1; elseif (j <= -8.1e-290) tmp = x * ((y * z) - (t * a)); elseif (j <= 245.0) tmp = z * ((x * y) - (b * 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -0.05], t$95$1, If[LessEqual[j, -8.1e-290], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 245.0], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -0.05:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -8.1 \cdot 10^{-290}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;j \leq 245:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -0.050000000000000003 or 245 < j Initial program 71.4%
*-commutative71.4%
prod-diff66.5%
*-commutative66.5%
fma-neg66.5%
*-commutative66.5%
prod-diff66.5%
*-commutative66.5%
fma-neg66.5%
associate-+l+66.5%
*-commutative66.5%
fma-neg66.5%
distribute-rgt-neg-in66.5%
*-commutative66.5%
*-commutative66.5%
Applied egg-rr66.5%
distribute-rgt-neg-out66.5%
fma-neg66.5%
*-commutative66.5%
count-266.5%
Simplified66.5%
Taylor expanded in j around inf 65.5%
*-commutative65.5%
Simplified65.5%
if -0.050000000000000003 < j < -8.10000000000000053e-290Initial program 67.3%
Taylor expanded in x around inf 50.9%
*-commutative50.9%
Simplified50.9%
if -8.10000000000000053e-290 < j < 245Initial program 79.0%
Taylor expanded in z around inf 55.6%
*-commutative55.6%
Simplified55.6%
Final simplification59.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -1e-58)
t_1
(if (<= a 2.25e-242)
(* y (* x z))
(if (<= a 1.4e+53) (* (* i j) (- 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-58) {
tmp = t_1;
} else if (a <= 2.25e-242) {
tmp = y * (x * z);
} else if (a <= 1.4e+53) {
tmp = (i * j) * -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-58)) then
tmp = t_1
else if (a <= 2.25d-242) then
tmp = y * (x * z)
else if (a <= 1.4d+53) then
tmp = (i * j) * -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-58) {
tmp = t_1;
} else if (a <= 2.25e-242) {
tmp = y * (x * z);
} else if (a <= 1.4e+53) {
tmp = (i * j) * -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-58: tmp = t_1 elif a <= 2.25e-242: tmp = y * (x * z) elif a <= 1.4e+53: tmp = (i * j) * -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-58) tmp = t_1; elseif (a <= 2.25e-242) tmp = Float64(y * Float64(x * z)); elseif (a <= 1.4e+53) tmp = Float64(Float64(i * j) * Float64(-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-58) tmp = t_1; elseif (a <= 2.25e-242) tmp = y * (x * z); elseif (a <= 1.4e+53) tmp = (i * j) * -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-58], t$95$1, If[LessEqual[a, 2.25e-242], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+53], N[(N[(i * j), $MachinePrecision] * (-y)), $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^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.25 \cdot 10^{-242}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+53}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1e-58 or 1.4e53 < a Initial program 67.6%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
Simplified56.5%
if -1e-58 < a < 2.2499999999999999e-242Initial program 74.7%
Taylor expanded in y around inf 61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in z around inf 41.9%
if 2.2499999999999999e-242 < a < 1.4e53Initial program 81.3%
Taylor expanded in y around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in z around 0 34.4%
mul-1-neg34.4%
distribute-lft-neg-out34.4%
*-commutative34.4%
Simplified34.4%
Final simplification48.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -6.1)
(* a (* c j))
(if (<= c 1.22e-160)
(* y (* x z))
(if (<= c 2.05e+29) (* b (* t i)) (* j (* a c))))))
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.1) {
tmp = a * (c * j);
} else if (c <= 1.22e-160) {
tmp = y * (x * z);
} else if (c <= 2.05e+29) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-6.1d0)) then
tmp = a * (c * j)
else if (c <= 1.22d-160) then
tmp = y * (x * z)
else if (c <= 2.05d+29) then
tmp = b * (t * i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -6.1) {
tmp = a * (c * j);
} else if (c <= 1.22e-160) {
tmp = y * (x * z);
} else if (c <= 2.05e+29) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -6.1: tmp = a * (c * j) elif c <= 1.22e-160: tmp = y * (x * z) elif c <= 2.05e+29: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -6.1) tmp = Float64(a * Float64(c * j)); elseif (c <= 1.22e-160) tmp = Float64(y * Float64(x * z)); elseif (c <= 2.05e+29) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -6.1) tmp = a * (c * j); elseif (c <= 1.22e-160) tmp = y * (x * z); elseif (c <= 2.05e+29) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -6.1], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.22e-160], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.05e+29], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.1:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 1.22 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+29}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -6.0999999999999996Initial program 53.1%
Taylor expanded in a around inf 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
Simplified38.3%
Taylor expanded in c around inf 31.0%
if -6.0999999999999996 < c < 1.22000000000000003e-160Initial program 86.8%
Taylor expanded in y around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in z around inf 34.5%
if 1.22000000000000003e-160 < c < 2.0500000000000002e29Initial program 89.8%
Taylor expanded in x around 0 71.0%
Taylor expanded in t around inf 49.0%
*-commutative49.0%
Simplified49.0%
if 2.0500000000000002e29 < c Initial program 54.5%
Taylor expanded in a around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
Simplified59.2%
Taylor expanded in c around inf 40.3%
associate-*r*48.4%
Simplified48.4%
Final simplification39.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= c -61.0)
t_1
(if (<= c 3.45e-161)
(* y (* x z))
(if (<= c 1.5e+30) (* b (* t i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (c <= -61.0) {
tmp = t_1;
} else if (c <= 3.45e-161) {
tmp = y * (x * z);
} else if (c <= 1.5e+30) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (c <= (-61.0d0)) then
tmp = t_1
else if (c <= 3.45d-161) then
tmp = y * (x * z)
else if (c <= 1.5d+30) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (c <= -61.0) {
tmp = t_1;
} else if (c <= 3.45e-161) {
tmp = y * (x * z);
} else if (c <= 1.5e+30) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if c <= -61.0: tmp = t_1 elif c <= 3.45e-161: tmp = y * (x * z) elif c <= 1.5e+30: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (c <= -61.0) tmp = t_1; elseif (c <= 3.45e-161) tmp = Float64(y * Float64(x * z)); elseif (c <= 1.5e+30) tmp = Float64(b * Float64(t * i)); 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); tmp = 0.0; if (c <= -61.0) tmp = t_1; elseif (c <= 3.45e-161) tmp = y * (x * z); elseif (c <= 1.5e+30) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -61.0], t$95$1, If[LessEqual[c, 3.45e-161], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.5e+30], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -61:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.45 \cdot 10^{-161}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{+30}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -61 or 1.49999999999999989e30 < c Initial program 53.8%
Taylor expanded in a around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
Taylor expanded in c around inf 35.6%
if -61 < c < 3.45000000000000001e-161Initial program 86.8%
Taylor expanded in y around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in z around inf 34.5%
if 3.45000000000000001e-161 < c < 1.49999999999999989e30Initial program 89.8%
Taylor expanded in x around 0 71.0%
Taylor expanded in t around inf 49.0%
*-commutative49.0%
Simplified49.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -0.000115) (not (<= j 3.5e-5))) (* 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 ((j <= -0.000115) || !(j <= 3.5e-5)) {
tmp = j * ((a * c) - (y * i));
} 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 ((j <= (-0.000115d0)) .or. (.not. (j <= 3.5d-5))) then
tmp = j * ((a * c) - (y * i))
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 ((j <= -0.000115) || !(j <= 3.5e-5)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -0.000115) or not (j <= 3.5e-5): tmp = j * ((a * c) - (y * i)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -0.000115) || !(j <= 3.5e-5)) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); 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 ((j <= -0.000115) || ~((j <= 3.5e-5))) tmp = j * ((a * c) - (y * i)); 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[j, -0.000115], N[Not[LessEqual[j, 3.5e-5]], $MachinePrecision]], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -0.000115 \lor \neg \left(j \leq 3.5 \cdot 10^{-5}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if j < -1.15e-4 or 3.4999999999999997e-5 < j Initial program 71.9%
*-commutative71.9%
prod-diff67.0%
*-commutative67.0%
fma-neg67.0%
*-commutative67.0%
prod-diff67.0%
*-commutative67.0%
fma-neg67.0%
associate-+l+67.0%
*-commutative67.0%
fma-neg67.0%
distribute-rgt-neg-in67.0%
*-commutative67.0%
*-commutative67.0%
Applied egg-rr67.0%
distribute-rgt-neg-out67.0%
fma-neg67.0%
*-commutative67.0%
count-267.0%
Simplified67.0%
Taylor expanded in j around inf 64.5%
*-commutative64.5%
Simplified64.5%
if -1.15e-4 < j < 3.4999999999999997e-5Initial program 72.8%
Taylor expanded in x around inf 48.6%
*-commutative48.6%
Simplified48.6%
Final simplification56.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.7e-25) (not (<= j 370.0))) (* j (- (* a c) (* y i))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.7e-25) || !(j <= 370.0)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1.7d-25)) .or. (.not. (j <= 370.0d0))) then
tmp = j * ((a * c) - (y * i))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.7e-25) || !(j <= 370.0)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.7e-25) or not (j <= 370.0): tmp = j * ((a * c) - (y * i)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.7e-25) || !(j <= 370.0)) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.7e-25) || ~((j <= 370.0))) tmp = j * ((a * c) - (y * i)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.7e-25], N[Not[LessEqual[j, 370.0]], $MachinePrecision]], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.7 \cdot 10^{-25} \lor \neg \left(j \leq 370\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.70000000000000001e-25 or 370 < j Initial program 72.1%
*-commutative72.1%
prod-diff66.5%
*-commutative66.5%
fma-neg66.5%
*-commutative66.5%
prod-diff66.5%
*-commutative66.5%
fma-neg66.5%
associate-+l+66.5%
*-commutative66.5%
fma-neg66.5%
distribute-rgt-neg-in66.5%
*-commutative66.5%
*-commutative66.5%
Applied egg-rr66.5%
distribute-rgt-neg-out66.5%
fma-neg66.5%
*-commutative66.5%
count-266.5%
Simplified66.5%
Taylor expanded in j around inf 64.7%
*-commutative64.7%
Simplified64.7%
if -1.70000000000000001e-25 < j < 370Initial program 72.5%
Taylor expanded in b around inf 43.5%
*-commutative43.5%
Simplified43.5%
Final simplification54.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -6e+169) (not (<= a 2.3e+121))) (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -6e+169) || !(a <= 2.3e+121)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-6d+169)) .or. (.not. (a <= 2.3d+121))) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -6e+169) || !(a <= 2.3e+121)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -6e+169) or not (a <= 2.3e+121): tmp = a * ((c * j) - (x * t)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -6e+169) || !(a <= 2.3e+121)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -6e+169) || ~((a <= 2.3e+121))) tmp = a * ((c * j) - (x * t)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -6e+169], N[Not[LessEqual[a, 2.3e+121]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6 \cdot 10^{+169} \lor \neg \left(a \leq 2.3 \cdot 10^{+121}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -5.9999999999999999e169 or 2.2999999999999999e121 < a Initial program 62.3%
Taylor expanded in a around inf 74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
Simplified74.2%
if -5.9999999999999999e169 < a < 2.2999999999999999e121Initial program 76.6%
Taylor expanded in b around inf 41.8%
*-commutative41.8%
Simplified41.8%
Final simplification51.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -7e+118) (not (<= i 1.35e-20))) (* t (* b i)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -7e+118) || !(i <= 1.35e-20)) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-7d+118)) .or. (.not. (i <= 1.35d-20))) then
tmp = t * (b * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -7e+118) || !(i <= 1.35e-20)) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -7e+118) or not (i <= 1.35e-20): tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -7e+118) || !(i <= 1.35e-20)) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -7e+118) || ~((i <= 1.35e-20))) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -7e+118], N[Not[LessEqual[i, 1.35e-20]], $MachinePrecision]], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7 \cdot 10^{+118} \lor \neg \left(i \leq 1.35 \cdot 10^{-20}\right):\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -7.00000000000000033e118 or 1.35e-20 < i Initial program 72.0%
Taylor expanded in x around 0 68.9%
Taylor expanded in t around inf 36.4%
*-commutative36.4%
Simplified36.4%
Taylor expanded in b around 0 36.4%
*-commutative36.4%
associate-*l*38.1%
*-commutative38.1%
associate-*l*37.4%
Simplified37.4%
if -7.00000000000000033e118 < i < 1.35e-20Initial program 72.6%
Taylor expanded in a around inf 47.8%
+-commutative47.8%
mul-1-neg47.8%
unsub-neg47.8%
Simplified47.8%
Taylor expanded in c around inf 29.4%
Final simplification32.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -3.8e+118) (not (<= i 2.9e-22))) (* 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 <= -3.8e+118) || !(i <= 2.9e-22)) {
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 <= (-3.8d+118)) .or. (.not. (i <= 2.9d-22))) 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 <= -3.8e+118) || !(i <= 2.9e-22)) {
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 <= -3.8e+118) or not (i <= 2.9e-22): 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 <= -3.8e+118) || !(i <= 2.9e-22)) 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 <= -3.8e+118) || ~((i <= 2.9e-22))) 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, -3.8e+118], N[Not[LessEqual[i, 2.9e-22]], $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 -3.8 \cdot 10^{+118} \lor \neg \left(i \leq 2.9 \cdot 10^{-22}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -3.80000000000000016e118 or 2.9000000000000002e-22 < i Initial program 72.0%
Taylor expanded in x around 0 68.9%
Taylor expanded in t around inf 36.4%
*-commutative36.4%
Simplified36.4%
if -3.80000000000000016e118 < i < 2.9000000000000002e-22Initial program 72.6%
Taylor expanded in a around inf 47.8%
+-commutative47.8%
mul-1-neg47.8%
unsub-neg47.8%
Simplified47.8%
Taylor expanded in c around inf 29.4%
Final simplification32.5%
(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 72.3%
Taylor expanded in a around inf 39.5%
+-commutative39.5%
mul-1-neg39.5%
unsub-neg39.5%
Simplified39.5%
Taylor expanded in c around inf 22.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024138
(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)))))