
(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 22 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 (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(fma t (fma j c (* x (- a))) (* y (- (* x z) (* i j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(t, fma(j, c, (x * -a)), (y * ((x * z) - (i * j))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(y * Float64(Float64(x * z) - Float64(i * j)))); 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[(a * i), $MachinePrecision] - N[(z * c), $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[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), y \cdot \left(x \cdot z - i \cdot j\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.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 0
Applied rewrites35.0%
Taylor expanded in y around inf
Applied rewrites65.3%
Final simplification85.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))) (t_2 (fma c t (* y (- i)))))
(if (<= j -3.2e+140)
(* j t_2)
(if (<= j 7.8e+162)
(fma t (fma j c (* x (- a))) (fma y (fma j (- i) (* x z)) t_1))
(fma j t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double t_2 = fma(c, t, (y * -i));
double tmp;
if (j <= -3.2e+140) {
tmp = j * t_2;
} else if (j <= 7.8e+162) {
tmp = fma(t, fma(j, c, (x * -a)), fma(y, fma(j, -i, (x * z)), t_1));
} else {
tmp = fma(j, t_2, 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))) t_2 = fma(c, t, Float64(y * Float64(-i))) tmp = 0.0 if (j <= -3.2e+140) tmp = Float64(j * t_2); elseif (j <= 7.8e+162) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), fma(y, fma(j, Float64(-i), Float64(x * z)), t_1)); else tmp = fma(j, t_2, 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]}, Block[{t$95$2 = N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.2e+140], N[(j * t$95$2), $MachinePrecision], If[LessEqual[j, 7.8e+162], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(j * t$95$2 + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
t_2 := \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{if}\;j \leq -3.2 \cdot 10^{+140}:\\
\;\;\;\;j \cdot t\_2\\
\mathbf{elif}\;j \leq 7.8 \cdot 10^{+162}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), \mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t\_1\right)\\
\end{array}
\end{array}
if j < -3.20000000000000011e140Initial program 63.1%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6485.3
Applied rewrites85.3%
if -3.20000000000000011e140 < j < 7.80000000000000079e162Initial program 75.0%
Taylor expanded in y around 0
Applied rewrites82.3%
if 7.80000000000000079e162 < j Initial program 85.7%
Taylor expanded in x around 0
sub-negN/A
lower-fma.f64N/A
sub-negN/A
lower-fma.f64N/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
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6488.5
Applied rewrites88.5%
Final simplification83.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.65e-7)
(fma j (fma c t (* y (- i))) (* b (fma c (- z) (* a i))))
(if (<= i 1.65e+50)
(+ (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))) (* j (* t c)))
(fma t (fma j c (* x (- a))) (* i (fma j (- y) (* a b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.65e-7) {
tmp = fma(j, fma(c, t, (y * -i)), (b * fma(c, -z, (a * i))));
} else if (i <= 1.65e+50) {
tmp = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * (t * c));
} else {
tmp = fma(t, fma(j, c, (x * -a)), (i * fma(j, -y, (a * b))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.65e-7) tmp = fma(j, fma(c, t, Float64(y * Float64(-i))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); elseif (i <= 1.65e+50) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(t * c))); else tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(i * fma(j, Float64(-y), Float64(a * b)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.65e-7], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.65e+50], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.65 \cdot 10^{-7}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{+50}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\right)\\
\end{array}
\end{array}
if i < -2.65e-7Initial program 70.1%
Taylor expanded in x around 0
sub-negN/A
lower-fma.f64N/A
sub-negN/A
lower-fma.f64N/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
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.7
Applied rewrites81.7%
if -2.65e-7 < i < 1.65e50Initial program 82.0%
Taylor expanded in c around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6478.3
Applied rewrites78.3%
if 1.65e50 < i Initial program 62.4%
Taylor expanded in y around 0
Applied rewrites57.3%
Taylor expanded in i around inf
Applied rewrites73.1%
Final simplification78.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j c (* x (- a))))
(t_2 (fma t t_1 (* y (- (* x z) (* i j))))))
(if (<= y -1.08e-157)
t_2
(if (<= y 7.2e-122)
(fma j (fma c t (* y (- i))) (* b (fma c (- z) (* a i))))
(if (<= y 3.3e+20) (fma t t_1 (* i (fma j (- y) (* a b)))) 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 = fma(j, c, (x * -a));
double t_2 = fma(t, t_1, (y * ((x * z) - (i * j))));
double tmp;
if (y <= -1.08e-157) {
tmp = t_2;
} else if (y <= 7.2e-122) {
tmp = fma(j, fma(c, t, (y * -i)), (b * fma(c, -z, (a * i))));
} else if (y <= 3.3e+20) {
tmp = fma(t, t_1, (i * fma(j, -y, (a * b))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, c, Float64(x * Float64(-a))) t_2 = fma(t, t_1, Float64(y * Float64(Float64(x * z) - Float64(i * j)))) tmp = 0.0 if (y <= -1.08e-157) tmp = t_2; elseif (y <= 7.2e-122) tmp = fma(j, fma(c, t, Float64(y * Float64(-i))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); elseif (y <= 3.3e+20) tmp = fma(t, t_1, Float64(i * fma(j, Float64(-y), Float64(a * b)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * t$95$1 + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.08e-157], t$95$2, If[LessEqual[y, 7.2e-122], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+20], N[(t * t$95$1 + N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
t_2 := \mathsf{fma}\left(t, t\_1, y \cdot \left(x \cdot z - i \cdot j\right)\right)\\
\mathbf{if}\;y \leq -1.08 \cdot 10^{-157}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-122}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+20}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.0799999999999999e-157 or 3.3e20 < y Initial program 72.3%
Taylor expanded in y around 0
Applied rewrites79.8%
Taylor expanded in y around inf
Applied rewrites77.3%
if -1.0799999999999999e-157 < y < 7.19999999999999989e-122Initial program 81.9%
Taylor expanded in x around 0
sub-negN/A
lower-fma.f64N/A
sub-negN/A
lower-fma.f64N/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
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.1
Applied rewrites77.1%
if 7.19999999999999989e-122 < y < 3.3e20Initial program 72.3%
Taylor expanded in y around 0
Applied rewrites74.8%
Taylor expanded in i around inf
Applied rewrites77.7%
Final simplification77.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma t (fma j c (* x (- a))) (* i (fma j (- y) (* a b))))))
(if (<= t -3.8e-33)
t_1
(if (<= t 800000.0)
(fma j (fma c t (* y (- i))) (* b (fma c (- z) (* a 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 = fma(t, fma(j, c, (x * -a)), (i * fma(j, -y, (a * b))));
double tmp;
if (t <= -3.8e-33) {
tmp = t_1;
} else if (t <= 800000.0) {
tmp = fma(j, fma(c, t, (y * -i)), (b * fma(c, -z, (a * i))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(i * fma(j, Float64(-y), Float64(a * b)))) tmp = 0.0 if (t <= -3.8e-33) tmp = t_1; elseif (t <= 800000.0) tmp = fma(j, fma(c, t, Float64(y * Float64(-i))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e-33], t$95$1, If[LessEqual[t, 800000.0], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\right)\\
\mathbf{if}\;t \leq -3.8 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 800000:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.79999999999999994e-33 or 8e5 < t Initial program 68.1%
Taylor expanded in y around 0
Applied rewrites75.3%
Taylor expanded in i around inf
Applied rewrites78.2%
if -3.79999999999999994e-33 < t < 8e5Initial program 81.9%
Taylor expanded in x around 0
sub-negN/A
lower-fma.f64N/A
sub-negN/A
lower-fma.f64N/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
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.4
Applied rewrites66.4%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.1e+252)
(* x (- (* y z) (* t a)))
(if (<= x 3.1e+209)
(fma j (fma c t (* y (- i))) (* b (fma c (- z) (* a i))))
(* x (fma t (- a) (* y z))))))
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.1e+252) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 3.1e+209) {
tmp = fma(j, fma(c, t, (y * -i)), (b * fma(c, -z, (a * i))));
} else {
tmp = x * fma(t, -a, (y * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.1e+252) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (x <= 3.1e+209) tmp = fma(j, fma(c, t, Float64(y * Float64(-i))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = Float64(x * fma(t, Float64(-a), Float64(y * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.1e+252], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+209], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+252}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+209}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
\end{array}
\end{array}
if x < -2.1000000000000001e252Initial program 85.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6493.0
Applied rewrites93.0%
if -2.1000000000000001e252 < x < 3.1000000000000001e209Initial program 74.7%
Taylor expanded in x around 0
sub-negN/A
lower-fma.f64N/A
sub-negN/A
lower-fma.f64N/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
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.5
Applied rewrites68.5%
if 3.1000000000000001e209 < x Initial program 68.0%
Taylor expanded in y around 0
Applied rewrites45.9%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/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-*.f6486.6
Applied rewrites86.6%
Final simplification71.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (fma j c (* x (- a))))))
(if (<= t -900.0)
t_1
(if (<= t -1.65e-208)
(* b (fma c (- z) (* a i)))
(if (<= t 1.65e-108)
(* y (fma j (- i) (* x z)))
(if (<= t 1.5e+59) (* i (fma j (- y) (* 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 = t * fma(j, c, (x * -a));
double tmp;
if (t <= -900.0) {
tmp = t_1;
} else if (t <= -1.65e-208) {
tmp = b * fma(c, -z, (a * i));
} else if (t <= 1.65e-108) {
tmp = y * fma(j, -i, (x * z));
} else if (t <= 1.5e+59) {
tmp = i * fma(j, -y, (a * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * fma(j, c, Float64(x * Float64(-a)))) tmp = 0.0 if (t <= -900.0) tmp = t_1; elseif (t <= -1.65e-208) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); elseif (t <= 1.65e-108) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (t <= 1.5e+59) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); 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[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -900.0], t$95$1, If[LessEqual[t, -1.65e-208], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e-108], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+59], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{if}\;t \leq -900:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{-208}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-108}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+59}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -900 or 1.5e59 < t Initial program 66.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.f6465.7
Applied rewrites65.7%
if -900 < t < -1.65000000000000003e-208Initial program 80.1%
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
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.7
Applied rewrites55.7%
if -1.65000000000000003e-208 < t < 1.6500000000000001e-108Initial program 81.6%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.2
Applied rewrites69.2%
if 1.6500000000000001e-108 < t < 1.5e59Initial program 84.1%
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-*.f6456.9
Applied rewrites56.9%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))) (t_2 (* i (fma j (- y) (* a b)))))
(if (<= i -2.3e+25)
t_2
(if (<= i -6.5e-67)
t_1
(if (<= i -9e-202)
(* a (fma t (- x) (* b i)))
(if (<= i 2.05e+48) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(b, -z, (t * j));
double t_2 = i * fma(j, -y, (a * b));
double tmp;
if (i <= -2.3e+25) {
tmp = t_2;
} else if (i <= -6.5e-67) {
tmp = t_1;
} else if (i <= -9e-202) {
tmp = a * fma(t, -x, (b * i));
} else if (i <= 2.05e+48) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(b, Float64(-z), Float64(t * j))) t_2 = Float64(i * fma(j, Float64(-y), Float64(a * b))) tmp = 0.0 if (i <= -2.3e+25) tmp = t_2; elseif (i <= -6.5e-67) tmp = t_1; elseif (i <= -9e-202) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); elseif (i <= 2.05e+48) 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[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.3e+25], t$95$2, If[LessEqual[i, -6.5e-67], t$95$1, If[LessEqual[i, -9e-202], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.05e+48], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
t_2 := i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{if}\;i \leq -2.3 \cdot 10^{+25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -6.5 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -9 \cdot 10^{-202}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{elif}\;i \leq 2.05 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.2999999999999998e25 or 2.0500000000000001e48 < i Initial program 68.3%
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-*.f6470.7
Applied rewrites70.7%
if -2.2999999999999998e25 < i < -6.4999999999999997e-67 or -9.00000000000000078e-202 < i < 2.0500000000000001e48Initial program 76.4%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.1
Applied rewrites54.1%
if -6.4999999999999997e-67 < i < -9.00000000000000078e-202Initial program 93.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-*.f6460.0
Applied rewrites60.0%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= y -2.4e+136)
(* (* i j) (- y))
(if (<= y -1.55e-222)
t_1
(if (<= y 7e-108)
(* b (fma c (- z) (* a i)))
(if (<= y 4e+163) t_1 (* j (* y (- i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (y <= -2.4e+136) {
tmp = (i * j) * -y;
} else if (y <= -1.55e-222) {
tmp = t_1;
} else if (y <= 7e-108) {
tmp = b * fma(c, -z, (a * i));
} else if (y <= 4e+163) {
tmp = t_1;
} else {
tmp = j * (y * -i);
}
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 (y <= -2.4e+136) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (y <= -1.55e-222) tmp = t_1; elseif (y <= 7e-108) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); elseif (y <= 4e+163) tmp = t_1; else tmp = Float64(j * Float64(y * Float64(-i))); 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[y, -2.4e+136], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, -1.55e-222], t$95$1, If[LessEqual[y, 7e-108], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+163], t$95$1, N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+136}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;y \leq -1.55 \cdot 10^{-222}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-108}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -2.4e136Initial program 69.1%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6466.8
Applied rewrites66.8%
Taylor expanded in c around 0
Applied rewrites61.6%
if -2.4e136 < y < -1.5499999999999999e-222 or 6.9999999999999997e-108 < y < 3.9999999999999998e163Initial program 73.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-*.f6445.1
Applied rewrites45.1%
if -1.5499999999999999e-222 < y < 6.9999999999999997e-108Initial program 83.4%
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
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.6
Applied rewrites57.6%
if 3.9999999999999998e163 < y Initial program 70.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6465.4
Applied rewrites65.4%
Taylor expanded in c around 0
Applied rewrites55.7%
Final simplification51.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= y -2.4e+136)
(* (* i j) (- y))
(if (<= y -1.55e-222)
t_1
(if (<= y 6.5e-108)
(* b (- (* a i) (* z c)))
(if (<= y 4e+163) t_1 (* j (* y (- i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (y <= -2.4e+136) {
tmp = (i * j) * -y;
} else if (y <= -1.55e-222) {
tmp = t_1;
} else if (y <= 6.5e-108) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 4e+163) {
tmp = t_1;
} else {
tmp = j * (y * -i);
}
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 (y <= -2.4e+136) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (y <= -1.55e-222) tmp = t_1; elseif (y <= 6.5e-108) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= 4e+163) tmp = t_1; else tmp = Float64(j * Float64(y * Float64(-i))); 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[y, -2.4e+136], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, -1.55e-222], t$95$1, If[LessEqual[y, 6.5e-108], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+163], t$95$1, N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+136}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;y \leq -1.55 \cdot 10^{-222}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-108}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -2.4e136Initial program 69.1%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6466.8
Applied rewrites66.8%
Taylor expanded in c around 0
Applied rewrites61.6%
if -2.4e136 < y < -1.5499999999999999e-222 or 6.5000000000000002e-108 < y < 3.9999999999999998e163Initial program 73.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-*.f6445.1
Applied rewrites45.1%
if -1.5499999999999999e-222 < y < 6.5000000000000002e-108Initial program 83.4%
Taylor expanded in y around 0
Applied rewrites68.7%
Taylor expanded in b around inf
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6455.9
Applied rewrites55.9%
if 3.9999999999999998e163 < y Initial program 70.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6465.4
Applied rewrites65.4%
Taylor expanded in c around 0
Applied rewrites55.7%
Final simplification51.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -6.5e+20)
t_1
(if (<= a -6.6e-249)
(* (* i j) (- y))
(if (<= a 1.8e-279)
(* x (* y z))
(if (<= a 1.5e+43) (* 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 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -6.5e+20) {
tmp = t_1;
} else if (a <= -6.6e-249) {
tmp = (i * j) * -y;
} else if (a <= 1.8e-279) {
tmp = x * (y * z);
} else if (a <= 1.5e+43) {
tmp = c * (t * j);
} 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 <= -6.5e+20) tmp = t_1; elseif (a <= -6.6e-249) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (a <= 1.8e-279) tmp = Float64(x * Float64(y * z)); elseif (a <= 1.5e+43) tmp = 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[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e+20], t$95$1, If[LessEqual[a, -6.6e-249], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[a, 1.8e-279], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e+43], N[(c * N[(t * j), $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 -6.5 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.6 \cdot 10^{-249}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-279}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.5e20 or 1.50000000000000008e43 < a Initial program 67.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-*.f6459.7
Applied rewrites59.7%
if -6.5e20 < a < -6.6e-249Initial program 85.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6456.6
Applied rewrites56.6%
Taylor expanded in c around 0
Applied rewrites44.8%
if -6.6e-249 < a < 1.7999999999999998e-279Initial program 91.7%
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-*.f6471.4
Applied rewrites71.4%
Taylor expanded in c around 0
Applied rewrites51.6%
if 1.7999999999999998e-279 < a < 1.50000000000000008e43Initial program 76.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6459.1
Applied rewrites59.1%
Taylor expanded in c around inf
Applied rewrites32.5%
Applied rewrites34.3%
Final simplification51.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -3.2e+23)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
(if (<= i 9.2e+141)
(fma t (fma j c (* x (- a))) (* y (* x z)))
(* i (fma j (- y) (* a b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -3.2e+23) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (i <= 9.2e+141) {
tmp = fma(t, fma(j, c, (x * -a)), (y * (x * z)));
} else {
tmp = i * fma(j, -y, (a * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -3.2e+23) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); elseif (i <= 9.2e+141) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(y * Float64(x * z))); else tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3.2e+23], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.2e+141], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.2 \cdot 10^{+23}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{+141}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), y \cdot \left(x \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\end{array}
\end{array}
if i < -3.2e23Initial program 73.3%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6483.2
Applied rewrites83.2%
if -3.2e23 < i < 9.2000000000000006e141Initial program 79.3%
Taylor expanded in y around 0
Applied rewrites82.7%
Taylor expanded in y around inf
Applied rewrites68.6%
Taylor expanded in x around inf
Applied rewrites60.9%
if 9.2000000000000006e141 < i Initial program 57.5%
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-*.f6472.6
Applied rewrites72.6%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* a b)))))
(if (<= i -4.1e+23)
t_1
(if (<= i 9.2e+141) (fma t (fma j c (* x (- a))) (* y (* x z))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * fma(j, -y, (a * b));
double tmp;
if (i <= -4.1e+23) {
tmp = t_1;
} else if (i <= 9.2e+141) {
tmp = fma(t, fma(j, c, (x * -a)), (y * (x * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(-y), Float64(a * b))) tmp = 0.0 if (i <= -4.1e+23) tmp = t_1; elseif (i <= 9.2e+141) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(y * Float64(x * z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.1e+23], t$95$1, If[LessEqual[i, 9.2e+141], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{if}\;i \leq -4.1 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{+141}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), y \cdot \left(x \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -4.09999999999999996e23 or 9.2000000000000006e141 < i Initial 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-*.f6475.2
Applied rewrites75.2%
if -4.09999999999999996e23 < i < 9.2000000000000006e141Initial program 79.3%
Taylor expanded in y around 0
Applied rewrites82.7%
Taylor expanded in y around inf
Applied rewrites68.6%
Taylor expanded in x around inf
Applied rewrites60.9%
Final simplification66.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i j) (- y))))
(if (<= i -8e-26)
t_1
(if (<= i -2.9e-220)
(* x (* y z))
(if (<= i 5.5e-169)
(* j (* t c))
(if (<= i 4.3e+47) (* c (* z (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * j) * -y;
double tmp;
if (i <= -8e-26) {
tmp = t_1;
} else if (i <= -2.9e-220) {
tmp = x * (y * z);
} else if (i <= 5.5e-169) {
tmp = j * (t * c);
} else if (i <= 4.3e+47) {
tmp = c * (z * -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 = (i * j) * -y
if (i <= (-8d-26)) then
tmp = t_1
else if (i <= (-2.9d-220)) then
tmp = x * (y * z)
else if (i <= 5.5d-169) then
tmp = j * (t * c)
else if (i <= 4.3d+47) then
tmp = c * (z * -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 = (i * j) * -y;
double tmp;
if (i <= -8e-26) {
tmp = t_1;
} else if (i <= -2.9e-220) {
tmp = x * (y * z);
} else if (i <= 5.5e-169) {
tmp = j * (t * c);
} else if (i <= 4.3e+47) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * j) * -y tmp = 0 if i <= -8e-26: tmp = t_1 elif i <= -2.9e-220: tmp = x * (y * z) elif i <= 5.5e-169: tmp = j * (t * c) elif i <= 4.3e+47: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * j) * Float64(-y)) tmp = 0.0 if (i <= -8e-26) tmp = t_1; elseif (i <= -2.9e-220) tmp = Float64(x * Float64(y * z)); elseif (i <= 5.5e-169) tmp = Float64(j * Float64(t * c)); elseif (i <= 4.3e+47) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * j) * -y; tmp = 0.0; if (i <= -8e-26) tmp = t_1; elseif (i <= -2.9e-220) tmp = x * (y * z); elseif (i <= 5.5e-169) tmp = j * (t * c); elseif (i <= 4.3e+47) tmp = c * (z * -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[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]}, If[LessEqual[i, -8e-26], t$95$1, If[LessEqual[i, -2.9e-220], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.5e-169], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.3e+47], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{if}\;i \leq -8 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.9 \cdot 10^{-220}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{-169}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{+47}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -8.0000000000000003e-26 or 4.29999999999999995e47 < i Initial program 67.4%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.6
Applied rewrites53.6%
Taylor expanded in c around 0
Applied rewrites45.7%
if -8.0000000000000003e-26 < i < -2.8999999999999998e-220Initial program 90.7%
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-*.f6447.8
Applied rewrites47.8%
Taylor expanded in c around 0
Applied rewrites33.5%
if -2.8999999999999998e-220 < i < 5.4999999999999994e-169Initial program 78.0%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6451.9
Applied rewrites51.9%
Taylor expanded in c around inf
Applied rewrites47.7%
if 5.4999999999999994e-169 < i < 4.29999999999999995e47Initial program 77.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-*.f6455.1
Applied rewrites55.1%
Taylor expanded in c around inf
Applied rewrites30.3%
Applied rewrites35.8%
Final simplification42.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9.5e+69)
(* t (* c j))
(if (<= j 1.36e-174)
(* i (* a b))
(if (<= j 8.2e+74) (* z (* x y)) (* (* i j) (- y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.36e-174) {
tmp = i * (a * b);
} else if (j <= 8.2e+74) {
tmp = z * (x * y);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.5d+69)) then
tmp = t * (c * j)
else if (j <= 1.36d-174) then
tmp = i * (a * b)
else if (j <= 8.2d+74) then
tmp = z * (x * y)
else
tmp = (i * j) * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.36e-174) {
tmp = i * (a * b);
} else if (j <= 8.2e+74) {
tmp = z * (x * y);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.5e+69: tmp = t * (c * j) elif j <= 1.36e-174: tmp = i * (a * b) elif j <= 8.2e+74: tmp = z * (x * y) else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.5e+69) tmp = Float64(t * Float64(c * j)); elseif (j <= 1.36e-174) tmp = Float64(i * Float64(a * b)); elseif (j <= 8.2e+74) tmp = Float64(z * Float64(x * y)); else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.5e+69) tmp = t * (c * j); elseif (j <= 1.36e-174) tmp = i * (a * b); elseif (j <= 8.2e+74) tmp = z * (x * y); else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.5e+69], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.36e-174], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.2e+74], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.36 \cdot 10^{-174}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 8.2 \cdot 10^{+74}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if j < -9.4999999999999995e69Initial program 66.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6473.1
Applied rewrites73.1%
Taylor expanded in c around inf
Applied rewrites46.3%
if -9.4999999999999995e69 < j < 1.36e-174Initial program 75.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-*.f6441.8
Applied rewrites41.8%
Taylor expanded in j around 0
Applied rewrites33.9%
if 1.36e-174 < j < 8.2000000000000001e74Initial program 77.0%
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-*.f6454.4
Applied rewrites54.4%
Taylor expanded in c around 0
Applied rewrites39.0%
if 8.2000000000000001e74 < j Initial program 78.2%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6465.3
Applied rewrites65.3%
Taylor expanded in c around 0
Applied rewrites48.7%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))))
(if (<= c -2.45e+103)
t_1
(if (<= c 2.45e-27) (* 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(b, -z, (t * j));
double tmp;
if (c <= -2.45e+103) {
tmp = t_1;
} else if (c <= 2.45e-27) {
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(b, Float64(-z), Float64(t * j))) tmp = 0.0 if (c <= -2.45e+103) tmp = t_1; elseif (c <= 2.45e-27) 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[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.45e+103], t$95$1, If[LessEqual[c, 2.45e-27], 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(b, -z, t \cdot j\right)\\
\mathbf{if}\;c \leq -2.45 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.45 \cdot 10^{-27}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.4499999999999999e103 or 2.44999999999999988e-27 < c Initial program 68.9%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6466.1
Applied rewrites66.1%
if -2.4499999999999999e103 < c < 2.44999999999999988e-27Initial program 78.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-*.f6445.4
Applied rewrites45.4%
Final simplification53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9.5e+69)
(* t (* c j))
(if (<= j 1.36e-174)
(* i (* a b))
(if (<= j 2.4e+123) (* z (* x y)) (* 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 (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.36e-174) {
tmp = i * (a * b);
} else if (j <= 2.4e+123) {
tmp = z * (x * y);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.5d+69)) then
tmp = t * (c * j)
else if (j <= 1.36d-174) then
tmp = i * (a * b)
else if (j <= 2.4d+123) then
tmp = z * (x * y)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.36e-174) {
tmp = i * (a * b);
} else if (j <= 2.4e+123) {
tmp = z * (x * y);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.5e+69: tmp = t * (c * j) elif j <= 1.36e-174: tmp = i * (a * b) elif j <= 2.4e+123: tmp = z * (x * y) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.5e+69) tmp = Float64(t * Float64(c * j)); elseif (j <= 1.36e-174) tmp = Float64(i * Float64(a * b)); elseif (j <= 2.4e+123) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.5e+69) tmp = t * (c * j); elseif (j <= 1.36e-174) tmp = i * (a * b); elseif (j <= 2.4e+123) tmp = z * (x * y); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.5e+69], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.36e-174], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.4e+123], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.36 \cdot 10^{-174}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 2.4 \cdot 10^{+123}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -9.4999999999999995e69Initial program 66.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6473.1
Applied rewrites73.1%
Taylor expanded in c around inf
Applied rewrites46.3%
if -9.4999999999999995e69 < j < 1.36e-174Initial program 75.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-*.f6441.8
Applied rewrites41.8%
Taylor expanded in j around 0
Applied rewrites33.9%
if 1.36e-174 < j < 2.39999999999999989e123Initial program 73.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-*.f6451.3
Applied rewrites51.3%
Taylor expanded in c around 0
Applied rewrites35.4%
if 2.39999999999999989e123 < j Initial program 83.4%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6471.4
Applied rewrites71.4%
Taylor expanded in c around inf
Applied rewrites28.9%
Applied rewrites36.1%
Final simplification37.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9.5e+69)
(* t (* c j))
(if (<= j 1.36e-174)
(* i (* a b))
(if (<= j 2.3e+123) (* x (* y z)) (* 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 (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.36e-174) {
tmp = i * (a * b);
} else if (j <= 2.3e+123) {
tmp = x * (y * z);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.5d+69)) then
tmp = t * (c * j)
else if (j <= 1.36d-174) then
tmp = i * (a * b)
else if (j <= 2.3d+123) then
tmp = x * (y * z)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.36e-174) {
tmp = i * (a * b);
} else if (j <= 2.3e+123) {
tmp = x * (y * z);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.5e+69: tmp = t * (c * j) elif j <= 1.36e-174: tmp = i * (a * b) elif j <= 2.3e+123: tmp = x * (y * z) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.5e+69) tmp = Float64(t * Float64(c * j)); elseif (j <= 1.36e-174) tmp = Float64(i * Float64(a * b)); elseif (j <= 2.3e+123) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.5e+69) tmp = t * (c * j); elseif (j <= 1.36e-174) tmp = i * (a * b); elseif (j <= 2.3e+123) tmp = x * (y * z); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.5e+69], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.36e-174], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e+123], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.36 \cdot 10^{-174}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{+123}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -9.4999999999999995e69Initial program 66.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6473.1
Applied rewrites73.1%
Taylor expanded in c around inf
Applied rewrites46.3%
if -9.4999999999999995e69 < j < 1.36e-174Initial program 75.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-*.f6441.8
Applied rewrites41.8%
Taylor expanded in j around 0
Applied rewrites33.9%
if 1.36e-174 < j < 2.2999999999999999e123Initial program 73.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-*.f6451.3
Applied rewrites51.3%
Taylor expanded in c around 0
Applied rewrites32.3%
if 2.2999999999999999e123 < j Initial program 83.4%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6471.4
Applied rewrites71.4%
Taylor expanded in c around inf
Applied rewrites28.9%
Applied rewrites36.1%
Final simplification36.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9.5e+69)
(* t (* c j))
(if (<= j 1.3e-174)
(* a (* b i))
(if (<= j 2.3e+123) (* x (* y z)) (* 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 (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.3e-174) {
tmp = a * (b * i);
} else if (j <= 2.3e+123) {
tmp = x * (y * z);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.5d+69)) then
tmp = t * (c * j)
else if (j <= 1.3d-174) then
tmp = a * (b * i)
else if (j <= 2.3d+123) then
tmp = x * (y * z)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+69) {
tmp = t * (c * j);
} else if (j <= 1.3e-174) {
tmp = a * (b * i);
} else if (j <= 2.3e+123) {
tmp = x * (y * z);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.5e+69: tmp = t * (c * j) elif j <= 1.3e-174: tmp = a * (b * i) elif j <= 2.3e+123: tmp = x * (y * z) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.5e+69) tmp = Float64(t * Float64(c * j)); elseif (j <= 1.3e-174) tmp = Float64(a * Float64(b * i)); elseif (j <= 2.3e+123) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.5e+69) tmp = t * (c * j); elseif (j <= 1.3e-174) tmp = a * (b * i); elseif (j <= 2.3e+123) tmp = x * (y * z); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.5e+69], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.3e-174], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e+123], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{-174}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{+123}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -9.4999999999999995e69Initial program 66.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6473.1
Applied rewrites73.1%
Taylor expanded in c around inf
Applied rewrites46.3%
if -9.4999999999999995e69 < j < 1.3000000000000001e-174Initial program 75.9%
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.8
Applied rewrites48.8%
Taylor expanded in t around 0
Applied rewrites32.9%
if 1.3000000000000001e-174 < j < 2.2999999999999999e123Initial program 73.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-*.f6451.3
Applied rewrites51.3%
Taylor expanded in c around 0
Applied rewrites32.3%
if 2.2999999999999999e123 < j Initial program 83.4%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6471.4
Applied rewrites71.4%
Taylor expanded in c around inf
Applied rewrites28.9%
Applied rewrites36.1%
Final simplification36.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -6.8e-22) (* c (* t j)) (if (<= t 8200000000000.0) (* x (* y z)) (* t (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.8e-22) {
tmp = c * (t * j);
} else if (t <= 8200000000000.0) {
tmp = x * (y * z);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-6.8d-22)) then
tmp = c * (t * j)
else if (t <= 8200000000000.0d0) then
tmp = x * (y * z)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.8e-22) {
tmp = c * (t * j);
} else if (t <= 8200000000000.0) {
tmp = x * (y * z);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.8e-22: tmp = c * (t * j) elif t <= 8200000000000.0: tmp = x * (y * z) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.8e-22) tmp = Float64(c * Float64(t * j)); elseif (t <= 8200000000000.0) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.8e-22) tmp = c * (t * j); elseif (t <= 8200000000000.0) tmp = x * (y * z); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.8e-22], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8200000000000.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.8 \cdot 10^{-22}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq 8200000000000:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -6.7999999999999997e-22Initial program 68.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6452.2
Applied rewrites52.2%
Taylor expanded in c around inf
Applied rewrites38.2%
Applied rewrites40.9%
if -6.7999999999999997e-22 < t < 8.2e12Initial program 81.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-*.f6446.3
Applied rewrites46.3%
Taylor expanded in c around 0
Applied rewrites28.4%
if 8.2e12 < t Initial program 66.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6452.6
Applied rewrites52.6%
Taylor expanded in c around inf
Applied rewrites38.5%
Final simplification34.1%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* t j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (t * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = c * (t * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (t * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (t * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(t * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (t * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(t \cdot j\right)
\end{array}
Initial program 74.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6444.9
Applied rewrites44.9%
Taylor expanded in c around inf
Applied rewrites23.1%
Applied rewrites23.8%
Final simplification23.8%
(FPCore (x y z t a b c i j) :precision binary64 (* t (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return t * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = t * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return t * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return t * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(t * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = t * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t \cdot \left(c \cdot j\right)
\end{array}
Initial program 74.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6444.9
Applied rewrites44.9%
Taylor expanded in c around inf
Applied rewrites23.1%
Final simplification23.1%
(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 2024238
(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)))))