
(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 19 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 (* y (* x z)))
(t_2 (* a (- (* x t) (* c j))))
(t_3 (* j (- (* a c) (* y i))))
(t_4 (+ (- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i)))) t_3)))
(if (<= t_4 -1e+307)
(+ (- (- t_1 (* y (* i j))) t_2) (* b (- (* t i) (* z c))))
(if (<= t_4 2e+304)
t_4
(if (<= t_4 INFINITY)
(+ (fma z (- (* x y) (* b c)) (* t (- (* b i) (* x a)))) t_3)
(- t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * ((x * t) - (c * j));
double t_3 = j * ((a * c) - (y * i));
double t_4 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + t_3;
double tmp;
if (t_4 <= -1e+307) {
tmp = ((t_1 - (y * (i * j))) - t_2) + (b * ((t * i) - (z * c)));
} else if (t_4 <= 2e+304) {
tmp = t_4;
} else if (t_4 <= ((double) INFINITY)) {
tmp = fma(z, ((x * y) - (b * c)), (t * ((b * i) - (x * a)))) + t_3;
} else {
tmp = t_1 - t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(Float64(x * t) - Float64(c * j))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_4 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) + t_3) tmp = 0.0 if (t_4 <= -1e+307) tmp = Float64(Float64(Float64(t_1 - Float64(y * Float64(i * j))) - t_2) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (t_4 <= 2e+304) tmp = t_4; elseif (t_4 <= Inf) tmp = Float64(fma(z, Float64(Float64(x * y) - Float64(b * c)), Float64(t * Float64(Float64(b * i) - Float64(x * a)))) + t_3); else tmp = Float64(t_1 - t_2); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]}, If[LessEqual[t$95$4, -1e+307], N[(N[(N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 2e+304], t$95$4, If[LessEqual[t$95$4, Infinity], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], N[(t$95$1 - t$95$2), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(x \cdot t - c \cdot j\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_4 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + t_3\\
\mathbf{if}\;t_4 \leq -1 \cdot 10^{+307}:\\
\;\;\;\;\left(\left(t_1 - y \cdot \left(i \cdot j\right)\right) - t_2\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t_4 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t_4 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(z, x \cdot y - b \cdot c, t \cdot \left(b \cdot i - x \cdot a\right)\right) + t_3\\
\mathbf{else}:\\
\;\;\;\;t_1 - t_2\\
\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)))) < -9.99999999999999986e306Initial program 84.4%
cancel-sign-sub84.4%
cancel-sign-sub-inv84.4%
*-commutative84.4%
remove-double-neg84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in a around 0 94.5%
if -9.99999999999999986e306 < (+.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)))) < 1.9999999999999999e304Initial program 97.5%
if 1.9999999999999999e304 < (+.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 82.7%
cancel-sign-sub82.7%
cancel-sign-sub-inv82.7%
*-commutative82.7%
remove-double-neg82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in z around 0 92.0%
associate--l+92.0%
*-commutative92.0%
fma-def92.0%
sub-neg92.0%
mul-1-neg92.0%
remove-double-neg92.0%
*-commutative92.0%
associate-*r*92.0%
associate-*l*92.0%
*-commutative92.0%
associate-*r*92.1%
distribute-rgt-in92.1%
+-commutative92.1%
mul-1-neg92.1%
unsub-neg92.1%
Simplified92.1%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in a around 0 26.9%
Taylor expanded in i around 0 36.7%
sub-neg36.7%
+-commutative36.7%
associate-+l+36.7%
mul-1-neg36.7%
*-commutative36.7%
unsub-neg36.7%
*-commutative36.7%
*-commutative36.7%
associate-*r*34.8%
associate-*r*36.6%
distribute-lft-neg-in36.6%
mul-1-neg36.6%
distribute-rgt-in42.4%
mul-1-neg42.4%
sub-neg42.4%
Simplified42.4%
Taylor expanded in b around 0 50.1%
Final simplification85.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z)))
(t_2 (* a (- (* x t) (* c j))))
(t_3
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(* j (- (* a c) (* y i))))))
(if (<= t_3 -1e+307)
(+ (- (- t_1 (* y (* i j))) t_2) (* b (- (* t i) (* z c))))
(if (<= t_3 INFINITY) t_3 (- t_1 t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * ((x * t) - (c * j));
double t_3 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_3 <= -1e+307) {
tmp = ((t_1 - (y * (i * j))) - t_2) + (b * ((t * i) - (z * c)));
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = t_1 - t_2;
}
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 = y * (x * z);
double t_2 = a * ((x * t) - (c * j));
double t_3 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_3 <= -1e+307) {
tmp = ((t_1 - (y * (i * j))) - t_2) + (b * ((t * i) - (z * c)));
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = t_1 - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * ((x * t) - (c * j)) t_3 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_3 <= -1e+307: tmp = ((t_1 - (y * (i * j))) - t_2) + (b * ((t * i) - (z * c))) elif t_3 <= math.inf: tmp = t_3 else: tmp = t_1 - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(Float64(x * t) - Float64(c * j))) t_3 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_3 <= -1e+307) tmp = Float64(Float64(Float64(t_1 - Float64(y * Float64(i * j))) - t_2) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (t_3 <= Inf) tmp = t_3; else tmp = Float64(t_1 - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = a * ((x * t) - (c * j)); t_3 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_3 <= -1e+307) tmp = ((t_1 - (y * (i * j))) - t_2) + (b * ((t * i) - (z * c))); elseif (t_3 <= Inf) tmp = t_3; else tmp = t_1 - t_2; 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]}, Block[{t$95$2 = N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -1e+307], N[(N[(N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], t$95$3, N[(t$95$1 - t$95$2), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(x \cdot t - c \cdot j\right)\\
t_3 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_3 \leq -1 \cdot 10^{+307}:\\
\;\;\;\;\left(\left(t_1 - y \cdot \left(i \cdot j\right)\right) - t_2\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t_3 \leq \infty:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1 - t_2\\
\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)))) < -9.99999999999999986e306Initial program 84.4%
cancel-sign-sub84.4%
cancel-sign-sub-inv84.4%
*-commutative84.4%
remove-double-neg84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in a around 0 94.5%
if -9.99999999999999986e306 < (+.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 91.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in a around 0 26.9%
Taylor expanded in i around 0 36.7%
sub-neg36.7%
+-commutative36.7%
associate-+l+36.7%
mul-1-neg36.7%
*-commutative36.7%
unsub-neg36.7%
*-commutative36.7%
*-commutative36.7%
associate-*r*34.8%
associate-*r*36.6%
distribute-lft-neg-in36.6%
mul-1-neg36.6%
distribute-rgt-in42.4%
mul-1-neg42.4%
sub-neg42.4%
Simplified42.4%
Taylor expanded in b around 0 50.1%
Final simplification83.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (- (* y (* x z)) (* a (- (* x t) (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (y * (x * z)) - (a * ((x * t) - (c * j)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (y * (x * z)) - (a * ((x * t) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (y * (x * z)) - (a * ((x * t) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (y * (x * z)) - (a * ((x * t) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in a around 0 26.9%
Taylor expanded in i around 0 36.7%
sub-neg36.7%
+-commutative36.7%
associate-+l+36.7%
mul-1-neg36.7%
*-commutative36.7%
unsub-neg36.7%
*-commutative36.7%
*-commutative36.7%
associate-*r*34.8%
associate-*r*36.6%
distribute-lft-neg-in36.6%
mul-1-neg36.6%
distribute-rgt-in42.4%
mul-1-neg42.4%
sub-neg42.4%
Simplified42.4%
Taylor expanded in b around 0 50.1%
Final simplification81.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (* x z)) (* a (- (* x t) (* c j)))))
(t_2 (+ (* t (- (* b i) (* x a))) (* z (- (* x y) (* b c)))))
(t_3 (- (* j (- (* a c) (* y i))) (* c (* z b)))))
(if (<= j -2600.0)
t_3
(if (<= j 1.7e-168)
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(if (<= j 5.3e-20)
t_2
(if (<= j 5.8e+18)
t_1
(if (<= j 1.3e+62) t_2 (if (<= j 1.32e+129) 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 = (y * (x * z)) - (a * ((x * t) - (c * j)));
double t_2 = (t * ((b * i) - (x * a))) + (z * ((x * y) - (b * c)));
double t_3 = (j * ((a * c) - (y * i))) - (c * (z * b));
double tmp;
if (j <= -2600.0) {
tmp = t_3;
} else if (j <= 1.7e-168) {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
} else if (j <= 5.3e-20) {
tmp = t_2;
} else if (j <= 5.8e+18) {
tmp = t_1;
} else if (j <= 1.3e+62) {
tmp = t_2;
} else if (j <= 1.32e+129) {
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 = (y * (x * z)) - (a * ((x * t) - (c * j)))
t_2 = (t * ((b * i) - (x * a))) + (z * ((x * y) - (b * c)))
t_3 = (j * ((a * c) - (y * i))) - (c * (z * b))
if (j <= (-2600.0d0)) then
tmp = t_3
else if (j <= 1.7d-168) then
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))
else if (j <= 5.3d-20) then
tmp = t_2
else if (j <= 5.8d+18) then
tmp = t_1
else if (j <= 1.3d+62) then
tmp = t_2
else if (j <= 1.32d+129) 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 = (y * (x * z)) - (a * ((x * t) - (c * j)));
double t_2 = (t * ((b * i) - (x * a))) + (z * ((x * y) - (b * c)));
double t_3 = (j * ((a * c) - (y * i))) - (c * (z * b));
double tmp;
if (j <= -2600.0) {
tmp = t_3;
} else if (j <= 1.7e-168) {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
} else if (j <= 5.3e-20) {
tmp = t_2;
} else if (j <= 5.8e+18) {
tmp = t_1;
} else if (j <= 1.3e+62) {
tmp = t_2;
} else if (j <= 1.32e+129) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) - (a * ((x * t) - (c * j))) t_2 = (t * ((b * i) - (x * a))) + (z * ((x * y) - (b * c))) t_3 = (j * ((a * c) - (y * i))) - (c * (z * b)) tmp = 0 if j <= -2600.0: tmp = t_3 elif j <= 1.7e-168: tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))) elif j <= 5.3e-20: tmp = t_2 elif j <= 5.8e+18: tmp = t_1 elif j <= 1.3e+62: tmp = t_2 elif j <= 1.32e+129: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))) t_2 = Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))) t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(c * Float64(z * b))) tmp = 0.0 if (j <= -2600.0) tmp = t_3; elseif (j <= 1.7e-168) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); elseif (j <= 5.3e-20) tmp = t_2; elseif (j <= 5.8e+18) tmp = t_1; elseif (j <= 1.3e+62) tmp = t_2; elseif (j <= 1.32e+129) 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 = (y * (x * z)) - (a * ((x * t) - (c * j))); t_2 = (t * ((b * i) - (x * a))) + (z * ((x * y) - (b * c))); t_3 = (j * ((a * c) - (y * i))) - (c * (z * b)); tmp = 0.0; if (j <= -2600.0) tmp = t_3; elseif (j <= 1.7e-168) tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))); elseif (j <= 5.3e-20) tmp = t_2; elseif (j <= 5.8e+18) tmp = t_1; elseif (j <= 1.3e+62) tmp = t_2; elseif (j <= 1.32e+129) 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[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2600.0], t$95$3, If[LessEqual[j, 1.7e-168], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.3e-20], t$95$2, If[LessEqual[j, 5.8e+18], t$95$1, If[LessEqual[j, 1.3e+62], t$95$2, If[LessEqual[j, 1.32e+129], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{if}\;j \leq -2600:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{-168}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{elif}\;j \leq 5.3 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+62}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.32 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -2600 or 1.32e129 < j Initial program 70.0%
cancel-sign-sub70.0%
cancel-sign-sub-inv70.0%
*-commutative70.0%
remove-double-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in c around inf 69.6%
mul-1-neg69.6%
*-commutative69.6%
distribute-rgt-neg-in69.6%
distribute-rgt-neg-in69.6%
Simplified69.6%
if -2600 < j < 1.70000000000000011e-168Initial program 79.9%
cancel-sign-sub79.9%
cancel-sign-sub-inv79.9%
*-commutative79.9%
remove-double-neg79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in j around 0 81.1%
if 1.70000000000000011e-168 < j < 5.3000000000000002e-20 or 5.8e18 < j < 1.29999999999999992e62Initial program 65.6%
cancel-sign-sub65.6%
cancel-sign-sub-inv65.6%
*-commutative65.6%
remove-double-neg65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in z around 0 76.7%
associate--l+76.7%
*-commutative76.7%
fma-def76.7%
sub-neg76.7%
mul-1-neg76.7%
remove-double-neg76.7%
*-commutative76.7%
associate-*r*81.6%
associate-*l*81.6%
*-commutative81.6%
associate-*r*84.4%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
Simplified84.4%
Taylor expanded in j around 0 84.3%
if 5.3000000000000002e-20 < j < 5.8e18 or 1.29999999999999992e62 < j < 1.32e129Initial program 52.6%
cancel-sign-sub52.6%
cancel-sign-sub-inv52.6%
*-commutative52.6%
remove-double-neg52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in a around 0 70.1%
Taylor expanded in i around 0 70.1%
sub-neg70.1%
+-commutative70.1%
associate-+l+70.1%
mul-1-neg70.1%
*-commutative70.1%
unsub-neg70.1%
*-commutative70.1%
*-commutative70.1%
associate-*r*65.8%
associate-*r*65.4%
distribute-lft-neg-in65.4%
mul-1-neg65.4%
distribute-rgt-in69.7%
mul-1-neg69.7%
sub-neg69.7%
Simplified69.7%
Taylor expanded in b around 0 82.8%
Final simplification77.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.4e+100) (not (<= i 9.2e+86))) (* i (- (* t b) (* y j))) (- (* z (- (* x y) (* b c))) (* a (- (* x t) (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.4e+100) || !(i <= 9.2e+86)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-1.4d+100)) .or. (.not. (i <= 9.2d+86))) then
tmp = i * ((t * b) - (y * j))
else
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.4e+100) || !(i <= 9.2e+86)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.4e+100) or not (i <= 9.2e+86): tmp = i * ((t * b) - (y * j)) else: tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.4e+100) || !(i <= 9.2e+86)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -1.4e+100) || ~((i <= 9.2e+86))) tmp = i * ((t * b) - (y * j)); else tmp = (z * ((x * y) - (b * c))) - (a * ((x * t) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.4e+100], N[Not[LessEqual[i, 9.2e+86]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.4 \cdot 10^{+100} \lor \neg \left(i \leq 9.2 \cdot 10^{+86}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\end{array}
\end{array}
if i < -1.3999999999999999e100 or 9.19999999999999958e86 < i Initial program 58.3%
cancel-sign-sub58.3%
cancel-sign-sub-inv58.3%
*-commutative58.3%
remove-double-neg58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in i around inf 69.8%
associate-*r*69.8%
neg-mul-169.8%
cancel-sign-sub69.8%
+-commutative69.8%
mul-1-neg69.8%
unsub-neg69.8%
*-commutative69.8%
Simplified69.8%
if -1.3999999999999999e100 < i < 9.19999999999999958e86Initial program 77.2%
cancel-sign-sub77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
remove-double-neg77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in a around 0 76.1%
Taylor expanded in i around 0 68.0%
sub-neg68.0%
+-commutative68.0%
associate-+l+68.0%
mul-1-neg68.0%
*-commutative68.0%
unsub-neg68.0%
*-commutative68.0%
*-commutative68.0%
associate-*r*68.9%
associate-*r*67.7%
distribute-lft-neg-in67.7%
mul-1-neg67.7%
distribute-rgt-in69.3%
mul-1-neg69.3%
sub-neg69.3%
Simplified69.3%
Final simplification69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* x t) (* c j)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= a -2.5e-26)
(- t_2 t_1)
(if (<= a 2.3e+75)
(+ (* t (- (* b i) (* x a))) t_2)
(- (* y (* x 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 * ((x * t) - (c * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (a <= -2.5e-26) {
tmp = t_2 - t_1;
} else if (a <= 2.3e+75) {
tmp = (t * ((b * i) - (x * a))) + t_2;
} else {
tmp = (y * (x * z)) - 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 = a * ((x * t) - (c * j))
t_2 = z * ((x * y) - (b * c))
if (a <= (-2.5d-26)) then
tmp = t_2 - t_1
else if (a <= 2.3d+75) then
tmp = (t * ((b * i) - (x * a))) + t_2
else
tmp = (y * (x * z)) - 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 * ((x * t) - (c * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (a <= -2.5e-26) {
tmp = t_2 - t_1;
} else if (a <= 2.3e+75) {
tmp = (t * ((b * i) - (x * a))) + t_2;
} else {
tmp = (y * (x * z)) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((x * t) - (c * j)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if a <= -2.5e-26: tmp = t_2 - t_1 elif a <= 2.3e+75: tmp = (t * ((b * i) - (x * a))) + t_2 else: tmp = (y * (x * z)) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(x * t) - Float64(c * j))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (a <= -2.5e-26) tmp = Float64(t_2 - t_1); elseif (a <= 2.3e+75) tmp = Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) + t_2); else tmp = Float64(Float64(y * Float64(x * z)) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((x * t) - (c * j)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (a <= -2.5e-26) tmp = t_2 - t_1; elseif (a <= 2.3e+75) tmp = (t * ((b * i) - (x * a))) + t_2; else tmp = (y * (x * z)) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.5e-26], N[(t$95$2 - t$95$1), $MachinePrecision], If[LessEqual[a, 2.3e+75], N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot t - c \cdot j\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;a \leq -2.5 \cdot 10^{-26}:\\
\;\;\;\;t_2 - t_1\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+75}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right) + t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - t_1\\
\end{array}
\end{array}
if a < -2.5000000000000001e-26Initial program 66.0%
cancel-sign-sub66.0%
cancel-sign-sub-inv66.0%
*-commutative66.0%
remove-double-neg66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in a around 0 77.1%
Taylor expanded in i around 0 70.1%
sub-neg70.1%
+-commutative70.1%
associate-+l+70.1%
mul-1-neg70.1%
*-commutative70.1%
unsub-neg70.1%
*-commutative70.1%
*-commutative70.1%
associate-*r*71.1%
associate-*r*70.1%
distribute-lft-neg-in70.1%
mul-1-neg70.1%
distribute-rgt-in71.2%
mul-1-neg71.2%
sub-neg71.2%
Simplified71.2%
if -2.5000000000000001e-26 < a < 2.2999999999999999e75Initial program 76.4%
cancel-sign-sub76.4%
cancel-sign-sub-inv76.4%
*-commutative76.4%
remove-double-neg76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in z around 0 70.1%
associate--l+70.1%
*-commutative70.1%
fma-def70.1%
sub-neg70.1%
mul-1-neg70.1%
remove-double-neg70.1%
*-commutative70.1%
associate-*r*73.8%
associate-*l*73.8%
*-commutative73.8%
associate-*r*76.8%
distribute-rgt-in76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in j around 0 65.1%
if 2.2999999999999999e75 < a Initial program 67.0%
cancel-sign-sub67.0%
cancel-sign-sub-inv67.0%
*-commutative67.0%
remove-double-neg67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in a around 0 79.5%
Taylor expanded in i around 0 80.0%
sub-neg80.0%
+-commutative80.0%
associate-+l+80.0%
mul-1-neg80.0%
*-commutative80.0%
unsub-neg80.0%
*-commutative80.0%
*-commutative80.0%
associate-*r*77.7%
associate-*r*79.8%
distribute-lft-neg-in79.8%
mul-1-neg79.8%
distribute-rgt-in79.8%
mul-1-neg79.8%
sub-neg79.8%
Simplified79.8%
Taylor expanded in b around 0 87.3%
Final simplification70.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -7e+99) (not (<= i 2.9e+86))) (* i (- (* t b) (* y j))) (- (* y (* x z)) (* a (- (* x t) (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -7e+99) || !(i <= 2.9e+86)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (y * (x * z)) - (a * ((x * t) - (c * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-7d+99)) .or. (.not. (i <= 2.9d+86))) then
tmp = i * ((t * b) - (y * j))
else
tmp = (y * (x * z)) - (a * ((x * t) - (c * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -7e+99) || !(i <= 2.9e+86)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (y * (x * z)) - (a * ((x * t) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -7e+99) or not (i <= 2.9e+86): tmp = i * ((t * b) - (y * j)) else: tmp = (y * (x * z)) - (a * ((x * t) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -7e+99) || !(i <= 2.9e+86)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -7e+99) || ~((i <= 2.9e+86))) tmp = i * ((t * b) - (y * j)); else tmp = (y * (x * z)) - (a * ((x * t) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -7e+99], N[Not[LessEqual[i, 2.9e+86]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7 \cdot 10^{+99} \lor \neg \left(i \leq 2.9 \cdot 10^{+86}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\end{array}
\end{array}
if i < -6.9999999999999995e99 or 2.8999999999999999e86 < i Initial program 58.3%
cancel-sign-sub58.3%
cancel-sign-sub-inv58.3%
*-commutative58.3%
remove-double-neg58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in i around inf 69.8%
associate-*r*69.8%
neg-mul-169.8%
cancel-sign-sub69.8%
+-commutative69.8%
mul-1-neg69.8%
unsub-neg69.8%
*-commutative69.8%
Simplified69.8%
if -6.9999999999999995e99 < i < 2.8999999999999999e86Initial program 77.2%
cancel-sign-sub77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
remove-double-neg77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in a around 0 76.1%
Taylor expanded in i around 0 68.0%
sub-neg68.0%
+-commutative68.0%
associate-+l+68.0%
mul-1-neg68.0%
*-commutative68.0%
unsub-neg68.0%
*-commutative68.0%
*-commutative68.0%
associate-*r*68.9%
associate-*r*67.7%
distribute-lft-neg-in67.7%
mul-1-neg67.7%
distribute-rgt-in69.3%
mul-1-neg69.3%
sub-neg69.3%
Simplified69.3%
Taylor expanded in b around 0 61.1%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -29000000000000.0)
(* y (* i (- j)))
(if (<= y 5e-275)
(* c (- (* a j) (* z b)))
(if (<= y 96000000000.0) (* a (- (* c j) (* x t))) (* 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 (y <= -29000000000000.0) {
tmp = y * (i * -j);
} else if (y <= 5e-275) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 96000000000.0) {
tmp = a * ((c * j) - (x * t));
} 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 (y <= (-29000000000000.0d0)) then
tmp = y * (i * -j)
else if (y <= 5d-275) then
tmp = c * ((a * j) - (z * b))
else if (y <= 96000000000.0d0) then
tmp = a * ((c * j) - (x * t))
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 (y <= -29000000000000.0) {
tmp = y * (i * -j);
} else if (y <= 5e-275) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 96000000000.0) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -29000000000000.0: tmp = y * (i * -j) elif y <= 5e-275: tmp = c * ((a * j) - (z * b)) elif y <= 96000000000.0: tmp = a * ((c * j) - (x * t)) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -29000000000000.0) tmp = Float64(y * Float64(i * Float64(-j))); elseif (y <= 5e-275) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 96000000000.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); 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 (y <= -29000000000000.0) tmp = y * (i * -j); elseif (y <= 5e-275) tmp = c * ((a * j) - (z * b)); elseif (y <= 96000000000.0) tmp = a * ((c * j) - (x * t)); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -29000000000000.0], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e-275], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 96000000000.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -29000000000000:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-275}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 96000000000:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -2.9e13Initial program 55.5%
cancel-sign-sub55.5%
cancel-sign-sub-inv55.5%
*-commutative55.5%
remove-double-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in j around inf 39.0%
Taylor expanded in c around 0 41.2%
associate-*r*37.5%
associate-*r*37.5%
neg-mul-137.5%
distribute-rgt-neg-in37.5%
associate-*r*41.2%
Simplified41.2%
if -2.9e13 < y < 4.99999999999999983e-275Initial program 83.7%
cancel-sign-sub83.7%
cancel-sign-sub-inv83.7%
*-commutative83.7%
remove-double-neg83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in c around inf 60.3%
*-commutative60.3%
Simplified60.3%
if 4.99999999999999983e-275 < y < 9.6e10Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in a around 0 66.4%
Taylor expanded in a around inf 56.1%
mul-1-neg56.1%
*-commutative56.1%
unsub-neg56.1%
*-commutative56.1%
Simplified56.1%
if 9.6e10 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in z around inf 59.0%
Taylor expanded in y around inf 51.1%
Final simplification53.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -7800000000000.0)
(* i (- (* t b) (* y j)))
(if (<= y 3.6e-276)
(* c (- (* a j) (* z b)))
(if (<= y 90000000000.0) (* a (- (* c j) (* x t))) (* 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 (y <= -7800000000000.0) {
tmp = i * ((t * b) - (y * j));
} else if (y <= 3.6e-276) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 90000000000.0) {
tmp = a * ((c * j) - (x * t));
} 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 (y <= (-7800000000000.0d0)) then
tmp = i * ((t * b) - (y * j))
else if (y <= 3.6d-276) then
tmp = c * ((a * j) - (z * b))
else if (y <= 90000000000.0d0) then
tmp = a * ((c * j) - (x * t))
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 (y <= -7800000000000.0) {
tmp = i * ((t * b) - (y * j));
} else if (y <= 3.6e-276) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 90000000000.0) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -7800000000000.0: tmp = i * ((t * b) - (y * j)) elif y <= 3.6e-276: tmp = c * ((a * j) - (z * b)) elif y <= 90000000000.0: tmp = a * ((c * j) - (x * t)) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -7800000000000.0) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (y <= 3.6e-276) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 90000000000.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); 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 (y <= -7800000000000.0) tmp = i * ((t * b) - (y * j)); elseif (y <= 3.6e-276) tmp = c * ((a * j) - (z * b)); elseif (y <= 90000000000.0) tmp = a * ((c * j) - (x * t)); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -7800000000000.0], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e-276], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 90000000000.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7800000000000:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-276}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 90000000000:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -7.8e12Initial program 55.5%
cancel-sign-sub55.5%
cancel-sign-sub-inv55.5%
*-commutative55.5%
remove-double-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in i around inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
cancel-sign-sub56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
Simplified56.4%
if -7.8e12 < y < 3.59999999999999994e-276Initial program 83.7%
cancel-sign-sub83.7%
cancel-sign-sub-inv83.7%
*-commutative83.7%
remove-double-neg83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in c around inf 60.3%
*-commutative60.3%
Simplified60.3%
if 3.59999999999999994e-276 < y < 9e10Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in a around 0 66.4%
Taylor expanded in a around inf 56.1%
mul-1-neg56.1%
*-commutative56.1%
unsub-neg56.1%
*-commutative56.1%
Simplified56.1%
if 9e10 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in z around inf 59.0%
Taylor expanded in y around inf 51.1%
Final simplification56.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1350000000000.0)
t_1
(if (<= y 4.5e-276)
(* c (- (* a j) (* z b)))
(if (<= y 62000000000.0) (* a (- (* c j) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1350000000000.0) {
tmp = t_1;
} else if (y <= 4.5e-276) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 62000000000.0) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-1350000000000.0d0)) then
tmp = t_1
else if (y <= 4.5d-276) then
tmp = c * ((a * j) - (z * b))
else if (y <= 62000000000.0d0) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1350000000000.0) {
tmp = t_1;
} else if (y <= 4.5e-276) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 62000000000.0) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1350000000000.0: tmp = t_1 elif y <= 4.5e-276: tmp = c * ((a * j) - (z * b)) elif y <= 62000000000.0: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1350000000000.0) tmp = t_1; elseif (y <= 4.5e-276) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 62000000000.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1350000000000.0) tmp = t_1; elseif (y <= 4.5e-276) tmp = c * ((a * j) - (z * b)); elseif (y <= 62000000000.0) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1350000000000.0], t$95$1, If[LessEqual[y, 4.5e-276], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 62000000000.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1350000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-276}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 62000000000:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.35e12 or 6.2e10 < y Initial program 59.7%
cancel-sign-sub59.7%
cancel-sign-sub-inv59.7%
*-commutative59.7%
remove-double-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in a around 0 72.4%
Taylor expanded in y around inf 65.5%
*-commutative65.5%
mul-1-neg65.5%
*-commutative65.5%
unsub-neg65.5%
*-commutative65.5%
Simplified65.5%
if -1.35e12 < y < 4.49999999999999962e-276Initial program 83.7%
cancel-sign-sub83.7%
cancel-sign-sub-inv83.7%
*-commutative83.7%
remove-double-neg83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in c around inf 60.3%
*-commutative60.3%
Simplified60.3%
if 4.49999999999999962e-276 < y < 6.2e10Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in a around 0 66.4%
Taylor expanded in a around inf 56.1%
mul-1-neg56.1%
*-commutative56.1%
unsub-neg56.1%
*-commutative56.1%
Simplified56.1%
Final simplification61.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* x t) (- a))))
(if (<= y -5.1e+153)
(* y (* x z))
(if (<= y -1.15e-11)
t_1
(if (<= y 2.2e-109)
(* j (* a c))
(if (<= y 23000000000.0) t_1 (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * t) * -a;
double tmp;
if (y <= -5.1e+153) {
tmp = y * (x * z);
} else if (y <= -1.15e-11) {
tmp = t_1;
} else if (y <= 2.2e-109) {
tmp = j * (a * c);
} else if (y <= 23000000000.0) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (x * t) * -a
if (y <= (-5.1d+153)) then
tmp = y * (x * z)
else if (y <= (-1.15d-11)) then
tmp = t_1
else if (y <= 2.2d-109) then
tmp = j * (a * c)
else if (y <= 23000000000.0d0) then
tmp = t_1
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 t_1 = (x * t) * -a;
double tmp;
if (y <= -5.1e+153) {
tmp = y * (x * z);
} else if (y <= -1.15e-11) {
tmp = t_1;
} else if (y <= 2.2e-109) {
tmp = j * (a * c);
} else if (y <= 23000000000.0) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * t) * -a tmp = 0 if y <= -5.1e+153: tmp = y * (x * z) elif y <= -1.15e-11: tmp = t_1 elif y <= 2.2e-109: tmp = j * (a * c) elif y <= 23000000000.0: tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * t) * Float64(-a)) tmp = 0.0 if (y <= -5.1e+153) tmp = Float64(y * Float64(x * z)); elseif (y <= -1.15e-11) tmp = t_1; elseif (y <= 2.2e-109) tmp = Float64(j * Float64(a * c)); elseif (y <= 23000000000.0) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * t) * -a; tmp = 0.0; if (y <= -5.1e+153) tmp = y * (x * z); elseif (y <= -1.15e-11) tmp = t_1; elseif (y <= 2.2e-109) tmp = j * (a * c); elseif (y <= 23000000000.0) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]}, If[LessEqual[y, -5.1e+153], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.15e-11], t$95$1, If[LessEqual[y, 2.2e-109], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 23000000000.0], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{+153}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -1.15 \cdot 10^{-11}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-109}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 23000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -5.10000000000000035e153Initial program 45.3%
cancel-sign-sub45.3%
cancel-sign-sub-inv45.3%
*-commutative45.3%
remove-double-neg45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in x around inf 42.6%
Taylor expanded in y around inf 45.7%
if -5.10000000000000035e153 < y < -1.15000000000000007e-11 or 2.1999999999999999e-109 < y < 2.3e10Initial program 73.0%
cancel-sign-sub73.0%
cancel-sign-sub-inv73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in a around 0 78.2%
Taylor expanded in a around inf 50.2%
mul-1-neg50.2%
*-commutative50.2%
unsub-neg50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in j around 0 36.6%
mul-1-neg36.6%
distribute-rgt-neg-in36.6%
Simplified36.6%
if -1.15000000000000007e-11 < y < 2.1999999999999999e-109Initial program 82.2%
cancel-sign-sub82.2%
cancel-sign-sub-inv82.2%
*-commutative82.2%
remove-double-neg82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in j around inf 45.6%
Taylor expanded in c around inf 38.0%
if 2.3e10 < y Initial program 62.3%
cancel-sign-sub62.3%
cancel-sign-sub-inv62.3%
*-commutative62.3%
remove-double-neg62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in z around inf 58.0%
Taylor expanded in y around inf 50.3%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -8200000000000.0)
(* i (* y (- j)))
(if (<= y 4.5e-110)
(* j (* a c))
(if (<= y 8.6e-50)
(* (* x t) (- a))
(if (<= y 65000000000.0) (* a (* c 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 (y <= -8200000000000.0) {
tmp = i * (y * -j);
} else if (y <= 4.5e-110) {
tmp = j * (a * c);
} else if (y <= 8.6e-50) {
tmp = (x * t) * -a;
} else if (y <= 65000000000.0) {
tmp = a * (c * 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 (y <= (-8200000000000.0d0)) then
tmp = i * (y * -j)
else if (y <= 4.5d-110) then
tmp = j * (a * c)
else if (y <= 8.6d-50) then
tmp = (x * t) * -a
else if (y <= 65000000000.0d0) then
tmp = a * (c * 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 (y <= -8200000000000.0) {
tmp = i * (y * -j);
} else if (y <= 4.5e-110) {
tmp = j * (a * c);
} else if (y <= 8.6e-50) {
tmp = (x * t) * -a;
} else if (y <= 65000000000.0) {
tmp = a * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -8200000000000.0: tmp = i * (y * -j) elif y <= 4.5e-110: tmp = j * (a * c) elif y <= 8.6e-50: tmp = (x * t) * -a elif y <= 65000000000.0: tmp = a * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -8200000000000.0) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= 4.5e-110) tmp = Float64(j * Float64(a * c)); elseif (y <= 8.6e-50) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (y <= 65000000000.0) tmp = Float64(a * Float64(c * 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 (y <= -8200000000000.0) tmp = i * (y * -j); elseif (y <= 4.5e-110) tmp = j * (a * c); elseif (y <= 8.6e-50) tmp = (x * t) * -a; elseif (y <= 65000000000.0) tmp = a * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -8200000000000.0], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e-110], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e-50], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[y, 65000000000.0], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8200000000000:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-110}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{-50}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;y \leq 65000000000:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -8.2e12Initial program 55.5%
cancel-sign-sub55.5%
cancel-sign-sub-inv55.5%
*-commutative55.5%
remove-double-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in j around inf 39.0%
Taylor expanded in c around 0 41.2%
associate-*r*37.5%
*-commutative37.5%
associate-*r*39.5%
mul-1-neg39.5%
distribute-rgt-neg-in39.5%
distribute-rgt-neg-in39.5%
Simplified39.5%
if -8.2e12 < y < 4.5000000000000001e-110Initial program 81.8%
cancel-sign-sub81.8%
cancel-sign-sub-inv81.8%
*-commutative81.8%
remove-double-neg81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in j around inf 43.6%
Taylor expanded in c around inf 36.5%
if 4.5000000000000001e-110 < y < 8.59999999999999995e-50Initial program 77.4%
cancel-sign-sub77.4%
cancel-sign-sub-inv77.4%
*-commutative77.4%
remove-double-neg77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in a around 0 56.1%
Taylor expanded in a around inf 43.2%
mul-1-neg43.2%
*-commutative43.2%
unsub-neg43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in j around 0 54.3%
mul-1-neg54.3%
distribute-rgt-neg-in54.3%
Simplified54.3%
if 8.59999999999999995e-50 < y < 6.5e10Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in c around inf 29.5%
*-commutative29.5%
Simplified29.5%
Taylor expanded in j around inf 23.1%
*-commutative23.1%
Simplified23.1%
Taylor expanded in c around 0 23.1%
associate-*r*29.1%
*-commutative29.1%
associate-*r*35.3%
Simplified35.3%
if 6.5e10 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in z around inf 59.0%
Taylor expanded in y around inf 51.1%
Final simplification41.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -6200000000000.0)
(* y (* i (- j)))
(if (<= y 6e-110)
(* j (* a c))
(if (<= y 1.08e-49)
(* (* x t) (- a))
(if (<= y 95000000000.0) (* a (* c 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 (y <= -6200000000000.0) {
tmp = y * (i * -j);
} else if (y <= 6e-110) {
tmp = j * (a * c);
} else if (y <= 1.08e-49) {
tmp = (x * t) * -a;
} else if (y <= 95000000000.0) {
tmp = a * (c * 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 (y <= (-6200000000000.0d0)) then
tmp = y * (i * -j)
else if (y <= 6d-110) then
tmp = j * (a * c)
else if (y <= 1.08d-49) then
tmp = (x * t) * -a
else if (y <= 95000000000.0d0) then
tmp = a * (c * 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 (y <= -6200000000000.0) {
tmp = y * (i * -j);
} else if (y <= 6e-110) {
tmp = j * (a * c);
} else if (y <= 1.08e-49) {
tmp = (x * t) * -a;
} else if (y <= 95000000000.0) {
tmp = a * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -6200000000000.0: tmp = y * (i * -j) elif y <= 6e-110: tmp = j * (a * c) elif y <= 1.08e-49: tmp = (x * t) * -a elif y <= 95000000000.0: tmp = a * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -6200000000000.0) tmp = Float64(y * Float64(i * Float64(-j))); elseif (y <= 6e-110) tmp = Float64(j * Float64(a * c)); elseif (y <= 1.08e-49) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (y <= 95000000000.0) tmp = Float64(a * Float64(c * 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 (y <= -6200000000000.0) tmp = y * (i * -j); elseif (y <= 6e-110) tmp = j * (a * c); elseif (y <= 1.08e-49) tmp = (x * t) * -a; elseif (y <= 95000000000.0) tmp = a * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -6200000000000.0], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-110], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.08e-49], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[y, 95000000000.0], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6200000000000:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-110}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 1.08 \cdot 10^{-49}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;y \leq 95000000000:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -6.2e12Initial program 55.5%
cancel-sign-sub55.5%
cancel-sign-sub-inv55.5%
*-commutative55.5%
remove-double-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in j around inf 39.0%
Taylor expanded in c around 0 41.2%
associate-*r*37.5%
associate-*r*37.5%
neg-mul-137.5%
distribute-rgt-neg-in37.5%
associate-*r*41.2%
Simplified41.2%
if -6.2e12 < y < 5.99999999999999972e-110Initial program 81.8%
cancel-sign-sub81.8%
cancel-sign-sub-inv81.8%
*-commutative81.8%
remove-double-neg81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in j around inf 43.6%
Taylor expanded in c around inf 36.5%
if 5.99999999999999972e-110 < y < 1.08e-49Initial program 77.4%
cancel-sign-sub77.4%
cancel-sign-sub-inv77.4%
*-commutative77.4%
remove-double-neg77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in a around 0 56.1%
Taylor expanded in a around inf 43.2%
mul-1-neg43.2%
*-commutative43.2%
unsub-neg43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in j around 0 54.3%
mul-1-neg54.3%
distribute-rgt-neg-in54.3%
Simplified54.3%
if 1.08e-49 < y < 9.5e10Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in c around inf 29.5%
*-commutative29.5%
Simplified29.5%
Taylor expanded in j around inf 23.1%
*-commutative23.1%
Simplified23.1%
Taylor expanded in c around 0 23.1%
associate-*r*29.1%
*-commutative29.1%
associate-*r*35.3%
Simplified35.3%
if 9.5e10 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in z around inf 59.0%
Taylor expanded in y around inf 51.1%
Final simplification41.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -3.9e+139) (* i (* y (- j))) (if (<= y 96000000000.0) (* a (- (* c j) (* x t))) (* 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 (y <= -3.9e+139) {
tmp = i * (y * -j);
} else if (y <= 96000000000.0) {
tmp = a * ((c * j) - (x * t));
} 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 (y <= (-3.9d+139)) then
tmp = i * (y * -j)
else if (y <= 96000000000.0d0) then
tmp = a * ((c * j) - (x * t))
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 (y <= -3.9e+139) {
tmp = i * (y * -j);
} else if (y <= 96000000000.0) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.9e+139: tmp = i * (y * -j) elif y <= 96000000000.0: tmp = a * ((c * j) - (x * t)) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.9e+139) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= 96000000000.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); 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 (y <= -3.9e+139) tmp = i * (y * -j); elseif (y <= 96000000000.0) tmp = a * ((c * j) - (x * t)); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.9e+139], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 96000000000.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.9 \cdot 10^{+139}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 96000000000:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -3.90000000000000006e139Initial program 47.6%
cancel-sign-sub47.6%
cancel-sign-sub-inv47.6%
*-commutative47.6%
remove-double-neg47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in j around inf 36.0%
Taylor expanded in c around 0 42.6%
associate-*r*36.6%
*-commutative36.6%
associate-*r*42.8%
mul-1-neg42.8%
distribute-rgt-neg-in42.8%
distribute-rgt-neg-in42.8%
Simplified42.8%
if -3.90000000000000006e139 < y < 9.6e10Initial program 79.3%
cancel-sign-sub79.3%
cancel-sign-sub-inv79.3%
*-commutative79.3%
remove-double-neg79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in a around 0 73.9%
Taylor expanded in a around inf 50.9%
mul-1-neg50.9%
*-commutative50.9%
unsub-neg50.9%
*-commutative50.9%
Simplified50.9%
if 9.6e10 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in z around inf 59.0%
Taylor expanded in y around inf 51.1%
Final simplification49.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -30000000000000.0)
(* y (* i (- j)))
(if (<= y 1.6e-108)
(* j (* a c))
(if (<= y 1150000000.0) (* (* t a) (- x)) (* 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 (y <= -30000000000000.0) {
tmp = y * (i * -j);
} else if (y <= 1.6e-108) {
tmp = j * (a * c);
} else if (y <= 1150000000.0) {
tmp = (t * a) * -x;
} 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 (y <= (-30000000000000.0d0)) then
tmp = y * (i * -j)
else if (y <= 1.6d-108) then
tmp = j * (a * c)
else if (y <= 1150000000.0d0) then
tmp = (t * a) * -x
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 (y <= -30000000000000.0) {
tmp = y * (i * -j);
} else if (y <= 1.6e-108) {
tmp = j * (a * c);
} else if (y <= 1150000000.0) {
tmp = (t * a) * -x;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -30000000000000.0: tmp = y * (i * -j) elif y <= 1.6e-108: tmp = j * (a * c) elif y <= 1150000000.0: tmp = (t * a) * -x else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -30000000000000.0) tmp = Float64(y * Float64(i * Float64(-j))); elseif (y <= 1.6e-108) tmp = Float64(j * Float64(a * c)); elseif (y <= 1150000000.0) tmp = Float64(Float64(t * a) * Float64(-x)); 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 (y <= -30000000000000.0) tmp = y * (i * -j); elseif (y <= 1.6e-108) tmp = j * (a * c); elseif (y <= 1150000000.0) tmp = (t * a) * -x; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -30000000000000.0], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-108], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1150000000.0], N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -30000000000000:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-108}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 1150000000:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -3e13Initial program 55.5%
cancel-sign-sub55.5%
cancel-sign-sub-inv55.5%
*-commutative55.5%
remove-double-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in j around inf 39.0%
Taylor expanded in c around 0 41.2%
associate-*r*37.5%
associate-*r*37.5%
neg-mul-137.5%
distribute-rgt-neg-in37.5%
associate-*r*41.2%
Simplified41.2%
if -3e13 < y < 1.6e-108Initial program 81.8%
cancel-sign-sub81.8%
cancel-sign-sub-inv81.8%
*-commutative81.8%
remove-double-neg81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in j around inf 43.6%
Taylor expanded in c around inf 36.5%
if 1.6e-108 < y < 1.15e9Initial program 78.5%
cancel-sign-sub78.5%
cancel-sign-sub-inv78.5%
*-commutative78.5%
remove-double-neg78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in x around inf 49.0%
Taylor expanded in y around 0 42.5%
neg-mul-142.5%
distribute-lft-neg-in42.5%
*-commutative42.5%
Simplified42.5%
if 1.15e9 < y Initial program 62.3%
cancel-sign-sub62.3%
cancel-sign-sub-inv62.3%
*-commutative62.3%
remove-double-neg62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in z around inf 58.0%
Taylor expanded in y around inf 50.3%
Final simplification41.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -6.5e+89) (not (<= y 66000000000.0))) (* y (* x z)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -6.5e+89) || !(y <= 66000000000.0)) {
tmp = y * (x * z);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-6.5d+89)) .or. (.not. (y <= 66000000000.0d0))) then
tmp = y * (x * z)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -6.5e+89) || !(y <= 66000000000.0)) {
tmp = y * (x * z);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -6.5e+89) or not (y <= 66000000000.0): tmp = y * (x * z) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -6.5e+89) || !(y <= 66000000000.0)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -6.5e+89) || ~((y <= 66000000000.0))) tmp = y * (x * z); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -6.5e+89], N[Not[LessEqual[y, 66000000000.0]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{+89} \lor \neg \left(y \leq 66000000000\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if y < -6.4999999999999996e89 or 6.6e10 < y Initial program 58.4%
cancel-sign-sub58.4%
cancel-sign-sub-inv58.4%
*-commutative58.4%
remove-double-neg58.4%
*-commutative58.4%
Simplified58.4%
Taylor expanded in x around inf 50.4%
Taylor expanded in y around inf 44.4%
if -6.4999999999999996e89 < y < 6.6e10Initial program 80.1%
cancel-sign-sub80.1%
cancel-sign-sub-inv80.1%
*-commutative80.1%
remove-double-neg80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in c around inf 47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in j around inf 31.8%
*-commutative31.8%
Simplified31.8%
Taylor expanded in c around 0 31.8%
associate-*r*32.6%
*-commutative32.6%
associate-*r*33.1%
Simplified33.1%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -5e+89) (* y (* x z)) (if (<= y 65000000000.0) (* a (* c 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 (y <= -5e+89) {
tmp = y * (x * z);
} else if (y <= 65000000000.0) {
tmp = a * (c * 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 (y <= (-5d+89)) then
tmp = y * (x * z)
else if (y <= 65000000000.0d0) then
tmp = a * (c * 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 (y <= -5e+89) {
tmp = y * (x * z);
} else if (y <= 65000000000.0) {
tmp = a * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -5e+89: tmp = y * (x * z) elif y <= 65000000000.0: tmp = a * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -5e+89) tmp = Float64(y * Float64(x * z)); elseif (y <= 65000000000.0) tmp = Float64(a * Float64(c * 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 (y <= -5e+89) tmp = y * (x * z); elseif (y <= 65000000000.0) tmp = a * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -5e+89], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 65000000000.0], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{+89}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 65000000000:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -4.99999999999999983e89Initial program 50.8%
cancel-sign-sub50.8%
cancel-sign-sub-inv50.8%
*-commutative50.8%
remove-double-neg50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in x around inf 44.0%
Taylor expanded in y around inf 36.4%
if -4.99999999999999983e89 < y < 6.5e10Initial program 80.1%
cancel-sign-sub80.1%
cancel-sign-sub-inv80.1%
*-commutative80.1%
remove-double-neg80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in c around inf 47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in j around inf 31.8%
*-commutative31.8%
Simplified31.8%
Taylor expanded in c around 0 31.8%
associate-*r*32.6%
*-commutative32.6%
associate-*r*33.1%
Simplified33.1%
if 6.5e10 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in z around inf 59.0%
Taylor expanded in y around inf 51.1%
Final simplification37.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -4.8e+89) (* x (* y z)) (if (<= y 95000000000.0) (* a (* c 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 (y <= -4.8e+89) {
tmp = x * (y * z);
} else if (y <= 95000000000.0) {
tmp = a * (c * 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 (y <= (-4.8d+89)) then
tmp = x * (y * z)
else if (y <= 95000000000.0d0) then
tmp = a * (c * 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 (y <= -4.8e+89) {
tmp = x * (y * z);
} else if (y <= 95000000000.0) {
tmp = a * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -4.8e+89: tmp = x * (y * z) elif y <= 95000000000.0: tmp = a * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -4.8e+89) tmp = Float64(x * Float64(y * z)); elseif (y <= 95000000000.0) tmp = Float64(a * Float64(c * 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 (y <= -4.8e+89) tmp = x * (y * z); elseif (y <= 95000000000.0) tmp = a * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -4.8e+89], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 95000000000.0], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+89}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 95000000000:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -4.80000000000000009e89Initial program 50.8%
cancel-sign-sub50.8%
cancel-sign-sub-inv50.8%
*-commutative50.8%
remove-double-neg50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in x around inf 44.0%
Taylor expanded in y around inf 38.9%
if -4.80000000000000009e89 < y < 9.5e10Initial program 80.1%
cancel-sign-sub80.1%
cancel-sign-sub-inv80.1%
*-commutative80.1%
remove-double-neg80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in c around inf 47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in j around inf 31.8%
*-commutative31.8%
Simplified31.8%
Taylor expanded in c around 0 31.8%
associate-*r*32.6%
*-commutative32.6%
associate-*r*33.1%
Simplified33.1%
if 9.5e10 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in z around inf 59.0%
Taylor expanded in y around inf 51.1%
Final simplification38.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in c around inf 41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in j around inf 24.9%
*-commutative24.9%
Simplified24.9%
Taylor expanded in c around 0 24.9%
associate-*r*25.7%
*-commutative25.7%
associate-*r*25.6%
Simplified25.6%
Final simplification25.6%
(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 2023240
(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)))))