
(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 25 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
(-
(* (- (* c a) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))))
(if (<= t_1 INFINITY)
t_1
(fma
(* c a)
j
(fma (fma (- x) a (* i b)) t (* (fma (- c) b (* 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 = (((c * a) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma((c * a), j, fma(fma(-x, a, (i * b)), t, (fma(-c, b, (y * x)) * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(Float64(c * a), j, fma(fma(Float64(-x), a, Float64(i * b)), t, Float64(fma(Float64(-c), b, Float64(y * x)) * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - N[(N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(c * a), $MachinePrecision] * j + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot a, j, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 95.7%
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 t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites43.3%
Taylor expanded in y around 0
Applied rewrites55.3%
Final simplification87.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- i) y (* c a))))
(if (<= j -5.6e+160)
(fma (- a) (* t x) (* t_1 j))
(if (<= j 3.1e+79)
(fma
(fma (- z) c (* i t))
b
(fma (fma (- x) t (* j c)) a (* (fma (- j) i (* z x)) y)))
(fma
t_1
j
(fma (fma (- x) a (* i b)) t (* (fma (- c) b (* 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(-i, y, (c * a));
double tmp;
if (j <= -5.6e+160) {
tmp = fma(-a, (t * x), (t_1 * j));
} else if (j <= 3.1e+79) {
tmp = fma(fma(-z, c, (i * t)), b, fma(fma(-x, t, (j * c)), a, (fma(-j, i, (z * x)) * y)));
} else {
tmp = fma(t_1, j, fma(fma(-x, a, (i * b)), t, (fma(-c, b, (y * x)) * z)));
}
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 (j <= -5.6e+160) tmp = fma(Float64(-a), Float64(t * x), Float64(t_1 * j)); elseif (j <= 3.1e+79) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-j), i, Float64(z * x)) * y))); else tmp = fma(t_1, j, fma(fma(Float64(-x), a, Float64(i * b)), t, Float64(fma(Float64(-c), b, Float64(y * x)) * z))); 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[j, -5.6e+160], N[((-a) * N[(t * x), $MachinePrecision] + N[(t$95$1 * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e+79], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * j + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right)\\
\mathbf{if}\;j \leq -5.6 \cdot 10^{+160}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, t\_1 \cdot j\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{+79}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, j, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\right)\\
\end{array}
\end{array}
if j < -5.5999999999999999e160Initial program 63.2%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.8
Applied rewrites76.8%
Taylor expanded in z around 0
Applied rewrites83.7%
if -5.5999999999999999e160 < j < 3.0999999999999999e79Initial program 80.6%
Taylor expanded in y around 0
Applied rewrites86.0%
if 3.0999999999999999e79 < j Initial program 72.3%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites94.4%
Final simplification86.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b 2.9e+61)
(fma
(fma (- i) y (* c a))
j
(fma (fma (- x) a (* i b)) t (* (fma (- c) b (* y x)) z)))
(fma (fma (- z) c (* i t)) b (* (fma (- j) 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 (b <= 2.9e+61) {
tmp = fma(fma(-i, y, (c * a)), j, fma(fma(-x, a, (i * b)), t, (fma(-c, b, (y * x)) * z)));
} else {
tmp = fma(fma(-z, c, (i * t)), b, (fma(-j, i, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= 2.9e+61) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, fma(fma(Float64(-x), a, Float64(i * b)), t, Float64(fma(Float64(-c), b, Float64(y * x)) * z))); else tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(fma(Float64(-j), i, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, 2.9e+61], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.9 \cdot 10^{+61}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if b < 2.9000000000000001e61Initial program 78.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites83.0%
if 2.9000000000000001e61 < b Initial program 72.3%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-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-*.f64N/A
Applied rewrites83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- t) a (* z y)) x (* (fma (- i) y (* c a)) j)))
(t_2 (* (fma (- x) a (* i b)) t)))
(if (<= t -1.4e+96)
t_2
(if (<= t -9e-125)
t_1
(if (<= t 1.7e+59)
(fma (fma (- i) j (* z x)) y (* (fma (- c) z (* i t)) b))
(if (<= t 7.2e+229) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-t, a, (z * y)), x, (fma(-i, y, (c * a)) * j));
double t_2 = fma(-x, a, (i * b)) * t;
double tmp;
if (t <= -1.4e+96) {
tmp = t_2;
} else if (t <= -9e-125) {
tmp = t_1;
} else if (t <= 1.7e+59) {
tmp = fma(fma(-i, j, (z * x)), y, (fma(-c, z, (i * t)) * b));
} else if (t <= 7.2e+229) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)) t_2 = Float64(fma(Float64(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -1.4e+96) tmp = t_2; elseif (t <= -9e-125) tmp = t_1; elseif (t <= 1.7e+59) tmp = fma(fma(Float64(-i), j, Float64(z * x)), y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); elseif (t <= 7.2e+229) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.4e+96], t$95$2, If[LessEqual[t, -9e-125], t$95$1, If[LessEqual[t, 1.7e+59], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e+229], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
t_2 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+96}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+59}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, j, z \cdot x\right), y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{+229}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.4e96 or 7.19999999999999973e229 < t Initial program 61.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6490.3
Applied rewrites90.3%
if -1.4e96 < t < -9.00000000000000024e-125 or 1.70000000000000003e59 < t < 7.19999999999999973e229Initial program 80.2%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.3
Applied rewrites77.3%
if -9.00000000000000024e-125 < t < 1.70000000000000003e59Initial program 82.3%
Taylor expanded in y around 0
Applied rewrites83.4%
Taylor expanded in a around 0
Applied rewrites75.0%
Final simplification78.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- x) t (* j c)) a (* (fma (- i) j (* z x)) y))))
(if (<= y -4.5e-60)
t_1
(if (<= y 2.8e+20)
(fma
(* c a)
j
(fma (fma (- x) a (* i b)) t (* (fma (- c) b (* y x)) z)))
(if (<= y 2e+161)
(fma (fma (- t) a (* z y)) x (* (fma (- i) y (* c a)) 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(fma(-x, t, (j * c)), a, (fma(-i, j, (z * x)) * y));
double tmp;
if (y <= -4.5e-60) {
tmp = t_1;
} else if (y <= 2.8e+20) {
tmp = fma((c * a), j, fma(fma(-x, a, (i * b)), t, (fma(-c, b, (y * x)) * z)));
} else if (y <= 2e+161) {
tmp = fma(fma(-t, a, (z * y)), x, (fma(-i, y, (c * a)) * j));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y)) tmp = 0.0 if (y <= -4.5e-60) tmp = t_1; elseif (y <= 2.8e+20) tmp = fma(Float64(c * a), j, fma(fma(Float64(-x), a, Float64(i * b)), t, Float64(fma(Float64(-c), b, Float64(y * x)) * z))); elseif (y <= 2e+161) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-i), y, Float64(c * a)) * 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[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e-60], t$95$1, If[LessEqual[y, 2.8e+20], N[(N[(c * a), $MachinePrecision] * j + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+161], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+20}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot a, j, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+161}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.50000000000000001e-60 or 2.0000000000000001e161 < y Initial program 68.7%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.3
Applied rewrites69.3%
Taylor expanded in y around 0
Applied rewrites82.0%
if -4.50000000000000001e-60 < y < 2.8e20Initial program 82.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites82.7%
Taylor expanded in y around 0
Applied rewrites79.1%
if 2.8e20 < y < 2.0000000000000001e161Initial program 81.3%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6488.0
Applied rewrites88.0%
Final simplification81.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (* (- j) i) y (* (fma (- c) z (* i t)) b)))
(t_2 (fma (* c a) j (* (fma (- t) a (* z y)) x))))
(if (<= b -1.7e-40)
t_1
(if (<= b -1.9e-232)
t_2
(if (<= b 4.5e-132)
(fma (* (- t) a) x (* (fma (- i) y (* c a)) j))
(if (<= b 5e+31) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma((-j * i), y, (fma(-c, z, (i * t)) * b));
double t_2 = fma((c * a), j, (fma(-t, a, (z * y)) * x));
double tmp;
if (b <= -1.7e-40) {
tmp = t_1;
} else if (b <= -1.9e-232) {
tmp = t_2;
} else if (b <= 4.5e-132) {
tmp = fma((-t * a), x, (fma(-i, y, (c * a)) * j));
} else if (b <= 5e+31) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(Float64(-j) * i), y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)) t_2 = fma(Float64(c * a), j, Float64(fma(Float64(-t), a, Float64(z * y)) * x)) tmp = 0.0 if (b <= -1.7e-40) tmp = t_1; elseif (b <= -1.9e-232) tmp = t_2; elseif (b <= 4.5e-132) tmp = fma(Float64(Float64(-t) * a), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (b <= 5e+31) tmp = t_2; 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), $MachinePrecision] * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * a), $MachinePrecision] * j + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.7e-40], t$95$1, If[LessEqual[b, -1.9e-232], t$95$2, If[LessEqual[b, 4.5e-132], N[(N[((-t) * a), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e+31], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\left(-j\right) \cdot i, y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
t_2 := \mathsf{fma}\left(c \cdot a, j, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{if}\;b \leq -1.7 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-132}:\\
\;\;\;\;\mathsf{fma}\left(\left(-t\right) \cdot a, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;b \leq 5 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.69999999999999992e-40 or 5.00000000000000027e31 < b Initial program 76.1%
Taylor expanded in y around 0
Applied rewrites80.1%
Taylor expanded in a around 0
Applied rewrites73.4%
Taylor expanded in x around 0
Applied rewrites68.9%
if -1.69999999999999992e-40 < b < -1.9000000000000001e-232 or 4.4999999999999999e-132 < b < 5.00000000000000027e31Initial program 75.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites84.8%
Taylor expanded in y around 0
Applied rewrites79.4%
Taylor expanded in b around 0
Applied rewrites68.2%
if -1.9000000000000001e-232 < b < 4.4999999999999999e-132Initial program 83.7%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6483.8
Applied rewrites83.8%
Taylor expanded in y around 0
Applied rewrites79.8%
Final simplification70.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- t) a (* z y)))
(t_2 (fma (fma (- z) c (* i t)) b (* (fma (- j) i (* z x)) y))))
(if (<= b -1.85e-40)
t_2
(if (<= b 9.8e-147)
(fma t_1 x (* (fma (- i) y (* c a)) j))
(if (<= b 1.6e+44) (fma (fma (- z) b (* j a)) c (* t_1 x)) 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(-t, a, (z * y));
double t_2 = fma(fma(-z, c, (i * t)), b, (fma(-j, i, (z * x)) * y));
double tmp;
if (b <= -1.85e-40) {
tmp = t_2;
} else if (b <= 9.8e-147) {
tmp = fma(t_1, x, (fma(-i, y, (c * a)) * j));
} else if (b <= 1.6e+44) {
tmp = fma(fma(-z, b, (j * a)), c, (t_1 * x));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-t), a, Float64(z * y)) t_2 = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(fma(Float64(-j), i, Float64(z * x)) * y)) tmp = 0.0 if (b <= -1.85e-40) tmp = t_2; elseif (b <= 9.8e-147) tmp = fma(t_1, x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (b <= 1.6e+44) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(t_1 * x)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.85e-40], t$95$2, If[LessEqual[b, 9.8e-147], N[(t$95$1 * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e+44], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(t$95$1 * x), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right)\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
\mathbf{if}\;b \leq -1.85 \cdot 10^{-40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{-147}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{+44}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, t\_1 \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.84999999999999999e-40 or 1.60000000000000002e44 < b Initial program 75.9%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-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-*.f64N/A
Applied rewrites75.5%
if -1.84999999999999999e-40 < b < 9.8000000000000001e-147Initial program 80.5%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.9
Applied rewrites81.9%
if 9.8000000000000001e-147 < b < 1.60000000000000002e44Initial program 75.2%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites82.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- t) a (* z y)))
(t_2 (fma (fma (- i) j (* z x)) y (* (fma (- c) z (* i t)) b))))
(if (<= b -1.85e-40)
t_2
(if (<= b 9.8e-147)
(fma t_1 x (* (fma (- i) y (* c a)) j))
(if (<= b 9e+30) (fma (fma (- z) b (* j a)) c (* t_1 x)) 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(-t, a, (z * y));
double t_2 = fma(fma(-i, j, (z * x)), y, (fma(-c, z, (i * t)) * b));
double tmp;
if (b <= -1.85e-40) {
tmp = t_2;
} else if (b <= 9.8e-147) {
tmp = fma(t_1, x, (fma(-i, y, (c * a)) * j));
} else if (b <= 9e+30) {
tmp = fma(fma(-z, b, (j * a)), c, (t_1 * x));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-t), a, Float64(z * y)) t_2 = fma(fma(Float64(-i), j, Float64(z * x)), y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)) tmp = 0.0 if (b <= -1.85e-40) tmp = t_2; elseif (b <= 9.8e-147) tmp = fma(t_1, x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (b <= 9e+30) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(t_1 * x)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.85e-40], t$95$2, If[LessEqual[b, 9.8e-147], N[(t$95$1 * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e+30], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(t$95$1 * x), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right)\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-i, j, z \cdot x\right), y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{if}\;b \leq -1.85 \cdot 10^{-40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{-147}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+30}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, t\_1 \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.84999999999999999e-40 or 8.9999999999999999e30 < b Initial program 76.1%
Taylor expanded in y around 0
Applied rewrites80.1%
Taylor expanded in a around 0
Applied rewrites73.4%
if -1.84999999999999999e-40 < b < 9.8000000000000001e-147Initial program 80.5%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.9
Applied rewrites81.9%
if 9.8000000000000001e-147 < b < 8.9999999999999999e30Initial program 74.6%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites84.9%
Final simplification78.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- a) (* t x) (* (fma (- i) y (* c a)) j)))
(t_2 (fma (- i) j (* z x))))
(if (<= j -1.12e+154)
t_1
(if (<= j 4.2e-169)
(fma t_2 y (* (fma (- c) z (* i t)) b))
(if (<= j 1300000.0) (fma (fma (- x) t (* j c)) a (* t_2 y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, (t * x), (fma(-i, y, (c * a)) * j));
double t_2 = fma(-i, j, (z * x));
double tmp;
if (j <= -1.12e+154) {
tmp = t_1;
} else if (j <= 4.2e-169) {
tmp = fma(t_2, y, (fma(-c, z, (i * t)) * b));
} else if (j <= 1300000.0) {
tmp = fma(fma(-x, t, (j * c)), a, (t_2 * y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-a), Float64(t * x), Float64(fma(Float64(-i), y, Float64(c * a)) * j)) t_2 = fma(Float64(-i), j, Float64(z * x)) tmp = 0.0 if (j <= -1.12e+154) tmp = t_1; elseif (j <= 4.2e-169) tmp = fma(t_2, y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); elseif (j <= 1300000.0) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(t_2 * y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * N[(t * x), $MachinePrecision] + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.12e+154], t$95$1, If[LessEqual[j, 4.2e-169], N[(t$95$2 * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1300000.0], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t \cdot x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
t_2 := \mathsf{fma}\left(-i, j, z \cdot x\right)\\
\mathbf{if}\;j \leq -1.12 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{-169}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{elif}\;j \leq 1300000:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, t\_2 \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.11999999999999994e154 or 1.3e6 < j Initial program 71.2%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.8
Applied rewrites72.8%
Taylor expanded in z around 0
Applied rewrites79.2%
if -1.11999999999999994e154 < j < 4.2000000000000001e-169Initial program 82.3%
Taylor expanded in y around 0
Applied rewrites86.6%
Taylor expanded in a around 0
Applied rewrites73.4%
if 4.2000000000000001e-169 < j < 1.3e6Initial program 69.1%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.6
Applied rewrites72.6%
Taylor expanded in y around 0
Applied rewrites83.1%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (* (- j) i) y (* (fma (- c) z (* i t)) b))))
(if (<= b -1.66e+61)
t_1
(if (<= b 7.8e-132)
(fma (fma (- x) t (* j c)) a (* (fma (- i) j (* z x)) y))
(if (<= b 5e+31) (fma (* c a) j (* (fma (- t) a (* 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((-j * i), y, (fma(-c, z, (i * t)) * b));
double tmp;
if (b <= -1.66e+61) {
tmp = t_1;
} else if (b <= 7.8e-132) {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-i, j, (z * x)) * y));
} else if (b <= 5e+31) {
tmp = fma((c * a), j, (fma(-t, a, (z * y)) * x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(Float64(-j) * i), y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)) tmp = 0.0 if (b <= -1.66e+61) tmp = t_1; elseif (b <= 7.8e-132) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); elseif (b <= 5e+31) tmp = fma(Float64(c * a), j, Float64(fma(Float64(-t), a, 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[((-j) * i), $MachinePrecision] * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.66e+61], t$95$1, If[LessEqual[b, 7.8e-132], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e+31], N[(N[(c * a), $MachinePrecision] * j + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\left(-j\right) \cdot i, y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{if}\;b \leq -1.66 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{-132}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{elif}\;b \leq 5 \cdot 10^{+31}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot a, j, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.66000000000000004e61 or 5.00000000000000027e31 < b Initial program 73.6%
Taylor expanded in y around 0
Applied rewrites77.5%
Taylor expanded in a around 0
Applied rewrites73.1%
Taylor expanded in x around 0
Applied rewrites69.6%
if -1.66000000000000004e61 < b < 7.79999999999999964e-132Initial program 82.5%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6479.3
Applied rewrites79.3%
Taylor expanded in y around 0
Applied rewrites78.6%
if 7.79999999999999964e-132 < b < 5.00000000000000027e31Initial program 73.3%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites86.7%
Taylor expanded in y around 0
Applied rewrites86.8%
Taylor expanded in b around 0
Applied rewrites69.4%
Final simplification73.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -6e+103)
(fma (* c a) j (* (fma (- t) a (* z y)) x))
(if (<= x 3.3e-183)
(+ (* (* b t) i) (* (- (* c a) (* i y)) j))
(if (<= x 5.4e-9)
(fma (* (- j) i) y (* (fma (- c) z (* i t)) b))
(* (fma (- a) t (* z y)) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -6e+103) {
tmp = fma((c * a), j, (fma(-t, a, (z * y)) * x));
} else if (x <= 3.3e-183) {
tmp = ((b * t) * i) + (((c * a) - (i * y)) * j);
} else if (x <= 5.4e-9) {
tmp = fma((-j * i), y, (fma(-c, z, (i * t)) * b));
} else {
tmp = fma(-a, t, (z * y)) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -6e+103) tmp = fma(Float64(c * a), j, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); elseif (x <= 3.3e-183) tmp = Float64(Float64(Float64(b * t) * i) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)); elseif (x <= 5.4e-9) tmp = fma(Float64(Float64(-j) * i), y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); else tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -6e+103], N[(N[(c * a), $MachinePrecision] * j + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.3e-183], N[(N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-9], N[(N[((-j) * i), $MachinePrecision] * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{+103}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot a, j, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-183}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(\left(-j\right) \cdot i, y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if x < -6e103Initial program 74.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites68.0%
Taylor expanded in y around 0
Applied rewrites70.5%
Taylor expanded in b around 0
Applied rewrites78.3%
if -6e103 < x < 3.3e-183Initial program 79.0%
Taylor expanded in i around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6464.3
Applied rewrites64.3%
if 3.3e-183 < x < 5.4000000000000004e-9Initial program 72.3%
Taylor expanded in y around 0
Applied rewrites92.2%
Taylor expanded in a around 0
Applied rewrites74.2%
Taylor expanded in x around 0
Applied rewrites71.7%
if 5.4000000000000004e-9 < x Initial program 79.1%
Taylor expanded in x around -inf
Applied rewrites82.5%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6472.9
Applied rewrites72.9%
Final simplification69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -5.8e+104)
(fma (* c a) j (* (fma (- t) a (* z y)) x))
(if (<= x -1.15e-130)
(fma (- a) (* t x) (* (fma (- i) y (* c a)) j))
(if (<= x 5.4e-9)
(fma (* (- j) i) y (* (fma (- c) z (* i t)) b))
(* (fma (- a) t (* z y)) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -5.8e+104) {
tmp = fma((c * a), j, (fma(-t, a, (z * y)) * x));
} else if (x <= -1.15e-130) {
tmp = fma(-a, (t * x), (fma(-i, y, (c * a)) * j));
} else if (x <= 5.4e-9) {
tmp = fma((-j * i), y, (fma(-c, z, (i * t)) * b));
} else {
tmp = fma(-a, t, (z * y)) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -5.8e+104) tmp = fma(Float64(c * a), j, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); elseif (x <= -1.15e-130) tmp = fma(Float64(-a), Float64(t * x), Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (x <= 5.4e-9) tmp = fma(Float64(Float64(-j) * i), y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); else tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -5.8e+104], N[(N[(c * a), $MachinePrecision] * j + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.15e-130], N[((-a) * N[(t * x), $MachinePrecision] + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-9], N[(N[((-j) * i), $MachinePrecision] * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.8 \cdot 10^{+104}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot a, j, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{-130}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(\left(-j\right) \cdot i, y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if x < -5.7999999999999997e104Initial program 74.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites68.0%
Taylor expanded in y around 0
Applied rewrites70.5%
Taylor expanded in b around 0
Applied rewrites78.3%
if -5.7999999999999997e104 < x < -1.1500000000000001e-130Initial program 84.1%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.2
Applied rewrites70.2%
Taylor expanded in z around 0
Applied rewrites63.3%
if -1.1500000000000001e-130 < x < 5.4000000000000004e-9Initial program 74.5%
Taylor expanded in y around 0
Applied rewrites86.5%
Taylor expanded in a around 0
Applied rewrites67.4%
Taylor expanded in x around 0
Applied rewrites65.6%
if 5.4000000000000004e-9 < x Initial program 79.1%
Taylor expanded in x around -inf
Applied rewrites82.5%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6472.9
Applied rewrites72.9%
Final simplification69.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* i b)) t)))
(if (<= t -9.2e+95)
t_1
(if (<= t -9.2e+19)
(* (fma (- i) y (* c a)) j)
(if (<= t -2.3e-114)
(fma (* c a) j (* (fma (- t) a (* z y)) x))
(if (<= t -1.25e-270)
(* (fma (- j) i (* z x)) y)
(if (<= t 6.6e+26) (* (fma (- c) b (* 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(-x, a, (i * b)) * t;
double tmp;
if (t <= -9.2e+95) {
tmp = t_1;
} else if (t <= -9.2e+19) {
tmp = fma(-i, y, (c * a)) * j;
} else if (t <= -2.3e-114) {
tmp = fma((c * a), j, (fma(-t, a, (z * y)) * x));
} else if (t <= -1.25e-270) {
tmp = fma(-j, i, (z * x)) * y;
} else if (t <= 6.6e+26) {
tmp = fma(-c, b, (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(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -9.2e+95) tmp = t_1; elseif (t <= -9.2e+19) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); elseif (t <= -2.3e-114) tmp = fma(Float64(c * a), j, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); elseif (t <= -1.25e-270) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); elseif (t <= 6.6e+26) tmp = Float64(fma(Float64(-c), b, 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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -9.2e+95], t$95$1, If[LessEqual[t, -9.2e+19], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, -2.3e-114], N[(N[(c * a), $MachinePrecision] * j + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.25e-270], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 6.6e+26], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9.2 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{-114}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot a, j, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-270}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+26}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.19999999999999989e95 or 6.59999999999999987e26 < t Initial program 71.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.6
Applied rewrites76.6%
if -9.19999999999999989e95 < t < -9.2e19Initial program 79.2%
Taylor expanded in x around -inf
Applied rewrites74.6%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/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-*.f6463.8
Applied rewrites63.8%
if -9.2e19 < t < -2.2999999999999999e-114Initial program 69.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites76.3%
Taylor expanded in y around 0
Applied rewrites72.8%
Taylor expanded in b around 0
Applied rewrites70.5%
if -2.2999999999999999e-114 < t < -1.2499999999999999e-270Initial program 84.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.1
Applied rewrites65.1%
if -1.2499999999999999e-270 < t < 6.59999999999999987e26Initial program 84.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.7
Applied rewrites62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* i b)) t)))
(if (<= t -9.2e+95)
t_1
(if (<= t -9.2e-125)
(fma (- a) (* t x) (* (fma (- i) y (* c a)) j))
(if (<= t -1.25e-270)
(* (fma (- j) i (* z x)) y)
(if (<= t 6.6e+26) (* (fma (- c) b (* 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(-x, a, (i * b)) * t;
double tmp;
if (t <= -9.2e+95) {
tmp = t_1;
} else if (t <= -9.2e-125) {
tmp = fma(-a, (t * x), (fma(-i, y, (c * a)) * j));
} else if (t <= -1.25e-270) {
tmp = fma(-j, i, (z * x)) * y;
} else if (t <= 6.6e+26) {
tmp = fma(-c, b, (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(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -9.2e+95) tmp = t_1; elseif (t <= -9.2e-125) tmp = fma(Float64(-a), Float64(t * x), Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (t <= -1.25e-270) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); elseif (t <= 6.6e+26) tmp = Float64(fma(Float64(-c), b, 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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -9.2e+95], t$95$1, If[LessEqual[t, -9.2e-125], N[((-a) * N[(t * x), $MachinePrecision] + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.25e-270], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 6.6e+26], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9.2 \cdot 10^{-125}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-270}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+26}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.19999999999999989e95 or 6.59999999999999987e26 < t Initial program 71.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.6
Applied rewrites76.6%
if -9.19999999999999989e95 < t < -9.1999999999999996e-125Initial program 74.1%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/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-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6474.7
Applied rewrites74.7%
Taylor expanded in z around 0
Applied rewrites66.6%
if -9.1999999999999996e-125 < t < -1.2499999999999999e-270Initial program 83.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.8
Applied rewrites65.8%
if -1.2499999999999999e-270 < t < 6.59999999999999987e26Initial program 84.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.7
Applied rewrites62.7%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* i b)) t)))
(if (<= t -9.2e+95)
t_1
(if (<= t -9.5e-125)
(* (fma (- i) y (* c a)) j)
(if (<= t -1.25e-270)
(* (fma (- j) i (* z x)) y)
(if (<= t 6.6e+26) (* (fma (- c) b (* 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(-x, a, (i * b)) * t;
double tmp;
if (t <= -9.2e+95) {
tmp = t_1;
} else if (t <= -9.5e-125) {
tmp = fma(-i, y, (c * a)) * j;
} else if (t <= -1.25e-270) {
tmp = fma(-j, i, (z * x)) * y;
} else if (t <= 6.6e+26) {
tmp = fma(-c, b, (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(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -9.2e+95) tmp = t_1; elseif (t <= -9.5e-125) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); elseif (t <= -1.25e-270) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); elseif (t <= 6.6e+26) tmp = Float64(fma(Float64(-c), b, 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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -9.2e+95], t$95$1, If[LessEqual[t, -9.5e-125], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, -1.25e-270], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 6.6e+26], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-125}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-270}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+26}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.19999999999999989e95 or 6.59999999999999987e26 < t Initial program 71.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.6
Applied rewrites76.6%
if -9.19999999999999989e95 < t < -9.50000000000000031e-125Initial program 74.1%
Taylor expanded in x around -inf
Applied rewrites78.5%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/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-*.f6457.2
Applied rewrites57.2%
if -9.50000000000000031e-125 < t < -1.2499999999999999e-270Initial program 83.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.8
Applied rewrites65.8%
if -1.2499999999999999e-270 < t < 6.59999999999999987e26Initial program 84.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.7
Applied rewrites62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -3.9e+79)
(* (* z y) x)
(if (<= z -9.8e-160)
(* (* i t) b)
(if (<= z -5.2e-287)
(* (* (- y) j) i)
(if (<= z 9.2e-9) (* (* (- t) a) x) (* (* (- 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 (z <= -3.9e+79) {
tmp = (z * y) * x;
} else if (z <= -9.8e-160) {
tmp = (i * t) * b;
} else if (z <= -5.2e-287) {
tmp = (-y * j) * i;
} else if (z <= 9.2e-9) {
tmp = (-t * a) * x;
} else {
tmp = (-z * c) * 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 (z <= (-3.9d+79)) then
tmp = (z * y) * x
else if (z <= (-9.8d-160)) then
tmp = (i * t) * b
else if (z <= (-5.2d-287)) then
tmp = (-y * j) * i
else if (z <= 9.2d-9) then
tmp = (-t * a) * x
else
tmp = (-z * c) * 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 (z <= -3.9e+79) {
tmp = (z * y) * x;
} else if (z <= -9.8e-160) {
tmp = (i * t) * b;
} else if (z <= -5.2e-287) {
tmp = (-y * j) * i;
} else if (z <= 9.2e-9) {
tmp = (-t * a) * x;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.9e+79: tmp = (z * y) * x elif z <= -9.8e-160: tmp = (i * t) * b elif z <= -5.2e-287: tmp = (-y * j) * i elif z <= 9.2e-9: tmp = (-t * a) * x else: tmp = (-z * c) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.9e+79) tmp = Float64(Float64(z * y) * x); elseif (z <= -9.8e-160) tmp = Float64(Float64(i * t) * b); elseif (z <= -5.2e-287) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (z <= 9.2e-9) tmp = Float64(Float64(Float64(-t) * a) * x); else tmp = Float64(Float64(Float64(-z) * c) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.9e+79) tmp = (z * y) * x; elseif (z <= -9.8e-160) tmp = (i * t) * b; elseif (z <= -5.2e-287) tmp = (-y * j) * i; elseif (z <= 9.2e-9) tmp = (-t * a) * x; else tmp = (-z * c) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.9e+79], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, -9.8e-160], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, -5.2e-287], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[z, 9.2e-9], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+79}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;z \leq -9.8 \cdot 10^{-160}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{-287}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-9}:\\
\;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\end{array}
\end{array}
if z < -3.8999999999999997e79Initial program 77.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.6
Applied rewrites70.6%
Taylor expanded in x around inf
Applied rewrites57.5%
if -3.8999999999999997e79 < z < -9.7999999999999998e-160Initial program 84.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6442.9
Applied rewrites42.9%
Taylor expanded in y around 0
Applied rewrites34.2%
if -9.7999999999999998e-160 < z < -5.1999999999999999e-287Initial program 86.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6465.9
Applied rewrites65.9%
Taylor expanded in y around inf
Applied rewrites45.9%
if -5.1999999999999999e-287 < z < 9.1999999999999997e-9Initial program 78.0%
Taylor expanded in x around -inf
Applied rewrites78.7%
Taylor expanded in a around inf
Applied rewrites46.9%
Taylor expanded in x around inf
Applied rewrites33.5%
if 9.1999999999999997e-9 < z Initial program 66.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in x around 0
Applied rewrites51.1%
Final simplification43.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -3.5e+79)
(* (* z y) x)
(if (<= z -1.35e-223)
(* (* b t) i)
(if (<= z 9.2e-9) (* (* (- t) a) x) (* (* (- 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 (z <= -3.5e+79) {
tmp = (z * y) * x;
} else if (z <= -1.35e-223) {
tmp = (b * t) * i;
} else if (z <= 9.2e-9) {
tmp = (-t * a) * x;
} else {
tmp = (-z * c) * 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 (z <= (-3.5d+79)) then
tmp = (z * y) * x
else if (z <= (-1.35d-223)) then
tmp = (b * t) * i
else if (z <= 9.2d-9) then
tmp = (-t * a) * x
else
tmp = (-z * c) * 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 (z <= -3.5e+79) {
tmp = (z * y) * x;
} else if (z <= -1.35e-223) {
tmp = (b * t) * i;
} else if (z <= 9.2e-9) {
tmp = (-t * a) * x;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.5e+79: tmp = (z * y) * x elif z <= -1.35e-223: tmp = (b * t) * i elif z <= 9.2e-9: tmp = (-t * a) * x else: tmp = (-z * c) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.5e+79) tmp = Float64(Float64(z * y) * x); elseif (z <= -1.35e-223) tmp = Float64(Float64(b * t) * i); elseif (z <= 9.2e-9) tmp = Float64(Float64(Float64(-t) * a) * x); else tmp = Float64(Float64(Float64(-z) * c) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.5e+79) tmp = (z * y) * x; elseif (z <= -1.35e-223) tmp = (b * t) * i; elseif (z <= 9.2e-9) tmp = (-t * a) * x; else tmp = (-z * c) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.5e+79], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, -1.35e-223], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[z, 9.2e-9], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+79}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-223}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-9}:\\
\;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\end{array}
\end{array}
if z < -3.4999999999999998e79Initial program 77.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.6
Applied rewrites70.6%
Taylor expanded in x around inf
Applied rewrites57.5%
if -3.4999999999999998e79 < z < -1.34999999999999994e-223Initial program 85.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6449.7
Applied rewrites49.7%
Taylor expanded in y around 0
Applied rewrites31.3%
if -1.34999999999999994e-223 < z < 9.1999999999999997e-9Initial program 78.4%
Taylor expanded in x around -inf
Applied rewrites80.2%
Taylor expanded in a around inf
Applied rewrites45.7%
Taylor expanded in x around inf
Applied rewrites32.9%
if 9.1999999999999997e-9 < z Initial program 66.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in x around 0
Applied rewrites51.1%
Final simplification41.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -6e+103)
t_1
(if (<= x 5.2e-25) (* (fma (- i) y (* c a)) 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(-a, t, (z * y)) * x;
double tmp;
if (x <= -6e+103) {
tmp = t_1;
} else if (x <= 5.2e-25) {
tmp = fma(-i, y, (c * a)) * j;
} 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 <= -6e+103) tmp = t_1; elseif (x <= 5.2e-25) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * 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[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6e+103], t$95$1, If[LessEqual[x, 5.2e-25], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $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 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-25}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -6e103 or 5.2e-25 < x Initial program 78.3%
Taylor expanded in x around -inf
Applied rewrites82.2%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.5
Applied rewrites71.5%
if -6e103 < x < 5.2e-25Initial program 76.7%
Taylor expanded in x around -inf
Applied rewrites76.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/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-*.f6448.8
Applied rewrites48.8%
Final simplification58.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= t -8e-142)
t_1
(if (<= t 8.8e+26) (* (fma (- c) b (* 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, t, (z * y)) * x;
double tmp;
if (t <= -8e-142) {
tmp = t_1;
} else if (t <= 8.8e+26) {
tmp = fma(-c, b, (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), t, Float64(z * y)) * x) tmp = 0.0 if (t <= -8e-142) tmp = t_1; elseif (t <= 8.8e+26) tmp = Float64(fma(Float64(-c), b, 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) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[t, -8e-142], t$95$1, If[LessEqual[t, 8.8e+26], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $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}\;t \leq -8 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+26}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.0000000000000003e-142 or 8.80000000000000028e26 < t Initial program 72.1%
Taylor expanded in x around -inf
Applied rewrites79.7%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6448.1
Applied rewrites48.1%
if -8.0000000000000003e-142 < t < 8.80000000000000028e26Initial program 84.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.9
Applied rewrites59.9%
Final simplification53.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -4.5e+245) (* (* (- y) j) i) (if (<= i 8.8e-16) (* (fma (- a) t (* z y)) x) (* (* 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 (i <= -4.5e+245) {
tmp = (-y * j) * i;
} else if (i <= 8.8e-16) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = (b * t) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -4.5e+245) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (i <= 8.8e-16) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); else tmp = Float64(Float64(b * t) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -4.5e+245], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 8.8e-16], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.5 \cdot 10^{+245}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;i \leq 8.8 \cdot 10^{-16}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if i < -4.5e245Initial program 65.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6462.0
Applied rewrites62.0%
Taylor expanded in y around inf
Applied rewrites47.8%
if -4.5e245 < i < 8.80000000000000001e-16Initial program 82.5%
Taylor expanded in x around -inf
Applied rewrites80.1%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6453.0
Applied rewrites53.0%
if 8.80000000000000001e-16 < i Initial program 67.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6465.2
Applied rewrites65.2%
Taylor expanded in y around 0
Applied rewrites44.0%
Final simplification50.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -3.5e+79) (* (* z y) x) (if (<= z 210000.0) (* (* b t) i) (* (* (- 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 (z <= -3.5e+79) {
tmp = (z * y) * x;
} else if (z <= 210000.0) {
tmp = (b * t) * i;
} else {
tmp = (-z * c) * 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 (z <= (-3.5d+79)) then
tmp = (z * y) * x
else if (z <= 210000.0d0) then
tmp = (b * t) * i
else
tmp = (-z * c) * 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 (z <= -3.5e+79) {
tmp = (z * y) * x;
} else if (z <= 210000.0) {
tmp = (b * t) * i;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.5e+79: tmp = (z * y) * x elif z <= 210000.0: tmp = (b * t) * i else: tmp = (-z * c) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.5e+79) tmp = Float64(Float64(z * y) * x); elseif (z <= 210000.0) tmp = Float64(Float64(b * t) * i); else tmp = Float64(Float64(Float64(-z) * c) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.5e+79) tmp = (z * y) * x; elseif (z <= 210000.0) tmp = (b * t) * i; else tmp = (-z * c) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.5e+79], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 210000.0], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+79}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;z \leq 210000:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\end{array}
\end{array}
if z < -3.4999999999999998e79Initial program 77.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.6
Applied rewrites70.6%
Taylor expanded in x around inf
Applied rewrites57.5%
if -3.4999999999999998e79 < z < 2.1e5Initial program 80.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6447.0
Applied rewrites47.0%
Taylor expanded in y around 0
Applied rewrites27.7%
if 2.1e5 < z Initial program 67.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
Taylor expanded in x around 0
Applied rewrites51.9%
Final simplification38.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -59000000000.0) (* (* i t) b) (if (<= t 3.2e+29) (* (* z y) x) (* (* 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 (t <= -59000000000.0) {
tmp = (i * t) * b;
} else if (t <= 3.2e+29) {
tmp = (z * y) * x;
} else {
tmp = (b * t) * 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 (t <= (-59000000000.0d0)) then
tmp = (i * t) * b
else if (t <= 3.2d+29) then
tmp = (z * y) * x
else
tmp = (b * t) * 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 (t <= -59000000000.0) {
tmp = (i * t) * b;
} else if (t <= 3.2e+29) {
tmp = (z * y) * x;
} else {
tmp = (b * t) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -59000000000.0: tmp = (i * t) * b elif t <= 3.2e+29: tmp = (z * y) * x else: tmp = (b * t) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -59000000000.0) tmp = Float64(Float64(i * t) * b); elseif (t <= 3.2e+29) tmp = Float64(Float64(z * y) * x); else tmp = Float64(Float64(b * t) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -59000000000.0) tmp = (i * t) * b; elseif (t <= 3.2e+29) tmp = (z * y) * x; else tmp = (b * t) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -59000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 3.2e+29], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -59000000000:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+29}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if t < -5.9e10Initial program 71.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6448.4
Applied rewrites48.4%
Taylor expanded in y around 0
Applied rewrites41.7%
if -5.9e10 < t < 3.19999999999999987e29Initial program 81.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.5
Applied rewrites53.5%
Taylor expanded in x around inf
Applied rewrites29.5%
if 3.19999999999999987e29 < t Initial program 74.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6447.2
Applied rewrites47.2%
Taylor expanded in y around 0
Applied rewrites40.4%
Final simplification34.9%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* i t) b))) (if (<= t -59000000000.0) t_1 (if (<= t 3.2e+29) (* (* 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 = (i * t) * b;
double tmp;
if (t <= -59000000000.0) {
tmp = t_1;
} else if (t <= 3.2e+29) {
tmp = (z * y) * x;
} 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 * t) * b
if (t <= (-59000000000.0d0)) then
tmp = t_1
else if (t <= 3.2d+29) then
tmp = (z * y) * x
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 * t) * b;
double tmp;
if (t <= -59000000000.0) {
tmp = t_1;
} else if (t <= 3.2e+29) {
tmp = (z * y) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * t) * b tmp = 0 if t <= -59000000000.0: tmp = t_1 elif t <= 3.2e+29: tmp = (z * y) * x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * t) * b) tmp = 0.0 if (t <= -59000000000.0) tmp = t_1; elseif (t <= 3.2e+29) tmp = Float64(Float64(z * y) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * t) * b; tmp = 0.0; if (t <= -59000000000.0) tmp = t_1; elseif (t <= 3.2e+29) tmp = (z * y) * x; 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 * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -59000000000.0], t$95$1, If[LessEqual[t, 3.2e+29], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t\right) \cdot b\\
\mathbf{if}\;t \leq -59000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+29}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.9e10 or 3.19999999999999987e29 < t Initial program 72.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-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-*.f6447.8
Applied rewrites47.8%
Taylor expanded in y around 0
Applied rewrites38.7%
if -5.9e10 < t < 3.19999999999999987e29Initial program 81.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.5
Applied rewrites53.5%
Taylor expanded in x around inf
Applied rewrites29.5%
Final simplification33.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -1.95e-193) (* (* z y) x) (* (* 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 (y <= -1.95e-193) {
tmp = (z * y) * x;
} 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 (y <= (-1.95d-193)) then
tmp = (z * y) * x
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 (y <= -1.95e-193) {
tmp = (z * y) * x;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.95e-193: tmp = (z * y) * x else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.95e-193) tmp = Float64(Float64(z * y) * x); 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 (y <= -1.95e-193) tmp = (z * y) * x; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.95e-193], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{-193}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if y < -1.9499999999999999e-193Initial program 71.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.0
Applied rewrites41.0%
Taylor expanded in x around inf
Applied rewrites30.0%
if -1.9499999999999999e-193 < y Initial program 81.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6437.7
Applied rewrites37.7%
Taylor expanded in x around inf
Applied rewrites17.3%
Applied rewrites20.5%
Final simplification24.4%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z y) x))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * y) * x;
}
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 = (z * y) * x
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 (z * y) * x;
}
def code(x, y, z, t, a, b, c, i, j): return (z * y) * x
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * y) * x) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * y) * x; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot y\right) \cdot x
\end{array}
Initial program 77.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6439.0
Applied rewrites39.0%
Taylor expanded in x around inf
Applied rewrites22.5%
Final simplification22.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 2024308
(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)))))