
(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 23 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 (* b (- (* t i) (* z c))))
(t_2 (+ (+ (* x (- (* y z) (* t a))) t_1) (* j (- (* a c) (* y i))))))
(if (<= t_2 5e+303)
t_2
(* y (- (fma z x (/ (fma a (fma j c (* x (- t))) t_1) y)) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= 5e+303) {
tmp = t_2;
} else {
tmp = y * (fma(z, x, (fma(a, fma(j, c, (x * -t)), t_1) / y)) - (i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= 5e+303) tmp = t_2; else tmp = Float64(y * Float64(fma(z, x, Float64(fma(a, fma(j, c, Float64(x * Float64(-t))), t_1) / y)) - Float64(i * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 5e+303], t$95$2, N[(y * N[(N[(z * x + N[(N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 \leq 5 \cdot 10^{+303}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\mathsf{fma}\left(z, x, \frac{\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), t\_1\right)}{y}\right) - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 4.9999999999999997e303Initial program 92.5%
if 4.9999999999999997e303 < (+.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 48.5%
Taylor expanded in y around -inf
Applied rewrites72.2%
Final simplification84.6%
(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
(fma a (fma j c (* x (- t))) (* y (fma j (- i) (* x z)))))))
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 = fma(a, fma(j, c, (x * -t)), (y * fma(j, -i, (x * z))));
}
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 = fma(a, fma(j, c, Float64(x * Float64(-t))), Float64(y * fma(j, Float64(-i), Float64(x * z)))); end return 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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * (-i) + N[(x * z), $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(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}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in y around 0
Applied rewrites44.4%
Taylor expanded in b around 0
Applied rewrites53.8%
Final simplification84.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma b (- (* t i) (* z c)) (* y (fma j (- i) (* x z)))))
(t_2 (fma j c (* x (- t)))))
(if (<= y -1.35e-132)
(fma a t_2 t_1)
(if (<= y 1.22e+129)
(fma a t_2 (fma z (- (* x y) (* b c)) (* i (fma j (- y) (* t b)))))
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 = fma(b, ((t * i) - (z * c)), (y * fma(j, -i, (x * z))));
double t_2 = fma(j, c, (x * -t));
double tmp;
if (y <= -1.35e-132) {
tmp = fma(a, t_2, t_1);
} else if (y <= 1.22e+129) {
tmp = fma(a, t_2, fma(z, ((x * y) - (b * c)), (i * fma(j, -y, (t * b)))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(b, Float64(Float64(t * i) - Float64(z * c)), Float64(y * fma(j, Float64(-i), Float64(x * z)))) t_2 = fma(j, c, Float64(x * Float64(-t))) tmp = 0.0 if (y <= -1.35e-132) tmp = fma(a, t_2, t_1); elseif (y <= 1.22e+129) tmp = fma(a, t_2, fma(z, Float64(Float64(x * y) - Float64(b * c)), Float64(i * fma(j, Float64(-y), Float64(t * b))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.35e-132], N[(a * t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[y, 1.22e+129], N[(a * t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b, t \cdot i - z \cdot c, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\\
t_2 := \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;y \leq -1.35 \cdot 10^{-132}:\\
\;\;\;\;\mathsf{fma}\left(a, t\_2, t\_1\right)\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{+129}:\\
\;\;\;\;\mathsf{fma}\left(a, t\_2, \mathsf{fma}\left(z, x \cdot y - b \cdot c, i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.34999999999999995e-132Initial program 74.3%
Taylor expanded in y around 0
Applied rewrites82.2%
if -1.34999999999999995e-132 < y < 1.2200000000000001e129Initial program 77.8%
Taylor expanded in y around 0
Applied rewrites76.6%
Taylor expanded in i around 0
Applied rewrites85.0%
if 1.2200000000000001e129 < y Initial program 67.9%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
Applied rewrites88.4%
Final simplification84.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (fma j (- i) (* x z)))) (t_2 (fma j c (* x (- t)))))
(if (<= y -50000000000.0)
(fma a t_2 t_1)
(if (<= y 1.22e+129)
(fma a t_2 (fma z (- (* x y) (* b c)) (* i (fma j (- y) (* t b)))))
(fma b (- (* t i) (* z c)) 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 * fma(j, -i, (x * z));
double t_2 = fma(j, c, (x * -t));
double tmp;
if (y <= -50000000000.0) {
tmp = fma(a, t_2, t_1);
} else if (y <= 1.22e+129) {
tmp = fma(a, t_2, fma(z, ((x * y) - (b * c)), (i * fma(j, -y, (t * b)))));
} else {
tmp = fma(b, ((t * i) - (z * c)), t_1);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * fma(j, Float64(-i), Float64(x * z))) t_2 = fma(j, c, Float64(x * Float64(-t))) tmp = 0.0 if (y <= -50000000000.0) tmp = fma(a, t_2, t_1); elseif (y <= 1.22e+129) tmp = fma(a, t_2, fma(z, Float64(Float64(x * y) - Float64(b * c)), Float64(i * fma(j, Float64(-y), Float64(t * b))))); else tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -50000000000.0], N[(a * t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[y, 1.22e+129], N[(a * t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
t_2 := \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;y \leq -50000000000:\\
\;\;\;\;\mathsf{fma}\left(a, t\_2, t\_1\right)\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{+129}:\\
\;\;\;\;\mathsf{fma}\left(a, t\_2, \mathsf{fma}\left(z, x \cdot y - b \cdot c, i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, t\_1\right)\\
\end{array}
\end{array}
if y < -5e10Initial program 71.9%
Taylor expanded in y around 0
Applied rewrites81.4%
Taylor expanded in b around 0
Applied rewrites75.1%
if -5e10 < y < 1.2200000000000001e129Initial program 78.1%
Taylor expanded in y around 0
Applied rewrites77.8%
Taylor expanded in i around 0
Applied rewrites84.8%
if 1.2200000000000001e129 < y Initial program 67.9%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
Applied rewrites88.4%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (fma j (- i) (* x z)))) (t_2 (fma j c (* x (- t)))))
(if (<= a -6.8e+73)
(fma a t_2 (* z (* (fma i (- (/ t z)) c) (- b))))
(if (<= a 1.7e+35) (fma b (- (* t i) (* z c)) t_1) (fma a 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 = y * fma(j, -i, (x * z));
double t_2 = fma(j, c, (x * -t));
double tmp;
if (a <= -6.8e+73) {
tmp = fma(a, t_2, (z * (fma(i, -(t / z), c) * -b)));
} else if (a <= 1.7e+35) {
tmp = fma(b, ((t * i) - (z * c)), t_1);
} else {
tmp = fma(a, t_2, t_1);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * fma(j, Float64(-i), Float64(x * z))) t_2 = fma(j, c, Float64(x * Float64(-t))) tmp = 0.0 if (a <= -6.8e+73) tmp = fma(a, t_2, Float64(z * Float64(fma(i, Float64(-Float64(t / z)), c) * Float64(-b)))); elseif (a <= 1.7e+35) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), t_1); else tmp = fma(a, t_2, t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.8e+73], N[(a * t$95$2 + N[(z * N[(N[(i * (-N[(t / z), $MachinePrecision]) + c), $MachinePrecision] * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e+35], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(a * t$95$2 + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
t_2 := \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -6.8 \cdot 10^{+73}:\\
\;\;\;\;\mathsf{fma}\left(a, t\_2, z \cdot \left(\mathsf{fma}\left(i, -\frac{t}{z}, c\right) \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, t\_2, t\_1\right)\\
\end{array}
\end{array}
if a < -6.8000000000000003e73Initial program 74.6%
Taylor expanded in y around 0
Applied rewrites79.1%
Taylor expanded in i around 0
Applied rewrites83.9%
Taylor expanded in z around inf
Applied rewrites80.7%
Taylor expanded in b around -inf
Applied rewrites76.5%
if -6.8000000000000003e73 < a < 1.7000000000000001e35Initial program 82.4%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
Applied rewrites79.1%
if 1.7000000000000001e35 < a Initial program 60.1%
Taylor expanded in y around 0
Applied rewrites79.8%
Taylor expanded in b around 0
Applied rewrites71.8%
Final simplification76.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (fma j (- i) (* x z))))
(t_2 (fma a (fma j c (* x (- t))) t_1)))
(if (<= a -7.5e+45)
t_2
(if (<= a 1.7e+35) (fma b (- (* t i) (* z c)) 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 * fma(j, -i, (x * z));
double t_2 = fma(a, fma(j, c, (x * -t)), t_1);
double tmp;
if (a <= -7.5e+45) {
tmp = t_2;
} else if (a <= 1.7e+35) {
tmp = fma(b, ((t * i) - (z * c)), t_1);
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * fma(j, Float64(-i), Float64(x * z))) t_2 = fma(a, fma(j, c, Float64(x * Float64(-t))), t_1) tmp = 0.0 if (a <= -7.5e+45) tmp = t_2; elseif (a <= 1.7e+35) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), t_1); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[a, -7.5e+45], t$95$2, If[LessEqual[a, 1.7e+35], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
t_2 := \mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), t\_1\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -7.50000000000000058e45 or 1.7000000000000001e35 < a Initial program 67.9%
Taylor expanded in y around 0
Applied rewrites79.8%
Taylor expanded in b around 0
Applied rewrites73.6%
if -7.50000000000000058e45 < a < 1.7000000000000001e35Initial program 82.8%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
Applied rewrites79.5%
Final simplification76.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -6.4e+52)
(+ (* j (- (* a c) (* y i))) (* i (* t b)))
(if (<= i 1.8e+172)
(fma a (fma j c (* x (- t))) (* y (fma j (- i) (* x z))))
(* i (fma j (- y) (* 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 <= -6.4e+52) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (i <= 1.8e+172) {
tmp = fma(a, fma(j, c, (x * -t)), (y * fma(j, -i, (x * z))));
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -6.4e+52) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(i * Float64(t * b))); elseif (i <= 1.8e+172) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), Float64(y * fma(j, Float64(-i), Float64(x * z)))); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -6.4e+52], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+172], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.4 \cdot 10^{+52}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+172}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if i < -6.4e52Initial program 78.2%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6485.8
Applied rewrites85.8%
if -6.4e52 < i < 1.79999999999999987e172Initial program 77.1%
Taylor expanded in y around 0
Applied rewrites80.9%
Taylor expanded in b around 0
Applied rewrites64.0%
if 1.79999999999999987e172 < i Initial program 60.4%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6478.6
Applied rewrites78.6%
Final simplification69.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* t b)))))
(if (<= i -4.2e+30)
t_1
(if (<= i -1.8e-39)
(* b (- (* t i) (* z c)))
(if (<= i 1.8e+172) (fma a (fma j c (* x (- t))) (* 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 = i * fma(j, -y, (t * b));
double tmp;
if (i <= -4.2e+30) {
tmp = t_1;
} else if (i <= -1.8e-39) {
tmp = b * ((t * i) - (z * c));
} else if (i <= 1.8e+172) {
tmp = fma(a, fma(j, c, (x * -t)), (x * (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(-y), Float64(t * b))) tmp = 0.0 if (i <= -4.2e+30) tmp = t_1; elseif (i <= -1.8e-39) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (i <= 1.8e+172) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), Float64(x * Float64(y * z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+30], t$95$1, If[LessEqual[i, -1.8e-39], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+172], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.8 \cdot 10^{-39}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+172}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -4.2e30 or 1.79999999999999987e172 < i Initial program 71.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6480.5
Applied rewrites80.5%
if -4.2e30 < i < -1.8e-39Initial program 74.0%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6467.3
Applied rewrites67.3%
if -1.8e-39 < i < 1.79999999999999987e172Initial program 77.6%
Taylor expanded in y around 0
Applied rewrites80.8%
Taylor expanded in x around inf
Applied rewrites58.1%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* t b)))))
(if (<= i -4.2e+30)
t_1
(if (<= i -5.1e-55)
(* b (- (* t i) (* z c)))
(if (<= i 1.8e+172) (fma a (fma j c (* x (- t))) (* z (* x y))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * fma(j, -y, (t * b));
double tmp;
if (i <= -4.2e+30) {
tmp = t_1;
} else if (i <= -5.1e-55) {
tmp = b * ((t * i) - (z * c));
} else if (i <= 1.8e+172) {
tmp = fma(a, fma(j, c, (x * -t)), (z * (x * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(-y), Float64(t * b))) tmp = 0.0 if (i <= -4.2e+30) tmp = t_1; elseif (i <= -5.1e-55) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (i <= 1.8e+172) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), Float64(z * Float64(x * y))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+30], t$95$1, If[LessEqual[i, -5.1e-55], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+172], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -5.1 \cdot 10^{-55}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+172}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), z \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -4.2e30 or 1.79999999999999987e172 < i Initial program 71.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6480.5
Applied rewrites80.5%
if -4.2e30 < i < -5.09999999999999995e-55Initial program 74.1%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6463.2
Applied rewrites63.2%
if -5.09999999999999995e-55 < i < 1.79999999999999987e172Initial program 77.7%
Taylor expanded in y around 0
Applied rewrites80.9%
Taylor expanded in i around 0
Applied rewrites77.6%
Taylor expanded in z around inf
Applied rewrites73.0%
Taylor expanded in x around inf
Applied rewrites57.8%
Final simplification65.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* t b)))))
(if (<= i -4.2e+30)
t_1
(if (<= i -5e-55)
(* b (- (* t i) (* z c)))
(if (<= i -8.5e-114)
(* y (* x z))
(if (<= i 1.26e+45) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * fma(j, -y, (t * b));
double tmp;
if (i <= -4.2e+30) {
tmp = t_1;
} else if (i <= -5e-55) {
tmp = b * ((t * i) - (z * c));
} else if (i <= -8.5e-114) {
tmp = y * (x * z);
} else if (i <= 1.26e+45) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(-y), Float64(t * b))) tmp = 0.0 if (i <= -4.2e+30) tmp = t_1; elseif (i <= -5e-55) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (i <= -8.5e-114) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.26e+45) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+30], t$95$1, If[LessEqual[i, -5e-55], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.5e-114], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.26e+45], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -5 \cdot 10^{-55}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-114}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.26 \cdot 10^{+45}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -4.2e30 or 1.26e45 < i Initial program 70.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6470.9
Applied rewrites70.9%
if -4.2e30 < i < -5.0000000000000002e-55Initial program 74.1%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6463.2
Applied rewrites63.2%
if -5.0000000000000002e-55 < i < -8.5000000000000006e-114Initial program 94.2%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.4
Applied rewrites69.4%
Taylor expanded in j around 0
Applied rewrites57.6%
if -8.5000000000000006e-114 < i < 1.26e45Initial program 78.5%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6449.6
Applied rewrites49.6%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.2e-65)
(+ (* j (- (* a c) (* y i))) (* i (* t b)))
(if (<= i 1.8e+172)
(fma a (fma j c (* x (- t))) (* x (* y z)))
(* i (fma j (- y) (* 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 <= -1.2e-65) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (i <= 1.8e+172) {
tmp = fma(a, fma(j, c, (x * -t)), (x * (y * z)));
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.2e-65) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(i * Float64(t * b))); elseif (i <= 1.8e+172) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), Float64(x * Float64(y * z))); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.2e-65], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+172], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.2 \cdot 10^{-65}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+172}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if i < -1.2000000000000001e-65Initial program 77.2%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6472.1
Applied rewrites72.1%
if -1.2000000000000001e-65 < i < 1.79999999999999987e172Initial program 77.4%
Taylor expanded in y around 0
Applied rewrites80.7%
Taylor expanded in x around inf
Applied rewrites58.4%
if 1.79999999999999987e172 < i Initial program 60.4%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6478.6
Applied rewrites78.6%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= i -4.2e+30)
t_1
(if (<= i -2.45e-237)
(- (* b (* z c)))
(if (<= i 1.62e-243)
(* j (* a c))
(if (<= i 2.25e+52) (* 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 = y * (i * -j);
double tmp;
if (i <= -4.2e+30) {
tmp = t_1;
} else if (i <= -2.45e-237) {
tmp = -(b * (z * c));
} else if (i <= 1.62e-243) {
tmp = j * (a * c);
} else if (i <= 2.25e+52) {
tmp = y * (x * 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 = y * (i * -j)
if (i <= (-4.2d+30)) then
tmp = t_1
else if (i <= (-2.45d-237)) then
tmp = -(b * (z * c))
else if (i <= 1.62d-243) then
tmp = j * (a * c)
else if (i <= 2.25d+52) then
tmp = y * (x * 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 = y * (i * -j);
double tmp;
if (i <= -4.2e+30) {
tmp = t_1;
} else if (i <= -2.45e-237) {
tmp = -(b * (z * c));
} else if (i <= 1.62e-243) {
tmp = j * (a * c);
} else if (i <= 2.25e+52) {
tmp = y * (x * z);
} 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 i <= -4.2e+30: tmp = t_1 elif i <= -2.45e-237: tmp = -(b * (z * c)) elif i <= 1.62e-243: tmp = j * (a * c) elif i <= 2.25e+52: tmp = y * (x * z) 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 (i <= -4.2e+30) tmp = t_1; elseif (i <= -2.45e-237) tmp = Float64(-Float64(b * Float64(z * c))); elseif (i <= 1.62e-243) tmp = Float64(j * Float64(a * c)); elseif (i <= 2.25e+52) tmp = Float64(y * Float64(x * z)); 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 (i <= -4.2e+30) tmp = t_1; elseif (i <= -2.45e-237) tmp = -(b * (z * c)); elseif (i <= 1.62e-243) tmp = j * (a * c); elseif (i <= 2.25e+52) tmp = y * (x * 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[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+30], t$95$1, If[LessEqual[i, -2.45e-237], (-N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), If[LessEqual[i, 1.62e-243], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.25e+52], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.45 \cdot 10^{-237}:\\
\;\;\;\;-b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.62 \cdot 10^{-243}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 2.25 \cdot 10^{+52}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -4.2e30 or 2.25e52 < i Initial program 70.1%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6454.8
Applied rewrites54.8%
Taylor expanded in a around 0
Applied rewrites49.4%
if -4.2e30 < i < -2.45e-237Initial program 81.1%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.2
Applied rewrites50.2%
Taylor expanded in c around inf
Applied rewrites33.0%
if -2.45e-237 < i < 1.62000000000000011e-243Initial program 71.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6441.6
Applied rewrites41.6%
Taylor expanded in a around inf
Applied rewrites41.7%
if 1.62000000000000011e-243 < i < 2.25e52Initial program 82.1%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6438.5
Applied rewrites38.5%
Taylor expanded in j around 0
Applied rewrites29.4%
Final simplification40.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -3.1e+107)
(fma (* c j) a (* y (* i (- j))))
(if (<= j 1.62e-251)
(* t (fma a (- x) (* b i)))
(if (<= j 5.6e+41)
(* z (fma c (- b) (* x y)))
(* 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 tmp;
if (j <= -3.1e+107) {
tmp = fma((c * j), a, (y * (i * -j)));
} else if (j <= 1.62e-251) {
tmp = t * fma(a, -x, (b * i));
} else if (j <= 5.6e+41) {
tmp = z * fma(c, -b, (x * y));
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -3.1e+107) tmp = fma(Float64(c * j), a, Float64(y * Float64(i * Float64(-j)))); elseif (j <= 1.62e-251) tmp = Float64(t * fma(a, Float64(-x), Float64(b * i))); elseif (j <= 5.6e+41) tmp = Float64(z * fma(c, Float64(-b), Float64(x * y))); else tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -3.1e+107], N[(N[(c * j), $MachinePrecision] * a + N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.62e-251], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.6e+41], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -3.1 \cdot 10^{+107}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot j, a, y \cdot \left(i \cdot \left(-j\right)\right)\right)\\
\mathbf{elif}\;j \leq 1.62 \cdot 10^{-251}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{+41}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if j < -3.10000000000000026e107Initial program 64.5%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6464.7
Applied rewrites64.7%
Applied rewrites65.0%
if -3.10000000000000026e107 < j < 1.62e-251Initial program 73.0%
Taylor expanded in t around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.7
Applied rewrites52.7%
if 1.62e-251 < j < 5.5999999999999999e41Initial program 76.3%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.9
Applied rewrites61.9%
if 5.5999999999999999e41 < j Initial program 84.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6473.3
Applied rewrites73.3%
Final simplification62.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -3.1e+107)
t_1
(if (<= j 1.62e-251)
(* t (fma a (- x) (* b i)))
(if (<= j 5.6e+41) (* z (fma c (- b) (* x y))) 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 tmp;
if (j <= -3.1e+107) {
tmp = t_1;
} else if (j <= 1.62e-251) {
tmp = t * fma(a, -x, (b * i));
} else if (j <= 5.6e+41) {
tmp = z * fma(c, -b, (x * y));
} else {
tmp = 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))) tmp = 0.0 if (j <= -3.1e+107) tmp = t_1; elseif (j <= 1.62e-251) tmp = Float64(t * fma(a, Float64(-x), Float64(b * i))); elseif (j <= 5.6e+41) tmp = Float64(z * fma(c, Float64(-b), Float64(x * y))); else tmp = t_1; end return 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]}, If[LessEqual[j, -3.1e+107], t$95$1, If[LessEqual[j, 1.62e-251], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.6e+41], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.1 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.62 \cdot 10^{-251}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{+41}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.10000000000000026e107 or 5.5999999999999999e41 < j Initial program 76.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6469.8
Applied rewrites69.8%
if -3.10000000000000026e107 < j < 1.62e-251Initial program 73.0%
Taylor expanded in t around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.7
Applied rewrites52.7%
if 1.62e-251 < j < 5.5999999999999999e41Initial program 76.3%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.9
Applied rewrites61.9%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (fma a (- x) (* b i)))))
(if (<= t -2.7e+44)
t_1
(if (<= t -1.7e-203)
(* c (fma j a (* z (- b))))
(if (<= t 7.5e-49) (* y (fma j (- i) (* 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 = t * fma(a, -x, (b * i));
double tmp;
if (t <= -2.7e+44) {
tmp = t_1;
} else if (t <= -1.7e-203) {
tmp = c * fma(j, a, (z * -b));
} else if (t <= 7.5e-49) {
tmp = y * fma(j, -i, (x * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * fma(a, Float64(-x), Float64(b * i))) tmp = 0.0 if (t <= -2.7e+44) tmp = t_1; elseif (t <= -1.7e-203) tmp = Float64(c * fma(j, a, Float64(z * Float64(-b)))); elseif (t <= 7.5e-49) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.7e+44], t$95$1, If[LessEqual[t, -1.7e-203], N[(c * N[(j * a + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-49], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{if}\;t \leq -2.7 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-203}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, a, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-49}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.7e44 or 7.4999999999999998e-49 < t Initial program 70.3%
Taylor expanded in t around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.3
Applied rewrites64.3%
if -2.7e44 < t < -1.6999999999999999e-203Initial program 76.5%
Taylor expanded in y around 0
Applied rewrites74.3%
Taylor expanded in c around inf
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.9
Applied rewrites53.9%
if -1.6999999999999999e-203 < t < 7.4999999999999998e-49Initial program 83.4%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.2
Applied rewrites62.2%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (fma a (- x) (* b i)))))
(if (<= t -2.7e+44)
t_1
(if (<= t -1.4e-203)
(* c (fma j a (* z (- b))))
(if (<= t 3.4e+50) (* j (- (* a c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * fma(a, -x, (b * i));
double tmp;
if (t <= -2.7e+44) {
tmp = t_1;
} else if (t <= -1.4e-203) {
tmp = c * fma(j, a, (z * -b));
} else if (t <= 3.4e+50) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * fma(a, Float64(-x), Float64(b * i))) tmp = 0.0 if (t <= -2.7e+44) tmp = t_1; elseif (t <= -1.4e-203) tmp = Float64(c * fma(j, a, Float64(z * Float64(-b)))); elseif (t <= 3.4e+50) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.7e+44], t$95$1, If[LessEqual[t, -1.4e-203], N[(c * N[(j * a + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+50], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{if}\;t \leq -2.7 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-203}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, a, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+50}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.7e44 or 3.3999999999999998e50 < t Initial program 69.1%
Taylor expanded in t around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.9
Applied rewrites66.9%
if -2.7e44 < t < -1.40000000000000011e-203Initial program 76.5%
Taylor expanded in y around 0
Applied rewrites74.3%
Taylor expanded in c around inf
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.9
Applied rewrites53.9%
if -1.40000000000000011e-203 < t < 3.3999999999999998e50Initial program 81.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6455.4
Applied rewrites55.4%
Final simplification60.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= j -1.12e-128)
t_1
(if (<= j 6e+41) (* y (* x z)) (if (<= j 2.6e+177) (* 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.12e-128) {
tmp = t_1;
} else if (j <= 6e+41) {
tmp = y * (x * z);
} else if (j <= 2.6e+177) {
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.12d-128)) then
tmp = t_1
else if (j <= 6d+41) then
tmp = y * (x * z)
else if (j <= 2.6d+177) 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.12e-128) {
tmp = t_1;
} else if (j <= 6e+41) {
tmp = y * (x * z);
} else if (j <= 2.6e+177) {
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.12e-128: tmp = t_1 elif j <= 6e+41: tmp = y * (x * z) elif j <= 2.6e+177: 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.12e-128) tmp = t_1; elseif (j <= 6e+41) tmp = Float64(y * Float64(x * z)); elseif (j <= 2.6e+177) 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.12e-128) tmp = t_1; elseif (j <= 6e+41) tmp = y * (x * z); elseif (j <= 2.6e+177) 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.12e-128], t$95$1, If[LessEqual[j, 6e+41], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.6e+177], 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.12 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+41}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{+177}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.12e-128 or 2.59999999999999979e177 < j Initial program 71.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6456.9
Applied rewrites56.9%
Taylor expanded in a around 0
Applied rewrites42.6%
if -1.12e-128 < j < 5.9999999999999997e41Initial program 74.9%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6439.1
Applied rewrites39.1%
Taylor expanded in j around 0
Applied rewrites32.1%
if 5.9999999999999997e41 < j < 2.59999999999999979e177Initial program 87.0%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6459.0
Applied rewrites59.0%
Taylor expanded in j around inf
Applied rewrites45.9%
Final simplification38.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -4.2e+103)
t_1
(if (<= b 5.4e+73) (* a (fma j c (* 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.2e+103) {
tmp = t_1;
} else if (b <= 5.4e+73) {
tmp = a * fma(j, c, (x * -t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.2e+103) tmp = t_1; elseif (b <= 5.4e+73) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e+103], t$95$1, If[LessEqual[b, 5.4e+73], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{+73}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.2000000000000003e103 or 5.3999999999999998e73 < b Initial program 68.6%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6465.9
Applied rewrites65.9%
if -4.2000000000000003e103 < b < 5.3999999999999998e73Initial program 79.1%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6444.3
Applied rewrites44.3%
Final simplification52.1%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (fma j c (* x (- t)))))) (if (<= a -2.6e-116) t_1 (if (<= a 3.5e+19) (* j (* y (- i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -2.6e-116) {
tmp = t_1;
} else if (a <= 3.5e+19) {
tmp = j * (y * -i);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -2.6e-116) tmp = t_1; elseif (a <= 3.5e+19) tmp = Float64(j * Float64(y * Float64(-i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e-116], t$95$1, If[LessEqual[a, 3.5e+19], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{-116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+19}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.6e-116 or 3.5e19 < a Initial program 71.6%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.5
Applied rewrites53.5%
if -2.6e-116 < a < 3.5e19Initial program 81.5%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6438.9
Applied rewrites38.9%
Taylor expanded in a around 0
Applied rewrites36.9%
Final simplification47.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -9e-129) (* a (* c j)) (if (<= j 6e+41) (* y (* x z)) (* j (* a c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9e-129) {
tmp = a * (c * j);
} else if (j <= 6e+41) {
tmp = y * (x * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9d-129)) then
tmp = a * (c * j)
else if (j <= 6d+41) then
tmp = y * (x * z)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9e-129) {
tmp = a * (c * j);
} else if (j <= 6e+41) {
tmp = y * (x * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9e-129: tmp = a * (c * j) elif j <= 6e+41: tmp = y * (x * z) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9e-129) tmp = Float64(a * Float64(c * j)); elseif (j <= 6e+41) tmp = Float64(y * Float64(x * z)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9e-129) tmp = a * (c * j); elseif (j <= 6e+41) tmp = y * (x * z); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9e-129], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e+41], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9 \cdot 10^{-129}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+41}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -9.00000000000000061e-129Initial program 68.4%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6445.9
Applied rewrites45.9%
Taylor expanded in j around inf
Applied rewrites29.6%
if -9.00000000000000061e-129 < j < 5.9999999999999997e41Initial program 74.9%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6439.1
Applied rewrites39.1%
Taylor expanded in j around 0
Applied rewrites32.1%
if 5.9999999999999997e41 < j Initial program 84.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6473.3
Applied rewrites73.3%
Taylor expanded in a around inf
Applied rewrites40.6%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -1.12e-128) (* a (* c j)) (if (<= j 6e+41) (* x (* y z)) (* j (* a c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.12e-128) {
tmp = a * (c * j);
} else if (j <= 6e+41) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.12d-128)) then
tmp = a * (c * j)
else if (j <= 6d+41) then
tmp = x * (y * z)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.12e-128) {
tmp = a * (c * j);
} else if (j <= 6e+41) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.12e-128: tmp = a * (c * j) elif j <= 6e+41: tmp = x * (y * z) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.12e-128) tmp = Float64(a * Float64(c * j)); elseif (j <= 6e+41) tmp = Float64(x * Float64(y * z)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.12e-128) tmp = a * (c * j); elseif (j <= 6e+41) tmp = x * (y * z); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.12e-128], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e+41], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.12 \cdot 10^{-128}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -1.12e-128Initial program 68.4%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6445.9
Applied rewrites45.9%
Taylor expanded in j around inf
Applied rewrites29.6%
if -1.12e-128 < j < 5.9999999999999997e41Initial program 74.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.5
Applied rewrites53.5%
Taylor expanded in c around 0
Applied rewrites29.6%
if 5.9999999999999997e41 < j Initial program 84.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6473.3
Applied rewrites73.3%
Taylor expanded in a around inf
Applied rewrites40.6%
Final simplification32.4%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* c j)))) (if (<= j -1.12e-128) t_1 (if (<= j 6e+41) (* 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 <= -1.12e-128) {
tmp = t_1;
} else if (j <= 6e+41) {
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 <= (-1.12d-128)) then
tmp = t_1
else if (j <= 6d+41) 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 <= -1.12e-128) {
tmp = t_1;
} else if (j <= 6e+41) {
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 <= -1.12e-128: tmp = t_1 elif j <= 6e+41: 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 <= -1.12e-128) tmp = t_1; elseif (j <= 6e+41) 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 <= -1.12e-128) tmp = t_1; elseif (j <= 6e+41) 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, -1.12e-128], t$95$1, If[LessEqual[j, 6e+41], 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.12 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.12e-128 or 5.9999999999999997e41 < j Initial program 75.6%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6448.2
Applied rewrites48.2%
Taylor expanded in j around inf
Applied rewrites33.8%
if -1.12e-128 < j < 5.9999999999999997e41Initial program 74.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.5
Applied rewrites53.5%
Taylor expanded in c around 0
Applied rewrites29.6%
Final simplification32.1%
(FPCore (x y z t a b c i j) :precision binary64 (* x (* y z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return x * (y * z);
}
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)
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);
}
def code(x, y, z, t, a, b, c, i, j): return x * (y * z)
function code(x, y, z, t, a, b, c, i, j) return Float64(x * Float64(y * z)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = x * (y * z); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y \cdot z\right)
\end{array}
Initial program 75.3%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6435.8
Applied rewrites35.8%
Taylor expanded in c around 0
Applied rewrites18.7%
(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 2024238
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))