
(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 (- (* z c) (* t i))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* i (- (* t b) (* y 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 * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * 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 * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * ((t * b) - (y * 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(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * 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 * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * ((t * b) - (y * 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[(z * c), $MachinePrecision] - N[(t * i), $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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $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(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.2%
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 c around 0 20.9%
Taylor expanded in i around -inf 54.5%
associate-*r*54.5%
neg-mul-154.5%
*-commutative54.5%
Simplified54.5%
Final simplification80.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.5e+109)
t_2
(if (<= c -4.2e-15)
(- t_1 (* b (- (* z c) (* t i))))
(if (<= c 1.32e+147) (+ (- t_1 (* i (* y j))) (* b (* t i))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.5e+109) {
tmp = t_2;
} else if (c <= -4.2e-15) {
tmp = t_1 - (b * ((z * c) - (t * i)));
} else if (c <= 1.32e+147) {
tmp = (t_1 - (i * (y * j))) + (b * (t * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.5d+109)) then
tmp = t_2
else if (c <= (-4.2d-15)) then
tmp = t_1 - (b * ((z * c) - (t * i)))
else if (c <= 1.32d+147) then
tmp = (t_1 - (i * (y * j))) + (b * (t * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.5e+109) {
tmp = t_2;
} else if (c <= -4.2e-15) {
tmp = t_1 - (b * ((z * c) - (t * i)));
} else if (c <= 1.32e+147) {
tmp = (t_1 - (i * (y * j))) + (b * (t * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.5e+109: tmp = t_2 elif c <= -4.2e-15: tmp = t_1 - (b * ((z * c) - (t * i))) elif c <= 1.32e+147: tmp = (t_1 - (i * (y * j))) + (b * (t * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.5e+109) tmp = t_2; elseif (c <= -4.2e-15) tmp = Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); elseif (c <= 1.32e+147) tmp = Float64(Float64(t_1 - Float64(i * Float64(y * j))) + Float64(b * Float64(t * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.5e+109) tmp = t_2; elseif (c <= -4.2e-15) tmp = t_1 - (b * ((z * c) - (t * i))); elseif (c <= 1.32e+147) tmp = (t_1 - (i * (y * j))) + (b * (t * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.5e+109], t$95$2, If[LessEqual[c, -4.2e-15], N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.32e+147], N[(N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.5 \cdot 10^{+109}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -4.2 \cdot 10^{-15}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{elif}\;c \leq 1.32 \cdot 10^{+147}:\\
\;\;\;\;\left(t\_1 - i \cdot \left(y \cdot j\right)\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.50000000000000008e109 or 1.32000000000000006e147 < c Initial program 49.7%
Taylor expanded in c around inf 73.6%
if -1.50000000000000008e109 < c < -4.19999999999999962e-15Initial program 68.5%
Taylor expanded in j around 0 73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
if -4.19999999999999962e-15 < c < 1.32000000000000006e147Initial program 77.3%
Taylor expanded in c around 0 68.3%
Final simplification70.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -2.2e+109)
t_2
(if (<= c -1.65e-22)
(- t_1 (* b (- (* z c) (* t i))))
(if (<= c 1.38e+147) (+ t_1 (* j (- (* a c) (* y i)))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.2e+109) {
tmp = t_2;
} else if (c <= -1.65e-22) {
tmp = t_1 - (b * ((z * c) - (t * i)));
} else if (c <= 1.38e+147) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-2.2d+109)) then
tmp = t_2
else if (c <= (-1.65d-22)) then
tmp = t_1 - (b * ((z * c) - (t * i)))
else if (c <= 1.38d+147) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.2e+109) {
tmp = t_2;
} else if (c <= -1.65e-22) {
tmp = t_1 - (b * ((z * c) - (t * i)));
} else if (c <= 1.38e+147) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.2e+109: tmp = t_2 elif c <= -1.65e-22: tmp = t_1 - (b * ((z * c) - (t * i))) elif c <= 1.38e+147: tmp = t_1 + (j * ((a * c) - (y * i))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.2e+109) tmp = t_2; elseif (c <= -1.65e-22) tmp = Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); elseif (c <= 1.38e+147) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.2e+109) tmp = t_2; elseif (c <= -1.65e-22) tmp = t_1 - (b * ((z * c) - (t * i))); elseif (c <= 1.38e+147) tmp = t_1 + (j * ((a * c) - (y * i))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.2e+109], t$95$2, If[LessEqual[c, -1.65e-22], N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.38e+147], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.2 \cdot 10^{+109}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.65 \cdot 10^{-22}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{elif}\;c \leq 1.38 \cdot 10^{+147}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -2.1999999999999999e109 or 1.37999999999999991e147 < c Initial program 49.7%
Taylor expanded in c around inf 73.6%
if -2.1999999999999999e109 < c < -1.65e-22Initial program 65.7%
Taylor expanded in j around 0 70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
if -1.65e-22 < c < 1.37999999999999991e147Initial program 78.0%
Taylor expanded in b around 0 68.7%
Final simplification70.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -3.8e+85)
t_1
(if (<= c -4.8e-57)
(* t (- (* b i) (* x a)))
(if (<= c 1.38e+147)
(- (* x (- (* y z) (* t a))) (* 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.8e+85) {
tmp = t_1;
} else if (c <= -4.8e-57) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.38e+147) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (c <= (-3.8d+85)) then
tmp = t_1
else if (c <= (-4.8d-57)) then
tmp = t * ((b * i) - (x * a))
else if (c <= 1.38d+147) then
tmp = (x * ((y * z) - (t * a))) - (i * (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.8e+85) {
tmp = t_1;
} else if (c <= -4.8e-57) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.38e+147) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} 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 <= -3.8e+85: tmp = t_1 elif c <= -4.8e-57: tmp = t * ((b * i) - (x * a)) elif c <= 1.38e+147: tmp = (x * ((y * z) - (t * a))) - (i * (y * j)) 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 <= -3.8e+85) tmp = t_1; elseif (c <= -4.8e-57) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 1.38e+147) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -3.8e+85) tmp = t_1; elseif (c <= -4.8e-57) tmp = t * ((b * i) - (x * a)); elseif (c <= 1.38e+147) tmp = (x * ((y * z) - (t * a))) - (i * (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.8e+85], t$95$1, If[LessEqual[c, -4.8e-57], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.38e+147], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $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 -3.8 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4.8 \cdot 10^{-57}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 1.38 \cdot 10^{+147}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.79999999999999992e85 or 1.37999999999999991e147 < c Initial program 51.9%
Taylor expanded in c around inf 72.7%
if -3.79999999999999992e85 < c < -4.80000000000000012e-57Initial program 63.2%
Taylor expanded in t around inf 60.5%
distribute-lft-out--60.5%
Simplified60.5%
Taylor expanded in t around 0 60.5%
mul-1-neg60.5%
*-commutative60.5%
distribute-rgt-neg-out60.5%
neg-mul-160.5%
*-commutative60.5%
distribute-lft-out--60.5%
mul-1-neg60.5%
distribute-lft-neg-out60.5%
cancel-sign-sub60.5%
+-commutative60.5%
*-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
if -4.80000000000000012e-57 < c < 1.37999999999999991e147Initial program 77.9%
Taylor expanded in c around 0 69.1%
Taylor expanded in b around 0 60.6%
+-commutative60.6%
associate-*r*60.6%
neg-mul-160.6%
cancel-sign-sub-inv60.6%
Simplified60.6%
Final simplification64.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -4100000000.0) (not (<= c 1.35e+147))) (* c (- (* a j) (* z b))) (+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y 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 <= -4100000000.0) || !(c <= 1.35e+147)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-4100000000.0d0)) .or. (.not. (c <= 1.35d+147))) then
tmp = c * ((a * j) - (z * b))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4100000000.0) || !(c <= 1.35e+147)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -4100000000.0) or not (c <= 1.35e+147): tmp = c * ((a * j) - (z * b)) else: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -4100000000.0) || !(c <= 1.35e+147)) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -4100000000.0) || ~((c <= 1.35e+147))) tmp = c * ((a * j) - (z * b)); else tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -4100000000.0], N[Not[LessEqual[c, 1.35e+147]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4100000000 \lor \neg \left(c \leq 1.35 \cdot 10^{+147}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if c < -4.1e9 or 1.34999999999999999e147 < c Initial program 53.2%
Taylor expanded in c around inf 68.4%
if -4.1e9 < c < 1.34999999999999999e147Initial program 77.0%
Taylor expanded in b around 0 67.5%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.45e+40)
t_1
(if (<= i 5.1e-57)
(* z (- (* x y) (* b c)))
(if (<= i 2.5e+69) (* (* x 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.45e+40) {
tmp = t_1;
} else if (i <= 5.1e-57) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 2.5e+69) {
tmp = (x * 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 = i * ((t * b) - (y * j))
if (i <= (-1.45d+40)) then
tmp = t_1
else if (i <= 5.1d-57) then
tmp = z * ((x * y) - (b * c))
else if (i <= 2.5d+69) then
tmp = (x * 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.45e+40) {
tmp = t_1;
} else if (i <= 5.1e-57) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 2.5e+69) {
tmp = (x * a) * ((c * (j / x)) - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.45e+40: tmp = t_1 elif i <= 5.1e-57: tmp = z * ((x * y) - (b * c)) elif i <= 2.5e+69: tmp = (x * 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.45e+40) tmp = t_1; elseif (i <= 5.1e-57) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 2.5e+69) tmp = Float64(Float64(x * a) * Float64(Float64(c * Float64(j / 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.45e+40) tmp = t_1; elseif (i <= 5.1e-57) tmp = z * ((x * y) - (b * c)); elseif (i <= 2.5e+69) tmp = (x * 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.45e+40], t$95$1, If[LessEqual[i, 5.1e-57], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.5e+69], N[(N[(x * a), $MachinePrecision] * N[(N[(c * N[(j / x), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.45 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.1 \cdot 10^{-57}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+69}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(c \cdot \frac{j}{x} - t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.45000000000000009e40 or 2.50000000000000018e69 < i Initial program 58.1%
Taylor expanded in c around 0 61.6%
Taylor expanded in i around -inf 68.5%
associate-*r*68.5%
neg-mul-168.5%
*-commutative68.5%
Simplified68.5%
if -1.45000000000000009e40 < i < 5.1e-57Initial program 77.3%
Taylor expanded in z around inf 57.5%
*-commutative57.5%
Simplified57.5%
if 5.1e-57 < i < 2.50000000000000018e69Initial program 62.6%
Taylor expanded in x around inf 67.2%
Taylor expanded in a around inf 72.3%
associate-*r*76.5%
associate-/l*71.8%
Simplified71.8%
Final simplification63.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.42e+106) (not (<= i 7.5e+70))) (* i (- (* t b) (* y j))) (- (* 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 ((i <= -1.42e+106) || !(i <= 7.5e+70)) {
tmp = i * ((t * b) - (y * j));
} 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 ((i <= (-1.42d+106)) .or. (.not. (i <= 7.5d+70))) then
tmp = i * ((t * b) - (y * j))
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 ((i <= -1.42e+106) || !(i <= 7.5e+70)) {
tmp = i * ((t * b) - (y * j));
} 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 (i <= -1.42e+106) or not (i <= 7.5e+70): tmp = i * ((t * b) - (y * j)) 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 ((i <= -1.42e+106) || !(i <= 7.5e+70)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); 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 ((i <= -1.42e+106) || ~((i <= 7.5e+70))) tmp = i * ((t * b) - (y * j)); 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[i, -1.42e+106], N[Not[LessEqual[i, 7.5e+70]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $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}\;i \leq -1.42 \cdot 10^{+106} \lor \neg \left(i \leq 7.5 \cdot 10^{+70}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\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 i < -1.4200000000000001e106 or 7.50000000000000031e70 < i Initial program 60.5%
Taylor expanded in c around 0 65.8%
Taylor expanded in i around -inf 74.3%
associate-*r*74.3%
neg-mul-174.3%
*-commutative74.3%
Simplified74.3%
if -1.4200000000000001e106 < i < 7.50000000000000031e70Initial program 71.2%
Taylor expanded in j around 0 60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in c around inf 59.5%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -2.5e+39)
t_1
(if (<= i 4.6e-61)
(* z (- (* x y) (* b c)))
(if (<= i 1.55e+70) (* 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.5e+39) {
tmp = t_1;
} else if (i <= 4.6e-61) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 1.55e+70) {
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 = i * ((t * b) - (y * j))
if (i <= (-2.5d+39)) then
tmp = t_1
else if (i <= 4.6d-61) then
tmp = z * ((x * y) - (b * c))
else if (i <= 1.55d+70) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.5e+39) {
tmp = t_1;
} else if (i <= 4.6e-61) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 1.55e+70) {
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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.5e+39: tmp = t_1 elif i <= 4.6e-61: tmp = z * ((x * y) - (b * c)) elif i <= 1.55e+70: 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.5e+39) tmp = t_1; elseif (i <= 4.6e-61) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 1.55e+70) 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.5e+39) tmp = t_1; elseif (i <= 4.6e-61) tmp = z * ((x * y) - (b * c)); elseif (i <= 1.55e+70) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.5e+39], t$95$1, If[LessEqual[i, 4.6e-61], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.55e+70], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.5 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.6 \cdot 10^{-61}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{+70}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.50000000000000008e39 or 1.55000000000000015e70 < i Initial program 58.1%
Taylor expanded in c around 0 61.6%
Taylor expanded in i around -inf 68.5%
associate-*r*68.5%
neg-mul-168.5%
*-commutative68.5%
Simplified68.5%
if -2.50000000000000008e39 < i < 4.59999999999999984e-61Initial program 77.3%
Taylor expanded in z around inf 57.5%
*-commutative57.5%
Simplified57.5%
if 4.59999999999999984e-61 < i < 1.55000000000000015e70Initial program 62.6%
Taylor expanded in a around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
Simplified67.7%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -52000000.0)
t_1
(if (<= y 2.6e-261)
(* c (- (* a j) (* z b)))
(if (<= y 1.45e+44) (* t (- (* b i) (* 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -52000000.0) {
tmp = t_1;
} else if (y <= 2.6e-261) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 1.45e+44) {
tmp = t * ((b * i) - (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 = y * ((x * z) - (i * j))
if (y <= (-52000000.0d0)) then
tmp = t_1
else if (y <= 2.6d-261) then
tmp = c * ((a * j) - (z * b))
else if (y <= 1.45d+44) then
tmp = t * ((b * i) - (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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -52000000.0) {
tmp = t_1;
} else if (y <= 2.6e-261) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 1.45e+44) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -52000000.0: tmp = t_1 elif y <= 2.6e-261: tmp = c * ((a * j) - (z * b)) elif y <= 1.45e+44: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -52000000.0) tmp = t_1; elseif (y <= 2.6e-261) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 1.45e+44) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -52000000.0) tmp = t_1; elseif (y <= 2.6e-261) tmp = c * ((a * j) - (z * b)); elseif (y <= 1.45e+44) tmp = t * ((b * i) - (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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -52000000.0], t$95$1, If[LessEqual[y, 2.6e-261], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e+44], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -52000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-261}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+44}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.2e7 or 1.4500000000000001e44 < y Initial program 56.0%
Taylor expanded in y around inf 70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
Simplified70.1%
if -5.2e7 < y < 2.6000000000000001e-261Initial program 79.4%
Taylor expanded in c around inf 59.5%
if 2.6000000000000001e-261 < y < 1.4500000000000001e44Initial program 69.2%
Taylor expanded in t around inf 53.8%
distribute-lft-out--53.8%
Simplified53.8%
Taylor expanded in t around 0 53.8%
mul-1-neg53.8%
*-commutative53.8%
distribute-rgt-neg-out53.8%
neg-mul-153.8%
*-commutative53.8%
distribute-lft-out--53.8%
mul-1-neg53.8%
distribute-lft-neg-out53.8%
cancel-sign-sub53.8%
+-commutative53.8%
*-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
Final simplification62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -5.4e+23)
t_1
(if (<= t -8.8e-175)
(* c (- (* a j) (* z b)))
(if (<= t 6e+53) (* j (- (* a c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -5.4e+23) {
tmp = t_1;
} else if (t <= -8.8e-175) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 6e+53) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-5.4d+23)) then
tmp = t_1
else if (t <= (-8.8d-175)) then
tmp = c * ((a * j) - (z * b))
else if (t <= 6d+53) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -5.4e+23) {
tmp = t_1;
} else if (t <= -8.8e-175) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 6e+53) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -5.4e+23: tmp = t_1 elif t <= -8.8e-175: tmp = c * ((a * j) - (z * b)) elif t <= 6e+53: tmp = j * ((a * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -5.4e+23) tmp = t_1; elseif (t <= -8.8e-175) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 6e+53) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -5.4e+23) tmp = t_1; elseif (t <= -8.8e-175) tmp = c * ((a * j) - (z * b)); elseif (t <= 6e+53) tmp = j * ((a * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e+23], t$95$1, If[LessEqual[t, -8.8e-175], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+53], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $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 -5.4 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-175}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+53}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.3999999999999997e23 or 5.99999999999999996e53 < t Initial program 55.6%
Taylor expanded in t around inf 66.2%
distribute-lft-out--66.2%
Simplified66.2%
Taylor expanded in t around 0 66.2%
mul-1-neg66.2%
*-commutative66.2%
distribute-rgt-neg-out66.2%
neg-mul-166.2%
*-commutative66.2%
distribute-lft-out--66.2%
mul-1-neg66.2%
distribute-lft-neg-out66.2%
cancel-sign-sub66.2%
+-commutative66.2%
*-commutative66.2%
mul-1-neg66.2%
unsub-neg66.2%
Simplified66.2%
if -5.3999999999999997e23 < t < -8.8e-175Initial program 73.3%
Taylor expanded in c around inf 59.5%
if -8.8e-175 < t < 5.99999999999999996e53Initial program 79.8%
Taylor expanded in x around inf 75.8%
Taylor expanded in j around -inf 49.7%
*-commutative49.7%
Simplified49.7%
Final simplification59.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -2e-14)
t_1
(if (<= a -3.35e-124)
(* y (* j (- i)))
(if (<= a 3.3e+66) (* 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2e-14) {
tmp = t_1;
} else if (a <= -3.35e-124) {
tmp = y * (j * -i);
} else if (a <= 3.3e+66) {
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 = a * ((c * j) - (x * t))
if (a <= (-2d-14)) then
tmp = t_1
else if (a <= (-3.35d-124)) then
tmp = y * (j * -i)
else if (a <= 3.3d+66) 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2e-14) {
tmp = t_1;
} else if (a <= -3.35e-124) {
tmp = y * (j * -i);
} else if (a <= 3.3e+66) {
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 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2e-14: tmp = t_1 elif a <= -3.35e-124: tmp = y * (j * -i) elif a <= 3.3e+66: 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(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2e-14) tmp = t_1; elseif (a <= -3.35e-124) tmp = Float64(y * Float64(j * Float64(-i))); elseif (a <= 3.3e+66) 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 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2e-14) tmp = t_1; elseif (a <= -3.35e-124) tmp = y * (j * -i); elseif (a <= 3.3e+66) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2e-14], t$95$1, If[LessEqual[a, -3.35e-124], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e+66], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.35 \cdot 10^{-124}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+66}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2e-14 or 3.3000000000000001e66 < a Initial program 62.8%
Taylor expanded in a around inf 64.8%
+-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
Simplified64.8%
if -2e-14 < a < -3.35e-124Initial program 69.8%
Taylor expanded in y around inf 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in z around 0 49.5%
associate-*r*49.5%
*-commutative49.5%
neg-mul-149.5%
Simplified49.5%
if -3.35e-124 < a < 3.3000000000000001e66Initial program 71.4%
Taylor expanded in b around inf 45.5%
*-commutative45.5%
Simplified45.5%
Final simplification54.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -3e+84)
(* y (* j (- i)))
(if (<= i 7.5e-106)
(* c (* z (- b)))
(if (<= i 1.6e+69) (* t (* x (- a))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -3e+84) {
tmp = y * (j * -i);
} else if (i <= 7.5e-106) {
tmp = c * (z * -b);
} else if (i <= 1.6e+69) {
tmp = t * (x * -a);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-3d+84)) then
tmp = y * (j * -i)
else if (i <= 7.5d-106) then
tmp = c * (z * -b)
else if (i <= 1.6d+69) then
tmp = t * (x * -a)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -3e+84) {
tmp = y * (j * -i);
} else if (i <= 7.5e-106) {
tmp = c * (z * -b);
} else if (i <= 1.6e+69) {
tmp = t * (x * -a);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -3e+84: tmp = y * (j * -i) elif i <= 7.5e-106: tmp = c * (z * -b) elif i <= 1.6e+69: tmp = t * (x * -a) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -3e+84) tmp = Float64(y * Float64(j * Float64(-i))); elseif (i <= 7.5e-106) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 1.6e+69) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -3e+84) tmp = y * (j * -i); elseif (i <= 7.5e-106) tmp = c * (z * -b); elseif (i <= 1.6e+69) tmp = t * (x * -a); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3e+84], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e-106], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e+69], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3 \cdot 10^{+84}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{-106}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -2.99999999999999996e84Initial program 60.9%
Taylor expanded in y around inf 57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in z around 0 51.6%
associate-*r*51.6%
*-commutative51.6%
neg-mul-151.6%
Simplified51.6%
if -2.99999999999999996e84 < i < 7.5000000000000002e-106Initial program 72.5%
Taylor expanded in b around inf 36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in t around 0 32.3%
mul-1-neg32.3%
associate-*r*34.6%
*-commutative34.6%
distribute-lft-neg-in34.6%
distribute-rgt-neg-out34.6%
associate-*l*36.1%
distribute-lft-neg-in36.1%
*-commutative36.1%
distribute-rgt-neg-in36.1%
Simplified36.1%
if 7.5000000000000002e-106 < i < 1.59999999999999992e69Initial program 70.4%
Taylor expanded in t around inf 44.1%
distribute-lft-out--44.1%
Simplified44.1%
Taylor expanded in a around inf 40.7%
associate-*r*40.7%
mul-1-neg40.7%
Simplified40.7%
if 1.59999999999999992e69 < i Initial program 59.3%
Taylor expanded in t around inf 50.6%
distribute-lft-out--50.6%
Simplified50.6%
Taylor expanded in a around 0 45.1%
*-commutative45.1%
Simplified45.1%
Final simplification41.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.32e+84)
(* i (* y (- j)))
(if (<= i 7.8e-106)
(* c (* z (- b)))
(if (<= i 7.5e+68) (* t (* x (- a))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.32e+84) {
tmp = i * (y * -j);
} else if (i <= 7.8e-106) {
tmp = c * (z * -b);
} else if (i <= 7.5e+68) {
tmp = t * (x * -a);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.32d+84)) then
tmp = i * (y * -j)
else if (i <= 7.8d-106) then
tmp = c * (z * -b)
else if (i <= 7.5d+68) then
tmp = t * (x * -a)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.32e+84) {
tmp = i * (y * -j);
} else if (i <= 7.8e-106) {
tmp = c * (z * -b);
} else if (i <= 7.5e+68) {
tmp = t * (x * -a);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.32e+84: tmp = i * (y * -j) elif i <= 7.8e-106: tmp = c * (z * -b) elif i <= 7.5e+68: tmp = t * (x * -a) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.32e+84) tmp = Float64(i * Float64(y * Float64(-j))); elseif (i <= 7.8e-106) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 7.5e+68) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.32e+84) tmp = i * (y * -j); elseif (i <= 7.8e-106) tmp = c * (z * -b); elseif (i <= 7.5e+68) tmp = t * (x * -a); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.32e+84], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.8e-106], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e+68], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.32 \cdot 10^{+84}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq 7.8 \cdot 10^{-106}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{+68}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -1.31999999999999994e84Initial program 60.9%
Taylor expanded in y around inf 57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in z around 0 48.0%
mul-1-neg48.0%
*-commutative48.0%
distribute-rgt-neg-in48.0%
*-commutative48.0%
mul-1-neg48.0%
associate-*r*48.0%
neg-mul-148.0%
Simplified48.0%
if -1.31999999999999994e84 < i < 7.80000000000000019e-106Initial program 72.5%
Taylor expanded in b around inf 36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in t around 0 32.3%
mul-1-neg32.3%
associate-*r*34.6%
*-commutative34.6%
distribute-lft-neg-in34.6%
distribute-rgt-neg-out34.6%
associate-*l*36.1%
distribute-lft-neg-in36.1%
*-commutative36.1%
distribute-rgt-neg-in36.1%
Simplified36.1%
if 7.80000000000000019e-106 < i < 7.49999999999999959e68Initial program 70.4%
Taylor expanded in t around inf 44.1%
distribute-lft-out--44.1%
Simplified44.1%
Taylor expanded in a around inf 40.7%
associate-*r*40.7%
mul-1-neg40.7%
Simplified40.7%
if 7.49999999999999959e68 < i Initial program 59.3%
Taylor expanded in t around inf 50.6%
distribute-lft-out--50.6%
Simplified50.6%
Taylor expanded in a around 0 45.1%
*-commutative45.1%
Simplified45.1%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -4.2e+83)
(* i (* y (- j)))
(if (<= i 9.6e-53)
(* c (* z (- b)))
(if (<= i 1.4e+69) (* c (* a j)) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -4.2e+83) {
tmp = i * (y * -j);
} else if (i <= 9.6e-53) {
tmp = c * (z * -b);
} else if (i <= 1.4e+69) {
tmp = c * (a * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-4.2d+83)) then
tmp = i * (y * -j)
else if (i <= 9.6d-53) then
tmp = c * (z * -b)
else if (i <= 1.4d+69) then
tmp = c * (a * j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -4.2e+83) {
tmp = i * (y * -j);
} else if (i <= 9.6e-53) {
tmp = c * (z * -b);
} else if (i <= 1.4e+69) {
tmp = c * (a * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -4.2e+83: tmp = i * (y * -j) elif i <= 9.6e-53: tmp = c * (z * -b) elif i <= 1.4e+69: tmp = c * (a * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -4.2e+83) tmp = Float64(i * Float64(y * Float64(-j))); elseif (i <= 9.6e-53) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 1.4e+69) tmp = Float64(c * Float64(a * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -4.2e+83) tmp = i * (y * -j); elseif (i <= 9.6e-53) tmp = c * (z * -b); elseif (i <= 1.4e+69) tmp = c * (a * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -4.2e+83], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.6e-53], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e+69], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.2 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq 9.6 \cdot 10^{-53}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{+69}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -4.20000000000000005e83Initial program 60.9%
Taylor expanded in y around inf 57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in z around 0 48.0%
mul-1-neg48.0%
*-commutative48.0%
distribute-rgt-neg-in48.0%
*-commutative48.0%
mul-1-neg48.0%
associate-*r*48.0%
neg-mul-148.0%
Simplified48.0%
if -4.20000000000000005e83 < i < 9.6000000000000003e-53Initial program 73.3%
Taylor expanded in b around inf 37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in t around 0 32.0%
mul-1-neg32.0%
associate-*r*34.1%
*-commutative34.1%
distribute-lft-neg-in34.1%
distribute-rgt-neg-out34.1%
associate-*l*35.5%
distribute-lft-neg-in35.5%
*-commutative35.5%
distribute-rgt-neg-in35.5%
Simplified35.5%
if 9.6000000000000003e-53 < i < 1.39999999999999991e69Initial program 64.0%
Taylor expanded in a around inf 69.6%
+-commutative69.6%
mul-1-neg69.6%
unsub-neg69.6%
Simplified69.6%
Taylor expanded in c around inf 39.0%
associate-*r*29.6%
Simplified29.6%
Taylor expanded in a around 0 39.0%
associate-*r*29.6%
*-commutative29.6%
associate-*r*43.7%
Simplified43.7%
if 1.39999999999999991e69 < i Initial program 59.3%
Taylor expanded in t around inf 50.6%
distribute-lft-out--50.6%
Simplified50.6%
Taylor expanded in a around 0 45.1%
*-commutative45.1%
Simplified45.1%
Final simplification40.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -2e+98)
t_1
(if (<= i 4.8e-53)
(* c (* z (- b)))
(if (<= i 4.5e+69) (* c (* a 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 = t * (b * i);
double tmp;
if (i <= -2e+98) {
tmp = t_1;
} else if (i <= 4.8e-53) {
tmp = c * (z * -b);
} else if (i <= 4.5e+69) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (b * i)
if (i <= (-2d+98)) then
tmp = t_1
else if (i <= 4.8d-53) then
tmp = c * (z * -b)
else if (i <= 4.5d+69) then
tmp = c * (a * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -2e+98) {
tmp = t_1;
} else if (i <= 4.8e-53) {
tmp = c * (z * -b);
} else if (i <= 4.5e+69) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -2e+98: tmp = t_1 elif i <= 4.8e-53: tmp = c * (z * -b) elif i <= 4.5e+69: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -2e+98) tmp = t_1; elseif (i <= 4.8e-53) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 4.5e+69) tmp = Float64(c * Float64(a * j)); 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); tmp = 0.0; if (i <= -2e+98) tmp = t_1; elseif (i <= 4.8e-53) tmp = c * (z * -b); elseif (i <= 4.5e+69) tmp = c * (a * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2e+98], t$95$1, If[LessEqual[i, 4.8e-53], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.5e+69], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -2 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{-53}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 4.5 \cdot 10^{+69}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2e98 or 4.4999999999999999e69 < i Initial program 60.1%
Taylor expanded in t around inf 53.2%
distribute-lft-out--53.2%
Simplified53.2%
Taylor expanded in a around 0 44.2%
*-commutative44.2%
Simplified44.2%
if -2e98 < i < 4.80000000000000015e-53Initial program 72.8%
Taylor expanded in b around inf 35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in t around 0 30.9%
mul-1-neg30.9%
associate-*r*32.9%
*-commutative32.9%
distribute-lft-neg-in32.9%
distribute-rgt-neg-out32.9%
associate-*l*34.3%
distribute-lft-neg-in34.3%
*-commutative34.3%
distribute-rgt-neg-in34.3%
Simplified34.3%
if 4.80000000000000015e-53 < i < 4.4999999999999999e69Initial program 64.0%
Taylor expanded in a around inf 69.6%
+-commutative69.6%
mul-1-neg69.6%
unsub-neg69.6%
Simplified69.6%
Taylor expanded in c around inf 39.0%
associate-*r*29.6%
Simplified29.6%
Taylor expanded in a around 0 39.0%
associate-*r*29.6%
*-commutative29.6%
associate-*r*43.7%
Simplified43.7%
Final simplification38.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -3.3e+31)
t_1
(if (<= i 6.5e-62) (* y (* x z)) (if (<= i 8e+68) (* c (* a 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 = t * (b * i);
double tmp;
if (i <= -3.3e+31) {
tmp = t_1;
} else if (i <= 6.5e-62) {
tmp = y * (x * z);
} else if (i <= 8e+68) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (b * i)
if (i <= (-3.3d+31)) then
tmp = t_1
else if (i <= 6.5d-62) then
tmp = y * (x * z)
else if (i <= 8d+68) then
tmp = c * (a * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -3.3e+31) {
tmp = t_1;
} else if (i <= 6.5e-62) {
tmp = y * (x * z);
} else if (i <= 8e+68) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -3.3e+31: tmp = t_1 elif i <= 6.5e-62: tmp = y * (x * z) elif i <= 8e+68: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -3.3e+31) tmp = t_1; elseif (i <= 6.5e-62) tmp = Float64(y * Float64(x * z)); elseif (i <= 8e+68) tmp = Float64(c * Float64(a * j)); 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); tmp = 0.0; if (i <= -3.3e+31) tmp = t_1; elseif (i <= 6.5e-62) tmp = y * (x * z); elseif (i <= 8e+68) tmp = c * (a * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.3e+31], t$95$1, If[LessEqual[i, 6.5e-62], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8e+68], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -3.3 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{-62}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 8 \cdot 10^{+68}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.29999999999999992e31 or 7.99999999999999962e68 < i Initial program 58.7%
Taylor expanded in t around inf 52.5%
distribute-lft-out--52.5%
Simplified52.5%
Taylor expanded in a around 0 41.0%
*-commutative41.0%
Simplified41.0%
if -3.29999999999999992e31 < i < 6.50000000000000026e-62Initial program 77.4%
Taylor expanded in y around inf 38.7%
+-commutative38.7%
mul-1-neg38.7%
unsub-neg38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in z around inf 30.1%
if 6.50000000000000026e-62 < i < 7.99999999999999962e68Initial program 62.6%
Taylor expanded in a around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
Simplified67.7%
Taylor expanded in c around inf 35.5%
associate-*r*27.0%
Simplified27.0%
Taylor expanded in a around 0 35.5%
associate-*r*27.0%
*-commutative27.0%
associate-*r*39.8%
Simplified39.8%
Final simplification36.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.75e+36) (not (<= j 4.2e+46))) (* 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.75e+36) || !(j <= 4.2e+46)) {
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.75d+36)) .or. (.not. (j <= 4.2d+46))) 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.75e+36) || !(j <= 4.2e+46)) {
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.75e+36) or not (j <= 4.2e+46): 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.75e+36) || !(j <= 4.2e+46)) 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.75e+36) || ~((j <= 4.2e+46))) 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.75e+36], N[Not[LessEqual[j, 4.2e+46]], $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.75 \cdot 10^{+36} \lor \neg \left(j \leq 4.2 \cdot 10^{+46}\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.7499999999999999e36 or 4.2e46 < j Initial program 67.6%
Taylor expanded in x around inf 62.9%
Taylor expanded in j around -inf 65.0%
*-commutative65.0%
Simplified65.0%
if -1.7499999999999999e36 < j < 4.2e46Initial program 67.0%
Taylor expanded in b around inf 47.7%
*-commutative47.7%
Simplified47.7%
Final simplification55.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -3.5e-15) (not (<= a 6.5e-97))) (* a (- (* c j) (* x t))) (* i (* y (- j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3.5e-15) || !(a <= 6.5e-97)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = i * (y * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-3.5d-15)) .or. (.not. (a <= 6.5d-97))) then
tmp = a * ((c * j) - (x * t))
else
tmp = i * (y * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3.5e-15) || !(a <= 6.5e-97)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -3.5e-15) or not (a <= 6.5e-97): tmp = a * ((c * j) - (x * t)) else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -3.5e-15) || !(a <= 6.5e-97)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -3.5e-15) || ~((a <= 6.5e-97))) tmp = a * ((c * j) - (x * t)); else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -3.5e-15], N[Not[LessEqual[a, 6.5e-97]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.5 \cdot 10^{-15} \lor \neg \left(a \leq 6.5 \cdot 10^{-97}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if a < -3.5000000000000001e-15 or 6.5000000000000004e-97 < a Initial program 64.3%
Taylor expanded in a around inf 58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
if -3.5000000000000001e-15 < a < 6.5000000000000004e-97Initial program 71.2%
Taylor expanded in y around inf 55.1%
+-commutative55.1%
mul-1-neg55.1%
unsub-neg55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in z around 0 37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
*-commutative37.7%
mul-1-neg37.7%
associate-*r*37.7%
neg-mul-137.7%
Simplified37.7%
Final simplification49.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -4.7e+36) (not (<= i 9.2e+69))) (* 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 <= -4.7e+36) || !(i <= 9.2e+69)) {
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 <= (-4.7d+36)) .or. (.not. (i <= 9.2d+69))) 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 <= -4.7e+36) || !(i <= 9.2e+69)) {
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 <= -4.7e+36) or not (i <= 9.2e+69): 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 <= -4.7e+36) || !(i <= 9.2e+69)) 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 <= -4.7e+36) || ~((i <= 9.2e+69))) 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, -4.7e+36], N[Not[LessEqual[i, 9.2e+69]], $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 -4.7 \cdot 10^{+36} \lor \neg \left(i \leq 9.2 \cdot 10^{+69}\right):\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -4.69999999999999989e36 or 9.20000000000000067e69 < i Initial program 58.8%
Taylor expanded in t around inf 53.3%
distribute-lft-out--53.3%
Simplified53.3%
Taylor expanded in a around 0 41.6%
*-commutative41.6%
Simplified41.6%
if -4.69999999999999989e36 < i < 9.20000000000000067e69Initial program 74.7%
Taylor expanded in a around inf 46.6%
+-commutative46.6%
mul-1-neg46.6%
unsub-neg46.6%
Simplified46.6%
Taylor expanded in c around inf 27.7%
Final simplification34.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -3.1e+33) (not (<= i 1.3e+68))) (* 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.1e+33) || !(i <= 1.3e+68)) {
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.1d+33)) .or. (.not. (i <= 1.3d+68))) 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.1e+33) || !(i <= 1.3e+68)) {
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.1e+33) or not (i <= 1.3e+68): 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.1e+33) || !(i <= 1.3e+68)) 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.1e+33) || ~((i <= 1.3e+68))) 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.1e+33], N[Not[LessEqual[i, 1.3e+68]], $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.1 \cdot 10^{+33} \lor \neg \left(i \leq 1.3 \cdot 10^{+68}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -3.1e33 or 1.2999999999999999e68 < i Initial program 58.8%
Taylor expanded in t around inf 53.3%
distribute-lft-out--53.3%
Simplified53.3%
Taylor expanded in a around 0 40.1%
*-commutative40.1%
Simplified40.1%
if -3.1e33 < i < 1.2999999999999999e68Initial program 74.7%
Taylor expanded in a around inf 46.6%
+-commutative46.6%
mul-1-neg46.6%
unsub-neg46.6%
Simplified46.6%
Taylor expanded in c around inf 27.7%
Final simplification33.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 67.2%
Taylor expanded in a around inf 39.7%
+-commutative39.7%
mul-1-neg39.7%
unsub-neg39.7%
Simplified39.7%
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 2024184
(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)))))