
(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 20 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 (- (* a c) (* y i))))
(if (<=
(- (* j t_1) (+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))
INFINITY)
(fma j t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))
(* z (- (* x y) (* b c))))))
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) - (y * i);
double tmp;
if (((j * t_1) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = fma(j, t_1, ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_1) - Float64(Float64(b * Float64(Float64(z * c) - Float64(t * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = fma(j, t_1, Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c))))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$1), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$1 + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t\_1 - \left(b \cdot \left(z \cdot c - t \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 93.7%
+-commutative93.7%
fma-define93.7%
*-commutative93.7%
*-commutative93.7%
Simplified93.7%
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-define12.8%
*-commutative12.8%
*-commutative12.8%
Simplified12.8%
Taylor expanded in z around inf 57.0%
Final simplification88.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* a c) (* y i)))
(+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(t * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - t \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 93.7%
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-define12.8%
*-commutative12.8%
*-commutative12.8%
Simplified12.8%
Taylor expanded in z around inf 57.0%
Final simplification88.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (+ t_1 t_2)))
(if (<= a -2.05e+210)
(* a (- (* c j) (* x t)))
(if (<= a -6.5e-53)
t_3
(if (<= a -5.5e-144)
(+ t_1 (* j (- (* a c) (* y i))))
(if (<= a -3.6e-228)
t_3
(if (<= a 1.9e-108)
(+ (* y (- (* x z) (* i j))) t_2)
(- (+ t_1 (* a (* c j))) (* b (* z c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double t_3 = t_1 + t_2;
double tmp;
if (a <= -2.05e+210) {
tmp = a * ((c * j) - (x * t));
} else if (a <= -6.5e-53) {
tmp = t_3;
} else if (a <= -5.5e-144) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else if (a <= -3.6e-228) {
tmp = t_3;
} else if (a <= 1.9e-108) {
tmp = (y * ((x * z) - (i * j))) + t_2;
} else {
tmp = (t_1 + (a * (c * j))) - (b * (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((t * i) - (z * c))
t_3 = t_1 + t_2
if (a <= (-2.05d+210)) then
tmp = a * ((c * j) - (x * t))
else if (a <= (-6.5d-53)) then
tmp = t_3
else if (a <= (-5.5d-144)) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else if (a <= (-3.6d-228)) then
tmp = t_3
else if (a <= 1.9d-108) then
tmp = (y * ((x * z) - (i * j))) + t_2
else
tmp = (t_1 + (a * (c * j))) - (b * (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double t_3 = t_1 + t_2;
double tmp;
if (a <= -2.05e+210) {
tmp = a * ((c * j) - (x * t));
} else if (a <= -6.5e-53) {
tmp = t_3;
} else if (a <= -5.5e-144) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else if (a <= -3.6e-228) {
tmp = t_3;
} else if (a <= 1.9e-108) {
tmp = (y * ((x * z) - (i * j))) + t_2;
} else {
tmp = (t_1 + (a * (c * j))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((t * i) - (z * c)) t_3 = t_1 + t_2 tmp = 0 if a <= -2.05e+210: tmp = a * ((c * j) - (x * t)) elif a <= -6.5e-53: tmp = t_3 elif a <= -5.5e-144: tmp = t_1 + (j * ((a * c) - (y * i))) elif a <= -3.6e-228: tmp = t_3 elif a <= 1.9e-108: tmp = (y * ((x * z) - (i * j))) + t_2 else: tmp = (t_1 + (a * (c * j))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(t_1 + t_2) tmp = 0.0 if (a <= -2.05e+210) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (a <= -6.5e-53) tmp = t_3; elseif (a <= -5.5e-144) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (a <= -3.6e-228) tmp = t_3; elseif (a <= 1.9e-108) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_2); else tmp = Float64(Float64(t_1 + Float64(a * Float64(c * j))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((t * i) - (z * c)); t_3 = t_1 + t_2; tmp = 0.0; if (a <= -2.05e+210) tmp = a * ((c * j) - (x * t)); elseif (a <= -6.5e-53) tmp = t_3; elseif (a <= -5.5e-144) tmp = t_1 + (j * ((a * c) - (y * i))); elseif (a <= -3.6e-228) tmp = t_3; elseif (a <= 1.9e-108) tmp = (y * ((x * z) - (i * j))) + t_2; else tmp = (t_1 + (a * (c * j))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 + t$95$2), $MachinePrecision]}, If[LessEqual[a, -2.05e+210], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.5e-53], t$95$3, If[LessEqual[a, -5.5e-144], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.6e-228], t$95$3, If[LessEqual[a, 1.9e-108], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(t$95$1 + N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := t\_1 + t\_2\\
\mathbf{if}\;a \leq -2.05 \cdot 10^{+210}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-53}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-144}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-228}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-108}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(t\_1 + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if a < -2.05e210Initial program 58.9%
*-commutative58.9%
*-commutative58.9%
fma-neg63.0%
Simplified63.0%
Taylor expanded in y around inf 51.1%
Taylor expanded in a around inf 79.3%
+-commutative79.3%
mul-1-neg79.3%
unsub-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
if -2.05e210 < a < -6.4999999999999997e-53 or -5.49999999999999973e-144 < a < -3.6000000000000002e-228Initial program 78.3%
+-commutative78.3%
fma-define82.7%
*-commutative82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in j around 0 73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
if -6.4999999999999997e-53 < a < -5.49999999999999973e-144Initial program 74.6%
+-commutative74.6%
fma-define74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in b around 0 76.8%
if -3.6000000000000002e-228 < a < 1.89999999999999987e-108Initial program 84.5%
+-commutative84.5%
fma-define85.8%
*-commutative85.8%
*-commutative85.8%
Simplified85.8%
Taylor expanded in a around 0 83.4%
+-commutative83.4%
*-commutative83.4%
associate-*r*88.0%
associate-*r*86.7%
associate-*r*86.7%
distribute-rgt-in88.1%
mul-1-neg88.1%
unsub-neg88.1%
*-commutative88.1%
*-commutative88.1%
Simplified88.1%
if 1.89999999999999987e-108 < a Initial program 82.7%
+-commutative82.7%
fma-define84.0%
*-commutative84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in i around 0 79.0%
Final simplification80.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -165000.0)
t_2
(if (<= c -1.25e-51)
(* x (- (* y z) (* t a)))
(if (<= c -8.5e-63)
t_2
(if (<= c 2.4e-272)
t_1
(if (<= c 5e-228) (* i (* y (- j))) (if (<= c 1e+74) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -165000.0) {
tmp = t_2;
} else if (c <= -1.25e-51) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -8.5e-63) {
tmp = t_2;
} else if (c <= 2.4e-272) {
tmp = t_1;
} else if (c <= 5e-228) {
tmp = i * (y * -j);
} else if (c <= 1e+74) {
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 = t * ((b * i) - (x * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-165000.0d0)) then
tmp = t_2
else if (c <= (-1.25d-51)) then
tmp = x * ((y * z) - (t * a))
else if (c <= (-8.5d-63)) then
tmp = t_2
else if (c <= 2.4d-272) then
tmp = t_1
else if (c <= 5d-228) then
tmp = i * (y * -j)
else if (c <= 1d+74) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -165000.0) {
tmp = t_2;
} else if (c <= -1.25e-51) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -8.5e-63) {
tmp = t_2;
} else if (c <= 2.4e-272) {
tmp = t_1;
} else if (c <= 5e-228) {
tmp = i * (y * -j);
} else if (c <= 1e+74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -165000.0: tmp = t_2 elif c <= -1.25e-51: tmp = x * ((y * z) - (t * a)) elif c <= -8.5e-63: tmp = t_2 elif c <= 2.4e-272: tmp = t_1 elif c <= 5e-228: tmp = i * (y * -j) elif c <= 1e+74: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -165000.0) tmp = t_2; elseif (c <= -1.25e-51) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= -8.5e-63) tmp = t_2; elseif (c <= 2.4e-272) tmp = t_1; elseif (c <= 5e-228) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= 1e+74) 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 = t * ((b * i) - (x * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -165000.0) tmp = t_2; elseif (c <= -1.25e-51) tmp = x * ((y * z) - (t * a)); elseif (c <= -8.5e-63) tmp = t_2; elseif (c <= 2.4e-272) tmp = t_1; elseif (c <= 5e-228) tmp = i * (y * -j); elseif (c <= 1e+74) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -165000.0], t$95$2, If[LessEqual[c, -1.25e-51], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.5e-63], t$95$2, If[LessEqual[c, 2.4e-272], t$95$1, If[LessEqual[c, 5e-228], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1e+74], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -165000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.25 \cdot 10^{-51}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq -8.5 \cdot 10^{-63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 2.4 \cdot 10^{-272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -165000 or -1.25000000000000001e-51 < c < -8.49999999999999969e-63 or 9.99999999999999952e73 < c Initial program 74.0%
+-commutative74.0%
fma-define75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around inf 69.5%
*-commutative69.5%
Simplified69.5%
if -165000 < c < -1.25000000000000001e-51Initial program 76.3%
+-commutative76.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in x around inf 67.6%
if -8.49999999999999969e-63 < c < 2.3999999999999999e-272 or 4.99999999999999972e-228 < c < 9.99999999999999952e73Initial program 85.6%
*-commutative85.6%
*-commutative85.6%
fma-neg85.6%
Simplified85.6%
Taylor expanded in y around inf 81.4%
Taylor expanded in t around inf 56.4%
associate-*r*56.4%
mul-1-neg56.4%
cancel-sign-sub56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
*-commutative56.4%
Simplified56.4%
if 2.3999999999999999e-272 < c < 4.99999999999999972e-228Initial program 75.0%
+-commutative75.0%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
Simplified76.1%
Taylor expanded in x around 0 85.3%
associate-*r*85.3%
mul-1-neg85.3%
Simplified85.3%
Final simplification63.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -140000.0)
t_2
(if (<= c -3.9e-16)
(* x (* y z))
(if (<= c -8.8e-63)
t_2
(if (<= c 4.2e-271)
t_1
(if (<= c 6e-228)
(* i (* y (- j)))
(if (<= c 3.55e+73) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -140000.0) {
tmp = t_2;
} else if (c <= -3.9e-16) {
tmp = x * (y * z);
} else if (c <= -8.8e-63) {
tmp = t_2;
} else if (c <= 4.2e-271) {
tmp = t_1;
} else if (c <= 6e-228) {
tmp = i * (y * -j);
} else if (c <= 3.55e+73) {
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 = t * ((b * i) - (x * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-140000.0d0)) then
tmp = t_2
else if (c <= (-3.9d-16)) then
tmp = x * (y * z)
else if (c <= (-8.8d-63)) then
tmp = t_2
else if (c <= 4.2d-271) then
tmp = t_1
else if (c <= 6d-228) then
tmp = i * (y * -j)
else if (c <= 3.55d+73) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -140000.0) {
tmp = t_2;
} else if (c <= -3.9e-16) {
tmp = x * (y * z);
} else if (c <= -8.8e-63) {
tmp = t_2;
} else if (c <= 4.2e-271) {
tmp = t_1;
} else if (c <= 6e-228) {
tmp = i * (y * -j);
} else if (c <= 3.55e+73) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -140000.0: tmp = t_2 elif c <= -3.9e-16: tmp = x * (y * z) elif c <= -8.8e-63: tmp = t_2 elif c <= 4.2e-271: tmp = t_1 elif c <= 6e-228: tmp = i * (y * -j) elif c <= 3.55e+73: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -140000.0) tmp = t_2; elseif (c <= -3.9e-16) tmp = Float64(x * Float64(y * z)); elseif (c <= -8.8e-63) tmp = t_2; elseif (c <= 4.2e-271) tmp = t_1; elseif (c <= 6e-228) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= 3.55e+73) 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 = t * ((b * i) - (x * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -140000.0) tmp = t_2; elseif (c <= -3.9e-16) tmp = x * (y * z); elseif (c <= -8.8e-63) tmp = t_2; elseif (c <= 4.2e-271) tmp = t_1; elseif (c <= 6e-228) tmp = i * (y * -j); elseif (c <= 3.55e+73) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -140000.0], t$95$2, If[LessEqual[c, -3.9e-16], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.8e-63], t$95$2, If[LessEqual[c, 4.2e-271], t$95$1, If[LessEqual[c, 6e-228], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.55e+73], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -140000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -3.9 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -8.8 \cdot 10^{-63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-228}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 3.55 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.4e5 or -3.89999999999999977e-16 < c < -8.7999999999999998e-63 or 3.5500000000000003e73 < c Initial program 75.1%
+-commutative75.1%
fma-define76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in c around inf 67.8%
*-commutative67.8%
Simplified67.8%
if -1.4e5 < c < -3.89999999999999977e-16Initial program 62.3%
+-commutative62.3%
fma-define62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
Simplified69.5%
Taylor expanded in x around inf 80.1%
if -8.7999999999999998e-63 < c < 4.2000000000000001e-271 or 5.9999999999999999e-228 < c < 3.5500000000000003e73Initial program 85.6%
*-commutative85.6%
*-commutative85.6%
fma-neg85.6%
Simplified85.6%
Taylor expanded in y around inf 81.4%
Taylor expanded in t around inf 56.4%
associate-*r*56.4%
mul-1-neg56.4%
cancel-sign-sub56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
*-commutative56.4%
Simplified56.4%
if 4.2000000000000001e-271 < c < 5.9999999999999999e-228Initial program 75.0%
+-commutative75.0%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
Simplified76.1%
Taylor expanded in x around 0 85.3%
associate-*r*85.3%
mul-1-neg85.3%
Simplified85.3%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (+ (* y (* x z)) t_2)))
(if (<= a -2.1e+88)
t_1
(if (<= a -1.55e-298)
t_3
(if (<= a 8.6e-195)
(- t_2 (* y (* i j)))
(if (<= a 1.55e-78) t_3 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double t_3 = (y * (x * z)) + t_2;
double tmp;
if (a <= -2.1e+88) {
tmp = t_1;
} else if (a <= -1.55e-298) {
tmp = t_3;
} else if (a <= 8.6e-195) {
tmp = t_2 - (y * (i * j));
} else if (a <= 1.55e-78) {
tmp = t_3;
} 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
t_3 = (y * (x * z)) + t_2
if (a <= (-2.1d+88)) then
tmp = t_1
else if (a <= (-1.55d-298)) then
tmp = t_3
else if (a <= 8.6d-195) then
tmp = t_2 - (y * (i * j))
else if (a <= 1.55d-78) then
tmp = t_3
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double t_3 = (y * (x * z)) + t_2;
double tmp;
if (a <= -2.1e+88) {
tmp = t_1;
} else if (a <= -1.55e-298) {
tmp = t_3;
} else if (a <= 8.6e-195) {
tmp = t_2 - (y * (i * j));
} else if (a <= 1.55e-78) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) t_3 = (y * (x * z)) + t_2 tmp = 0 if a <= -2.1e+88: tmp = t_1 elif a <= -1.55e-298: tmp = t_3 elif a <= 8.6e-195: tmp = t_2 - (y * (i * j)) elif a <= 1.55e-78: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(Float64(y * Float64(x * z)) + t_2) tmp = 0.0 if (a <= -2.1e+88) tmp = t_1; elseif (a <= -1.55e-298) tmp = t_3; elseif (a <= 8.6e-195) tmp = Float64(t_2 - Float64(y * Float64(i * j))); elseif (a <= 1.55e-78) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); t_3 = (y * (x * z)) + t_2; tmp = 0.0; if (a <= -2.1e+88) tmp = t_1; elseif (a <= -1.55e-298) tmp = t_3; elseif (a <= 8.6e-195) tmp = t_2 - (y * (i * j)); elseif (a <= 1.55e-78) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]}, If[LessEqual[a, -2.1e+88], t$95$1, If[LessEqual[a, -1.55e-298], t$95$3, If[LessEqual[a, 8.6e-195], N[(t$95$2 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e-78], t$95$3, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z\right) + t\_2\\
\mathbf{if}\;a \leq -2.1 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.55 \cdot 10^{-298}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{-195}:\\
\;\;\;\;t\_2 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-78}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.1e88 or 1.55000000000000009e-78 < a Initial program 77.6%
*-commutative77.6%
*-commutative77.6%
fma-neg78.5%
Simplified78.5%
Taylor expanded in y around inf 70.6%
Taylor expanded in a around inf 65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
if -2.1e88 < a < -1.5500000000000001e-298 or 8.6000000000000007e-195 < a < 1.55000000000000009e-78Initial program 79.6%
+-commutative79.6%
fma-define82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in a around 0 69.7%
+-commutative69.7%
*-commutative69.7%
associate-*r*73.0%
associate-*r*71.2%
associate-*r*71.2%
distribute-rgt-in72.1%
mul-1-neg72.1%
unsub-neg72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in x around inf 67.0%
if -1.5500000000000001e-298 < a < 8.6000000000000007e-195Initial program 84.5%
+-commutative84.5%
fma-define87.1%
*-commutative87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in a around 0 82.2%
+-commutative82.2%
*-commutative82.2%
associate-*r*82.3%
associate-*r*79.9%
associate-*r*79.9%
distribute-rgt-in82.5%
mul-1-neg82.5%
unsub-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in x around 0 69.6%
associate-*r*69.6%
neg-mul-169.6%
*-commutative69.6%
Simplified69.6%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (* x z)) (* b (- (* t i) (* z c)))))
(t_2 (* a (- (* c j) (* x t)))))
(if (<= a -7.8e+88)
t_2
(if (<= a 1.5e-297)
t_1
(if (<= a 6.2e-252)
(* j (* y (- (* x (/ z j)) i)))
(if (<= a 1.55e-78) 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 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.8e+88) {
tmp = t_2;
} else if (a <= 1.5e-297) {
tmp = t_1;
} else if (a <= 6.2e-252) {
tmp = j * (y * ((x * (z / j)) - i));
} else if (a <= 1.55e-78) {
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 = (y * (x * z)) + (b * ((t * i) - (z * c)))
t_2 = a * ((c * j) - (x * t))
if (a <= (-7.8d+88)) then
tmp = t_2
else if (a <= 1.5d-297) then
tmp = t_1
else if (a <= 6.2d-252) then
tmp = j * (y * ((x * (z / j)) - i))
else if (a <= 1.55d-78) 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 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.8e+88) {
tmp = t_2;
} else if (a <= 1.5e-297) {
tmp = t_1;
} else if (a <= 6.2e-252) {
tmp = j * (y * ((x * (z / j)) - i));
} else if (a <= 1.55e-78) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) + (b * ((t * i) - (z * c))) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -7.8e+88: tmp = t_2 elif a <= 1.5e-297: tmp = t_1 elif a <= 6.2e-252: tmp = j * (y * ((x * (z / j)) - i)) elif a <= 1.55e-78: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -7.8e+88) tmp = t_2; elseif (a <= 1.5e-297) tmp = t_1; elseif (a <= 6.2e-252) tmp = Float64(j * Float64(y * Float64(Float64(x * Float64(z / j)) - i))); elseif (a <= 1.55e-78) 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 = (y * (x * z)) + (b * ((t * i) - (z * c))); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -7.8e+88) tmp = t_2; elseif (a <= 1.5e-297) tmp = t_1; elseif (a <= 6.2e-252) tmp = j * (y * ((x * (z / j)) - i)); elseif (a <= 1.55e-78) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.8e+88], t$95$2, If[LessEqual[a, 1.5e-297], t$95$1, If[LessEqual[a, 6.2e-252], N[(j * N[(y * N[(N[(x * N[(z / j), $MachinePrecision]), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e-78], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.8 \cdot 10^{+88}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-252}:\\
\;\;\;\;j \cdot \left(y \cdot \left(x \cdot \frac{z}{j} - i\right)\right)\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -7.8000000000000002e88 or 1.55000000000000009e-78 < a Initial program 77.6%
*-commutative77.6%
*-commutative77.6%
fma-neg78.5%
Simplified78.5%
Taylor expanded in y around inf 70.6%
Taylor expanded in a around inf 65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
if -7.8000000000000002e88 < a < 1.49999999999999997e-297 or 6.1999999999999997e-252 < a < 1.55000000000000009e-78Initial program 81.6%
+-commutative81.6%
fma-define84.0%
*-commutative84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in a around 0 71.6%
+-commutative71.6%
*-commutative71.6%
associate-*r*74.4%
associate-*r*72.1%
associate-*r*72.1%
distribute-rgt-in72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in x around inf 66.9%
if 1.49999999999999997e-297 < a < 6.1999999999999997e-252Initial program 76.5%
+-commutative76.5%
fma-define81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in j around inf 72.5%
Taylor expanded in y around inf 64.5%
associate-/l*69.0%
*-commutative69.0%
Applied egg-rr69.0%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -3.2e+83)
t_2
(if (<= c -6.5e-86)
(* z (- (* x y) (* b c)))
(if (<= c 5.3e-275)
t_1
(if (<= c 5e-228)
(* j (* i (- (* t (/ b j)) y)))
(if (<= c 4.2e+73) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.2e+83) {
tmp = t_2;
} else if (c <= -6.5e-86) {
tmp = z * ((x * y) - (b * c));
} else if (c <= 5.3e-275) {
tmp = t_1;
} else if (c <= 5e-228) {
tmp = j * (i * ((t * (b / j)) - y));
} else if (c <= 4.2e+73) {
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 = t * ((b * i) - (x * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-3.2d+83)) then
tmp = t_2
else if (c <= (-6.5d-86)) then
tmp = z * ((x * y) - (b * c))
else if (c <= 5.3d-275) then
tmp = t_1
else if (c <= 5d-228) then
tmp = j * (i * ((t * (b / j)) - y))
else if (c <= 4.2d+73) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.2e+83) {
tmp = t_2;
} else if (c <= -6.5e-86) {
tmp = z * ((x * y) - (b * c));
} else if (c <= 5.3e-275) {
tmp = t_1;
} else if (c <= 5e-228) {
tmp = j * (i * ((t * (b / j)) - y));
} else if (c <= 4.2e+73) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -3.2e+83: tmp = t_2 elif c <= -6.5e-86: tmp = z * ((x * y) - (b * c)) elif c <= 5.3e-275: tmp = t_1 elif c <= 5e-228: tmp = j * (i * ((t * (b / j)) - y)) elif c <= 4.2e+73: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.2e+83) tmp = t_2; elseif (c <= -6.5e-86) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (c <= 5.3e-275) tmp = t_1; elseif (c <= 5e-228) tmp = Float64(j * Float64(i * Float64(Float64(t * Float64(b / j)) - y))); elseif (c <= 4.2e+73) 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 = t * ((b * i) - (x * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -3.2e+83) tmp = t_2; elseif (c <= -6.5e-86) tmp = z * ((x * y) - (b * c)); elseif (c <= 5.3e-275) tmp = t_1; elseif (c <= 5e-228) tmp = j * (i * ((t * (b / j)) - y)); elseif (c <= 4.2e+73) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.2e+83], t$95$2, If[LessEqual[c, -6.5e-86], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.3e-275], t$95$1, If[LessEqual[c, 5e-228], N[(j * N[(i * N[(N[(t * N[(b / j), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e+73], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.2 \cdot 10^{+83}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -6.5 \cdot 10^{-86}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;c \leq 5.3 \cdot 10^{-275}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\
\;\;\;\;j \cdot \left(i \cdot \left(t \cdot \frac{b}{j} - y\right)\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -3.1999999999999999e83 or 4.2000000000000003e73 < c Initial program 73.8%
+-commutative73.8%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in c around inf 72.9%
*-commutative72.9%
Simplified72.9%
if -3.1999999999999999e83 < c < -6.50000000000000028e-86Initial program 73.4%
+-commutative73.4%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around inf 65.1%
if -6.50000000000000028e-86 < c < 5.29999999999999986e-275 or 4.99999999999999972e-228 < c < 4.2000000000000003e73Initial program 86.7%
*-commutative86.7%
*-commutative86.7%
fma-neg86.7%
Simplified86.7%
Taylor expanded in y around inf 82.5%
Taylor expanded in t around inf 57.4%
associate-*r*57.4%
mul-1-neg57.4%
cancel-sign-sub57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
if 5.29999999999999986e-275 < c < 4.99999999999999972e-228Initial program 75.0%
+-commutative75.0%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in j around inf 75.0%
Taylor expanded in i around -inf 85.7%
associate-*r*74.4%
*-commutative74.4%
associate-*l*85.7%
+-commutative85.7%
mul-1-neg85.7%
unsub-neg85.7%
*-commutative85.7%
associate-/l*97.5%
Simplified97.5%
Final simplification65.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -3.6e+83)
t_2
(if (<= c -4.5e-86)
(* z (- (* x y) (* b c)))
(if (<= c 4.2e-271)
t_1
(if (<= c 1.85e-227)
(* j (- (* a c) (* y i)))
(if (<= c 9.2e+73) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.6e+83) {
tmp = t_2;
} else if (c <= -4.5e-86) {
tmp = z * ((x * y) - (b * c));
} else if (c <= 4.2e-271) {
tmp = t_1;
} else if (c <= 1.85e-227) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 9.2e+73) {
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 = t * ((b * i) - (x * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-3.6d+83)) then
tmp = t_2
else if (c <= (-4.5d-86)) then
tmp = z * ((x * y) - (b * c))
else if (c <= 4.2d-271) then
tmp = t_1
else if (c <= 1.85d-227) then
tmp = j * ((a * c) - (y * i))
else if (c <= 9.2d+73) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.6e+83) {
tmp = t_2;
} else if (c <= -4.5e-86) {
tmp = z * ((x * y) - (b * c));
} else if (c <= 4.2e-271) {
tmp = t_1;
} else if (c <= 1.85e-227) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 9.2e+73) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -3.6e+83: tmp = t_2 elif c <= -4.5e-86: tmp = z * ((x * y) - (b * c)) elif c <= 4.2e-271: tmp = t_1 elif c <= 1.85e-227: tmp = j * ((a * c) - (y * i)) elif c <= 9.2e+73: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.6e+83) tmp = t_2; elseif (c <= -4.5e-86) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (c <= 4.2e-271) tmp = t_1; elseif (c <= 1.85e-227) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= 9.2e+73) 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 = t * ((b * i) - (x * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -3.6e+83) tmp = t_2; elseif (c <= -4.5e-86) tmp = z * ((x * y) - (b * c)); elseif (c <= 4.2e-271) tmp = t_1; elseif (c <= 1.85e-227) tmp = j * ((a * c) - (y * i)); elseif (c <= 9.2e+73) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.6e+83], t$95$2, If[LessEqual[c, -4.5e-86], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e-271], t$95$1, If[LessEqual[c, 1.85e-227], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e+73], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.6 \cdot 10^{+83}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-86}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.85 \cdot 10^{-227}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -3.5999999999999997e83 or 9.199999999999999e73 < c Initial program 73.8%
+-commutative73.8%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in c around inf 72.9%
*-commutative72.9%
Simplified72.9%
if -3.5999999999999997e83 < c < -4.4999999999999998e-86Initial program 73.4%
+-commutative73.4%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around inf 65.1%
if -4.4999999999999998e-86 < c < 4.2000000000000001e-271 or 1.84999999999999989e-227 < c < 9.199999999999999e73Initial program 86.5%
*-commutative86.5%
*-commutative86.5%
fma-neg86.5%
Simplified86.5%
Taylor expanded in y around inf 83.0%
Taylor expanded in t around inf 57.4%
associate-*r*57.4%
mul-1-neg57.4%
cancel-sign-sub57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
if 4.2000000000000001e-271 < c < 1.84999999999999989e-227Initial program 80.0%
+-commutative80.0%
fma-define80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in j around inf 78.9%
*-commutative78.9%
Simplified78.9%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -2.4e+78)
t_1
(if (<= b -4.2e-115)
(* t (- (* b i) (* x a)))
(if (<= b -9.5e-302)
(* y (- (* x z) (* i j)))
(if (<= b 9.4e-144)
(* x (- (* y z) (* t a)))
(if (<= b 2.55e-82) (* j (- (* a c) (* y i))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.4e+78) {
tmp = t_1;
} else if (b <= -4.2e-115) {
tmp = t * ((b * i) - (x * a));
} else if (b <= -9.5e-302) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 9.4e-144) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 2.55e-82) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-2.4d+78)) then
tmp = t_1
else if (b <= (-4.2d-115)) then
tmp = t * ((b * i) - (x * a))
else if (b <= (-9.5d-302)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 9.4d-144) then
tmp = x * ((y * z) - (t * a))
else if (b <= 2.55d-82) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.4e+78) {
tmp = t_1;
} else if (b <= -4.2e-115) {
tmp = t * ((b * i) - (x * a));
} else if (b <= -9.5e-302) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 9.4e-144) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 2.55e-82) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2.4e+78: tmp = t_1 elif b <= -4.2e-115: tmp = t * ((b * i) - (x * a)) elif b <= -9.5e-302: tmp = y * ((x * z) - (i * j)) elif b <= 9.4e-144: tmp = x * ((y * z) - (t * a)) elif b <= 2.55e-82: tmp = j * ((a * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.4e+78) tmp = t_1; elseif (b <= -4.2e-115) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= -9.5e-302) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 9.4e-144) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 2.55e-82) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -2.4e+78) tmp = t_1; elseif (b <= -4.2e-115) tmp = t * ((b * i) - (x * a)); elseif (b <= -9.5e-302) tmp = y * ((x * z) - (i * j)); elseif (b <= 9.4e-144) tmp = x * ((y * z) - (t * a)); elseif (b <= 2.55e-82) tmp = j * ((a * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e+78], t$95$1, If[LessEqual[b, -4.2e-115], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e-302], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.4e-144], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.55e-82], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-115}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{-302}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 9.4 \cdot 10^{-144}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{-82}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.3999999999999999e78 or 2.54999999999999996e-82 < b Initial program 80.7%
+-commutative80.7%
fma-define82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in b around inf 62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if -2.3999999999999999e78 < b < -4.20000000000000003e-115Initial program 74.7%
*-commutative74.7%
*-commutative74.7%
fma-neg74.7%
Simplified74.7%
Taylor expanded in y around inf 67.0%
Taylor expanded in t around inf 67.9%
associate-*r*67.9%
mul-1-neg67.9%
cancel-sign-sub67.9%
+-commutative67.9%
mul-1-neg67.9%
unsub-neg67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
if -4.20000000000000003e-115 < b < -9.49999999999999991e-302Initial program 75.5%
+-commutative75.5%
fma-define78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in y around inf 63.9%
+-commutative63.9%
mul-1-neg63.9%
unsub-neg63.9%
Simplified63.9%
if -9.49999999999999991e-302 < b < 9.4000000000000004e-144Initial program 80.3%
+-commutative80.3%
fma-define80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in x around inf 63.2%
if 9.4000000000000004e-144 < b < 2.54999999999999996e-82Initial program 93.1%
+-commutative93.1%
fma-define93.1%
*-commutative93.1%
*-commutative93.1%
Simplified93.1%
Taylor expanded in j around inf 73.9%
*-commutative73.9%
Simplified73.9%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.5e+78)
(+ (* y (* x z)) t_1)
(if (<= b -4.1e-107)
(* t (- (* b i) (* x a)))
(if (<= b 7.5e-12)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(- t_1 (* y (* 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.5e+78) {
tmp = (y * (x * z)) + t_1;
} else if (b <= -4.1e-107) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 7.5e-12) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 - (y * (i * 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 = b * ((t * i) - (z * c))
if (b <= (-3.5d+78)) then
tmp = (y * (x * z)) + t_1
else if (b <= (-4.1d-107)) then
tmp = t * ((b * i) - (x * a))
else if (b <= 7.5d-12) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else
tmp = t_1 - (y * (i * 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.5e+78) {
tmp = (y * (x * z)) + t_1;
} else if (b <= -4.1e-107) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 7.5e-12) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 - (y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.5e+78: tmp = (y * (x * z)) + t_1 elif b <= -4.1e-107: tmp = t * ((b * i) - (x * a)) elif b <= 7.5e-12: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) else: tmp = t_1 - (y * (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.5e+78) tmp = Float64(Float64(y * Float64(x * z)) + t_1); elseif (b <= -4.1e-107) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 7.5e-12) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(t_1 - Float64(y * Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.5e+78) tmp = (y * (x * z)) + t_1; elseif (b <= -4.1e-107) tmp = t * ((b * i) - (x * a)); elseif (b <= 7.5e-12) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); else tmp = t_1 - (y * (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+78], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -4.1e-107], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e-12], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+78}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + t\_1\\
\mathbf{elif}\;b \leq -4.1 \cdot 10^{-107}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-12}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if b < -3.5000000000000001e78Initial program 86.6%
+-commutative86.6%
fma-define88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in a around 0 80.3%
+-commutative80.3%
*-commutative80.3%
associate-*r*80.3%
associate-*r*78.1%
associate-*r*78.1%
distribute-rgt-in78.1%
mul-1-neg78.1%
unsub-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in x around inf 78.6%
if -3.5000000000000001e78 < b < -4.0999999999999999e-107Initial program 73.1%
*-commutative73.1%
*-commutative73.1%
fma-neg73.1%
Simplified73.1%
Taylor expanded in y around inf 65.0%
Taylor expanded in t around inf 70.0%
associate-*r*70.0%
mul-1-neg70.0%
cancel-sign-sub70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
if -4.0999999999999999e-107 < b < 7.5e-12Initial program 81.7%
+-commutative81.7%
fma-define82.7%
*-commutative82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in b around 0 73.5%
if 7.5e-12 < b Initial program 75.3%
+-commutative75.3%
fma-define76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in a around 0 65.3%
+-commutative65.3%
*-commutative65.3%
associate-*r*63.9%
associate-*r*62.2%
associate-*r*62.2%
distribute-rgt-in62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in x around 0 66.1%
associate-*r*66.1%
neg-mul-166.1%
*-commutative66.1%
Simplified66.1%
Final simplification72.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -5.9e-167)
t_1
(if (<= a 1.5e-297)
(* t (* b i))
(if (<= a 2.8e-209)
(* (* i j) (- y))
(if (<= a 4.6e-95) (* b (* t i)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.9e-167) {
tmp = t_1;
} else if (a <= 1.5e-297) {
tmp = t * (b * i);
} else if (a <= 2.8e-209) {
tmp = (i * j) * -y;
} else if (a <= 4.6e-95) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-5.9d-167)) then
tmp = t_1
else if (a <= 1.5d-297) then
tmp = t * (b * i)
else if (a <= 2.8d-209) then
tmp = (i * j) * -y
else if (a <= 4.6d-95) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.9e-167) {
tmp = t_1;
} else if (a <= 1.5e-297) {
tmp = t * (b * i);
} else if (a <= 2.8e-209) {
tmp = (i * j) * -y;
} else if (a <= 4.6e-95) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -5.9e-167: tmp = t_1 elif a <= 1.5e-297: tmp = t * (b * i) elif a <= 2.8e-209: tmp = (i * j) * -y elif a <= 4.6e-95: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -5.9e-167) tmp = t_1; elseif (a <= 1.5e-297) tmp = Float64(t * Float64(b * i)); elseif (a <= 2.8e-209) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (a <= 4.6e-95) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -5.9e-167) tmp = t_1; elseif (a <= 1.5e-297) tmp = t * (b * i); elseif (a <= 2.8e-209) tmp = (i * j) * -y; elseif (a <= 4.6e-95) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.9e-167], t$95$1, If[LessEqual[a, 1.5e-297], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-209], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[a, 4.6e-95], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -5.9 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-297}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-209}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-95}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.90000000000000022e-167 or 4.59999999999999998e-95 < a Initial program 76.2%
*-commutative76.2%
*-commutative76.2%
fma-neg76.8%
Simplified76.8%
Taylor expanded in y around inf 68.6%
Taylor expanded in a around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
*-commutative55.6%
Simplified55.6%
if -5.90000000000000022e-167 < a < 1.49999999999999997e-297Initial program 85.7%
+-commutative85.7%
fma-define85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in t around inf 39.8%
distribute-lft-out--39.8%
*-commutative39.8%
Simplified39.8%
Taylor expanded in x around 0 37.6%
*-commutative37.6%
Simplified37.6%
if 1.49999999999999997e-297 < a < 2.80000000000000012e-209Initial program 81.0%
+-commutative81.0%
fma-define84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in j around inf 75.2%
Taylor expanded in y around inf 51.5%
Taylor expanded in j around inf 37.5%
mul-1-neg37.5%
distribute-lft-neg-out37.5%
*-commutative37.5%
*-commutative37.5%
associate-*l*38.2%
distribute-rgt-neg-out38.2%
distribute-lft-neg-in38.2%
*-commutative38.2%
Simplified38.2%
if 2.80000000000000012e-209 < a < 4.59999999999999998e-95Initial program 86.4%
+-commutative86.4%
fma-define86.4%
*-commutative86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in t around inf 40.2%
distribute-lft-out--40.2%
*-commutative40.2%
Simplified40.2%
Taylor expanded in x around 0 36.8%
Final simplification48.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (or (<= j -6e+92) (not (<= j 4.5e+161)))
(+ t_1 (* j (- (* a c) (* y i))))
(+ t_1 (* b (- (* t i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((j <= -6e+92) || !(j <= 4.5e+161)) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if ((j <= (-6d+92)) .or. (.not. (j <= 4.5d+161))) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else
tmp = t_1 + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((j <= -6e+92) || !(j <= 4.5e+161)) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if (j <= -6e+92) or not (j <= 4.5e+161): tmp = t_1 + (j * ((a * c) - (y * i))) else: tmp = t_1 + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if ((j <= -6e+92) || !(j <= 4.5e+161)) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if ((j <= -6e+92) || ~((j <= 4.5e+161))) tmp = t_1 + (j * ((a * c) - (y * i))); else tmp = t_1 + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[j, -6e+92], N[Not[LessEqual[j, 4.5e+161]], $MachinePrecision]], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -6 \cdot 10^{+92} \lor \neg \left(j \leq 4.5 \cdot 10^{+161}\right):\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -6.00000000000000026e92 or 4.49999999999999992e161 < j Initial program 73.2%
+-commutative73.2%
fma-define79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in b around 0 68.7%
if -6.00000000000000026e92 < j < 4.49999999999999992e161Initial program 82.0%
+-commutative82.0%
fma-define82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in j around 0 75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Final simplification73.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -3.3e+152)
t_1
(if (<= i 1.8e-80)
(* t (* x (- a)))
(if (<= i 3.8e-18) (* x (* y 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 = t * (b * i);
double tmp;
if (i <= -3.3e+152) {
tmp = t_1;
} else if (i <= 1.8e-80) {
tmp = t * (x * -a);
} else if (i <= 3.8e-18) {
tmp = x * (y * 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 = t * (b * i)
if (i <= (-3.3d+152)) then
tmp = t_1
else if (i <= 1.8d-80) then
tmp = t * (x * -a)
else if (i <= 3.8d-18) then
tmp = x * (y * 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 = t * (b * i);
double tmp;
if (i <= -3.3e+152) {
tmp = t_1;
} else if (i <= 1.8e-80) {
tmp = t * (x * -a);
} else if (i <= 3.8e-18) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -3.3e+152: tmp = t_1 elif i <= 1.8e-80: tmp = t * (x * -a) elif i <= 3.8e-18: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -3.3e+152) tmp = t_1; elseif (i <= 1.8e-80) tmp = Float64(t * Float64(x * Float64(-a))); elseif (i <= 3.8e-18) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (b * i); tmp = 0.0; if (i <= -3.3e+152) tmp = t_1; elseif (i <= 1.8e-80) tmp = t * (x * -a); elseif (i <= 3.8e-18) tmp = x * (y * 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[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.3e+152], t$95$1, If[LessEqual[i, 1.8e-80], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e-18], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -3.3 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{-80}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{-18}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.3000000000000001e152 or 3.7999999999999998e-18 < i Initial program 70.2%
+-commutative70.2%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in t around inf 47.9%
distribute-lft-out--47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in x around 0 41.1%
*-commutative41.1%
Simplified41.1%
if -3.3000000000000001e152 < i < 1.8e-80Initial program 84.0%
+-commutative84.0%
fma-define86.2%
*-commutative86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in t around inf 38.2%
distribute-lft-out--38.2%
*-commutative38.2%
Simplified38.2%
Taylor expanded in x around inf 29.4%
associate-*r*29.4%
mul-1-neg29.4%
Simplified29.4%
if 1.8e-80 < i < 3.7999999999999998e-18Initial program 95.0%
+-commutative95.0%
fma-define95.0%
*-commutative95.0%
*-commutative95.0%
Simplified95.0%
Taylor expanded in y around inf 43.5%
+-commutative43.5%
mul-1-neg43.5%
unsub-neg43.5%
Simplified43.5%
Taylor expanded in x around inf 42.8%
Final simplification35.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.1e+39) (not (<= a 9.5e-80))) (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.1e+39) || !(a <= 9.5e-80)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.1d+39)) .or. (.not. (a <= 9.5d-80))) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.1e+39) || !(a <= 9.5e-80)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.1e+39) or not (a <= 9.5e-80): tmp = a * ((c * j) - (x * t)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.1e+39) || !(a <= 9.5e-80)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.1e+39) || ~((a <= 9.5e-80))) tmp = a * ((c * j) - (x * t)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.1e+39], N[Not[LessEqual[a, 9.5e-80]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{+39} \lor \neg \left(a \leq 9.5 \cdot 10^{-80}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -1.1000000000000001e39 or 9.5000000000000003e-80 < a Initial program 77.3%
*-commutative77.3%
*-commutative77.3%
fma-neg78.1%
Simplified78.1%
Taylor expanded in y around inf 69.5%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
if -1.1000000000000001e39 < a < 9.5000000000000003e-80Initial program 81.4%
+-commutative81.4%
fma-define83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in b around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
Final simplification56.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -1.2e-8) (not (<= x 0.062))) (* y (* x z)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -1.2e-8) || !(x <= 0.062)) {
tmp = y * (x * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-1.2d-8)) .or. (.not. (x <= 0.062d0))) then
tmp = y * (x * z)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -1.2e-8) || !(x <= 0.062)) {
tmp = y * (x * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -1.2e-8) or not (x <= 0.062): tmp = y * (x * z) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -1.2e-8) || !(x <= 0.062)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -1.2e-8) || ~((x <= 0.062))) tmp = y * (x * z); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -1.2e-8], N[Not[LessEqual[x, 0.062]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.2 \cdot 10^{-8} \lor \neg \left(x \leq 0.062\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if x < -1.19999999999999999e-8 or 0.062 < x Initial program 77.5%
+-commutative77.5%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in y around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
Simplified43.0%
Taylor expanded in x around inf 35.5%
associate-*r*38.4%
*-commutative38.4%
associate-*r*37.5%
Simplified37.5%
if -1.19999999999999999e-8 < x < 0.062Initial program 81.1%
+-commutative81.1%
fma-define81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in t around inf 39.3%
distribute-lft-out--39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in x around 0 29.8%
*-commutative29.8%
Simplified29.8%
Final simplification33.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -4e-5) (not (<= x 0.039))) (* x (* y z)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -4e-5) || !(x <= 0.039)) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-4d-5)) .or. (.not. (x <= 0.039d0))) then
tmp = x * (y * z)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -4e-5) || !(x <= 0.039)) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -4e-5) or not (x <= 0.039): tmp = x * (y * z) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -4e-5) || !(x <= 0.039)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -4e-5) || ~((x <= 0.039))) tmp = x * (y * z); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -4e-5], N[Not[LessEqual[x, 0.039]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{-5} \lor \neg \left(x \leq 0.039\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if x < -4.00000000000000033e-5 or 0.0389999999999999999 < x Initial program 77.5%
+-commutative77.5%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in y around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
Simplified43.0%
Taylor expanded in x around inf 35.5%
if -4.00000000000000033e-5 < x < 0.0389999999999999999Initial program 81.1%
+-commutative81.1%
fma-define81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in t around inf 39.3%
distribute-lft-out--39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in x around 0 29.8%
*-commutative29.8%
Simplified29.8%
Final simplification32.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x 2.6e+72) (* b (* t i)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 2.6e+72) {
tmp = b * (t * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= 2.6d+72) then
tmp = b * (t * i)
else
tmp = a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 2.6e+72) {
tmp = b * (t * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= 2.6e+72: tmp = b * (t * i) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= 2.6e+72) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= 2.6e+72) tmp = b * (t * i); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 2.6e+72], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.6 \cdot 10^{+72}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if x < 2.59999999999999981e72Initial program 82.0%
+-commutative82.0%
fma-define83.9%
*-commutative83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in t around inf 41.8%
distribute-lft-out--41.8%
*-commutative41.8%
Simplified41.8%
Taylor expanded in x around 0 23.4%
if 2.59999999999999981e72 < x Initial program 67.6%
+-commutative67.6%
fma-define69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in t around inf 35.3%
distribute-lft-out--35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in x around inf 32.1%
associate-*r*32.1%
mul-1-neg32.1%
*-commutative32.1%
Simplified32.1%
add-sqr-sqrt17.7%
sqrt-unprod24.6%
sqr-neg24.6%
sqrt-unprod7.4%
add-sqr-sqrt20.8%
pow120.8%
Applied egg-rr20.8%
unpow120.8%
Simplified20.8%
Final simplification23.0%
(FPCore (x y z t a b c i j) :precision binary64 (* t (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return t * (b * 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 = t * (b * 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 t * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return t * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(t * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = t * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t \cdot \left(b \cdot i\right)
\end{array}
Initial program 79.4%
+-commutative79.4%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in t around inf 40.6%
distribute-lft-out--40.6%
*-commutative40.6%
Simplified40.6%
Taylor expanded in x around 0 22.4%
*-commutative22.4%
Simplified22.4%
Final simplification22.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* x t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (x * t);
}
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 * (x * t)
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 * (x * t);
}
def code(x, y, z, t, a, b, c, i, j): return a * (x * t)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(x * t)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (x * t); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(x \cdot t\right)
\end{array}
Initial program 79.4%
+-commutative79.4%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in t around inf 40.6%
distribute-lft-out--40.6%
*-commutative40.6%
Simplified40.6%
Taylor expanded in x around inf 21.7%
associate-*r*21.7%
mul-1-neg21.7%
*-commutative21.7%
Simplified21.7%
add-sqr-sqrt11.7%
sqrt-unprod14.5%
sqr-neg14.5%
sqrt-unprod2.9%
add-sqr-sqrt6.9%
pow16.9%
Applied egg-rr6.9%
unpow16.9%
Simplified6.9%
(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 2024111
(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)))))