
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))))
(if (<= (+ t_1 (* j (- (* t c) (* y i)))) INFINITY)
(+ t_1 (fma (* y (- i)) j (* j (* t c))))
(* 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 * ((z * c) - (a * i)));
double tmp;
if ((t_1 + (j * ((t * c) - (y * i)))) <= ((double) INFINITY)) {
tmp = t_1 + fma((y * -i), j, (j * (t * c)));
} else {
tmp = y * fma(j, -i, (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) tmp = 0.0 if (Float64(t_1 + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) <= Inf) tmp = Float64(t_1 + fma(Float64(y * Float64(-i)), j, Float64(j * Float64(t * c)))); else tmp = 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$1 + N[(N[(y * (-i)), $MachinePrecision] * j + N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{if}\;t\_1 + j \cdot \left(t \cdot c - y \cdot i\right) \leq \infty:\\
\;\;\;\;t\_1 + \mathsf{fma}\left(y \cdot \left(-i\right), j, j \cdot \left(t \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.8%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6490.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6490.8
Applied rewrites90.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
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-*.f6467.1
Applied rewrites67.1%
Final simplification86.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* 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 * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = 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(z * c) - Float64(a * i)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = 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[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(j * (-i) + N[(x * z), $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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
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-*.f6467.1
Applied rewrites67.1%
Final simplification86.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<=
(+ (- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i)))) t_1)
INFINITY)
(+ t_1 (fma z (fma c (- b) (* x y)) (* a (fma t (- x) (* b i)))))
(* 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 = j * ((t * c) - (y * i));
double tmp;
if ((((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + t_1) <= ((double) INFINITY)) {
tmp = t_1 + fma(z, fma(c, -b, (x * y)), (a * fma(t, -x, (b * i))));
} else {
tmp = y * fma(j, -i, (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) + t_1) <= Inf) tmp = Float64(t_1 + fma(z, fma(c, Float64(-b), Float64(x * y)), Float64(a * fma(t, Float64(-x), Float64(b * i))))); else tmp = 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(t$95$1 + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + t\_1 \leq \infty:\\
\;\;\;\;t\_1 + \mathsf{fma}\left(z, \mathsf{fma}\left(c, -b, x \cdot y\right), a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.8%
Taylor expanded in z around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
cancel-sign-subN/A
associate-*r*N/A
mul-1-negN/A
distribute-lft-out--N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-out--N/A
lower-fma.f64N/A
Applied rewrites84.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
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-*.f6467.1
Applied rewrites67.1%
Final simplification81.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (fma c t (* y (- i))))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -5.8e+133)
t_2
(if (<= x -5.3e-51)
t_1
(if (<= x 1.35e-280)
(* i (fma j (- y) (* a b)))
(if (<= x 2.6e-160)
(* c (fma j t (* z (- b))))
(if (<= x 8.8e-38)
(* b (fma c (- z) (* a i)))
(if (<= x 2.9e+51) 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 * fma(c, t, (y * -i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.8e+133) {
tmp = t_2;
} else if (x <= -5.3e-51) {
tmp = t_1;
} else if (x <= 1.35e-280) {
tmp = i * fma(j, -y, (a * b));
} else if (x <= 2.6e-160) {
tmp = c * fma(j, t, (z * -b));
} else if (x <= 8.8e-38) {
tmp = b * fma(c, -z, (a * i));
} else if (x <= 2.9e+51) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * fma(c, t, Float64(y * Float64(-i)))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -5.8e+133) tmp = t_2; elseif (x <= -5.3e-51) tmp = t_1; elseif (x <= 1.35e-280) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (x <= 2.6e-160) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (x <= 8.8e-38) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); elseif (x <= 2.9e+51) tmp = 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[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e+133], t$95$2, If[LessEqual[x, -5.3e-51], t$95$1, If[LessEqual[x, 1.35e-280], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e-160], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.8e-38], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+51], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{+133}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -5.3 \cdot 10^{-51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-280}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-160}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{-38}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -5.8000000000000002e133 or 2.8999999999999998e51 < x Initial program 69.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6469.3
Applied rewrites69.3%
if -5.8000000000000002e133 < x < -5.29999999999999974e-51 or 8.80000000000000029e-38 < x < 2.8999999999999998e51Initial program 80.0%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6460.6
Applied rewrites60.6%
if -5.29999999999999974e-51 < x < 1.34999999999999992e-280Initial program 67.2%
Taylor expanded in i 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.34999999999999992e-280 < x < 2.60000000000000003e-160Initial program 83.9%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/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.f6476.9
Applied rewrites76.9%
if 2.60000000000000003e-160 < x < 8.80000000000000029e-38Initial program 78.8%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/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
distribute-rgt-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.2
Applied rewrites65.2%
Final simplification64.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y z) (* t a))))
(if (<= x -4.3e+14)
(fma x t_1 (* j (fma c t (* y (- i)))))
(if (<= x 2.4e+48)
(fma t (fma j c (* x (- a))) (* b (fma c (- z) (* a i))))
(fma c (fma j t (* z (- b))) (* x t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * z) - (t * a);
double tmp;
if (x <= -4.3e+14) {
tmp = fma(x, t_1, (j * fma(c, t, (y * -i))));
} else if (x <= 2.4e+48) {
tmp = fma(t, fma(j, c, (x * -a)), (b * fma(c, -z, (a * i))));
} else {
tmp = fma(c, fma(j, t, (z * -b)), (x * t_1));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) tmp = 0.0 if (x <= -4.3e+14) tmp = fma(x, t_1, Float64(j * fma(c, t, Float64(y * Float64(-i))))); elseif (x <= 2.4e+48) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = fma(c, fma(j, t, Float64(z * Float64(-b))), Float64(x * t_1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.3e+14], N[(x * t$95$1 + N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+48], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(x, t\_1, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot t\_1\right)\\
\end{array}
\end{array}
if x < -4.3e14Initial program 73.7%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6477.3
Applied rewrites77.3%
if -4.3e14 < x < 2.4000000000000001e48Initial program 76.4%
Taylor expanded in y around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.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.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites76.4%
if 2.4000000000000001e48 < x Initial program 66.8%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites82.5%
Final simplification77.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.1e+146)
(* x (fma t (- a) (* y z)))
(if (<= x 2.4e+48)
(fma t (fma j c (* x (- a))) (* b (fma c (- z) (* a i))))
(fma c (fma j t (* z (- b))) (* x (- (* y z) (* t a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.1e+146) {
tmp = x * fma(t, -a, (y * z));
} else if (x <= 2.4e+48) {
tmp = fma(t, fma(j, c, (x * -a)), (b * fma(c, -z, (a * i))));
} else {
tmp = fma(c, fma(j, t, (z * -b)), (x * ((y * z) - (t * a))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.1e+146) tmp = Float64(x * fma(t, Float64(-a), Float64(y * z))); elseif (x <= 2.4e+48) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = fma(c, fma(j, t, Float64(z * Float64(-b))), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.1e+146], N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+48], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\end{array}
\end{array}
if x < -1.0999999999999999e146Initial program 72.4%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6472.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6472.4
Applied rewrites72.4%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6482.3
Applied rewrites82.3%
if -1.0999999999999999e146 < x < 2.4000000000000001e48Initial program 76.2%
Taylor expanded in y around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.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.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites74.0%
if 2.4000000000000001e48 < x Initial program 66.8%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites82.5%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma t (* c j) (* b (- (* a i) (* z c))))))
(if (<= b -1.6e+115)
t_1
(if (<= b 4.7e+139)
(fma c (fma j t (* z (- b))) (* x (- (* y z) (* t a))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(t, (c * j), (b * ((a * i) - (z * c))));
double tmp;
if (b <= -1.6e+115) {
tmp = t_1;
} else if (b <= 4.7e+139) {
tmp = fma(c, fma(j, t, (z * -b)), (x * ((y * z) - (t * a))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(t, Float64(c * j), Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (b <= -1.6e+115) tmp = t_1; elseif (b <= 4.7e+139) tmp = fma(c, fma(j, t, Float64(z * Float64(-b))), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); 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[(c * j), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+115], t$95$1, If[LessEqual[b, 4.7e+139], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, c \cdot j, b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{+139}:\\
\;\;\;\;\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.6e115 or 4.7000000000000001e139 < b Initial program 76.9%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6476.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6476.9
Applied rewrites76.9%
Taylor expanded in t around inf
lower-*.f64N/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.f6428.8
Applied rewrites28.8%
Taylor expanded in y around 0
cancel-sign-sub-invN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-lft-neg-inN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
Applied rewrites84.9%
Taylor expanded in c around inf
Applied rewrites81.0%
if -1.6e115 < b < 4.7000000000000001e139Initial program 72.5%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites69.6%
Final simplification72.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.05e+134)
(* x (fma t (- a) (* y z)))
(if (<= x -2.65e-281)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
(if (<= x 2.4e+48)
(fma t (* c j) (* b (- (* a i) (* z c))))
(fma x (- (* y z) (* t a)) (* c (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.05e+134) {
tmp = x * fma(t, -a, (y * z));
} else if (x <= -2.65e-281) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (x <= 2.4e+48) {
tmp = fma(t, (c * j), (b * ((a * i) - (z * c))));
} else {
tmp = fma(x, ((y * z) - (t * a)), (c * (t * j)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.05e+134) tmp = Float64(x * fma(t, Float64(-a), Float64(y * z))); elseif (x <= -2.65e-281) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); elseif (x <= 2.4e+48) tmp = fma(t, Float64(c * j), Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(c * Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.05e+134], N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.65e-281], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+48], N[(t * N[(c * j), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.05 \cdot 10^{+134}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
\mathbf{elif}\;x \leq -2.65 \cdot 10^{-281}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\mathsf{fma}\left(t, c \cdot j, b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\
\end{array}
\end{array}
if x < -1.05e134Initial program 72.9%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6472.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6472.9
Applied rewrites72.9%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6478.1
Applied rewrites78.1%
if -1.05e134 < x < -2.64999999999999997e-281Initial program 72.3%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6465.1
Applied rewrites65.1%
if -2.64999999999999997e-281 < x < 2.4000000000000001e48Initial program 80.1%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6480.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6480.1
Applied rewrites80.1%
Taylor expanded in t around inf
lower-*.f64N/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.f6439.0
Applied rewrites39.0%
Taylor expanded in y around 0
cancel-sign-sub-invN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-lft-neg-inN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
Applied rewrites81.8%
Taylor expanded in c around inf
Applied rewrites75.7%
if 2.4000000000000001e48 < x Initial program 66.8%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6463.7
Applied rewrites63.7%
Taylor expanded in c around inf
Applied rewrites69.5%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))))
(if (<= b -2.4e-15)
t_1
(if (<= b -1.82e-218)
(fma x (* y z) (* j (fma c t (* y (- i)))))
(if (<= b 2.1e+138) (fma x (- (* y z) (* t a)) (* c (* t j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double tmp;
if (b <= -2.4e-15) {
tmp = t_1;
} else if (b <= -1.82e-218) {
tmp = fma(x, (y * z), (j * fma(c, t, (y * -i))));
} else if (b <= 2.1e+138) {
tmp = fma(x, ((y * z) - (t * a)), (c * (t * j)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) tmp = 0.0 if (b <= -2.4e-15) tmp = t_1; elseif (b <= -1.82e-218) tmp = fma(x, Float64(y * z), Float64(j * fma(c, t, Float64(y * Float64(-i))))); elseif (b <= 2.1e+138) tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(c * Float64(t * j))); 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[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e-15], t$95$1, If[LessEqual[b, -1.82e-218], N[(x * N[(y * z), $MachinePrecision] + N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+138], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.82 \cdot 10^{-218}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+138}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.39999999999999995e-15 or 2.10000000000000007e138 < b Initial program 74.5%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/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
distribute-rgt-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.6
Applied rewrites65.6%
if -2.39999999999999995e-15 < b < -1.81999999999999998e-218Initial program 68.5%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6465.4
Applied rewrites65.4%
Taylor expanded in y around inf
Applied rewrites63.8%
if -1.81999999999999998e-218 < b < 2.10000000000000007e138Initial program 75.9%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6476.2
Applied rewrites76.2%
Taylor expanded in c around inf
Applied rewrites66.4%
Final simplification65.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -7.1e+133)
(* x (fma t (- a) (* y z)))
(if (<= x 2.4e+48)
(fma t (* c j) (* b (- (* a i) (* z c))))
(fma x (- (* y z) (* t a)) (* c (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -7.1e+133) {
tmp = x * fma(t, -a, (y * z));
} else if (x <= 2.4e+48) {
tmp = fma(t, (c * j), (b * ((a * i) - (z * c))));
} else {
tmp = fma(x, ((y * z) - (t * a)), (c * (t * j)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -7.1e+133) tmp = Float64(x * fma(t, Float64(-a), Float64(y * z))); elseif (x <= 2.4e+48) tmp = fma(t, Float64(c * j), Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(c * Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -7.1e+133], N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+48], N[(t * N[(c * j), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.1 \cdot 10^{+133}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\mathsf{fma}\left(t, c \cdot j, b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\
\end{array}
\end{array}
if x < -7.10000000000000011e133Initial program 72.9%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6472.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6472.9
Applied rewrites72.9%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6478.1
Applied rewrites78.1%
if -7.10000000000000011e133 < x < 2.4000000000000001e48Initial program 76.2%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6476.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6476.2
Applied rewrites76.2%
Taylor expanded in t around inf
lower-*.f64N/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.f6437.1
Applied rewrites37.1%
Taylor expanded in y around 0
cancel-sign-sub-invN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-lft-neg-inN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
Applied rewrites74.5%
Taylor expanded in c around inf
Applied rewrites65.5%
if 2.4000000000000001e48 < x Initial program 66.8%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6463.7
Applied rewrites63.7%
Taylor expanded in c around inf
Applied rewrites69.5%
Final simplification68.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))))
(if (<= b -2.4e-15)
t_1
(if (<= b 1e+114) (fma x (* y z) (* j (fma c t (* y (- i))))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double tmp;
if (b <= -2.4e-15) {
tmp = t_1;
} else if (b <= 1e+114) {
tmp = fma(x, (y * z), (j * fma(c, t, (y * -i))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) tmp = 0.0 if (b <= -2.4e-15) tmp = t_1; elseif (b <= 1e+114) tmp = fma(x, Float64(y * z), Float64(j * fma(c, t, 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[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e-15], t$95$1, If[LessEqual[b, 1e+114], N[(x * N[(y * z), $MachinePrecision] + N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 10^{+114}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.39999999999999995e-15 or 1e114 < b Initial program 73.8%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/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
distribute-rgt-neg-inN/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.5
Applied rewrites64.5%
if -2.39999999999999995e-15 < b < 1e114Initial program 73.7%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6472.2
Applied rewrites72.2%
Taylor expanded in y around inf
Applied rewrites59.8%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.55e+134)
(* z (* x y))
(if (<= x -3.4e-94)
(* c (* t j))
(if (<= x 3e-281)
(* a (* b i))
(if (<= x 1.55e+45) (* t (* c j)) (- (* x (* t a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.55e+134) {
tmp = z * (x * y);
} else if (x <= -3.4e-94) {
tmp = c * (t * j);
} else if (x <= 3e-281) {
tmp = a * (b * i);
} else if (x <= 1.55e+45) {
tmp = t * (c * j);
} else {
tmp = -(x * (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-2.55d+134)) then
tmp = z * (x * y)
else if (x <= (-3.4d-94)) then
tmp = c * (t * j)
else if (x <= 3d-281) then
tmp = a * (b * i)
else if (x <= 1.55d+45) then
tmp = t * (c * j)
else
tmp = -(x * (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.55e+134) {
tmp = z * (x * y);
} else if (x <= -3.4e-94) {
tmp = c * (t * j);
} else if (x <= 3e-281) {
tmp = a * (b * i);
} else if (x <= 1.55e+45) {
tmp = t * (c * j);
} else {
tmp = -(x * (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.55e+134: tmp = z * (x * y) elif x <= -3.4e-94: tmp = c * (t * j) elif x <= 3e-281: tmp = a * (b * i) elif x <= 1.55e+45: tmp = t * (c * j) else: tmp = -(x * (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.55e+134) tmp = Float64(z * Float64(x * y)); elseif (x <= -3.4e-94) tmp = Float64(c * Float64(t * j)); elseif (x <= 3e-281) tmp = Float64(a * Float64(b * i)); elseif (x <= 1.55e+45) tmp = Float64(t * Float64(c * j)); else tmp = Float64(-Float64(x * Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.55e+134) tmp = z * (x * y); elseif (x <= -3.4e-94) tmp = c * (t * j); elseif (x <= 3e-281) tmp = a * (b * i); elseif (x <= 1.55e+45) tmp = t * (c * j); else tmp = -(x * (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.55e+134], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.4e-94], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e-281], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.55e+45], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], (-N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision])]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.55 \cdot 10^{+134}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -3.4 \cdot 10^{-94}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-281}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+45}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;-x \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if x < -2.54999999999999983e134Initial program 74.4%
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-*.f6464.3
Applied rewrites64.3%
Taylor expanded in c around 0
Applied rewrites57.7%
if -2.54999999999999983e134 < x < -3.3999999999999998e-94Initial program 74.4%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6464.7
Applied rewrites64.7%
Taylor expanded in c around inf
Applied rewrites34.7%
if -3.3999999999999998e-94 < x < 2.99999999999999975e-281Initial program 67.2%
Taylor expanded in a 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-*.f6444.2
Applied rewrites44.2%
Taylor expanded in t around 0
Applied rewrites35.4%
if 2.99999999999999975e-281 < x < 1.54999999999999994e45Initial program 81.7%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6481.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6481.7
Applied rewrites81.7%
Taylor expanded in t around inf
lower-*.f64N/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.f6443.7
Applied rewrites43.7%
Taylor expanded in c around inf
Applied rewrites36.8%
if 1.54999999999999994e45 < x Initial program 67.5%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6467.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6467.5
Applied rewrites67.5%
Taylor expanded in t around inf
lower-*.f64N/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.5
Applied rewrites45.5%
Taylor expanded in c around 0
Applied rewrites39.7%
Final simplification40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -2.15e+123)
(* i (* a b))
(if (<= b 1.25e-291)
(* z (* x y))
(if (<= b 5.6e+97)
(* j (* t c))
(if (<= b 2.9e+200) (* c (* z (- b))) (* a (* b i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.15e+123) {
tmp = i * (a * b);
} else if (b <= 1.25e-291) {
tmp = z * (x * y);
} else if (b <= 5.6e+97) {
tmp = j * (t * c);
} else if (b <= 2.9e+200) {
tmp = c * (z * -b);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2.15d+123)) then
tmp = i * (a * b)
else if (b <= 1.25d-291) then
tmp = z * (x * y)
else if (b <= 5.6d+97) then
tmp = j * (t * c)
else if (b <= 2.9d+200) then
tmp = c * (z * -b)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.15e+123) {
tmp = i * (a * b);
} else if (b <= 1.25e-291) {
tmp = z * (x * y);
} else if (b <= 5.6e+97) {
tmp = j * (t * c);
} else if (b <= 2.9e+200) {
tmp = c * (z * -b);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.15e+123: tmp = i * (a * b) elif b <= 1.25e-291: tmp = z * (x * y) elif b <= 5.6e+97: tmp = j * (t * c) elif b <= 2.9e+200: tmp = c * (z * -b) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.15e+123) tmp = Float64(i * Float64(a * b)); elseif (b <= 1.25e-291) tmp = Float64(z * Float64(x * y)); elseif (b <= 5.6e+97) tmp = Float64(j * Float64(t * c)); elseif (b <= 2.9e+200) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.15e+123) tmp = i * (a * b); elseif (b <= 1.25e-291) tmp = z * (x * y); elseif (b <= 5.6e+97) tmp = j * (t * c); elseif (b <= 2.9e+200) tmp = c * (z * -b); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.15e+123], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-291], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e+97], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e+200], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{+97}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+200}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -2.14999999999999993e123Initial program 83.4%
Taylor expanded in a 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-*.f6443.0
Applied rewrites43.0%
Taylor expanded in t around 0
Applied rewrites39.8%
Applied rewrites42.4%
if -2.14999999999999993e123 < b < 1.2500000000000001e-291Initial program 70.6%
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-*.f6449.5
Applied rewrites49.5%
Taylor expanded in c around 0
Applied rewrites37.5%
if 1.2500000000000001e-291 < b < 5.5999999999999998e97Initial program 74.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6449.2
Applied rewrites49.2%
Taylor expanded in c around inf
Applied rewrites32.5%
if 5.5999999999999998e97 < b < 2.8999999999999999e200Initial program 65.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-*.f6453.2
Applied rewrites53.2%
Taylor expanded in c around inf
Applied rewrites49.1%
if 2.8999999999999999e200 < b Initial program 79.5%
Taylor expanded in a 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-*.f6469.0
Applied rewrites69.0%
Taylor expanded in t around 0
Applied rewrites69.3%
Final simplification40.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))))
(if (<= b -1.62e-12)
t_1
(if (<= b -8e-197)
(* y (fma j (- i) (* x z)))
(if (<= b 1.5e+123) (* t (fma j c (* x (- a)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double tmp;
if (b <= -1.62e-12) {
tmp = t_1;
} else if (b <= -8e-197) {
tmp = y * fma(j, -i, (x * z));
} else if (b <= 1.5e+123) {
tmp = t * fma(j, c, (x * -a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) tmp = 0.0 if (b <= -1.62e-12) tmp = t_1; elseif (b <= -8e-197) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (b <= 1.5e+123) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); 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[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.62e-12], t$95$1, If[LessEqual[b, -8e-197], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+123], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{if}\;b \leq -1.62 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-197}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+123}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.62e-12 or 1.50000000000000004e123 < b Initial program 75.6%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/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
distribute-rgt-neg-inN/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.0
Applied rewrites66.0%
if -1.62e-12 < b < -7.9999999999999999e-197Initial program 69.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-*.f6460.2
Applied rewrites60.2%
if -7.9999999999999999e-197 < b < 1.50000000000000004e123Initial program 74.1%
Taylor expanded in t 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.f6455.3
Applied rewrites55.3%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))))
(if (<= b -3.55e-34)
t_1
(if (<= b -3.6e-197)
(* j (fma c t (* y (- i))))
(if (<= b 1.5e+123) (* t (fma j c (* x (- a)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double tmp;
if (b <= -3.55e-34) {
tmp = t_1;
} else if (b <= -3.6e-197) {
tmp = j * fma(c, t, (y * -i));
} else if (b <= 1.5e+123) {
tmp = t * fma(j, c, (x * -a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) tmp = 0.0 if (b <= -3.55e-34) tmp = t_1; elseif (b <= -3.6e-197) tmp = Float64(j * fma(c, t, Float64(y * Float64(-i)))); elseif (b <= 1.5e+123) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); 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[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.55e-34], t$95$1, If[LessEqual[b, -3.6e-197], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+123], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{if}\;b \leq -3.55 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-197}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+123}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.55000000000000018e-34 or 1.50000000000000004e123 < b Initial program 73.6%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/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
distribute-rgt-neg-inN/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.0
Applied rewrites64.0%
if -3.55000000000000018e-34 < b < -3.5999999999999998e-197Initial program 73.2%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6452.1
Applied rewrites52.1%
if -3.5999999999999998e-197 < b < 1.50000000000000004e123Initial program 74.1%
Taylor expanded in t 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.f6455.3
Applied rewrites55.3%
Final simplification58.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -3.3e+96)
t_1
(if (<= a 2.8e-285)
(* c (fma j t (* z (- b))))
(if (<= a 7.8e+54) (* j (fma c t (* 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(t, -x, (b * i));
double tmp;
if (a <= -3.3e+96) {
tmp = t_1;
} else if (a <= 2.8e-285) {
tmp = c * fma(j, t, (z * -b));
} else if (a <= 7.8e+54) {
tmp = j * fma(c, t, (y * -i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -3.3e+96) tmp = t_1; elseif (a <= 2.8e-285) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (a <= 7.8e+54) tmp = Float64(j * fma(c, t, 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[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.3e+96], t$95$1, If[LessEqual[a, 2.8e-285], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e+54], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -3.3 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-285}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{+54}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.29999999999999984e96 or 7.8000000000000005e54 < a Initial program 60.4%
Taylor expanded in a 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-*.f6469.0
Applied rewrites69.0%
if -3.29999999999999984e96 < a < 2.79999999999999991e-285Initial program 78.3%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/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.f6449.9
Applied rewrites49.9%
if 2.79999999999999991e-285 < a < 7.8000000000000005e54Initial program 82.5%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6450.7
Applied rewrites50.7%
Final simplification56.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma j t (* z (- b))))))
(if (<= c -4.5e-64)
t_1
(if (<= c -1.58e-270)
(* i (fma j (- y) (* a b)))
(if (<= c 9e+78) (* a (fma t (- x) (* b 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 = c * fma(j, t, (z * -b));
double tmp;
if (c <= -4.5e-64) {
tmp = t_1;
} else if (c <= -1.58e-270) {
tmp = i * fma(j, -y, (a * b));
} else if (c <= 9e+78) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(j, t, Float64(z * Float64(-b)))) tmp = 0.0 if (c <= -4.5e-64) tmp = t_1; elseif (c <= -1.58e-270) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (c <= 9e+78) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.5e-64], t$95$1, If[LessEqual[c, -1.58e-270], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9e+78], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{if}\;c \leq -4.5 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.58 \cdot 10^{-270}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;c \leq 9 \cdot 10^{+78}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.5000000000000001e-64 or 8.9999999999999999e78 < c Initial program 70.8%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/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.f6461.4
Applied rewrites61.4%
if -4.5000000000000001e-64 < c < -1.57999999999999997e-270Initial program 77.9%
Taylor expanded in i 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-*.f6458.0
Applied rewrites58.0%
if -1.57999999999999997e-270 < c < 8.9999999999999999e78Initial program 76.3%
Taylor expanded in a 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-*.f6448.0
Applied rewrites48.0%
Final simplification56.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))))
(if (<= b -1.08e-13)
t_1
(if (<= b -1.36e-86)
(* y (* x z))
(if (<= b 9.5e+51) (* a (fma t (- x) (* b i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double tmp;
if (b <= -1.08e-13) {
tmp = t_1;
} else if (b <= -1.36e-86) {
tmp = y * (x * z);
} else if (b <= 9.5e+51) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) tmp = 0.0 if (b <= -1.08e-13) tmp = t_1; elseif (b <= -1.36e-86) tmp = Float64(y * Float64(x * z)); elseif (b <= 9.5e+51) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); 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[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.08e-13], t$95$1, If[LessEqual[b, -1.36e-86], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e+51], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{if}\;b \leq -1.08 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.36 \cdot 10^{-86}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+51}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.0799999999999999e-13 or 9.4999999999999999e51 < b Initial program 77.5%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/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
distribute-rgt-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.1
Applied rewrites63.1%
if -1.0799999999999999e-13 < b < -1.3599999999999999e-86Initial program 70.9%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6463.0
Applied rewrites63.0%
Taylor expanded in z around inf
Applied rewrites55.3%
if -1.3599999999999999e-86 < b < 9.4999999999999999e51Initial program 70.4%
Taylor expanded in a 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-*.f6437.5
Applied rewrites37.5%
Final simplification51.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma j t (* z (- b))))))
(if (<= c -1.35e-54)
t_1
(if (<= c 9e+78) (* a (fma t (- x) (* b 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 = c * fma(j, t, (z * -b));
double tmp;
if (c <= -1.35e-54) {
tmp = t_1;
} else if (c <= 9e+78) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(j, t, Float64(z * Float64(-b)))) tmp = 0.0 if (c <= -1.35e-54) tmp = t_1; elseif (c <= 9e+78) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e-54], t$95$1, If[LessEqual[c, 9e+78], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{if}\;c \leq -1.35 \cdot 10^{-54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 9 \cdot 10^{+78}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.35000000000000013e-54 or 8.9999999999999999e78 < c Initial program 71.4%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/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.f6461.9
Applied rewrites61.9%
if -1.35000000000000013e-54 < c < 8.9999999999999999e78Initial program 76.1%
Taylor expanded in a 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-*.f6447.1
Applied rewrites47.1%
Final simplification54.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= y -7.5e+119)
t_1
(if (<= y 1.45e+152) (* a (fma t (- x) (* b i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (y <= -7.5e+119) {
tmp = t_1;
} else if (y <= 1.45e+152) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -7.5e+119) tmp = t_1; elseif (y <= 1.45e+152) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e+119], t$95$1, If[LessEqual[y, 1.45e+152], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+152}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.500000000000001e119 or 1.4499999999999999e152 < y Initial program 56.4%
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.8
Applied rewrites61.8%
Taylor expanded in c around 0
Applied rewrites52.5%
if -7.500000000000001e119 < y < 1.4499999999999999e152Initial program 80.7%
Taylor expanded in a 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-*.f6442.8
Applied rewrites42.8%
Final simplification45.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -2.15e+123)
(* i (* a b))
(if (<= b 1.25e-291)
(* z (* x y))
(if (<= b 9.8e+94) (* j (* t c)) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.15e+123) {
tmp = i * (a * b);
} else if (b <= 1.25e-291) {
tmp = z * (x * y);
} else if (b <= 9.8e+94) {
tmp = j * (t * c);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2.15d+123)) then
tmp = i * (a * b)
else if (b <= 1.25d-291) then
tmp = z * (x * y)
else if (b <= 9.8d+94) then
tmp = j * (t * c)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.15e+123) {
tmp = i * (a * b);
} else if (b <= 1.25e-291) {
tmp = z * (x * y);
} else if (b <= 9.8e+94) {
tmp = j * (t * c);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.15e+123: tmp = i * (a * b) elif b <= 1.25e-291: tmp = z * (x * y) elif b <= 9.8e+94: tmp = j * (t * c) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.15e+123) tmp = Float64(i * Float64(a * b)); elseif (b <= 1.25e-291) tmp = Float64(z * Float64(x * y)); elseif (b <= 9.8e+94) tmp = Float64(j * Float64(t * c)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.15e+123) tmp = i * (a * b); elseif (b <= 1.25e-291) tmp = z * (x * y); elseif (b <= 9.8e+94) tmp = j * (t * c); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.15e+123], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-291], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+94], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -2.14999999999999993e123Initial program 83.4%
Taylor expanded in a 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-*.f6443.0
Applied rewrites43.0%
Taylor expanded in t around 0
Applied rewrites39.8%
Applied rewrites42.4%
if -2.14999999999999993e123 < b < 1.2500000000000001e-291Initial program 70.6%
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-*.f6449.5
Applied rewrites49.5%
Taylor expanded in c around 0
Applied rewrites37.5%
if 1.2500000000000001e-291 < b < 9.7999999999999998e94Initial program 74.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6449.2
Applied rewrites49.2%
Taylor expanded in c around inf
Applied rewrites32.5%
if 9.7999999999999998e94 < b Initial program 71.6%
Taylor expanded in a 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.9
Applied rewrites52.9%
Taylor expanded in t around 0
Applied rewrites48.7%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -2e+123)
(* i (* a b))
(if (<= b 1.25e-291)
(* y (* x z))
(if (<= b 9.8e+94) (* j (* t c)) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2e+123) {
tmp = i * (a * b);
} else if (b <= 1.25e-291) {
tmp = y * (x * z);
} else if (b <= 9.8e+94) {
tmp = j * (t * c);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2d+123)) then
tmp = i * (a * b)
else if (b <= 1.25d-291) then
tmp = y * (x * z)
else if (b <= 9.8d+94) then
tmp = j * (t * c)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2e+123) {
tmp = i * (a * b);
} else if (b <= 1.25e-291) {
tmp = y * (x * z);
} else if (b <= 9.8e+94) {
tmp = j * (t * c);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2e+123: tmp = i * (a * b) elif b <= 1.25e-291: tmp = y * (x * z) elif b <= 9.8e+94: tmp = j * (t * c) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2e+123) tmp = Float64(i * Float64(a * b)); elseif (b <= 1.25e-291) tmp = Float64(y * Float64(x * z)); elseif (b <= 9.8e+94) tmp = Float64(j * Float64(t * c)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2e+123) tmp = i * (a * b); elseif (b <= 1.25e-291) tmp = y * (x * z); elseif (b <= 9.8e+94) tmp = j * (t * c); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2e+123], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-291], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+94], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{+123}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -1.99999999999999996e123Initial program 83.4%
Taylor expanded in a 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-*.f6443.0
Applied rewrites43.0%
Taylor expanded in t around 0
Applied rewrites39.8%
Applied rewrites42.4%
if -1.99999999999999996e123 < b < 1.2500000000000001e-291Initial program 70.6%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6462.2
Applied rewrites62.2%
Taylor expanded in z around inf
Applied rewrites32.2%
if 1.2500000000000001e-291 < b < 9.7999999999999998e94Initial program 74.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6449.2
Applied rewrites49.2%
Taylor expanded in c around inf
Applied rewrites32.5%
if 9.7999999999999998e94 < b Initial program 71.6%
Taylor expanded in a 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.9
Applied rewrites52.9%
Taylor expanded in t around 0
Applied rewrites48.7%
Final simplification36.4%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* y (* x z)))) (if (<= z -2.4e+31) t_1 (if (<= z 9.2e-36) (* i (* a 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 = y * (x * z);
double tmp;
if (z <= -2.4e+31) {
tmp = t_1;
} else if (z <= 9.2e-36) {
tmp = i * (a * b);
} 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)
if (z <= (-2.4d+31)) then
tmp = t_1
else if (z <= 9.2d-36) then
tmp = i * (a * b)
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);
double tmp;
if (z <= -2.4e+31) {
tmp = t_1;
} else if (z <= 9.2e-36) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if z <= -2.4e+31: tmp = t_1 elif z <= 9.2e-36: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (z <= -2.4e+31) tmp = t_1; elseif (z <= 9.2e-36) tmp = Float64(i * Float64(a * b)); 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); tmp = 0.0; if (z <= -2.4e+31) tmp = t_1; elseif (z <= 9.2e-36) tmp = i * (a * b); 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[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+31], t$95$1, If[LessEqual[z, 9.2e-36], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-36}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.39999999999999982e31 or 9.19999999999999986e-36 < z Initial program 69.6%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6459.7
Applied rewrites59.7%
Taylor expanded in z around inf
Applied rewrites39.9%
if -2.39999999999999982e31 < z < 9.19999999999999986e-36Initial program 78.1%
Taylor expanded in a 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-*.f6445.7
Applied rewrites45.7%
Taylor expanded in t around 0
Applied rewrites27.5%
Applied rewrites28.2%
Final simplification34.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* i (* a b)))) (if (<= a -1.2e+88) t_1 (if (<= a 8e+17) (* c (* t j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (a <= -1.2e+88) {
tmp = t_1;
} else if (a <= 8e+17) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (a <= (-1.2d+88)) then
tmp = t_1
else if (a <= 8d+17) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (a <= -1.2e+88) {
tmp = t_1;
} else if (a <= 8e+17) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if a <= -1.2e+88: tmp = t_1 elif a <= 8e+17: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (a <= -1.2e+88) tmp = t_1; elseif (a <= 8e+17) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (a <= -1.2e+88) tmp = t_1; elseif (a <= 8e+17) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e+88], t$95$1, If[LessEqual[a, 8e+17], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+17}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.2e88 or 8e17 < a Initial program 59.6%
Taylor expanded in a 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-*.f6462.2
Applied rewrites62.2%
Taylor expanded in t around 0
Applied rewrites36.5%
Applied rewrites37.6%
if -1.2e88 < a < 8e17Initial program 82.9%
Taylor expanded in b around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6467.3
Applied rewrites67.3%
Taylor expanded in c around inf
Applied rewrites26.9%
Final simplification31.1%
(FPCore (x y z t a b c i j) :precision binary64 (* i (* a b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return i * (a * b);
}
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 = i * (a * b)
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 i * (a * b);
}
def code(x, y, z, t, a, b, c, i, j): return i * (a * b)
function code(x, y, z, t, a, b, c, i, j) return Float64(i * Float64(a * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = i * (a * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(a \cdot b\right)
\end{array}
Initial program 73.8%
Taylor expanded in a 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-*.f6436.6
Applied rewrites36.6%
Taylor expanded in t around 0
Applied rewrites20.3%
Applied rewrites21.1%
Final simplification21.1%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 73.8%
Taylor expanded in a 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-*.f6436.6
Applied rewrites36.6%
Taylor expanded in t around 0
Applied rewrites20.3%
Final simplification20.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 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(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024221
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))