
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* t a)))))
(if (<= b -1.9e+111)
(* (* b i) (- t (/ (* c z) i)))
(if (<= b 4.3e-67)
(+
(- t_1 (* t (- (* c (/ (* b z) t)) (* b i))))
(* j (- (* c a) (* i y))))
(if (<= b 6.5e+17)
(* i (+ (* b t) (- (/ (fma c (- (* a j) (* b z)) t_1) i) (* y j))))
(- (* b (- (* i t) (* c z))) (* y (- (* i j) (* z x)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double tmp;
if (b <= -1.9e+111) {
tmp = (b * i) * (t - ((c * z) / i));
} else if (b <= 4.3e-67) {
tmp = (t_1 - (t * ((c * ((b * z) / t)) - (b * i)))) + (j * ((c * a) - (i * y)));
} else if (b <= 6.5e+17) {
tmp = i * ((b * t) + ((fma(c, ((a * j) - (b * z)), t_1) / i) - (y * j)));
} else {
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) tmp = 0.0 if (b <= -1.9e+111) tmp = Float64(Float64(b * i) * Float64(t - Float64(Float64(c * z) / i))); elseif (b <= 4.3e-67) tmp = Float64(Float64(t_1 - Float64(t * Float64(Float64(c * Float64(Float64(b * z) / t)) - Float64(b * i)))) + Float64(j * Float64(Float64(c * a) - Float64(i * y)))); elseif (b <= 6.5e+17) tmp = Float64(i * Float64(Float64(b * t) + Float64(Float64(fma(c, Float64(Float64(a * j) - Float64(b * z)), t_1) / i) - Float64(y * j)))); else tmp = Float64(Float64(b * Float64(Float64(i * t) - Float64(c * z))) - Float64(y * Float64(Float64(i * j) - Float64(z * x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+111], N[(N[(b * i), $MachinePrecision] * N[(t - N[(N[(c * z), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.3e-67], N[(N[(t$95$1 - N[(t * N[(N[(c * N[(N[(b * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e+17], N[(i * N[(N[(b * t), $MachinePrecision] + N[(N[(N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / i), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+111}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(t - \frac{c \cdot z}{i}\right)\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{-67}:\\
\;\;\;\;\left(t\_1 - t \cdot \left(c \cdot \frac{b \cdot z}{t} - b \cdot i\right)\right) + j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+17}:\\
\;\;\;\;i \cdot \left(b \cdot t + \left(\frac{\mathsf{fma}\left(c, a \cdot j - b \cdot z, t\_1\right)}{i} - y \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot t - c \cdot z\right) - y \cdot \left(i \cdot j - z \cdot x\right)\\
\end{array}
\end{array}
if b < -1.89999999999999988e111Initial program 70.5%
+-commutative70.5%
fma-define72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around -inf 57.6%
Simplified63.5%
Taylor expanded in b around inf 84.8%
associate-*r*86.7%
mul-1-neg86.7%
unsub-neg86.7%
Simplified86.7%
if -1.89999999999999988e111 < b < 4.30000000000000027e-67Initial program 72.5%
Taylor expanded in t around inf 78.7%
mul-1-neg78.7%
+-commutative78.7%
unsub-neg78.7%
*-commutative78.7%
associate-*l*83.4%
*-commutative83.4%
associate-/l*83.4%
*-commutative83.4%
Simplified83.4%
if 4.30000000000000027e-67 < b < 6.5e17Initial program 67.9%
+-commutative67.9%
fma-define67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in i around -inf 66.8%
Simplified85.8%
if 6.5e17 < b Initial program 69.7%
+-commutative69.7%
fma-define69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in a around 0 82.9%
sub-neg82.9%
+-commutative82.9%
*-commutative82.9%
associate-*r*84.6%
associate-*r*87.8%
associate-*r*87.8%
distribute-rgt-in89.5%
mul-1-neg89.5%
unsub-neg89.5%
*-commutative89.5%
*-commutative89.5%
sub-neg89.5%
distribute-lft-out84.3%
distribute-rgt-neg-out84.3%
mul-1-neg84.3%
+-commutative84.3%
distribute-neg-in84.3%
Simplified89.5%
Final simplification85.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* c a) (* i y)))
(+ (* x (- (* z y) (* t a))) (* b (- (* i t) (* c z)))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* z x) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((c * a) - (i * y))) + ((x * ((z * y) - (t * a))) + (b * ((i * t) - (c * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((z * x) - (i * 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 * ((c * a) - (i * y))) + ((x * ((z * y) - (t * a))) + (b * ((i * t) - (c * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((z * x) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((c * a) - (i * y))) + ((x * ((z * y) - (t * a))) + (b * ((i * t) - (c * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((z * x) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(c * a) - Float64(i * y))) + Float64(Float64(x * Float64(Float64(z * y) - Float64(t * a))) + Float64(b * Float64(Float64(i * t) - Float64(c * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(z * x) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((c * a) - (i * y))) + ((x * ((z * y) - (t * a))) + (b * ((i * t) - (c * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((z * x) - (i * 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[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - i \cdot y\right) + \left(x \cdot \left(z \cdot y - t \cdot a\right) + b \cdot \left(i \cdot t - c \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
+-commutative0.0%
fma-define5.8%
*-commutative5.8%
*-commutative5.8%
Simplified5.8%
Taylor expanded in y around inf 54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Final simplification82.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -2e+109)
(* (* b i) (- t (/ (* c z) i)))
(if (<= b 4.2e-24)
(+
(- (* x (- (* z y) (* t a))) (* t (- (* c (/ (* b z) t)) (* b i))))
(* j (- (* c a) (* i y))))
(- (* b (- (* i t) (* c z))) (* y (- (* i j) (* z x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2e+109) {
tmp = (b * i) * (t - ((c * z) / i));
} else if (b <= 4.2e-24) {
tmp = ((x * ((z * y) - (t * a))) - (t * ((c * ((b * z) / t)) - (b * i)))) + (j * ((c * a) - (i * y)));
} else {
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)));
}
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 <= (-2d+109)) then
tmp = (b * i) * (t - ((c * z) / i))
else if (b <= 4.2d-24) then
tmp = ((x * ((z * y) - (t * a))) - (t * ((c * ((b * z) / t)) - (b * i)))) + (j * ((c * a) - (i * y)))
else
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)))
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 <= -2e+109) {
tmp = (b * i) * (t - ((c * z) / i));
} else if (b <= 4.2e-24) {
tmp = ((x * ((z * y) - (t * a))) - (t * ((c * ((b * z) / t)) - (b * i)))) + (j * ((c * a) - (i * y)));
} else {
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2e+109: tmp = (b * i) * (t - ((c * z) / i)) elif b <= 4.2e-24: tmp = ((x * ((z * y) - (t * a))) - (t * ((c * ((b * z) / t)) - (b * i)))) + (j * ((c * a) - (i * y))) else: tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2e+109) tmp = Float64(Float64(b * i) * Float64(t - Float64(Float64(c * z) / i))); elseif (b <= 4.2e-24) tmp = Float64(Float64(Float64(x * Float64(Float64(z * y) - Float64(t * a))) - Float64(t * Float64(Float64(c * Float64(Float64(b * z) / t)) - Float64(b * i)))) + Float64(j * Float64(Float64(c * a) - Float64(i * y)))); else tmp = Float64(Float64(b * Float64(Float64(i * t) - Float64(c * z))) - Float64(y * Float64(Float64(i * j) - Float64(z * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2e+109) tmp = (b * i) * (t - ((c * z) / i)); elseif (b <= 4.2e-24) tmp = ((x * ((z * y) - (t * a))) - (t * ((c * ((b * z) / t)) - (b * i)))) + (j * ((c * a) - (i * y))); else tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2e+109], N[(N[(b * i), $MachinePrecision] * N[(t - N[(N[(c * z), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e-24], N[(N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * N[(N[(b * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{+109}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(t - \frac{c \cdot z}{i}\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-24}:\\
\;\;\;\;\left(x \cdot \left(z \cdot y - t \cdot a\right) - t \cdot \left(c \cdot \frac{b \cdot z}{t} - b \cdot i\right)\right) + j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot t - c \cdot z\right) - y \cdot \left(i \cdot j - z \cdot x\right)\\
\end{array}
\end{array}
if b < -1.99999999999999996e109Initial program 70.5%
+-commutative70.5%
fma-define72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around -inf 57.6%
Simplified63.5%
Taylor expanded in b around inf 84.8%
associate-*r*86.7%
mul-1-neg86.7%
unsub-neg86.7%
Simplified86.7%
if -1.99999999999999996e109 < b < 4.1999999999999999e-24Initial program 73.5%
Taylor expanded in t around inf 77.8%
mul-1-neg77.8%
+-commutative77.8%
unsub-neg77.8%
*-commutative77.8%
associate-*l*82.0%
*-commutative82.0%
associate-/l*82.1%
*-commutative82.1%
Simplified82.1%
if 4.1999999999999999e-24 < b Initial program 66.5%
+-commutative66.5%
fma-define66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around 0 79.3%
sub-neg79.3%
+-commutative79.3%
*-commutative79.3%
associate-*r*82.2%
associate-*r*83.5%
associate-*r*83.5%
distribute-rgt-in85.0%
mul-1-neg85.0%
unsub-neg85.0%
*-commutative85.0%
*-commutative85.0%
sub-neg85.0%
distribute-lft-out80.5%
distribute-rgt-neg-out80.5%
mul-1-neg80.5%
+-commutative80.5%
distribute-neg-in80.5%
Simplified85.0%
Final simplification83.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* z (- (* x y) (* b c))) (* j (* c a)))))
(if (<= z -1.4e-55)
t_1
(if (<= z 4.8e-161)
(+ (* j (- (* c a) (* i y))) (* b (* i t)))
(if (<= z 1.28e-89)
(* a (- (* c j) (* t x)))
(if (<= z 1.62e+16)
(* y (- (* z x) (* i j)))
(if (<= z 3.05e+131) (* (* b i) (- t (/ (* c z) 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 = (z * ((x * y) - (b * c))) + (j * (c * a));
double tmp;
if (z <= -1.4e-55) {
tmp = t_1;
} else if (z <= 4.8e-161) {
tmp = (j * ((c * a) - (i * y))) + (b * (i * t));
} else if (z <= 1.28e-89) {
tmp = a * ((c * j) - (t * x));
} else if (z <= 1.62e+16) {
tmp = y * ((z * x) - (i * j));
} else if (z <= 3.05e+131) {
tmp = (b * i) * (t - ((c * z) / 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 = (z * ((x * y) - (b * c))) + (j * (c * a))
if (z <= (-1.4d-55)) then
tmp = t_1
else if (z <= 4.8d-161) then
tmp = (j * ((c * a) - (i * y))) + (b * (i * t))
else if (z <= 1.28d-89) then
tmp = a * ((c * j) - (t * x))
else if (z <= 1.62d+16) then
tmp = y * ((z * x) - (i * j))
else if (z <= 3.05d+131) then
tmp = (b * i) * (t - ((c * z) / 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 = (z * ((x * y) - (b * c))) + (j * (c * a));
double tmp;
if (z <= -1.4e-55) {
tmp = t_1;
} else if (z <= 4.8e-161) {
tmp = (j * ((c * a) - (i * y))) + (b * (i * t));
} else if (z <= 1.28e-89) {
tmp = a * ((c * j) - (t * x));
} else if (z <= 1.62e+16) {
tmp = y * ((z * x) - (i * j));
} else if (z <= 3.05e+131) {
tmp = (b * i) * (t - ((c * z) / i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * ((x * y) - (b * c))) + (j * (c * a)) tmp = 0 if z <= -1.4e-55: tmp = t_1 elif z <= 4.8e-161: tmp = (j * ((c * a) - (i * y))) + (b * (i * t)) elif z <= 1.28e-89: tmp = a * ((c * j) - (t * x)) elif z <= 1.62e+16: tmp = y * ((z * x) - (i * j)) elif z <= 3.05e+131: tmp = (b * i) * (t - ((c * z) / i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(c * a))) tmp = 0.0 if (z <= -1.4e-55) tmp = t_1; elseif (z <= 4.8e-161) tmp = Float64(Float64(j * Float64(Float64(c * a) - Float64(i * y))) + Float64(b * Float64(i * t))); elseif (z <= 1.28e-89) tmp = Float64(a * Float64(Float64(c * j) - Float64(t * x))); elseif (z <= 1.62e+16) tmp = Float64(y * Float64(Float64(z * x) - Float64(i * j))); elseif (z <= 3.05e+131) tmp = Float64(Float64(b * i) * Float64(t - Float64(Float64(c * z) / i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * ((x * y) - (b * c))) + (j * (c * a)); tmp = 0.0; if (z <= -1.4e-55) tmp = t_1; elseif (z <= 4.8e-161) tmp = (j * ((c * a) - (i * y))) + (b * (i * t)); elseif (z <= 1.28e-89) tmp = a * ((c * j) - (t * x)); elseif (z <= 1.62e+16) tmp = y * ((z * x) - (i * j)); elseif (z <= 3.05e+131) tmp = (b * i) * (t - ((c * z) / 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[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e-55], t$95$1, If[LessEqual[z, 4.8e-161], N[(N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.28e-89], N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.62e+16], N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.05e+131], N[(N[(b * i), $MachinePrecision] * N[(t - N[(N[(c * z), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(c \cdot a\right)\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-161}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right) + b \cdot \left(i \cdot t\right)\\
\mathbf{elif}\;z \leq 1.28 \cdot 10^{-89}:\\
\;\;\;\;a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{elif}\;z \leq 1.62 \cdot 10^{+16}:\\
\;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{+131}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(t - \frac{c \cdot z}{i}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.39999999999999992e-55 or 3.0499999999999999e131 < z Initial program 62.4%
Taylor expanded in z around inf 72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in c around inf 69.6%
*-commutative69.6%
Simplified69.6%
if -1.39999999999999992e-55 < z < 4.79999999999999998e-161Initial program 79.8%
Taylor expanded in i around inf 74.2%
if 4.79999999999999998e-161 < z < 1.28000000000000003e-89Initial program 89.4%
+-commutative89.4%
fma-define89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in a around inf 64.2%
+-commutative64.2%
mul-1-neg64.2%
unsub-neg64.2%
*-commutative64.2%
Simplified64.2%
if 1.28000000000000003e-89 < z < 1.62e16Initial program 65.4%
+-commutative65.4%
fma-define65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in y around inf 71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
*-commutative71.3%
*-commutative71.3%
Simplified71.3%
if 1.62e16 < z < 3.0499999999999999e131Initial program 70.1%
+-commutative70.1%
fma-define73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in i around -inf 56.2%
Simplified59.6%
Taylor expanded in b around inf 66.2%
associate-*r*69.2%
mul-1-neg69.2%
unsub-neg69.2%
Simplified69.2%
Final simplification70.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* b i) (- t (/ (* c z) i)))))
(if (<= b -5.2e+43)
t_1
(if (<= b -6.5e-236)
(* j (- (* c a) (* i y)))
(if (<= b 5.8e-288)
(* x (- (* z y) (* t a)))
(if (<= b 4.5e-123)
(* a (- (* c j) (* t x)))
(if (<= b 6.2e+216) (* y (- (* z x) (* i j))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * i) * (t - ((c * z) / i));
double tmp;
if (b <= -5.2e+43) {
tmp = t_1;
} else if (b <= -6.5e-236) {
tmp = j * ((c * a) - (i * y));
} else if (b <= 5.8e-288) {
tmp = x * ((z * y) - (t * a));
} else if (b <= 4.5e-123) {
tmp = a * ((c * j) - (t * x));
} else if (b <= 6.2e+216) {
tmp = y * ((z * x) - (i * 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 = (b * i) * (t - ((c * z) / i))
if (b <= (-5.2d+43)) then
tmp = t_1
else if (b <= (-6.5d-236)) then
tmp = j * ((c * a) - (i * y))
else if (b <= 5.8d-288) then
tmp = x * ((z * y) - (t * a))
else if (b <= 4.5d-123) then
tmp = a * ((c * j) - (t * x))
else if (b <= 6.2d+216) then
tmp = y * ((z * x) - (i * 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 = (b * i) * (t - ((c * z) / i));
double tmp;
if (b <= -5.2e+43) {
tmp = t_1;
} else if (b <= -6.5e-236) {
tmp = j * ((c * a) - (i * y));
} else if (b <= 5.8e-288) {
tmp = x * ((z * y) - (t * a));
} else if (b <= 4.5e-123) {
tmp = a * ((c * j) - (t * x));
} else if (b <= 6.2e+216) {
tmp = y * ((z * x) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * i) * (t - ((c * z) / i)) tmp = 0 if b <= -5.2e+43: tmp = t_1 elif b <= -6.5e-236: tmp = j * ((c * a) - (i * y)) elif b <= 5.8e-288: tmp = x * ((z * y) - (t * a)) elif b <= 4.5e-123: tmp = a * ((c * j) - (t * x)) elif b <= 6.2e+216: tmp = y * ((z * x) - (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * i) * Float64(t - Float64(Float64(c * z) / i))) tmp = 0.0 if (b <= -5.2e+43) tmp = t_1; elseif (b <= -6.5e-236) tmp = Float64(j * Float64(Float64(c * a) - Float64(i * y))); elseif (b <= 5.8e-288) tmp = Float64(x * Float64(Float64(z * y) - Float64(t * a))); elseif (b <= 4.5e-123) tmp = Float64(a * Float64(Float64(c * j) - Float64(t * x))); elseif (b <= 6.2e+216) tmp = Float64(y * Float64(Float64(z * x) - Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * i) * (t - ((c * z) / i)); tmp = 0.0; if (b <= -5.2e+43) tmp = t_1; elseif (b <= -6.5e-236) tmp = j * ((c * a) - (i * y)); elseif (b <= 5.8e-288) tmp = x * ((z * y) - (t * a)); elseif (b <= 4.5e-123) tmp = a * ((c * j) - (t * x)); elseif (b <= 6.2e+216) tmp = y * ((z * x) - (i * 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[(N[(b * i), $MachinePrecision] * N[(t - N[(N[(c * z), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e+43], t$95$1, If[LessEqual[b, -6.5e-236], N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e-288], N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e-123], N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+216], N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot i\right) \cdot \left(t - \frac{c \cdot z}{i}\right)\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-236}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-288}:\\
\;\;\;\;x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-123}:\\
\;\;\;\;a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+216}:\\
\;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.20000000000000042e43 or 6.20000000000000007e216 < b Initial program 69.0%
+-commutative69.0%
fma-define70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in i around -inf 58.8%
Simplified62.5%
Taylor expanded in b around inf 79.6%
associate-*r*79.7%
mul-1-neg79.7%
unsub-neg79.7%
Simplified79.7%
if -5.20000000000000042e43 < b < -6.5000000000000001e-236Initial program 77.9%
Taylor expanded in i around inf 65.8%
Taylor expanded in b around 0 53.3%
*-commutative53.3%
*-commutative53.3%
Simplified53.3%
if -6.5000000000000001e-236 < b < 5.8000000000000003e-288Initial program 55.8%
+-commutative55.8%
fma-define65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in i around -inf 41.4%
Simplified60.8%
Taylor expanded in x around -inf 66.0%
*-commutative66.0%
Simplified66.0%
if 5.8000000000000003e-288 < b < 4.49999999999999993e-123Initial program 75.1%
+-commutative75.1%
fma-define75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in a around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
*-commutative66.4%
Simplified66.4%
if 4.49999999999999993e-123 < b < 6.20000000000000007e216Initial program 70.7%
+-commutative70.7%
fma-define70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in y around inf 54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
*-commutative54.3%
*-commutative54.3%
Simplified54.3%
Final simplification64.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* b t))))
(if (<= t -1.02e+251)
(* b (* i t))
(if (<= t -7e+224)
(- (* a (* t x)))
(if (<= t -1.3e+78)
t_1
(if (<= t -2.35e-77)
(* c (* z (- b)))
(if (<= t 1.75e-256)
(* x (* z y))
(if (<= t 8.8e-63) (* c (* a j)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (b * t);
double tmp;
if (t <= -1.02e+251) {
tmp = b * (i * t);
} else if (t <= -7e+224) {
tmp = -(a * (t * x));
} else if (t <= -1.3e+78) {
tmp = t_1;
} else if (t <= -2.35e-77) {
tmp = c * (z * -b);
} else if (t <= 1.75e-256) {
tmp = x * (z * y);
} else if (t <= 8.8e-63) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (b * t)
if (t <= (-1.02d+251)) then
tmp = b * (i * t)
else if (t <= (-7d+224)) then
tmp = -(a * (t * x))
else if (t <= (-1.3d+78)) then
tmp = t_1
else if (t <= (-2.35d-77)) then
tmp = c * (z * -b)
else if (t <= 1.75d-256) then
tmp = x * (z * y)
else if (t <= 8.8d-63) then
tmp = c * (a * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (b * t);
double tmp;
if (t <= -1.02e+251) {
tmp = b * (i * t);
} else if (t <= -7e+224) {
tmp = -(a * (t * x));
} else if (t <= -1.3e+78) {
tmp = t_1;
} else if (t <= -2.35e-77) {
tmp = c * (z * -b);
} else if (t <= 1.75e-256) {
tmp = x * (z * y);
} else if (t <= 8.8e-63) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (b * t) tmp = 0 if t <= -1.02e+251: tmp = b * (i * t) elif t <= -7e+224: tmp = -(a * (t * x)) elif t <= -1.3e+78: tmp = t_1 elif t <= -2.35e-77: tmp = c * (z * -b) elif t <= 1.75e-256: tmp = x * (z * y) elif t <= 8.8e-63: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(b * t)) tmp = 0.0 if (t <= -1.02e+251) tmp = Float64(b * Float64(i * t)); elseif (t <= -7e+224) tmp = Float64(-Float64(a * Float64(t * x))); elseif (t <= -1.3e+78) tmp = t_1; elseif (t <= -2.35e-77) tmp = Float64(c * Float64(z * Float64(-b))); elseif (t <= 1.75e-256) tmp = Float64(x * Float64(z * y)); elseif (t <= 8.8e-63) tmp = Float64(c * Float64(a * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (b * t); tmp = 0.0; if (t <= -1.02e+251) tmp = b * (i * t); elseif (t <= -7e+224) tmp = -(a * (t * x)); elseif (t <= -1.3e+78) tmp = t_1; elseif (t <= -2.35e-77) tmp = c * (z * -b); elseif (t <= 1.75e-256) tmp = x * (z * y); elseif (t <= 8.8e-63) tmp = c * (a * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.02e+251], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7e+224], (-N[(a * N[(t * x), $MachinePrecision]), $MachinePrecision]), If[LessEqual[t, -1.3e+78], t$95$1, If[LessEqual[t, -2.35e-77], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e-256], N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e-63], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(b \cdot t\right)\\
\mathbf{if}\;t \leq -1.02 \cdot 10^{+251}:\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{elif}\;t \leq -7 \cdot 10^{+224}:\\
\;\;\;\;-a \cdot \left(t \cdot x\right)\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.35 \cdot 10^{-77}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-256}:\\
\;\;\;\;x \cdot \left(z \cdot y\right)\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-63}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.02e251Initial program 57.1%
Taylor expanded in i around inf 65.0%
Taylor expanded in b around inf 86.4%
*-commutative86.4%
Simplified86.4%
if -1.02e251 < t < -7e224Initial program 60.0%
+-commutative60.0%
fma-define60.0%
*-commutative60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in a around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in j around 0 100.0%
mul-1-neg100.0%
distribute-lft-neg-out100.0%
*-commutative100.0%
Simplified100.0%
if -7e224 < t < -1.3e78 or 8.7999999999999998e-63 < t Initial program 66.0%
+-commutative66.0%
fma-define67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in i around -inf 61.7%
Simplified65.5%
Taylor expanded in i around inf 54.0%
Taylor expanded in b around inf 42.9%
if -1.3e78 < t < -2.3499999999999999e-77Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in c around inf 57.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in j around 0 41.6%
mul-1-neg41.6%
distribute-rgt-neg-out41.6%
Simplified41.6%
if -2.3499999999999999e-77 < t < 1.75000000000000007e-256Initial program 77.4%
+-commutative77.4%
fma-define79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in y around inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
unsub-neg52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in z around inf 37.7%
if 1.75000000000000007e-256 < t < 8.7999999999999998e-63Initial program 69.7%
+-commutative69.7%
fma-define69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in j around inf 44.3%
Final simplification45.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z)))) (t_2 (* b (* i t))))
(if (<= b -8.4e+176)
t_2
(if (<= b -1.15e+136)
t_1
(if (<= b -2.55e+42)
(* i (* b t))
(if (<= b 0.00285)
(* a (- (* c j) (* t x)))
(if (<= b 9.2e+197) 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 = c * ((a * j) - (b * z));
double t_2 = b * (i * t);
double tmp;
if (b <= -8.4e+176) {
tmp = t_2;
} else if (b <= -1.15e+136) {
tmp = t_1;
} else if (b <= -2.55e+42) {
tmp = i * (b * t);
} else if (b <= 0.00285) {
tmp = a * ((c * j) - (t * x));
} else if (b <= 9.2e+197) {
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 = c * ((a * j) - (b * z))
t_2 = b * (i * t)
if (b <= (-8.4d+176)) then
tmp = t_2
else if (b <= (-1.15d+136)) then
tmp = t_1
else if (b <= (-2.55d+42)) then
tmp = i * (b * t)
else if (b <= 0.00285d0) then
tmp = a * ((c * j) - (t * x))
else if (b <= 9.2d+197) 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 = c * ((a * j) - (b * z));
double t_2 = b * (i * t);
double tmp;
if (b <= -8.4e+176) {
tmp = t_2;
} else if (b <= -1.15e+136) {
tmp = t_1;
} else if (b <= -2.55e+42) {
tmp = i * (b * t);
} else if (b <= 0.00285) {
tmp = a * ((c * j) - (t * x));
} else if (b <= 9.2e+197) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (b * z)) t_2 = b * (i * t) tmp = 0 if b <= -8.4e+176: tmp = t_2 elif b <= -1.15e+136: tmp = t_1 elif b <= -2.55e+42: tmp = i * (b * t) elif b <= 0.00285: tmp = a * ((c * j) - (t * x)) elif b <= 9.2e+197: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) t_2 = Float64(b * Float64(i * t)) tmp = 0.0 if (b <= -8.4e+176) tmp = t_2; elseif (b <= -1.15e+136) tmp = t_1; elseif (b <= -2.55e+42) tmp = Float64(i * Float64(b * t)); elseif (b <= 0.00285) tmp = Float64(a * Float64(Float64(c * j) - Float64(t * x))); elseif (b <= 9.2e+197) 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 = c * ((a * j) - (b * z)); t_2 = b * (i * t); tmp = 0.0; if (b <= -8.4e+176) tmp = t_2; elseif (b <= -1.15e+136) tmp = t_1; elseif (b <= -2.55e+42) tmp = i * (b * t); elseif (b <= 0.00285) tmp = a * ((c * j) - (t * x)); elseif (b <= 9.2e+197) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.4e+176], t$95$2, If[LessEqual[b, -1.15e+136], t$95$1, If[LessEqual[b, -2.55e+42], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00285], N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e+197], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
t_2 := b \cdot \left(i \cdot t\right)\\
\mathbf{if}\;b \leq -8.4 \cdot 10^{+176}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+136}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.55 \cdot 10^{+42}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;b \leq 0.00285:\\
\;\;\;\;a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+197}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -8.3999999999999996e176 or 9.2000000000000002e197 < b Initial program 73.7%
Taylor expanded in i around inf 56.4%
Taylor expanded in b around inf 58.4%
*-commutative58.4%
Simplified58.4%
if -8.3999999999999996e176 < b < -1.15e136 or 0.0028500000000000001 < b < 9.2000000000000002e197Initial program 63.2%
+-commutative63.2%
fma-define63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in c around inf 54.0%
*-commutative54.0%
Simplified54.0%
if -1.15e136 < b < -2.55e42Initial program 59.8%
+-commutative59.8%
fma-define59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in i around -inf 66.5%
Simplified73.2%
Taylor expanded in i around inf 67.0%
Taylor expanded in b around inf 54.2%
if -2.55e42 < b < 0.0028500000000000001Initial program 73.7%
+-commutative73.7%
fma-define75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in a around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
*-commutative51.9%
Simplified51.9%
Final simplification54.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* t a))))
(t_2 (* i (- (* b t) (* y j))))
(t_3 (* c (- (* a j) (* b z)))))
(if (<= c -1.4e-45)
t_3
(if (<= c -1.15e-175)
t_2
(if (<= c -4.5e-247)
t_1
(if (<= c 3.55e-255) t_2 (if (<= c 3.6e-56) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double t_2 = i * ((b * t) - (y * j));
double t_3 = c * ((a * j) - (b * z));
double tmp;
if (c <= -1.4e-45) {
tmp = t_3;
} else if (c <= -1.15e-175) {
tmp = t_2;
} else if (c <= -4.5e-247) {
tmp = t_1;
} else if (c <= 3.55e-255) {
tmp = t_2;
} else if (c <= 3.6e-56) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((z * y) - (t * a))
t_2 = i * ((b * t) - (y * j))
t_3 = c * ((a * j) - (b * z))
if (c <= (-1.4d-45)) then
tmp = t_3
else if (c <= (-1.15d-175)) then
tmp = t_2
else if (c <= (-4.5d-247)) then
tmp = t_1
else if (c <= 3.55d-255) then
tmp = t_2
else if (c <= 3.6d-56) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double t_2 = i * ((b * t) - (y * j));
double t_3 = c * ((a * j) - (b * z));
double tmp;
if (c <= -1.4e-45) {
tmp = t_3;
} else if (c <= -1.15e-175) {
tmp = t_2;
} else if (c <= -4.5e-247) {
tmp = t_1;
} else if (c <= 3.55e-255) {
tmp = t_2;
} else if (c <= 3.6e-56) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * y) - (t * a)) t_2 = i * ((b * t) - (y * j)) t_3 = c * ((a * j) - (b * z)) tmp = 0 if c <= -1.4e-45: tmp = t_3 elif c <= -1.15e-175: tmp = t_2 elif c <= -4.5e-247: tmp = t_1 elif c <= 3.55e-255: tmp = t_2 elif c <= 3.6e-56: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) t_2 = Float64(i * Float64(Float64(b * t) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -1.4e-45) tmp = t_3; elseif (c <= -1.15e-175) tmp = t_2; elseif (c <= -4.5e-247) tmp = t_1; elseif (c <= 3.55e-255) tmp = t_2; elseif (c <= 3.6e-56) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * y) - (t * a)); t_2 = i * ((b * t) - (y * j)); t_3 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -1.4e-45) tmp = t_3; elseif (c <= -1.15e-175) tmp = t_2; elseif (c <= -4.5e-247) tmp = t_1; elseif (c <= 3.55e-255) tmp = t_2; elseif (c <= 3.6e-56) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.4e-45], t$95$3, If[LessEqual[c, -1.15e-175], t$95$2, If[LessEqual[c, -4.5e-247], t$95$1, If[LessEqual[c, 3.55e-255], t$95$2, If[LessEqual[c, 3.6e-56], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - t \cdot a\right)\\
t_2 := i \cdot \left(b \cdot t - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -1.4 \cdot 10^{-45}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-175}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-247}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.55 \cdot 10^{-255}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -1.4000000000000001e-45 or 3.59999999999999978e-56 < c Initial program 65.4%
+-commutative65.4%
fma-define66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in c around inf 57.2%
*-commutative57.2%
Simplified57.2%
if -1.4000000000000001e-45 < c < -1.15e-175 or -4.5000000000000002e-247 < c < 3.5499999999999998e-255Initial program 76.4%
+-commutative76.4%
fma-define76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in i around -inf 79.9%
Simplified71.3%
Taylor expanded in i around inf 66.7%
if -1.15e-175 < c < -4.5000000000000002e-247 or 3.5499999999999998e-255 < c < 3.59999999999999978e-56Initial program 79.8%
+-commutative79.8%
fma-define81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in i around -inf 70.5%
Simplified68.6%
Taylor expanded in x around -inf 61.4%
*-commutative61.4%
Simplified61.4%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z)))) (t_2 (* i (- (* b t) (* y j)))))
(if (<= i -6.6e+16)
t_2
(if (<= i -2.4e-119)
t_1
(if (<= i -5.1e-195)
(* x (- (* z y) (* t a)))
(if (<= i -4e-257)
t_1
(if (<= i 1.2e+69) (* z (- (* x y) (* b c))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double t_2 = i * ((b * t) - (y * j));
double tmp;
if (i <= -6.6e+16) {
tmp = t_2;
} else if (i <= -2.4e-119) {
tmp = t_1;
} else if (i <= -5.1e-195) {
tmp = x * ((z * y) - (t * a));
} else if (i <= -4e-257) {
tmp = t_1;
} else if (i <= 1.2e+69) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((a * j) - (b * z))
t_2 = i * ((b * t) - (y * j))
if (i <= (-6.6d+16)) then
tmp = t_2
else if (i <= (-2.4d-119)) then
tmp = t_1
else if (i <= (-5.1d-195)) then
tmp = x * ((z * y) - (t * a))
else if (i <= (-4d-257)) then
tmp = t_1
else if (i <= 1.2d+69) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double t_2 = i * ((b * t) - (y * j));
double tmp;
if (i <= -6.6e+16) {
tmp = t_2;
} else if (i <= -2.4e-119) {
tmp = t_1;
} else if (i <= -5.1e-195) {
tmp = x * ((z * y) - (t * a));
} else if (i <= -4e-257) {
tmp = t_1;
} else if (i <= 1.2e+69) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (b * z)) t_2 = i * ((b * t) - (y * j)) tmp = 0 if i <= -6.6e+16: tmp = t_2 elif i <= -2.4e-119: tmp = t_1 elif i <= -5.1e-195: tmp = x * ((z * y) - (t * a)) elif i <= -4e-257: tmp = t_1 elif i <= 1.2e+69: tmp = z * ((x * y) - (b * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) t_2 = Float64(i * Float64(Float64(b * t) - Float64(y * j))) tmp = 0.0 if (i <= -6.6e+16) tmp = t_2; elseif (i <= -2.4e-119) tmp = t_1; elseif (i <= -5.1e-195) tmp = Float64(x * Float64(Float64(z * y) - Float64(t * a))); elseif (i <= -4e-257) tmp = t_1; elseif (i <= 1.2e+69) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (b * z)); t_2 = i * ((b * t) - (y * j)); tmp = 0.0; if (i <= -6.6e+16) tmp = t_2; elseif (i <= -2.4e-119) tmp = t_1; elseif (i <= -5.1e-195) tmp = x * ((z * y) - (t * a)); elseif (i <= -4e-257) tmp = t_1; elseif (i <= 1.2e+69) tmp = z * ((x * y) - (b * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6.6e+16], t$95$2, If[LessEqual[i, -2.4e-119], t$95$1, If[LessEqual[i, -5.1e-195], N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4e-257], t$95$1, If[LessEqual[i, 1.2e+69], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
t_2 := i \cdot \left(b \cdot t - y \cdot j\right)\\
\mathbf{if}\;i \leq -6.6 \cdot 10^{+16}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -2.4 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -5.1 \cdot 10^{-195}:\\
\;\;\;\;x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{elif}\;i \leq -4 \cdot 10^{-257}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+69}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -6.6e16 or 1.2000000000000001e69 < i Initial program 58.3%
+-commutative58.3%
fma-define59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in i around -inf 73.3%
Simplified78.3%
Taylor expanded in i around inf 65.8%
if -6.6e16 < i < -2.40000000000000009e-119 or -5.1e-195 < i < -3.9999999999999999e-257Initial program 84.6%
+-commutative84.6%
fma-define84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in c around inf 62.9%
*-commutative62.9%
Simplified62.9%
if -2.40000000000000009e-119 < i < -5.1e-195Initial program 87.8%
+-commutative87.8%
fma-define87.8%
*-commutative87.8%
*-commutative87.8%
Simplified87.8%
Taylor expanded in i around -inf 61.8%
Simplified61.8%
Taylor expanded in x around -inf 55.7%
*-commutative55.7%
Simplified55.7%
if -3.9999999999999999e-257 < i < 1.2000000000000001e69Initial program 80.1%
+-commutative80.1%
fma-define81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in i around -inf 56.3%
Simplified61.3%
Taylor expanded in z around inf 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
div-sub44.2%
associate-/l*44.3%
associate-/l*44.2%
*-commutative44.2%
Simplified44.2%
Taylor expanded in i around 0 52.1%
Final simplification60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* i y)))))
(if (<= b -1.05e+117)
(* (* b i) (- t (/ (* c z) i)))
(if (<= b -1e-282)
(+ t_1 (* t (- (* b i) (* x a))))
(if (<= b 1.55e-9)
(+ t_1 (* x (- (* z y) (* t a))))
(- (* b (- (* i t) (* c z))) (* y (- (* i j) (* z x)))))))))
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) - (i * y));
double tmp;
if (b <= -1.05e+117) {
tmp = (b * i) * (t - ((c * z) / i));
} else if (b <= -1e-282) {
tmp = t_1 + (t * ((b * i) - (x * a)));
} else if (b <= 1.55e-9) {
tmp = t_1 + (x * ((z * y) - (t * a)));
} else {
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((c * a) - (i * y))
if (b <= (-1.05d+117)) then
tmp = (b * i) * (t - ((c * z) / i))
else if (b <= (-1d-282)) then
tmp = t_1 + (t * ((b * i) - (x * a)))
else if (b <= 1.55d-9) then
tmp = t_1 + (x * ((z * y) - (t * a)))
else
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)))
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) - (i * y));
double tmp;
if (b <= -1.05e+117) {
tmp = (b * i) * (t - ((c * z) / i));
} else if (b <= -1e-282) {
tmp = t_1 + (t * ((b * i) - (x * a)));
} else if (b <= 1.55e-9) {
tmp = t_1 + (x * ((z * y) - (t * a)));
} else {
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (i * y)) tmp = 0 if b <= -1.05e+117: tmp = (b * i) * (t - ((c * z) / i)) elif b <= -1e-282: tmp = t_1 + (t * ((b * i) - (x * a))) elif b <= 1.55e-9: tmp = t_1 + (x * ((z * y) - (t * a))) else: tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(i * y))) tmp = 0.0 if (b <= -1.05e+117) tmp = Float64(Float64(b * i) * Float64(t - Float64(Float64(c * z) / i))); elseif (b <= -1e-282) tmp = Float64(t_1 + Float64(t * Float64(Float64(b * i) - Float64(x * a)))); elseif (b <= 1.55e-9) tmp = Float64(t_1 + Float64(x * Float64(Float64(z * y) - Float64(t * a)))); else tmp = Float64(Float64(b * Float64(Float64(i * t) - Float64(c * z))) - Float64(y * Float64(Float64(i * j) - Float64(z * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (i * y)); tmp = 0.0; if (b <= -1.05e+117) tmp = (b * i) * (t - ((c * z) / i)); elseif (b <= -1e-282) tmp = t_1 + (t * ((b * i) - (x * a))); elseif (b <= 1.55e-9) tmp = t_1 + (x * ((z * y) - (t * a))); else tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x))); 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[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+117], N[(N[(b * i), $MachinePrecision] * N[(t - N[(N[(c * z), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e-282], N[(t$95$1 + N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e-9], N[(t$95$1 + N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+117}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(t - \frac{c \cdot z}{i}\right)\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-282}:\\
\;\;\;\;t\_1 + t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-9}:\\
\;\;\;\;t\_1 + x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot t - c \cdot z\right) - y \cdot \left(i \cdot j - z \cdot x\right)\\
\end{array}
\end{array}
if b < -1.0500000000000001e117Initial program 69.9%
+-commutative69.9%
fma-define71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in i around -inf 56.8%
Simplified62.7%
Taylor expanded in b around inf 86.4%
associate-*r*86.4%
mul-1-neg86.4%
unsub-neg86.4%
Simplified86.4%
if -1.0500000000000001e117 < b < -1e-282Initial program 71.5%
Taylor expanded in t around -inf 77.1%
if -1e-282 < b < 1.55000000000000002e-9Initial program 74.6%
+-commutative74.6%
fma-define74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in b around 0 79.0%
if 1.55000000000000002e-9 < b Initial program 67.6%
+-commutative67.6%
fma-define67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in a around 0 81.1%
sub-neg81.1%
+-commutative81.1%
*-commutative81.1%
associate-*r*84.3%
associate-*r*85.6%
associate-*r*85.6%
distribute-rgt-in87.2%
mul-1-neg87.2%
unsub-neg87.2%
*-commutative87.2%
*-commutative87.2%
sub-neg87.2%
distribute-lft-out82.5%
distribute-rgt-neg-out82.5%
mul-1-neg82.5%
+-commutative82.5%
distribute-neg-in82.5%
Simplified87.2%
Final simplification81.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* b i) (- t (/ (* c z) i)))))
(if (<= b -6.5e+113)
t_1
(if (<= b 0.0138)
(+ (* j (- (* c a) (* i y))) (* x (- (* z y) (* t a))))
(if (<= b 9.2e+197)
(* z (- (* x y) (* b c)))
(if (<= b 5.2e+252) (* y (- (* b (* i (/ t y))) (* i j))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * i) * (t - ((c * z) / i));
double tmp;
if (b <= -6.5e+113) {
tmp = t_1;
} else if (b <= 0.0138) {
tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a)));
} else if (b <= 9.2e+197) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 5.2e+252) {
tmp = y * ((b * (i * (t / y))) - (i * 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 = (b * i) * (t - ((c * z) / i))
if (b <= (-6.5d+113)) then
tmp = t_1
else if (b <= 0.0138d0) then
tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a)))
else if (b <= 9.2d+197) then
tmp = z * ((x * y) - (b * c))
else if (b <= 5.2d+252) then
tmp = y * ((b * (i * (t / y))) - (i * 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 = (b * i) * (t - ((c * z) / i));
double tmp;
if (b <= -6.5e+113) {
tmp = t_1;
} else if (b <= 0.0138) {
tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a)));
} else if (b <= 9.2e+197) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 5.2e+252) {
tmp = y * ((b * (i * (t / y))) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * i) * (t - ((c * z) / i)) tmp = 0 if b <= -6.5e+113: tmp = t_1 elif b <= 0.0138: tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a))) elif b <= 9.2e+197: tmp = z * ((x * y) - (b * c)) elif b <= 5.2e+252: tmp = y * ((b * (i * (t / y))) - (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * i) * Float64(t - Float64(Float64(c * z) / i))) tmp = 0.0 if (b <= -6.5e+113) tmp = t_1; elseif (b <= 0.0138) tmp = Float64(Float64(j * Float64(Float64(c * a) - Float64(i * y))) + Float64(x * Float64(Float64(z * y) - Float64(t * a)))); elseif (b <= 9.2e+197) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= 5.2e+252) tmp = Float64(y * Float64(Float64(b * Float64(i * Float64(t / y))) - Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * i) * (t - ((c * z) / i)); tmp = 0.0; if (b <= -6.5e+113) tmp = t_1; elseif (b <= 0.0138) tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a))); elseif (b <= 9.2e+197) tmp = z * ((x * y) - (b * c)); elseif (b <= 5.2e+252) tmp = y * ((b * (i * (t / y))) - (i * 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[(N[(b * i), $MachinePrecision] * N[(t - N[(N[(c * z), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+113], t$95$1, If[LessEqual[b, 0.0138], N[(N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e+197], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e+252], N[(y * N[(N[(b * N[(i * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot i\right) \cdot \left(t - \frac{c \cdot z}{i}\right)\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.0138:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right) + x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+197}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+252}:\\
\;\;\;\;y \cdot \left(b \cdot \left(i \cdot \frac{t}{y}\right) - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.5000000000000001e113 or 5.20000000000000035e252 < b Initial program 70.2%
+-commutative70.2%
fma-define71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in i around -inf 56.8%
Simplified63.1%
Taylor expanded in b around inf 86.3%
associate-*r*86.4%
mul-1-neg86.4%
unsub-neg86.4%
Simplified86.4%
if -6.5000000000000001e113 < b < 0.0138Initial program 72.6%
+-commutative72.6%
fma-define73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in b around 0 72.2%
if 0.0138 < b < 9.2000000000000002e197Initial program 67.0%
+-commutative67.0%
fma-define67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in i around -inf 66.2%
Simplified60.6%
Taylor expanded in z around inf 47.3%
+-commutative47.3%
mul-1-neg47.3%
unsub-neg47.3%
div-sub50.1%
associate-/l*50.1%
associate-/l*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in i around 0 60.9%
if 9.2000000000000002e197 < b < 5.20000000000000035e252Initial program 69.4%
+-commutative69.4%
fma-define69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in i around -inf 56.1%
Simplified48.4%
Taylor expanded in i around inf 72.0%
Taylor expanded in y around -inf 92.4%
mul-1-neg92.4%
*-commutative92.4%
distribute-rgt-neg-in92.4%
+-commutative92.4%
mul-1-neg92.4%
unsub-neg92.4%
associate-/l*92.3%
associate-/l*92.3%
Simplified92.3%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* b t))))
(if (<= t -1.45e+249)
(* b (* i t))
(if (<= t -5.5e+224)
(- (* a (* t x)))
(if (<= t -5e-57)
t_1
(if (<= t 1.1e-256)
(* x (* z y))
(if (<= t 5.2e-66) (* c (* a j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (b * t);
double tmp;
if (t <= -1.45e+249) {
tmp = b * (i * t);
} else if (t <= -5.5e+224) {
tmp = -(a * (t * x));
} else if (t <= -5e-57) {
tmp = t_1;
} else if (t <= 1.1e-256) {
tmp = x * (z * y);
} else if (t <= 5.2e-66) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (b * t)
if (t <= (-1.45d+249)) then
tmp = b * (i * t)
else if (t <= (-5.5d+224)) then
tmp = -(a * (t * x))
else if (t <= (-5d-57)) then
tmp = t_1
else if (t <= 1.1d-256) then
tmp = x * (z * y)
else if (t <= 5.2d-66) then
tmp = c * (a * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (b * t);
double tmp;
if (t <= -1.45e+249) {
tmp = b * (i * t);
} else if (t <= -5.5e+224) {
tmp = -(a * (t * x));
} else if (t <= -5e-57) {
tmp = t_1;
} else if (t <= 1.1e-256) {
tmp = x * (z * y);
} else if (t <= 5.2e-66) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (b * t) tmp = 0 if t <= -1.45e+249: tmp = b * (i * t) elif t <= -5.5e+224: tmp = -(a * (t * x)) elif t <= -5e-57: tmp = t_1 elif t <= 1.1e-256: tmp = x * (z * y) elif t <= 5.2e-66: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(b * t)) tmp = 0.0 if (t <= -1.45e+249) tmp = Float64(b * Float64(i * t)); elseif (t <= -5.5e+224) tmp = Float64(-Float64(a * Float64(t * x))); elseif (t <= -5e-57) tmp = t_1; elseif (t <= 1.1e-256) tmp = Float64(x * Float64(z * y)); elseif (t <= 5.2e-66) tmp = Float64(c * Float64(a * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (b * t); tmp = 0.0; if (t <= -1.45e+249) tmp = b * (i * t); elseif (t <= -5.5e+224) tmp = -(a * (t * x)); elseif (t <= -5e-57) tmp = t_1; elseif (t <= 1.1e-256) tmp = x * (z * y); elseif (t <= 5.2e-66) tmp = c * (a * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e+249], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.5e+224], (-N[(a * N[(t * x), $MachinePrecision]), $MachinePrecision]), If[LessEqual[t, -5e-57], t$95$1, If[LessEqual[t, 1.1e-256], N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e-66], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(b \cdot t\right)\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{+249}:\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{+224}:\\
\;\;\;\;-a \cdot \left(t \cdot x\right)\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-256}:\\
\;\;\;\;x \cdot \left(z \cdot y\right)\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-66}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.45000000000000008e249Initial program 57.1%
Taylor expanded in i around inf 65.0%
Taylor expanded in b around inf 86.4%
*-commutative86.4%
Simplified86.4%
if -1.45000000000000008e249 < t < -5.50000000000000035e224Initial program 60.0%
+-commutative60.0%
fma-define60.0%
*-commutative60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in a around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in j around 0 100.0%
mul-1-neg100.0%
distribute-lft-neg-out100.0%
*-commutative100.0%
Simplified100.0%
if -5.50000000000000035e224 < t < -5.0000000000000002e-57 or 5.1999999999999998e-66 < t Initial program 69.4%
+-commutative69.4%
fma-define70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in i around -inf 59.7%
Simplified65.5%
Taylor expanded in i around inf 49.5%
Taylor expanded in b around inf 38.2%
if -5.0000000000000002e-57 < t < 1.10000000000000005e-256Initial program 79.5%
+-commutative79.5%
fma-define81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around inf 52.4%
+-commutative52.4%
mul-1-neg52.4%
unsub-neg52.4%
*-commutative52.4%
*-commutative52.4%
Simplified52.4%
Taylor expanded in z around inf 35.8%
if 1.10000000000000005e-256 < t < 5.1999999999999998e-66Initial program 69.7%
+-commutative69.7%
fma-define69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in j around inf 44.3%
Final simplification42.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* t x)))))
(if (<= a -1.45e+134)
t_1
(if (<= a -2.35e+81)
(* c (- (* a j) (* b z)))
(if (or (<= a -1.9e-95) (not (<= a 4.6e+123)))
t_1
(* i (- (* b t) (* y j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double tmp;
if (a <= -1.45e+134) {
tmp = t_1;
} else if (a <= -2.35e+81) {
tmp = c * ((a * j) - (b * z));
} else if ((a <= -1.9e-95) || !(a <= 4.6e+123)) {
tmp = t_1;
} else {
tmp = i * ((b * t) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (t * x))
if (a <= (-1.45d+134)) then
tmp = t_1
else if (a <= (-2.35d+81)) then
tmp = c * ((a * j) - (b * z))
else if ((a <= (-1.9d-95)) .or. (.not. (a <= 4.6d+123))) then
tmp = t_1
else
tmp = i * ((b * t) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double tmp;
if (a <= -1.45e+134) {
tmp = t_1;
} else if (a <= -2.35e+81) {
tmp = c * ((a * j) - (b * z));
} else if ((a <= -1.9e-95) || !(a <= 4.6e+123)) {
tmp = t_1;
} else {
tmp = i * ((b * t) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (t * x)) tmp = 0 if a <= -1.45e+134: tmp = t_1 elif a <= -2.35e+81: tmp = c * ((a * j) - (b * z)) elif (a <= -1.9e-95) or not (a <= 4.6e+123): tmp = t_1 else: tmp = i * ((b * t) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(t * x))) tmp = 0.0 if (a <= -1.45e+134) tmp = t_1; elseif (a <= -2.35e+81) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); elseif ((a <= -1.9e-95) || !(a <= 4.6e+123)) tmp = t_1; else tmp = Float64(i * Float64(Float64(b * t) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (t * x)); tmp = 0.0; if (a <= -1.45e+134) tmp = t_1; elseif (a <= -2.35e+81) tmp = c * ((a * j) - (b * z)); elseif ((a <= -1.9e-95) || ~((a <= 4.6e+123))) tmp = t_1; else tmp = i * ((b * t) - (y * j)); 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[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.45e+134], t$95$1, If[LessEqual[a, -2.35e+81], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -1.9e-95], N[Not[LessEqual[a, 4.6e+123]], $MachinePrecision]], t$95$1, N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{if}\;a \leq -1.45 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{+81}:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-95} \lor \neg \left(a \leq 4.6 \cdot 10^{+123}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right)\\
\end{array}
\end{array}
if a < -1.45000000000000006e134 or -2.3500000000000001e81 < a < -1.8999999999999999e-95 or 4.59999999999999981e123 < a Initial program 63.6%
+-commutative63.6%
fma-define65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in a around inf 63.3%
+-commutative63.3%
mul-1-neg63.3%
unsub-neg63.3%
*-commutative63.3%
Simplified63.3%
if -1.45000000000000006e134 < a < -2.3500000000000001e81Initial program 50.4%
+-commutative50.4%
fma-define50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in c around inf 72.1%
*-commutative72.1%
Simplified72.1%
if -1.8999999999999999e-95 < a < 4.59999999999999981e123Initial program 79.4%
+-commutative79.4%
fma-define80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in i around -inf 64.7%
Simplified73.0%
Taylor expanded in i around inf 51.3%
Final simplification57.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* z x) (* i j)))))
(if (<= y -41000.0)
t_1
(if (<= y 9.2e-294)
(* c (- (* a j) (* b z)))
(if (<= y 1.4e-167)
(* i (- (* b t) (* y j)))
(if (<= y 270000000.0) (* a (- (* c j) (* t x))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((z * x) - (i * j));
double tmp;
if (y <= -41000.0) {
tmp = t_1;
} else if (y <= 9.2e-294) {
tmp = c * ((a * j) - (b * z));
} else if (y <= 1.4e-167) {
tmp = i * ((b * t) - (y * j));
} else if (y <= 270000000.0) {
tmp = a * ((c * j) - (t * x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z * x) - (i * j))
if (y <= (-41000.0d0)) then
tmp = t_1
else if (y <= 9.2d-294) then
tmp = c * ((a * j) - (b * z))
else if (y <= 1.4d-167) then
tmp = i * ((b * t) - (y * j))
else if (y <= 270000000.0d0) then
tmp = a * ((c * j) - (t * x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((z * x) - (i * j));
double tmp;
if (y <= -41000.0) {
tmp = t_1;
} else if (y <= 9.2e-294) {
tmp = c * ((a * j) - (b * z));
} else if (y <= 1.4e-167) {
tmp = i * ((b * t) - (y * j));
} else if (y <= 270000000.0) {
tmp = a * ((c * j) - (t * x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((z * x) - (i * j)) tmp = 0 if y <= -41000.0: tmp = t_1 elif y <= 9.2e-294: tmp = c * ((a * j) - (b * z)) elif y <= 1.4e-167: tmp = i * ((b * t) - (y * j)) elif y <= 270000000.0: tmp = a * ((c * j) - (t * x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(z * x) - Float64(i * j))) tmp = 0.0 if (y <= -41000.0) tmp = t_1; elseif (y <= 9.2e-294) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); elseif (y <= 1.4e-167) tmp = Float64(i * Float64(Float64(b * t) - Float64(y * j))); elseif (y <= 270000000.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(t * x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((z * x) - (i * j)); tmp = 0.0; if (y <= -41000.0) tmp = t_1; elseif (y <= 9.2e-294) tmp = c * ((a * j) - (b * z)); elseif (y <= 1.4e-167) tmp = i * ((b * t) - (y * j)); elseif (y <= 270000000.0) tmp = a * ((c * j) - (t * x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -41000.0], t$95$1, If[LessEqual[y, 9.2e-294], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e-167], N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 270000000.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(z \cdot x - i \cdot j\right)\\
\mathbf{if}\;y \leq -41000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-294}:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-167}:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right)\\
\mathbf{elif}\;y \leq 270000000:\\
\;\;\;\;a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -41000 or 2.7e8 < y Initial program 60.2%
+-commutative60.2%
fma-define61.0%
*-commutative61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in y around inf 61.6%
+-commutative61.6%
mul-1-neg61.6%
unsub-neg61.6%
*-commutative61.6%
*-commutative61.6%
Simplified61.6%
if -41000 < y < 9.20000000000000064e-294Initial program 83.7%
+-commutative83.7%
fma-define85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in c around inf 55.0%
*-commutative55.0%
Simplified55.0%
if 9.20000000000000064e-294 < y < 1.39999999999999993e-167Initial program 88.0%
+-commutative88.0%
fma-define88.0%
*-commutative88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in i around -inf 79.1%
Simplified75.9%
Taylor expanded in i around inf 58.9%
if 1.39999999999999993e-167 < y < 2.7e8Initial program 64.7%
+-commutative64.7%
fma-define67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in a around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
Final simplification59.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -7.5e+112)
(* (* b i) (- t (/ (* c z) i)))
(if (<= b 9.2e-10)
(+ (* j (- (* c a) (* i y))) (* x (- (* z y) (* t a))))
(- (* b (- (* i t) (* c z))) (* y (- (* i j) (* z x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7.5e+112) {
tmp = (b * i) * (t - ((c * z) / i));
} else if (b <= 9.2e-10) {
tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a)));
} else {
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)));
}
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 <= (-7.5d+112)) then
tmp = (b * i) * (t - ((c * z) / i))
else if (b <= 9.2d-10) then
tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a)))
else
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)))
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 <= -7.5e+112) {
tmp = (b * i) * (t - ((c * z) / i));
} else if (b <= 9.2e-10) {
tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a)));
} else {
tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -7.5e+112: tmp = (b * i) * (t - ((c * z) / i)) elif b <= 9.2e-10: tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a))) else: tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -7.5e+112) tmp = Float64(Float64(b * i) * Float64(t - Float64(Float64(c * z) / i))); elseif (b <= 9.2e-10) tmp = Float64(Float64(j * Float64(Float64(c * a) - Float64(i * y))) + Float64(x * Float64(Float64(z * y) - Float64(t * a)))); else tmp = Float64(Float64(b * Float64(Float64(i * t) - Float64(c * z))) - Float64(y * Float64(Float64(i * j) - Float64(z * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -7.5e+112) tmp = (b * i) * (t - ((c * z) / i)); elseif (b <= 9.2e-10) tmp = (j * ((c * a) - (i * y))) + (x * ((z * y) - (t * a))); else tmp = (b * ((i * t) - (c * z))) - (y * ((i * j) - (z * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -7.5e+112], N[(N[(b * i), $MachinePrecision] * N[(t - N[(N[(c * z), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e-10], N[(N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+112}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(t - \frac{c \cdot z}{i}\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-10}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right) + x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot t - c \cdot z\right) - y \cdot \left(i \cdot j - z \cdot x\right)\\
\end{array}
\end{array}
if b < -7.5e112Initial program 69.9%
+-commutative69.9%
fma-define71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in i around -inf 56.8%
Simplified62.7%
Taylor expanded in b around inf 86.4%
associate-*r*86.4%
mul-1-neg86.4%
unsub-neg86.4%
Simplified86.4%
if -7.5e112 < b < 9.20000000000000028e-10Initial program 73.0%
+-commutative73.0%
fma-define74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in b around 0 72.6%
if 9.20000000000000028e-10 < b Initial program 67.6%
+-commutative67.6%
fma-define67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in a around 0 81.1%
sub-neg81.1%
+-commutative81.1%
*-commutative81.1%
associate-*r*84.3%
associate-*r*85.6%
associate-*r*85.6%
distribute-rgt-in87.2%
mul-1-neg87.2%
unsub-neg87.2%
*-commutative87.2%
*-commutative87.2%
sub-neg87.2%
distribute-lft-out82.5%
distribute-rgt-neg-out82.5%
mul-1-neg82.5%
+-commutative82.5%
distribute-neg-in82.5%
Simplified87.2%
Final simplification78.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -3.2e+121) (not (<= x 9e+140))) (* x (- (* z y) (* t a))) (+ (* j (- (* c a) (* i y))) (* b (* i t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -3.2e+121) || !(x <= 9e+140)) {
tmp = x * ((z * y) - (t * a));
} else {
tmp = (j * ((c * a) - (i * y))) + (b * (i * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-3.2d+121)) .or. (.not. (x <= 9d+140))) then
tmp = x * ((z * y) - (t * a))
else
tmp = (j * ((c * a) - (i * y))) + (b * (i * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -3.2e+121) || !(x <= 9e+140)) {
tmp = x * ((z * y) - (t * a));
} else {
tmp = (j * ((c * a) - (i * y))) + (b * (i * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -3.2e+121) or not (x <= 9e+140): tmp = x * ((z * y) - (t * a)) else: tmp = (j * ((c * a) - (i * y))) + (b * (i * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -3.2e+121) || !(x <= 9e+140)) tmp = Float64(x * Float64(Float64(z * y) - Float64(t * a))); else tmp = Float64(Float64(j * Float64(Float64(c * a) - Float64(i * y))) + Float64(b * Float64(i * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -3.2e+121) || ~((x <= 9e+140))) tmp = x * ((z * y) - (t * a)); else tmp = (j * ((c * a) - (i * y))) + (b * (i * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -3.2e+121], N[Not[LessEqual[x, 9e+140]], $MachinePrecision]], N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+121} \lor \neg \left(x \leq 9 \cdot 10^{+140}\right):\\
\;\;\;\;x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right) + b \cdot \left(i \cdot t\right)\\
\end{array}
\end{array}
if x < -3.1999999999999999e121 or 9.0000000000000003e140 < x Initial program 68.7%
+-commutative68.7%
fma-define71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in i around -inf 70.6%
Simplified73.2%
Taylor expanded in x around -inf 73.9%
*-commutative73.9%
Simplified73.9%
if -3.1999999999999999e121 < x < 9.0000000000000003e140Initial program 72.0%
Taylor expanded in i around inf 61.9%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.4e-46)
(* a (* c j))
(if (<= j -5e-194)
(* i (* b t))
(if (<= j 3.6e-26) (* y (* z x)) (* (* i j) (- y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.4e-46) {
tmp = a * (c * j);
} else if (j <= -5e-194) {
tmp = i * (b * t);
} else if (j <= 3.6e-26) {
tmp = y * (z * x);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.4d-46)) then
tmp = a * (c * j)
else if (j <= (-5d-194)) then
tmp = i * (b * t)
else if (j <= 3.6d-26) then
tmp = y * (z * x)
else
tmp = (i * j) * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.4e-46) {
tmp = a * (c * j);
} else if (j <= -5e-194) {
tmp = i * (b * t);
} else if (j <= 3.6e-26) {
tmp = y * (z * x);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.4e-46: tmp = a * (c * j) elif j <= -5e-194: tmp = i * (b * t) elif j <= 3.6e-26: tmp = y * (z * x) else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.4e-46) tmp = Float64(a * Float64(c * j)); elseif (j <= -5e-194) tmp = Float64(i * Float64(b * t)); elseif (j <= 3.6e-26) tmp = Float64(y * Float64(z * x)); else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.4e-46) tmp = a * (c * j); elseif (j <= -5e-194) tmp = i * (b * t); elseif (j <= 3.6e-26) tmp = y * (z * x); else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.4e-46], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5e-194], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.6e-26], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.4 \cdot 10^{-46}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq -5 \cdot 10^{-194}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{-26}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if j < -1.3999999999999999e-46Initial program 70.5%
+-commutative70.5%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in a around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in j around inf 40.2%
if -1.3999999999999999e-46 < j < -5.0000000000000002e-194Initial program 65.8%
+-commutative65.8%
fma-define65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in i around -inf 81.0%
Simplified81.0%
Taylor expanded in i around inf 55.2%
Taylor expanded in b around inf 50.6%
if -5.0000000000000002e-194 < j < 3.6000000000000001e-26Initial program 65.7%
+-commutative65.7%
fma-define65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in y around inf 37.7%
+-commutative37.7%
mul-1-neg37.7%
unsub-neg37.7%
*-commutative37.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in z around inf 37.6%
*-commutative37.6%
Simplified37.6%
if 3.6000000000000001e-26 < j Initial program 78.9%
+-commutative78.9%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around inf 50.5%
+-commutative50.5%
mul-1-neg50.5%
unsub-neg50.5%
*-commutative50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in z around 0 39.0%
associate-*r*39.0%
neg-mul-139.0%
*-commutative39.0%
*-commutative39.0%
associate-*r*44.8%
Simplified44.8%
Final simplification41.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* i t))))
(if (<= b -3.1e+43)
t_1
(if (<= b 0.0285)
(* a (- (* c j) (* t x)))
(if (<= b 9.2e+197) (* b (* c (- z))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (i * t);
double tmp;
if (b <= -3.1e+43) {
tmp = t_1;
} else if (b <= 0.0285) {
tmp = a * ((c * j) - (t * x));
} else if (b <= 9.2e+197) {
tmp = b * (c * -z);
} 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 = b * (i * t)
if (b <= (-3.1d+43)) then
tmp = t_1
else if (b <= 0.0285d0) then
tmp = a * ((c * j) - (t * x))
else if (b <= 9.2d+197) then
tmp = b * (c * -z)
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 = b * (i * t);
double tmp;
if (b <= -3.1e+43) {
tmp = t_1;
} else if (b <= 0.0285) {
tmp = a * ((c * j) - (t * x));
} else if (b <= 9.2e+197) {
tmp = b * (c * -z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (i * t) tmp = 0 if b <= -3.1e+43: tmp = t_1 elif b <= 0.0285: tmp = a * ((c * j) - (t * x)) elif b <= 9.2e+197: tmp = b * (c * -z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(i * t)) tmp = 0.0 if (b <= -3.1e+43) tmp = t_1; elseif (b <= 0.0285) tmp = Float64(a * Float64(Float64(c * j) - Float64(t * x))); elseif (b <= 9.2e+197) tmp = Float64(b * Float64(c * Float64(-z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (i * t); tmp = 0.0; if (b <= -3.1e+43) tmp = t_1; elseif (b <= 0.0285) tmp = a * ((c * j) - (t * x)); elseif (b <= 9.2e+197) tmp = b * (c * -z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+43], t$95$1, If[LessEqual[b, 0.0285], N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e+197], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(i \cdot t\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.0285:\\
\;\;\;\;a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+197}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.1000000000000002e43 or 9.2000000000000002e197 < b Initial program 68.6%
Taylor expanded in i around inf 55.3%
Taylor expanded in b around inf 53.5%
*-commutative53.5%
Simplified53.5%
if -3.1000000000000002e43 < b < 0.028500000000000001Initial program 73.7%
+-commutative73.7%
fma-define75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in a around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
*-commutative51.9%
Simplified51.9%
if 0.028500000000000001 < b < 9.2000000000000002e197Initial program 67.0%
+-commutative67.0%
fma-define67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in c around inf 46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in j around 0 41.1%
associate-*r*41.1%
neg-mul-141.1%
Simplified41.1%
Final simplification51.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.8e-58)
(* b (* i t))
(if (<= t 5.2e-257)
(* x (* z y))
(if (<= t 2.9e-65) (* c (* a j)) (* i (* b t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.8e-58) {
tmp = b * (i * t);
} else if (t <= 5.2e-257) {
tmp = x * (z * y);
} else if (t <= 2.9e-65) {
tmp = c * (a * j);
} else {
tmp = i * (b * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-3.8d-58)) then
tmp = b * (i * t)
else if (t <= 5.2d-257) then
tmp = x * (z * y)
else if (t <= 2.9d-65) then
tmp = c * (a * j)
else
tmp = i * (b * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.8e-58) {
tmp = b * (i * t);
} else if (t <= 5.2e-257) {
tmp = x * (z * y);
} else if (t <= 2.9e-65) {
tmp = c * (a * j);
} else {
tmp = i * (b * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -3.8e-58: tmp = b * (i * t) elif t <= 5.2e-257: tmp = x * (z * y) elif t <= 2.9e-65: tmp = c * (a * j) else: tmp = i * (b * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.8e-58) tmp = Float64(b * Float64(i * t)); elseif (t <= 5.2e-257) tmp = Float64(x * Float64(z * y)); elseif (t <= 2.9e-65) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(b * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -3.8e-58) tmp = b * (i * t); elseif (t <= 5.2e-257) tmp = x * (z * y); elseif (t <= 2.9e-65) tmp = c * (a * j); else tmp = i * (b * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.8e-58], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e-257], N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-65], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{-58}:\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-257}:\\
\;\;\;\;x \cdot \left(z \cdot y\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-65}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if t < -3.7999999999999997e-58Initial program 66.5%
Taylor expanded in i around inf 48.1%
Taylor expanded in b around inf 36.9%
*-commutative36.9%
Simplified36.9%
if -3.7999999999999997e-58 < t < 5.2000000000000002e-257Initial program 79.5%
+-commutative79.5%
fma-define81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around inf 52.4%
+-commutative52.4%
mul-1-neg52.4%
unsub-neg52.4%
*-commutative52.4%
*-commutative52.4%
Simplified52.4%
Taylor expanded in z around inf 35.8%
if 5.2000000000000002e-257 < t < 2.8999999999999998e-65Initial program 69.7%
+-commutative69.7%
fma-define69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in j around inf 44.3%
if 2.8999999999999998e-65 < t Initial program 69.5%
+-commutative69.5%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around -inf 61.5%
Simplified62.8%
Taylor expanded in i around inf 54.4%
Taylor expanded in b around inf 44.3%
Final simplification40.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.86e-53) (not (<= t 9e-64))) (* b (* i t)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.86e-53) || !(t <= 9e-64)) {
tmp = b * (i * t);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-1.86d-53)) .or. (.not. (t <= 9d-64))) then
tmp = b * (i * t)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.86e-53) || !(t <= 9e-64)) {
tmp = b * (i * t);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.86e-53) or not (t <= 9e-64): tmp = b * (i * t) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.86e-53) || !(t <= 9e-64)) tmp = Float64(b * Float64(i * t)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.86e-53) || ~((t <= 9e-64))) tmp = b * (i * t); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.86e-53], N[Not[LessEqual[t, 9e-64]], $MachinePrecision]], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.86 \cdot 10^{-53} \lor \neg \left(t \leq 9 \cdot 10^{-64}\right):\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.8599999999999999e-53 or 9.00000000000000019e-64 < t Initial program 68.2%
Taylor expanded in i around inf 51.1%
Taylor expanded in b around inf 40.5%
*-commutative40.5%
Simplified40.5%
if -1.8599999999999999e-53 < t < 9.00000000000000019e-64Initial program 75.5%
+-commutative75.5%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in a around inf 36.8%
+-commutative36.8%
mul-1-neg36.8%
unsub-neg36.8%
*-commutative36.8%
Simplified36.8%
Taylor expanded in j around inf 31.8%
Final simplification37.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -8.5e-54) (not (<= t 7.2e-63))) (* b (* i t)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -8.5e-54) || !(t <= 7.2e-63)) {
tmp = b * (i * t);
} else {
tmp = c * (a * 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 ((t <= (-8.5d-54)) .or. (.not. (t <= 7.2d-63))) then
tmp = b * (i * t)
else
tmp = c * (a * 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 ((t <= -8.5e-54) || !(t <= 7.2e-63)) {
tmp = b * (i * t);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -8.5e-54) or not (t <= 7.2e-63): tmp = b * (i * t) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -8.5e-54) || !(t <= 7.2e-63)) tmp = Float64(b * Float64(i * t)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -8.5e-54) || ~((t <= 7.2e-63))) tmp = b * (i * t); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -8.5e-54], N[Not[LessEqual[t, 7.2e-63]], $MachinePrecision]], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{-54} \lor \neg \left(t \leq 7.2 \cdot 10^{-63}\right):\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if t < -8.5e-54 or 7.20000000000000016e-63 < t Initial program 68.2%
Taylor expanded in i around inf 51.1%
Taylor expanded in b around inf 40.5%
*-commutative40.5%
Simplified40.5%
if -8.5e-54 < t < 7.20000000000000016e-63Initial program 75.5%
+-commutative75.5%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in c around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in j around inf 32.8%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -8.8e-54) (* b (* i t)) (if (<= t 2.2e-62) (* c (* a j)) (* i (* b t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -8.8e-54) {
tmp = b * (i * t);
} else if (t <= 2.2e-62) {
tmp = c * (a * j);
} else {
tmp = i * (b * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-8.8d-54)) then
tmp = b * (i * t)
else if (t <= 2.2d-62) then
tmp = c * (a * j)
else
tmp = i * (b * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -8.8e-54) {
tmp = b * (i * t);
} else if (t <= 2.2e-62) {
tmp = c * (a * j);
} else {
tmp = i * (b * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -8.8e-54: tmp = b * (i * t) elif t <= 2.2e-62: tmp = c * (a * j) else: tmp = i * (b * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -8.8e-54) tmp = Float64(b * Float64(i * t)); elseif (t <= 2.2e-62) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(b * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -8.8e-54) tmp = b * (i * t); elseif (t <= 2.2e-62) tmp = c * (a * j); else tmp = i * (b * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -8.8e-54], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-62], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.8 \cdot 10^{-54}:\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-62}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if t < -8.7999999999999998e-54Initial program 66.9%
Taylor expanded in i around inf 48.1%
Taylor expanded in b around inf 37.9%
*-commutative37.9%
Simplified37.9%
if -8.7999999999999998e-54 < t < 2.20000000000000017e-62Initial program 75.5%
+-commutative75.5%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in c around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in j around inf 32.8%
if 2.20000000000000017e-62 < t Initial program 69.5%
+-commutative69.5%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around -inf 61.5%
Simplified62.8%
Taylor expanded in i around inf 54.4%
Taylor expanded in b around inf 44.3%
Final simplification37.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b 7.4e+36) (* a (* c j)) (* a (* t x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= 7.4e+36) {
tmp = a * (c * j);
} else {
tmp = a * (t * x);
}
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 <= 7.4d+36) then
tmp = a * (c * j)
else
tmp = a * (t * x)
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 <= 7.4e+36) {
tmp = a * (c * j);
} else {
tmp = a * (t * x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= 7.4e+36: tmp = a * (c * j) else: tmp = a * (t * x) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= 7.4e+36) tmp = Float64(a * Float64(c * j)); else tmp = Float64(a * Float64(t * x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= 7.4e+36) tmp = a * (c * j); else tmp = a * (t * x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, 7.4e+36], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.4 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot x\right)\\
\end{array}
\end{array}
if b < 7.40000000000000058e36Initial program 71.4%
+-commutative71.4%
fma-define72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in a around inf 41.4%
+-commutative41.4%
mul-1-neg41.4%
unsub-neg41.4%
*-commutative41.4%
Simplified41.4%
Taylor expanded in j around inf 24.9%
if 7.40000000000000058e36 < b Initial program 69.9%
+-commutative69.9%
fma-define69.9%
*-commutative69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in a around inf 19.6%
+-commutative19.6%
mul-1-neg19.6%
unsub-neg19.6%
*-commutative19.6%
Simplified19.6%
Taylor expanded in j around 0 16.2%
mul-1-neg16.2%
distribute-lft-neg-out16.2%
*-commutative16.2%
Simplified16.2%
pow116.2%
associate-*r*19.9%
add-sqr-sqrt9.7%
sqrt-unprod19.0%
sqr-neg19.0%
sqrt-unprod7.7%
add-sqr-sqrt12.9%
Applied egg-rr12.9%
unpow112.9%
associate-*l*16.4%
*-commutative16.4%
Simplified16.4%
Final simplification23.1%
(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 71.1%
+-commutative71.1%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in a around inf 36.7%
+-commutative36.7%
mul-1-neg36.7%
unsub-neg36.7%
*-commutative36.7%
Simplified36.7%
Taylor expanded in j around inf 21.0%
Final simplification21.0%
(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 2024071
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))