
(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 (- (* x z) (* i j)) y (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(((x * z) - (i * j)), y, (a * (b * i)));
}
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(Float64(Float64(x * z) - Float64(i * j)), y, Float64(a * Float64(b * i))); 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[(N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision] * y + N[(a * N[(b * i), $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(x \cdot z - i \cdot j, y, a \cdot \left(b \cdot i\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 93.0%
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 t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified49.3%
Taylor expanded in c around 0
*-lowering-*.f6455.5
Simplified55.5%
*-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
distribute-rgt-neg-outN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6455.5
Applied egg-rr55.5%
Final simplification83.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma y (fma j (- i) (* x z)) (* b (* a i))))
(t_2 (* c (fma (- z) b (* t j))))
(t_3 (* a (fma t (- x) (* b i)))))
(if (<= a -7e+67)
t_3
(if (<= a -5e-38)
t_2
(if (<= a -5.8e-250)
t_1
(if (<= a 3.2e-232) t_2 (if (<= a 1.1e+126) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(y, fma(j, -i, (x * z)), (b * (a * i)));
double t_2 = c * fma(-z, b, (t * j));
double t_3 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -7e+67) {
tmp = t_3;
} else if (a <= -5e-38) {
tmp = t_2;
} else if (a <= -5.8e-250) {
tmp = t_1;
} else if (a <= 3.2e-232) {
tmp = t_2;
} else if (a <= 1.1e+126) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * Float64(a * i))) t_2 = Float64(c * fma(Float64(-z), b, Float64(t * j))) t_3 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -7e+67) tmp = t_3; elseif (a <= -5e-38) tmp = t_2; elseif (a <= -5.8e-250) tmp = t_1; elseif (a <= 3.2e-232) tmp = t_2; elseif (a <= 1.1e+126) tmp = t_1; else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[((-z) * b + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7e+67], t$95$3, If[LessEqual[a, -5e-38], t$95$2, If[LessEqual[a, -5.8e-250], t$95$1, If[LessEqual[a, 3.2e-232], t$95$2, If[LessEqual[a, 1.1e+126], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \left(a \cdot i\right)\right)\\
t_2 := c \cdot \mathsf{fma}\left(-z, b, t \cdot j\right)\\
t_3 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -7 \cdot 10^{+67}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-250}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -7e67 or 1.09999999999999999e126 < a Initial program 54.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6478.0
Simplified78.0%
if -7e67 < a < -5.00000000000000033e-38 or -5.8000000000000004e-250 < a < 3.19999999999999987e-232Initial program 78.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6465.7
Simplified65.7%
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6467.9
Applied egg-rr67.9%
if -5.00000000000000033e-38 < a < -5.8000000000000004e-250 or 3.19999999999999987e-232 < a < 1.09999999999999999e126Initial program 75.7%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified73.6%
Taylor expanded in c around 0
*-lowering-*.f6467.0
Simplified67.0%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma y (fma j (- i) (* x z)) (* b (* a i))))
(t_2 (* c (fma j t (* z (- b))))))
(if (<= c -7.4e+109)
t_2
(if (<= c 1.8e-265)
t_1
(if (<= c 3.8e-58)
(fma x (- (* y z) (* t a)) (- (* i (* y j))))
(if (<= c 9.5e+123) 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 = fma(y, fma(j, -i, (x * z)), (b * (a * i)));
double t_2 = c * fma(j, t, (z * -b));
double tmp;
if (c <= -7.4e+109) {
tmp = t_2;
} else if (c <= 1.8e-265) {
tmp = t_1;
} else if (c <= 3.8e-58) {
tmp = fma(x, ((y * z) - (t * a)), -(i * (y * j)));
} else if (c <= 9.5e+123) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * Float64(a * i))) t_2 = Float64(c * fma(j, t, Float64(z * Float64(-b)))) tmp = 0.0 if (c <= -7.4e+109) tmp = t_2; elseif (c <= 1.8e-265) tmp = t_1; elseif (c <= 3.8e-58) tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(-Float64(i * Float64(y * j)))); elseif (c <= 9.5e+123) 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[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.4e+109], t$95$2, If[LessEqual[c, 1.8e-265], t$95$1, If[LessEqual[c, 3.8e-58], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + (-N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], If[LessEqual[c, 9.5e+123], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \left(a \cdot i\right)\right)\\
t_2 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{if}\;c \leq -7.4 \cdot 10^{+109}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{-58}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, -i \cdot \left(y \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{+123}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -7.40000000000000041e109 or 9.4999999999999996e123 < c Initial program 56.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6470.1
Simplified70.1%
if -7.40000000000000041e109 < c < 1.8000000000000001e-265 or 3.7999999999999997e-58 < c < 9.4999999999999996e123Initial program 71.3%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified78.3%
Taylor expanded in c around 0
*-lowering-*.f6470.3
Simplified70.3%
if 1.8000000000000001e-265 < c < 3.7999999999999997e-58Initial program 87.3%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
Simplified78.0%
Taylor expanded in j around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6472.9
Simplified72.9%
Final simplification70.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.4e+60)
t_1
(if (<= a -5.8e-236)
(+ (* j (- (* t c) (* y i))) (* y (* x z)))
(if (<= a 6.2e-253)
(* c (fma j t (* z (- b))))
(if (<= a 1.25e+128)
(fma y (fma j (- i) (* x z)) (* b (* 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 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -3.4e+60) {
tmp = t_1;
} else if (a <= -5.8e-236) {
tmp = (j * ((t * c) - (y * i))) + (y * (x * z));
} else if (a <= 6.2e-253) {
tmp = c * fma(j, t, (z * -b));
} else if (a <= 1.25e+128) {
tmp = fma(y, fma(j, -i, (x * z)), (b * (a * 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.4e+60) tmp = t_1; elseif (a <= -5.8e-236) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(y * Float64(x * z))); elseif (a <= 6.2e-253) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (a <= 1.25e+128) tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * 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[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e+60], t$95$1, If[LessEqual[a, -5.8e-236], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e-253], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e+128], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * 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.4 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-236}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-253}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{+128}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \left(a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.4e60 or 1.25e128 < a Initial program 55.8%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6477.4
Simplified77.4%
if -3.4e60 < a < -5.8e-236Initial program 81.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.2
Simplified70.2%
if -5.8e-236 < a < 6.19999999999999991e-253Initial program 65.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6470.0
Simplified70.0%
if 6.19999999999999991e-253 < a < 1.25e128Initial program 74.8%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified68.3%
Taylor expanded in c around 0
*-lowering-*.f6459.9
Simplified59.9%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.2e+72)
(* a (fma t (- x) (* b i)))
(if (<= a 3.8e-115)
(fma j (fma c t (* y (- i))) (* z (fma c (- b) (* x y))))
(fma x (- (* y z) (* t 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 (a <= -1.2e+72) {
tmp = a * fma(t, -x, (b * i));
} else if (a <= 3.8e-115) {
tmp = fma(j, fma(c, t, (y * -i)), (z * fma(c, -b, (x * y))));
} else {
tmp = fma(x, ((y * z) - (t * a)), (i * fma(j, -y, (a * b))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.2e+72) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); elseif (a <= 3.8e-115) tmp = fma(j, fma(c, t, Float64(y * Float64(-i))), Float64(z * fma(c, Float64(-b), Float64(x * y)))); else tmp = fma(x, Float64(Float64(y * z) - Float64(t * 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[a, -1.2e+72], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e-115], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{+72}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{-115}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\right)\\
\end{array}
\end{array}
if a < -1.20000000000000005e72Initial program 51.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6478.5
Simplified78.5%
if -1.20000000000000005e72 < a < 3.79999999999999992e-115Initial program 77.0%
Taylor expanded in a around 0
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
*-lowering-*.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
Simplified79.0%
if 3.79999999999999992e-115 < a Initial program 67.2%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
Simplified70.0%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -1.35e+78)
t_1
(if (<= a 6.8e+132)
(fma j (fma c t (* y (- i))) (* z (fma c (- b) (* x y))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -1.35e+78) {
tmp = t_1;
} else if (a <= 6.8e+132) {
tmp = fma(j, fma(c, t, (y * -i)), (z * fma(c, -b, (x * y))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -1.35e+78) tmp = t_1; elseif (a <= 6.8e+132) tmp = fma(j, fma(c, t, Float64(y * Float64(-i))), Float64(z * fma(c, Float64(-b), Float64(x * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.35e+78], t$95$1, If[LessEqual[a, 6.8e+132], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $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 -1.35 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{+132}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.35000000000000002e78 or 6.80000000000000051e132 < a Initial program 54.5%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6479.4
Simplified79.4%
if -1.35000000000000002e78 < a < 6.80000000000000051e132Initial program 76.2%
Taylor expanded in a around 0
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
*-lowering-*.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
Simplified73.9%
Final simplification75.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma (- z) b (* t j)))) (t_2 (* a (fma t (- x) (* b i)))))
(if (<= a -5e+67)
t_2
(if (<= a -4.65e-38)
t_1
(if (<= a -3.9e-249)
(* y (- (* x z) (* i j)))
(if (<= a 1.4e-228)
t_1
(if (<= a 2.8e+126) (* y (fma j (- i) (* x z))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(-z, b, (t * j));
double t_2 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -5e+67) {
tmp = t_2;
} else if (a <= -4.65e-38) {
tmp = t_1;
} else if (a <= -3.9e-249) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 1.4e-228) {
tmp = t_1;
} else if (a <= 2.8e+126) {
tmp = y * fma(j, -i, (x * z));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(Float64(-z), b, Float64(t * j))) t_2 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -5e+67) tmp = t_2; elseif (a <= -4.65e-38) tmp = t_1; elseif (a <= -3.9e-249) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 1.4e-228) tmp = t_1; elseif (a <= 2.8e+126) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); 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[((-z) * b + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5e+67], t$95$2, If[LessEqual[a, -4.65e-38], t$95$1, If[LessEqual[a, -3.9e-249], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e-228], t$95$1, If[LessEqual[a, 2.8e+126], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(-z, b, t \cdot j\right)\\
t_2 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -5 \cdot 10^{+67}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.65 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-249}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-228}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{+126}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -4.99999999999999976e67 or 2.80000000000000009e126 < a Initial program 54.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6478.0
Simplified78.0%
if -4.99999999999999976e67 < a < -4.65000000000000001e-38 or -3.8999999999999999e-249 < a < 1.4000000000000001e-228Initial program 78.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6465.7
Simplified65.7%
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6467.9
Applied egg-rr67.9%
if -4.65000000000000001e-38 < a < -3.8999999999999999e-249Initial program 75.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
Simplified69.8%
flip-+N/A
clear-numN/A
/-lowering-/.f64N/A
clear-numN/A
Applied egg-rr69.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.0
Simplified70.0%
if 1.4000000000000001e-228 < a < 2.80000000000000009e126Initial program 76.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6451.5
Simplified51.5%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* c (fma (- z) b (* t j))))
(t_3 (* a (fma t (- x) (* b i)))))
(if (<= a -3.7e+70)
t_3
(if (<= a -1.2e-38)
t_2
(if (<= a -2.75e-249)
t_1
(if (<= a 8.2e-232) t_2 (if (<= a 8.6e+125) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = c * fma(-z, b, (t * j));
double t_3 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -3.7e+70) {
tmp = t_3;
} else if (a <= -1.2e-38) {
tmp = t_2;
} else if (a <= -2.75e-249) {
tmp = t_1;
} else if (a <= 8.2e-232) {
tmp = t_2;
} else if (a <= 8.6e+125) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(c * fma(Float64(-z), b, Float64(t * j))) t_3 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -3.7e+70) tmp = t_3; elseif (a <= -1.2e-38) tmp = t_2; elseif (a <= -2.75e-249) tmp = t_1; elseif (a <= 8.2e-232) tmp = t_2; elseif (a <= 8.6e+125) tmp = t_1; else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[((-z) * b + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.7e+70], t$95$3, If[LessEqual[a, -1.2e-38], t$95$2, If[LessEqual[a, -2.75e-249], t$95$1, If[LessEqual[a, 8.2e-232], t$95$2, If[LessEqual[a, 8.6e+125], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \mathsf{fma}\left(-z, b, t \cdot j\right)\\
t_3 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -3.7 \cdot 10^{+70}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{-232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -3.69999999999999989e70 or 8.60000000000000071e125 < a Initial program 54.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6478.0
Simplified78.0%
if -3.69999999999999989e70 < a < -1.20000000000000011e-38 or -2.74999999999999999e-249 < a < 8.19999999999999945e-232Initial program 78.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6465.7
Simplified65.7%
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6467.9
Applied egg-rr67.9%
if -1.20000000000000011e-38 < a < -2.74999999999999999e-249 or 8.19999999999999945e-232 < a < 8.60000000000000071e125Initial program 75.7%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
Simplified66.2%
flip-+N/A
clear-numN/A
/-lowering-/.f64N/A
clear-numN/A
Applied egg-rr66.2%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.6
Simplified59.6%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -2.15e+71)
t_1
(if (<= a -4.8e-67)
(* c (fma (- z) b (* t j)))
(if (<= a -3.9e-137)
(* y (* x z))
(if (<= a -3.7e-235)
(- (* i (* y j)))
(if (<= a 5.5e+131) (* c (fma j t (* 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 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -2.15e+71) {
tmp = t_1;
} else if (a <= -4.8e-67) {
tmp = c * fma(-z, b, (t * j));
} else if (a <= -3.9e-137) {
tmp = y * (x * z);
} else if (a <= -3.7e-235) {
tmp = -(i * (y * j));
} else if (a <= 5.5e+131) {
tmp = c * fma(j, t, (z * -b));
} 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 <= -2.15e+71) tmp = t_1; elseif (a <= -4.8e-67) tmp = Float64(c * fma(Float64(-z), b, Float64(t * j))); elseif (a <= -3.9e-137) tmp = Float64(y * Float64(x * z)); elseif (a <= -3.7e-235) tmp = Float64(-Float64(i * Float64(y * j))); elseif (a <= 5.5e+131) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); 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, -2.15e+71], t$95$1, If[LessEqual[a, -4.8e-67], N[(c * N[((-z) * b + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.9e-137], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.7e-235], (-N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), If[LessEqual[a, 5.5e+131], N[(c * N[(j * t + N[(z * (-b)), $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 -2.15 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-67}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(-z, b, t \cdot j\right)\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-137}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -3.7 \cdot 10^{-235}:\\
\;\;\;\;-i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+131}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.14999999999999992e71 or 5.49999999999999971e131 < a Initial program 53.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6478.6
Simplified78.6%
if -2.14999999999999992e71 < a < -4.8e-67Initial program 87.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6458.0
Simplified58.0%
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6458.0
Applied egg-rr58.0%
if -4.8e-67 < a < -3.8999999999999999e-137Initial program 69.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
Simplified92.2%
Taylor expanded in z around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.6
Simplified70.6%
if -3.8999999999999999e-137 < a < -3.7000000000000001e-235Initial program 83.1%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified79.8%
Taylor expanded in j around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6456.1
Simplified56.1%
if -3.7000000000000001e-235 < a < 5.49999999999999971e131Initial program 73.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6451.0
Simplified51.0%
Final simplification62.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma j t (* z (- b))))) (t_2 (* a (fma t (- x) (* b i)))))
(if (<= a -2.7e+69)
t_2
(if (<= a -6.2e-68)
t_1
(if (<= a -1.2e-137)
(* y (* x z))
(if (<= a -4.7e-235)
(- (* i (* y j)))
(if (<= a 5.8e+131) 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(j, t, (z * -b));
double t_2 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -2.7e+69) {
tmp = t_2;
} else if (a <= -6.2e-68) {
tmp = t_1;
} else if (a <= -1.2e-137) {
tmp = y * (x * z);
} else if (a <= -4.7e-235) {
tmp = -(i * (y * j));
} else if (a <= 5.8e+131) {
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(j, t, Float64(z * Float64(-b)))) t_2 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -2.7e+69) tmp = t_2; elseif (a <= -6.2e-68) tmp = t_1; elseif (a <= -1.2e-137) tmp = Float64(y * Float64(x * z)); elseif (a <= -4.7e-235) tmp = Float64(-Float64(i * Float64(y * j))); elseif (a <= 5.8e+131) 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[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.7e+69], t$95$2, If[LessEqual[a, -6.2e-68], t$95$1, If[LessEqual[a, -1.2e-137], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.7e-235], (-N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), If[LessEqual[a, 5.8e+131], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
t_2 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -2.7 \cdot 10^{+69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-137}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-235}:\\
\;\;\;\;-i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.6999999999999998e69 or 5.8000000000000002e131 < a Initial program 53.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6478.6
Simplified78.6%
if -2.6999999999999998e69 < a < -6.1999999999999999e-68 or -4.7000000000000001e-235 < a < 5.8000000000000002e131Initial program 75.9%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6452.3
Simplified52.3%
if -6.1999999999999999e-68 < a < -1.2e-137Initial program 69.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
Simplified92.2%
Taylor expanded in z around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.6
Simplified70.6%
if -1.2e-137 < a < -4.7000000000000001e-235Initial program 83.1%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified79.8%
Taylor expanded in j around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6456.1
Simplified56.1%
Final simplification62.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -6.8e+22)
t_1
(if (<= a -6.2e-144)
(* z (* x y))
(if (<= a -8e-236)
(- (* i (* y j)))
(if (<= a 2.15e+132) (* 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 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -6.8e+22) {
tmp = t_1;
} else if (a <= -6.2e-144) {
tmp = z * (x * y);
} else if (a <= -8e-236) {
tmp = -(i * (y * j));
} else if (a <= 2.15e+132) {
tmp = 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 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -6.8e+22) tmp = t_1; elseif (a <= -6.2e-144) tmp = Float64(z * Float64(x * y)); elseif (a <= -8e-236) tmp = Float64(-Float64(i * Float64(y * j))); elseif (a <= 2.15e+132) tmp = 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[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.8e+22], t$95$1, If[LessEqual[a, -6.2e-144], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8e-236], (-N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), If[LessEqual[a, 2.15e+132], N[(b * N[(c * (-z) + N[(a * 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 -6.8 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-144}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-236}:\\
\;\;\;\;-i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{+132}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.8e22 or 2.14999999999999991e132 < a Initial program 56.2%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6475.2
Simplified75.2%
if -6.8e22 < a < -6.2000000000000001e-144Initial program 79.7%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified70.1%
Taylor expanded in x around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.8
Simplified44.8%
if -6.2000000000000001e-144 < a < -8.0000000000000004e-236Initial program 83.6%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified77.3%
Taylor expanded in j around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.4
Simplified54.4%
if -8.0000000000000004e-236 < a < 2.14999999999999991e132Initial program 72.9%
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
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6443.8
Simplified43.8%
Final simplification57.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -1.05e+23)
t_1
(if (<= a -4.8e-137)
(* z (* x y))
(if (<= a -2.2e-235)
(- (* i (* y j)))
(if (<= a 6e-139) (* b (* z (- c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -1.05e+23) {
tmp = t_1;
} else if (a <= -4.8e-137) {
tmp = z * (x * y);
} else if (a <= -2.2e-235) {
tmp = -(i * (y * j));
} else if (a <= 6e-139) {
tmp = b * (z * -c);
} 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 <= -1.05e+23) tmp = t_1; elseif (a <= -4.8e-137) tmp = Float64(z * Float64(x * y)); elseif (a <= -2.2e-235) tmp = Float64(-Float64(i * Float64(y * j))); elseif (a <= 6e-139) tmp = Float64(b * Float64(z * Float64(-c))); 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, -1.05e+23], t$95$1, If[LessEqual[a, -4.8e-137], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.2e-235], (-N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), If[LessEqual[a, 6e-139], N[(b * N[(z * (-c)), $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 -1.05 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-137}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq -2.2 \cdot 10^{-235}:\\
\;\;\;\;-i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;a \leq 6 \cdot 10^{-139}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.0500000000000001e23 or 5.9999999999999998e-139 < a Initial program 63.0%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6461.0
Simplified61.0%
if -1.0500000000000001e23 < a < -4.8000000000000001e-137Initial program 79.7%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified70.1%
Taylor expanded in x around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.8
Simplified44.8%
if -4.8000000000000001e-137 < a < -2.19999999999999984e-235Initial program 83.1%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified79.8%
Taylor expanded in j around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6456.1
Simplified56.1%
if -2.19999999999999984e-235 < a < 5.9999999999999998e-139Initial program 70.1%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified69.6%
Taylor expanded in c around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6441.2
Simplified41.2%
Final simplification54.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i (* y j)))))
(if (<= b -3.9e+136)
(* a (* b i))
(if (<= b -2.35e-135)
t_1
(if (<= b 1.05e-281)
(* a (* t (- x)))
(if (<= b 1e+71) t_1 (* b (* z (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -(i * (y * j));
double tmp;
if (b <= -3.9e+136) {
tmp = a * (b * i);
} else if (b <= -2.35e-135) {
tmp = t_1;
} else if (b <= 1.05e-281) {
tmp = a * (t * -x);
} else if (b <= 1e+71) {
tmp = t_1;
} else {
tmp = b * (z * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = -(i * (y * j))
if (b <= (-3.9d+136)) then
tmp = a * (b * i)
else if (b <= (-2.35d-135)) then
tmp = t_1
else if (b <= 1.05d-281) then
tmp = a * (t * -x)
else if (b <= 1d+71) then
tmp = t_1
else
tmp = b * (z * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -(i * (y * j));
double tmp;
if (b <= -3.9e+136) {
tmp = a * (b * i);
} else if (b <= -2.35e-135) {
tmp = t_1;
} else if (b <= 1.05e-281) {
tmp = a * (t * -x);
} else if (b <= 1e+71) {
tmp = t_1;
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -(i * (y * j)) tmp = 0 if b <= -3.9e+136: tmp = a * (b * i) elif b <= -2.35e-135: tmp = t_1 elif b <= 1.05e-281: tmp = a * (t * -x) elif b <= 1e+71: tmp = t_1 else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(-Float64(i * Float64(y * j))) tmp = 0.0 if (b <= -3.9e+136) tmp = Float64(a * Float64(b * i)); elseif (b <= -2.35e-135) tmp = t_1; elseif (b <= 1.05e-281) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 1e+71) tmp = t_1; else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -(i * (y * j)); tmp = 0.0; if (b <= -3.9e+136) tmp = a * (b * i); elseif (b <= -2.35e-135) tmp = t_1; elseif (b <= 1.05e-281) tmp = a * (t * -x); elseif (b <= 1e+71) tmp = t_1; else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = (-N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision])}, If[LessEqual[b, -3.9e+136], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.35e-135], t$95$1, If[LessEqual[b, 1.05e-281], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e+71], t$95$1, N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -i \cdot \left(y \cdot j\right)\\
\mathbf{if}\;b \leq -3.9 \cdot 10^{+136}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -2.35 \cdot 10^{-135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-281}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -3.90000000000000019e136Initial program 65.6%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified72.1%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6460.1
Simplified60.1%
if -3.90000000000000019e136 < b < -2.34999999999999988e-135 or 1.0499999999999999e-281 < b < 1e71Initial program 72.9%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified65.5%
Taylor expanded in j around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.6
Simplified36.6%
if -2.34999999999999988e-135 < b < 1.0499999999999999e-281Initial program 66.0%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6446.0
Simplified46.0%
Taylor expanded in t around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6438.8
Simplified38.8%
if 1e71 < b Initial program 62.2%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified73.6%
Taylor expanded in c around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6455.3
Simplified55.3%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* a b)))))
(if (<= i -2.8e-29)
t_1
(if (<= i 2.5e-215)
(* x (- (* y z) (* t a)))
(if (<= i 6.5e-27) (* c (fma j t (* z (- b)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * fma(j, -y, (a * b));
double tmp;
if (i <= -2.8e-29) {
tmp = t_1;
} else if (i <= 2.5e-215) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 6.5e-27) {
tmp = c * fma(j, t, (z * -b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(-y), Float64(a * b))) tmp = 0.0 if (i <= -2.8e-29) tmp = t_1; elseif (i <= 2.5e-215) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 6.5e-27) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.8e-29], t$95$1, If[LessEqual[i, 2.5e-215], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.5e-27], N[(c * N[(j * t + N[(z * (-b)), $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 -2.8 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{-215}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.8000000000000002e-29 or 6.50000000000000025e-27 < i Initial program 66.6%
Taylor expanded in i around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6463.9
Simplified63.9%
if -2.8000000000000002e-29 < i < 2.49999999999999978e-215Initial program 72.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6455.3
Simplified55.3%
if 2.49999999999999978e-215 < i < 6.50000000000000025e-27Initial program 69.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6469.8
Simplified69.8%
Final simplification62.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* a (* b i))))
(if (<= i -5e-42)
t_2
(if (<= i -3.4e-275)
t_1
(if (<= i 5.5e+18) (* j (* t c)) (if (<= i 2.6e+213) 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);
double t_2 = a * (b * i);
double tmp;
if (i <= -5e-42) {
tmp = t_2;
} else if (i <= -3.4e-275) {
tmp = t_1;
} else if (i <= 5.5e+18) {
tmp = j * (t * c);
} else if (i <= 2.6e+213) {
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_2 = a * (b * i)
if (i <= (-5d-42)) then
tmp = t_2
else if (i <= (-3.4d-275)) then
tmp = t_1
else if (i <= 5.5d+18) then
tmp = j * (t * c)
else if (i <= 2.6d+213) 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);
double t_2 = a * (b * i);
double tmp;
if (i <= -5e-42) {
tmp = t_2;
} else if (i <= -3.4e-275) {
tmp = t_1;
} else if (i <= 5.5e+18) {
tmp = j * (t * c);
} else if (i <= 2.6e+213) {
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_2 = a * (b * i) tmp = 0 if i <= -5e-42: tmp = t_2 elif i <= -3.4e-275: tmp = t_1 elif i <= 5.5e+18: tmp = j * (t * c) elif i <= 2.6e+213: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -5e-42) tmp = t_2; elseif (i <= -3.4e-275) tmp = t_1; elseif (i <= 5.5e+18) tmp = Float64(j * Float64(t * c)); elseif (i <= 2.6e+213) 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_2 = a * (b * i); tmp = 0.0; if (i <= -5e-42) tmp = t_2; elseif (i <= -3.4e-275) tmp = t_1; elseif (i <= 5.5e+18) tmp = j * (t * c); elseif (i <= 2.6e+213) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5e-42], t$95$2, If[LessEqual[i, -3.4e-275], t$95$1, If[LessEqual[i, 5.5e+18], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.6e+213], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -5 \cdot 10^{-42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -3.4 \cdot 10^{-275}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{+18}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{+213}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -5.00000000000000003e-42 or 2.59999999999999999e213 < i Initial program 64.0%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified75.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6443.2
Simplified43.2%
if -5.00000000000000003e-42 < i < -3.39999999999999968e-275 or 5.5e18 < i < 2.59999999999999999e213Initial program 71.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6449.0
Simplified49.0%
Taylor expanded in y around inf
*-commutativeN/A
*-lowering-*.f6429.2
Simplified29.2%
if -3.39999999999999968e-275 < i < 5.5e18Initial program 73.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
*-lowering-*.f64N/A
neg-mul-1N/A
neg-lowering-neg.f6445.3
Simplified45.3%
Taylor expanded in c around inf
*-lowering-*.f6439.8
Simplified39.8%
Final simplification37.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i (* y j)))))
(if (<= y -6.8e+24)
t_1
(if (<= y 9.5e-175)
(* c (* z (- b)))
(if (<= y 3.5e+134) (* x (* 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 = -(i * (y * j));
double tmp;
if (y <= -6.8e+24) {
tmp = t_1;
} else if (y <= 9.5e-175) {
tmp = c * (z * -b);
} else if (y <= 3.5e+134) {
tmp = x * (t * -a);
} 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 * (y * j))
if (y <= (-6.8d+24)) then
tmp = t_1
else if (y <= 9.5d-175) then
tmp = c * (z * -b)
else if (y <= 3.5d+134) then
tmp = x * (t * -a)
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 * (y * j));
double tmp;
if (y <= -6.8e+24) {
tmp = t_1;
} else if (y <= 9.5e-175) {
tmp = c * (z * -b);
} else if (y <= 3.5e+134) {
tmp = x * (t * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -(i * (y * j)) tmp = 0 if y <= -6.8e+24: tmp = t_1 elif y <= 9.5e-175: tmp = c * (z * -b) elif y <= 3.5e+134: tmp = x * (t * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(-Float64(i * Float64(y * j))) tmp = 0.0 if (y <= -6.8e+24) tmp = t_1; elseif (y <= 9.5e-175) tmp = Float64(c * Float64(z * Float64(-b))); elseif (y <= 3.5e+134) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -(i * (y * j)); tmp = 0.0; if (y <= -6.8e+24) tmp = t_1; elseif (y <= 9.5e-175) tmp = c * (z * -b); elseif (y <= 3.5e+134) tmp = x * (t * -a); 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[(y * j), $MachinePrecision]), $MachinePrecision])}, If[LessEqual[y, -6.8e+24], t$95$1, If[LessEqual[y, 9.5e-175], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e+134], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -i \cdot \left(y \cdot j\right)\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-175}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+134}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.8000000000000001e24 or 3.50000000000000003e134 < y Initial program 62.1%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified80.2%
Taylor expanded in j around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.3
Simplified52.3%
if -6.8000000000000001e24 < y < 9.50000000000000052e-175Initial program 75.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6455.7
Simplified55.7%
Taylor expanded in j around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6436.6
Simplified36.6%
if 9.50000000000000052e-175 < y < 3.50000000000000003e134Initial program 68.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.6
Simplified43.6%
Taylor expanded in y around 0
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6435.9
Simplified35.9%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.2e+52)
(* i (* a b))
(if (<= a -1.16e-138)
(* z (* x y))
(if (<= a 7.2e+122) (- (* i (* y j))) (* b (* a i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.2e+52) {
tmp = i * (a * b);
} else if (a <= -1.16e-138) {
tmp = z * (x * y);
} else if (a <= 7.2e+122) {
tmp = -(i * (y * j));
} else {
tmp = b * (a * 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 (a <= (-3.2d+52)) then
tmp = i * (a * b)
else if (a <= (-1.16d-138)) then
tmp = z * (x * y)
else if (a <= 7.2d+122) then
tmp = -(i * (y * j))
else
tmp = b * (a * 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 (a <= -3.2e+52) {
tmp = i * (a * b);
} else if (a <= -1.16e-138) {
tmp = z * (x * y);
} else if (a <= 7.2e+122) {
tmp = -(i * (y * j));
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3.2e+52: tmp = i * (a * b) elif a <= -1.16e-138: tmp = z * (x * y) elif a <= 7.2e+122: tmp = -(i * (y * j)) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3.2e+52) tmp = Float64(i * Float64(a * b)); elseif (a <= -1.16e-138) tmp = Float64(z * Float64(x * y)); elseif (a <= 7.2e+122) tmp = Float64(-Float64(i * Float64(y * j))); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -3.2e+52) tmp = i * (a * b); elseif (a <= -1.16e-138) tmp = z * (x * y); elseif (a <= 7.2e+122) tmp = -(i * (y * j)); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.2e+52], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.16e-138], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+122], (-N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{+52}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq -1.16 \cdot 10^{-138}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+122}:\\
\;\;\;\;-i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -3.2e52Initial program 54.5%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified56.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6442.6
Simplified42.6%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6445.8
Applied egg-rr45.8%
if -3.2e52 < a < -1.16e-138Initial program 79.4%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified66.1%
Taylor expanded in x around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.9
Simplified39.9%
if -1.16e-138 < a < 7.2000000000000005e122Initial program 75.6%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified69.3%
Taylor expanded in j around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.0
Simplified36.0%
if 7.2000000000000005e122 < a Initial program 57.5%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified60.7%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6446.1
Simplified46.1%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6448.4
Applied egg-rr48.4%
Final simplification40.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* a b)))))
(if (<= i -2.35e-28)
t_1
(if (<= i 4.2e-27) (* c (fma (- z) b (* 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 * fma(j, -y, (a * b));
double tmp;
if (i <= -2.35e-28) {
tmp = t_1;
} else if (i <= 4.2e-27) {
tmp = c * fma(-z, b, (t * j));
} 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 <= -2.35e-28) tmp = t_1; elseif (i <= 4.2e-27) tmp = Float64(c * fma(Float64(-z), b, 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[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.35e-28], t$95$1, If[LessEqual[i, 4.2e-27], N[(c * N[((-z) * b + N[(t * j), $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 -2.35 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(-z, b, t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.3499999999999998e-28 or 4.20000000000000031e-27 < i Initial program 66.6%
Taylor expanded in i around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6463.9
Simplified63.9%
if -2.3499999999999998e-28 < i < 4.20000000000000031e-27Initial program 71.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6455.1
Simplified55.1%
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6455.1
Applied egg-rr55.1%
Final simplification60.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x -6.8e-30) (* y (* x z)) (if (<= x 5e+174) (* a (* b i)) (* x (* 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 <= -6.8e-30) {
tmp = y * (x * z);
} else if (x <= 5e+174) {
tmp = a * (b * i);
} else {
tmp = x * (y * z);
}
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 <= (-6.8d-30)) then
tmp = y * (x * z)
else if (x <= 5d+174) then
tmp = a * (b * i)
else
tmp = x * (y * z)
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 <= -6.8e-30) {
tmp = y * (x * z);
} else if (x <= 5e+174) {
tmp = a * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -6.8e-30: tmp = y * (x * z) elif x <= 5e+174: tmp = a * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -6.8e-30) tmp = Float64(y * Float64(x * z)); elseif (x <= 5e+174) tmp = Float64(a * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -6.8e-30) tmp = y * (x * z); elseif (x <= 5e+174) tmp = a * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -6.8e-30], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e+174], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+174}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -6.8000000000000006e-30Initial program 64.9%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
Simplified70.7%
Taylor expanded in z around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6436.9
Simplified36.9%
if -6.8000000000000006e-30 < x < 4.9999999999999997e174Initial program 68.7%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified67.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.8
Simplified30.8%
if 4.9999999999999997e174 < x Initial program 79.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6475.9
Simplified75.9%
Taylor expanded in y around inf
*-commutativeN/A
*-lowering-*.f6462.1
Simplified62.1%
Final simplification35.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -2.05e+63) (* c (* t j)) (if (<= t 4.8e+21) (* a (* b i)) (* j (* t c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.05e+63) {
tmp = c * (t * j);
} else if (t <= 4.8e+21) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-2.05d+63)) then
tmp = c * (t * j)
else if (t <= 4.8d+21) then
tmp = a * (b * i)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.05e+63) {
tmp = c * (t * j);
} else if (t <= 4.8e+21) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.05e+63: tmp = c * (t * j) elif t <= 4.8e+21: tmp = a * (b * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.05e+63) tmp = Float64(c * Float64(t * j)); elseif (t <= 4.8e+21) tmp = Float64(a * Float64(b * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.05e+63) tmp = c * (t * j); elseif (t <= 4.8e+21) tmp = a * (b * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.05e+63], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+21], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.05 \cdot 10^{+63}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+21}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if t < -2.04999999999999996e63Initial program 61.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6449.7
Simplified49.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-lowering-*.f6445.6
Simplified45.6%
if -2.04999999999999996e63 < t < 4.8e21Initial program 73.4%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.0%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.5
Simplified30.5%
if 4.8e21 < t Initial program 63.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
*-lowering-*.f64N/A
neg-mul-1N/A
neg-lowering-neg.f6453.7
Simplified53.7%
Taylor expanded in c around inf
*-lowering-*.f6432.1
Simplified32.1%
Final simplification33.9%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* b i)))) (if (<= i -5.5e-29) t_1 (if (<= i 6.2e-28) (* 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 * (b * i);
double tmp;
if (i <= -5.5e-29) {
tmp = t_1;
} else if (i <= 6.2e-28) {
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 = a * (b * i)
if (i <= (-5.5d-29)) then
tmp = t_1
else if (i <= 6.2d-28) 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 = a * (b * i);
double tmp;
if (i <= -5.5e-29) {
tmp = t_1;
} else if (i <= 6.2e-28) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if i <= -5.5e-29: tmp = t_1 elif i <= 6.2e-28: 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 * Float64(b * i)) tmp = 0.0 if (i <= -5.5e-29) tmp = t_1; elseif (i <= 6.2e-28) 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 = a * (b * i); tmp = 0.0; if (i <= -5.5e-29) tmp = t_1; elseif (i <= 6.2e-28) 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[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.5e-29], t$95$1, If[LessEqual[i, 6.2e-28], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -5.5 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.2 \cdot 10^{-28}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -5.4999999999999999e-29 or 6.19999999999999984e-28 < i Initial program 66.6%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6436.9
Simplified36.9%
if -5.4999999999999999e-29 < i < 6.19999999999999984e-28Initial program 71.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6455.1
Simplified55.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-lowering-*.f6428.7
Simplified28.7%
Final simplification33.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 68.6%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified64.7%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6425.4
Simplified25.4%
(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 2024205
(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)))))