
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
(* j (- (* c a) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(* (fma (- i) y (fma c a (/ (* (fma (- c) z (* i t)) b) j))) j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(-i, y, fma(c, a, ((fma(-c, z, (i * t)) * b) / j))) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(Float64(-i), y, fma(c, a, Float64(Float64(fma(Float64(-c), z, Float64(i * t)) * b) / j))) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-i) * y + N[(c * a + N[(N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $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 - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, \mathsf{fma}\left(c, a, \frac{\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b}{j}\right)\right) \cdot j\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.3
Applied rewrites51.3%
Taylor expanded in j around inf
Applied rewrites61.5%
Final simplification86.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- i) y (* c a))))
(if (<= b -3.5e+158)
(fma t_1 j (* (fma (- c) z (* i t)) b))
(if (<= b 1.3e+234)
(fma t_1 j (fma (fma (- a) x (* i b)) t (* (fma (- b) c (* y x)) z)))
(* (fma (- z) c (* i t)) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, y, (c * a));
double tmp;
if (b <= -3.5e+158) {
tmp = fma(t_1, j, (fma(-c, z, (i * t)) * b));
} else if (b <= 1.3e+234) {
tmp = fma(t_1, j, fma(fma(-a, x, (i * b)), t, (fma(-b, c, (y * x)) * z)));
} else {
tmp = fma(-z, c, (i * t)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-i), y, Float64(c * a)) tmp = 0.0 if (b <= -3.5e+158) tmp = fma(t_1, j, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); elseif (b <= 1.3e+234) tmp = fma(t_1, j, fma(fma(Float64(-a), x, Float64(i * b)), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z))); else tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+158], N[(t$95$1 * j + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e+234], N[(t$95$1 * j + N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+158}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, j, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+234}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, j, \mathsf{fma}\left(\mathsf{fma}\left(-a, x, i \cdot b\right), t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if b < -3.5000000000000001e158Initial program 78.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites61.4%
Taylor expanded in x around 0
Applied rewrites80.9%
if -3.5000000000000001e158 < b < 1.30000000000000008e234Initial program 77.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites84.5%
if 1.30000000000000008e234 < b Initial program 64.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/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-*.f64100.0
Applied rewrites100.0%
Final simplification84.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.55e+23)
(* (fma (- i) y (fma c a (/ (* (fma (- c) z (* i t)) b) j))) j)
(if (<= c 7.2e+15)
(fma (fma (- y) j (* b t)) i (* (fma (- a) t (* z y)) x))
(fma (fma (- t) x (* j c)) a (* (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 (c <= -1.55e+23) {
tmp = fma(-i, y, fma(c, a, ((fma(-c, z, (i * t)) * b) / j))) * j;
} else if (c <= 7.2e+15) {
tmp = fma(fma(-y, j, (b * t)), i, (fma(-a, t, (z * y)) * x));
} else {
tmp = fma(fma(-t, x, (j * c)), a, (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.55e+23) tmp = Float64(fma(Float64(-i), y, fma(c, a, Float64(Float64(fma(Float64(-c), z, Float64(i * t)) * b) / j))) * j); elseif (c <= 7.2e+15) tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = fma(fma(Float64(-t), x, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.55e+23], N[(N[((-i) * y + N[(c * a + N[(N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[c, 7.2e+15], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.55 \cdot 10^{+23}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, \mathsf{fma}\left(c, a, \frac{\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b}{j}\right)\right) \cdot j\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if c < -1.54999999999999985e23Initial program 59.7%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.6
Applied rewrites67.6%
Taylor expanded in j around inf
Applied rewrites69.7%
if -1.54999999999999985e23 < c < 7.2e15Initial program 86.0%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites77.2%
if 7.2e15 < c Initial program 67.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites83.6%
Taylor expanded in i around 0
Applied rewrites82.1%
Final simplification76.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.25e-46) (not (<= j 2.6e-83))) (fma (fma (- i) y (* c a)) j (* (fma (- c) z (* i t)) b)) (fma (fma (- t) x (* j c)) a (* (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 ((j <= -1.25e-46) || !(j <= 2.6e-83)) {
tmp = fma(fma(-i, y, (c * a)), j, (fma(-c, z, (i * t)) * b));
} else {
tmp = fma(fma(-t, x, (j * c)), a, (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.25e-46) || !(j <= 2.6e-83)) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); else tmp = fma(fma(Float64(-t), x, Float64(j * c)), a, 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[j, -1.25e-46], N[Not[LessEqual[j, 2.6e-83]], $MachinePrecision]], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.25 \cdot 10^{-46} \lor \neg \left(j \leq 2.6 \cdot 10^{-83}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if j < -1.24999999999999998e-46 or 2.60000000000000009e-83 < j Initial program 78.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites80.1%
Taylor expanded in x around 0
Applied rewrites76.9%
if -1.24999999999999998e-46 < j < 2.60000000000000009e-83Initial program 75.2%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites78.6%
Taylor expanded in i around 0
Applied rewrites70.0%
Final simplification73.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -6.2e+72) (not (<= i 3.9e+124))) (* (fma (- y) j (* b t)) i) (fma (fma (- t) x (* j c)) a (* (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 ((i <= -6.2e+72) || !(i <= 3.9e+124)) {
tmp = fma(-y, j, (b * t)) * i;
} else {
tmp = fma(fma(-t, x, (j * c)), a, (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -6.2e+72) || !(i <= 3.9e+124)) tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); else tmp = fma(fma(Float64(-t), x, Float64(j * c)), a, 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[i, -6.2e+72], N[Not[LessEqual[i, 3.9e+124]], $MachinePrecision]], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.2 \cdot 10^{+72} \lor \neg \left(i \leq 3.9 \cdot 10^{+124}\right):\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if i < -6.19999999999999977e72 or 3.9e124 < i Initial program 71.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6474.5
Applied rewrites74.5%
if -6.19999999999999977e72 < i < 3.9e124Initial program 79.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites87.1%
Taylor expanded in i around 0
Applied rewrites68.6%
Final simplification70.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.55e+23)
(fma (fma (- i) y (* c a)) j (* (fma (- c) z (* i t)) b))
(if (<= c 7.2e+15)
(fma (fma (- y) j (* b t)) i (* (fma (- a) t (* z y)) x))
(fma (fma (- t) x (* j c)) a (* (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 (c <= -1.55e+23) {
tmp = fma(fma(-i, y, (c * a)), j, (fma(-c, z, (i * t)) * b));
} else if (c <= 7.2e+15) {
tmp = fma(fma(-y, j, (b * t)), i, (fma(-a, t, (z * y)) * x));
} else {
tmp = fma(fma(-t, x, (j * c)), a, (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.55e+23) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); elseif (c <= 7.2e+15) tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = fma(fma(Float64(-t), x, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.55e+23], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e+15], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.55 \cdot 10^{+23}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if c < -1.54999999999999985e23Initial program 59.7%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites61.2%
Taylor expanded in x around 0
Applied rewrites69.6%
if -1.54999999999999985e23 < c < 7.2e15Initial program 86.0%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites77.2%
if 7.2e15 < c Initial program 67.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites83.6%
Taylor expanded in i around 0
Applied rewrites82.1%
Final simplification76.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- c) z (* i t)) b (* (* j c) a))))
(if (<= b -1.1e+97)
t_1
(if (<= b 2.5e-80)
(+ (* (* z x) y) (* j (- (* c a) (* y i))))
(if (<= b 1.75e+58) (fma (* b t) i (* (fma (- a) t (* z y)) x)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-c, z, (i * t)), b, ((j * c) * a));
double tmp;
if (b <= -1.1e+97) {
tmp = t_1;
} else if (b <= 2.5e-80) {
tmp = ((z * x) * y) + (j * ((c * a) - (y * i)));
} else if (b <= 1.75e+58) {
tmp = fma((b * t), i, (fma(-a, t, (z * y)) * x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-c), z, Float64(i * t)), b, Float64(Float64(j * c) * a)) tmp = 0.0 if (b <= -1.1e+97) tmp = t_1; elseif (b <= 2.5e-80) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))); elseif (b <= 1.75e+58) tmp = fma(Float64(b * t), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.1e+97], t$95$1, If[LessEqual[b, 2.5e-80], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e+58], N[(N[(b * t), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-80}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+58}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot t, i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.1e97 or 1.7499999999999999e58 < b Initial program 74.9%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in y around 0
Applied rewrites72.7%
if -1.1e97 < b < 2.5e-80Initial program 76.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6466.6
Applied rewrites66.6%
if 2.5e-80 < b < 1.7499999999999999e58Initial program 84.7%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites84.4%
Taylor expanded in y around 0
Applied rewrites72.9%
Final simplification69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- c) z (* i t)) b (* (* j c) a))))
(if (<= b -3.8e+53)
t_1
(if (<= b 7.2e-79)
(fma (fma (- x) t (* j c)) a (* (* y x) z))
(if (<= b 1.75e+58) (fma (* b t) i (* (fma (- a) t (* z y)) x)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-c, z, (i * t)), b, ((j * c) * a));
double tmp;
if (b <= -3.8e+53) {
tmp = t_1;
} else if (b <= 7.2e-79) {
tmp = fma(fma(-x, t, (j * c)), a, ((y * x) * z));
} else if (b <= 1.75e+58) {
tmp = fma((b * t), i, (fma(-a, t, (z * y)) * x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-c), z, Float64(i * t)), b, Float64(Float64(j * c) * a)) tmp = 0.0 if (b <= -3.8e+53) tmp = t_1; elseif (b <= 7.2e-79) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(Float64(y * x) * z)); elseif (b <= 1.75e+58) tmp = fma(Float64(b * t), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.8e+53], t$95$1, If[LessEqual[b, 7.2e-79], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e+58], N[(N[(b * t), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-79}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \left(y \cdot x\right) \cdot z\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+58}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot t, i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.79999999999999997e53 or 1.7499999999999999e58 < b Initial program 76.1%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6474.4
Applied rewrites74.4%
Taylor expanded in y around 0
Applied rewrites70.4%
if -3.79999999999999997e53 < b < 7.2000000000000005e-79Initial program 75.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites88.2%
Taylor expanded in i around 0
Applied rewrites64.9%
Taylor expanded in b around 0
Applied rewrites61.2%
if 7.2000000000000005e-79 < b < 1.7499999999999999e58Initial program 84.7%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites84.4%
Taylor expanded in y around 0
Applied rewrites72.9%
Final simplification66.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= j -6.5e+156)
(not
(or (<= j 1e-27) (not (or (<= j 5.9e+161) (not (<= j 2.4e+205)))))))
(* (* (- j) y) i)
(* (fma (- a) x (* i b)) t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.5e+156) || !((j <= 1e-27) || !((j <= 5.9e+161) || !(j <= 2.4e+205)))) {
tmp = (-j * y) * i;
} else {
tmp = fma(-a, x, (i * b)) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -6.5e+156) || !((j <= 1e-27) || !((j <= 5.9e+161) || !(j <= 2.4e+205)))) tmp = Float64(Float64(Float64(-j) * y) * i); else tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -6.5e+156], N[Not[Or[LessEqual[j, 1e-27], N[Not[Or[LessEqual[j, 5.9e+161], N[Not[LessEqual[j, 2.4e+205]], $MachinePrecision]]], $MachinePrecision]]], $MachinePrecision]], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.5 \cdot 10^{+156} \lor \neg \left(j \leq 10^{-27} \lor \neg \left(j \leq 5.9 \cdot 10^{+161} \lor \neg \left(j \leq 2.4 \cdot 10^{+205}\right)\right)\right):\\
\;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if j < -6.50000000000000027e156 or 1e-27 < j < 5.9000000000000003e161 or 2.39999999999999986e205 < j Initial program 77.6%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6480.5
Applied rewrites80.5%
Taylor expanded in y around inf
Applied rewrites58.0%
if -6.50000000000000027e156 < j < 1e-27 or 5.9000000000000003e161 < j < 2.39999999999999986e205Initial program 76.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.8
Applied rewrites51.8%
Final simplification53.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- t) a (* z y)) x)))
(if (<= x -1.06e+203)
t_1
(if (<= x 8.2e-50)
(fma (fma (- c) z (* i t)) b (* (* j c) a))
(if (<= x 6.6e+173)
(* (fma (- j) i (* z x)) y)
(if (<= x 9e+240) t_1 (* (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 t_1 = fma(-t, a, (z * y)) * x;
double tmp;
if (x <= -1.06e+203) {
tmp = t_1;
} else if (x <= 8.2e-50) {
tmp = fma(fma(-c, z, (i * t)), b, ((j * c) * a));
} else if (x <= 6.6e+173) {
tmp = fma(-j, i, (z * x)) * y;
} else if (x <= 9e+240) {
tmp = t_1;
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) tmp = 0.0 if (x <= -1.06e+203) tmp = t_1; elseif (x <= 8.2e-50) tmp = fma(fma(Float64(-c), z, Float64(i * t)), b, Float64(Float64(j * c) * a)); elseif (x <= 6.6e+173) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); elseif (x <= 9e+240) tmp = t_1; else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.06e+203], t$95$1, If[LessEqual[x, 8.2e-50], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.6e+173], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, 9e+240], t$95$1, N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -1.06 \cdot 10^{+203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-50}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{+173}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+240}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if x < -1.05999999999999994e203 or 6.59999999999999993e173 < x < 8.99999999999999957e240Initial program 74.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites67.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
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
*-commutativeN/A
lower-*.f6490.1
Applied rewrites90.1%
if -1.05999999999999994e203 < x < 8.19999999999999971e-50Initial program 72.5%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.3
Applied rewrites72.3%
Taylor expanded in y around 0
Applied rewrites60.3%
if 8.19999999999999971e-50 < x < 6.59999999999999993e173Initial program 90.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.9
Applied rewrites59.9%
if 8.99999999999999957e240 < x Initial program 84.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-*.f6492.7
Applied rewrites92.7%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -5e+75)
(* (* i t) b)
(if (<= t -1.18e-21)
(* (* (- a) x) t)
(if (<= t -9e-177)
(* (* z y) x)
(if (<= t 9e+96) (* (* (- j) y) i) (* (* (- t) x) a))))))
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+75) {
tmp = (i * t) * b;
} else if (t <= -1.18e-21) {
tmp = (-a * x) * t;
} else if (t <= -9e-177) {
tmp = (z * y) * x;
} else if (t <= 9e+96) {
tmp = (-j * y) * i;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-5d+75)) then
tmp = (i * t) * b
else if (t <= (-1.18d-21)) then
tmp = (-a * x) * t
else if (t <= (-9d-177)) then
tmp = (z * y) * x
else if (t <= 9d+96) then
tmp = (-j * y) * i
else
tmp = (-t * x) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5e+75) {
tmp = (i * t) * b;
} else if (t <= -1.18e-21) {
tmp = (-a * x) * t;
} else if (t <= -9e-177) {
tmp = (z * y) * x;
} else if (t <= 9e+96) {
tmp = (-j * y) * i;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -5e+75: tmp = (i * t) * b elif t <= -1.18e-21: tmp = (-a * x) * t elif t <= -9e-177: tmp = (z * y) * x elif t <= 9e+96: tmp = (-j * y) * i else: tmp = (-t * x) * a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -5e+75) tmp = Float64(Float64(i * t) * b); elseif (t <= -1.18e-21) tmp = Float64(Float64(Float64(-a) * x) * t); elseif (t <= -9e-177) tmp = Float64(Float64(z * y) * x); elseif (t <= 9e+96) tmp = Float64(Float64(Float64(-j) * y) * i); else tmp = Float64(Float64(Float64(-t) * x) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -5e+75) tmp = (i * t) * b; elseif (t <= -1.18e-21) tmp = (-a * x) * t; elseif (t <= -9e-177) tmp = (z * y) * x; elseif (t <= 9e+96) tmp = (-j * y) * i; else tmp = (-t * x) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -5e+75], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, -1.18e-21], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, -9e-177], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t, 9e+96], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+75}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;t \leq -1.18 \cdot 10^{-21}:\\
\;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-177}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+96}:\\
\;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\end{array}
\end{array}
if t < -5.0000000000000002e75Initial program 55.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/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.1
Applied rewrites54.1%
Taylor expanded in z around 0
Applied rewrites39.9%
if -5.0000000000000002e75 < t < -1.18000000000000002e-21Initial program 84.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.8
Applied rewrites52.8%
Taylor expanded in x around inf
Applied rewrites38.9%
if -1.18000000000000002e-21 < t < -9.0000000000000007e-177Initial program 86.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites84.2%
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
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
*-commutativeN/A
lower-*.f6446.2
Applied rewrites46.2%
Taylor expanded in y around inf
Applied rewrites38.4%
if -9.0000000000000007e-177 < t < 8.99999999999999914e96Initial program 83.7%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.2
Applied rewrites76.2%
Taylor expanded in y around inf
Applied rewrites40.6%
if 8.99999999999999914e96 < t Initial program 72.2%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.8
Applied rewrites56.8%
Taylor expanded in x around inf
Applied rewrites47.5%
Final simplification41.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -7.2e+220)
(* (* (- a) x) t)
(if (<= x -7.5e+68)
(* (* z y) x)
(if (<= x 2.6e-129)
(* (* i b) t)
(if (<= x 2.75e+203) (* (* (- j) y) i) (* (* z x) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -7.2e+220) {
tmp = (-a * x) * t;
} else if (x <= -7.5e+68) {
tmp = (z * y) * x;
} else if (x <= 2.6e-129) {
tmp = (i * b) * t;
} else if (x <= 2.75e+203) {
tmp = (-j * y) * i;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-7.2d+220)) then
tmp = (-a * x) * t
else if (x <= (-7.5d+68)) then
tmp = (z * y) * x
else if (x <= 2.6d-129) then
tmp = (i * b) * t
else if (x <= 2.75d+203) then
tmp = (-j * y) * i
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -7.2e+220) {
tmp = (-a * x) * t;
} else if (x <= -7.5e+68) {
tmp = (z * y) * x;
} else if (x <= 2.6e-129) {
tmp = (i * b) * t;
} else if (x <= 2.75e+203) {
tmp = (-j * y) * i;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -7.2e+220: tmp = (-a * x) * t elif x <= -7.5e+68: tmp = (z * y) * x elif x <= 2.6e-129: tmp = (i * b) * t elif x <= 2.75e+203: tmp = (-j * y) * i else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -7.2e+220) tmp = Float64(Float64(Float64(-a) * x) * t); elseif (x <= -7.5e+68) tmp = Float64(Float64(z * y) * x); elseif (x <= 2.6e-129) tmp = Float64(Float64(i * b) * t); elseif (x <= 2.75e+203) tmp = Float64(Float64(Float64(-j) * y) * i); else tmp = Float64(Float64(z * x) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -7.2e+220) tmp = (-a * x) * t; elseif (x <= -7.5e+68) tmp = (z * y) * x; elseif (x <= 2.6e-129) tmp = (i * b) * t; elseif (x <= 2.75e+203) tmp = (-j * y) * i; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -7.2e+220], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, -7.5e+68], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, 2.6e-129], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 2.75e+203], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{+220}:\\
\;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
\mathbf{elif}\;x \leq -7.5 \cdot 10^{+68}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-129}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;x \leq 2.75 \cdot 10^{+203}:\\
\;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if x < -7.20000000000000038e220Initial program 94.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6483.8
Applied rewrites83.8%
Taylor expanded in x around inf
Applied rewrites83.8%
if -7.20000000000000038e220 < x < -7.49999999999999959e68Initial program 73.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.4%
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
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
*-commutativeN/A
lower-*.f6452.1
Applied rewrites52.1%
Taylor expanded in y around inf
Applied rewrites37.5%
if -7.49999999999999959e68 < x < 2.6000000000000001e-129Initial program 70.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.7
Applied rewrites42.7%
Taylor expanded in x around 0
Applied rewrites34.5%
if 2.6000000000000001e-129 < x < 2.75000000000000014e203Initial program 84.8%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.6
Applied rewrites66.6%
Taylor expanded in y around inf
Applied rewrites35.6%
if 2.75000000000000014e203 < x Initial program 72.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.0
Applied rewrites56.0%
Taylor expanded in x around inf
Applied rewrites51.4%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- j) i (* z x)) y)))
(if (<= y -2.2e+80)
t_1
(if (<= y -7.8e-218)
(* (fma (- a) x (* i b)) t)
(if (<= y 3.8e-27) (* (fma (- z) c (* i t)) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-j, i, (z * x)) * y;
double tmp;
if (y <= -2.2e+80) {
tmp = t_1;
} else if (y <= -7.8e-218) {
tmp = fma(-a, x, (i * b)) * t;
} else if (y <= 3.8e-27) {
tmp = fma(-z, c, (i * t)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-j), i, Float64(z * x)) * y) tmp = 0.0 if (y <= -2.2e+80) tmp = t_1; elseif (y <= -7.8e-218) tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); elseif (y <= 3.8e-27) tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -2.2e+80], t$95$1, If[LessEqual[y, -7.8e-218], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y, 3.8e-27], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -7.8 \cdot 10^{-218}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-27}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.20000000000000003e80 or 3.8e-27 < y Initial program 71.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.0
Applied rewrites61.0%
if -2.20000000000000003e80 < y < -7.8e-218Initial program 72.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.7
Applied rewrites57.7%
if -7.8e-218 < y < 3.8e-27Initial program 88.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/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-*.f6461.8
Applied rewrites61.8%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -5e-37)
(* (fma (- i) y (* c a)) j)
(if (<= j 2.3e-290)
(* (fma (- a) x (* i b)) t)
(if (<= j 9.5e-83)
(* (fma (- b) c (* y x)) z)
(* (fma (- y) j (* b t)) i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -5e-37) {
tmp = fma(-i, y, (c * a)) * j;
} else if (j <= 2.3e-290) {
tmp = fma(-a, x, (i * b)) * t;
} else if (j <= 9.5e-83) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = fma(-y, j, (b * t)) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -5e-37) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); elseif (j <= 2.3e-290) tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); elseif (j <= 9.5e-83) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -5e-37], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 2.3e-290], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, 9.5e-83], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -5 \cdot 10^{-37}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-290}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{-83}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if j < -4.9999999999999997e-37Initial program 79.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites79.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
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.3
Applied rewrites60.3%
if -4.9999999999999997e-37 < j < 2.3000000000000001e-290Initial program 71.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.0
Applied rewrites61.0%
if 2.3000000000000001e-290 < j < 9.50000000000000051e-83Initial program 83.3%
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-*.f6459.6
Applied rewrites59.6%
if 9.50000000000000051e-83 < j Initial program 76.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.8
Applied rewrites60.8%
Final simplification60.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -3.5e+134) (not (<= z 2.2e-17))) (* (fma (- b) c (* y x)) z) (* (fma (- a) x (* i b)) t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.5e+134) || !(z <= 2.2e-17)) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = fma(-a, x, (i * b)) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -3.5e+134) || !(z <= 2.2e-17)) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -3.5e+134], N[Not[LessEqual[z, 2.2e-17]], $MachinePrecision]], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+134} \lor \neg \left(z \leq 2.2 \cdot 10^{-17}\right):\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if z < -3.50000000000000003e134 or 2.2e-17 < z Initial program 70.4%
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-*.f6467.1
Applied rewrites67.1%
if -3.50000000000000003e134 < z < 2.2e-17Initial program 81.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.8
Applied rewrites52.8%
Final simplification58.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -3e-38)
(* (* (- i) j) y)
(if (<= j 1.1e-291)
(* (* (- a) x) t)
(if (<= j 1e-27) (* (* z x) y) (* (* (- j) y) i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -3e-38) {
tmp = (-i * j) * y;
} else if (j <= 1.1e-291) {
tmp = (-a * x) * t;
} else if (j <= 1e-27) {
tmp = (z * x) * y;
} else {
tmp = (-j * y) * 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 (j <= (-3d-38)) then
tmp = (-i * j) * y
else if (j <= 1.1d-291) then
tmp = (-a * x) * t
else if (j <= 1d-27) then
tmp = (z * x) * y
else
tmp = (-j * y) * 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 (j <= -3e-38) {
tmp = (-i * j) * y;
} else if (j <= 1.1e-291) {
tmp = (-a * x) * t;
} else if (j <= 1e-27) {
tmp = (z * x) * y;
} else {
tmp = (-j * y) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -3e-38: tmp = (-i * j) * y elif j <= 1.1e-291: tmp = (-a * x) * t elif j <= 1e-27: tmp = (z * x) * y else: tmp = (-j * y) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -3e-38) tmp = Float64(Float64(Float64(-i) * j) * y); elseif (j <= 1.1e-291) tmp = Float64(Float64(Float64(-a) * x) * t); elseif (j <= 1e-27) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(Float64(-j) * y) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -3e-38) tmp = (-i * j) * y; elseif (j <= 1.1e-291) tmp = (-a * x) * t; elseif (j <= 1e-27) tmp = (z * x) * y; else tmp = (-j * y) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -3e-38], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, 1.1e-291], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, 1e-27], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -3 \cdot 10^{-38}:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{-291}:\\
\;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
\mathbf{elif}\;j \leq 10^{-27}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
\end{array}
\end{array}
if j < -2.99999999999999989e-38Initial program 79.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.5
Applied rewrites48.5%
Taylor expanded in x around 0
Applied rewrites40.3%
if -2.99999999999999989e-38 < j < 1.10000000000000001e-291Initial program 70.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.9
Applied rewrites59.9%
Taylor expanded in x around inf
Applied rewrites34.5%
if 1.10000000000000001e-291 < j < 1e-27Initial program 80.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.1
Applied rewrites42.1%
Taylor expanded in x around inf
Applied rewrites33.0%
if 1e-27 < j Initial program 77.6%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6474.6
Applied rewrites74.6%
Taylor expanded in y around inf
Applied rewrites47.0%
Final simplification38.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.2e+99)
(* (* i t) b)
(if (<= t -9.6e-170)
(* (* z x) y)
(if (<= t 1.7e+98) (* (* (- j) y) i) (* (* i b) 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 <= -2.2e+99) {
tmp = (i * t) * b;
} else if (t <= -9.6e-170) {
tmp = (z * x) * y;
} else if (t <= 1.7e+98) {
tmp = (-j * y) * i;
} else {
tmp = (i * b) * 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 (t <= (-2.2d+99)) then
tmp = (i * t) * b
else if (t <= (-9.6d-170)) then
tmp = (z * x) * y
else if (t <= 1.7d+98) then
tmp = (-j * y) * i
else
tmp = (i * b) * 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 (t <= -2.2e+99) {
tmp = (i * t) * b;
} else if (t <= -9.6e-170) {
tmp = (z * x) * y;
} else if (t <= 1.7e+98) {
tmp = (-j * y) * i;
} else {
tmp = (i * b) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.2e+99: tmp = (i * t) * b elif t <= -9.6e-170: tmp = (z * x) * y elif t <= 1.7e+98: tmp = (-j * y) * i else: tmp = (i * b) * t return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.2e+99) tmp = Float64(Float64(i * t) * b); elseif (t <= -9.6e-170) tmp = Float64(Float64(z * x) * y); elseif (t <= 1.7e+98) tmp = Float64(Float64(Float64(-j) * y) * i); else tmp = Float64(Float64(i * b) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.2e+99) tmp = (i * t) * b; elseif (t <= -9.6e-170) tmp = (z * x) * y; elseif (t <= 1.7e+98) tmp = (-j * y) * i; else tmp = (i * b) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.2e+99], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, -9.6e-170], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 1.7e+98], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+99}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;t \leq -9.6 \cdot 10^{-170}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+98}:\\
\;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if t < -2.19999999999999978e99Initial program 60.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/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.5
Applied rewrites54.5%
Taylor expanded in z around 0
Applied rewrites41.1%
if -2.19999999999999978e99 < t < -9.5999999999999998e-170Initial program 79.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.4
Applied rewrites40.4%
Taylor expanded in x around inf
Applied rewrites29.0%
if -9.5999999999999998e-170 < t < 1.69999999999999986e98Initial program 83.8%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.6
Applied rewrites75.6%
Taylor expanded in y around inf
Applied rewrites39.9%
if 1.69999999999999986e98 < t Initial program 71.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.7
Applied rewrites76.7%
Taylor expanded in x around 0
Applied rewrites41.5%
Final simplification38.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -6e+59) (* (* i b) t) (if (<= b 78000000000.0) (* (* (- i) j) y) (* (* (- c) z) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -6e+59) {
tmp = (i * b) * t;
} else if (b <= 78000000000.0) {
tmp = (-i * j) * y;
} else {
tmp = (-c * z) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-6d+59)) then
tmp = (i * b) * t
else if (b <= 78000000000.0d0) then
tmp = (-i * j) * y
else
tmp = (-c * z) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -6e+59) {
tmp = (i * b) * t;
} else if (b <= 78000000000.0) {
tmp = (-i * j) * y;
} else {
tmp = (-c * z) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -6e+59: tmp = (i * b) * t elif b <= 78000000000.0: tmp = (-i * j) * y else: tmp = (-c * z) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -6e+59) tmp = Float64(Float64(i * b) * t); elseif (b <= 78000000000.0) tmp = Float64(Float64(Float64(-i) * j) * y); else tmp = Float64(Float64(Float64(-c) * z) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -6e+59) tmp = (i * b) * t; elseif (b <= 78000000000.0) tmp = (-i * j) * y; else tmp = (-c * z) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -6e+59], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 78000000000.0], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6 \cdot 10^{+59}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;b \leq 78000000000:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
\end{array}
\end{array}
if b < -6.0000000000000001e59Initial program 77.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.6
Applied rewrites60.6%
Taylor expanded in x around 0
Applied rewrites48.2%
if -6.0000000000000001e59 < b < 7.8e10Initial program 76.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.1
Applied rewrites52.1%
Taylor expanded in x around 0
Applied rewrites32.8%
if 7.8e10 < b Initial program 78.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/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-*.f6463.2
Applied rewrites63.2%
Taylor expanded in z around inf
Applied rewrites43.1%
Final simplification38.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -2.5e+17) (not (<= z 2.2e-17))) (* (* z x) y) (* (* i b) t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2.5e+17) || !(z <= 2.2e-17)) {
tmp = (z * x) * y;
} else {
tmp = (i * b) * 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 ((z <= (-2.5d+17)) .or. (.not. (z <= 2.2d-17))) then
tmp = (z * x) * y
else
tmp = (i * b) * 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 ((z <= -2.5e+17) || !(z <= 2.2e-17)) {
tmp = (z * x) * y;
} else {
tmp = (i * b) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -2.5e+17) or not (z <= 2.2e-17): tmp = (z * x) * y else: tmp = (i * b) * t return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -2.5e+17) || !(z <= 2.2e-17)) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(i * b) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -2.5e+17) || ~((z <= 2.2e-17))) tmp = (z * x) * y; else tmp = (i * b) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -2.5e+17], N[Not[LessEqual[z, 2.2e-17]], $MachinePrecision]], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+17} \lor \neg \left(z \leq 2.2 \cdot 10^{-17}\right):\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if z < -2.5e17 or 2.2e-17 < z Initial program 72.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.0
Applied rewrites51.0%
Taylor expanded in x around inf
Applied rewrites39.2%
if -2.5e17 < z < 2.2e-17Initial program 81.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.1
Applied rewrites52.1%
Taylor expanded in x around 0
Applied rewrites30.3%
Final simplification34.6%
(FPCore (x y z t a b c i j) :precision binary64 (* (* i b) t))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (i * b) * t;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (i * b) * t
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (i * b) * t;
}
def code(x, y, z, t, a, b, c, i, j): return (i * b) * t
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(i * b) * t) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (i * b) * t; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
\\
\left(i \cdot b\right) \cdot t
\end{array}
Initial program 76.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.2
Applied rewrites41.2%
Taylor expanded in x around 0
Applied rewrites23.5%
Final simplification23.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024338
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))