
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y))))))
(if (<= t_1 1e+303)
t_1
(*
(- t)
(fma
a
x
(-
(fma
j
c
(/ (fma (fma (- z) c (* i a)) b (* (fma (- i) j (* z x)) y)) t))))))))
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 * ((c * t) - (i * y)));
double tmp;
if (t_1 <= 1e+303) {
tmp = t_1;
} else {
tmp = -t * fma(a, x, -fma(j, c, (fma(fma(-z, c, (i * a)), b, (fma(-i, j, (z * x)) * y)) / t)));
}
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(j * Float64(Float64(c * t) - Float64(i * y)))) tmp = 0.0 if (t_1 <= 1e+303) tmp = t_1; else tmp = Float64(Float64(-t) * fma(a, x, Float64(-fma(j, c, Float64(fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-i), j, Float64(z * x)) * y)) / t))))); 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[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 1e+303], t$95$1, N[((-t) * N[(a * x + (-N[(j * c + N[(N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;t\_1 \leq 10^{+303}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-t\right) \cdot \mathsf{fma}\left(a, x, -\mathsf{fma}\left(j, c, \frac{\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)}{t}\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)))) < 1e303Initial program 92.6%
if 1e303 < (+.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 46.8%
Taylor expanded in t around -inf
Applied rewrites80.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= t -5e+91) (not (<= t 1.9e+48)))
(fma (fma (- z) c (* i a)) b (* (fma (- a) x (* j c)) t))
(fma
(fma (- x) t (* i b))
a
(fma (fma (- i) y (* c t)) j (* (fma (- b) c (* y x)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5e+91) || !(t <= 1.9e+48)) {
tmp = fma(fma(-z, c, (i * a)), b, (fma(-a, x, (j * c)) * t));
} else {
tmp = fma(fma(-x, t, (i * b)), a, fma(fma(-i, y, (c * t)), j, (fma(-b, c, (y * x)) * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -5e+91) || !(t <= 1.9e+48)) tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-a), x, Float64(j * c)) * t)); else tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-b), c, Float64(y * x)) * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -5e+91], N[Not[LessEqual[t, 1.9e+48]], $MachinePrecision]], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+91} \lor \neg \left(t \leq 1.9 \cdot 10^{+48}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\right)\\
\end{array}
\end{array}
if t < -5.0000000000000002e91 or 1.9e48 < t Initial program 61.9%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites78.8%
if -5.0000000000000002e91 < t < 1.9e48Initial program 81.6%
Taylor expanded in z around 0
Applied rewrites87.5%
Final simplification84.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- a) x (* j c))) (t_2 (fma (- z) c (* i a))))
(if (<= t -5e+91)
(fma t_2 b (* t_1 t))
(if (<= t 4e+30)
(fma
(fma (- x) t (* i b))
a
(fma (fma (- i) y (* c t)) j (* (fma (- b) c (* y x)) z)))
(fma t_2 b (fma t_1 t (* (fma (- i) j (* z x)) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, x, (j * c));
double t_2 = fma(-z, c, (i * a));
double tmp;
if (t <= -5e+91) {
tmp = fma(t_2, b, (t_1 * t));
} else if (t <= 4e+30) {
tmp = fma(fma(-x, t, (i * b)), a, fma(fma(-i, y, (c * t)), j, (fma(-b, c, (y * x)) * z)));
} else {
tmp = fma(t_2, b, fma(t_1, t, (fma(-i, j, (z * x)) * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-a), x, Float64(j * c)) t_2 = fma(Float64(-z), c, Float64(i * a)) tmp = 0.0 if (t <= -5e+91) tmp = fma(t_2, b, Float64(t_1 * t)); elseif (t <= 4e+30) tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-b), c, Float64(y * x)) * z))); else tmp = fma(t_2, b, fma(t_1, t, Float64(fma(Float64(-i), j, Float64(z * x)) * y))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e+91], N[(t$95$2 * b + N[(t$95$1 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+30], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 * b + N[(t$95$1 * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right)\\
t_2 := \mathsf{fma}\left(-z, c, i \cdot a\right)\\
\mathbf{if}\;t \leq -5 \cdot 10^{+91}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, b, t\_1 \cdot t\right)\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+30}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(t\_1, t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if t < -5.0000000000000002e91Initial program 60.2%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites81.0%
if -5.0000000000000002e91 < t < 4.0000000000000001e30Initial program 81.4%
Taylor expanded in z around 0
Applied rewrites87.3%
if 4.0000000000000001e30 < t Initial program 64.5%
Taylor expanded in y around 0
Applied rewrites88.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= z -1.14e+58) (not (<= z 1.25e+65)))
(fma (fma (- b) c (* y x)) z (* (fma (- t) x (* i b)) a))
(+
(fma (- a) (* t x) (* (fma (- z) c (* i a)) b))
(* 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) {
double tmp;
if ((z <= -1.14e+58) || !(z <= 1.25e+65)) {
tmp = fma(fma(-b, c, (y * x)), z, (fma(-t, x, (i * b)) * a));
} else {
tmp = fma(-a, (t * x), (fma(-z, c, (i * a)) * b)) + (j * ((c * t) - (i * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -1.14e+58) || !(z <= 1.25e+65)) tmp = fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-t), x, Float64(i * b)) * a)); else tmp = Float64(fma(Float64(-a), Float64(t * x), Float64(fma(Float64(-z), c, Float64(i * a)) * b)) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -1.14e+58], N[Not[LessEqual[z, 1.25e+65]], $MachinePrecision]], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-t) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(N[((-a) * N[(t * x), $MachinePrecision] + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.14 \cdot 10^{+58} \lor \neg \left(z \leq 1.25 \cdot 10^{+65}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-t, x, i \cdot b\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\end{array}
\end{array}
if z < -1.14e58 or 1.24999999999999993e65 < z Initial program 61.0%
Taylor expanded in z around 0
Applied rewrites74.1%
Taylor expanded in j around 0
Applied rewrites81.5%
if -1.14e58 < z < 1.24999999999999993e65Initial program 83.0%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites80.6%
Final simplification81.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- b) c (* y x)))
(t_2 (fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b))))
(if (<= j -7.5e+66)
t_2
(if (<= j 3.5e-124)
(fma t_1 z (* (fma (- t) x (* i b)) a))
(if (<= j 8e-8) (fma (- a) (* t x) (fma t_1 z (* (* j t) c))) 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(-b, c, (y * x));
double t_2 = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
double tmp;
if (j <= -7.5e+66) {
tmp = t_2;
} else if (j <= 3.5e-124) {
tmp = fma(t_1, z, (fma(-t, x, (i * b)) * a));
} else if (j <= 8e-8) {
tmp = fma(-a, (t * x), fma(t_1, z, ((j * t) * c)));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-b), c, Float64(y * x)) t_2 = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)) tmp = 0.0 if (j <= -7.5e+66) tmp = t_2; elseif (j <= 3.5e-124) tmp = fma(t_1, z, Float64(fma(Float64(-t), x, Float64(i * b)) * a)); elseif (j <= 8e-8) tmp = fma(Float64(-a), Float64(t * x), fma(t_1, z, Float64(Float64(j * t) * c))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7.5e+66], t$95$2, If[LessEqual[j, 3.5e-124], N[(t$95$1 * z + N[(N[((-t) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e-8], N[((-a) * N[(t * x), $MachinePrecision] + N[(t$95$1 * z + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right)\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\mathbf{if}\;j \leq -7.5 \cdot 10^{+66}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-124}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, z, \mathsf{fma}\left(-t, x, i \cdot b\right) \cdot a\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-8}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \mathsf{fma}\left(t\_1, z, \left(j \cdot t\right) \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -7.50000000000000024e66 or 8.0000000000000002e-8 < j Initial program 77.8%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites79.0%
if -7.50000000000000024e66 < j < 3.4999999999999999e-124Initial program 69.8%
Taylor expanded in z around 0
Applied rewrites75.7%
Taylor expanded in j around 0
Applied rewrites77.4%
if 3.4999999999999999e-124 < j < 8.0000000000000002e-8Initial program 71.8%
Taylor expanded in z around 0
Applied rewrites88.0%
Taylor expanded in i around 0
Applied rewrites94.1%
Final simplification79.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -7.5e+66) (not (<= j 5e-7))) (fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b)) (fma (fma (- b) c (* y x)) z (* (fma (- t) x (* i b)) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -7.5e+66) || !(j <= 5e-7)) {
tmp = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
} else {
tmp = fma(fma(-b, c, (y * x)), z, (fma(-t, x, (i * b)) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -7.5e+66) || !(j <= 5e-7)) tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)); else tmp = fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-t), x, Float64(i * b)) * a)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -7.5e+66], N[Not[LessEqual[j, 5e-7]], $MachinePrecision]], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-t) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{+66} \lor \neg \left(j \leq 5 \cdot 10^{-7}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-t, x, i \cdot b\right) \cdot a\right)\\
\end{array}
\end{array}
if j < -7.50000000000000024e66 or 4.99999999999999977e-7 < j Initial program 77.6%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites78.9%
if -7.50000000000000024e66 < j < 4.99999999999999977e-7Initial program 70.3%
Taylor expanded in z around 0
Applied rewrites78.0%
Taylor expanded in j around 0
Applied rewrites77.5%
Final simplification78.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* i b)) a)))
(if (<= a -1e+117)
t_1
(if (<= a -7e+34)
(+ (* (* z x) y) (* j (- (* c t) (* i y))))
(if (<= a 1.95e+127)
(fma (fma (- y) i (* c t)) j (* (* (- z) c) b))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, t, (i * b)) * a;
double tmp;
if (a <= -1e+117) {
tmp = t_1;
} else if (a <= -7e+34) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else if (a <= 1.95e+127) {
tmp = fma(fma(-y, i, (c * t)), j, ((-z * c) * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(i * b)) * a) tmp = 0.0 if (a <= -1e+117) tmp = t_1; elseif (a <= -7e+34) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (a <= 1.95e+127) tmp = fma(fma(Float64(-y), i, Float64(c * t)), j, Float64(Float64(Float64(-z) * c) * b)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1e+117], t$95$1, If[LessEqual[a, -7e+34], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.95e+127], N[(N[((-y) * i + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{if}\;a \leq -1 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7 \cdot 10^{+34}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{+127}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \left(\left(-z\right) \cdot c\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.00000000000000005e117 or 1.94999999999999991e127 < a Initial program 62.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.9
Applied rewrites81.9%
if -1.00000000000000005e117 < a < -6.99999999999999996e34Initial program 83.2%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6473.1
Applied rewrites73.1%
if -6.99999999999999996e34 < a < 1.94999999999999991e127Initial program 77.8%
Taylor expanded in c around inf
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6462.3
Applied rewrites62.3%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
Applied rewrites63.2%
Final simplification69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.1e-9)
(fma (* (- c) z) b (* (fma (- a) x (* j c)) t))
(if (<= t 8.8e-44)
(fma (* (- t) a) x (* (fma (- z) c (* a i)) b))
(if (<= t 2.15e+95)
(+ (* (* z x) y) (* j (- (* c t) (* i y))))
(* (* (fma c (/ j x) (- a)) x) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.1e-9) {
tmp = fma((-c * z), b, (fma(-a, x, (j * c)) * t));
} else if (t <= 8.8e-44) {
tmp = fma((-t * a), x, (fma(-z, c, (a * i)) * b));
} else if (t <= 2.15e+95) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else {
tmp = (fma(c, (j / x), -a) * x) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.1e-9) tmp = fma(Float64(Float64(-c) * z), b, Float64(fma(Float64(-a), x, Float64(j * c)) * t)); elseif (t <= 8.8e-44) tmp = fma(Float64(Float64(-t) * a), x, Float64(fma(Float64(-z), c, Float64(a * i)) * b)); elseif (t <= 2.15e+95) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); else tmp = Float64(Float64(fma(c, Float64(j / x), Float64(-a)) * x) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.1e-9], N[(N[((-c) * z), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e-44], N[(N[((-t) * a), $MachinePrecision] * x + N[(N[((-z) * c + N[(a * i), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+95], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * N[(j / x), $MachinePrecision] + (-a)), $MachinePrecision] * x), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(\left(-c\right) \cdot z, b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-44}:\\
\;\;\;\;\mathsf{fma}\left(\left(-t\right) \cdot a, x, \mathsf{fma}\left(-z, c, a \cdot i\right) \cdot b\right)\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{+95}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, \frac{j}{x}, -a\right) \cdot x\right) \cdot t\\
\end{array}
\end{array}
if t < -3.10000000000000005e-9Initial program 64.0%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites70.7%
Taylor expanded in z around inf
Applied rewrites69.5%
if -3.10000000000000005e-9 < t < 8.80000000000000048e-44Initial program 84.4%
Taylor expanded in z around 0
Applied rewrites89.1%
Taylor expanded in t around inf
Applied rewrites73.2%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites75.6%
Taylor expanded in y around 0
Applied rewrites65.8%
if 8.80000000000000048e-44 < t < 2.15e95Initial program 73.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6470.3
Applied rewrites70.3%
if 2.15e95 < t Initial program 63.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.3
Applied rewrites70.3%
Taylor expanded in x around inf
Applied rewrites74.4%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -4.7e+134)
(fma (fma (- y) i (* c t)) j (* (* (- z) c) b))
(if (<= j 2.6e+14)
(fma (fma (- b) c (* y x)) z (* (fma (- t) x (* i b)) a))
(+ (* (* z x) y) (* 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) {
double tmp;
if (j <= -4.7e+134) {
tmp = fma(fma(-y, i, (c * t)), j, ((-z * c) * b));
} else if (j <= 2.6e+14) {
tmp = fma(fma(-b, c, (y * x)), z, (fma(-t, x, (i * b)) * a));
} else {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.7e+134) tmp = fma(fma(Float64(-y), i, Float64(c * t)), j, Float64(Float64(Float64(-z) * c) * b)); elseif (j <= 2.6e+14) tmp = fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-t), x, Float64(i * b)) * a)); else tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.7e+134], N[(N[((-y) * i + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.6e+14], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-t) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.7 \cdot 10^{+134}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \left(\left(-z\right) \cdot c\right) \cdot b\right)\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-t, x, i \cdot b\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\end{array}
\end{array}
if j < -4.70000000000000026e134Initial program 73.5%
Taylor expanded in c around inf
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6476.6
Applied rewrites76.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6482.4
Applied rewrites82.4%
if -4.70000000000000026e134 < j < 2.6e14Initial program 71.8%
Taylor expanded in z around 0
Applied rewrites79.2%
Taylor expanded in j around 0
Applied rewrites77.6%
if 2.6e14 < j Initial program 78.2%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.5
Applied rewrites72.5%
Final simplification76.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.1e-9)
(fma (* (- c) z) b (* (fma (- a) x (* j c)) t))
(if (<= t 2.7e-43)
(fma (* (- t) a) x (* (fma (- z) c (* a i)) b))
(if (<= t 3.7e+64)
(* (fma (- i) j (* z x)) y)
(* (* (fma c (/ j x) (- a)) x) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.1e-9) {
tmp = fma((-c * z), b, (fma(-a, x, (j * c)) * t));
} else if (t <= 2.7e-43) {
tmp = fma((-t * a), x, (fma(-z, c, (a * i)) * b));
} else if (t <= 3.7e+64) {
tmp = fma(-i, j, (z * x)) * y;
} else {
tmp = (fma(c, (j / x), -a) * x) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.1e-9) tmp = fma(Float64(Float64(-c) * z), b, Float64(fma(Float64(-a), x, Float64(j * c)) * t)); elseif (t <= 2.7e-43) tmp = fma(Float64(Float64(-t) * a), x, Float64(fma(Float64(-z), c, Float64(a * i)) * b)); elseif (t <= 3.7e+64) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); else tmp = Float64(Float64(fma(c, Float64(j / x), Float64(-a)) * x) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.1e-9], N[(N[((-c) * z), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-43], N[(N[((-t) * a), $MachinePrecision] * x + N[(N[((-z) * c + N[(a * i), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e+64], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(c * N[(j / x), $MachinePrecision] + (-a)), $MachinePrecision] * x), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(\left(-c\right) \cdot z, b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-43}:\\
\;\;\;\;\mathsf{fma}\left(\left(-t\right) \cdot a, x, \mathsf{fma}\left(-z, c, a \cdot i\right) \cdot b\right)\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, \frac{j}{x}, -a\right) \cdot x\right) \cdot t\\
\end{array}
\end{array}
if t < -3.10000000000000005e-9Initial program 64.0%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites70.7%
Taylor expanded in z around inf
Applied rewrites69.5%
if -3.10000000000000005e-9 < t < 2.69999999999999991e-43Initial program 84.4%
Taylor expanded in z around 0
Applied rewrites89.1%
Taylor expanded in t around inf
Applied rewrites73.2%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites75.6%
Taylor expanded in y around 0
Applied rewrites65.8%
if 2.69999999999999991e-43 < t < 3.69999999999999983e64Initial program 77.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
if 3.69999999999999983e64 < t Initial program 63.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.3
Applied rewrites66.3%
Taylor expanded in x around inf
Applied rewrites69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.25e+75)
(* (fma (- a) x (* j c)) t)
(if (<= t 2.7e-43)
(fma (* (- t) a) x (* (fma (- z) c (* a i)) b))
(if (<= t 3.7e+64)
(* (fma (- i) j (* z x)) y)
(* (* (fma c (/ j x) (- a)) x) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.25e+75) {
tmp = fma(-a, x, (j * c)) * t;
} else if (t <= 2.7e-43) {
tmp = fma((-t * a), x, (fma(-z, c, (a * i)) * b));
} else if (t <= 3.7e+64) {
tmp = fma(-i, j, (z * x)) * y;
} else {
tmp = (fma(c, (j / x), -a) * x) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.25e+75) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); elseif (t <= 2.7e-43) tmp = fma(Float64(Float64(-t) * a), x, Float64(fma(Float64(-z), c, Float64(a * i)) * b)); elseif (t <= 3.7e+64) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); else tmp = Float64(Float64(fma(c, Float64(j / x), Float64(-a)) * x) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.25e+75], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 2.7e-43], N[(N[((-t) * a), $MachinePrecision] * x + N[(N[((-z) * c + N[(a * i), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e+64], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(c * N[(j / x), $MachinePrecision] + (-a)), $MachinePrecision] * x), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-43}:\\
\;\;\;\;\mathsf{fma}\left(\left(-t\right) \cdot a, x, \mathsf{fma}\left(-z, c, a \cdot i\right) \cdot b\right)\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, \frac{j}{x}, -a\right) \cdot x\right) \cdot t\\
\end{array}
\end{array}
if t < -1.2500000000000001e75Initial program 58.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.9
Applied rewrites75.9%
if -1.2500000000000001e75 < t < 2.69999999999999991e-43Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites87.3%
Taylor expanded in t around inf
Applied rewrites74.3%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites73.4%
Taylor expanded in y around 0
Applied rewrites62.5%
if 2.69999999999999991e-43 < t < 3.69999999999999983e64Initial program 77.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
if 3.69999999999999983e64 < t Initial program 63.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.3
Applied rewrites66.3%
Taylor expanded in x around inf
Applied rewrites69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.7e+261)
(* (* b a) i)
(if (<= a -3.1e+77)
(* (- a) (* t x))
(if (<= a -1.95e-261)
(* (* z y) x)
(if (<= a 7.2e+149)
(* (* j c) t)
(if (<= a 2.75e+196) (* (* i b) a) (* (- x) (* a t))))))))
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.7e+261) {
tmp = (b * a) * i;
} else if (a <= -3.1e+77) {
tmp = -a * (t * x);
} else if (a <= -1.95e-261) {
tmp = (z * y) * x;
} else if (a <= 7.2e+149) {
tmp = (j * c) * t;
} else if (a <= 2.75e+196) {
tmp = (i * b) * a;
} else {
tmp = -x * (a * t);
}
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 <= (-1.7d+261)) then
tmp = (b * a) * i
else if (a <= (-3.1d+77)) then
tmp = -a * (t * x)
else if (a <= (-1.95d-261)) then
tmp = (z * y) * x
else if (a <= 7.2d+149) then
tmp = (j * c) * t
else if (a <= 2.75d+196) then
tmp = (i * b) * a
else
tmp = -x * (a * t)
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 <= -1.7e+261) {
tmp = (b * a) * i;
} else if (a <= -3.1e+77) {
tmp = -a * (t * x);
} else if (a <= -1.95e-261) {
tmp = (z * y) * x;
} else if (a <= 7.2e+149) {
tmp = (j * c) * t;
} else if (a <= 2.75e+196) {
tmp = (i * b) * a;
} else {
tmp = -x * (a * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.7e+261: tmp = (b * a) * i elif a <= -3.1e+77: tmp = -a * (t * x) elif a <= -1.95e-261: tmp = (z * y) * x elif a <= 7.2e+149: tmp = (j * c) * t elif a <= 2.75e+196: tmp = (i * b) * a else: tmp = -x * (a * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.7e+261) tmp = Float64(Float64(b * a) * i); elseif (a <= -3.1e+77) tmp = Float64(Float64(-a) * Float64(t * x)); elseif (a <= -1.95e-261) tmp = Float64(Float64(z * y) * x); elseif (a <= 7.2e+149) tmp = Float64(Float64(j * c) * t); elseif (a <= 2.75e+196) tmp = Float64(Float64(i * b) * a); else tmp = Float64(Float64(-x) * Float64(a * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.7e+261) tmp = (b * a) * i; elseif (a <= -3.1e+77) tmp = -a * (t * x); elseif (a <= -1.95e-261) tmp = (z * y) * x; elseif (a <= 7.2e+149) tmp = (j * c) * t; elseif (a <= 2.75e+196) tmp = (i * b) * a; else tmp = -x * (a * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.7e+261], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, -3.1e+77], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.95e-261], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 7.2e+149], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 2.75e+196], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[((-x) * N[(a * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.7 \cdot 10^{+261}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{+77}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-261}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+149}:\\
\;\;\;\;\left(j \cdot c\right) \cdot t\\
\mathbf{elif}\;a \leq 2.75 \cdot 10^{+196}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(-x\right) \cdot \left(a \cdot t\right)\\
\end{array}
\end{array}
if a < -1.7e261Initial program 33.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.1
Applied rewrites68.1%
Taylor expanded in y around 0
Applied rewrites68.1%
if -1.7e261 < a < -3.09999999999999999e77Initial program 62.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.5
Applied rewrites62.5%
Taylor expanded in x around inf
Applied rewrites54.0%
if -3.09999999999999999e77 < a < -1.95000000000000009e-261Initial program 78.1%
Taylor expanded in z around 0
Applied rewrites76.4%
Taylor expanded in t around 0
Applied rewrites76.3%
Taylor expanded in x around inf
Applied rewrites31.4%
if -1.95000000000000009e-261 < a < 7.1999999999999999e149Initial program 79.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.9
Applied rewrites52.9%
Taylor expanded in x around 0
Applied rewrites41.0%
if 7.1999999999999999e149 < a < 2.74999999999999987e196Initial program 78.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.1
Applied rewrites73.1%
Taylor expanded in y around 0
Applied rewrites73.2%
if 2.74999999999999987e196 < a Initial program 68.1%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites69.0%
Taylor expanded in x around inf
Applied rewrites59.9%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- a) (* t x))))
(if (<= a -1.7e+261)
(* (* b a) i)
(if (<= a -3.1e+77)
t_1
(if (<= a -1.95e-261)
(* (* z y) x)
(if (<= a 7.2e+149)
(* (* j c) t)
(if (<= a 2.75e+196) (* (* i b) 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 = -a * (t * x);
double tmp;
if (a <= -1.7e+261) {
tmp = (b * a) * i;
} else if (a <= -3.1e+77) {
tmp = t_1;
} else if (a <= -1.95e-261) {
tmp = (z * y) * x;
} else if (a <= 7.2e+149) {
tmp = (j * c) * t;
} else if (a <= 2.75e+196) {
tmp = (i * b) * 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 = -a * (t * x)
if (a <= (-1.7d+261)) then
tmp = (b * a) * i
else if (a <= (-3.1d+77)) then
tmp = t_1
else if (a <= (-1.95d-261)) then
tmp = (z * y) * x
else if (a <= 7.2d+149) then
tmp = (j * c) * t
else if (a <= 2.75d+196) then
tmp = (i * b) * 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 = -a * (t * x);
double tmp;
if (a <= -1.7e+261) {
tmp = (b * a) * i;
} else if (a <= -3.1e+77) {
tmp = t_1;
} else if (a <= -1.95e-261) {
tmp = (z * y) * x;
} else if (a <= 7.2e+149) {
tmp = (j * c) * t;
} else if (a <= 2.75e+196) {
tmp = (i * b) * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -a * (t * x) tmp = 0 if a <= -1.7e+261: tmp = (b * a) * i elif a <= -3.1e+77: tmp = t_1 elif a <= -1.95e-261: tmp = (z * y) * x elif a <= 7.2e+149: tmp = (j * c) * t elif a <= 2.75e+196: tmp = (i * b) * a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-a) * Float64(t * x)) tmp = 0.0 if (a <= -1.7e+261) tmp = Float64(Float64(b * a) * i); elseif (a <= -3.1e+77) tmp = t_1; elseif (a <= -1.95e-261) tmp = Float64(Float64(z * y) * x); elseif (a <= 7.2e+149) tmp = Float64(Float64(j * c) * t); elseif (a <= 2.75e+196) tmp = Float64(Float64(i * b) * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -a * (t * x); tmp = 0.0; if (a <= -1.7e+261) tmp = (b * a) * i; elseif (a <= -3.1e+77) tmp = t_1; elseif (a <= -1.95e-261) tmp = (z * y) * x; elseif (a <= 7.2e+149) tmp = (j * c) * t; elseif (a <= 2.75e+196) tmp = (i * b) * 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[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.7e+261], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, -3.1e+77], t$95$1, If[LessEqual[a, -1.95e-261], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 7.2e+149], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 2.75e+196], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+261}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-261}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+149}:\\
\;\;\;\;\left(j \cdot c\right) \cdot t\\
\mathbf{elif}\;a \leq 2.75 \cdot 10^{+196}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.7e261Initial program 33.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.1
Applied rewrites68.1%
Taylor expanded in y around 0
Applied rewrites68.1%
if -1.7e261 < a < -3.09999999999999999e77 or 2.74999999999999987e196 < a Initial program 64.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.7
Applied rewrites61.7%
Taylor expanded in x around inf
Applied rewrites56.2%
if -3.09999999999999999e77 < a < -1.95000000000000009e-261Initial program 78.1%
Taylor expanded in z around 0
Applied rewrites76.4%
Taylor expanded in t around 0
Applied rewrites76.3%
Taylor expanded in x around inf
Applied rewrites31.4%
if -1.95000000000000009e-261 < a < 7.1999999999999999e149Initial program 79.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.9
Applied rewrites52.9%
Taylor expanded in x around 0
Applied rewrites41.0%
if 7.1999999999999999e149 < a < 2.74999999999999987e196Initial program 78.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.1
Applied rewrites73.1%
Taylor expanded in y around 0
Applied rewrites73.2%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* i b)) a)))
(if (<= a -1.9e+70)
t_1
(if (<= a -3.1e-273)
(* (fma (- b) c (* y x)) z)
(if (<= a 1.12e-20)
(* (fma (- z) b (* j t)) c)
(if (<= a 2.5e+147) (* (fma (- a) x (* j c)) t) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, t, (i * b)) * a;
double tmp;
if (a <= -1.9e+70) {
tmp = t_1;
} else if (a <= -3.1e-273) {
tmp = fma(-b, c, (y * x)) * z;
} else if (a <= 1.12e-20) {
tmp = fma(-z, b, (j * t)) * c;
} else if (a <= 2.5e+147) {
tmp = fma(-a, x, (j * c)) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(i * b)) * a) tmp = 0.0 if (a <= -1.9e+70) tmp = t_1; elseif (a <= -3.1e-273) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (a <= 1.12e-20) tmp = Float64(fma(Float64(-z), b, Float64(j * t)) * c); elseif (a <= 2.5e+147) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.9e+70], t$95$1, If[LessEqual[a, -3.1e-273], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 1.12e-20], N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[a, 2.5e+147], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-273}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{-20}:\\
\;\;\;\;\mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+147}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.8999999999999999e70 or 2.5000000000000001e147 < a Initial program 62.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.9
Applied rewrites78.9%
if -1.8999999999999999e70 < a < -3.09999999999999988e-273Initial program 77.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.2
Applied rewrites54.2%
if -3.09999999999999988e-273 < a < 1.12000000000000002e-20Initial program 83.5%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.0
Applied rewrites60.0%
if 1.12000000000000002e-20 < a < 2.5000000000000001e147Initial program 71.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.7
Applied rewrites68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) x (* j c)) t)))
(if (<= t -2.1e-65)
t_1
(if (<= t -2.2e-111)
(* (fma (- i) j (* z x)) y)
(if (<= t 6.5e-141)
(* (fma i a (* (- z) c)) b)
(if (<= t 5.8e+64) (* (fma (- b) c (* y x)) z) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, x, (j * c)) * t;
double tmp;
if (t <= -2.1e-65) {
tmp = t_1;
} else if (t <= -2.2e-111) {
tmp = fma(-i, j, (z * x)) * y;
} else if (t <= 6.5e-141) {
tmp = fma(i, a, (-z * c)) * b;
} else if (t <= 5.8e+64) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), x, Float64(j * c)) * t) tmp = 0.0 if (t <= -2.1e-65) tmp = t_1; elseif (t <= -2.2e-111) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (t <= 6.5e-141) tmp = Float64(fma(i, a, Float64(Float64(-z) * c)) * b); elseif (t <= 5.8e+64) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -2.1e-65], t$95$1, If[LessEqual[t, -2.2e-111], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 6.5e-141], N[(N[(i * a + N[((-z) * c), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 5.8e+64], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-111}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-141}:\\
\;\;\;\;\mathsf{fma}\left(i, a, \left(-z\right) \cdot c\right) \cdot b\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.10000000000000003e-65 or 5.79999999999999986e64 < t Initial program 65.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.7
Applied rewrites66.7%
if -2.10000000000000003e-65 < t < -2.2e-111Initial program 85.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6486.5
Applied rewrites86.5%
if -2.2e-111 < t < 6.4999999999999995e-141Initial program 83.7%
Taylor expanded in b around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites60.0%
Applied rewrites60.1%
if 6.4999999999999995e-141 < t < 5.79999999999999986e64Initial program 83.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.3
Applied rewrites56.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* i b)) a)))
(if (<= a -1.9e+70)
t_1
(if (<= a 1.05e-268)
(* (fma (- b) c (* y x)) z)
(if (<= a 2.7e+127) (* (fma (- y) i (* 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 = fma(-x, t, (i * b)) * a;
double tmp;
if (a <= -1.9e+70) {
tmp = t_1;
} else if (a <= 1.05e-268) {
tmp = fma(-b, c, (y * x)) * z;
} else if (a <= 2.7e+127) {
tmp = fma(-y, i, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(i * b)) * a) tmp = 0.0 if (a <= -1.9e+70) tmp = t_1; elseif (a <= 1.05e-268) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (a <= 2.7e+127) tmp = Float64(fma(Float64(-y), i, Float64(c * 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[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.9e+70], t$95$1, If[LessEqual[a, 1.05e-268], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 2.7e+127], N[(N[((-y) * i + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-268}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+127}:\\
\;\;\;\;\mathsf{fma}\left(-y, i, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.8999999999999999e70 or 2.7000000000000002e127 < a Initial program 62.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.5
Applied rewrites78.5%
if -1.8999999999999999e70 < a < 1.04999999999999999e-268Initial program 78.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.8
Applied rewrites53.8%
if 1.04999999999999999e-268 < a < 2.7000000000000002e127Initial program 79.8%
Taylor expanded in z around 0
Applied rewrites81.0%
Taylor expanded in t around inf
Applied rewrites74.1%
Taylor expanded in j around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.9
Applied rewrites54.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) x (* j c)) t)))
(if (<= t -3.5e-60)
t_1
(if (<= t 6.5e-141)
(* (fma i a (* (- z) c)) b)
(if (<= t 5.8e+64) (* (fma (- b) c (* y x)) z) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, x, (j * c)) * t;
double tmp;
if (t <= -3.5e-60) {
tmp = t_1;
} else if (t <= 6.5e-141) {
tmp = fma(i, a, (-z * c)) * b;
} else if (t <= 5.8e+64) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), x, Float64(j * c)) * t) tmp = 0.0 if (t <= -3.5e-60) tmp = t_1; elseif (t <= 6.5e-141) tmp = Float64(fma(i, a, Float64(Float64(-z) * c)) * b); elseif (t <= 5.8e+64) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3.5e-60], t$95$1, If[LessEqual[t, 6.5e-141], N[(N[(i * a + N[((-z) * c), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 5.8e+64], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{if}\;t \leq -3.5 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-141}:\\
\;\;\;\;\mathsf{fma}\left(i, a, \left(-z\right) \cdot c\right) \cdot b\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.49999999999999976e-60 or 5.79999999999999986e64 < t Initial program 65.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.7
Applied rewrites66.7%
if -3.49999999999999976e-60 < t < 6.4999999999999995e-141Initial program 83.9%
Taylor expanded in b around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites57.5%
Applied rewrites56.3%
if 6.4999999999999995e-141 < t < 5.79999999999999986e64Initial program 83.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.3
Applied rewrites56.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -6.5e+63)
t_1
(if (<= x -4.2e-77)
(* (* c t) j)
(if (<= x 0.6) (* (fma i a (* (- z) c)) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -6.5e+63) {
tmp = t_1;
} else if (x <= -4.2e-77) {
tmp = (c * t) * j;
} else if (x <= 0.6) {
tmp = fma(i, a, (-z * c)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -6.5e+63) tmp = t_1; elseif (x <= -4.2e-77) tmp = Float64(Float64(c * t) * j); elseif (x <= 0.6) tmp = Float64(fma(i, a, Float64(Float64(-z) * c)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.5e+63], t$95$1, If[LessEqual[x, -4.2e-77], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 0.6], N[(N[(i * a + N[((-z) * c), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-77}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{elif}\;x \leq 0.6:\\
\;\;\;\;\mathsf{fma}\left(i, a, \left(-z\right) \cdot c\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -6.49999999999999992e63 or 0.599999999999999978 < x Initial program 74.5%
Taylor expanded in z around 0
Applied rewrites73.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.1
Applied rewrites63.1%
if -6.49999999999999992e63 < x < -4.20000000000000031e-77Initial program 73.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.1
Applied rewrites57.1%
Taylor expanded in x around 0
Applied rewrites44.8%
Applied rewrites47.9%
if -4.20000000000000031e-77 < x < 0.599999999999999978Initial program 72.8%
Taylor expanded in b around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites52.9%
Applied rewrites51.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -3.5e-60) (not (<= t 9.8e+113))) (* (fma (- a) x (* j c)) t) (* (fma i a (* (- z) c)) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -3.5e-60) || !(t <= 9.8e+113)) {
tmp = fma(-a, x, (j * c)) * t;
} else {
tmp = fma(i, a, (-z * c)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -3.5e-60) || !(t <= 9.8e+113)) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); else tmp = Float64(fma(i, a, Float64(Float64(-z) * c)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -3.5e-60], N[Not[LessEqual[t, 9.8e+113]], $MachinePrecision]], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[(i * a + N[((-z) * c), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{-60} \lor \neg \left(t \leq 9.8 \cdot 10^{+113}\right):\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, a, \left(-z\right) \cdot c\right) \cdot b\\
\end{array}
\end{array}
if t < -3.49999999999999976e-60 or 9.80000000000000043e113 < t Initial program 64.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.0
Applied rewrites69.0%
if -3.49999999999999976e-60 < t < 9.80000000000000043e113Initial program 82.3%
Taylor expanded in b around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites50.0%
Applied rewrites49.2%
Final simplification59.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.16e+75) (* (* j t) c) (if (<= t 1.05e+129) (* (fma i a (* (- z) c)) b) (* (- a) (* t x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.16e+75) {
tmp = (j * t) * c;
} else if (t <= 1.05e+129) {
tmp = fma(i, a, (-z * c)) * b;
} else {
tmp = -a * (t * x);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.16e+75) tmp = Float64(Float64(j * t) * c); elseif (t <= 1.05e+129) tmp = Float64(fma(i, a, Float64(Float64(-z) * c)) * b); else tmp = Float64(Float64(-a) * Float64(t * x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.16e+75], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[t, 1.05e+129], N[(N[(i * a + N[((-z) * c), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.16 \cdot 10^{+75}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+129}:\\
\;\;\;\;\mathsf{fma}\left(i, a, \left(-z\right) \cdot c\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\end{array}
\end{array}
if t < -1.1600000000000001e75Initial program 58.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.9
Applied rewrites75.9%
Taylor expanded in x around 0
Applied rewrites49.4%
if -1.1600000000000001e75 < t < 1.04999999999999998e129Initial program 80.4%
Taylor expanded in b around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites46.5%
Applied rewrites45.9%
if 1.04999999999999998e129 < t Initial program 63.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6474.1
Applied rewrites74.1%
Taylor expanded in x around inf
Applied rewrites60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -3.5e+98)
(* (* a i) b)
(if (<= i -1.95e-240)
(* (* z x) y)
(if (<= i 2.5e+31) (* (* j c) t) (* (* 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 (i <= -3.5e+98) {
tmp = (a * i) * b;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * c) * t;
} 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 (i <= (-3.5d+98)) then
tmp = (a * i) * b
else if (i <= (-1.95d-240)) then
tmp = (z * x) * y
else if (i <= 2.5d+31) then
tmp = (j * c) * t
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 (i <= -3.5e+98) {
tmp = (a * i) * b;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * c) * t;
} else {
tmp = (b * a) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -3.5e+98: tmp = (a * i) * b elif i <= -1.95e-240: tmp = (z * x) * y elif i <= 2.5e+31: tmp = (j * c) * t else: tmp = (b * a) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -3.5e+98) tmp = Float64(Float64(a * i) * b); elseif (i <= -1.95e-240) tmp = Float64(Float64(z * x) * y); elseif (i <= 2.5e+31) tmp = Float64(Float64(j * c) * t); else tmp = Float64(Float64(b * a) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -3.5e+98) tmp = (a * i) * b; elseif (i <= -1.95e-240) tmp = (z * x) * y; elseif (i <= 2.5e+31) tmp = (j * c) * t; else tmp = (b * a) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3.5e+98], N[(N[(a * i), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[i, -1.95e-240], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, 2.5e+31], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\
\;\;\;\;\left(a \cdot i\right) \cdot b\\
\mathbf{elif}\;i \leq -1.95 \cdot 10^{-240}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+31}:\\
\;\;\;\;\left(j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\end{array}
\end{array}
if i < -3.5e98Initial program 64.9%
Taylor expanded in b around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites60.3%
Taylor expanded in z around 0
Applied rewrites50.0%
if -3.5e98 < i < -1.95000000000000007e-240Initial program 80.1%
Taylor expanded in z around 0
Applied rewrites78.4%
Taylor expanded in t around inf
Applied rewrites77.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y around inf
Applied rewrites32.5%
if -1.95000000000000007e-240 < i < 2.50000000000000013e31Initial program 76.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.3
Applied rewrites55.3%
Taylor expanded in x around 0
Applied rewrites38.5%
if 2.50000000000000013e31 < i Initial program 66.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.5
Applied rewrites53.5%
Taylor expanded in y around 0
Applied rewrites37.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -3.5e+98)
(* (* i b) a)
(if (<= i -1.95e-240)
(* (* z x) y)
(if (<= i 2.5e+31) (* (* j c) t) (* (* 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 (i <= -3.5e+98) {
tmp = (i * b) * a;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * c) * t;
} 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 (i <= (-3.5d+98)) then
tmp = (i * b) * a
else if (i <= (-1.95d-240)) then
tmp = (z * x) * y
else if (i <= 2.5d+31) then
tmp = (j * c) * t
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 (i <= -3.5e+98) {
tmp = (i * b) * a;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * c) * t;
} else {
tmp = (b * a) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -3.5e+98: tmp = (i * b) * a elif i <= -1.95e-240: tmp = (z * x) * y elif i <= 2.5e+31: tmp = (j * c) * t else: tmp = (b * a) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -3.5e+98) tmp = Float64(Float64(i * b) * a); elseif (i <= -1.95e-240) tmp = Float64(Float64(z * x) * y); elseif (i <= 2.5e+31) tmp = Float64(Float64(j * c) * t); else tmp = Float64(Float64(b * a) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -3.5e+98) tmp = (i * b) * a; elseif (i <= -1.95e-240) tmp = (z * x) * y; elseif (i <= 2.5e+31) tmp = (j * c) * t; else tmp = (b * a) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3.5e+98], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, -1.95e-240], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, 2.5e+31], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{elif}\;i \leq -1.95 \cdot 10^{-240}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+31}:\\
\;\;\;\;\left(j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\end{array}
\end{array}
if i < -3.5e98Initial program 64.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.6
Applied rewrites67.6%
Taylor expanded in y around 0
Applied rewrites47.9%
if -3.5e98 < i < -1.95000000000000007e-240Initial program 80.1%
Taylor expanded in z around 0
Applied rewrites78.4%
Taylor expanded in t around inf
Applied rewrites77.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y around inf
Applied rewrites32.5%
if -1.95000000000000007e-240 < i < 2.50000000000000013e31Initial program 76.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.3
Applied rewrites55.3%
Taylor expanded in x around 0
Applied rewrites38.5%
if 2.50000000000000013e31 < i Initial program 66.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.5
Applied rewrites53.5%
Taylor expanded in y around 0
Applied rewrites37.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i b) a)))
(if (<= i -3.5e+98)
t_1
(if (<= i -1.95e-240)
(* (* z x) y)
(if (<= i 2.5e+31) (* (* j c) t) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * b) * a;
double tmp;
if (i <= -3.5e+98) {
tmp = t_1;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * c) * t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (i * b) * a
if (i <= (-3.5d+98)) then
tmp = t_1
else if (i <= (-1.95d-240)) then
tmp = (z * x) * y
else if (i <= 2.5d+31) then
tmp = (j * c) * t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * b) * a;
double tmp;
if (i <= -3.5e+98) {
tmp = t_1;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * c) * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * b) * a tmp = 0 if i <= -3.5e+98: tmp = t_1 elif i <= -1.95e-240: tmp = (z * x) * y elif i <= 2.5e+31: tmp = (j * c) * t else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * b) * a) tmp = 0.0 if (i <= -3.5e+98) tmp = t_1; elseif (i <= -1.95e-240) tmp = Float64(Float64(z * x) * y); elseif (i <= 2.5e+31) tmp = Float64(Float64(j * c) * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * b) * a; tmp = 0.0; if (i <= -3.5e+98) tmp = t_1; elseif (i <= -1.95e-240) tmp = (z * x) * y; elseif (i <= 2.5e+31) tmp = (j * c) * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[i, -3.5e+98], t$95$1, If[LessEqual[i, -1.95e-240], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, 2.5e+31], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot b\right) \cdot a\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.95 \cdot 10^{-240}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+31}:\\
\;\;\;\;\left(j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.5e98 or 2.50000000000000013e31 < i Initial program 66.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.7
Applied rewrites59.7%
Taylor expanded in y around 0
Applied rewrites41.8%
if -3.5e98 < i < -1.95000000000000007e-240Initial program 80.1%
Taylor expanded in z around 0
Applied rewrites78.4%
Taylor expanded in t around inf
Applied rewrites77.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y around inf
Applied rewrites32.5%
if -1.95000000000000007e-240 < i < 2.50000000000000013e31Initial program 76.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.3
Applied rewrites55.3%
Taylor expanded in x around 0
Applied rewrites38.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i b) a)))
(if (<= i -3.5e+98)
t_1
(if (<= i -1.95e-240)
(* (* z x) y)
(if (<= i 2.5e+31) (* (* j t) 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 = (i * b) * a;
double tmp;
if (i <= -3.5e+98) {
tmp = t_1;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * t) * c;
} 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 * b) * a
if (i <= (-3.5d+98)) then
tmp = t_1
else if (i <= (-1.95d-240)) then
tmp = (z * x) * y
else if (i <= 2.5d+31) then
tmp = (j * t) * c
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 * b) * a;
double tmp;
if (i <= -3.5e+98) {
tmp = t_1;
} else if (i <= -1.95e-240) {
tmp = (z * x) * y;
} else if (i <= 2.5e+31) {
tmp = (j * t) * c;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * b) * a tmp = 0 if i <= -3.5e+98: tmp = t_1 elif i <= -1.95e-240: tmp = (z * x) * y elif i <= 2.5e+31: tmp = (j * t) * c else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * b) * a) tmp = 0.0 if (i <= -3.5e+98) tmp = t_1; elseif (i <= -1.95e-240) tmp = Float64(Float64(z * x) * y); elseif (i <= 2.5e+31) tmp = Float64(Float64(j * t) * c); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * b) * a; tmp = 0.0; if (i <= -3.5e+98) tmp = t_1; elseif (i <= -1.95e-240) tmp = (z * x) * y; elseif (i <= 2.5e+31) tmp = (j * t) * c; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[i, -3.5e+98], t$95$1, If[LessEqual[i, -1.95e-240], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, 2.5e+31], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot b\right) \cdot a\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.95 \cdot 10^{-240}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+31}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.5e98 or 2.50000000000000013e31 < i Initial program 66.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.7
Applied rewrites59.7%
Taylor expanded in y around 0
Applied rewrites41.8%
if -3.5e98 < i < -1.95000000000000007e-240Initial program 80.1%
Taylor expanded in z around 0
Applied rewrites78.4%
Taylor expanded in t around inf
Applied rewrites77.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y around inf
Applied rewrites32.5%
if -1.95000000000000007e-240 < i < 2.50000000000000013e31Initial program 76.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.3
Applied rewrites55.3%
Taylor expanded in x around 0
Applied rewrites37.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -6.4e+142) (not (<= i 2.5e+31))) (* (* i b) a) (* (* c t) j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -6.4e+142) || !(i <= 2.5e+31)) {
tmp = (i * b) * a;
} else {
tmp = (c * t) * j;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-6.4d+142)) .or. (.not. (i <= 2.5d+31))) then
tmp = (i * b) * a
else
tmp = (c * t) * j
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -6.4e+142) || !(i <= 2.5e+31)) {
tmp = (i * b) * a;
} else {
tmp = (c * t) * j;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -6.4e+142) or not (i <= 2.5e+31): tmp = (i * b) * a else: tmp = (c * t) * j return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -6.4e+142) || !(i <= 2.5e+31)) tmp = Float64(Float64(i * b) * a); else tmp = Float64(Float64(c * t) * j); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -6.4e+142) || ~((i <= 2.5e+31))) tmp = (i * b) * a; else tmp = (c * t) * j; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -6.4e+142], N[Not[LessEqual[i, 2.5e+31]], $MachinePrecision]], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.4 \cdot 10^{+142} \lor \neg \left(i \leq 2.5 \cdot 10^{+31}\right):\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\end{array}
\end{array}
if i < -6.40000000000000011e142 or 2.50000000000000013e31 < i Initial program 66.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.4
Applied rewrites60.4%
Taylor expanded in y around 0
Applied rewrites42.1%
if -6.40000000000000011e142 < i < 2.50000000000000013e31Initial program 77.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.3
Applied rewrites51.3%
Taylor expanded in x around 0
Applied rewrites29.9%
Applied rewrites31.7%
Final simplification35.3%
(FPCore (x y z t a b c i j) :precision binary64 (* (* c t) j))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (c * t) * j;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (c * t) * j
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (c * t) * j;
}
def code(x, y, z, t, a, b, c, i, j): return (c * t) * j
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(c * t) * j) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (c * t) * j; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]
\begin{array}{l}
\\
\left(c \cdot t\right) \cdot j
\end{array}
Initial program 73.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.5
Applied rewrites43.5%
Taylor expanded in x around 0
Applied rewrites24.9%
Applied rewrites26.0%
(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 2024320
(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)))))