
(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 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))
(t_2 (- (* a c) (* y i)))
(t_3 (+ t_1 (* j t_2))))
(if (<= t_3 (- INFINITY))
(-
(- (* t (- (* b i) (* x a))) (- (* j (- (* y i) (* a c))) (* y (* x z))))
(* c (* z b)))
(if (<= t_3 INFINITY) (fma j t_2 t_1) (* a (- (* c j) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double t_2 = (a * c) - (y * i);
double t_3 = t_1 + (j * t_2);
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = ((t * ((b * i) - (x * a))) - ((j * ((y * i) - (a * c))) - (y * (x * z)))) - (c * (z * b));
} else if (t_3 <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(Float64(a * c) - Float64(y * i)) t_3 = Float64(t_1 + Float64(j * t_2)) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) - Float64(Float64(j * Float64(Float64(y * i) - Float64(a * c))) - Float64(y * Float64(x * z)))) - Float64(c * Float64(z * b))); elseif (t_3 <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot c - y \cdot i\\
t_3 := t_1 + j \cdot t_2\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;\left(t \cdot \left(b \cdot i - x \cdot a\right) - \left(j \cdot \left(y \cdot i - a \cdot c\right) - y \cdot \left(x \cdot z\right)\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, t_1\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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 77.8%
+-commutative77.8%
fma-def77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in t around -inf 84.2%
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.4%
+-commutative93.4%
fma-def93.4%
*-commutative93.4%
*-commutative93.4%
Simplified93.4%
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%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Final simplification85.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 (- INFINITY))
(-
(- (* t (- (* b i) (* x a))) (- (* j (- (* y i) (* a c))) (* y (* x z))))
(* c (* z b)))
(if (<= t_1 INFINITY) t_1 (* a (- (* c j) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = ((t * ((b * i) - (x * a))) - ((j * ((y * i) - (a * c))) - (y * (x * z)))) - (c * (z * b));
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = ((t * ((b * i) - (x * a))) - ((j * ((y * i) - (a * c))) - (y * (x * z)))) - (c * (z * b));
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= -math.inf: tmp = ((t * ((b * i) - (x * a))) - ((j * ((y * i) - (a * c))) - (y * (x * z)))) - (c * (z * b)) elif t_1 <= math.inf: tmp = t_1 else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) - Float64(Float64(j * Float64(Float64(y * i) - Float64(a * c))) - Float64(y * Float64(x * z)))) - Float64(c * Float64(z * b))); elseif (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= -Inf) tmp = ((t * ((b * i) - (x * a))) - ((j * ((y * i) - (a * c))) - (y * (x * z)))) - (c * (z * b)); elseif (t_1 <= Inf) tmp = t_1; else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(t \cdot \left(b \cdot i - x \cdot a\right) - \left(j \cdot \left(y \cdot i - a \cdot c\right) - y \cdot \left(x \cdot z\right)\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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 77.8%
+-commutative77.8%
fma-def77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in t around -inf 84.2%
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.4%
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%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Final simplification85.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* c j) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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 88.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%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Final simplification83.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z b)))
(t_2 (- (+ (* y (* x z)) (* t (- (* b i) (* x a)))) t_1))
(t_3 (* j (- (* a c) (* y i))))
(t_4 (+ (* x (- (* y z) (* t a))) t_3)))
(if (<= j -4.5e+195)
(+ t_3 (* b (- (* t i) (* z c))))
(if (<= j -6800000.0)
t_4
(if (<= j 6.8e-101)
t_2
(if (<= j 3.8e-7)
t_4
(if (<= j 8e+72)
t_2
(if (<= j 5.5e+197)
(- t_3 t_1)
(if (<= j 1.7e+275) t_4 (* y (- (* x z) (* 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 = c * (z * b);
double t_2 = ((y * (x * z)) + (t * ((b * i) - (x * a)))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double t_4 = (x * ((y * z) - (t * a))) + t_3;
double tmp;
if (j <= -4.5e+195) {
tmp = t_3 + (b * ((t * i) - (z * c)));
} else if (j <= -6800000.0) {
tmp = t_4;
} else if (j <= 6.8e-101) {
tmp = t_2;
} else if (j <= 3.8e-7) {
tmp = t_4;
} else if (j <= 8e+72) {
tmp = t_2;
} else if (j <= 5.5e+197) {
tmp = t_3 - t_1;
} else if (j <= 1.7e+275) {
tmp = t_4;
} else {
tmp = y * ((x * z) - (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) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = c * (z * b)
t_2 = ((y * (x * z)) + (t * ((b * i) - (x * a)))) - t_1
t_3 = j * ((a * c) - (y * i))
t_4 = (x * ((y * z) - (t * a))) + t_3
if (j <= (-4.5d+195)) then
tmp = t_3 + (b * ((t * i) - (z * c)))
else if (j <= (-6800000.0d0)) then
tmp = t_4
else if (j <= 6.8d-101) then
tmp = t_2
else if (j <= 3.8d-7) then
tmp = t_4
else if (j <= 8d+72) then
tmp = t_2
else if (j <= 5.5d+197) then
tmp = t_3 - t_1
else if (j <= 1.7d+275) then
tmp = t_4
else
tmp = y * ((x * z) - (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 = c * (z * b);
double t_2 = ((y * (x * z)) + (t * ((b * i) - (x * a)))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double t_4 = (x * ((y * z) - (t * a))) + t_3;
double tmp;
if (j <= -4.5e+195) {
tmp = t_3 + (b * ((t * i) - (z * c)));
} else if (j <= -6800000.0) {
tmp = t_4;
} else if (j <= 6.8e-101) {
tmp = t_2;
} else if (j <= 3.8e-7) {
tmp = t_4;
} else if (j <= 8e+72) {
tmp = t_2;
} else if (j <= 5.5e+197) {
tmp = t_3 - t_1;
} else if (j <= 1.7e+275) {
tmp = t_4;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * b) t_2 = ((y * (x * z)) + (t * ((b * i) - (x * a)))) - t_1 t_3 = j * ((a * c) - (y * i)) t_4 = (x * ((y * z) - (t * a))) + t_3 tmp = 0 if j <= -4.5e+195: tmp = t_3 + (b * ((t * i) - (z * c))) elif j <= -6800000.0: tmp = t_4 elif j <= 6.8e-101: tmp = t_2 elif j <= 3.8e-7: tmp = t_4 elif j <= 8e+72: tmp = t_2 elif j <= 5.5e+197: tmp = t_3 - t_1 elif j <= 1.7e+275: tmp = t_4 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * b)) t_2 = Float64(Float64(Float64(y * Float64(x * z)) + Float64(t * Float64(Float64(b * i) - Float64(x * a)))) - t_1) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_4 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_3) tmp = 0.0 if (j <= -4.5e+195) tmp = Float64(t_3 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= -6800000.0) tmp = t_4; elseif (j <= 6.8e-101) tmp = t_2; elseif (j <= 3.8e-7) tmp = t_4; elseif (j <= 8e+72) tmp = t_2; elseif (j <= 5.5e+197) tmp = Float64(t_3 - t_1); elseif (j <= 1.7e+275) tmp = t_4; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * b); t_2 = ((y * (x * z)) + (t * ((b * i) - (x * a)))) - t_1; t_3 = j * ((a * c) - (y * i)); t_4 = (x * ((y * z) - (t * a))) + t_3; tmp = 0.0; if (j <= -4.5e+195) tmp = t_3 + (b * ((t * i) - (z * c))); elseif (j <= -6800000.0) tmp = t_4; elseif (j <= 6.8e-101) tmp = t_2; elseif (j <= 3.8e-7) tmp = t_4; elseif (j <= 8e+72) tmp = t_2; elseif (j <= 5.5e+197) tmp = t_3 - t_1; elseif (j <= 1.7e+275) tmp = t_4; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]}, If[LessEqual[j, -4.5e+195], N[(t$95$3 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6800000.0], t$95$4, If[LessEqual[j, 6.8e-101], t$95$2, If[LessEqual[j, 3.8e-7], t$95$4, If[LessEqual[j, 8e+72], t$95$2, If[LessEqual[j, 5.5e+197], N[(t$95$3 - t$95$1), $MachinePrecision], If[LessEqual[j, 1.7e+275], t$95$4, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot b\right)\\
t_2 := \left(y \cdot \left(x \cdot z\right) + t \cdot \left(b \cdot i - x \cdot a\right)\right) - t_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right) + t_3\\
\mathbf{if}\;j \leq -4.5 \cdot 10^{+195}:\\
\;\;\;\;t_3 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq -6800000:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{-101}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{-7}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq 8 \cdot 10^{+72}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{+197}:\\
\;\;\;\;t_3 - t_1\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{+275}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if j < -4.50000000000000009e195Initial program 72.4%
+-commutative72.4%
fma-def78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in x around 0 78.3%
if -4.50000000000000009e195 < j < -6.8e6 or 6.79999999999999978e-101 < j < 3.80000000000000015e-7 or 5.4999999999999999e197 < j < 1.7e275Initial program 79.9%
+-commutative79.9%
fma-def79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in b around 0 80.1%
if -6.8e6 < j < 6.79999999999999978e-101 or 3.80000000000000015e-7 < j < 7.99999999999999955e72Initial program 70.8%
+-commutative70.8%
fma-def71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in t around -inf 77.6%
Taylor expanded in j around 0 77.0%
if 7.99999999999999955e72 < j < 5.4999999999999999e197Initial program 62.5%
+-commutative62.5%
fma-def62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in t around -inf 81.0%
Taylor expanded in j around inf 76.9%
if 1.7e275 < j Initial program 50.7%
associate-+l-50.7%
*-commutative50.7%
sub-neg50.7%
sub-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in y around -inf 75.1%
mul-1-neg75.1%
*-commutative75.1%
distribute-rgt-neg-in75.1%
mul-1-neg75.1%
unsub-neg75.1%
Simplified75.1%
Final simplification78.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (or (<= b -1.4e-93) (not (<= b 1.15e+23)))
(+ t_1 (- (* b (- (* t i) (* z c))) (* i (* y j))))
(+ t_1 (* j (- (* a c) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((b <= -1.4e-93) || !(b <= 1.15e+23)) {
tmp = t_1 + ((b * ((t * i) - (z * c))) - (i * (y * j)));
} else {
tmp = t_1 + (j * ((a * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if ((b <= (-1.4d-93)) .or. (.not. (b <= 1.15d+23))) then
tmp = t_1 + ((b * ((t * i) - (z * c))) - (i * (y * j)))
else
tmp = t_1 + (j * ((a * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((b <= -1.4e-93) || !(b <= 1.15e+23)) {
tmp = t_1 + ((b * ((t * i) - (z * c))) - (i * (y * j)));
} else {
tmp = t_1 + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if (b <= -1.4e-93) or not (b <= 1.15e+23): tmp = t_1 + ((b * ((t * i) - (z * c))) - (i * (y * j))) else: tmp = t_1 + (j * ((a * c) - (y * i))) 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 ((b <= -1.4e-93) || !(b <= 1.15e+23)) tmp = Float64(t_1 + Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(i * Float64(y * j)))); else tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if ((b <= -1.4e-93) || ~((b <= 1.15e+23))) tmp = t_1 + ((b * ((t * i) - (z * c))) - (i * (y * j))); else tmp = t_1 + (j * ((a * c) - (y * i))); 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[b, -1.4e-93], N[Not[LessEqual[b, 1.15e+23]], $MachinePrecision]], N[(t$95$1 + N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{-93} \lor \neg \left(b \leq 1.15 \cdot 10^{+23}\right):\\
\;\;\;\;t_1 + \left(b \cdot \left(t \cdot i - z \cdot c\right) - i \cdot \left(y \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -1.39999999999999999e-93 or 1.15e23 < b Initial program 77.3%
associate-+l-77.3%
*-commutative77.3%
sub-neg77.3%
sub-neg77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in a around 0 80.1%
mul-1-neg80.1%
Simplified80.1%
if -1.39999999999999999e-93 < b < 1.15e23Initial program 66.6%
+-commutative66.6%
fma-def67.4%
*-commutative67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in b around 0 71.4%
Final simplification76.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* c (* a j))))
(t_2 (* b (- (* t i) (* z c)))))
(if (<= x -1.7e+53)
t_1
(if (<= x -8.6e+23)
t_2
(if (<= x -17200000000000.0)
(* a (- (* c j) (* x t)))
(if (<= x -7.8e-150)
(- (* y (* i (- j))) (* c (* z b)))
(if (<= x 5.8e-285)
(* j (- (* a c) (* y i)))
(if (<= x 7e-209) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (a * j));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (x <= -1.7e+53) {
tmp = t_1;
} else if (x <= -8.6e+23) {
tmp = t_2;
} else if (x <= -17200000000000.0) {
tmp = a * ((c * j) - (x * t));
} else if (x <= -7.8e-150) {
tmp = (y * (i * -j)) - (c * (z * b));
} else if (x <= 5.8e-285) {
tmp = j * ((a * c) - (y * i));
} else if (x <= 7e-209) {
tmp = t_2;
} 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) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (c * (a * j))
t_2 = b * ((t * i) - (z * c))
if (x <= (-1.7d+53)) then
tmp = t_1
else if (x <= (-8.6d+23)) then
tmp = t_2
else if (x <= (-17200000000000.0d0)) then
tmp = a * ((c * j) - (x * t))
else if (x <= (-7.8d-150)) then
tmp = (y * (i * -j)) - (c * (z * b))
else if (x <= 5.8d-285) then
tmp = j * ((a * c) - (y * i))
else if (x <= 7d-209) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (a * j));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (x <= -1.7e+53) {
tmp = t_1;
} else if (x <= -8.6e+23) {
tmp = t_2;
} else if (x <= -17200000000000.0) {
tmp = a * ((c * j) - (x * t));
} else if (x <= -7.8e-150) {
tmp = (y * (i * -j)) - (c * (z * b));
} else if (x <= 5.8e-285) {
tmp = j * ((a * c) - (y * i));
} else if (x <= 7e-209) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (c * (a * j)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if x <= -1.7e+53: tmp = t_1 elif x <= -8.6e+23: tmp = t_2 elif x <= -17200000000000.0: tmp = a * ((c * j) - (x * t)) elif x <= -7.8e-150: tmp = (y * (i * -j)) - (c * (z * b)) elif x <= 5.8e-285: tmp = j * ((a * c) - (y * i)) elif x <= 7e-209: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(a * j))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (x <= -1.7e+53) tmp = t_1; elseif (x <= -8.6e+23) tmp = t_2; elseif (x <= -17200000000000.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (x <= -7.8e-150) tmp = Float64(Float64(y * Float64(i * Float64(-j))) - Float64(c * Float64(z * b))); elseif (x <= 5.8e-285) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (x <= 7e-209) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (c * (a * j)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (x <= -1.7e+53) tmp = t_1; elseif (x <= -8.6e+23) tmp = t_2; elseif (x <= -17200000000000.0) tmp = a * ((c * j) - (x * t)); elseif (x <= -7.8e-150) tmp = (y * (i * -j)) - (c * (z * b)); elseif (x <= 5.8e-285) tmp = j * ((a * c) - (y * i)); elseif (x <= 7e-209) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.7e+53], t$95$1, If[LessEqual[x, -8.6e+23], t$95$2, If[LessEqual[x, -17200000000000.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.8e-150], N[(N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e-285], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-209], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(a \cdot j\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -8.6 \cdot 10^{+23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -17200000000000:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;x \leq -7.8 \cdot 10^{-150}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-285}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-209}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.69999999999999999e53 or 7.00000000000000004e-209 < x Initial program 73.9%
+-commutative73.9%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in b around 0 67.9%
Taylor expanded in i around 0 64.2%
if -1.69999999999999999e53 < x < -8.5999999999999997e23 or 5.7999999999999999e-285 < x < 7.00000000000000004e-209Initial program 78.1%
associate-+l-78.1%
*-commutative78.1%
sub-neg78.1%
sub-neg78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in b around inf 81.7%
if -8.5999999999999997e23 < x < -1.72e13Initial program 66.1%
associate-+l-66.1%
*-commutative66.1%
sub-neg66.1%
sub-neg66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in a around inf 99.5%
+-commutative99.5%
mul-1-neg99.5%
unsub-neg99.5%
Simplified99.5%
if -1.72e13 < x < -7.8000000000000004e-150Initial program 66.0%
associate-+l-66.0%
*-commutative66.0%
sub-neg66.0%
sub-neg66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in a around 0 63.2%
mul-1-neg63.2%
Simplified63.2%
Taylor expanded in t around 0 59.6%
+-commutative59.6%
associate--r+59.6%
unsub-neg59.6%
+-commutative59.6%
distribute-lft-neg-in59.6%
associate-*r*56.9%
distribute-lft-neg-out56.9%
mul-1-neg56.9%
*-commutative56.9%
associate-*r*56.9%
distribute-rgt-in62.8%
+-commutative62.8%
mul-1-neg62.8%
sub-neg62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in x around 0 62.9%
associate-*r*62.9%
neg-mul-162.9%
*-commutative62.9%
Simplified62.9%
if -7.8000000000000004e-150 < x < 5.7999999999999999e-285Initial program 67.6%
+-commutative67.6%
fma-def70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in i around 0 61.7%
Taylor expanded in j around inf 60.2%
Final simplification65.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (- t_1 (* c (* z b))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -4.6e+191)
t_3
(if (<= b -1.85e+130)
t_2
(if (<= b -1.3e+54)
(- (* z (- (* x y) (* b c))) (* i (* y j)))
(if (<= b 1.6e+28)
(+ (* x (- (* y z) (* t a))) t_1)
(if (<= b 1.5e+52)
(* t (- (* b i) (* x a)))
(if (<= b 1.5e+138) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t_1 - (c * (z * b));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.6e+191) {
tmp = t_3;
} else if (b <= -1.85e+130) {
tmp = t_2;
} else if (b <= -1.3e+54) {
tmp = (z * ((x * y) - (b * c))) - (i * (y * j));
} else if (b <= 1.6e+28) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (b <= 1.5e+52) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 1.5e+138) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t_1 - (c * (z * b))
t_3 = b * ((t * i) - (z * c))
if (b <= (-4.6d+191)) then
tmp = t_3
else if (b <= (-1.85d+130)) then
tmp = t_2
else if (b <= (-1.3d+54)) then
tmp = (z * ((x * y) - (b * c))) - (i * (y * j))
else if (b <= 1.6d+28) then
tmp = (x * ((y * z) - (t * a))) + t_1
else if (b <= 1.5d+52) then
tmp = t * ((b * i) - (x * a))
else if (b <= 1.5d+138) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t_1 - (c * (z * b));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.6e+191) {
tmp = t_3;
} else if (b <= -1.85e+130) {
tmp = t_2;
} else if (b <= -1.3e+54) {
tmp = (z * ((x * y) - (b * c))) - (i * (y * j));
} else if (b <= 1.6e+28) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (b <= 1.5e+52) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 1.5e+138) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t_1 - (c * (z * b)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4.6e+191: tmp = t_3 elif b <= -1.85e+130: tmp = t_2 elif b <= -1.3e+54: tmp = (z * ((x * y) - (b * c))) - (i * (y * j)) elif b <= 1.6e+28: tmp = (x * ((y * z) - (t * a))) + t_1 elif b <= 1.5e+52: tmp = t * ((b * i) - (x * a)) elif b <= 1.5e+138: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t_1 - Float64(c * Float64(z * b))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.6e+191) tmp = t_3; elseif (b <= -1.85e+130) tmp = t_2; elseif (b <= -1.3e+54) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(i * Float64(y * j))); elseif (b <= 1.6e+28) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); elseif (b <= 1.5e+52) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 1.5e+138) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t_1 - (c * (z * b)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4.6e+191) tmp = t_3; elseif (b <= -1.85e+130) tmp = t_2; elseif (b <= -1.3e+54) tmp = (z * ((x * y) - (b * c))) - (i * (y * j)); elseif (b <= 1.6e+28) tmp = (x * ((y * z) - (t * a))) + t_1; elseif (b <= 1.5e+52) tmp = t * ((b * i) - (x * a)); elseif (b <= 1.5e+138) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.6e+191], t$95$3, If[LessEqual[b, -1.85e+130], t$95$2, If[LessEqual[b, -1.3e+54], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e+28], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 1.5e+52], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+138], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t_1 - c \cdot \left(z \cdot b\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.6 \cdot 10^{+191}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.85 \cdot 10^{+130}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{+54}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{+28}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+52}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+138}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -4.5999999999999999e191 or 1.50000000000000005e138 < b Initial program 68.5%
associate-+l-68.5%
*-commutative68.5%
sub-neg68.5%
sub-neg68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in b around inf 76.2%
if -4.5999999999999999e191 < b < -1.8500000000000001e130 or 1.5e52 < b < 1.50000000000000005e138Initial program 81.1%
+-commutative81.1%
fma-def81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in t around -inf 84.6%
Taylor expanded in j around inf 81.5%
if -1.8500000000000001e130 < b < -1.30000000000000003e54Initial program 73.0%
associate-+l-73.0%
*-commutative73.0%
sub-neg73.0%
sub-neg73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in a around 0 86.4%
mul-1-neg86.4%
Simplified86.4%
Taylor expanded in t around 0 41.7%
+-commutative41.7%
associate--r+41.7%
unsub-neg41.7%
+-commutative41.7%
distribute-lft-neg-in41.7%
associate-*r*67.2%
distribute-lft-neg-out67.2%
mul-1-neg67.2%
*-commutative67.2%
associate-*r*67.7%
distribute-rgt-in67.7%
+-commutative67.7%
mul-1-neg67.7%
sub-neg67.7%
*-commutative67.7%
Simplified67.7%
if -1.30000000000000003e54 < b < 1.6e28Initial program 72.2%
+-commutative72.2%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in b around 0 71.2%
if 1.6e28 < b < 1.5e52Initial program 75.5%
associate-+l-75.5%
*-commutative75.5%
sub-neg75.5%
sub-neg75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in y around 0 87.3%
Simplified87.3%
Taylor expanded in t around inf 75.8%
mul-1-neg75.8%
unsub-neg75.8%
*-commutative75.8%
Simplified75.8%
Final simplification73.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.7e+191)
t_2
(if (<= b -6.4e+177)
(- t_1 (* c (* z b)))
(if (or (<= b -2.5e+35) (not (<= b 2.9e+27)))
(+ t_1 t_2)
(+ (* x (- (* y z) (* t a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.7e+191) {
tmp = t_2;
} else if (b <= -6.4e+177) {
tmp = t_1 - (c * (z * b));
} else if ((b <= -2.5e+35) || !(b <= 2.9e+27)) {
tmp = t_1 + t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.7d+191)) then
tmp = t_2
else if (b <= (-6.4d+177)) then
tmp = t_1 - (c * (z * b))
else if ((b <= (-2.5d+35)) .or. (.not. (b <= 2.9d+27))) then
tmp = t_1 + t_2
else
tmp = (x * ((y * z) - (t * a))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.7e+191) {
tmp = t_2;
} else if (b <= -6.4e+177) {
tmp = t_1 - (c * (z * b));
} else if ((b <= -2.5e+35) || !(b <= 2.9e+27)) {
tmp = t_1 + t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.7e+191: tmp = t_2 elif b <= -6.4e+177: tmp = t_1 - (c * (z * b)) elif (b <= -2.5e+35) or not (b <= 2.9e+27): tmp = t_1 + t_2 else: tmp = (x * ((y * z) - (t * a))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.7e+191) tmp = t_2; elseif (b <= -6.4e+177) tmp = Float64(t_1 - Float64(c * Float64(z * b))); elseif ((b <= -2.5e+35) || !(b <= 2.9e+27)) tmp = Float64(t_1 + t_2); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.7e+191) tmp = t_2; elseif (b <= -6.4e+177) tmp = t_1 - (c * (z * b)); elseif ((b <= -2.5e+35) || ~((b <= 2.9e+27))) tmp = t_1 + t_2; else tmp = (x * ((y * z) - (t * a))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e+191], t$95$2, If[LessEqual[b, -6.4e+177], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -2.5e+35], N[Not[LessEqual[b, 2.9e+27]], $MachinePrecision]], N[(t$95$1 + t$95$2), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{+191}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -6.4 \cdot 10^{+177}:\\
\;\;\;\;t_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{+35} \lor \neg \left(b \leq 2.9 \cdot 10^{+27}\right):\\
\;\;\;\;t_1 + t_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
\end{array}
\end{array}
if b < -3.70000000000000019e191Initial program 62.1%
associate-+l-62.1%
*-commutative62.1%
sub-neg62.1%
sub-neg62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in b around inf 77.1%
if -3.70000000000000019e191 < b < -6.4e177Initial program 99.7%
+-commutative99.7%
fma-def99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in t around -inf 99.7%
Taylor expanded in j around inf 99.7%
if -6.4e177 < b < -2.50000000000000011e35 or 2.9000000000000001e27 < b Initial program 74.2%
+-commutative74.2%
fma-def74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in x around 0 72.2%
if -2.50000000000000011e35 < b < 2.9000000000000001e27Initial program 71.9%
+-commutative71.9%
fma-def72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 71.5%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -0.000135)
t_3
(if (<= t -6.3e-108)
t_2
(if (<= t -3.3e-122)
t_3
(if (<= t 6.2e-298)
t_1
(if (<= t 3.7e-238)
t_2
(if (<= t 1.05e-109)
t_1
(if (<= t 6.8e+38) (* x (- (* y z) (* t a))) t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -0.000135) {
tmp = t_3;
} else if (t <= -6.3e-108) {
tmp = t_2;
} else if (t <= -3.3e-122) {
tmp = t_3;
} else if (t <= 6.2e-298) {
tmp = t_1;
} else if (t <= 3.7e-238) {
tmp = t_2;
} else if (t <= 1.05e-109) {
tmp = t_1;
} else if (t <= 6.8e+38) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = z * ((x * y) - (b * c))
t_3 = t * ((b * i) - (x * a))
if (t <= (-0.000135d0)) then
tmp = t_3
else if (t <= (-6.3d-108)) then
tmp = t_2
else if (t <= (-3.3d-122)) then
tmp = t_3
else if (t <= 6.2d-298) then
tmp = t_1
else if (t <= 3.7d-238) then
tmp = t_2
else if (t <= 1.05d-109) then
tmp = t_1
else if (t <= 6.8d+38) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -0.000135) {
tmp = t_3;
} else if (t <= -6.3e-108) {
tmp = t_2;
} else if (t <= -3.3e-122) {
tmp = t_3;
} else if (t <= 6.2e-298) {
tmp = t_1;
} else if (t <= 3.7e-238) {
tmp = t_2;
} else if (t <= 1.05e-109) {
tmp = t_1;
} else if (t <= 6.8e+38) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = z * ((x * y) - (b * c)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -0.000135: tmp = t_3 elif t <= -6.3e-108: tmp = t_2 elif t <= -3.3e-122: tmp = t_3 elif t <= 6.2e-298: tmp = t_1 elif t <= 3.7e-238: tmp = t_2 elif t <= 1.05e-109: tmp = t_1 elif t <= 6.8e+38: tmp = x * ((y * z) - (t * a)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -0.000135) tmp = t_3; elseif (t <= -6.3e-108) tmp = t_2; elseif (t <= -3.3e-122) tmp = t_3; elseif (t <= 6.2e-298) tmp = t_1; elseif (t <= 3.7e-238) tmp = t_2; elseif (t <= 1.05e-109) tmp = t_1; elseif (t <= 6.8e+38) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = z * ((x * y) - (b * c)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -0.000135) tmp = t_3; elseif (t <= -6.3e-108) tmp = t_2; elseif (t <= -3.3e-122) tmp = t_3; elseif (t <= 6.2e-298) tmp = t_1; elseif (t <= 3.7e-238) tmp = t_2; elseif (t <= 1.05e-109) tmp = t_1; elseif (t <= 6.8e+38) tmp = x * ((y * z) - (t * a)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -0.000135], t$95$3, If[LessEqual[t, -6.3e-108], t$95$2, If[LessEqual[t, -3.3e-122], t$95$3, If[LessEqual[t, 6.2e-298], t$95$1, If[LessEqual[t, 3.7e-238], t$95$2, If[LessEqual[t, 1.05e-109], t$95$1, If[LessEqual[t, 6.8e+38], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -0.000135:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -6.3 \cdot 10^{-108}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-122}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-298}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-238}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+38}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -1.35000000000000002e-4 or -6.2999999999999997e-108 < t < -3.29999999999999999e-122 or 6.79999999999999992e38 < t Initial program 65.8%
associate-+l-65.8%
*-commutative65.8%
sub-neg65.8%
sub-neg65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in y around 0 67.1%
Simplified70.9%
Taylor expanded in t around inf 63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
if -1.35000000000000002e-4 < t < -6.2999999999999997e-108 or 6.2000000000000003e-298 < t < 3.70000000000000024e-238Initial program 77.1%
associate-+l-77.1%
*-commutative77.1%
sub-neg77.1%
sub-neg77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in z around inf 54.0%
if -3.29999999999999999e-122 < t < 6.2000000000000003e-298 or 3.70000000000000024e-238 < t < 1.04999999999999998e-109Initial program 80.2%
associate-+l-80.2%
*-commutative80.2%
sub-neg80.2%
sub-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in c around inf 68.9%
if 1.04999999999999998e-109 < t < 6.79999999999999992e38Initial program 77.4%
associate-+l-77.4%
*-commutative77.4%
sub-neg77.4%
sub-neg77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in a around 0 88.7%
mul-1-neg88.7%
Simplified88.7%
Taylor expanded in x around inf 56.0%
Final simplification63.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* t (- (* b i) (* x a))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= t -0.0052)
t_2
(if (<= t -5.7e-108)
(* z (- (* x y) (* b c)))
(if (<= t -2.16e-122)
t_2
(if (<= t 6.5e-302)
t_1
(if (<= t 2e-240)
t_3
(if (<= t 3.3e-110) t_1 (if (<= t 1.32e+39) t_3 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = t * ((b * i) - (x * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (t <= -0.0052) {
tmp = t_2;
} else if (t <= -5.7e-108) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -2.16e-122) {
tmp = t_2;
} else if (t <= 6.5e-302) {
tmp = t_1;
} else if (t <= 2e-240) {
tmp = t_3;
} else if (t <= 3.3e-110) {
tmp = t_1;
} else if (t <= 1.32e+39) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = t * ((b * i) - (x * a))
t_3 = y * ((x * z) - (i * j))
if (t <= (-0.0052d0)) then
tmp = t_2
else if (t <= (-5.7d-108)) then
tmp = z * ((x * y) - (b * c))
else if (t <= (-2.16d-122)) then
tmp = t_2
else if (t <= 6.5d-302) then
tmp = t_1
else if (t <= 2d-240) then
tmp = t_3
else if (t <= 3.3d-110) then
tmp = t_1
else if (t <= 1.32d+39) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = t * ((b * i) - (x * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (t <= -0.0052) {
tmp = t_2;
} else if (t <= -5.7e-108) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -2.16e-122) {
tmp = t_2;
} else if (t <= 6.5e-302) {
tmp = t_1;
} else if (t <= 2e-240) {
tmp = t_3;
} else if (t <= 3.3e-110) {
tmp = t_1;
} else if (t <= 1.32e+39) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = t * ((b * i) - (x * a)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if t <= -0.0052: tmp = t_2 elif t <= -5.7e-108: tmp = z * ((x * y) - (b * c)) elif t <= -2.16e-122: tmp = t_2 elif t <= 6.5e-302: tmp = t_1 elif t <= 2e-240: tmp = t_3 elif t <= 3.3e-110: tmp = t_1 elif t <= 1.32e+39: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (t <= -0.0052) tmp = t_2; elseif (t <= -5.7e-108) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= -2.16e-122) tmp = t_2; elseif (t <= 6.5e-302) tmp = t_1; elseif (t <= 2e-240) tmp = t_3; elseif (t <= 3.3e-110) tmp = t_1; elseif (t <= 1.32e+39) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = t * ((b * i) - (x * a)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (t <= -0.0052) tmp = t_2; elseif (t <= -5.7e-108) tmp = z * ((x * y) - (b * c)); elseif (t <= -2.16e-122) tmp = t_2; elseif (t <= 6.5e-302) tmp = t_1; elseif (t <= 2e-240) tmp = t_3; elseif (t <= 3.3e-110) tmp = t_1; elseif (t <= 1.32e+39) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -0.0052], t$95$2, If[LessEqual[t, -5.7e-108], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.16e-122], t$95$2, If[LessEqual[t, 6.5e-302], t$95$1, If[LessEqual[t, 2e-240], t$95$3, If[LessEqual[t, 3.3e-110], t$95$1, If[LessEqual[t, 1.32e+39], t$95$3, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;t \leq -0.0052:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.7 \cdot 10^{-108}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq -2.16 \cdot 10^{-122}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-302}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-240}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{-110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{+39}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -0.0051999999999999998 or -5.7e-108 < t < -2.1600000000000001e-122 or 1.32e39 < t Initial program 65.8%
associate-+l-65.8%
*-commutative65.8%
sub-neg65.8%
sub-neg65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in y around 0 67.1%
Simplified70.9%
Taylor expanded in t around inf 63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
if -0.0051999999999999998 < t < -5.7e-108Initial program 59.7%
associate-+l-59.7%
*-commutative59.7%
sub-neg59.7%
sub-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in z around inf 52.5%
if -2.1600000000000001e-122 < t < 6.4999999999999995e-302 or 1.9999999999999999e-240 < t < 3.2999999999999999e-110Initial program 80.2%
associate-+l-80.2%
*-commutative80.2%
sub-neg80.2%
sub-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in c around inf 68.9%
if 6.4999999999999995e-302 < t < 1.9999999999999999e-240 or 3.2999999999999999e-110 < t < 1.32e39Initial program 84.0%
associate-+l-84.0%
*-commutative84.0%
sub-neg84.0%
sub-neg84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in y around -inf 73.7%
mul-1-neg73.7%
*-commutative73.7%
distribute-rgt-neg-in73.7%
mul-1-neg73.7%
unsub-neg73.7%
Simplified73.7%
Final simplification66.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* c (* a j))))
(t_2 (- (* j (- (* a c) (* y i))) (* c (* z b)))))
(if (<= x -2.65e+53)
t_1
(if (<= x 1.1e-236)
t_2
(if (<= x 5.4e-214)
(* b (- (* t i) (* z c)))
(if (<= x 2.7e-49) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (a * j));
double t_2 = (j * ((a * c) - (y * i))) - (c * (z * b));
double tmp;
if (x <= -2.65e+53) {
tmp = t_1;
} else if (x <= 1.1e-236) {
tmp = t_2;
} else if (x <= 5.4e-214) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 2.7e-49) {
tmp = t_2;
} 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) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (c * (a * j))
t_2 = (j * ((a * c) - (y * i))) - (c * (z * b))
if (x <= (-2.65d+53)) then
tmp = t_1
else if (x <= 1.1d-236) then
tmp = t_2
else if (x <= 5.4d-214) then
tmp = b * ((t * i) - (z * c))
else if (x <= 2.7d-49) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (a * j));
double t_2 = (j * ((a * c) - (y * i))) - (c * (z * b));
double tmp;
if (x <= -2.65e+53) {
tmp = t_1;
} else if (x <= 1.1e-236) {
tmp = t_2;
} else if (x <= 5.4e-214) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 2.7e-49) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (c * (a * j)) t_2 = (j * ((a * c) - (y * i))) - (c * (z * b)) tmp = 0 if x <= -2.65e+53: tmp = t_1 elif x <= 1.1e-236: tmp = t_2 elif x <= 5.4e-214: tmp = b * ((t * i) - (z * c)) elif x <= 2.7e-49: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(a * j))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(c * Float64(z * b))) tmp = 0.0 if (x <= -2.65e+53) tmp = t_1; elseif (x <= 1.1e-236) tmp = t_2; elseif (x <= 5.4e-214) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (x <= 2.7e-49) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (c * (a * j)); t_2 = (j * ((a * c) - (y * i))) - (c * (z * b)); tmp = 0.0; if (x <= -2.65e+53) tmp = t_1; elseif (x <= 1.1e-236) tmp = t_2; elseif (x <= 5.4e-214) tmp = b * ((t * i) - (z * c)); elseif (x <= 2.7e-49) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.65e+53], t$95$1, If[LessEqual[x, 1.1e-236], t$95$2, If[LessEqual[x, 5.4e-214], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e-49], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(a \cdot j\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{if}\;x \leq -2.65 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-236}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-214}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-49}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.6500000000000001e53 or 2.7e-49 < x Initial program 74.1%
+-commutative74.1%
fma-def74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in b around 0 69.0%
Taylor expanded in i around 0 68.2%
if -2.6500000000000001e53 < x < 1.09999999999999996e-236 or 5.4000000000000001e-214 < x < 2.7e-49Initial program 69.4%
+-commutative69.4%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in t around -inf 83.6%
Taylor expanded in j around inf 63.0%
if 1.09999999999999996e-236 < x < 5.4000000000000001e-214Initial program 82.1%
associate-+l-82.1%
*-commutative82.1%
sub-neg82.1%
sub-neg82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in b around inf 90.9%
Final simplification66.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))))
(if (<= j -9.2e+85)
(* (* y j) (- i))
(if (<= j -9e-309)
t_1
(if (<= j 4.7e-204)
(* y (* x z))
(if (<= j 4.4e-80)
(* i (* t b))
(if (<= j 7.8e-26)
(* x (* y z))
(if (<= j 1.2e+67)
t_1
(if (or (<= j 4.5e+248) (not (<= j 6.1e+305)))
(* a (* c j))
(* 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 = a * (x * -t);
double tmp;
if (j <= -9.2e+85) {
tmp = (y * j) * -i;
} else if (j <= -9e-309) {
tmp = t_1;
} else if (j <= 4.7e-204) {
tmp = y * (x * z);
} else if (j <= 4.4e-80) {
tmp = i * (t * b);
} else if (j <= 7.8e-26) {
tmp = x * (y * z);
} else if (j <= 1.2e+67) {
tmp = t_1;
} else if ((j <= 4.5e+248) || !(j <= 6.1e+305)) {
tmp = a * (c * j);
} else {
tmp = 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 = a * (x * -t)
if (j <= (-9.2d+85)) then
tmp = (y * j) * -i
else if (j <= (-9d-309)) then
tmp = t_1
else if (j <= 4.7d-204) then
tmp = y * (x * z)
else if (j <= 4.4d-80) then
tmp = i * (t * b)
else if (j <= 7.8d-26) then
tmp = x * (y * z)
else if (j <= 1.2d+67) then
tmp = t_1
else if ((j <= 4.5d+248) .or. (.not. (j <= 6.1d+305))) then
tmp = a * (c * j)
else
tmp = 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 = a * (x * -t);
double tmp;
if (j <= -9.2e+85) {
tmp = (y * j) * -i;
} else if (j <= -9e-309) {
tmp = t_1;
} else if (j <= 4.7e-204) {
tmp = y * (x * z);
} else if (j <= 4.4e-80) {
tmp = i * (t * b);
} else if (j <= 7.8e-26) {
tmp = x * (y * z);
} else if (j <= 1.2e+67) {
tmp = t_1;
} else if ((j <= 4.5e+248) || !(j <= 6.1e+305)) {
tmp = a * (c * j);
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) tmp = 0 if j <= -9.2e+85: tmp = (y * j) * -i elif j <= -9e-309: tmp = t_1 elif j <= 4.7e-204: tmp = y * (x * z) elif j <= 4.4e-80: tmp = i * (t * b) elif j <= 7.8e-26: tmp = x * (y * z) elif j <= 1.2e+67: tmp = t_1 elif (j <= 4.5e+248) or not (j <= 6.1e+305): tmp = a * (c * j) else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (j <= -9.2e+85) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (j <= -9e-309) tmp = t_1; elseif (j <= 4.7e-204) tmp = Float64(y * Float64(x * z)); elseif (j <= 4.4e-80) tmp = Float64(i * Float64(t * b)); elseif (j <= 7.8e-26) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.2e+67) tmp = t_1; elseif ((j <= 4.5e+248) || !(j <= 6.1e+305)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * -t); tmp = 0.0; if (j <= -9.2e+85) tmp = (y * j) * -i; elseif (j <= -9e-309) tmp = t_1; elseif (j <= 4.7e-204) tmp = y * (x * z); elseif (j <= 4.4e-80) tmp = i * (t * b); elseif (j <= 7.8e-26) tmp = x * (y * z); elseif (j <= 1.2e+67) tmp = t_1; elseif ((j <= 4.5e+248) || ~((j <= 6.1e+305))) tmp = a * (c * j); else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.2e+85], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[j, -9e-309], t$95$1, If[LessEqual[j, 4.7e-204], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e-80], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.8e-26], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.2e+67], t$95$1, If[Or[LessEqual[j, 4.5e+248], N[Not[LessEqual[j, 6.1e+305]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;j \leq -9.2 \cdot 10^{+85}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;j \leq -9 \cdot 10^{-309}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.7 \cdot 10^{-204}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-80}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 7.8 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{+67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+248} \lor \neg \left(j \leq 6.1 \cdot 10^{+305}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if j < -9.1999999999999996e85Initial program 76.9%
+-commutative76.9%
fma-def79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in i around 0 79.8%
Taylor expanded in i around inf 47.3%
mul-1-neg47.3%
*-commutative47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
if -9.1999999999999996e85 < j < -9.0000000000000021e-309 or 7.79999999999999973e-26 < j < 1.20000000000000001e67Initial program 75.3%
associate-+l-75.3%
*-commutative75.3%
sub-neg75.3%
sub-neg75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in a around inf 42.9%
+-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
Simplified42.9%
Taylor expanded in c around 0 38.1%
*-commutative38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if -9.0000000000000021e-309 < j < 4.69999999999999992e-204Initial program 69.4%
associate-+l-69.4%
*-commutative69.4%
sub-neg69.4%
sub-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in y around -inf 75.6%
mul-1-neg75.6%
*-commutative75.6%
distribute-rgt-neg-in75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
Taylor expanded in i around 0 75.6%
neg-mul-175.6%
distribute-rgt-neg-in75.6%
Simplified75.6%
if 4.69999999999999992e-204 < j < 4.4000000000000002e-80Initial program 63.5%
associate-+l-63.5%
*-commutative63.5%
sub-neg63.5%
sub-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in i around inf 46.1%
distribute-lft-out--46.1%
Simplified46.1%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
distribute-rgt-neg-in39.4%
Simplified39.4%
if 4.4000000000000002e-80 < j < 7.79999999999999973e-26Initial program 80.6%
associate-+l-80.6%
*-commutative80.6%
sub-neg80.6%
sub-neg80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in a around 0 74.0%
mul-1-neg74.0%
Simplified74.0%
Taylor expanded in x around inf 55.4%
Taylor expanded in y around inf 54.8%
*-commutative54.8%
Simplified54.8%
if 1.20000000000000001e67 < j < 4.4999999999999996e248 or 6.1000000000000002e305 < j Initial program 64.6%
associate-+l-64.6%
*-commutative64.6%
sub-neg64.6%
sub-neg64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in a around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
Taylor expanded in c around inf 49.1%
*-commutative49.1%
Simplified49.1%
if 4.4999999999999996e248 < j < 6.1000000000000002e305Initial program 73.2%
associate-+l-73.2%
*-commutative73.2%
sub-neg73.2%
sub-neg73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in y around -inf 73.5%
mul-1-neg73.5%
*-commutative73.5%
distribute-rgt-neg-in73.5%
mul-1-neg73.5%
unsub-neg73.5%
Simplified73.5%
Taylor expanded in i around inf 65.4%
Final simplification45.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -0.0086)
t_3
(if (<= t -3.5e-122)
(* i (- (* t b) (* y j)))
(if (<= t 1.7e-300)
t_1
(if (<= t 9.8e-240)
t_2
(if (<= t 1.95e-113) t_1 (if (<= t 8e+39) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -0.0086) {
tmp = t_3;
} else if (t <= -3.5e-122) {
tmp = i * ((t * b) - (y * j));
} else if (t <= 1.7e-300) {
tmp = t_1;
} else if (t <= 9.8e-240) {
tmp = t_2;
} else if (t <= 1.95e-113) {
tmp = t_1;
} else if (t <= 8e+39) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = y * ((x * z) - (i * j))
t_3 = t * ((b * i) - (x * a))
if (t <= (-0.0086d0)) then
tmp = t_3
else if (t <= (-3.5d-122)) then
tmp = i * ((t * b) - (y * j))
else if (t <= 1.7d-300) then
tmp = t_1
else if (t <= 9.8d-240) then
tmp = t_2
else if (t <= 1.95d-113) then
tmp = t_1
else if (t <= 8d+39) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -0.0086) {
tmp = t_3;
} else if (t <= -3.5e-122) {
tmp = i * ((t * b) - (y * j));
} else if (t <= 1.7e-300) {
tmp = t_1;
} else if (t <= 9.8e-240) {
tmp = t_2;
} else if (t <= 1.95e-113) {
tmp = t_1;
} else if (t <= 8e+39) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = y * ((x * z) - (i * j)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -0.0086: tmp = t_3 elif t <= -3.5e-122: tmp = i * ((t * b) - (y * j)) elif t <= 1.7e-300: tmp = t_1 elif t <= 9.8e-240: tmp = t_2 elif t <= 1.95e-113: tmp = t_1 elif t <= 8e+39: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -0.0086) tmp = t_3; elseif (t <= -3.5e-122) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (t <= 1.7e-300) tmp = t_1; elseif (t <= 9.8e-240) tmp = t_2; elseif (t <= 1.95e-113) tmp = t_1; elseif (t <= 8e+39) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = y * ((x * z) - (i * j)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -0.0086) tmp = t_3; elseif (t <= -3.5e-122) tmp = i * ((t * b) - (y * j)); elseif (t <= 1.7e-300) tmp = t_1; elseif (t <= 9.8e-240) tmp = t_2; elseif (t <= 1.95e-113) tmp = t_1; elseif (t <= 8e+39) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -0.0086], t$95$3, If[LessEqual[t, -3.5e-122], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-300], t$95$1, If[LessEqual[t, 9.8e-240], t$95$2, If[LessEqual[t, 1.95e-113], t$95$1, If[LessEqual[t, 8e+39], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -0.0086:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-122}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-240}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{-113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -0.0086 or 7.99999999999999952e39 < t Initial program 63.9%
associate-+l-63.9%
*-commutative63.9%
sub-neg63.9%
sub-neg63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in y around 0 65.4%
Simplified69.4%
Taylor expanded in t around inf 64.1%
mul-1-neg64.1%
unsub-neg64.1%
*-commutative64.1%
Simplified64.1%
if -0.0086 < t < -3.5000000000000001e-122Initial program 70.0%
associate-+l-70.0%
*-commutative70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in i around inf 51.4%
distribute-lft-out--51.4%
Simplified51.4%
if -3.5000000000000001e-122 < t < 1.70000000000000009e-300 or 9.80000000000000023e-240 < t < 1.9499999999999999e-113Initial program 80.5%
associate-+l-80.5%
*-commutative80.5%
sub-neg80.5%
sub-neg80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in c around inf 68.0%
if 1.70000000000000009e-300 < t < 9.80000000000000023e-240 or 1.9499999999999999e-113 < t < 7.99999999999999952e39Initial program 84.0%
associate-+l-84.0%
*-commutative84.0%
sub-neg84.0%
sub-neg84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in y around -inf 73.7%
mul-1-neg73.7%
*-commutative73.7%
distribute-rgt-neg-in73.7%
mul-1-neg73.7%
unsub-neg73.7%
Simplified73.7%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= j -1.25e+86)
t_1
(if (<= j 5.5e-305)
(* a (* x (- t)))
(if (<= j 8.7e-192)
(* z (* x y))
(if (<= j 2.8e-72)
(* z (* b (- c)))
(if (<= j 3.4e+67)
(* x (* y z))
(if (or (<= j 7e+248) (not (<= j 6.1e+305)))
(* a (* c j))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double tmp;
if (j <= -1.25e+86) {
tmp = t_1;
} else if (j <= 5.5e-305) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 2.8e-72) {
tmp = z * (b * -c);
} else if (j <= 3.4e+67) {
tmp = x * (y * z);
} else if ((j <= 7e+248) || !(j <= 6.1e+305)) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (i * -j)
if (j <= (-1.25d+86)) then
tmp = t_1
else if (j <= 5.5d-305) then
tmp = a * (x * -t)
else if (j <= 8.7d-192) then
tmp = z * (x * y)
else if (j <= 2.8d-72) then
tmp = z * (b * -c)
else if (j <= 3.4d+67) then
tmp = x * (y * z)
else if ((j <= 7d+248) .or. (.not. (j <= 6.1d+305))) then
tmp = a * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double tmp;
if (j <= -1.25e+86) {
tmp = t_1;
} else if (j <= 5.5e-305) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 2.8e-72) {
tmp = z * (b * -c);
} else if (j <= 3.4e+67) {
tmp = x * (y * z);
} else if ((j <= 7e+248) || !(j <= 6.1e+305)) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) tmp = 0 if j <= -1.25e+86: tmp = t_1 elif j <= 5.5e-305: tmp = a * (x * -t) elif j <= 8.7e-192: tmp = z * (x * y) elif j <= 2.8e-72: tmp = z * (b * -c) elif j <= 3.4e+67: tmp = x * (y * z) elif (j <= 7e+248) or not (j <= 6.1e+305): tmp = a * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (j <= -1.25e+86) tmp = t_1; elseif (j <= 5.5e-305) tmp = Float64(a * Float64(x * Float64(-t))); elseif (j <= 8.7e-192) tmp = Float64(z * Float64(x * y)); elseif (j <= 2.8e-72) tmp = Float64(z * Float64(b * Float64(-c))); elseif (j <= 3.4e+67) tmp = Float64(x * Float64(y * z)); elseif ((j <= 7e+248) || !(j <= 6.1e+305)) tmp = Float64(a * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (i * -j); tmp = 0.0; if (j <= -1.25e+86) tmp = t_1; elseif (j <= 5.5e-305) tmp = a * (x * -t); elseif (j <= 8.7e-192) tmp = z * (x * y); elseif (j <= 2.8e-72) tmp = z * (b * -c); elseif (j <= 3.4e+67) tmp = x * (y * z); elseif ((j <= 7e+248) || ~((j <= 6.1e+305))) tmp = a * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.25e+86], t$95$1, If[LessEqual[j, 5.5e-305], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.7e-192], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-72], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.4e+67], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, 7e+248], N[Not[LessEqual[j, 6.1e+305]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1.25 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{-305}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq 8.7 \cdot 10^{-192}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-72}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 3.4 \cdot 10^{+67}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{+248} \lor \neg \left(j \leq 6.1 \cdot 10^{+305}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -1.2499999999999999e86 or 7.00000000000000044e248 < j < 6.1000000000000002e305Initial program 76.1%
associate-+l-76.1%
*-commutative76.1%
sub-neg76.1%
sub-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in y around -inf 53.3%
mul-1-neg53.3%
*-commutative53.3%
distribute-rgt-neg-in53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
Taylor expanded in i around inf 45.8%
if -1.2499999999999999e86 < j < 5.5e-305Initial program 73.3%
associate-+l-73.3%
*-commutative73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in a around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in c around 0 38.1%
*-commutative38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if 5.5e-305 < j < 8.7000000000000001e-192Initial program 69.3%
associate-+l-69.3%
*-commutative69.3%
sub-neg69.3%
sub-neg69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in z around inf 74.3%
Taylor expanded in y around inf 69.1%
if 8.7000000000000001e-192 < j < 2.7999999999999998e-72Initial program 64.3%
associate-+l-64.3%
*-commutative64.3%
sub-neg64.3%
sub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around inf 45.5%
Taylor expanded in y around 0 38.1%
mul-1-neg38.1%
distribute-lft-neg-out38.1%
*-commutative38.1%
Simplified38.1%
if 2.7999999999999998e-72 < j < 3.4000000000000002e67Initial program 82.2%
associate-+l-82.2%
*-commutative82.2%
sub-neg82.2%
sub-neg82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in a around 0 82.2%
mul-1-neg82.2%
Simplified82.2%
Taylor expanded in x around inf 47.4%
Taylor expanded in y around inf 37.9%
*-commutative37.9%
Simplified37.9%
if 3.4000000000000002e67 < j < 7.00000000000000044e248 or 6.1000000000000002e305 < j Initial program 64.6%
associate-+l-64.6%
*-commutative64.6%
sub-neg64.6%
sub-neg64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in a around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
Taylor expanded in c around inf 49.1%
*-commutative49.1%
Simplified49.1%
Final simplification43.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -8.2e+85)
(* (* y j) (- i))
(if (<= j 1.8e-305)
(* a (* x (- t)))
(if (<= j 8.7e-192)
(* z (* x y))
(if (<= j 2.8e-79)
(* z (* b (- c)))
(if (<= j 9e+66)
(* x (* y z))
(if (or (<= j 1.05e+248) (not (<= j 8.2e+307)))
(* a (* c j))
(* y (* i (- j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -8.2e+85) {
tmp = (y * j) * -i;
} else if (j <= 1.8e-305) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 2.8e-79) {
tmp = z * (b * -c);
} else if (j <= 9e+66) {
tmp = x * (y * z);
} else if ((j <= 1.05e+248) || !(j <= 8.2e+307)) {
tmp = a * (c * j);
} else {
tmp = 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) :: tmp
if (j <= (-8.2d+85)) then
tmp = (y * j) * -i
else if (j <= 1.8d-305) then
tmp = a * (x * -t)
else if (j <= 8.7d-192) then
tmp = z * (x * y)
else if (j <= 2.8d-79) then
tmp = z * (b * -c)
else if (j <= 9d+66) then
tmp = x * (y * z)
else if ((j <= 1.05d+248) .or. (.not. (j <= 8.2d+307))) then
tmp = a * (c * j)
else
tmp = 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 tmp;
if (j <= -8.2e+85) {
tmp = (y * j) * -i;
} else if (j <= 1.8e-305) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 2.8e-79) {
tmp = z * (b * -c);
} else if (j <= 9e+66) {
tmp = x * (y * z);
} else if ((j <= 1.05e+248) || !(j <= 8.2e+307)) {
tmp = a * (c * j);
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -8.2e+85: tmp = (y * j) * -i elif j <= 1.8e-305: tmp = a * (x * -t) elif j <= 8.7e-192: tmp = z * (x * y) elif j <= 2.8e-79: tmp = z * (b * -c) elif j <= 9e+66: tmp = x * (y * z) elif (j <= 1.05e+248) or not (j <= 8.2e+307): tmp = a * (c * j) else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -8.2e+85) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (j <= 1.8e-305) tmp = Float64(a * Float64(x * Float64(-t))); elseif (j <= 8.7e-192) tmp = Float64(z * Float64(x * y)); elseif (j <= 2.8e-79) tmp = Float64(z * Float64(b * Float64(-c))); elseif (j <= 9e+66) tmp = Float64(x * Float64(y * z)); elseif ((j <= 1.05e+248) || !(j <= 8.2e+307)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -8.2e+85) tmp = (y * j) * -i; elseif (j <= 1.8e-305) tmp = a * (x * -t); elseif (j <= 8.7e-192) tmp = z * (x * y); elseif (j <= 2.8e-79) tmp = z * (b * -c); elseif (j <= 9e+66) tmp = x * (y * z); elseif ((j <= 1.05e+248) || ~((j <= 8.2e+307))) tmp = a * (c * j); else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -8.2e+85], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[j, 1.8e-305], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.7e-192], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-79], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9e+66], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, 1.05e+248], N[Not[LessEqual[j, 8.2e+307]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.2 \cdot 10^{+85}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;j \leq 1.8 \cdot 10^{-305}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq 8.7 \cdot 10^{-192}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-79}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 9 \cdot 10^{+66}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{+248} \lor \neg \left(j \leq 8.2 \cdot 10^{+307}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if j < -8.19999999999999957e85Initial program 76.9%
+-commutative76.9%
fma-def79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in i around 0 79.8%
Taylor expanded in i around inf 47.3%
mul-1-neg47.3%
*-commutative47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
if -8.19999999999999957e85 < j < 1.80000000000000002e-305Initial program 73.3%
associate-+l-73.3%
*-commutative73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in a around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in c around 0 38.1%
*-commutative38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if 1.80000000000000002e-305 < j < 8.7000000000000001e-192Initial program 69.3%
associate-+l-69.3%
*-commutative69.3%
sub-neg69.3%
sub-neg69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in z around inf 74.3%
Taylor expanded in y around inf 69.1%
if 8.7000000000000001e-192 < j < 2.80000000000000012e-79Initial program 64.3%
associate-+l-64.3%
*-commutative64.3%
sub-neg64.3%
sub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around inf 45.5%
Taylor expanded in y around 0 38.1%
mul-1-neg38.1%
distribute-lft-neg-out38.1%
*-commutative38.1%
Simplified38.1%
if 2.80000000000000012e-79 < j < 8.9999999999999997e66Initial program 82.2%
associate-+l-82.2%
*-commutative82.2%
sub-neg82.2%
sub-neg82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in a around 0 82.2%
mul-1-neg82.2%
Simplified82.2%
Taylor expanded in x around inf 47.4%
Taylor expanded in y around inf 37.9%
*-commutative37.9%
Simplified37.9%
if 8.9999999999999997e66 < j < 1.04999999999999994e248 or 8.1999999999999996e307 < j Initial program 64.6%
associate-+l-64.6%
*-commutative64.6%
sub-neg64.6%
sub-neg64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in a around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
Taylor expanded in c around inf 49.1%
*-commutative49.1%
Simplified49.1%
if 1.04999999999999994e248 < j < 8.1999999999999996e307Initial program 73.2%
associate-+l-73.2%
*-commutative73.2%
sub-neg73.2%
sub-neg73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in y around -inf 73.5%
mul-1-neg73.5%
*-commutative73.5%
distribute-rgt-neg-in73.5%
mul-1-neg73.5%
unsub-neg73.5%
Simplified73.5%
Taylor expanded in i around inf 65.4%
Final simplification44.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= j -6.8e+85)
(* (* y j) (- i))
(if (<= j 2.3e-304)
(* a (* x (- t)))
(if (<= j 8.7e-192)
t_1
(if (<= j 1.2e-72)
(* z (* b (- c)))
(if (<= j 5.5e+67)
t_1
(if (or (<= j 3.8e+248) (not (<= j 2.6e+306)))
(* a (* c j))
(* 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 = y * (x * z);
double tmp;
if (j <= -6.8e+85) {
tmp = (y * j) * -i;
} else if (j <= 2.3e-304) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = t_1;
} else if (j <= 1.2e-72) {
tmp = z * (b * -c);
} else if (j <= 5.5e+67) {
tmp = t_1;
} else if ((j <= 3.8e+248) || !(j <= 2.6e+306)) {
tmp = a * (c * j);
} else {
tmp = 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 = y * (x * z)
if (j <= (-6.8d+85)) then
tmp = (y * j) * -i
else if (j <= 2.3d-304) then
tmp = a * (x * -t)
else if (j <= 8.7d-192) then
tmp = t_1
else if (j <= 1.2d-72) then
tmp = z * (b * -c)
else if (j <= 5.5d+67) then
tmp = t_1
else if ((j <= 3.8d+248) .or. (.not. (j <= 2.6d+306))) then
tmp = a * (c * j)
else
tmp = 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 = y * (x * z);
double tmp;
if (j <= -6.8e+85) {
tmp = (y * j) * -i;
} else if (j <= 2.3e-304) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = t_1;
} else if (j <= 1.2e-72) {
tmp = z * (b * -c);
} else if (j <= 5.5e+67) {
tmp = t_1;
} else if ((j <= 3.8e+248) || !(j <= 2.6e+306)) {
tmp = a * (c * j);
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if j <= -6.8e+85: tmp = (y * j) * -i elif j <= 2.3e-304: tmp = a * (x * -t) elif j <= 8.7e-192: tmp = t_1 elif j <= 1.2e-72: tmp = z * (b * -c) elif j <= 5.5e+67: tmp = t_1 elif (j <= 3.8e+248) or not (j <= 2.6e+306): tmp = a * (c * j) else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (j <= -6.8e+85) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (j <= 2.3e-304) tmp = Float64(a * Float64(x * Float64(-t))); elseif (j <= 8.7e-192) tmp = t_1; elseif (j <= 1.2e-72) tmp = Float64(z * Float64(b * Float64(-c))); elseif (j <= 5.5e+67) tmp = t_1; elseif ((j <= 3.8e+248) || !(j <= 2.6e+306)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (j <= -6.8e+85) tmp = (y * j) * -i; elseif (j <= 2.3e-304) tmp = a * (x * -t); elseif (j <= 8.7e-192) tmp = t_1; elseif (j <= 1.2e-72) tmp = z * (b * -c); elseif (j <= 5.5e+67) tmp = t_1; elseif ((j <= 3.8e+248) || ~((j <= 2.6e+306))) tmp = a * (c * j); else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.8e+85], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[j, 2.3e-304], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.7e-192], t$95$1, If[LessEqual[j, 1.2e-72], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.5e+67], t$95$1, If[Or[LessEqual[j, 3.8e+248], N[Not[LessEqual[j, 2.6e+306]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;j \leq -6.8 \cdot 10^{+85}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-304}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq 8.7 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{-72}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{+67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{+248} \lor \neg \left(j \leq 2.6 \cdot 10^{+306}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if j < -6.8000000000000007e85Initial program 76.9%
+-commutative76.9%
fma-def79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in i around 0 79.8%
Taylor expanded in i around inf 47.3%
mul-1-neg47.3%
*-commutative47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
if -6.8000000000000007e85 < j < 2.3e-304Initial program 73.3%
associate-+l-73.3%
*-commutative73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in a around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in c around 0 38.1%
*-commutative38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if 2.3e-304 < j < 8.7000000000000001e-192 or 1.2e-72 < j < 5.49999999999999968e67Initial program 77.5%
associate-+l-77.5%
*-commutative77.5%
sub-neg77.5%
sub-neg77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around -inf 60.1%
mul-1-neg60.1%
*-commutative60.1%
distribute-rgt-neg-in60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
Taylor expanded in i around 0 49.4%
neg-mul-149.4%
distribute-rgt-neg-in49.4%
Simplified49.4%
if 8.7000000000000001e-192 < j < 1.2e-72Initial program 64.3%
associate-+l-64.3%
*-commutative64.3%
sub-neg64.3%
sub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around inf 45.5%
Taylor expanded in y around 0 38.1%
mul-1-neg38.1%
distribute-lft-neg-out38.1%
*-commutative38.1%
Simplified38.1%
if 5.49999999999999968e67 < j < 3.8000000000000001e248 or 2.60000000000000008e306 < j Initial program 64.6%
associate-+l-64.6%
*-commutative64.6%
sub-neg64.6%
sub-neg64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in a around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
Taylor expanded in c around inf 49.1%
*-commutative49.1%
Simplified49.1%
if 3.8000000000000001e248 < j < 2.60000000000000008e306Initial program 73.2%
associate-+l-73.2%
*-commutative73.2%
sub-neg73.2%
sub-neg73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in y around -inf 73.5%
mul-1-neg73.5%
*-commutative73.5%
distribute-rgt-neg-in73.5%
mul-1-neg73.5%
unsub-neg73.5%
Simplified73.5%
Taylor expanded in i around inf 65.4%
Final simplification44.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= t -2.3e-33)
t_2
(if (<= t 3.6e-299)
t_1
(if (<= t 3.3e-239)
(* x (* y z))
(if (<= t 2.2e-105)
t_1
(if (<= t 85000000000000.0) (* z (* x y)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (t <= -2.3e-33) {
tmp = t_2;
} else if (t <= 3.6e-299) {
tmp = t_1;
} else if (t <= 3.3e-239) {
tmp = x * (y * z);
} else if (t <= 2.2e-105) {
tmp = t_1;
} else if (t <= 85000000000000.0) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = a * ((c * j) - (x * t))
if (t <= (-2.3d-33)) then
tmp = t_2
else if (t <= 3.6d-299) then
tmp = t_1
else if (t <= 3.3d-239) then
tmp = x * (y * z)
else if (t <= 2.2d-105) then
tmp = t_1
else if (t <= 85000000000000.0d0) then
tmp = z * (x * y)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (t <= -2.3e-33) {
tmp = t_2;
} else if (t <= 3.6e-299) {
tmp = t_1;
} else if (t <= 3.3e-239) {
tmp = x * (y * z);
} else if (t <= 2.2e-105) {
tmp = t_1;
} else if (t <= 85000000000000.0) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if t <= -2.3e-33: tmp = t_2 elif t <= 3.6e-299: tmp = t_1 elif t <= 3.3e-239: tmp = x * (y * z) elif t <= 2.2e-105: tmp = t_1 elif t <= 85000000000000.0: tmp = z * (x * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (t <= -2.3e-33) tmp = t_2; elseif (t <= 3.6e-299) tmp = t_1; elseif (t <= 3.3e-239) tmp = Float64(x * Float64(y * z)); elseif (t <= 2.2e-105) tmp = t_1; elseif (t <= 85000000000000.0) tmp = Float64(z * Float64(x * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (t <= -2.3e-33) tmp = t_2; elseif (t <= 3.6e-299) tmp = t_1; elseif (t <= 3.3e-239) tmp = x * (y * z); elseif (t <= 2.2e-105) tmp = t_1; elseif (t <= 85000000000000.0) tmp = z * (x * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.3e-33], t$95$2, If[LessEqual[t, 3.6e-299], t$95$1, If[LessEqual[t, 3.3e-239], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-105], t$95$1, If[LessEqual[t, 85000000000000.0], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{-239}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-105}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 85000000000000:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.29999999999999986e-33 or 8.5e13 < t Initial program 63.3%
associate-+l-63.3%
*-commutative63.3%
sub-neg63.3%
sub-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in a around inf 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
Simplified55.8%
if -2.29999999999999986e-33 < t < 3.6e-299 or 3.29999999999999995e-239 < t < 2.20000000000000004e-105Initial program 79.6%
associate-+l-79.6%
*-commutative79.6%
sub-neg79.6%
sub-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in c around inf 57.2%
if 3.6e-299 < t < 3.29999999999999995e-239Initial program 99.9%
associate-+l-99.9%
*-commutative99.9%
sub-neg99.9%
sub-neg99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in a around 0 71.2%
mul-1-neg71.2%
Simplified71.2%
Taylor expanded in x around inf 55.4%
Taylor expanded in y around inf 55.4%
*-commutative55.4%
Simplified55.4%
if 2.20000000000000004e-105 < t < 8.5e13Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
sub-neg79.1%
sub-neg79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in z around inf 47.6%
Taylor expanded in y around inf 46.8%
Final simplification55.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* t (- (* b i) (* x a))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -3e-32)
t_3
(if (<= z -2.2e-243)
t_2
(if (<= z 1.12e-248)
t_1
(if (<= z 2.05e-156) t_2 (if (<= z 1.35e-9) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3e-32) {
tmp = t_3;
} else if (z <= -2.2e-243) {
tmp = t_2;
} else if (z <= 1.12e-248) {
tmp = t_1;
} else if (z <= 2.05e-156) {
tmp = t_2;
} else if (z <= 1.35e-9) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t * ((b * i) - (x * a))
t_3 = z * ((x * y) - (b * c))
if (z <= (-3d-32)) then
tmp = t_3
else if (z <= (-2.2d-243)) then
tmp = t_2
else if (z <= 1.12d-248) then
tmp = t_1
else if (z <= 2.05d-156) then
tmp = t_2
else if (z <= 1.35d-9) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3e-32) {
tmp = t_3;
} else if (z <= -2.2e-243) {
tmp = t_2;
} else if (z <= 1.12e-248) {
tmp = t_1;
} else if (z <= 2.05e-156) {
tmp = t_2;
} else if (z <= 1.35e-9) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t * ((b * i) - (x * a)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -3e-32: tmp = t_3 elif z <= -2.2e-243: tmp = t_2 elif z <= 1.12e-248: tmp = t_1 elif z <= 2.05e-156: tmp = t_2 elif z <= 1.35e-9: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -3e-32) tmp = t_3; elseif (z <= -2.2e-243) tmp = t_2; elseif (z <= 1.12e-248) tmp = t_1; elseif (z <= 2.05e-156) tmp = t_2; elseif (z <= 1.35e-9) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t * ((b * i) - (x * a)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -3e-32) tmp = t_3; elseif (z <= -2.2e-243) tmp = t_2; elseif (z <= 1.12e-248) tmp = t_1; elseif (z <= 2.05e-156) tmp = t_2; elseif (z <= 1.35e-9) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3e-32], t$95$3, If[LessEqual[z, -2.2e-243], t$95$2, If[LessEqual[z, 1.12e-248], t$95$1, If[LessEqual[z, 2.05e-156], t$95$2, If[LessEqual[z, 1.35e-9], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -3 \cdot 10^{-32}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-243}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-248}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-156}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-9}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if z < -3e-32 or 1.3500000000000001e-9 < z Initial program 66.4%
associate-+l-66.4%
*-commutative66.4%
sub-neg66.4%
sub-neg66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in z around inf 64.2%
if -3e-32 < z < -2.1999999999999999e-243 or 1.12e-248 < z < 2.0500000000000001e-156Initial program 75.9%
associate-+l-75.9%
*-commutative75.9%
sub-neg75.9%
sub-neg75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in y around 0 82.6%
Simplified84.1%
Taylor expanded in t around inf 57.7%
mul-1-neg57.7%
unsub-neg57.7%
*-commutative57.7%
Simplified57.7%
if -2.1999999999999999e-243 < z < 1.12e-248 or 2.0500000000000001e-156 < z < 1.3500000000000001e-9Initial program 80.3%
+-commutative80.3%
fma-def80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in i around 0 70.2%
Taylor expanded in j around inf 61.9%
Final simplification61.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))) (t_2 (* t (- (* b i) (* x a)))))
(if (<= t -3.3e-122)
t_2
(if (<= t 3.6e-299)
t_1
(if (<= t 1.05e-240) (* x (* y z)) (if (<= t 1.2e-107) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.3e-122) {
tmp = t_2;
} else if (t <= 3.6e-299) {
tmp = t_1;
} else if (t <= 1.05e-240) {
tmp = x * (y * z);
} else if (t <= 1.2e-107) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = t * ((b * i) - (x * a))
if (t <= (-3.3d-122)) then
tmp = t_2
else if (t <= 3.6d-299) then
tmp = t_1
else if (t <= 1.05d-240) then
tmp = x * (y * z)
else if (t <= 1.2d-107) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.3e-122) {
tmp = t_2;
} else if (t <= 3.6e-299) {
tmp = t_1;
} else if (t <= 1.05e-240) {
tmp = x * (y * z);
} else if (t <= 1.2e-107) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = t * ((b * i) - (x * a)) tmp = 0 if t <= -3.3e-122: tmp = t_2 elif t <= 3.6e-299: tmp = t_1 elif t <= 1.05e-240: tmp = x * (y * z) elif t <= 1.2e-107: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -3.3e-122) tmp = t_2; elseif (t <= 3.6e-299) tmp = t_1; elseif (t <= 1.05e-240) tmp = Float64(x * Float64(y * z)); elseif (t <= 1.2e-107) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -3.3e-122) tmp = t_2; elseif (t <= 3.6e-299) tmp = t_1; elseif (t <= 1.05e-240) tmp = x * (y * z); elseif (t <= 1.2e-107) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.3e-122], t$95$2, If[LessEqual[t, 3.6e-299], t$95$1, If[LessEqual[t, 1.05e-240], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-107], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.3 \cdot 10^{-122}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-240}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-107}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -3.29999999999999999e-122 or 1.19999999999999997e-107 < t Initial program 67.3%
associate-+l-67.3%
*-commutative67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around 0 69.4%
Simplified72.2%
Taylor expanded in t around inf 54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
if -3.29999999999999999e-122 < t < 3.6e-299 or 1.04999999999999997e-240 < t < 1.19999999999999997e-107Initial program 80.2%
associate-+l-80.2%
*-commutative80.2%
sub-neg80.2%
sub-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in c around inf 68.9%
if 3.6e-299 < t < 1.04999999999999997e-240Initial program 99.9%
associate-+l-99.9%
*-commutative99.9%
sub-neg99.9%
sub-neg99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in a around 0 71.2%
mul-1-neg71.2%
Simplified71.2%
Taylor expanded in x around inf 55.4%
Taylor expanded in y around inf 55.4%
*-commutative55.4%
Simplified55.4%
Final simplification58.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))) (t_2 (* a (* c j))))
(if (<= j -9.5e+85)
t_2
(if (<= j 1.75e-304)
t_1
(if (<= j 3.15e-204)
(* z (* x y))
(if (<= j 4.2e-74) t_1 (if (<= j 9.5e+66) (* x (* y z)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double t_2 = a * (c * j);
double tmp;
if (j <= -9.5e+85) {
tmp = t_2;
} else if (j <= 1.75e-304) {
tmp = t_1;
} else if (j <= 3.15e-204) {
tmp = z * (x * y);
} else if (j <= 4.2e-74) {
tmp = t_1;
} else if (j <= 9.5e+66) {
tmp = x * (y * z);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (x * -t)
t_2 = a * (c * j)
if (j <= (-9.5d+85)) then
tmp = t_2
else if (j <= 1.75d-304) then
tmp = t_1
else if (j <= 3.15d-204) then
tmp = z * (x * y)
else if (j <= 4.2d-74) then
tmp = t_1
else if (j <= 9.5d+66) then
tmp = x * (y * z)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double t_2 = a * (c * j);
double tmp;
if (j <= -9.5e+85) {
tmp = t_2;
} else if (j <= 1.75e-304) {
tmp = t_1;
} else if (j <= 3.15e-204) {
tmp = z * (x * y);
} else if (j <= 4.2e-74) {
tmp = t_1;
} else if (j <= 9.5e+66) {
tmp = x * (y * z);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) t_2 = a * (c * j) tmp = 0 if j <= -9.5e+85: tmp = t_2 elif j <= 1.75e-304: tmp = t_1 elif j <= 3.15e-204: tmp = z * (x * y) elif j <= 4.2e-74: tmp = t_1 elif j <= 9.5e+66: tmp = x * (y * z) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) t_2 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -9.5e+85) tmp = t_2; elseif (j <= 1.75e-304) tmp = t_1; elseif (j <= 3.15e-204) tmp = Float64(z * Float64(x * y)); elseif (j <= 4.2e-74) tmp = t_1; elseif (j <= 9.5e+66) tmp = Float64(x * Float64(y * z)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * -t); t_2 = a * (c * j); tmp = 0.0; if (j <= -9.5e+85) tmp = t_2; elseif (j <= 1.75e-304) tmp = t_1; elseif (j <= 3.15e-204) tmp = z * (x * y); elseif (j <= 4.2e-74) tmp = t_1; elseif (j <= 9.5e+66) tmp = x * (y * z); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.5e+85], t$95$2, If[LessEqual[j, 1.75e-304], t$95$1, If[LessEqual[j, 3.15e-204], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.2e-74], t$95$1, If[LessEqual[j, 9.5e+66], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -9.5 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.75 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.15 \cdot 10^{-204}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{+66}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -9.49999999999999945e85 or 9.50000000000000051e66 < j Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in a around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
Taylor expanded in c around inf 39.2%
*-commutative39.2%
Simplified39.2%
if -9.49999999999999945e85 < j < 1.75e-304 or 3.14999999999999996e-204 < j < 4.2e-74Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in a around inf 41.9%
+-commutative41.9%
mul-1-neg41.9%
unsub-neg41.9%
Simplified41.9%
Taylor expanded in c around 0 35.9%
*-commutative35.9%
associate-*r*35.9%
neg-mul-135.9%
Simplified35.9%
if 1.75e-304 < j < 3.14999999999999996e-204Initial program 69.4%
associate-+l-69.4%
*-commutative69.4%
sub-neg69.4%
sub-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in z around inf 81.7%
Taylor expanded in y around inf 75.5%
if 4.2e-74 < j < 9.50000000000000051e66Initial program 82.2%
associate-+l-82.2%
*-commutative82.2%
sub-neg82.2%
sub-neg82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in a around 0 82.2%
mul-1-neg82.2%
Simplified82.2%
Taylor expanded in x around inf 47.4%
Taylor expanded in y around inf 37.9%
*-commutative37.9%
Simplified37.9%
Final simplification39.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -6.8e+85)
t_1
(if (<= j 1.5e-308)
(* a (* x (- t)))
(if (<= j 8.7e-192)
(* z (* x y))
(if (<= j 9.6e-107)
(* c (- (* z b)))
(if (<= j 4.5e+67) (* 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 = a * (c * j);
double tmp;
if (j <= -6.8e+85) {
tmp = t_1;
} else if (j <= 1.5e-308) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 9.6e-107) {
tmp = c * -(z * b);
} else if (j <= 4.5e+67) {
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 = a * (c * j)
if (j <= (-6.8d+85)) then
tmp = t_1
else if (j <= 1.5d-308) then
tmp = a * (x * -t)
else if (j <= 8.7d-192) then
tmp = z * (x * y)
else if (j <= 9.6d-107) then
tmp = c * -(z * b)
else if (j <= 4.5d+67) 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 = a * (c * j);
double tmp;
if (j <= -6.8e+85) {
tmp = t_1;
} else if (j <= 1.5e-308) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 9.6e-107) {
tmp = c * -(z * b);
} else if (j <= 4.5e+67) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -6.8e+85: tmp = t_1 elif j <= 1.5e-308: tmp = a * (x * -t) elif j <= 8.7e-192: tmp = z * (x * y) elif j <= 9.6e-107: tmp = c * -(z * b) elif j <= 4.5e+67: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -6.8e+85) tmp = t_1; elseif (j <= 1.5e-308) tmp = Float64(a * Float64(x * Float64(-t))); elseif (j <= 8.7e-192) tmp = Float64(z * Float64(x * y)); elseif (j <= 9.6e-107) tmp = Float64(c * Float64(-Float64(z * b))); elseif (j <= 4.5e+67) 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 = a * (c * j); tmp = 0.0; if (j <= -6.8e+85) tmp = t_1; elseif (j <= 1.5e-308) tmp = a * (x * -t); elseif (j <= 8.7e-192) tmp = z * (x * y); elseif (j <= 9.6e-107) tmp = c * -(z * b); elseif (j <= 4.5e+67) 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[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.8e+85], t$95$1, If[LessEqual[j, 1.5e-308], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.7e-192], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.6e-107], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[j, 4.5e+67], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -6.8 \cdot 10^{+85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-308}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq 8.7 \cdot 10^{-192}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 9.6 \cdot 10^{-107}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+67}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -6.8000000000000007e85 or 4.4999999999999998e67 < j Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in a around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
Taylor expanded in c around inf 39.2%
*-commutative39.2%
Simplified39.2%
if -6.8000000000000007e85 < j < 1.4999999999999999e-308Initial program 73.3%
associate-+l-73.3%
*-commutative73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in a around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in c around 0 38.1%
*-commutative38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if 1.4999999999999999e-308 < j < 8.7000000000000001e-192Initial program 69.3%
associate-+l-69.3%
*-commutative69.3%
sub-neg69.3%
sub-neg69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in z around inf 74.3%
Taylor expanded in y around inf 69.1%
if 8.7000000000000001e-192 < j < 9.59999999999999977e-107Initial program 56.9%
associate-+l-56.9%
*-commutative56.9%
sub-neg56.9%
sub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in z around inf 51.1%
Taylor expanded in y around 0 41.3%
mul-1-neg41.3%
*-commutative41.3%
*-commutative41.3%
distribute-rgt-neg-in41.3%
Simplified41.3%
if 9.59999999999999977e-107 < j < 4.4999999999999998e67Initial program 82.8%
associate-+l-82.8%
*-commutative82.8%
sub-neg82.8%
sub-neg82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in a around 0 78.2%
mul-1-neg78.2%
Simplified78.2%
Taylor expanded in x around inf 44.5%
Taylor expanded in y around inf 34.0%
*-commutative34.0%
Simplified34.0%
Final simplification40.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -1e+86)
t_1
(if (<= j 2.5e-305)
(* a (* x (- t)))
(if (<= j 8.7e-192)
(* z (* x y))
(if (<= j 9.2e-79)
(* z (* b (- c)))
(if (<= j 1.2e+67) (* 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 = a * (c * j);
double tmp;
if (j <= -1e+86) {
tmp = t_1;
} else if (j <= 2.5e-305) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 9.2e-79) {
tmp = z * (b * -c);
} else if (j <= 1.2e+67) {
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 = a * (c * j)
if (j <= (-1d+86)) then
tmp = t_1
else if (j <= 2.5d-305) then
tmp = a * (x * -t)
else if (j <= 8.7d-192) then
tmp = z * (x * y)
else if (j <= 9.2d-79) then
tmp = z * (b * -c)
else if (j <= 1.2d+67) 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 = a * (c * j);
double tmp;
if (j <= -1e+86) {
tmp = t_1;
} else if (j <= 2.5e-305) {
tmp = a * (x * -t);
} else if (j <= 8.7e-192) {
tmp = z * (x * y);
} else if (j <= 9.2e-79) {
tmp = z * (b * -c);
} else if (j <= 1.2e+67) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -1e+86: tmp = t_1 elif j <= 2.5e-305: tmp = a * (x * -t) elif j <= 8.7e-192: tmp = z * (x * y) elif j <= 9.2e-79: tmp = z * (b * -c) elif j <= 1.2e+67: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -1e+86) tmp = t_1; elseif (j <= 2.5e-305) tmp = Float64(a * Float64(x * Float64(-t))); elseif (j <= 8.7e-192) tmp = Float64(z * Float64(x * y)); elseif (j <= 9.2e-79) tmp = Float64(z * Float64(b * Float64(-c))); elseif (j <= 1.2e+67) 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 = a * (c * j); tmp = 0.0; if (j <= -1e+86) tmp = t_1; elseif (j <= 2.5e-305) tmp = a * (x * -t); elseif (j <= 8.7e-192) tmp = z * (x * y); elseif (j <= 9.2e-79) tmp = z * (b * -c); elseif (j <= 1.2e+67) 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[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1e+86], t$95$1, If[LessEqual[j, 2.5e-305], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.7e-192], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.2e-79], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.2e+67], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -1 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{-305}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq 8.7 \cdot 10^{-192}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 9.2 \cdot 10^{-79}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{+67}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -1e86 or 1.20000000000000001e67 < j Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in a around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
Taylor expanded in c around inf 39.2%
*-commutative39.2%
Simplified39.2%
if -1e86 < j < 2.49999999999999993e-305Initial program 73.3%
associate-+l-73.3%
*-commutative73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in a around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in c around 0 38.1%
*-commutative38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if 2.49999999999999993e-305 < j < 8.7000000000000001e-192Initial program 69.3%
associate-+l-69.3%
*-commutative69.3%
sub-neg69.3%
sub-neg69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in z around inf 74.3%
Taylor expanded in y around inf 69.1%
if 8.7000000000000001e-192 < j < 9.20000000000000047e-79Initial program 64.3%
associate-+l-64.3%
*-commutative64.3%
sub-neg64.3%
sub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around inf 45.5%
Taylor expanded in y around 0 38.1%
mul-1-neg38.1%
distribute-lft-neg-out38.1%
*-commutative38.1%
Simplified38.1%
if 9.20000000000000047e-79 < j < 1.20000000000000001e67Initial program 82.2%
associate-+l-82.2%
*-commutative82.2%
sub-neg82.2%
sub-neg82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in a around 0 82.2%
mul-1-neg82.2%
Simplified82.2%
Taylor expanded in x around inf 47.4%
Taylor expanded in y around inf 37.9%
*-commutative37.9%
Simplified37.9%
Final simplification40.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i 2.2e+125) (* a (- (* c j) (* x t))) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= 2.2e+125) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= 2.2d+125) then
tmp = a * ((c * j) - (x * t))
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= 2.2e+125) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= 2.2e+125: tmp = a * ((c * j) - (x * t)) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= 2.2e+125) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= 2.2e+125) tmp = a * ((c * j) - (x * t)); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, 2.2e+125], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq 2.2 \cdot 10^{+125}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if i < 2.19999999999999991e125Initial program 73.2%
associate-+l-73.2%
*-commutative73.2%
sub-neg73.2%
sub-neg73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in a around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
Simplified45.0%
if 2.19999999999999991e125 < i Initial program 67.3%
associate-+l-67.3%
*-commutative67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in i around inf 73.3%
distribute-lft-out--73.3%
Simplified73.3%
Taylor expanded in y around 0 47.3%
mul-1-neg47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
Final simplification45.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -2e-33) (not (<= z 8e-38))) (* z (* x y)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2e-33) || !(z <= 8e-38)) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-2d-33)) .or. (.not. (z <= 8d-38))) then
tmp = z * (x * y)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2e-33) || !(z <= 8e-38)) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -2e-33) or not (z <= 8e-38): tmp = z * (x * y) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -2e-33) || !(z <= 8e-38)) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -2e-33) || ~((z <= 8e-38))) tmp = z * (x * y); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -2e-33], N[Not[LessEqual[z, 8e-38]], $MachinePrecision]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-33} \lor \neg \left(z \leq 8 \cdot 10^{-38}\right):\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if z < -2.0000000000000001e-33 or 7.9999999999999997e-38 < z Initial program 66.3%
associate-+l-66.3%
*-commutative66.3%
sub-neg66.3%
sub-neg66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in z around inf 62.5%
Taylor expanded in y around inf 42.1%
if -2.0000000000000001e-33 < z < 7.9999999999999997e-38Initial program 78.3%
+-commutative78.3%
fma-def79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in b around 0 64.7%
Taylor expanded in c around inf 27.6%
Final simplification34.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -6.5e-34) (* x (* y z)) (if (<= z 2.3e-44) (* c (* a j)) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.5e-34) {
tmp = x * (y * z);
} else if (z <= 2.3e-44) {
tmp = c * (a * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.5d-34)) then
tmp = x * (y * z)
else if (z <= 2.3d-44) then
tmp = c * (a * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.5e-34) {
tmp = x * (y * z);
} else if (z <= 2.3e-44) {
tmp = c * (a * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.5e-34: tmp = x * (y * z) elif z <= 2.3e-44: tmp = c * (a * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.5e-34) tmp = Float64(x * Float64(y * z)); elseif (z <= 2.3e-44) tmp = Float64(c * Float64(a * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.5e-34) tmp = x * (y * z); elseif (z <= 2.3e-44) tmp = c * (a * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.5e-34], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e-44], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{-34}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-44}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -6.49999999999999985e-34Initial program 57.6%
associate-+l-57.6%
*-commutative57.6%
sub-neg57.6%
sub-neg57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in a around 0 60.6%
mul-1-neg60.6%
Simplified60.6%
Taylor expanded in x around inf 50.3%
Taylor expanded in y around inf 38.5%
*-commutative38.5%
Simplified38.5%
if -6.49999999999999985e-34 < z < 2.29999999999999998e-44Initial program 78.3%
+-commutative78.3%
fma-def79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in b around 0 64.7%
Taylor expanded in c around inf 27.6%
if 2.29999999999999998e-44 < z Initial program 76.3%
associate-+l-76.3%
*-commutative76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in z around inf 66.8%
Taylor expanded in y around inf 48.1%
Final simplification35.1%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 72.4%
associate-+l-72.4%
*-commutative72.4%
sub-neg72.4%
sub-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in a around inf 41.3%
+-commutative41.3%
mul-1-neg41.3%
unsub-neg41.3%
Simplified41.3%
Taylor expanded in c around inf 20.5%
*-commutative20.5%
Simplified20.5%
Final simplification20.5%
(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 2023268
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))