
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y)))
(if (<= y -8.5e+113)
(fma (fma (- a) x (* j c)) t t_1)
(if (<= y 9e-115)
(fma (fma (- z) c (* i a)) b (* (fma (- x) a (* j c)) t))
(if (<= y 5.7e+206)
(fma
(fma (- x) t (* i b))
a
(fma (fma (- b) c (* y x)) z (* (fma (- i) y (* c t)) j)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double tmp;
if (y <= -8.5e+113) {
tmp = fma(fma(-a, x, (j * c)), t, t_1);
} else if (y <= 9e-115) {
tmp = fma(fma(-z, c, (i * a)), b, (fma(-x, a, (j * c)) * t));
} else if (y <= 5.7e+206) {
tmp = fma(fma(-x, t, (i * b)), a, fma(fma(-b, c, (y * x)), z, (fma(-i, y, (c * t)) * j)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (y <= -8.5e+113) tmp = fma(fma(Float64(-a), x, Float64(j * c)), t, t_1); elseif (y <= 9e-115) tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-x), a, Float64(j * c)) * t)); elseif (y <= 5.7e+206) tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-i), y, Float64(c * t)) * j))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -8.5e+113], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + t$95$1), $MachinePrecision], If[LessEqual[y, 9e-115], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.7e+206], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+113}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, t\_1\right)\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-115}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
\mathbf{elif}\;y \leq 5.7 \cdot 10^{+206}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.5000000000000001e113Initial program 56.1%
Taylor expanded in y around 0
Applied rewrites78.9%
Taylor expanded in b around 0
Applied rewrites83.8%
if -8.5000000000000001e113 < y < 9.00000000000000046e-115Initial program 76.4%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites80.7%
if 9.00000000000000046e-115 < y < 5.6999999999999998e206Initial program 71.4%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
associate-*r*N/A
associate-*r*N/A
distribute-lft-out--N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-out--N/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites87.1%
if 5.6999999999999998e206 < y Initial program 45.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6490.0
Applied rewrites90.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* c z) (* i a)))) (t_2 (* j (- (* c t) (* i y)))))
(if (<= (+ (- (* x (- (* y z) (* t a))) t_1) t_2) INFINITY)
(+ (- (/ x (pow (fma (- a) t (* z y)) -1.0)) t_1) t_2)
(fma (fma (- a) x (* j c)) t (* (fma (- i) j (* z x)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((c * z) - (i * a));
double t_2 = j * ((c * t) - (i * y));
double tmp;
if ((((x * ((y * z) - (t * a))) - t_1) + t_2) <= ((double) INFINITY)) {
tmp = ((x / pow(fma(-a, t, (z * y)), -1.0)) - t_1) + t_2;
} else {
tmp = fma(fma(-a, x, (j * c)), t, (fma(-i, j, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(c * z) - Float64(i * a))) t_2 = Float64(j * Float64(Float64(c * t) - Float64(i * y))) tmp = 0.0 if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - t_1) + t_2) <= Inf) tmp = Float64(Float64(Float64(x / (fma(Float64(-a), t, Float64(z * y)) ^ -1.0)) - t_1) + t_2); else tmp = fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision], Infinity], N[(N[(N[(x / N[Power[N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(c \cdot z - i \cdot a\right)\\
t_2 := j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - t\_1\right) + t\_2 \leq \infty:\\
\;\;\;\;\left(\frac{x}{{\left(\mathsf{fma}\left(-a, t, z \cdot y\right)\right)}^{-1}} - t\_1\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.6%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6489.7
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6489.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6489.7
Applied rewrites89.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around 0
Applied rewrites44.8%
Taylor expanded in b around 0
Applied rewrites60.4%
Final simplification83.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y))))))
(if (<= t_1 INFINITY)
t_1
(fma (fma (- a) x (* j c)) t (* (fma (- i) j (* z x)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-a, x, (j * c)), t, (fma(-i, j, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around 0
Applied rewrites44.8%
Taylor expanded in b around 0
Applied rewrites60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) y (* c t)) j)))
(if (<= j 4.5e-78)
(fma
(fma (- z) c (* i a))
b
(fma (fma (- x) a (* j c)) t (* (fma (- i) j (* z x)) y)))
(if (<= j 4.4e+186)
(fma (fma (- x) t (* i b)) a (fma (fma (- b) c (* y x)) z t_1))
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(-i, y, (c * t)) * j;
double tmp;
if (j <= 4.5e-78) {
tmp = fma(fma(-z, c, (i * a)), b, fma(fma(-x, a, (j * c)), t, (fma(-i, j, (z * x)) * y)));
} else if (j <= 4.4e+186) {
tmp = fma(fma(-x, t, (i * b)), a, fma(fma(-b, c, (y * x)), z, t_1));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), y, Float64(c * t)) * j) tmp = 0.0 if (j <= 4.5e-78) tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, fma(fma(Float64(-x), a, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y))); elseif (j <= 4.4e+186) tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, fma(fma(Float64(-b), c, Float64(y * x)), z, t_1)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, 4.5e-78], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e+186], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + t$95$1), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{if}\;j \leq 4.5 \cdot 10^{-78}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{+186}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < 4.5e-78Initial program 70.6%
Taylor expanded in y around 0
Applied rewrites83.2%
if 4.5e-78 < j < 4.3999999999999997e186Initial program 66.7%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
associate-*r*N/A
associate-*r*N/A
distribute-lft-out--N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-out--N/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites83.5%
if 4.3999999999999997e186 < j Initial program 67.7%
Taylor expanded in y around 0
Applied rewrites64.6%
Taylor expanded in j around inf
Applied rewrites82.2%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- a) x (* j c)) t (* (fma (- i) j (* z x)) y))))
(if (<= y -8.5e+113)
t_1
(if (<= y 1.5e-82)
(fma (fma (- z) c (* i a)) b (* (fma (- x) a (* j c)) t))
(if (<= y 4.1e+34)
(fma (fma (- b) c (* x y)) z (* (fma (- i) y (* t c)) 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(-a, x, (j * c)), t, (fma(-i, j, (z * x)) * y));
double tmp;
if (y <= -8.5e+113) {
tmp = t_1;
} else if (y <= 1.5e-82) {
tmp = fma(fma(-z, c, (i * a)), b, (fma(-x, a, (j * c)) * t));
} else if (y <= 4.1e+34) {
tmp = fma(fma(-b, c, (x * y)), z, (fma(-i, y, (t * c)) * j));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)) tmp = 0.0 if (y <= -8.5e+113) tmp = t_1; elseif (y <= 1.5e-82) tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-x), a, Float64(j * c)) * t)); elseif (y <= 4.1e+34) tmp = fma(fma(Float64(-b), c, Float64(x * y)), z, Float64(fma(Float64(-i), y, Float64(t * c)) * 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) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.5e+113], t$95$1, If[LessEqual[y, 1.5e-82], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.1e+34], N[(N[((-b) * c + N[(x * y), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-i) * y + N[(t * c), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-82}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+34}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, x \cdot y\right), z, \mathsf{fma}\left(-i, y, t \cdot c\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.5000000000000001e113 or 4.0999999999999998e34 < y Initial program 59.7%
Taylor expanded in y around 0
Applied rewrites77.5%
Taylor expanded in b around 0
Applied rewrites84.3%
if -8.5000000000000001e113 < y < 1.4999999999999999e-82Initial program 75.3%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites80.0%
if 1.4999999999999999e-82 < y < 4.0999999999999998e34Initial program 69.9%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6470.0
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6470.0
Applied rewrites70.0%
Taylor expanded in a around 0
associate--l+N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites81.4%
Final simplification81.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -8.5e+113) (not (<= y 1.75e-78))) (fma (fma (- a) x (* j c)) t (* (fma (- i) j (* z x)) y)) (fma (fma (- z) c (* i a)) b (* (fma (- x) a (* j c)) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -8.5e+113) || !(y <= 1.75e-78)) {
tmp = fma(fma(-a, x, (j * c)), t, (fma(-i, j, (z * x)) * y));
} else {
tmp = fma(fma(-z, c, (i * a)), b, (fma(-x, a, (j * c)) * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -8.5e+113) || !(y <= 1.75e-78)) tmp = fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); else tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-x), a, Float64(j * c)) * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -8.5e+113], N[Not[LessEqual[y, 1.75e-78]], $MachinePrecision]], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{+113} \lor \neg \left(y \leq 1.75 \cdot 10^{-78}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
\end{array}
\end{array}
if y < -8.5000000000000001e113 or 1.75e-78 < y Initial program 61.7%
Taylor expanded in y around 0
Applied rewrites77.3%
Taylor expanded in b around 0
Applied rewrites79.3%
if -8.5000000000000001e113 < y < 1.75e-78Initial program 75.5%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites80.2%
Final simplification79.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1e+19) (not (<= b 2.6e+134))) (* (fma (- z) c (* i a)) b) (fma (fma (- a) x (* j c)) t (* (fma (- i) j (* z x)) y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1e+19) || !(b <= 2.6e+134)) {
tmp = fma(-z, c, (i * a)) * b;
} else {
tmp = fma(fma(-a, x, (j * c)), t, (fma(-i, j, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1e+19) || !(b <= 2.6e+134)) tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b); else tmp = fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1e+19], N[Not[LessEqual[b, 2.6e+134]], $MachinePrecision]], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+19} \lor \neg \left(b \leq 2.6 \cdot 10^{+134}\right):\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if b < -1e19 or 2.6000000000000002e134 < b Initial program 69.3%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
*-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-*.f6470.0
Applied rewrites70.0%
if -1e19 < b < 2.6000000000000002e134Initial program 69.4%
Taylor expanded in y around 0
Applied rewrites78.3%
Taylor expanded in b around 0
Applied rewrites78.5%
Final simplification75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* j c)) t)) (t_2 (* (fma (- z) c (* i a)) b)))
(if (<= y -4.4e+114)
(* (fma (- z) x (* j i)) (- y))
(if (<= y -3.6e-163)
t_2
(if (<= y 3.1e-202)
t_1
(if (<= y 2.8e-134)
t_2
(if (<= y 9e+69) t_1 (* (fma (- i) j (* z x)) y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, a, (j * c)) * t;
double t_2 = fma(-z, c, (i * a)) * b;
double tmp;
if (y <= -4.4e+114) {
tmp = fma(-z, x, (j * i)) * -y;
} else if (y <= -3.6e-163) {
tmp = t_2;
} else if (y <= 3.1e-202) {
tmp = t_1;
} else if (y <= 2.8e-134) {
tmp = t_2;
} else if (y <= 9e+69) {
tmp = t_1;
} else {
tmp = fma(-i, j, (z * x)) * y;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), a, Float64(j * c)) * t) t_2 = Float64(fma(Float64(-z), c, Float64(i * a)) * b) tmp = 0.0 if (y <= -4.4e+114) tmp = Float64(fma(Float64(-z), x, Float64(j * i)) * Float64(-y)); elseif (y <= -3.6e-163) tmp = t_2; elseif (y <= 3.1e-202) tmp = t_1; elseif (y <= 2.8e-134) tmp = t_2; elseif (y <= 9e+69) tmp = t_1; else tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[y, -4.4e+114], N[(N[((-z) * x + N[(j * i), $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, -3.6e-163], t$95$2, If[LessEqual[y, 3.1e-202], t$95$1, If[LessEqual[y, 2.8e-134], t$95$2, If[LessEqual[y, 9e+69], t$95$1, N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
t_2 := \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+114}:\\
\;\;\;\;\mathsf{fma}\left(-z, x, j \cdot i\right) \cdot \left(-y\right)\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-163}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-134}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if y < -4.4000000000000001e114Initial program 56.1%
Taylor expanded in y around 0
Applied rewrites78.9%
Taylor expanded in y around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/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-*.f64N/A
mul-1-negN/A
lower-neg.f6480.1
Applied rewrites80.1%
if -4.4000000000000001e114 < y < -3.5999999999999998e-163 or 3.1e-202 < y < 2.7999999999999999e-134Initial program 73.8%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
*-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-*.f6462.1
Applied rewrites62.1%
if -3.5999999999999998e-163 < y < 3.1e-202 or 2.7999999999999999e-134 < y < 8.9999999999999999e69Initial program 73.2%
Taylor expanded in t 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-*.f6460.3
Applied rewrites60.3%
if 8.9999999999999999e69 < y Initial program 64.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6483.9
Applied rewrites83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* j c)) t))
(t_2 (* (fma (- z) c (* i a)) b))
(t_3 (* (fma (- i) j (* z x)) y)))
(if (<= y -4.4e+114)
t_3
(if (<= y -3.6e-163)
t_2
(if (<= y 3.1e-202)
t_1
(if (<= y 2.8e-134) t_2 (if (<= y 9e+69) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, a, (j * c)) * t;
double t_2 = fma(-z, c, (i * a)) * b;
double t_3 = fma(-i, j, (z * x)) * y;
double tmp;
if (y <= -4.4e+114) {
tmp = t_3;
} else if (y <= -3.6e-163) {
tmp = t_2;
} else if (y <= 3.1e-202) {
tmp = t_1;
} else if (y <= 2.8e-134) {
tmp = t_2;
} else if (y <= 9e+69) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), a, Float64(j * c)) * t) t_2 = Float64(fma(Float64(-z), c, Float64(i * a)) * b) t_3 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (y <= -4.4e+114) tmp = t_3; elseif (y <= -3.6e-163) tmp = t_2; elseif (y <= 3.1e-202) tmp = t_1; elseif (y <= 2.8e-134) tmp = t_2; elseif (y <= 9e+69) tmp = t_1; else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$3 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -4.4e+114], t$95$3, If[LessEqual[y, -3.6e-163], t$95$2, If[LessEqual[y, 3.1e-202], t$95$1, If[LessEqual[y, 2.8e-134], t$95$2, If[LessEqual[y, 9e+69], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
t_2 := \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
t_3 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+114}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-163}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-134}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -4.4000000000000001e114 or 8.9999999999999999e69 < y Initial program 60.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6480.6
Applied rewrites80.6%
if -4.4000000000000001e114 < y < -3.5999999999999998e-163 or 3.1e-202 < y < 2.7999999999999999e-134Initial program 73.8%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
*-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-*.f6462.1
Applied rewrites62.1%
if -3.5999999999999998e-163 < y < 3.1e-202 or 2.7999999999999999e-134 < y < 8.9999999999999999e69Initial program 73.2%
Taylor expanded in t 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-*.f6460.3
Applied rewrites60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.15e-128)
(fma (* c j) t (* (fma (- i) j (* z x)) y))
(if (<= j 1.52e-62)
(fma (- t) (* a x) (* (fma (- b) c (* y x)) z))
(+ (* (* z x) y) (* j (- (* c t) (* i y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.15e-128) {
tmp = fma((c * j), t, (fma(-i, j, (z * x)) * y));
} else if (j <= 1.52e-62) {
tmp = fma(-t, (a * x), (fma(-b, c, (y * x)) * z));
} else {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.15e-128) tmp = fma(Float64(c * j), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); elseif (j <= 1.52e-62) tmp = fma(Float64(-t), Float64(a * x), Float64(fma(Float64(-b), c, Float64(y * x)) * z)); else tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.15e-128], N[(N[(c * j), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.52e-62], N[((-t) * N[(a * x), $MachinePrecision] + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.15 \cdot 10^{-128}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot j, t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{elif}\;j \leq 1.52 \cdot 10^{-62}:\\
\;\;\;\;\mathsf{fma}\left(-t, a \cdot x, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\end{array}
\end{array}
if j < -2.14999999999999997e-128Initial program 67.8%
Taylor expanded in y around 0
Applied rewrites80.3%
Taylor expanded in b around 0
Applied rewrites68.1%
Taylor expanded in x around 0
Applied rewrites61.2%
if -2.14999999999999997e-128 < j < 1.52000000000000007e-62Initial program 72.1%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-lft-out--N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites67.3%
Taylor expanded in j around 0
Applied rewrites67.6%
if 1.52000000000000007e-62 < j Initial program 67.4%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6471.2
Applied rewrites71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.2e+80)
(* (fma (- x) t (* i b)) a)
(if (<= a 7e-71)
(fma (* c j) t (* (fma (- i) j (* z x)) y))
(fma (- t) (* a x) (* (fma (- b) c (* y x)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.2e+80) {
tmp = fma(-x, t, (i * b)) * a;
} else if (a <= 7e-71) {
tmp = fma((c * j), t, (fma(-i, j, (z * x)) * y));
} else {
tmp = fma(-t, (a * x), (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3.2e+80) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); elseif (a <= 7e-71) tmp = fma(Float64(c * j), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); else tmp = fma(Float64(-t), Float64(a * x), Float64(fma(Float64(-b), c, Float64(y * x)) * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.2e+80], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 7e-71], N[(N[(c * j), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[((-t) * N[(a * x), $MachinePrecision] + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{+80}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-71}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot j, t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, a \cdot x, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if a < -3.1999999999999999e80Initial program 57.5%
Taylor expanded in a 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-*.f6469.3
Applied rewrites69.3%
if -3.1999999999999999e80 < a < 6.9999999999999998e-71Initial program 73.5%
Taylor expanded in y around 0
Applied rewrites79.4%
Taylor expanded in b around 0
Applied rewrites71.9%
Taylor expanded in x around 0
Applied rewrites69.3%
if 6.9999999999999998e-71 < a Initial program 71.5%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-lft-out--N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites66.1%
Taylor expanded in j around 0
Applied rewrites60.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -440.0) (not (<= b 2.5e+134))) (* (fma (- z) c (* i a)) b) (fma (* c j) t (* (fma (- i) j (* z x)) y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -440.0) || !(b <= 2.5e+134)) {
tmp = fma(-z, c, (i * a)) * b;
} else {
tmp = fma((c * j), t, (fma(-i, j, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -440.0) || !(b <= 2.5e+134)) tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b); else tmp = fma(Float64(c * j), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -440.0], N[Not[LessEqual[b, 2.5e+134]], $MachinePrecision]], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[(c * j), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -440 \lor \neg \left(b \leq 2.5 \cdot 10^{+134}\right):\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot j, t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if b < -440 or 2.4999999999999999e134 < b Initial program 69.2%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
*-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-*.f6468.8
Applied rewrites68.8%
if -440 < b < 2.4999999999999999e134Initial program 69.4%
Taylor expanded in y around 0
Applied rewrites78.5%
Taylor expanded in b around 0
Applied rewrites78.7%
Taylor expanded in x around 0
Applied rewrites64.1%
Final simplification65.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -2.7e+126)
t_1
(if (<= z 7.2e-58)
(* (fma (- i) y (* c t)) j)
(if (<= z 3.15e+103) (* (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(-b, c, (y * x)) * z;
double tmp;
if (z <= -2.7e+126) {
tmp = t_1;
} else if (z <= 7.2e-58) {
tmp = fma(-i, y, (c * t)) * j;
} else if (z <= 3.15e+103) {
tmp = 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 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -2.7e+126) tmp = t_1; elseif (z <= 7.2e-58) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); elseif (z <= 3.15e+103) tmp = 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[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2.7e+126], t$95$1, If[LessEqual[z, 7.2e-58], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[z, 3.15e+103], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-58}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{elif}\;z \leq 3.15 \cdot 10^{+103}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.70000000000000002e126 or 3.14999999999999985e103 < z Initial program 63.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.7
Applied rewrites73.7%
if -2.70000000000000002e126 < z < 7.20000000000000019e-58Initial program 74.1%
Taylor expanded in y around 0
Applied rewrites83.1%
Taylor expanded in j around inf
Applied rewrites46.9%
if 7.20000000000000019e-58 < z < 3.14999999999999985e103Initial program 65.9%
Taylor expanded in y around 0
Applied rewrites78.0%
Taylor expanded in b around 0
Applied rewrites69.1%
Taylor expanded in x around inf
Applied rewrites51.8%
Final simplification57.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* j t) c)))
(if (<= j -580000.0)
t_1
(if (<= j -2.3e-294)
(* (* (- b) z) c)
(if (<= j 8e-208)
(* (* b a) i)
(if (<= j 1.04e+58) (* (* z x) y) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * t) * c;
double tmp;
if (j <= -580000.0) {
tmp = t_1;
} else if (j <= -2.3e-294) {
tmp = (-b * z) * c;
} else if (j <= 8e-208) {
tmp = (b * a) * i;
} else if (j <= 1.04e+58) {
tmp = (z * x) * y;
} 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 = (j * t) * c
if (j <= (-580000.0d0)) then
tmp = t_1
else if (j <= (-2.3d-294)) then
tmp = (-b * z) * c
else if (j <= 8d-208) then
tmp = (b * a) * i
else if (j <= 1.04d+58) then
tmp = (z * x) * y
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 = (j * t) * c;
double tmp;
if (j <= -580000.0) {
tmp = t_1;
} else if (j <= -2.3e-294) {
tmp = (-b * z) * c;
} else if (j <= 8e-208) {
tmp = (b * a) * i;
} else if (j <= 1.04e+58) {
tmp = (z * x) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * t) * c tmp = 0 if j <= -580000.0: tmp = t_1 elif j <= -2.3e-294: tmp = (-b * z) * c elif j <= 8e-208: tmp = (b * a) * i elif j <= 1.04e+58: tmp = (z * x) * y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * t) * c) tmp = 0.0 if (j <= -580000.0) tmp = t_1; elseif (j <= -2.3e-294) tmp = Float64(Float64(Float64(-b) * z) * c); elseif (j <= 8e-208) tmp = Float64(Float64(b * a) * i); elseif (j <= 1.04e+58) tmp = Float64(Float64(z * x) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * t) * c; tmp = 0.0; if (j <= -580000.0) tmp = t_1; elseif (j <= -2.3e-294) tmp = (-b * z) * c; elseif (j <= 8e-208) tmp = (b * a) * i; elseif (j <= 1.04e+58) tmp = (z * x) * y; 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[(j * t), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[j, -580000.0], t$95$1, If[LessEqual[j, -2.3e-294], N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[j, 8e-208], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[j, 1.04e+58], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot t\right) \cdot c\\
\mathbf{if}\;j \leq -580000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.3 \cdot 10^{-294}:\\
\;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-208}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;j \leq 1.04 \cdot 10^{+58}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -5.8e5 or 1.04e58 < j Initial program 65.5%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6465.5
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6465.5
Applied rewrites65.5%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6449.0
Applied rewrites49.0%
Taylor expanded in z around 0
Applied rewrites40.5%
if -5.8e5 < j < -2.30000000000000016e-294Initial program 72.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.1
Applied rewrites46.1%
Taylor expanded in x around inf
Applied rewrites22.4%
Taylor expanded in x around 0
Applied rewrites32.4%
if -2.30000000000000016e-294 < j < 8.0000000000000008e-208Initial program 67.3%
Taylor expanded in i 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-*.f6450.9
Applied rewrites50.9%
Taylor expanded in y around 0
Applied rewrites51.1%
if 8.0000000000000008e-208 < j < 1.04e58Initial program 74.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.7
Applied rewrites47.7%
Taylor expanded in x around inf
Applied rewrites37.4%
Applied rewrites38.9%
Final simplification39.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -4.7e-51) (not (<= t 3.1e+132))) (* (fma (- x) a (* j c)) t) (* (fma (- i) j (* z x)) y)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -4.7e-51) || !(t <= 3.1e+132)) {
tmp = fma(-x, a, (j * c)) * t;
} else {
tmp = fma(-i, j, (z * x)) * y;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -4.7e-51) || !(t <= 3.1e+132)) tmp = Float64(fma(Float64(-x), a, Float64(j * c)) * t); else tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -4.7e-51], N[Not[LessEqual[t, 3.1e+132]], $MachinePrecision]], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.7 \cdot 10^{-51} \lor \neg \left(t \leq 3.1 \cdot 10^{+132}\right):\\
\;\;\;\;\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if t < -4.6999999999999997e-51 or 3.0999999999999998e132 < t Initial program 59.4%
Taylor expanded in t 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-*.f6467.4
Applied rewrites67.4%
if -4.6999999999999997e-51 < t < 3.0999999999999998e132Initial program 76.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.6
Applied rewrites56.6%
Final simplification61.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -5.5e-67) (not (<= j 3.4e+61))) (* (fma (- i) y (* c t)) j) (* (fma (- t) a (* 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 ((j <= -5.5e-67) || !(j <= 3.4e+61)) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = fma(-t, a, (z * y)) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -5.5e-67) || !(j <= 3.4e+61)) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -5.5e-67], N[Not[LessEqual[j, 3.4e+61]], $MachinePrecision]], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -5.5 \cdot 10^{-67} \lor \neg \left(j \leq 3.4 \cdot 10^{+61}\right):\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if j < -5.5000000000000003e-67 or 3.40000000000000026e61 < j Initial program 66.9%
Taylor expanded in y around 0
Applied rewrites70.9%
Taylor expanded in j around inf
Applied rewrites59.0%
if -5.5000000000000003e-67 < j < 3.40000000000000026e61Initial program 71.7%
Taylor expanded in y around 0
Applied rewrites82.4%
Taylor expanded in b around 0
Applied rewrites61.3%
Taylor expanded in x around inf
Applied rewrites52.3%
Final simplification55.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.32e+188) (not (<= j 3.5e+134))) (* (* j t) c) (* (fma (- t) a (* 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 ((j <= -1.32e+188) || !(j <= 3.5e+134)) {
tmp = (j * t) * c;
} else {
tmp = fma(-t, a, (z * y)) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.32e+188) || !(j <= 3.5e+134)) tmp = Float64(Float64(j * t) * c); else tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.32e+188], N[Not[LessEqual[j, 3.5e+134]], $MachinePrecision]], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.32 \cdot 10^{+188} \lor \neg \left(j \leq 3.5 \cdot 10^{+134}\right):\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if j < -1.3200000000000001e188 or 3.50000000000000003e134 < j Initial program 58.8%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6458.9
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6458.9
Applied rewrites58.9%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6455.6
Applied rewrites55.6%
Taylor expanded in z around 0
Applied rewrites51.3%
if -1.3200000000000001e188 < j < 3.50000000000000003e134Initial program 73.2%
Taylor expanded in y around 0
Applied rewrites82.0%
Taylor expanded in b around 0
Applied rewrites63.5%
Taylor expanded in x around inf
Applied rewrites46.2%
Final simplification47.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -4.8e+38)
(* (* j t) c)
(if (<= t 1.02e+43)
(* (* z x) y)
(if (<= t 1.75e+120) (* (* (- y) j) i) (* (* (- t) x) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.8e+38) {
tmp = (j * t) * c;
} else if (t <= 1.02e+43) {
tmp = (z * x) * y;
} else if (t <= 1.75e+120) {
tmp = (-y * j) * i;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-4.8d+38)) then
tmp = (j * t) * c
else if (t <= 1.02d+43) then
tmp = (z * x) * y
else if (t <= 1.75d+120) then
tmp = (-y * j) * i
else
tmp = (-t * x) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.8e+38) {
tmp = (j * t) * c;
} else if (t <= 1.02e+43) {
tmp = (z * x) * y;
} else if (t <= 1.75e+120) {
tmp = (-y * j) * i;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -4.8e+38: tmp = (j * t) * c elif t <= 1.02e+43: tmp = (z * x) * y elif t <= 1.75e+120: tmp = (-y * j) * i else: tmp = (-t * x) * a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -4.8e+38) tmp = Float64(Float64(j * t) * c); elseif (t <= 1.02e+43) tmp = Float64(Float64(z * x) * y); elseif (t <= 1.75e+120) tmp = Float64(Float64(Float64(-y) * j) * i); else tmp = Float64(Float64(Float64(-t) * x) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -4.8e+38) tmp = (j * t) * c; elseif (t <= 1.02e+43) tmp = (z * x) * y; elseif (t <= 1.75e+120) tmp = (-y * j) * i; else tmp = (-t * x) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -4.8e+38], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[t, 1.02e+43], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 1.75e+120], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{+38}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+43}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+120}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\end{array}
\end{array}
if t < -4.80000000000000035e38Initial program 47.6%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6447.6
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6447.6
Applied rewrites47.6%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6454.2
Applied rewrites54.2%
Taylor expanded in z around 0
Applied rewrites46.3%
if -4.80000000000000035e38 < t < 1.02e43Initial program 79.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.9
Applied rewrites44.9%
Taylor expanded in x around inf
Applied rewrites30.7%
Applied rewrites30.7%
if 1.02e43 < t < 1.75000000000000004e120Initial program 69.3%
Taylor expanded in i 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-*.f6457.6
Applied rewrites57.6%
Taylor expanded in y around inf
Applied rewrites44.9%
if 1.75000000000000004e120 < t Initial program 62.0%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-lft-out--N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.2%
Taylor expanded in j around 0
Applied rewrites64.8%
Taylor expanded in z around 0
Applied rewrites55.1%
Final simplification38.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -4.8e+38)
(* (* j t) c)
(if (<= t 1.2e-63)
(* (* z x) y)
(if (<= t 1.05e+132) (* (- b) (* c z)) (* (* (- t) x) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.8e+38) {
tmp = (j * t) * c;
} else if (t <= 1.2e-63) {
tmp = (z * x) * y;
} else if (t <= 1.05e+132) {
tmp = -b * (c * z);
} else {
tmp = (-t * x) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-4.8d+38)) then
tmp = (j * t) * c
else if (t <= 1.2d-63) then
tmp = (z * x) * y
else if (t <= 1.05d+132) then
tmp = -b * (c * z)
else
tmp = (-t * x) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.8e+38) {
tmp = (j * t) * c;
} else if (t <= 1.2e-63) {
tmp = (z * x) * y;
} else if (t <= 1.05e+132) {
tmp = -b * (c * z);
} else {
tmp = (-t * x) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -4.8e+38: tmp = (j * t) * c elif t <= 1.2e-63: tmp = (z * x) * y elif t <= 1.05e+132: tmp = -b * (c * z) else: tmp = (-t * x) * a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -4.8e+38) tmp = Float64(Float64(j * t) * c); elseif (t <= 1.2e-63) tmp = Float64(Float64(z * x) * y); elseif (t <= 1.05e+132) tmp = Float64(Float64(-b) * Float64(c * z)); else tmp = Float64(Float64(Float64(-t) * x) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -4.8e+38) tmp = (j * t) * c; elseif (t <= 1.2e-63) tmp = (z * x) * y; elseif (t <= 1.05e+132) tmp = -b * (c * z); else tmp = (-t * x) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -4.8e+38], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[t, 1.2e-63], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 1.05e+132], N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{+38}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-63}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+132}:\\
\;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\end{array}
\end{array}
if t < -4.80000000000000035e38Initial program 47.6%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6447.6
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6447.6
Applied rewrites47.6%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6454.2
Applied rewrites54.2%
Taylor expanded in z around 0
Applied rewrites46.3%
if -4.80000000000000035e38 < t < 1.2e-63Initial program 77.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.0
Applied rewrites45.0%
Taylor expanded in x around inf
Applied rewrites32.4%
Applied rewrites32.4%
if 1.2e-63 < t < 1.04999999999999997e132Initial program 78.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.5
Applied rewrites43.5%
Taylor expanded in x around 0
Applied rewrites33.6%
if 1.04999999999999997e132 < t Initial program 62.6%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-lft-out--N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites70.7%
Taylor expanded in j around 0
Applied rewrites62.9%
Taylor expanded in z around 0
Applied rewrites55.4%
Final simplification38.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -4.8e+38) (not (<= t 4.45e+42))) (* (* j t) c) (* (* 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 ((t <= -4.8e+38) || !(t <= 4.45e+42)) {
tmp = (j * t) * c;
} 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 ((t <= (-4.8d+38)) .or. (.not. (t <= 4.45d+42))) then
tmp = (j * t) * c
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 ((t <= -4.8e+38) || !(t <= 4.45e+42)) {
tmp = (j * t) * c;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -4.8e+38) or not (t <= 4.45e+42): tmp = (j * t) * c else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -4.8e+38) || !(t <= 4.45e+42)) tmp = Float64(Float64(j * t) * c); 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 ((t <= -4.8e+38) || ~((t <= 4.45e+42))) tmp = (j * t) * c; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -4.8e+38], N[Not[LessEqual[t, 4.45e+42]], $MachinePrecision]], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{+38} \lor \neg \left(t \leq 4.45 \cdot 10^{+42}\right):\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if t < -4.80000000000000035e38 or 4.44999999999999988e42 < t Initial program 57.0%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6457.0
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6457.0
Applied rewrites57.0%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6455.1
Applied rewrites55.1%
Taylor expanded in z around 0
Applied rewrites42.9%
if -4.80000000000000035e38 < t < 4.44999999999999988e42Initial program 79.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.9
Applied rewrites44.9%
Taylor expanded in x around inf
Applied rewrites30.7%
Applied rewrites30.7%
Final simplification36.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.55e-5) (not (<= a 1.55e+128))) (* (* b a) 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 ((a <= -1.55e-5) || !(a <= 1.55e+128)) {
tmp = (b * a) * i;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.55d-5)) .or. (.not. (a <= 1.55d+128))) then
tmp = (b * a) * i
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.55e-5) || !(a <= 1.55e+128)) {
tmp = (b * a) * i;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.55e-5) or not (a <= 1.55e+128): tmp = (b * a) * i else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.55e-5) || !(a <= 1.55e+128)) tmp = Float64(Float64(b * a) * i); else tmp = Float64(Float64(z * x) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.55e-5) || ~((a <= 1.55e+128))) tmp = (b * a) * i; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.55e-5], N[Not[LessEqual[a, 1.55e+128]], $MachinePrecision]], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.55 \cdot 10^{-5} \lor \neg \left(a \leq 1.55 \cdot 10^{+128}\right):\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if a < -1.55000000000000007e-5 or 1.55000000000000002e128 < a Initial program 56.0%
Taylor expanded in i 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-*.f6452.3
Applied rewrites52.3%
Taylor expanded in y around 0
Applied rewrites41.1%
if -1.55000000000000007e-5 < a < 1.55000000000000002e128Initial program 78.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.2
Applied rewrites46.2%
Taylor expanded in x around inf
Applied rewrites26.0%
Applied rewrites29.2%
Final simplification34.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -3.3e+115) (* (* z y) x) (if (<= y 7.9e-134) (* (* i b) a) (* (* y x) z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.3e+115) {
tmp = (z * y) * x;
} else if (y <= 7.9e-134) {
tmp = (i * b) * a;
} else {
tmp = (y * x) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-3.3d+115)) then
tmp = (z * y) * x
else if (y <= 7.9d-134) then
tmp = (i * b) * a
else
tmp = (y * x) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.3e+115) {
tmp = (z * y) * x;
} else if (y <= 7.9e-134) {
tmp = (i * b) * a;
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.3e+115: tmp = (z * y) * x elif y <= 7.9e-134: tmp = (i * b) * a else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.3e+115) tmp = Float64(Float64(z * y) * x); elseif (y <= 7.9e-134) tmp = Float64(Float64(i * b) * a); else tmp = Float64(Float64(y * x) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -3.3e+115) tmp = (z * y) * x; elseif (y <= 7.9e-134) tmp = (i * b) * a; else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.3e+115], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 7.9e-134], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+115}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;y \leq 7.9 \cdot 10^{-134}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if y < -3.30000000000000005e115Initial program 55.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6439.9
Applied rewrites39.9%
Taylor expanded in x around inf
Applied rewrites42.1%
if -3.30000000000000005e115 < y < 7.8999999999999998e-134Initial program 76.6%
Taylor expanded in i 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-*.f6435.8
Applied rewrites35.8%
Taylor expanded in y around 0
Applied rewrites28.3%
if 7.8999999999999998e-134 < y Initial program 65.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.4
Applied rewrites46.4%
Taylor expanded in x around inf
Applied rewrites36.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -3.3e+115) (* (* z y) x) (if (<= y 7.8e-134) (* (* i b) a) (* (* 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 <= -3.3e+115) {
tmp = (z * y) * x;
} else if (y <= 7.8e-134) {
tmp = (i * b) * a;
} 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 <= (-3.3d+115)) then
tmp = (z * y) * x
else if (y <= 7.8d-134) then
tmp = (i * b) * a
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 <= -3.3e+115) {
tmp = (z * y) * x;
} else if (y <= 7.8e-134) {
tmp = (i * b) * a;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.3e+115: tmp = (z * y) * x elif y <= 7.8e-134: tmp = (i * b) * a else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.3e+115) tmp = Float64(Float64(z * y) * x); elseif (y <= 7.8e-134) tmp = Float64(Float64(i * b) * a); 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 <= -3.3e+115) tmp = (z * y) * x; elseif (y <= 7.8e-134) tmp = (i * b) * a; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.3e+115], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 7.8e-134], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+115}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{-134}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if y < -3.30000000000000005e115Initial program 55.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6439.9
Applied rewrites39.9%
Taylor expanded in x around inf
Applied rewrites42.1%
if -3.30000000000000005e115 < y < 7.8000000000000002e-134Initial program 76.6%
Taylor expanded in i 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-*.f6435.8
Applied rewrites35.8%
Taylor expanded in y around 0
Applied rewrites28.3%
if 7.8000000000000002e-134 < y Initial program 65.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.4
Applied rewrites46.4%
Taylor expanded in x around inf
Applied rewrites35.0%
Applied rewrites35.0%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z x) y))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (z * x) * y
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
def code(x, y, z, t, a, b, c, i, j): return (z * x) * y
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * x) * y) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * x) * y; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot x\right) \cdot y
\end{array}
Initial program 69.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/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 rewrites22.1%
Applied rewrites22.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024324
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))