
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* a c) (* y i)))
(- (* x (- (* t a) (* y z))) (* b (- (* t i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (- (* z (* x y)) (* a (- (* x t) (* c j)))))))
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))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (z * (x * y)) - (a * ((x * t) - (c * 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 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (z * (x * y)) - (a * ((x * t) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - Float64(b * Float64(Float64(t * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(z * Float64(x * y)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (z * (x * y)) - (a * ((x * t) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - \left(x \cdot \left(t \cdot a - y \cdot z\right) - b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) - a \cdot \left(x \cdot t - c \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 90.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in y around -inf 17.7%
Simplified27.4%
Taylor expanded in i around 0 35.7%
+-commutative35.7%
associate-+l+35.7%
+-commutative35.7%
mul-1-neg35.7%
associate-*r*39.1%
*-commutative39.1%
distribute-lft-neg-in39.1%
*-commutative39.1%
mul-1-neg39.1%
associate-*r*42.4%
distribute-rgt-in48.8%
+-commutative48.8%
mul-1-neg48.8%
sub-neg48.8%
Simplified48.8%
Taylor expanded in x around inf 53.6%
associate-*r*55.1%
*-commutative55.1%
Simplified55.1%
Final simplification82.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* z (* x y)) (* a (- (* x t) (* c j)))))
(t_2 (* i (- (* t b) (* y j)))))
(if (<= i -2.9e+51)
t_2
(if (<= i 3.7e-184)
t_1
(if (<= i 1.65e-138)
(* c (- (* a j) (* z b)))
(if (or (<= i 1.15e-6) (and (not (<= i 7800000.0)) (<= i 6.6e+202)))
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 = (z * (x * y)) - (a * ((x * t) - (c * j)));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.9e+51) {
tmp = t_2;
} else if (i <= 3.7e-184) {
tmp = t_1;
} else if (i <= 1.65e-138) {
tmp = c * ((a * j) - (z * b));
} else if ((i <= 1.15e-6) || (!(i <= 7800000.0) && (i <= 6.6e+202))) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z * (x * y)) - (a * ((x * t) - (c * j)))
t_2 = i * ((t * b) - (y * j))
if (i <= (-2.9d+51)) then
tmp = t_2
else if (i <= 3.7d-184) then
tmp = t_1
else if (i <= 1.65d-138) then
tmp = c * ((a * j) - (z * b))
else if ((i <= 1.15d-6) .or. (.not. (i <= 7800000.0d0)) .and. (i <= 6.6d+202)) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * (x * y)) - (a * ((x * t) - (c * j)));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.9e+51) {
tmp = t_2;
} else if (i <= 3.7e-184) {
tmp = t_1;
} else if (i <= 1.65e-138) {
tmp = c * ((a * j) - (z * b));
} else if ((i <= 1.15e-6) || (!(i <= 7800000.0) && (i <= 6.6e+202))) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * (x * y)) - (a * ((x * t) - (c * j))) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.9e+51: tmp = t_2 elif i <= 3.7e-184: tmp = t_1 elif i <= 1.65e-138: tmp = c * ((a * j) - (z * b)) elif (i <= 1.15e-6) or (not (i <= 7800000.0) and (i <= 6.6e+202)): tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * Float64(x * y)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.9e+51) tmp = t_2; elseif (i <= 3.7e-184) tmp = t_1; elseif (i <= 1.65e-138) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif ((i <= 1.15e-6) || (!(i <= 7800000.0) && (i <= 6.6e+202))) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * (x * y)) - (a * ((x * t) - (c * j))); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.9e+51) tmp = t_2; elseif (i <= 3.7e-184) tmp = t_1; elseif (i <= 1.65e-138) tmp = c * ((a * j) - (z * b)); elseif ((i <= 1.15e-6) || (~((i <= 7800000.0)) && (i <= 6.6e+202))) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.9e+51], t$95$2, If[LessEqual[i, 3.7e-184], t$95$1, If[LessEqual[i, 1.65e-138], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[i, 1.15e-6], And[N[Not[LessEqual[i, 7800000.0]], $MachinePrecision], LessEqual[i, 6.6e+202]]], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.9 \cdot 10^{+51}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{-184}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{-138}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{-6} \lor \neg \left(i \leq 7800000\right) \land i \leq 6.6 \cdot 10^{+202}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -2.8999999999999998e51 or 1.15e-6 < i < 7.8e6 or 6.5999999999999998e202 < i Initial program 60.9%
Taylor expanded in y around -inf 64.6%
Simplified64.6%
Taylor expanded in i around inf 74.8%
Taylor expanded in j around 0 69.7%
+-commutative69.7%
mul-1-neg69.7%
*-commutative69.7%
*-commutative69.7%
fma-def69.7%
fma-neg69.7%
*-commutative69.7%
associate-*l*72.3%
distribute-rgt-out--74.8%
Simplified74.8%
if -2.8999999999999998e51 < i < 3.6999999999999999e-184 or 1.64999999999999991e-138 < i < 1.15e-6 or 7.8e6 < i < 6.5999999999999998e202Initial program 73.7%
Taylor expanded in y around -inf 70.6%
Simplified74.2%
Taylor expanded in i around 0 69.3%
+-commutative69.3%
associate-+l+69.3%
+-commutative69.3%
mul-1-neg69.3%
associate-*r*71.9%
*-commutative71.9%
distribute-lft-neg-in71.9%
*-commutative71.9%
mul-1-neg71.9%
associate-*r*73.2%
distribute-rgt-in74.5%
+-commutative74.5%
mul-1-neg74.5%
sub-neg74.5%
Simplified74.5%
Taylor expanded in x around inf 67.4%
associate-*r*66.9%
*-commutative66.9%
Simplified66.9%
if 3.6999999999999999e-184 < i < 1.64999999999999991e-138Initial program 50.9%
Taylor expanded in c around inf 83.7%
*-commutative83.7%
Simplified83.7%
Final simplification70.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= i -2.6e+51)
(and (not (<= i 9.5e-7))
(or (<= i 3200000.0) (not (<= i 1.85e+202)))))
(* i (- (* t b) (* y j)))
(- (* z (- (* x y) (* b c))) (* a (- (* x t) (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -2.6e+51) || (!(i <= 9.5e-7) && ((i <= 3200000.0) || !(i <= 1.85e+202)))) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-2.6d+51)) .or. (.not. (i <= 9.5d-7)) .and. (i <= 3200000.0d0) .or. (.not. (i <= 1.85d+202))) then
tmp = i * ((t * b) - (y * j))
else
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -2.6e+51) || (!(i <= 9.5e-7) && ((i <= 3200000.0) || !(i <= 1.85e+202)))) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -2.6e+51) or (not (i <= 9.5e-7) and ((i <= 3200000.0) or not (i <= 1.85e+202))): tmp = i * ((t * b) - (y * j)) else: tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -2.6e+51) || (!(i <= 9.5e-7) && ((i <= 3200000.0) || !(i <= 1.85e+202)))) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -2.6e+51) || (~((i <= 9.5e-7)) && ((i <= 3200000.0) || ~((i <= 1.85e+202))))) tmp = i * ((t * b) - (y * j)); else tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -2.6e+51], And[N[Not[LessEqual[i, 9.5e-7]], $MachinePrecision], Or[LessEqual[i, 3200000.0], N[Not[LessEqual[i, 1.85e+202]], $MachinePrecision]]]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.6 \cdot 10^{+51} \lor \neg \left(i \leq 9.5 \cdot 10^{-7}\right) \land \left(i \leq 3200000 \lor \neg \left(i \leq 1.85 \cdot 10^{+202}\right)\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\end{array}
\end{array}
if i < -2.6000000000000001e51 or 9.5000000000000001e-7 < i < 3.2e6 or 1.8499999999999999e202 < i Initial program 60.9%
Taylor expanded in y around -inf 64.6%
Simplified64.6%
Taylor expanded in i around inf 74.8%
Taylor expanded in j around 0 69.7%
+-commutative69.7%
mul-1-neg69.7%
*-commutative69.7%
*-commutative69.7%
fma-def69.7%
fma-neg69.7%
*-commutative69.7%
associate-*l*72.3%
distribute-rgt-out--74.8%
Simplified74.8%
if -2.6000000000000001e51 < i < 9.5000000000000001e-7 or 3.2e6 < i < 1.8499999999999999e202Initial program 72.2%
Taylor expanded in y around -inf 70.3%
Simplified73.7%
Taylor expanded in i around 0 67.5%
+-commutative67.5%
associate-+l+67.5%
+-commutative67.5%
mul-1-neg67.5%
associate-*r*70.5%
*-commutative70.5%
distribute-lft-neg-in70.5%
*-commutative70.5%
mul-1-neg70.5%
associate-*r*72.8%
distribute-rgt-in73.9%
+-commutative73.9%
mul-1-neg73.9%
sub-neg73.9%
Simplified73.9%
Final simplification74.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* t (- (* b i) (* x a))))
(t_4 (* i (- (* t b) (* y j)))))
(if (<= t -4.6e+53)
t_3
(if (<= t -6e-32)
t_2
(if (<= t 7.8e-293)
t_1
(if (<= t 2.1e-84)
t_2
(if (<= t 6.3e-16)
t_4
(if (<= t 6.8e+33)
t_1
(if (<= t 5.4e+76)
(* x (- (* y z) (* t a)))
(if (<= t 2.1e+129) t_4 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((b * i) - (x * a));
double t_4 = i * ((t * b) - (y * j));
double tmp;
if (t <= -4.6e+53) {
tmp = t_3;
} else if (t <= -6e-32) {
tmp = t_2;
} else if (t <= 7.8e-293) {
tmp = t_1;
} else if (t <= 2.1e-84) {
tmp = t_2;
} else if (t <= 6.3e-16) {
tmp = t_4;
} else if (t <= 6.8e+33) {
tmp = t_1;
} else if (t <= 5.4e+76) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 2.1e+129) {
tmp = t_4;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = z * ((x * y) - (b * c))
t_3 = t * ((b * i) - (x * a))
t_4 = i * ((t * b) - (y * j))
if (t <= (-4.6d+53)) then
tmp = t_3
else if (t <= (-6d-32)) then
tmp = t_2
else if (t <= 7.8d-293) then
tmp = t_1
else if (t <= 2.1d-84) then
tmp = t_2
else if (t <= 6.3d-16) then
tmp = t_4
else if (t <= 6.8d+33) then
tmp = t_1
else if (t <= 5.4d+76) then
tmp = x * ((y * z) - (t * a))
else if (t <= 2.1d+129) then
tmp = t_4
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((b * i) - (x * a));
double t_4 = i * ((t * b) - (y * j));
double tmp;
if (t <= -4.6e+53) {
tmp = t_3;
} else if (t <= -6e-32) {
tmp = t_2;
} else if (t <= 7.8e-293) {
tmp = t_1;
} else if (t <= 2.1e-84) {
tmp = t_2;
} else if (t <= 6.3e-16) {
tmp = t_4;
} else if (t <= 6.8e+33) {
tmp = t_1;
} else if (t <= 5.4e+76) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 2.1e+129) {
tmp = t_4;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = z * ((x * y) - (b * c)) t_3 = t * ((b * i) - (x * a)) t_4 = i * ((t * b) - (y * j)) tmp = 0 if t <= -4.6e+53: tmp = t_3 elif t <= -6e-32: tmp = t_2 elif t <= 7.8e-293: tmp = t_1 elif t <= 2.1e-84: tmp = t_2 elif t <= 6.3e-16: tmp = t_4 elif t <= 6.8e+33: tmp = t_1 elif t <= 5.4e+76: tmp = x * ((y * z) - (t * a)) elif t <= 2.1e+129: tmp = t_4 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_4 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (t <= -4.6e+53) tmp = t_3; elseif (t <= -6e-32) tmp = t_2; elseif (t <= 7.8e-293) tmp = t_1; elseif (t <= 2.1e-84) tmp = t_2; elseif (t <= 6.3e-16) tmp = t_4; elseif (t <= 6.8e+33) tmp = t_1; elseif (t <= 5.4e+76) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= 2.1e+129) tmp = t_4; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = z * ((x * y) - (b * c)); t_3 = t * ((b * i) - (x * a)); t_4 = i * ((t * b) - (y * j)); tmp = 0.0; if (t <= -4.6e+53) tmp = t_3; elseif (t <= -6e-32) tmp = t_2; elseif (t <= 7.8e-293) tmp = t_1; elseif (t <= 2.1e-84) tmp = t_2; elseif (t <= 6.3e-16) tmp = t_4; elseif (t <= 6.8e+33) tmp = t_1; elseif (t <= 5.4e+76) tmp = x * ((y * z) - (t * a)); elseif (t <= 2.1e+129) tmp = t_4; else tmp = t_3; 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]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.6e+53], t$95$3, If[LessEqual[t, -6e-32], t$95$2, If[LessEqual[t, 7.8e-293], t$95$1, If[LessEqual[t, 2.1e-84], t$95$2, If[LessEqual[t, 6.3e-16], t$95$4, If[LessEqual[t, 6.8e+33], t$95$1, If[LessEqual[t, 5.4e+76], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+129], t$95$4, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_4 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;t \leq -4.6 \cdot 10^{+53}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-32}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-293}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.3 \cdot 10^{-16}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{+76}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+129}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -4.60000000000000039e53 or 2.09999999999999997e129 < t Initial program 62.5%
Taylor expanded in y around -inf 56.2%
Simplified60.5%
Taylor expanded in t around inf 71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
Simplified71.3%
if -4.60000000000000039e53 < t < -6.0000000000000001e-32 or 7.8e-293 < t < 2.09999999999999998e-84Initial program 76.9%
Taylor expanded in z around inf 72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
if -6.0000000000000001e-32 < t < 7.8e-293 or 6.2999999999999998e-16 < t < 6.7999999999999999e33Initial program 69.9%
Taylor expanded in c around inf 55.2%
*-commutative55.2%
Simplified55.2%
if 2.09999999999999998e-84 < t < 6.2999999999999998e-16 or 5.3999999999999998e76 < t < 2.09999999999999997e129Initial program 65.4%
Taylor expanded in y around -inf 76.9%
Simplified80.7%
Taylor expanded in i around inf 77.1%
Taylor expanded in j around 0 69.4%
+-commutative69.4%
mul-1-neg69.4%
*-commutative69.4%
*-commutative69.4%
fma-def73.2%
fma-neg69.4%
*-commutative69.4%
associate-*l*69.4%
distribute-rgt-out--77.1%
Simplified77.1%
if 6.7999999999999999e33 < t < 5.3999999999999998e76Initial program 79.8%
Taylor expanded in x around inf 71.1%
Final simplification67.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a (- (* c j) (* x t))) (* z (* b c))))
(t_2 (* y (- (* x z) (* i j)))))
(if (<= y -2.4e+85)
t_2
(if (<= y -3e-191)
(- (* z (* x y)) (* a (- (* x t) (* c j))))
(if (<= y 4.5e-65)
t_1
(if (<= y 7.2e-16)
(* z (- (* x y) (* b c)))
(if (<= y 4.3e+15) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * ((c * j) - (x * t))) - (z * (b * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.4e+85) {
tmp = t_2;
} else if (y <= -3e-191) {
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)));
} else if (y <= 4.5e-65) {
tmp = t_1;
} else if (y <= 7.2e-16) {
tmp = z * ((x * y) - (b * c));
} else if (y <= 4.3e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a * ((c * j) - (x * t))) - (z * (b * c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-2.4d+85)) then
tmp = t_2
else if (y <= (-3d-191)) then
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)))
else if (y <= 4.5d-65) then
tmp = t_1
else if (y <= 7.2d-16) then
tmp = z * ((x * y) - (b * c))
else if (y <= 4.3d+15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * ((c * j) - (x * t))) - (z * (b * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.4e+85) {
tmp = t_2;
} else if (y <= -3e-191) {
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)));
} else if (y <= 4.5e-65) {
tmp = t_1;
} else if (y <= 7.2e-16) {
tmp = z * ((x * y) - (b * c));
} else if (y <= 4.3e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (a * ((c * j) - (x * t))) - (z * (b * c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.4e+85: tmp = t_2 elif y <= -3e-191: tmp = (z * (x * y)) - (a * ((x * t) - (c * j))) elif y <= 4.5e-65: tmp = t_1 elif y <= 7.2e-16: tmp = z * ((x * y) - (b * c)) elif y <= 4.3e+15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(z * Float64(b * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.4e+85) tmp = t_2; elseif (y <= -3e-191) tmp = Float64(Float64(z * Float64(x * y)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); elseif (y <= 4.5e-65) tmp = t_1; elseif (y <= 7.2e-16) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (y <= 4.3e+15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (a * ((c * j) - (x * t))) - (z * (b * c)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.4e+85) tmp = t_2; elseif (y <= -3e-191) tmp = (z * (x * y)) - (a * ((x * t) - (c * j))); elseif (y <= 4.5e-65) tmp = t_1; elseif (y <= 7.2e-16) tmp = z * ((x * y) - (b * c)); elseif (y <= 4.3e+15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e+85], t$95$2, If[LessEqual[y, -3e-191], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e-65], t$95$1, If[LessEqual[y, 7.2e-16], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e+15], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right) - z \cdot \left(b \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-191}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-16}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2.39999999999999997e85 or 4.3e15 < y Initial program 63.4%
Taylor expanded in y around inf 67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
*-commutative67.1%
Simplified67.1%
if -2.39999999999999997e85 < y < -3.0000000000000001e-191Initial program 72.1%
Taylor expanded in y around -inf 65.7%
Simplified69.0%
Taylor expanded in i around 0 65.0%
+-commutative65.0%
associate-+l+65.0%
+-commutative65.0%
mul-1-neg65.0%
associate-*r*60.1%
*-commutative60.1%
distribute-lft-neg-in60.1%
*-commutative60.1%
mul-1-neg60.1%
associate-*r*63.2%
distribute-rgt-in63.2%
+-commutative63.2%
mul-1-neg63.2%
sub-neg63.2%
Simplified63.2%
Taylor expanded in x around inf 63.8%
associate-*r*63.8%
*-commutative63.8%
Simplified63.8%
if -3.0000000000000001e-191 < y < 4.4999999999999998e-65 or 7.19999999999999965e-16 < y < 4.3e15Initial program 74.5%
Taylor expanded in y around -inf 68.0%
Simplified70.6%
Taylor expanded in i around 0 68.7%
+-commutative68.7%
associate-+l+68.7%
+-commutative68.7%
mul-1-neg68.7%
associate-*r*74.1%
*-commutative74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
mul-1-neg74.1%
associate-*r*74.6%
distribute-rgt-in74.6%
+-commutative74.6%
mul-1-neg74.6%
sub-neg74.6%
Simplified74.6%
Taylor expanded in y around 0 68.8%
+-commutative68.8%
sub-neg68.8%
*-commutative68.8%
sub-neg68.8%
mul-1-neg68.8%
unsub-neg68.8%
associate-*r*74.2%
*-commutative74.2%
Simplified74.2%
if 4.4999999999999998e-65 < y < 7.19999999999999965e-16Initial program 61.3%
Taylor expanded in z around inf 70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a (- (* c j) (* x t))) (* z (* b c))))
(t_2 (* y (- (* x z) (* i j)))))
(if (<= y -4.8e+89)
t_2
(if (<= y -1.4e-192)
(- (* z (* x y)) (* a (- (* x t) (* c j))))
(if (<= y 1.5e-68)
t_1
(if (<= y 2.4e-16)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(if (<= y 4.6e+15) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * ((c * j) - (x * t))) - (z * (b * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.8e+89) {
tmp = t_2;
} else if (y <= -1.4e-192) {
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)));
} else if (y <= 1.5e-68) {
tmp = t_1;
} else if (y <= 2.4e-16) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (y <= 4.6e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a * ((c * j) - (x * t))) - (z * (b * c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-4.8d+89)) then
tmp = t_2
else if (y <= (-1.4d-192)) then
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)))
else if (y <= 1.5d-68) then
tmp = t_1
else if (y <= 2.4d-16) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else if (y <= 4.6d+15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * ((c * j) - (x * t))) - (z * (b * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.8e+89) {
tmp = t_2;
} else if (y <= -1.4e-192) {
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)));
} else if (y <= 1.5e-68) {
tmp = t_1;
} else if (y <= 2.4e-16) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (y <= 4.6e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (a * ((c * j) - (x * t))) - (z * (b * c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -4.8e+89: tmp = t_2 elif y <= -1.4e-192: tmp = (z * (x * y)) - (a * ((x * t) - (c * j))) elif y <= 1.5e-68: tmp = t_1 elif y <= 2.4e-16: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) elif y <= 4.6e+15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(z * Float64(b * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -4.8e+89) tmp = t_2; elseif (y <= -1.4e-192) tmp = Float64(Float64(z * Float64(x * y)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); elseif (y <= 1.5e-68) tmp = t_1; elseif (y <= 2.4e-16) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (y <= 4.6e+15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (a * ((c * j) - (x * t))) - (z * (b * c)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -4.8e+89) tmp = t_2; elseif (y <= -1.4e-192) tmp = (z * (x * y)) - (a * ((x * t) - (c * j))); elseif (y <= 1.5e-68) tmp = t_1; elseif (y <= 2.4e-16) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); elseif (y <= 4.6e+15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e+89], t$95$2, If[LessEqual[y, -1.4e-192], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e-68], t$95$1, If[LessEqual[y, 2.4e-16], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+15], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right) - z \cdot \left(b \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+89}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{-192}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -4.80000000000000009e89 or 4.6e15 < y Initial program 63.4%
Taylor expanded in y around inf 67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
*-commutative67.1%
Simplified67.1%
if -4.80000000000000009e89 < y < -1.40000000000000002e-192Initial program 72.1%
Taylor expanded in y around -inf 65.7%
Simplified69.0%
Taylor expanded in i around 0 65.0%
+-commutative65.0%
associate-+l+65.0%
+-commutative65.0%
mul-1-neg65.0%
associate-*r*60.1%
*-commutative60.1%
distribute-lft-neg-in60.1%
*-commutative60.1%
mul-1-neg60.1%
associate-*r*63.2%
distribute-rgt-in63.2%
+-commutative63.2%
mul-1-neg63.2%
sub-neg63.2%
Simplified63.2%
Taylor expanded in x around inf 63.8%
associate-*r*63.8%
*-commutative63.8%
Simplified63.8%
if -1.40000000000000002e-192 < y < 1.5e-68 or 2.40000000000000005e-16 < y < 4.6e15Initial program 74.5%
Taylor expanded in y around -inf 68.0%
Simplified70.6%
Taylor expanded in i around 0 68.7%
+-commutative68.7%
associate-+l+68.7%
+-commutative68.7%
mul-1-neg68.7%
associate-*r*74.1%
*-commutative74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
mul-1-neg74.1%
associate-*r*74.6%
distribute-rgt-in74.6%
+-commutative74.6%
mul-1-neg74.6%
sub-neg74.6%
Simplified74.6%
Taylor expanded in y around 0 68.8%
+-commutative68.8%
sub-neg68.8%
*-commutative68.8%
sub-neg68.8%
mul-1-neg68.8%
unsub-neg68.8%
associate-*r*74.2%
*-commutative74.2%
Simplified74.2%
if 1.5e-68 < y < 2.40000000000000005e-16Initial program 61.3%
Taylor expanded in j around 0 84.4%
Taylor expanded in a around 0 77.3%
*-commutative77.3%
*-commutative77.3%
Simplified77.3%
Final simplification69.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.4e+30) (not (<= b 1.35e-107))) (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))) (- (* z (- (* x y) (* b c))) (* a (- (* x t) (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+30) || !(b <= 1.35e-107)) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-4.4d+30)) .or. (.not. (b <= 1.35d-107))) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+30) || !(b <= 1.35e-107)) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.4e+30) or not (b <= 1.35e-107): tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) else: tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.4e+30) || !(b <= 1.35e-107)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -4.4e+30) || ~((b <= 1.35e-107))) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); else tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.4e+30], N[Not[LessEqual[b, 1.35e-107]], $MachinePrecision]], 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[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+30} \lor \neg \left(b \leq 1.35 \cdot 10^{-107}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\end{array}
\end{array}
if b < -4.4e30 or 1.35e-107 < b Initial program 73.6%
Taylor expanded in j around 0 67.9%
if -4.4e30 < b < 1.35e-107Initial program 63.3%
Taylor expanded in y around -inf 69.5%
Simplified72.9%
Taylor expanded in i around 0 62.4%
+-commutative62.4%
associate-+l+62.4%
+-commutative62.4%
mul-1-neg62.4%
associate-*r*69.6%
*-commutative69.6%
distribute-lft-neg-in69.6%
*-commutative69.6%
mul-1-neg69.6%
associate-*r*70.6%
distribute-rgt-in73.1%
+-commutative73.1%
mul-1-neg73.1%
sub-neg73.1%
Simplified73.1%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* a (* t (- x)))))
(if (<= b -2.05e+163)
t_1
(if (<= b -2.9e+79)
(* x (* y z))
(if (<= b -2e-58)
t_1
(if (<= b -2.3e-152)
t_2
(if (<= b -1.75e-256)
(* z (* x y))
(if (<= b 1.9e-249)
(* a (* c j))
(if (<= b 7e-153)
t_2
(if (<= b 6.8e-6) (* 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 t_1 = c * (z * -b);
double t_2 = a * (t * -x);
double tmp;
if (b <= -2.05e+163) {
tmp = t_1;
} else if (b <= -2.9e+79) {
tmp = x * (y * z);
} else if (b <= -2e-58) {
tmp = t_1;
} else if (b <= -2.3e-152) {
tmp = t_2;
} else if (b <= -1.75e-256) {
tmp = z * (x * y);
} else if (b <= 1.9e-249) {
tmp = a * (c * j);
} else if (b <= 7e-153) {
tmp = t_2;
} else if (b <= 6.8e-6) {
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = a * (t * -x)
if (b <= (-2.05d+163)) then
tmp = t_1
else if (b <= (-2.9d+79)) then
tmp = x * (y * z)
else if (b <= (-2d-58)) then
tmp = t_1
else if (b <= (-2.3d-152)) then
tmp = t_2
else if (b <= (-1.75d-256)) then
tmp = z * (x * y)
else if (b <= 1.9d-249) then
tmp = a * (c * j)
else if (b <= 7d-153) then
tmp = t_2
else if (b <= 6.8d-6) 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 t_1 = c * (z * -b);
double t_2 = a * (t * -x);
double tmp;
if (b <= -2.05e+163) {
tmp = t_1;
} else if (b <= -2.9e+79) {
tmp = x * (y * z);
} else if (b <= -2e-58) {
tmp = t_1;
} else if (b <= -2.3e-152) {
tmp = t_2;
} else if (b <= -1.75e-256) {
tmp = z * (x * y);
} else if (b <= 1.9e-249) {
tmp = a * (c * j);
} else if (b <= 7e-153) {
tmp = t_2;
} else if (b <= 6.8e-6) {
tmp = c * (a * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = a * (t * -x) tmp = 0 if b <= -2.05e+163: tmp = t_1 elif b <= -2.9e+79: tmp = x * (y * z) elif b <= -2e-58: tmp = t_1 elif b <= -2.3e-152: tmp = t_2 elif b <= -1.75e-256: tmp = z * (x * y) elif b <= 1.9e-249: tmp = a * (c * j) elif b <= 7e-153: tmp = t_2 elif b <= 6.8e-6: tmp = c * (a * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(a * Float64(t * Float64(-x))) tmp = 0.0 if (b <= -2.05e+163) tmp = t_1; elseif (b <= -2.9e+79) tmp = Float64(x * Float64(y * z)); elseif (b <= -2e-58) tmp = t_1; elseif (b <= -2.3e-152) tmp = t_2; elseif (b <= -1.75e-256) tmp = Float64(z * Float64(x * y)); elseif (b <= 1.9e-249) tmp = Float64(a * Float64(c * j)); elseif (b <= 7e-153) tmp = t_2; elseif (b <= 6.8e-6) 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) t_1 = c * (z * -b); t_2 = a * (t * -x); tmp = 0.0; if (b <= -2.05e+163) tmp = t_1; elseif (b <= -2.9e+79) tmp = x * (y * z); elseif (b <= -2e-58) tmp = t_1; elseif (b <= -2.3e-152) tmp = t_2; elseif (b <= -1.75e-256) tmp = z * (x * y); elseif (b <= 1.9e-249) tmp = a * (c * j); elseif (b <= 7e-153) tmp = t_2; elseif (b <= 6.8e-6) tmp = c * (a * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.05e+163], t$95$1, If[LessEqual[b, -2.9e+79], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e-58], t$95$1, If[LessEqual[b, -2.3e-152], t$95$2, If[LessEqual[b, -1.75e-256], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-249], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-153], t$95$2, If[LessEqual[b, 6.8e-6], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{if}\;b \leq -2.05 \cdot 10^{+163}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{+79}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-152}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-256}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-249}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-153}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-6}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -2.05e163 or -2.89999999999999992e79 < b < -2.0000000000000001e-58Initial program 64.1%
Taylor expanded in c around inf 60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in j around 0 46.0%
mul-1-neg46.0%
distribute-lft-neg-out46.0%
*-commutative46.0%
Simplified46.0%
if -2.05e163 < b < -2.89999999999999992e79Initial program 64.9%
Taylor expanded in z around inf 51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in y around inf 36.7%
Taylor expanded in z around 0 46.1%
if -2.0000000000000001e-58 < b < -2.3000000000000001e-152 or 1.9e-249 < b < 6.99999999999999961e-153Initial program 58.7%
Taylor expanded in a around inf 64.8%
+-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in j around 0 51.3%
mul-1-neg51.3%
distribute-lft-neg-out51.3%
*-commutative51.3%
Simplified51.3%
if -2.3000000000000001e-152 < b < -1.75000000000000007e-256Initial program 68.1%
Taylor expanded in z around inf 45.6%
*-commutative45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in y around inf 37.7%
if -1.75000000000000007e-256 < b < 1.9e-249Initial program 72.4%
Taylor expanded in a around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in j around inf 56.9%
if 6.99999999999999961e-153 < b < 6.80000000000000012e-6Initial program 80.1%
Taylor expanded in c around inf 43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in j around inf 33.0%
if 6.80000000000000012e-6 < b Initial program 75.6%
Taylor expanded in y around -inf 70.1%
Simplified70.1%
Taylor expanded in i around inf 60.7%
Taylor expanded in j around 0 46.5%
associate-*r*50.0%
*-commutative50.0%
Simplified50.0%
Final simplification46.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -2.7e+181)
t_1
(if (<= x -7e+101)
(* a (- (* c j) (* x t)))
(if (<= x -1.9e-12)
t_1
(if (<= x -2.85e-300)
(* i (- (* t b) (* y j)))
(if (<= x 7.2e+30)
(* c (- (* a j) (* z b)))
(if (<= x 6.5e+131) (* 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.7e+181) {
tmp = t_1;
} else if (x <= -7e+101) {
tmp = a * ((c * j) - (x * t));
} else if (x <= -1.9e-12) {
tmp = t_1;
} else if (x <= -2.85e-300) {
tmp = i * ((t * b) - (y * j));
} else if (x <= 7.2e+30) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 6.5e+131) {
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 = x * ((y * z) - (t * a))
if (x <= (-2.7d+181)) then
tmp = t_1
else if (x <= (-7d+101)) then
tmp = a * ((c * j) - (x * t))
else if (x <= (-1.9d-12)) then
tmp = t_1
else if (x <= (-2.85d-300)) then
tmp = i * ((t * b) - (y * j))
else if (x <= 7.2d+30) then
tmp = c * ((a * j) - (z * b))
else if (x <= 6.5d+131) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.7e+181) {
tmp = t_1;
} else if (x <= -7e+101) {
tmp = a * ((c * j) - (x * t));
} else if (x <= -1.9e-12) {
tmp = t_1;
} else if (x <= -2.85e-300) {
tmp = i * ((t * b) - (y * j));
} else if (x <= 7.2e+30) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 6.5e+131) {
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 = x * ((y * z) - (t * a)) tmp = 0 if x <= -2.7e+181: tmp = t_1 elif x <= -7e+101: tmp = a * ((c * j) - (x * t)) elif x <= -1.9e-12: tmp = t_1 elif x <= -2.85e-300: tmp = i * ((t * b) - (y * j)) elif x <= 7.2e+30: tmp = c * ((a * j) - (z * b)) elif x <= 6.5e+131: 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -2.7e+181) tmp = t_1; elseif (x <= -7e+101) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (x <= -1.9e-12) tmp = t_1; elseif (x <= -2.85e-300) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (x <= 7.2e+30) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (x <= 6.5e+131) 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 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -2.7e+181) tmp = t_1; elseif (x <= -7e+101) tmp = a * ((c * j) - (x * t)); elseif (x <= -1.9e-12) tmp = t_1; elseif (x <= -2.85e-300) tmp = i * ((t * b) - (y * j)); elseif (x <= 7.2e+30) tmp = c * ((a * j) - (z * b)); elseif (x <= 6.5e+131) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.7e+181], t$95$1, If[LessEqual[x, -7e+101], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.9e-12], t$95$1, If[LessEqual[x, -2.85e-300], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e+30], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e+131], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -2.7 \cdot 10^{+181}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -7 \cdot 10^{+101}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.85 \cdot 10^{-300}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{+30}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+131}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.70000000000000007e181 or -7.00000000000000046e101 < x < -1.89999999999999998e-12 or 6.5e131 < x Initial program 68.1%
Taylor expanded in x around inf 69.2%
if -2.70000000000000007e181 < x < -7.00000000000000046e101Initial program 53.7%
Taylor expanded in a around inf 86.8%
+-commutative86.8%
mul-1-neg86.8%
unsub-neg86.8%
*-commutative86.8%
Simplified86.8%
if -1.89999999999999998e-12 < x < -2.8499999999999999e-300Initial program 70.7%
Taylor expanded in y around -inf 84.0%
Simplified85.9%
Taylor expanded in i around inf 52.3%
Taylor expanded in j around 0 52.1%
+-commutative52.1%
mul-1-neg52.1%
*-commutative52.1%
*-commutative52.1%
fma-def52.1%
fma-neg52.1%
*-commutative52.1%
associate-*l*52.3%
distribute-rgt-out--52.3%
Simplified52.3%
if -2.8499999999999999e-300 < x < 7.2000000000000004e30Initial program 69.8%
Taylor expanded in c around inf 59.5%
*-commutative59.5%
Simplified59.5%
if 7.2000000000000004e30 < x < 6.5e131Initial program 73.6%
Taylor expanded in y around -inf 68.4%
Simplified68.4%
Taylor expanded in t around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
Simplified63.7%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))))
(if (<= b -2.4e-57)
(* z (* c (- b)))
(if (<= b -4.8e-152)
t_1
(if (<= b -7.5e-243)
(* z (* x y))
(if (<= b -1.65e-256)
t_1
(if (<= b 1.2e-239)
(* a (* c j))
(if (<= b 6.6e-153)
(* a (* t (- x)))
(if (<= b 19500000.0) (* 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 t_1 = x * (t * -a);
double tmp;
if (b <= -2.4e-57) {
tmp = z * (c * -b);
} else if (b <= -4.8e-152) {
tmp = t_1;
} else if (b <= -7.5e-243) {
tmp = z * (x * y);
} else if (b <= -1.65e-256) {
tmp = t_1;
} else if (b <= 1.2e-239) {
tmp = a * (c * j);
} else if (b <= 6.6e-153) {
tmp = a * (t * -x);
} else if (b <= 19500000.0) {
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) :: t_1
real(8) :: tmp
t_1 = x * (t * -a)
if (b <= (-2.4d-57)) then
tmp = z * (c * -b)
else if (b <= (-4.8d-152)) then
tmp = t_1
else if (b <= (-7.5d-243)) then
tmp = z * (x * y)
else if (b <= (-1.65d-256)) then
tmp = t_1
else if (b <= 1.2d-239) then
tmp = a * (c * j)
else if (b <= 6.6d-153) then
tmp = a * (t * -x)
else if (b <= 19500000.0d0) 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 t_1 = x * (t * -a);
double tmp;
if (b <= -2.4e-57) {
tmp = z * (c * -b);
} else if (b <= -4.8e-152) {
tmp = t_1;
} else if (b <= -7.5e-243) {
tmp = z * (x * y);
} else if (b <= -1.65e-256) {
tmp = t_1;
} else if (b <= 1.2e-239) {
tmp = a * (c * j);
} else if (b <= 6.6e-153) {
tmp = a * (t * -x);
} else if (b <= 19500000.0) {
tmp = c * (a * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) tmp = 0 if b <= -2.4e-57: tmp = z * (c * -b) elif b <= -4.8e-152: tmp = t_1 elif b <= -7.5e-243: tmp = z * (x * y) elif b <= -1.65e-256: tmp = t_1 elif b <= 1.2e-239: tmp = a * (c * j) elif b <= 6.6e-153: tmp = a * (t * -x) elif b <= 19500000.0: tmp = c * (a * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) tmp = 0.0 if (b <= -2.4e-57) tmp = Float64(z * Float64(c * Float64(-b))); elseif (b <= -4.8e-152) tmp = t_1; elseif (b <= -7.5e-243) tmp = Float64(z * Float64(x * y)); elseif (b <= -1.65e-256) tmp = t_1; elseif (b <= 1.2e-239) tmp = Float64(a * Float64(c * j)); elseif (b <= 6.6e-153) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 19500000.0) 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) t_1 = x * (t * -a); tmp = 0.0; if (b <= -2.4e-57) tmp = z * (c * -b); elseif (b <= -4.8e-152) tmp = t_1; elseif (b <= -7.5e-243) tmp = z * (x * y); elseif (b <= -1.65e-256) tmp = t_1; elseif (b <= 1.2e-239) tmp = a * (c * j); elseif (b <= 6.6e-153) tmp = a * (t * -x); elseif (b <= 19500000.0) tmp = c * (a * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e-57], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.8e-152], t$95$1, If[LessEqual[b, -7.5e-243], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.65e-256], t$95$1, If[LessEqual[b, 1.2e-239], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e-153], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 19500000.0], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{-57}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{-152}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-243}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq -1.65 \cdot 10^{-256}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-239}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{-153}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 19500000:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -2.40000000000000006e-57Initial program 63.8%
Taylor expanded in z around inf 54.3%
*-commutative54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in y around 0 41.6%
mul-1-neg41.6%
*-commutative41.6%
distribute-rgt-neg-in41.6%
Simplified41.6%
if -2.40000000000000006e-57 < b < -4.8e-152 or -7.5e-243 < b < -1.65e-256Initial program 55.3%
Taylor expanded in a around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in j around 0 42.6%
mul-1-neg42.6%
*-commutative42.6%
associate-*r*42.6%
*-commutative42.6%
associate-*r*46.9%
distribute-rgt-neg-out46.9%
distribute-rgt-neg-in46.9%
Simplified46.9%
if -4.8e-152 < b < -7.5e-243Initial program 71.7%
Taylor expanded in z around inf 46.9%
*-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in y around inf 41.5%
if -1.65e-256 < b < 1.19999999999999996e-239Initial program 72.4%
Taylor expanded in a around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in j around inf 56.9%
if 1.19999999999999996e-239 < b < 6.59999999999999975e-153Initial program 60.4%
Taylor expanded in a around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in j around 0 55.0%
mul-1-neg55.0%
distribute-lft-neg-out55.0%
*-commutative55.0%
Simplified55.0%
if 6.59999999999999975e-153 < b < 1.95e7Initial program 80.1%
Taylor expanded in c around inf 43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in j around inf 33.0%
if 1.95e7 < b Initial program 75.6%
Taylor expanded in y around -inf 70.1%
Simplified70.1%
Taylor expanded in i around inf 60.7%
Taylor expanded in j around 0 46.5%
associate-*r*50.0%
*-commutative50.0%
Simplified50.0%
Final simplification45.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.6e+30)
t_2
(if (<= b -3e-157)
t_1
(if (<= b -3.4e-214)
(* y (* x z))
(if (<= b 1.9e-74)
t_1
(if (<= b 4e+139) (* i (- (* t b) (* y j))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.6e+30) {
tmp = t_2;
} else if (b <= -3e-157) {
tmp = t_1;
} else if (b <= -3.4e-214) {
tmp = y * (x * z);
} else if (b <= 1.9e-74) {
tmp = t_1;
} else if (b <= 4e+139) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.6d+30)) then
tmp = t_2
else if (b <= (-3d-157)) then
tmp = t_1
else if (b <= (-3.4d-214)) then
tmp = y * (x * z)
else if (b <= 1.9d-74) then
tmp = t_1
else if (b <= 4d+139) then
tmp = i * ((t * b) - (y * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.6e+30) {
tmp = t_2;
} else if (b <= -3e-157) {
tmp = t_1;
} else if (b <= -3.4e-214) {
tmp = y * (x * z);
} else if (b <= 1.9e-74) {
tmp = t_1;
} else if (b <= 4e+139) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.6e+30: tmp = t_2 elif b <= -3e-157: tmp = t_1 elif b <= -3.4e-214: tmp = y * (x * z) elif b <= 1.9e-74: tmp = t_1 elif b <= 4e+139: tmp = i * ((t * b) - (y * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.6e+30) tmp = t_2; elseif (b <= -3e-157) tmp = t_1; elseif (b <= -3.4e-214) tmp = Float64(y * Float64(x * z)); elseif (b <= 1.9e-74) tmp = t_1; elseif (b <= 4e+139) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.6e+30) tmp = t_2; elseif (b <= -3e-157) tmp = t_1; elseif (b <= -3.4e-214) tmp = y * (x * z); elseif (b <= 1.9e-74) tmp = t_1; elseif (b <= 4e+139) tmp = i * ((t * b) - (y * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.6e+30], t$95$2, If[LessEqual[b, -3e-157], t$95$1, If[LessEqual[b, -3.4e-214], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-74], t$95$1, If[LessEqual[b, 4e+139], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.6 \cdot 10^{+30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+139}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.6000000000000002e30 or 4.00000000000000013e139 < b Initial program 71.8%
Taylor expanded in b around inf 67.2%
if -3.6000000000000002e30 < b < -3e-157 or -3.3999999999999999e-214 < b < 1.8999999999999998e-74Initial program 63.6%
Taylor expanded in a around inf 57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
if -3e-157 < b < -3.3999999999999999e-214Initial program 75.4%
Taylor expanded in z around inf 59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in y around inf 51.8%
Taylor expanded in z around 0 44.2%
associate-*r*51.8%
*-commutative51.8%
associate-*r*52.0%
*-commutative52.0%
Simplified52.0%
if 1.8999999999999998e-74 < b < 4.00000000000000013e139Initial program 74.2%
Taylor expanded in y around -inf 76.8%
Simplified76.8%
Taylor expanded in i around inf 59.0%
Taylor expanded in j around 0 56.5%
+-commutative56.5%
mul-1-neg56.5%
*-commutative56.5%
*-commutative56.5%
fma-def56.5%
fma-neg56.5%
*-commutative56.5%
associate-*l*56.4%
distribute-rgt-out--59.0%
Simplified59.0%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.7e+30)
t_2
(if (<= b -5e-156)
t_1
(if (<= b -2.25e-231)
(* j (- (* a c) (* y i)))
(if (<= b 2.1e-74)
t_1
(if (<= b 3.7e+139) (* i (- (* t b) (* y j))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.7e+30) {
tmp = t_2;
} else if (b <= -5e-156) {
tmp = t_1;
} else if (b <= -2.25e-231) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 2.1e-74) {
tmp = t_1;
} else if (b <= 3.7e+139) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.7d+30)) then
tmp = t_2
else if (b <= (-5d-156)) then
tmp = t_1
else if (b <= (-2.25d-231)) then
tmp = j * ((a * c) - (y * i))
else if (b <= 2.1d-74) then
tmp = t_1
else if (b <= 3.7d+139) then
tmp = i * ((t * b) - (y * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.7e+30) {
tmp = t_2;
} else if (b <= -5e-156) {
tmp = t_1;
} else if (b <= -2.25e-231) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 2.1e-74) {
tmp = t_1;
} else if (b <= 3.7e+139) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.7e+30: tmp = t_2 elif b <= -5e-156: tmp = t_1 elif b <= -2.25e-231: tmp = j * ((a * c) - (y * i)) elif b <= 2.1e-74: tmp = t_1 elif b <= 3.7e+139: tmp = i * ((t * b) - (y * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.7e+30) tmp = t_2; elseif (b <= -5e-156) tmp = t_1; elseif (b <= -2.25e-231) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 2.1e-74) tmp = t_1; elseif (b <= 3.7e+139) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.7e+30) tmp = t_2; elseif (b <= -5e-156) tmp = t_1; elseif (b <= -2.25e-231) tmp = j * ((a * c) - (y * i)); elseif (b <= 2.1e-74) tmp = t_1; elseif (b <= 3.7e+139) tmp = i * ((t * b) - (y * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e+30], t$95$2, If[LessEqual[b, -5e-156], t$95$1, If[LessEqual[b, -2.25e-231], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-74], t$95$1, If[LessEqual[b, 3.7e+139], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{+30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-156}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{-231}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+139}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.70000000000000016e30 or 3.69999999999999992e139 < b Initial program 71.8%
Taylor expanded in b around inf 67.2%
if -3.70000000000000016e30 < b < -5.00000000000000007e-156 or -2.2499999999999999e-231 < b < 2.1e-74Initial program 62.4%
Taylor expanded in a around inf 58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
*-commutative58.8%
Simplified58.8%
if -5.00000000000000007e-156 < b < -2.2499999999999999e-231Initial program 76.5%
Taylor expanded in j around inf 53.6%
if 2.1e-74 < b < 3.69999999999999992e139Initial program 74.2%
Taylor expanded in y around -inf 76.8%
Simplified76.8%
Taylor expanded in i around inf 59.0%
Taylor expanded in j around 0 56.5%
+-commutative56.5%
mul-1-neg56.5%
*-commutative56.5%
*-commutative56.5%
fma-def56.5%
fma-neg56.5%
*-commutative56.5%
associate-*l*56.4%
distribute-rgt-out--59.0%
Simplified59.0%
Final simplification61.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= b -1.8e+31)
(* z (* c (- b)))
(if (<= b -2.4e-157)
t_1
(if (<= b -3.4e-214)
(* y (* x z))
(if (<= b 4.7e+32) t_1 (* t (* b i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (b <= -1.8e+31) {
tmp = z * (c * -b);
} else if (b <= -2.4e-157) {
tmp = t_1;
} else if (b <= -3.4e-214) {
tmp = y * (x * z);
} else if (b <= 4.7e+32) {
tmp = t_1;
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (b <= (-1.8d+31)) then
tmp = z * (c * -b)
else if (b <= (-2.4d-157)) then
tmp = t_1
else if (b <= (-3.4d-214)) then
tmp = y * (x * z)
else if (b <= 4.7d+32) then
tmp = t_1
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (b <= -1.8e+31) {
tmp = z * (c * -b);
} else if (b <= -2.4e-157) {
tmp = t_1;
} else if (b <= -3.4e-214) {
tmp = y * (x * z);
} else if (b <= 4.7e+32) {
tmp = t_1;
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if b <= -1.8e+31: tmp = z * (c * -b) elif b <= -2.4e-157: tmp = t_1 elif b <= -3.4e-214: tmp = y * (x * z) elif b <= 4.7e+32: tmp = t_1 else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (b <= -1.8e+31) tmp = Float64(z * Float64(c * Float64(-b))); elseif (b <= -2.4e-157) tmp = t_1; elseif (b <= -3.4e-214) tmp = Float64(y * Float64(x * z)); elseif (b <= 4.7e+32) tmp = t_1; else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (b <= -1.8e+31) tmp = z * (c * -b); elseif (b <= -2.4e-157) tmp = t_1; elseif (b <= -3.4e-214) tmp = y * (x * z); elseif (b <= 4.7e+32) tmp = t_1; else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+31], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.4e-157], t$95$1, If[LessEqual[b, -3.4e-214], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.7e+32], t$95$1, N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+31}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -1.79999999999999998e31Initial program 70.0%
Taylor expanded in z around inf 56.1%
*-commutative56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in y around 0 46.5%
mul-1-neg46.5%
*-commutative46.5%
distribute-rgt-neg-in46.5%
Simplified46.5%
if -1.79999999999999998e31 < b < -2.4e-157 or -3.3999999999999999e-214 < b < 4.70000000000000023e32Initial program 64.1%
Taylor expanded in a around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
Simplified53.4%
if -2.4e-157 < b < -3.3999999999999999e-214Initial program 75.4%
Taylor expanded in z around inf 59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in y around inf 51.8%
Taylor expanded in z around 0 44.2%
associate-*r*51.8%
*-commutative51.8%
associate-*r*52.0%
*-commutative52.0%
Simplified52.0%
if 4.70000000000000023e32 < b Initial program 77.1%
Taylor expanded in y around -inf 74.8%
Simplified74.8%
Taylor expanded in i around inf 60.8%
Taylor expanded in j around 0 47.6%
associate-*r*51.4%
*-commutative51.4%
Simplified51.4%
Final simplification51.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -7.8e+30)
t_2
(if (<= b -2.4e-157)
t_1
(if (<= b -3.4e-214) (* y (* x z)) (if (<= b 1.15e-90) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7.8e+30) {
tmp = t_2;
} else if (b <= -2.4e-157) {
tmp = t_1;
} else if (b <= -3.4e-214) {
tmp = y * (x * z);
} else if (b <= 1.15e-90) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-7.8d+30)) then
tmp = t_2
else if (b <= (-2.4d-157)) then
tmp = t_1
else if (b <= (-3.4d-214)) then
tmp = y * (x * z)
else if (b <= 1.15d-90) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7.8e+30) {
tmp = t_2;
} else if (b <= -2.4e-157) {
tmp = t_1;
} else if (b <= -3.4e-214) {
tmp = y * (x * z);
} else if (b <= 1.15e-90) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -7.8e+30: tmp = t_2 elif b <= -2.4e-157: tmp = t_1 elif b <= -3.4e-214: tmp = y * (x * z) elif b <= 1.15e-90: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.8e+30) tmp = t_2; elseif (b <= -2.4e-157) tmp = t_1; elseif (b <= -3.4e-214) tmp = Float64(y * Float64(x * z)); elseif (b <= 1.15e-90) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -7.8e+30) tmp = t_2; elseif (b <= -2.4e-157) tmp = t_1; elseif (b <= -3.4e-214) tmp = y * (x * z); elseif (b <= 1.15e-90) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.8e+30], t$95$2, If[LessEqual[b, -2.4e-157], t$95$1, If[LessEqual[b, -3.4e-214], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e-90], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.8 \cdot 10^{+30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-90}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -7.80000000000000021e30 or 1.1499999999999999e-90 < b Initial program 73.4%
Taylor expanded in b around inf 58.4%
if -7.80000000000000021e30 < b < -2.4e-157 or -3.3999999999999999e-214 < b < 1.1499999999999999e-90Initial program 62.3%
Taylor expanded in a around inf 58.9%
+-commutative58.9%
mul-1-neg58.9%
unsub-neg58.9%
*-commutative58.9%
Simplified58.9%
if -2.4e-157 < b < -3.3999999999999999e-214Initial program 75.4%
Taylor expanded in z around inf 59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in y around inf 51.8%
Taylor expanded in z around 0 44.2%
associate-*r*51.8%
*-commutative51.8%
associate-*r*52.0%
*-commutative52.0%
Simplified52.0%
Final simplification58.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= z -1.86e-76)
(* y (* x z))
(if (<= z 1.05e-196)
t_1
(if (<= z 1.5e-177)
(* b (* t i))
(if (<= z 5.4e-151)
t_1
(if (<= z 7.5e-48) (* a (* t (- x))) (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (z <= -1.86e-76) {
tmp = y * (x * z);
} else if (z <= 1.05e-196) {
tmp = t_1;
} else if (z <= 1.5e-177) {
tmp = b * (t * i);
} else if (z <= 5.4e-151) {
tmp = t_1;
} else if (z <= 7.5e-48) {
tmp = a * (t * -x);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (z <= (-1.86d-76)) then
tmp = y * (x * z)
else if (z <= 1.05d-196) then
tmp = t_1
else if (z <= 1.5d-177) then
tmp = b * (t * i)
else if (z <= 5.4d-151) then
tmp = t_1
else if (z <= 7.5d-48) then
tmp = a * (t * -x)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (z <= -1.86e-76) {
tmp = y * (x * z);
} else if (z <= 1.05e-196) {
tmp = t_1;
} else if (z <= 1.5e-177) {
tmp = b * (t * i);
} else if (z <= 5.4e-151) {
tmp = t_1;
} else if (z <= 7.5e-48) {
tmp = a * (t * -x);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if z <= -1.86e-76: tmp = y * (x * z) elif z <= 1.05e-196: tmp = t_1 elif z <= 1.5e-177: tmp = b * (t * i) elif z <= 5.4e-151: tmp = t_1 elif z <= 7.5e-48: tmp = a * (t * -x) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (z <= -1.86e-76) tmp = Float64(y * Float64(x * z)); elseif (z <= 1.05e-196) tmp = t_1; elseif (z <= 1.5e-177) tmp = Float64(b * Float64(t * i)); elseif (z <= 5.4e-151) tmp = t_1; elseif (z <= 7.5e-48) tmp = Float64(a * Float64(t * Float64(-x))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (z <= -1.86e-76) tmp = y * (x * z); elseif (z <= 1.05e-196) tmp = t_1; elseif (z <= 1.5e-177) tmp = b * (t * i); elseif (z <= 5.4e-151) tmp = t_1; elseif (z <= 7.5e-48) tmp = a * (t * -x); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.86e-76], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e-196], t$95$1, If[LessEqual[z, 1.5e-177], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e-151], t$95$1, If[LessEqual[z, 7.5e-48], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;z \leq -1.86 \cdot 10^{-76}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-177}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-48}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -1.86000000000000012e-76Initial program 57.4%
Taylor expanded in z around inf 56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in y around inf 34.6%
Taylor expanded in z around 0 33.6%
associate-*r*34.6%
*-commutative34.6%
associate-*r*38.3%
*-commutative38.3%
Simplified38.3%
if -1.86000000000000012e-76 < z < 1.04999999999999994e-196 or 1.50000000000000004e-177 < z < 5.40000000000000014e-151Initial program 72.6%
Taylor expanded in a around inf 52.2%
+-commutative52.2%
mul-1-neg52.2%
unsub-neg52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in j around inf 36.0%
if 1.04999999999999994e-196 < z < 1.50000000000000004e-177Initial program 87.5%
Taylor expanded in y around -inf 87.3%
Simplified87.3%
Taylor expanded in i around inf 75.8%
Taylor expanded in j around 0 72.4%
if 5.40000000000000014e-151 < z < 7.50000000000000042e-48Initial program 83.2%
Taylor expanded in a around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in j around 0 51.6%
mul-1-neg51.6%
distribute-lft-neg-out51.6%
*-commutative51.6%
Simplified51.6%
if 7.50000000000000042e-48 < z Initial program 69.5%
Taylor expanded in z around inf 62.2%
*-commutative62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in y around inf 36.3%
Taylor expanded in z around 0 37.6%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= j -6.5e+23)
t_1
(if (<= j -1e-181)
(* x (* t (- a)))
(if (<= j 95000.0)
(* z (* x y))
(if (<= j 7.2e+92) (* (* y j) (- 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 = c * (a * j);
double tmp;
if (j <= -6.5e+23) {
tmp = t_1;
} else if (j <= -1e-181) {
tmp = x * (t * -a);
} else if (j <= 95000.0) {
tmp = z * (x * y);
} else if (j <= 7.2e+92) {
tmp = (y * j) * -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 = c * (a * j)
if (j <= (-6.5d+23)) then
tmp = t_1
else if (j <= (-1d-181)) then
tmp = x * (t * -a)
else if (j <= 95000.0d0) then
tmp = z * (x * y)
else if (j <= 7.2d+92) then
tmp = (y * j) * -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 = c * (a * j);
double tmp;
if (j <= -6.5e+23) {
tmp = t_1;
} else if (j <= -1e-181) {
tmp = x * (t * -a);
} else if (j <= 95000.0) {
tmp = z * (x * y);
} else if (j <= 7.2e+92) {
tmp = (y * j) * -i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if j <= -6.5e+23: tmp = t_1 elif j <= -1e-181: tmp = x * (t * -a) elif j <= 95000.0: tmp = z * (x * y) elif j <= 7.2e+92: tmp = (y * j) * -i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (j <= -6.5e+23) tmp = t_1; elseif (j <= -1e-181) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 95000.0) tmp = Float64(z * Float64(x * y)); elseif (j <= 7.2e+92) tmp = Float64(Float64(y * j) * Float64(-i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (a * j); tmp = 0.0; if (j <= -6.5e+23) tmp = t_1; elseif (j <= -1e-181) tmp = x * (t * -a); elseif (j <= 95000.0) tmp = z * (x * y); elseif (j <= 7.2e+92) tmp = (y * j) * -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[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.5e+23], t$95$1, If[LessEqual[j, -1e-181], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 95000.0], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.2e+92], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;j \leq -6.5 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 95000:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{+92}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -6.4999999999999996e23 or 7.2e92 < j Initial program 63.1%
Taylor expanded in c around inf 56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in j around inf 43.5%
if -6.4999999999999996e23 < j < -1.00000000000000005e-181Initial program 75.1%
Taylor expanded in a around inf 45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in j around 0 31.2%
mul-1-neg31.2%
*-commutative31.2%
associate-*r*33.2%
*-commutative33.2%
associate-*r*35.1%
distribute-rgt-neg-out35.1%
distribute-rgt-neg-in35.1%
Simplified35.1%
if -1.00000000000000005e-181 < j < 95000Initial program 70.6%
Taylor expanded in z around inf 57.5%
*-commutative57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in y around inf 37.6%
if 95000 < j < 7.2e92Initial program 69.6%
Taylor expanded in y around -inf 78.4%
Simplified82.7%
Taylor expanded in i around inf 75.1%
Taylor expanded in j around inf 57.7%
associate-*r*57.7%
mul-1-neg57.7%
Simplified57.7%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= j -2.6e-120)
t_1
(if (<= j 4.5e-12)
(* z (* x y))
(if (or (<= j 1.25e+47) (not (<= j 2.9e+91))) t_1 (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (j <= -2.6e-120) {
tmp = t_1;
} else if (j <= 4.5e-12) {
tmp = z * (x * y);
} else if ((j <= 1.25e+47) || !(j <= 2.9e+91)) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (a * j)
if (j <= (-2.6d-120)) then
tmp = t_1
else if (j <= 4.5d-12) then
tmp = z * (x * y)
else if ((j <= 1.25d+47) .or. (.not. (j <= 2.9d+91))) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (j <= -2.6e-120) {
tmp = t_1;
} else if (j <= 4.5e-12) {
tmp = z * (x * y);
} else if ((j <= 1.25e+47) || !(j <= 2.9e+91)) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if j <= -2.6e-120: tmp = t_1 elif j <= 4.5e-12: tmp = z * (x * y) elif (j <= 1.25e+47) or not (j <= 2.9e+91): tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (j <= -2.6e-120) tmp = t_1; elseif (j <= 4.5e-12) tmp = Float64(z * Float64(x * y)); elseif ((j <= 1.25e+47) || !(j <= 2.9e+91)) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (a * j); tmp = 0.0; if (j <= -2.6e-120) tmp = t_1; elseif (j <= 4.5e-12) tmp = z * (x * y); elseif ((j <= 1.25e+47) || ~((j <= 2.9e+91))) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.6e-120], t$95$1, If[LessEqual[j, 4.5e-12], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, 1.25e+47], N[Not[LessEqual[j, 2.9e+91]], $MachinePrecision]], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;j \leq -2.6 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{-12}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{+47} \lor \neg \left(j \leq 2.9 \cdot 10^{+91}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if j < -2.6000000000000001e-120 or 4.49999999999999981e-12 < j < 1.25000000000000005e47 or 2.90000000000000014e91 < j Initial program 65.8%
Taylor expanded in c around inf 50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in j around inf 38.5%
if -2.6000000000000001e-120 < j < 4.49999999999999981e-12Initial program 71.4%
Taylor expanded in z around inf 55.9%
*-commutative55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in y around inf 36.1%
if 1.25000000000000005e47 < j < 2.90000000000000014e91Initial program 80.0%
Taylor expanded in z around inf 60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in y around inf 50.6%
Taylor expanded in z around 0 50.7%
Final simplification38.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -4.5e+29)
t_1
(if (<= i 3e-184) (* x (* y z)) (if (<= i 1.96e+87) (* a (* c 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 <= -4.5e+29) {
tmp = t_1;
} else if (i <= 3e-184) {
tmp = x * (y * z);
} else if (i <= 1.96e+87) {
tmp = a * (c * 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 <= (-4.5d+29)) then
tmp = t_1
else if (i <= 3d-184) then
tmp = x * (y * z)
else if (i <= 1.96d+87) then
tmp = a * (c * 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 <= -4.5e+29) {
tmp = t_1;
} else if (i <= 3e-184) {
tmp = x * (y * z);
} else if (i <= 1.96e+87) {
tmp = a * (c * 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 <= -4.5e+29: tmp = t_1 elif i <= 3e-184: tmp = x * (y * z) elif i <= 1.96e+87: tmp = a * (c * 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 <= -4.5e+29) tmp = t_1; elseif (i <= 3e-184) tmp = Float64(x * Float64(y * z)); elseif (i <= 1.96e+87) tmp = Float64(a * Float64(c * 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 <= -4.5e+29) tmp = t_1; elseif (i <= 3e-184) tmp = x * (y * z); elseif (i <= 1.96e+87) tmp = a * (c * 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, -4.5e+29], t$95$1, If[LessEqual[i, 3e-184], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.96e+87], N[(a * N[(c * 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 -4.5 \cdot 10^{+29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-184}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 1.96 \cdot 10^{+87}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -4.5000000000000002e29 or 1.96e87 < i Initial program 62.9%
Taylor expanded in y around -inf 65.5%
Simplified65.5%
Taylor expanded in i around inf 62.4%
Taylor expanded in j around 0 34.6%
associate-*r*38.2%
*-commutative38.2%
Simplified38.2%
if -4.5000000000000002e29 < i < 2.99999999999999991e-184Initial program 76.2%
Taylor expanded in z around inf 55.6%
*-commutative55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in y around inf 33.8%
Taylor expanded in z around 0 32.9%
if 2.99999999999999991e-184 < i < 1.96e87Initial program 66.7%
Taylor expanded in a around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in j around inf 31.9%
Final simplification34.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.08e-79)
(* y (* x z))
(if (<= z 9.2e-204)
(* a (* c j))
(if (<= z 3.55e-72) (* i (* t b)) (* x (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.08e-79) {
tmp = y * (x * z);
} else if (z <= 9.2e-204) {
tmp = a * (c * j);
} else if (z <= 3.55e-72) {
tmp = i * (t * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.08d-79)) then
tmp = y * (x * z)
else if (z <= 9.2d-204) then
tmp = a * (c * j)
else if (z <= 3.55d-72) then
tmp = i * (t * b)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.08e-79) {
tmp = y * (x * z);
} else if (z <= 9.2e-204) {
tmp = a * (c * j);
} else if (z <= 3.55e-72) {
tmp = i * (t * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.08e-79: tmp = y * (x * z) elif z <= 9.2e-204: tmp = a * (c * j) elif z <= 3.55e-72: tmp = i * (t * b) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.08e-79) tmp = Float64(y * Float64(x * z)); elseif (z <= 9.2e-204) tmp = Float64(a * Float64(c * j)); elseif (z <= 3.55e-72) tmp = Float64(i * Float64(t * b)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.08e-79) tmp = y * (x * z); elseif (z <= 9.2e-204) tmp = a * (c * j); elseif (z <= 3.55e-72) tmp = i * (t * b); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.08e-79], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e-204], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.55e-72], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.08 \cdot 10^{-79}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-204}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 3.55 \cdot 10^{-72}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -1.0800000000000001e-79Initial program 57.4%
Taylor expanded in z around inf 56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in y around inf 34.6%
Taylor expanded in z around 0 33.6%
associate-*r*34.6%
*-commutative34.6%
associate-*r*38.3%
*-commutative38.3%
Simplified38.3%
if -1.0800000000000001e-79 < z < 9.1999999999999997e-204Initial program 73.2%
Taylor expanded in a around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in j around inf 34.2%
if 9.1999999999999997e-204 < z < 3.5499999999999998e-72Initial program 78.5%
Taylor expanded in y around -inf 75.0%
Simplified75.0%
Taylor expanded in i around inf 54.7%
Taylor expanded in j around 0 46.6%
*-commutative46.6%
associate-*l*46.8%
*-commutative46.8%
Simplified46.8%
if 3.5499999999999998e-72 < z Initial program 71.8%
Taylor expanded in z around inf 60.0%
*-commutative60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in y around inf 34.9%
Taylor expanded in z around 0 36.1%
Final simplification37.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.2e-39) (not (<= c 2.05e+121))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.2e-39) || !(c <= 2.05e+121)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.2d-39)) .or. (.not. (c <= 2.05d+121))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.2e-39) || !(c <= 2.05e+121)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.2e-39) or not (c <= 2.05e+121): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.2e-39) || !(c <= 2.05e+121)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.2e-39) || ~((c <= 2.05e+121))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.2e-39], N[Not[LessEqual[c, 2.05e+121]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{-39} \lor \neg \left(c \leq 2.05 \cdot 10^{+121}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -3.1999999999999998e-39 or 2.05e121 < c Initial program 61.9%
Taylor expanded in a around inf 54.4%
+-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in j around inf 40.7%
if -3.1999999999999998e-39 < c < 2.05e121Initial program 74.7%
Taylor expanded in y around -inf 75.3%
Simplified76.8%
Taylor expanded in i around inf 44.8%
Taylor expanded in j around 0 27.2%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.8e-39) (not (<= c 2.5e+80))) (* a (* c j)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e-39) || !(c <= 2.5e+80)) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.8d-39)) .or. (.not. (c <= 2.5d+80))) then
tmp = a * (c * j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e-39) || !(c <= 2.5e+80)) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.8e-39) or not (c <= 2.5e+80): tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.8e-39) || !(c <= 2.5e+80)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.8e-39) || ~((c <= 2.5e+80))) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.8e-39], N[Not[LessEqual[c, 2.5e+80]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.8 \cdot 10^{-39} \lor \neg \left(c \leq 2.5 \cdot 10^{+80}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -3.8000000000000002e-39 or 2.4999999999999998e80 < c Initial program 61.0%
Taylor expanded in a around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in j around inf 39.9%
if -3.8000000000000002e-39 < c < 2.4999999999999998e80Initial program 76.6%
Taylor expanded in y around -inf 75.7%
Simplified77.3%
Taylor expanded in i around inf 46.6%
Taylor expanded in j around 0 26.9%
associate-*r*27.7%
*-commutative27.7%
Simplified27.7%
Final simplification33.9%
(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 68.7%
Taylor expanded in a around inf 41.6%
+-commutative41.6%
mul-1-neg41.6%
unsub-neg41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in j around inf 23.3%
Final simplification23.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 2023318
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))