
(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 28 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 (* (fma (- i) j (* z x)) y)) (t_2 (fma (- z) c (* i t))))
(if (<= b -1.15e+176)
(fma t_2 b t_1)
(if (<= b 2.4e-86)
(-
(fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
(* (fma (- t) b (* j y)) i))
(fma t_2 b (fma (fma (- x) t (* j c)) a t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double t_2 = fma(-z, c, (i * t));
double tmp;
if (b <= -1.15e+176) {
tmp = fma(t_2, b, t_1);
} else if (b <= 2.4e-86) {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x)) - (fma(-t, b, (j * y)) * i);
} else {
tmp = fma(t_2, b, fma(fma(-x, t, (j * c)), a, 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) t_2 = fma(Float64(-z), c, Float64(i * t)) tmp = 0.0 if (b <= -1.15e+176) tmp = fma(t_2, b, t_1); elseif (b <= 2.4e-86) tmp = Float64(fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x)) - Float64(fma(Float64(-t), b, Float64(j * y)) * i)); else tmp = fma(t_2, b, fma(fma(Float64(-x), t, Float64(j * c)), a, 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]}, Block[{t$95$2 = N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e+176], N[(t$95$2 * b + t$95$1), $MachinePrecision], If[LessEqual[b, 2.4e-86], N[(N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] - N[(N[((-t) * b + N[(j * y), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], N[(t$95$2 * b + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
t_2 := \mathsf{fma}\left(-z, c, i \cdot t\right)\\
\mathbf{if}\;b \leq -1.15 \cdot 10^{+176}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, b, t\_1\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-86}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right) - \mathsf{fma}\left(-t, b, j \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, t\_1\right)\right)\\
\end{array}
\end{array}
if b < -1.14999999999999998e176Initial program 80.4%
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
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites90.2%
if -1.14999999999999998e176 < b < 2.40000000000000013e-86Initial program 77.0%
Taylor expanded in c around 0
Applied rewrites86.6%
if 2.40000000000000013e-86 < b Initial program 76.0%
Taylor expanded in y around 0
Applied rewrites83.9%
(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 (fma (- j) y (* b t)) i (* (fma (- x) t (* j c)) a)))))
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(fma(-j, y, (b * t)), i, (fma(-x, t, (j * c)) * a));
}
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(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); 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[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $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(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\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 90.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 c around 0
Applied rewrites29.0%
Taylor expanded in z around 0
Applied rewrites58.5%
Final simplification85.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t 4.8e+151)
(fma
(fma (- z) c (* i t))
b
(fma (fma (- x) t (* j c)) a (* (fma (- i) j (* z x)) y)))
(* (fma (- x) a (* i b)) t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 4.8e+151) {
tmp = fma(fma(-z, c, (i * t)), b, fma(fma(-x, t, (j * c)), a, (fma(-i, j, (z * x)) * y)));
} else {
tmp = fma(-x, a, (i * b)) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 4.8e+151) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y))); else tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 4.8e+151], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.8 \cdot 10^{+151}:\\
\;\;\;\;\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(-i, j, z \cdot x\right) \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if t < 4.8000000000000002e151Initial program 80.1%
Taylor expanded in y around 0
Applied rewrites81.7%
if 4.8000000000000002e151 < t Initial program 60.9%
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-*.f6489.1
Applied rewrites89.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (fma (- a) (/ j b) z) (- c)) b))
(t_2 (fma (- x) a (* i b))))
(if (<= t -1.05e-34)
(fma t_2 t (* (* j c) a))
(if (<= t -8.8e-85)
(* (fma y x (* (- c) b)) z)
(if (<= t -1.95e-165)
t_1
(if (<= t 8.2e-77)
(* (fma (- i) j (* z x)) y)
(if (<= t 4.1e+65) t_1 (* t_2 t))))))))
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, (j / b), z) * -c) * b;
double t_2 = fma(-x, a, (i * b));
double tmp;
if (t <= -1.05e-34) {
tmp = fma(t_2, t, ((j * c) * a));
} else if (t <= -8.8e-85) {
tmp = fma(y, x, (-c * b)) * z;
} else if (t <= -1.95e-165) {
tmp = t_1;
} else if (t <= 8.2e-77) {
tmp = fma(-i, j, (z * x)) * y;
} else if (t <= 4.1e+65) {
tmp = t_1;
} else {
tmp = t_2 * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(fma(Float64(-a), Float64(j / b), z) * Float64(-c)) * b) t_2 = fma(Float64(-x), a, Float64(i * b)) tmp = 0.0 if (t <= -1.05e-34) tmp = fma(t_2, t, Float64(Float64(j * c) * a)); elseif (t <= -8.8e-85) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); elseif (t <= -1.95e-165) tmp = t_1; elseif (t <= 8.2e-77) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (t <= 4.1e+65) tmp = t_1; else tmp = Float64(t_2 * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[((-a) * N[(j / b), $MachinePrecision] + z), $MachinePrecision] * (-c)), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e-34], N[(t$95$2 * t + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.8e-85], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, -1.95e-165], t$95$1, If[LessEqual[t, 8.2e-77], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 4.1e+65], t$95$1, N[(t$95$2 * t), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-a, \frac{j}{b}, z\right) \cdot \left(-c\right)\right) \cdot b\\
t_2 := \mathsf{fma}\left(-x, a, i \cdot b\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{-34}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, t, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-85}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-77}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot t\\
\end{array}
\end{array}
if t < -1.05e-34Initial program 74.3%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites80.8%
Taylor expanded in y around 0
Applied rewrites74.4%
if -1.05e-34 < t < -8.8e-85Initial program 53.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-*.f6467.7
Applied rewrites67.7%
Applied rewrites67.7%
if -8.8e-85 < t < -1.9499999999999999e-165 or 8.19999999999999925e-77 < t < 4.1000000000000001e65Initial program 84.2%
Taylor expanded in y around 0
Applied rewrites87.9%
Taylor expanded in b around inf
Applied rewrites82.1%
Taylor expanded in c around -inf
Applied rewrites64.7%
if -1.9499999999999999e-165 < t < 8.19999999999999925e-77Initial program 85.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-*.f6459.4
Applied rewrites59.4%
if 4.1000000000000001e65 < t Initial program 68.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-*.f6486.4
Applied rewrites86.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- z) c (* i t)) b (* (fma (- i) j (* z x)) y))))
(if (<= b -1.7e+60)
t_1
(if (<= b -4.6e-285)
(fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
(if (<= b 8.8e+45)
(fma (fma (- x) a (* i b)) t (* (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(-z, c, (i * t)), b, (fma(-i, j, (z * x)) * y));
double tmp;
if (b <= -1.7e+60) {
tmp = t_1;
} else if (b <= -4.6e-285) {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x));
} else if (b <= 8.8e+45) {
tmp = fma(fma(-x, a, (i * b)), t, (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(-z), c, Float64(i * t)), b, Float64(fma(Float64(-i), j, Float64(z * x)) * y)) tmp = 0.0 if (b <= -1.7e+60) tmp = t_1; elseif (b <= -4.6e-285) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); elseif (b <= 8.8e+45) tmp = fma(fma(Float64(-x), a, Float64(i * b)), t, 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[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.7e+60], t$95$1, If[LessEqual[b, -4.6e-285], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.8e+45], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + 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(-z, c, i \cdot t\right), b, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{if}\;b \leq -1.7 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.6 \cdot 10^{-285}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{+45}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.7e60 or 8.8000000000000001e45 < b Initial program 77.7%
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
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites84.3%
if -1.7e60 < b < -4.59999999999999993e-285Initial program 73.1%
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-outN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites81.3%
if -4.59999999999999993e-285 < b < 8.8000000000000001e45Initial program 80.5%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites80.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- x) a (* i b)) t (* (* j c) a)))
(t_2 (* (fma (- z) c (* i t)) b)))
(if (<= b -2.9e+208)
t_2
(if (<= b -3.6e-78)
t_1
(if (<= b 4.9e-222)
(* (fma z y (* (- a) t)) x)
(if (<= b 2e+89) 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(-x, a, (i * b)), t, ((j * c) * a));
double t_2 = fma(-z, c, (i * t)) * b;
double tmp;
if (b <= -2.9e+208) {
tmp = t_2;
} else if (b <= -3.6e-78) {
tmp = t_1;
} else if (b <= 4.9e-222) {
tmp = fma(z, y, (-a * t)) * x;
} else if (b <= 2e+89) {
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(-x), a, Float64(i * b)), t, Float64(Float64(j * c) * a)) t_2 = Float64(fma(Float64(-z), c, Float64(i * t)) * b) tmp = 0.0 if (b <= -2.9e+208) tmp = t_2; elseif (b <= -3.6e-78) tmp = t_1; elseif (b <= 4.9e-222) tmp = Float64(fma(z, y, Float64(Float64(-a) * t)) * x); elseif (b <= 2e+89) 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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -2.9e+208], t$95$2, If[LessEqual[b, -3.6e-78], t$95$1, If[LessEqual[b, 4.9e-222], N[(N[(z * y + N[((-a) * t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 2e+89], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \left(j \cdot c\right) \cdot a\right)\\
t_2 := \mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{if}\;b \leq -2.9 \cdot 10^{+208}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.9 \cdot 10^{-222}:\\
\;\;\;\;\mathsf{fma}\left(z, y, \left(-a\right) \cdot t\right) \cdot x\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.90000000000000008e208 or 1.99999999999999999e89 < b Initial program 74.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
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6478.0
Applied rewrites78.0%
if -2.90000000000000008e208 < b < -3.6000000000000002e-78 or 4.9e-222 < b < 1.99999999999999999e89Initial program 80.4%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites71.8%
Taylor expanded in y around 0
Applied rewrites59.1%
if -3.6000000000000002e-78 < b < 4.9e-222Initial program 75.3%
Taylor expanded in y around 0
Applied rewrites71.0%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.5
Applied rewrites72.5%
Applied rewrites72.6%
Final simplification68.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- x) a (* i b))))
(if (<= t -1.8e+75)
(fma t_1 t (* (fma (- i) y (* c a)) j))
(if (<= t -1.2e-162)
(fma (fma (- j) y (* b t)) i (* (fma (- x) t (* j c)) a))
(if (<= t 1150.0)
(+ (* (* z x) y) (* (- (* c a) (* i y)) j))
(fma t_1 t (* (* j c) a)))))))
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));
double tmp;
if (t <= -1.8e+75) {
tmp = fma(t_1, t, (fma(-i, y, (c * a)) * j));
} else if (t <= -1.2e-162) {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-x, t, (j * c)) * a));
} else if (t <= 1150.0) {
tmp = ((z * x) * y) + (((c * a) - (i * y)) * j);
} else {
tmp = fma(t_1, t, ((j * c) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-x), a, Float64(i * b)) tmp = 0.0 if (t <= -1.8e+75) tmp = fma(t_1, t, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (t <= -1.2e-162) tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); elseif (t <= 1150.0) tmp = Float64(Float64(Float64(z * x) * y) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)); else tmp = fma(t_1, t, Float64(Float64(j * c) * a)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.8e+75], N[(t$95$1 * t + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.2e-162], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1150.0], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * t + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right)\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, t, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{-162}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right)\\
\mathbf{elif}\;t \leq 1150:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, t, \left(j \cdot c\right) \cdot a\right)\\
\end{array}
\end{array}
if t < -1.8e75Initial program 75.5%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites90.1%
if -1.8e75 < t < -1.2000000000000001e-162Initial program 70.0%
Taylor expanded in c around 0
Applied rewrites79.2%
Taylor expanded in z around 0
Applied rewrites63.5%
if -1.2000000000000001e-162 < t < 1150Initial program 86.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6468.7
Applied rewrites68.7%
if 1150 < t Initial program 70.6%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites78.2%
Taylor expanded in y around 0
Applied rewrites81.0%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- x) a (* i b)) t (* (* j c) a))))
(if (<= t -7.4e+87)
t_1
(if (<= t -1.2e-162)
(fma (fma (- j) y (* b t)) i (* (fma (- x) t (* j c)) a))
(if (<= t 1150.0) (+ (* (* z x) y) (* (- (* c a) (* i y)) 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, a, (i * b)), t, ((j * c) * a));
double tmp;
if (t <= -7.4e+87) {
tmp = t_1;
} else if (t <= -1.2e-162) {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-x, t, (j * c)) * a));
} else if (t <= 1150.0) {
tmp = ((z * x) * y) + (((c * a) - (i * y)) * j);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-x), a, Float64(i * b)), t, Float64(Float64(j * c) * a)) tmp = 0.0 if (t <= -7.4e+87) tmp = t_1; elseif (t <= -1.2e-162) tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); elseif (t <= 1150.0) tmp = Float64(Float64(Float64(z * x) * y) + Float64(Float64(Float64(c * a) - Float64(i * y)) * 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) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.4e+87], t$95$1, If[LessEqual[t, -1.2e-162], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1150.0], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{if}\;t \leq -7.4 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{-162}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right)\\
\mathbf{elif}\;t \leq 1150:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.40000000000000005e87 or 1150 < t Initial program 72.5%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites82.8%
Taylor expanded in y around 0
Applied rewrites80.7%
if -7.40000000000000005e87 < t < -1.2000000000000001e-162Initial program 70.0%
Taylor expanded in c around 0
Applied rewrites79.2%
Taylor expanded in z around 0
Applied rewrites63.5%
if -1.2000000000000001e-162 < t < 1150Initial program 86.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6468.7
Applied rewrites68.7%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.35e-18)
(fma (fma (- j) y (* b t)) i (* (fma (- x) t (* j c)) a))
(if (<= i 1.25e+66)
(fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
(* (fma t b (* (- y) j)) 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 <= -1.35e-18) {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-x, t, (j * c)) * a));
} else if (i <= 1.25e+66) {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x));
} else {
tmp = fma(t, b, (-y * j)) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.35e-18) tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); elseif (i <= 1.25e+66) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); else tmp = Float64(fma(t, b, Float64(Float64(-y) * j)) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.35e-18], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.25e+66], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[(t * b + N[((-y) * j), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.35 \cdot 10^{-18}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right)\\
\mathbf{elif}\;i \leq 1.25 \cdot 10^{+66}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, b, \left(-y\right) \cdot j\right) \cdot i\\
\end{array}
\end{array}
if i < -1.34999999999999994e-18Initial program 67.3%
Taylor expanded in c around 0
Applied rewrites76.5%
Taylor expanded in z around 0
Applied rewrites76.6%
if -1.34999999999999994e-18 < i < 1.24999999999999998e66Initial program 83.1%
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-outN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites75.6%
if 1.24999999999999998e66 < i Initial program 74.9%
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
lower-*.f6473.0
Applied rewrites73.0%
Applied rewrites73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- x) a (* i b)) t (* (* j c) a))))
(if (<= t -1.75e-34)
t_1
(if (<= t 1150.0) (+ (* (* z x) y) (* (- (* c a) (* i y)) 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, a, (i * b)), t, ((j * c) * a));
double tmp;
if (t <= -1.75e-34) {
tmp = t_1;
} else if (t <= 1150.0) {
tmp = ((z * x) * y) + (((c * a) - (i * y)) * j);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-x), a, Float64(i * b)), t, Float64(Float64(j * c) * a)) tmp = 0.0 if (t <= -1.75e-34) tmp = t_1; elseif (t <= 1150.0) tmp = Float64(Float64(Float64(z * x) * y) + Float64(Float64(Float64(c * a) - Float64(i * y)) * 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) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e-34], t$95$1, If[LessEqual[t, 1150.0], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{if}\;t \leq -1.75 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1150:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.75e-34 or 1150 < t Initial program 72.4%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites79.5%
Taylor expanded in y around 0
Applied rewrites77.8%
if -1.75e-34 < t < 1150Initial program 81.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
Applied rewrites63.6%
Final simplification70.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- b) z) c)))
(if (<= b -3.3e+161)
t_1
(if (<= b -1.4e+58)
(* (* b t) i)
(if (<= b -1.05e-179)
(* (* y x) z)
(if (<= b 3.2e-43)
(* (* (- t) x) a)
(if (<= b 9e+123) t_1 (* (* i t) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-b * z) * c;
double tmp;
if (b <= -3.3e+161) {
tmp = t_1;
} else if (b <= -1.4e+58) {
tmp = (b * t) * i;
} else if (b <= -1.05e-179) {
tmp = (y * x) * z;
} else if (b <= 3.2e-43) {
tmp = (-t * x) * a;
} else if (b <= 9e+123) {
tmp = t_1;
} else {
tmp = (i * t) * 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) :: t_1
real(8) :: tmp
t_1 = (-b * z) * c
if (b <= (-3.3d+161)) then
tmp = t_1
else if (b <= (-1.4d+58)) then
tmp = (b * t) * i
else if (b <= (-1.05d-179)) then
tmp = (y * x) * z
else if (b <= 3.2d-43) then
tmp = (-t * x) * a
else if (b <= 9d+123) then
tmp = t_1
else
tmp = (i * t) * 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 t_1 = (-b * z) * c;
double tmp;
if (b <= -3.3e+161) {
tmp = t_1;
} else if (b <= -1.4e+58) {
tmp = (b * t) * i;
} else if (b <= -1.05e-179) {
tmp = (y * x) * z;
} else if (b <= 3.2e-43) {
tmp = (-t * x) * a;
} else if (b <= 9e+123) {
tmp = t_1;
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-b * z) * c tmp = 0 if b <= -3.3e+161: tmp = t_1 elif b <= -1.4e+58: tmp = (b * t) * i elif b <= -1.05e-179: tmp = (y * x) * z elif b <= 3.2e-43: tmp = (-t * x) * a elif b <= 9e+123: tmp = t_1 else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-b) * z) * c) tmp = 0.0 if (b <= -3.3e+161) tmp = t_1; elseif (b <= -1.4e+58) tmp = Float64(Float64(b * t) * i); elseif (b <= -1.05e-179) tmp = Float64(Float64(y * x) * z); elseif (b <= 3.2e-43) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (b <= 9e+123) tmp = t_1; else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-b * z) * c; tmp = 0.0; if (b <= -3.3e+161) tmp = t_1; elseif (b <= -1.4e+58) tmp = (b * t) * i; elseif (b <= -1.05e-179) tmp = (y * x) * z; elseif (b <= 3.2e-43) tmp = (-t * x) * a; elseif (b <= 9e+123) tmp = t_1; else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[b, -3.3e+161], t$95$1, If[LessEqual[b, -1.4e+58], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -1.05e-179], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 3.2e-43], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 9e+123], t$95$1, N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-b\right) \cdot z\right) \cdot c\\
\mathbf{if}\;b \leq -3.3 \cdot 10^{+161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{+58}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-179}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{-43}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+123}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if b < -3.29999999999999997e161 or 3.19999999999999985e-43 < b < 8.99999999999999965e123Initial program 77.9%
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-*.f6452.9
Applied rewrites52.9%
Taylor expanded in x around inf
Applied rewrites20.4%
Taylor expanded in x around 0
Applied rewrites43.6%
if -3.29999999999999997e161 < b < -1.3999999999999999e58Initial program 89.2%
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
lower-*.f6479.3
Applied rewrites79.3%
Taylor expanded in y around 0
Applied rewrites71.4%
if -1.3999999999999999e58 < b < -1.0499999999999999e-179Initial program 69.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-*.f6450.6
Applied rewrites50.6%
Taylor expanded in x around inf
Applied rewrites37.2%
if -1.0499999999999999e-179 < b < 3.19999999999999985e-43Initial program 79.6%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites76.2%
Taylor expanded in x around inf
Applied rewrites42.2%
if 8.99999999999999965e123 < b Initial program 72.4%
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
lower-*.f6462.4
Applied rewrites62.4%
Taylor expanded in y around 0
Applied rewrites56.1%
Final simplification45.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i t) b)) (t_2 (* (* (- b) z) c)))
(if (<= b -3.1e+161)
t_2
(if (<= b -1.2e+85)
t_1
(if (<= b -3.6e-285)
(* (* z y) x)
(if (<= b 2.8e+70) (* (* j i) (- y)) (if (<= b 9e+123) 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 = (i * t) * b;
double t_2 = (-b * z) * c;
double tmp;
if (b <= -3.1e+161) {
tmp = t_2;
} else if (b <= -1.2e+85) {
tmp = t_1;
} else if (b <= -3.6e-285) {
tmp = (z * y) * x;
} else if (b <= 2.8e+70) {
tmp = (j * i) * -y;
} else if (b <= 9e+123) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (i * t) * b
t_2 = (-b * z) * c
if (b <= (-3.1d+161)) then
tmp = t_2
else if (b <= (-1.2d+85)) then
tmp = t_1
else if (b <= (-3.6d-285)) then
tmp = (z * y) * x
else if (b <= 2.8d+70) then
tmp = (j * i) * -y
else if (b <= 9d+123) then
tmp = t_2
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 t_2 = (-b * z) * c;
double tmp;
if (b <= -3.1e+161) {
tmp = t_2;
} else if (b <= -1.2e+85) {
tmp = t_1;
} else if (b <= -3.6e-285) {
tmp = (z * y) * x;
} else if (b <= 2.8e+70) {
tmp = (j * i) * -y;
} else if (b <= 9e+123) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * t) * b t_2 = (-b * z) * c tmp = 0 if b <= -3.1e+161: tmp = t_2 elif b <= -1.2e+85: tmp = t_1 elif b <= -3.6e-285: tmp = (z * y) * x elif b <= 2.8e+70: tmp = (j * i) * -y elif b <= 9e+123: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * t) * b) t_2 = Float64(Float64(Float64(-b) * z) * c) tmp = 0.0 if (b <= -3.1e+161) tmp = t_2; elseif (b <= -1.2e+85) tmp = t_1; elseif (b <= -3.6e-285) tmp = Float64(Float64(z * y) * x); elseif (b <= 2.8e+70) tmp = Float64(Float64(j * i) * Float64(-y)); elseif (b <= 9e+123) tmp = t_2; 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; t_2 = (-b * z) * c; tmp = 0.0; if (b <= -3.1e+161) tmp = t_2; elseif (b <= -1.2e+85) tmp = t_1; elseif (b <= -3.6e-285) tmp = (z * y) * x; elseif (b <= 2.8e+70) tmp = (j * i) * -y; elseif (b <= 9e+123) tmp = t_2; 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]}, Block[{t$95$2 = N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[b, -3.1e+161], t$95$2, If[LessEqual[b, -1.2e+85], t$95$1, If[LessEqual[b, -3.6e-285], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 2.8e+70], N[(N[(j * i), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[b, 9e+123], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t\right) \cdot b\\
t_2 := \left(\left(-b\right) \cdot z\right) \cdot c\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+161}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-285}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+70}:\\
\;\;\;\;\left(j \cdot i\right) \cdot \left(-y\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.10000000000000007e161 or 2.7999999999999999e70 < b < 8.99999999999999965e123Initial program 75.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-*.f6454.2
Applied rewrites54.2%
Taylor expanded in x around inf
Applied rewrites19.2%
Taylor expanded in x around 0
Applied rewrites48.7%
if -3.10000000000000007e161 < b < -1.19999999999999998e85 or 8.99999999999999965e123 < b Initial program 77.7%
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
lower-*.f6469.2
Applied rewrites69.2%
Taylor expanded in y around 0
Applied rewrites64.0%
if -1.19999999999999998e85 < b < -3.60000000000000004e-285Initial program 74.2%
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-*.f6440.6
Applied rewrites40.6%
Taylor expanded in x around inf
Applied rewrites34.8%
if -3.60000000000000004e-285 < b < 2.7999999999999999e70Initial program 81.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
lower-*.f6436.0
Applied rewrites36.0%
Taylor expanded in y around -inf
Applied rewrites34.7%
Taylor expanded in y around inf
Applied rewrites30.0%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- z) c (* i t)) b)))
(if (<= b -1.9e+31)
t_1
(if (<= b 5e-222)
(* (* (- z (/ (* a t) y)) y) x)
(if (<= b 7.6e-96)
(fma (* (- a) x) t (* (* j c) a))
(if (<= b 3.1e+70) (* (fma (- i) j (* 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 = fma(-z, c, (i * t)) * b;
double tmp;
if (b <= -1.9e+31) {
tmp = t_1;
} else if (b <= 5e-222) {
tmp = ((z - ((a * t) / y)) * y) * x;
} else if (b <= 7.6e-96) {
tmp = fma((-a * x), t, ((j * c) * a));
} else if (b <= 3.1e+70) {
tmp = fma(-i, j, (z * x)) * y;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-z), c, Float64(i * t)) * b) tmp = 0.0 if (b <= -1.9e+31) tmp = t_1; elseif (b <= 5e-222) tmp = Float64(Float64(Float64(z - Float64(Float64(a * t) / y)) * y) * x); elseif (b <= 7.6e-96) tmp = fma(Float64(Float64(-a) * x), t, Float64(Float64(j * c) * a)); elseif (b <= 3.1e+70) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -1.9e+31], t$95$1, If[LessEqual[b, 5e-222], N[(N[(N[(z - N[(N[(a * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 7.6e-96], N[(N[((-a) * x), $MachinePrecision] * t + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e+70], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-222}:\\
\;\;\;\;\left(\left(z - \frac{a \cdot t}{y}\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-96}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot x, t, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+70}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.9000000000000001e31 or 3.1000000000000003e70 < b Initial program 78.5%
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
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.4
Applied rewrites71.4%
if -1.9000000000000001e31 < b < 5.00000000000000008e-222Initial program 71.4%
Taylor expanded in y around 0
Applied rewrites67.1%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.5
Applied rewrites66.5%
Taylor expanded in y around inf
Applied rewrites66.6%
if 5.00000000000000008e-222 < b < 7.6000000000000001e-96Initial program 81.8%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites85.2%
Taylor expanded in y around 0
Applied rewrites71.0%
Taylor expanded in x around inf
Applied rewrites63.3%
if 7.6000000000000001e-96 < b < 3.1000000000000003e70Initial program 83.5%
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-*.f6458.5
Applied rewrites58.5%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- z) c (* i t)) b)))
(if (<= b -1.9e+31)
t_1
(if (<= b 5e-222)
(* (fma z y (* (- a) t)) x)
(if (<= b 7.6e-96)
(fma (* (- a) x) t (* (* j c) a))
(if (<= b 3.1e+70) (* (fma (- i) j (* 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 = fma(-z, c, (i * t)) * b;
double tmp;
if (b <= -1.9e+31) {
tmp = t_1;
} else if (b <= 5e-222) {
tmp = fma(z, y, (-a * t)) * x;
} else if (b <= 7.6e-96) {
tmp = fma((-a * x), t, ((j * c) * a));
} else if (b <= 3.1e+70) {
tmp = fma(-i, j, (z * x)) * y;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-z), c, Float64(i * t)) * b) tmp = 0.0 if (b <= -1.9e+31) tmp = t_1; elseif (b <= 5e-222) tmp = Float64(fma(z, y, Float64(Float64(-a) * t)) * x); elseif (b <= 7.6e-96) tmp = fma(Float64(Float64(-a) * x), t, Float64(Float64(j * c) * a)); elseif (b <= 3.1e+70) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -1.9e+31], t$95$1, If[LessEqual[b, 5e-222], N[(N[(z * y + N[((-a) * t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 7.6e-96], N[(N[((-a) * x), $MachinePrecision] * t + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e+70], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-222}:\\
\;\;\;\;\mathsf{fma}\left(z, y, \left(-a\right) \cdot t\right) \cdot x\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-96}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot x, t, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+70}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.9000000000000001e31 or 3.1000000000000003e70 < b Initial program 78.5%
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
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.4
Applied rewrites71.4%
if -1.9000000000000001e31 < b < 5.00000000000000008e-222Initial program 71.4%
Taylor expanded in y around 0
Applied rewrites67.1%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.5
Applied rewrites66.5%
Applied rewrites66.6%
if 5.00000000000000008e-222 < b < 7.6000000000000001e-96Initial program 81.8%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites85.2%
Taylor expanded in y around 0
Applied rewrites71.0%
Taylor expanded in x around inf
Applied rewrites63.3%
if 7.6000000000000001e-96 < b < 3.1000000000000003e70Initial program 83.5%
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-*.f6458.5
Applied rewrites58.5%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- z) c (* i t)) b)))
(if (<= b -1.9e+31)
t_1
(if (<= b 3.4e-222)
(* (fma z y (* (- a) t)) x)
(if (<= b 7.6e-96)
(* (fma (- x) t (* j c)) a)
(if (<= b 3.1e+70) (* (fma (- i) j (* 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 = fma(-z, c, (i * t)) * b;
double tmp;
if (b <= -1.9e+31) {
tmp = t_1;
} else if (b <= 3.4e-222) {
tmp = fma(z, y, (-a * t)) * x;
} else if (b <= 7.6e-96) {
tmp = fma(-x, t, (j * c)) * a;
} else if (b <= 3.1e+70) {
tmp = fma(-i, j, (z * x)) * y;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-z), c, Float64(i * t)) * b) tmp = 0.0 if (b <= -1.9e+31) tmp = t_1; elseif (b <= 3.4e-222) tmp = Float64(fma(z, y, Float64(Float64(-a) * t)) * x); elseif (b <= 7.6e-96) tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); elseif (b <= 3.1e+70) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -1.9e+31], t$95$1, If[LessEqual[b, 3.4e-222], N[(N[(z * y + N[((-a) * t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 7.6e-96], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 3.1e+70], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-222}:\\
\;\;\;\;\mathsf{fma}\left(z, y, \left(-a\right) \cdot t\right) \cdot x\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-96}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+70}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.9000000000000001e31 or 3.1000000000000003e70 < b Initial program 78.5%
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
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.4
Applied rewrites71.4%
if -1.9000000000000001e31 < b < 3.4000000000000001e-222Initial program 71.4%
Taylor expanded in y around 0
Applied rewrites67.1%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.5
Applied rewrites66.5%
Applied rewrites66.6%
if 3.4000000000000001e-222 < b < 7.6000000000000001e-96Initial program 81.8%
Taylor expanded in a 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-*.f6463.0
Applied rewrites63.0%
if 7.6000000000000001e-96 < b < 3.1000000000000003e70Initial program 83.5%
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-*.f6458.5
Applied rewrites58.5%
Final simplification67.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- z) b (* j a)) c)) (t_2 (* (fma (- x) a (* i b)) t)))
(if (<= t -1.7e-55)
t_2
(if (<= t -7.5e-170)
t_1
(if (<= t 3.6e-77)
(* (fma (- i) j (* z x)) y)
(if (<= t 5e+65) 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(-z, b, (j * a)) * c;
double t_2 = fma(-x, a, (i * b)) * t;
double tmp;
if (t <= -1.7e-55) {
tmp = t_2;
} else if (t <= -7.5e-170) {
tmp = t_1;
} else if (t <= 3.6e-77) {
tmp = fma(-i, j, (z * x)) * y;
} else if (t <= 5e+65) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-z), b, Float64(j * a)) * c) t_2 = Float64(fma(Float64(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -1.7e-55) tmp = t_2; elseif (t <= -7.5e-170) tmp = t_1; elseif (t <= 3.6e-77) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (t <= 5e+65) 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[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.7e-55], t$95$2, If[LessEqual[t, -7.5e-170], t$95$1, If[LessEqual[t, 3.6e-77], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 5e+65], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
t_2 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{-55}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-77}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 5 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.69999999999999986e-55 or 4.99999999999999973e65 < t Initial program 70.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-*.f6474.9
Applied rewrites74.9%
if -1.69999999999999986e-55 < t < -7.4999999999999998e-170 or 3.6e-77 < t < 4.99999999999999973e65Initial program 81.2%
Taylor expanded in c 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
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.3
Applied rewrites55.3%
if -7.4999999999999998e-170 < t < 3.6e-77Initial program 85.4%
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-*.f6460.4
Applied rewrites60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma y x (* (- c) b)) z)) (t_2 (* (fma (- x) a (* i b)) t)))
(if (<= t -1.55e-34)
t_2
(if (<= t -1.3e-187)
t_1
(if (<= t 3e-35)
(* (fma (- i) j (* z x)) y)
(if (<= t 7.8e+36) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(y, x, (-c * b)) * z;
double t_2 = fma(-x, a, (i * b)) * t;
double tmp;
if (t <= -1.55e-34) {
tmp = t_2;
} else if (t <= -1.3e-187) {
tmp = t_1;
} else if (t <= 3e-35) {
tmp = fma(-i, j, (z * x)) * y;
} else if (t <= 7.8e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(y, x, Float64(Float64(-c) * b)) * z) t_2 = Float64(fma(Float64(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -1.55e-34) tmp = t_2; elseif (t <= -1.3e-187) tmp = t_1; elseif (t <= 3e-35) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (t <= 7.8e+36) 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[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.55e-34], t$95$2, If[LessEqual[t, -1.3e-187], t$95$1, If[LessEqual[t, 3e-35], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 7.8e+36], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
t_2 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{-34}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{-187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-35}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.5499999999999999e-34 or 7.80000000000000042e36 < t Initial program 71.1%
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.0
Applied rewrites76.0%
if -1.5499999999999999e-34 < t < -1.3e-187 or 2.99999999999999989e-35 < t < 7.80000000000000042e36Initial program 74.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-*.f6457.5
Applied rewrites57.5%
Applied rewrites57.6%
if -1.3e-187 < t < 2.99999999999999989e-35Initial program 87.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-*.f6456.5
Applied rewrites56.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i t) b)) (t_2 (* (* (- b) z) c)))
(if (<= b -3.1e+161)
t_2
(if (<= b -1.2e+85)
t_1
(if (<= b 3.1e-43) (* (* z y) x) (if (<= b 9e+123) 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 = (i * t) * b;
double t_2 = (-b * z) * c;
double tmp;
if (b <= -3.1e+161) {
tmp = t_2;
} else if (b <= -1.2e+85) {
tmp = t_1;
} else if (b <= 3.1e-43) {
tmp = (z * y) * x;
} else if (b <= 9e+123) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (i * t) * b
t_2 = (-b * z) * c
if (b <= (-3.1d+161)) then
tmp = t_2
else if (b <= (-1.2d+85)) then
tmp = t_1
else if (b <= 3.1d-43) then
tmp = (z * y) * x
else if (b <= 9d+123) then
tmp = t_2
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 t_2 = (-b * z) * c;
double tmp;
if (b <= -3.1e+161) {
tmp = t_2;
} else if (b <= -1.2e+85) {
tmp = t_1;
} else if (b <= 3.1e-43) {
tmp = (z * y) * x;
} else if (b <= 9e+123) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * t) * b t_2 = (-b * z) * c tmp = 0 if b <= -3.1e+161: tmp = t_2 elif b <= -1.2e+85: tmp = t_1 elif b <= 3.1e-43: tmp = (z * y) * x elif b <= 9e+123: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * t) * b) t_2 = Float64(Float64(Float64(-b) * z) * c) tmp = 0.0 if (b <= -3.1e+161) tmp = t_2; elseif (b <= -1.2e+85) tmp = t_1; elseif (b <= 3.1e-43) tmp = Float64(Float64(z * y) * x); elseif (b <= 9e+123) tmp = t_2; 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; t_2 = (-b * z) * c; tmp = 0.0; if (b <= -3.1e+161) tmp = t_2; elseif (b <= -1.2e+85) tmp = t_1; elseif (b <= 3.1e-43) tmp = (z * y) * x; elseif (b <= 9e+123) tmp = t_2; 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]}, Block[{t$95$2 = N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[b, -3.1e+161], t$95$2, If[LessEqual[b, -1.2e+85], t$95$1, If[LessEqual[b, 3.1e-43], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 9e+123], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t\right) \cdot b\\
t_2 := \left(\left(-b\right) \cdot z\right) \cdot c\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+161}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-43}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.10000000000000007e161 or 3.0999999999999999e-43 < b < 8.99999999999999965e123Initial program 77.9%
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-*.f6452.9
Applied rewrites52.9%
Taylor expanded in x around inf
Applied rewrites20.4%
Taylor expanded in x around 0
Applied rewrites43.6%
if -3.10000000000000007e161 < b < -1.19999999999999998e85 or 8.99999999999999965e123 < b Initial program 77.7%
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
lower-*.f6469.2
Applied rewrites69.2%
Taylor expanded in y around 0
Applied rewrites64.0%
if -1.19999999999999998e85 < b < 3.0999999999999999e-43Initial program 76.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-*.f6432.8
Applied rewrites32.8%
Taylor expanded in x around inf
Applied rewrites28.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- c) z) b)))
(if (<= b -6.5e+162)
t_1
(if (<= b -1.4e+58)
(* (* b t) i)
(if (<= b 3.4e+71)
(* (* y x) z)
(if (<= b 9e+123) t_1 (* (* i t) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-c * z) * b;
double tmp;
if (b <= -6.5e+162) {
tmp = t_1;
} else if (b <= -1.4e+58) {
tmp = (b * t) * i;
} else if (b <= 3.4e+71) {
tmp = (y * x) * z;
} else if (b <= 9e+123) {
tmp = t_1;
} else {
tmp = (i * t) * 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) :: t_1
real(8) :: tmp
t_1 = (-c * z) * b
if (b <= (-6.5d+162)) then
tmp = t_1
else if (b <= (-1.4d+58)) then
tmp = (b * t) * i
else if (b <= 3.4d+71) then
tmp = (y * x) * z
else if (b <= 9d+123) then
tmp = t_1
else
tmp = (i * t) * 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 t_1 = (-c * z) * b;
double tmp;
if (b <= -6.5e+162) {
tmp = t_1;
} else if (b <= -1.4e+58) {
tmp = (b * t) * i;
} else if (b <= 3.4e+71) {
tmp = (y * x) * z;
} else if (b <= 9e+123) {
tmp = t_1;
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-c * z) * b tmp = 0 if b <= -6.5e+162: tmp = t_1 elif b <= -1.4e+58: tmp = (b * t) * i elif b <= 3.4e+71: tmp = (y * x) * z elif b <= 9e+123: tmp = t_1 else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-c) * z) * b) tmp = 0.0 if (b <= -6.5e+162) tmp = t_1; elseif (b <= -1.4e+58) tmp = Float64(Float64(b * t) * i); elseif (b <= 3.4e+71) tmp = Float64(Float64(y * x) * z); elseif (b <= 9e+123) tmp = t_1; else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-c * z) * b; tmp = 0.0; if (b <= -6.5e+162) tmp = t_1; elseif (b <= -1.4e+58) tmp = (b * t) * i; elseif (b <= 3.4e+71) tmp = (y * x) * z; elseif (b <= 9e+123) tmp = t_1; else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -6.5e+162], t$95$1, If[LessEqual[b, -1.4e+58], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 3.4e+71], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 9e+123], t$95$1, N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-c\right) \cdot z\right) \cdot b\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{+58}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+71}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+123}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if b < -6.5000000000000004e162 or 3.3999999999999998e71 < b < 8.99999999999999965e123Initial program 75.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-*.f6454.2
Applied rewrites54.2%
Taylor expanded in x around 0
Applied rewrites47.9%
if -6.5000000000000004e162 < b < -1.3999999999999999e58Initial program 89.2%
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
lower-*.f6479.3
Applied rewrites79.3%
Taylor expanded in y around 0
Applied rewrites71.4%
if -1.3999999999999999e58 < b < 3.3999999999999998e71Initial 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-*.f6435.4
Applied rewrites35.4%
Taylor expanded in x around inf
Applied rewrites28.2%
if 8.99999999999999965e123 < b Initial program 72.4%
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
lower-*.f6462.4
Applied rewrites62.4%
Taylor expanded in y around 0
Applied rewrites56.1%
Final simplification38.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma t b (* (- y) j)) i)))
(if (<= i -6e-129)
t_1
(if (<= i -1.8e-201)
(* (* (- t) x) a)
(if (<= i 1.3e+33) (* (fma y x (* (- c) b)) 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(t, b, (-y * j)) * i;
double tmp;
if (i <= -6e-129) {
tmp = t_1;
} else if (i <= -1.8e-201) {
tmp = (-t * x) * a;
} else if (i <= 1.3e+33) {
tmp = fma(y, x, (-c * b)) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(t, b, Float64(Float64(-y) * j)) * i) tmp = 0.0 if (i <= -6e-129) tmp = t_1; elseif (i <= -1.8e-201) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (i <= 1.3e+33) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * 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[(t * b + N[((-y) * j), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -6e-129], t$95$1, If[LessEqual[i, -1.8e-201], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 1.3e+33], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, b, \left(-y\right) \cdot j\right) \cdot i\\
\mathbf{if}\;i \leq -6 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.8 \cdot 10^{-201}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{+33}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -5.9999999999999996e-129 or 1.2999999999999999e33 < i Initial program 71.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
lower-*.f6456.9
Applied rewrites56.9%
Applied rewrites57.6%
if -5.9999999999999996e-129 < i < -1.80000000000000016e-201Initial program 77.8%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites77.0%
Taylor expanded in x around inf
Applied rewrites69.8%
if -1.80000000000000016e-201 < i < 1.2999999999999999e33Initial program 86.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-*.f6448.5
Applied rewrites48.5%
Applied rewrites48.5%
Final simplification55.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma t b (* (- y) j)) i)))
(if (<= i -2.6e-8)
t_1
(if (<= i 2.1e+63) (* (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(t, b, (-y * j)) * i;
double tmp;
if (i <= -2.6e-8) {
tmp = t_1;
} else if (i <= 2.1e+63) {
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(t, b, Float64(Float64(-y) * j)) * i) tmp = 0.0 if (i <= -2.6e-8) tmp = t_1; elseif (i <= 2.1e+63) 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[(t * b + N[((-y) * j), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -2.6e-8], t$95$1, If[LessEqual[i, 2.1e+63], 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(t, b, \left(-y\right) \cdot j\right) \cdot i\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.1 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.6000000000000001e-8 or 2.1000000000000002e63 < i Initial program 70.5%
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
lower-*.f6465.6
Applied rewrites65.6%
Applied rewrites65.6%
if -2.6000000000000001e-8 < i < 2.1000000000000002e63Initial program 82.6%
Taylor expanded in y around 0
Applied rewrites85.7%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.8
Applied rewrites54.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma t b (* (- y) j)) i)))
(if (<= i -2.6e-8)
t_1
(if (<= i 2.8e+62) (* (fma z y (* (- a) t)) 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(t, b, (-y * j)) * i;
double tmp;
if (i <= -2.6e-8) {
tmp = t_1;
} else if (i <= 2.8e+62) {
tmp = fma(z, y, (-a * t)) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(t, b, Float64(Float64(-y) * j)) * i) tmp = 0.0 if (i <= -2.6e-8) tmp = t_1; elseif (i <= 2.8e+62) tmp = Float64(fma(z, y, Float64(Float64(-a) * t)) * 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[(t * b + N[((-y) * j), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -2.6e-8], t$95$1, If[LessEqual[i, 2.8e+62], N[(N[(z * y + N[((-a) * t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, b, \left(-y\right) \cdot j\right) \cdot i\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{+62}:\\
\;\;\;\;\mathsf{fma}\left(z, y, \left(-a\right) \cdot t\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.6000000000000001e-8 or 2.80000000000000014e62 < i Initial program 70.5%
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
lower-*.f6465.6
Applied rewrites65.6%
Applied rewrites65.6%
if -2.6000000000000001e-8 < i < 2.80000000000000014e62Initial program 82.6%
Taylor expanded in y around 0
Applied rewrites85.7%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.8
Applied rewrites54.8%
Applied rewrites54.2%
Final simplification59.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (fma t b (* (- y) j)) i))) (if (<= i -6.5e-129) t_1 (if (<= i 1.9e-10) (* (* (- a) t) 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(t, b, (-y * j)) * i;
double tmp;
if (i <= -6.5e-129) {
tmp = t_1;
} else if (i <= 1.9e-10) {
tmp = (-a * t) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(t, b, Float64(Float64(-y) * j)) * i) tmp = 0.0 if (i <= -6.5e-129) tmp = t_1; elseif (i <= 1.9e-10) tmp = Float64(Float64(Float64(-a) * t) * 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[(t * b + N[((-y) * j), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -6.5e-129], t$95$1, If[LessEqual[i, 1.9e-10], N[(N[((-a) * t), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, b, \left(-y\right) \cdot j\right) \cdot i\\
\mathbf{if}\;i \leq -6.5 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.9 \cdot 10^{-10}:\\
\;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -6.49999999999999952e-129 or 1.8999999999999999e-10 < i Initial program 73.1%
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
lower-*.f6454.7
Applied rewrites54.7%
Applied rewrites55.4%
if -6.49999999999999952e-129 < i < 1.8999999999999999e-10Initial program 84.8%
Taylor expanded in y around 0
Applied rewrites88.4%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.5
Applied rewrites61.5%
Taylor expanded in y around 0
Applied rewrites39.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.66e-34) (* (* i t) b) (if (<= t 4200000000.0) (* (* 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 <= -1.66e-34) {
tmp = (i * t) * b;
} else if (t <= 4200000000.0) {
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 <= (-1.66d-34)) then
tmp = (i * t) * b
else if (t <= 4200000000.0d0) 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 <= -1.66e-34) {
tmp = (i * t) * b;
} else if (t <= 4200000000.0) {
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 <= -1.66e-34: tmp = (i * t) * b elif t <= 4200000000.0: 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 <= -1.66e-34) tmp = Float64(Float64(i * t) * b); elseif (t <= 4200000000.0) 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 <= -1.66e-34) tmp = (i * t) * b; elseif (t <= 4200000000.0) 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, -1.66e-34], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 4200000000.0], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.66 \cdot 10^{-34}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;t \leq 4200000000:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if t < -1.6599999999999999e-34Initial program 74.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
lower-*.f6446.0
Applied rewrites46.0%
Taylor expanded in y around 0
Applied rewrites39.4%
if -1.6599999999999999e-34 < t < 4.2e9Initial program 82.1%
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-*.f6449.1
Applied rewrites49.1%
Taylor expanded in x around inf
Applied rewrites31.0%
if 4.2e9 < t Initial program 69.7%
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
lower-*.f6440.1
Applied rewrites40.1%
Taylor expanded in y around 0
Applied rewrites36.8%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* i t) b))) (if (<= b -1.4e+58) t_1 (if (<= b 7.8e+70) (* (* 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 = (i * t) * b;
double tmp;
if (b <= -1.4e+58) {
tmp = t_1;
} else if (b <= 7.8e+70) {
tmp = (y * x) * z;
} 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 (b <= (-1.4d+58)) then
tmp = t_1
else if (b <= 7.8d+70) then
tmp = (y * x) * z
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 (b <= -1.4e+58) {
tmp = t_1;
} else if (b <= 7.8e+70) {
tmp = (y * x) * z;
} 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 b <= -1.4e+58: tmp = t_1 elif b <= 7.8e+70: tmp = (y * x) * z 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 (b <= -1.4e+58) tmp = t_1; elseif (b <= 7.8e+70) tmp = Float64(Float64(y * x) * z); 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 (b <= -1.4e+58) tmp = t_1; elseif (b <= 7.8e+70) tmp = (y * x) * z; 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[b, -1.4e+58], t$95$1, If[LessEqual[b, 7.8e+70], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t\right) \cdot b\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{+70}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.3999999999999999e58 or 7.79999999999999949e70 < b Initial program 77.1%
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
lower-*.f6453.4
Applied rewrites53.4%
Taylor expanded in y around 0
Applied rewrites42.0%
if -1.3999999999999999e58 < b < 7.79999999999999949e70Initial 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-*.f6435.4
Applied rewrites35.4%
Taylor expanded in x around inf
Applied rewrites28.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* i t) b))) (if (<= b -1.2e+85) t_1 (if (<= b 3e+70) (* (* 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 (b <= -1.2e+85) {
tmp = t_1;
} else if (b <= 3e+70) {
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 (b <= (-1.2d+85)) then
tmp = t_1
else if (b <= 3d+70) 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 (b <= -1.2e+85) {
tmp = t_1;
} else if (b <= 3e+70) {
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 b <= -1.2e+85: tmp = t_1 elif b <= 3e+70: 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 (b <= -1.2e+85) tmp = t_1; elseif (b <= 3e+70) 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 (b <= -1.2e+85) tmp = t_1; elseif (b <= 3e+70) 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[b, -1.2e+85], t$95$1, If[LessEqual[b, 3e+70], 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}\;b \leq -1.2 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+70}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.19999999999999998e85 or 2.99999999999999976e70 < b Initial program 76.5%
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
lower-*.f6453.0
Applied rewrites53.0%
Taylor expanded in y around 0
Applied rewrites42.2%
if -1.19999999999999998e85 < b < 2.99999999999999976e70Initial program 77.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-*.f6434.8
Applied rewrites34.8%
Taylor expanded in x around inf
Applied rewrites28.3%
(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.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-*.f6438.4
Applied rewrites38.4%
Taylor expanded in x around inf
Applied rewrites22.9%
(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 77.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-*.f6438.4
Applied rewrites38.4%
Taylor expanded in x around inf
Applied rewrites22.9%
Applied rewrites20.9%
(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 2024294
(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)))))