
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c a) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))))
(if (<= t_1 INFINITY) t_1 (fma (* j a) c (* (fma (- j) i (* z x)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double 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((j * a), c, (fma(-j, i, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(Float64(j * a), c, Float64(fma(Float64(-j), i, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(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 * a), $MachinePrecision] * c + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $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(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.5
Applied rewrites43.5%
Taylor expanded in y around 0
Applied rewrites58.5%
Taylor expanded in t around 0
Applied rewrites60.6%
Final simplification83.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))
(t_2 (- (* (- (* c a) (* i y)) j) t_1)))
(if (<= t_2 5e+181)
(fma
(fma (- z) c (* i t))
b
(fma (fma (- x) t (* j c)) a (* (fma (- i) j (* z x)) y)))
(if (<= t_2 INFINITY)
(- (* (* j c) a) t_1)
(fma (* j a) c (* (fma (- j) i (* z x)) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b);
double t_2 = (((c * a) - (i * y)) * j) - t_1;
double tmp;
if (t_2 <= 5e+181) {
tmp = fma(fma(-z, c, (i * t)), b, fma(fma(-x, t, (j * c)), a, (fma(-i, j, (z * x)) * y)));
} else if (t_2 <= ((double) INFINITY)) {
tmp = ((j * c) * a) - t_1;
} else {
tmp = fma((j * a), c, (fma(-j, i, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b)) t_2 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - t_1) tmp = 0.0 if (t_2 <= 5e+181) 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))); elseif (t_2 <= Inf) tmp = Float64(Float64(Float64(j * c) * a) - t_1); else tmp = fma(Float64(j * a), c, Float64(fma(Float64(-j), i, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(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]}, Block[{t$95$2 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, 5e+181], 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], If[LessEqual[t$95$2, Infinity], N[(N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\\
t_2 := \left(c \cdot a - i \cdot y\right) \cdot j - t\_1\\
\mathbf{if}\;t\_2 \leq 5 \cdot 10^{+181}:\\
\;\;\;\;\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{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\left(j \cdot c\right) \cdot a - t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 5.0000000000000003e181Initial program 88.7%
Taylor expanded in y around 0
Applied rewrites84.3%
if 5.0000000000000003e181 < (+.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.8%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6484.8
Applied rewrites84.8%
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 b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.5
Applied rewrites43.5%
Taylor expanded in y around 0
Applied rewrites58.5%
Taylor expanded in t around 0
Applied rewrites60.6%
Final simplification79.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -8.8e+100)
(fma (* j a) c (* (fma (- j) i (* z x)) y))
(if (<= y 900000000000.0)
(-
(fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
(* (fma (- t) b (* j y)) i))
(fma
(fma (- z) c (* i t))
b
(fma (fma (- x) t (* j c)) a (* (fma (- i) j (* z x)) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8.8e+100) {
tmp = fma((j * a), c, (fma(-j, i, (z * x)) * y));
} else if (y <= 900000000000.0) {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x)) - (fma(-t, b, (j * y)) * i);
} else {
tmp = fma(fma(-z, c, (i * t)), b, fma(fma(-x, t, (j * c)), a, (fma(-i, j, (z * x)) * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -8.8e+100) tmp = fma(Float64(j * a), c, Float64(fma(Float64(-j), i, Float64(z * x)) * y)); elseif (y <= 900000000000.0) 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(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))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -8.8e+100], N[(N[(j * a), $MachinePrecision] * c + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 900000000000.0], 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[(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]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.8 \cdot 10^{+100}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
\mathbf{elif}\;y \leq 900000000000:\\
\;\;\;\;\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(\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)\\
\end{array}
\end{array}
if y < -8.8000000000000003e100Initial program 56.1%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.4
Applied rewrites69.4%
Taylor expanded in y around 0
Applied rewrites78.3%
Taylor expanded in t around 0
Applied rewrites83.7%
if -8.8000000000000003e100 < y < 9e11Initial program 79.1%
Taylor expanded in c around 0
Applied rewrites81.7%
if 9e11 < y Initial program 63.0%
Taylor expanded in y around 0
Applied rewrites84.3%
Final simplification82.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -5.9e+117)
(fma (* j a) c (* (fma (- j) i (* z x)) y))
(if (<= y 2e+29)
(- (* (* j c) a) (- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))
(fma (fma (- x) t (* j c)) a (* (fma (- i) j (* z x)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -5.9e+117) {
tmp = fma((j * a), c, (fma(-j, i, (z * x)) * y));
} else if (y <= 2e+29) {
tmp = ((j * c) * a) - ((((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b));
} else {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-i, j, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -5.9e+117) tmp = fma(Float64(j * a), c, Float64(fma(Float64(-j), i, Float64(z * x)) * y)); elseif (y <= 2e+29) tmp = Float64(Float64(Float64(j * c) * a) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b))); else tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -5.9e+117], N[(N[(j * a), $MachinePrecision] * c + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+29], N[(N[(N[(j * c), $MachinePrecision] * a), $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], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.9 \cdot 10^{+117}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+29}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\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)\\
\end{array}
\end{array}
if y < -5.8999999999999997e117Initial program 54.4%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.2
Applied rewrites68.2%
Taylor expanded in y around 0
Applied rewrites77.5%
Taylor expanded in t around 0
Applied rewrites83.1%
if -5.8999999999999997e117 < y < 1.99999999999999983e29Initial program 79.3%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6475.3
Applied rewrites75.3%
if 1.99999999999999983e29 < y Initial program 61.2%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.0
Applied rewrites70.0%
Taylor expanded in y around 0
Applied rewrites80.6%
Final simplification77.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- x) t (* j c)))
(t_2 (* (fma (- i) j (* z x)) y))
(t_3 (fma (- z) c (* i t))))
(if (<= a -2.8e+31)
(fma t_3 b (* t_1 a))
(if (<= a -2.6e-157)
(fma (- i) (* j y) (fma (* i b) t (* (fma (- b) c (* y x)) z)))
(if (<= a 2.8e-55) (fma t_3 b t_2) (fma t_1 a 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(-x, t, (j * c));
double t_2 = fma(-i, j, (z * x)) * y;
double t_3 = fma(-z, c, (i * t));
double tmp;
if (a <= -2.8e+31) {
tmp = fma(t_3, b, (t_1 * a));
} else if (a <= -2.6e-157) {
tmp = fma(-i, (j * y), fma((i * b), t, (fma(-b, c, (y * x)) * z)));
} else if (a <= 2.8e-55) {
tmp = fma(t_3, b, t_2);
} else {
tmp = fma(t_1, a, t_2);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-x), t, Float64(j * c)) t_2 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) t_3 = fma(Float64(-z), c, Float64(i * t)) tmp = 0.0 if (a <= -2.8e+31) tmp = fma(t_3, b, Float64(t_1 * a)); elseif (a <= -2.6e-157) tmp = fma(Float64(-i), Float64(j * y), fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z))); elseif (a <= 2.8e-55) tmp = fma(t_3, b, t_2); else tmp = fma(t_1, a, t_2); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$3 = N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.8e+31], N[(t$95$3 * b + N[(t$95$1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.6e-157], N[((-i) * N[(j * y), $MachinePrecision] + N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-55], N[(t$95$3 * b + t$95$2), $MachinePrecision], N[(t$95$1 * a + t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right)\\
t_2 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
t_3 := \mathsf{fma}\left(-z, c, i \cdot t\right)\\
\mathbf{if}\;a \leq -2.8 \cdot 10^{+31}:\\
\;\;\;\;\mathsf{fma}\left(t\_3, b, t\_1 \cdot a\right)\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-157}:\\
\;\;\;\;\mathsf{fma}\left(-i, j \cdot y, \mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-55}:\\
\;\;\;\;\mathsf{fma}\left(t\_3, b, t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, t\_2\right)\\
\end{array}
\end{array}
if a < -2.80000000000000017e31Initial program 63.3%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
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 rewrites76.2%
if -2.80000000000000017e31 < a < -2.59999999999999988e-157Initial program 71.0%
Taylor expanded in b around inf
*-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate--r-N/A
lower-*.f64N/A
Applied rewrites65.2%
Taylor expanded in a around 0
Applied rewrites76.8%
if -2.59999999999999988e-157 < a < 2.79999999999999984e-55Initial program 82.6%
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 rewrites83.3%
if 2.79999999999999984e-55 < a Initial program 64.3%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.0
Applied rewrites70.0%
Taylor expanded in y around 0
Applied rewrites72.2%
Final simplification77.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- x) t (* j c)))
(t_2 (* (fma (- i) j (* z x)) y))
(t_3 (fma (- z) c (* i t))))
(if (<= a -1.32e+29)
(fma t_3 b (* t_1 a))
(if (<= a -2.75e-157)
(fma (* i b) t (* (fma (- b) c (* y x)) z))
(if (<= a 2.8e-55) (fma t_3 b t_2) (fma t_1 a 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(-x, t, (j * c));
double t_2 = fma(-i, j, (z * x)) * y;
double t_3 = fma(-z, c, (i * t));
double tmp;
if (a <= -1.32e+29) {
tmp = fma(t_3, b, (t_1 * a));
} else if (a <= -2.75e-157) {
tmp = fma((i * b), t, (fma(-b, c, (y * x)) * z));
} else if (a <= 2.8e-55) {
tmp = fma(t_3, b, t_2);
} else {
tmp = fma(t_1, a, t_2);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-x), t, Float64(j * c)) t_2 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) t_3 = fma(Float64(-z), c, Float64(i * t)) tmp = 0.0 if (a <= -1.32e+29) tmp = fma(t_3, b, Float64(t_1 * a)); elseif (a <= -2.75e-157) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); elseif (a <= 2.8e-55) tmp = fma(t_3, b, t_2); else tmp = fma(t_1, a, t_2); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$3 = N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.32e+29], N[(t$95$3 * b + N[(t$95$1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.75e-157], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-55], N[(t$95$3 * b + t$95$2), $MachinePrecision], N[(t$95$1 * a + t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right)\\
t_2 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
t_3 := \mathsf{fma}\left(-z, c, i \cdot t\right)\\
\mathbf{if}\;a \leq -1.32 \cdot 10^{+29}:\\
\;\;\;\;\mathsf{fma}\left(t\_3, b, t\_1 \cdot a\right)\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-157}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-55}:\\
\;\;\;\;\mathsf{fma}\left(t\_3, b, t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, t\_2\right)\\
\end{array}
\end{array}
if a < -1.32e29Initial program 63.3%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
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 rewrites76.2%
if -1.32e29 < a < -2.7499999999999999e-157Initial program 71.0%
Taylor expanded in c around -inf
Applied rewrites69.2%
Taylor expanded in j around 0
sub-negN/A
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6460.8
Applied rewrites60.8%
Taylor expanded in a around 0
Applied rewrites72.8%
if -2.7499999999999999e-157 < a < 2.79999999999999984e-55Initial program 82.6%
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 rewrites83.3%
if 2.79999999999999984e-55 < a Initial program 64.3%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.0
Applied rewrites70.0%
Taylor expanded in y around 0
Applied rewrites72.2%
Final simplification76.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y))
(t_2 (fma (fma (- x) t (* j c)) a t_1)))
(if (<= a -8.8e+83)
t_2
(if (<= a -2.75e-157)
(fma (* i b) t (* (fma (- b) c (* y x)) z))
(if (<= a 2.8e-55) (fma (fma (- z) c (* i t)) 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 = fma(-i, j, (z * x)) * y;
double t_2 = fma(fma(-x, t, (j * c)), a, t_1);
double tmp;
if (a <= -8.8e+83) {
tmp = t_2;
} else if (a <= -2.75e-157) {
tmp = fma((i * b), t, (fma(-b, c, (y * x)) * z));
} else if (a <= 2.8e-55) {
tmp = fma(fma(-z, c, (i * t)), b, t_1);
} else {
tmp = t_2;
}
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(fma(Float64(-x), t, Float64(j * c)), a, t_1) tmp = 0.0 if (a <= -8.8e+83) tmp = t_2; elseif (a <= -2.75e-157) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); elseif (a <= 2.8e-55) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, 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[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + t$95$1), $MachinePrecision]}, If[LessEqual[a, -8.8e+83], t$95$2, If[LessEqual[a, -2.75e-157], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-55], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, t\_1\right)\\
\mathbf{if}\;a \leq -8.8 \cdot 10^{+83}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-157}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-55}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.79999999999999995e83 or 2.79999999999999984e-55 < a Initial program 63.9%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.5
Applied rewrites69.5%
Taylor expanded in y around 0
Applied rewrites74.1%
if -8.79999999999999995e83 < a < -2.7499999999999999e-157Initial program 70.5%
Taylor expanded in c around -inf
Applied rewrites72.6%
Taylor expanded in j around 0
sub-negN/A
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6461.5
Applied rewrites61.5%
Taylor expanded in a around 0
Applied rewrites70.4%
if -2.7499999999999999e-157 < a < 2.79999999999999984e-55Initial program 82.6%
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 rewrites83.3%
Final simplification76.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -0.039)
(fma (fma (- a) t (* z y)) x (* (fma z c (* (- i) t)) (- b)))
(if (<= b 1.62e+156)
(fma (fma (- t) a (* z y)) x (* (fma (- i) y (* c a)) j))
(fma (fma (- z) c (* i t)) b (* (fma (- i) j (* z x)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -0.039) {
tmp = fma(fma(-a, t, (z * y)), x, (fma(z, c, (-i * t)) * -b));
} else if (b <= 1.62e+156) {
tmp = fma(fma(-t, a, (z * y)), x, (fma(-i, y, (c * a)) * j));
} else {
tmp = fma(fma(-z, c, (i * t)), b, (fma(-i, j, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -0.039) tmp = fma(fma(Float64(-a), t, Float64(z * y)), x, Float64(fma(z, c, Float64(Float64(-i) * t)) * Float64(-b))); elseif (b <= 1.62e+156) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); else tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(fma(Float64(-i), j, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -0.039], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[(z * c + N[((-i) * t), $MachinePrecision]), $MachinePrecision] * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.62e+156], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.039:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, t, z \cdot y\right), x, \mathsf{fma}\left(z, c, \left(-i\right) \cdot t\right) \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq 1.62 \cdot 10^{+156}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\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)\\
\end{array}
\end{array}
if b < -0.0389999999999999999Initial program 76.5%
Taylor expanded in c around -inf
Applied rewrites77.0%
Taylor expanded in j around 0
sub-negN/A
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6478.3
Applied rewrites78.3%
if -0.0389999999999999999 < b < 1.62000000000000006e156Initial program 69.4%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.2
Applied rewrites70.2%
if 1.62000000000000006e156 < b Initial program 66.5%
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.5%
Final simplification75.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- x) t (* j c)) a (* (fma (- i) j (* z x)) y))))
(if (<= a -8.8e+83)
t_1
(if (<= a 2.8e-55) (fma (* i b) t (* (fma (- b) c (* y x)) z)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-x, t, (j * c)), a, (fma(-i, j, (z * x)) * y));
double tmp;
if (a <= -8.8e+83) {
tmp = t_1;
} else if (a <= 2.8e-55) {
tmp = fma((i * b), t, (fma(-b, c, (y * x)) * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y)) tmp = 0.0 if (a <= -8.8e+83) tmp = t_1; elseif (a <= 2.8e-55) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.8e+83], t$95$1, If[LessEqual[a, 2.8e-55], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\mathbf{if}\;a \leq -8.8 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-55}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -8.79999999999999995e83 or 2.79999999999999984e-55 < a Initial program 63.9%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.5
Applied rewrites69.5%
Taylor expanded in y around 0
Applied rewrites74.1%
if -8.79999999999999995e83 < a < 2.79999999999999984e-55Initial program 77.8%
Taylor expanded in c around -inf
Applied rewrites72.5%
Taylor expanded in j around 0
sub-negN/A
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.5
Applied rewrites70.5%
Taylor expanded in a around 0
Applied rewrites70.2%
Final simplification72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* (* z x) y) (* (- (* c a) (* i y)) j))))
(if (<= j -4.8e-14)
t_1
(if (<= j 1.25e-63) (fma (* i b) t (* (fma (- b) c (* y x)) z)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((z * x) * y) + (((c * a) - (i * y)) * j);
double tmp;
if (j <= -4.8e-14) {
tmp = t_1;
} else if (j <= 1.25e-63) {
tmp = fma((i * b), t, (fma(-b, c, (y * x)) * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(z * x) * y) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)) tmp = 0.0 if (j <= -4.8e-14) tmp = t_1; elseif (j <= 1.25e-63) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.8e-14], t$95$1, If[LessEqual[j, 1.25e-63], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot x\right) \cdot y + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{if}\;j \leq -4.8 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-63}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -4.8e-14 or 1.25e-63 < j Initial program 74.8%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6470.0
Applied rewrites70.0%
if -4.8e-14 < j < 1.25e-63Initial program 65.7%
Taylor expanded in c around -inf
Applied rewrites72.0%
Taylor expanded in j around 0
sub-negN/A
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6471.6
Applied rewrites71.6%
Taylor expanded in a around 0
Applied rewrites68.5%
Final simplification69.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.65e+221)
(* (* b t) i)
(if (<= i -2e+105)
(* (* (- i) j) y)
(if (<= i -3.8e-194)
(* (* y x) z)
(if (<= i 5.1e-259)
(* (* j a) c)
(if (<= i 1.75e+145) (* (* z x) y) (* (* (- j) y) i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.65e+221) {
tmp = (b * t) * i;
} else if (i <= -2e+105) {
tmp = (-i * j) * y;
} else if (i <= -3.8e-194) {
tmp = (y * x) * z;
} else if (i <= 5.1e-259) {
tmp = (j * a) * c;
} else if (i <= 1.75e+145) {
tmp = (z * x) * y;
} else {
tmp = (-j * y) * i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-2.65d+221)) then
tmp = (b * t) * i
else if (i <= (-2d+105)) then
tmp = (-i * j) * y
else if (i <= (-3.8d-194)) then
tmp = (y * x) * z
else if (i <= 5.1d-259) then
tmp = (j * a) * c
else if (i <= 1.75d+145) then
tmp = (z * x) * y
else
tmp = (-j * y) * i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.65e+221) {
tmp = (b * t) * i;
} else if (i <= -2e+105) {
tmp = (-i * j) * y;
} else if (i <= -3.8e-194) {
tmp = (y * x) * z;
} else if (i <= 5.1e-259) {
tmp = (j * a) * c;
} else if (i <= 1.75e+145) {
tmp = (z * x) * y;
} else {
tmp = (-j * y) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2.65e+221: tmp = (b * t) * i elif i <= -2e+105: tmp = (-i * j) * y elif i <= -3.8e-194: tmp = (y * x) * z elif i <= 5.1e-259: tmp = (j * a) * c elif i <= 1.75e+145: tmp = (z * x) * y else: tmp = (-j * y) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.65e+221) tmp = Float64(Float64(b * t) * i); elseif (i <= -2e+105) tmp = Float64(Float64(Float64(-i) * j) * y); elseif (i <= -3.8e-194) tmp = Float64(Float64(y * x) * z); elseif (i <= 5.1e-259) tmp = Float64(Float64(j * a) * c); elseif (i <= 1.75e+145) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(Float64(-j) * y) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2.65e+221) tmp = (b * t) * i; elseif (i <= -2e+105) tmp = (-i * j) * y; elseif (i <= -3.8e-194) tmp = (y * x) * z; elseif (i <= 5.1e-259) tmp = (j * a) * c; elseif (i <= 1.75e+145) tmp = (z * x) * y; else tmp = (-j * y) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.65e+221], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, -2e+105], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, -3.8e-194], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 5.1e-259], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[i, 1.75e+145], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq -2 \cdot 10^{+105}:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{elif}\;i \leq -3.8 \cdot 10^{-194}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;i \leq 5.1 \cdot 10^{-259}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{+145}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
\end{array}
\end{array}
if i < -2.6499999999999998e221Initial program 38.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-*.f6469.8
Applied rewrites69.8%
Taylor expanded in y around 0
Applied rewrites67.7%
if -2.6499999999999998e221 < i < -1.9999999999999999e105Initial program 68.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-*.f6455.5
Applied rewrites55.5%
Taylor expanded in x around 0
Applied rewrites50.6%
if -1.9999999999999999e105 < i < -3.8000000000000003e-194Initial program 77.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.1
Applied rewrites51.1%
Taylor expanded in x around inf
Applied rewrites32.3%
Applied rewrites33.8%
if -3.8000000000000003e-194 < i < 5.0999999999999999e-259Initial program 77.6%
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-*.f6459.1
Applied rewrites59.1%
Taylor expanded in z around 0
Applied rewrites44.3%
if 5.0999999999999999e-259 < i < 1.7500000000000001e145Initial program 71.7%
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-*.f6445.1
Applied rewrites45.1%
Taylor expanded in x around inf
Applied rewrites39.3%
if 1.7500000000000001e145 < i Initial program 67.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-*.f6474.3
Applied rewrites74.3%
Taylor expanded in y around inf
Applied rewrites54.0%
Final simplification43.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y)))
(if (<= y -5.1e-22)
t_1
(if (<= y -1.05e-293)
(* (fma (- x) a (* i b)) t)
(if (<= y 8.2e-228)
(* (fma (- z) b (* j a)) c)
(if (<= y 2.4e-42) (* (fma (- z) c (* i t)) b) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double tmp;
if (y <= -5.1e-22) {
tmp = t_1;
} else if (y <= -1.05e-293) {
tmp = fma(-x, a, (i * b)) * t;
} else if (y <= 8.2e-228) {
tmp = fma(-z, b, (j * a)) * c;
} else if (y <= 2.4e-42) {
tmp = fma(-z, c, (i * t)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (y <= -5.1e-22) tmp = t_1; elseif (y <= -1.05e-293) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (y <= 8.2e-228) tmp = Float64(fma(Float64(-z), b, Float64(j * a)) * c); elseif (y <= 2.4e-42) tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -5.1e-22], t$95$1, If[LessEqual[y, -1.05e-293], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y, 8.2e-228], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[y, 2.4e-42], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{-228}:\\
\;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-42}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.10000000000000022e-22 or 2.40000000000000003e-42 < y Initial program 65.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-*.f6467.3
Applied rewrites67.3%
if -5.10000000000000022e-22 < y < -1.05000000000000003e-293Initial program 77.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.5
Applied rewrites58.5%
if -1.05000000000000003e-293 < y < 8.19999999999999995e-228Initial 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-*.f6460.2
Applied rewrites60.2%
if 8.19999999999999995e-228 < y < 2.40000000000000003e-42Initial program 79.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-*.f6460.1
Applied rewrites60.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (* j a) c (* (fma (- j) i (* z x)) y))))
(if (<= j -4.8e-14)
t_1
(if (<= j 1.25e-63) (fma (* i b) t (* (fma (- b) c (* y x)) z)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma((j * a), c, (fma(-j, i, (z * x)) * y));
double tmp;
if (j <= -4.8e-14) {
tmp = t_1;
} else if (j <= 1.25e-63) {
tmp = fma((i * b), t, (fma(-b, c, (y * x)) * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(j * a), c, Float64(fma(Float64(-j), i, Float64(z * x)) * y)) tmp = 0.0 if (j <= -4.8e-14) tmp = t_1; elseif (j <= 1.25e-63) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * a), $MachinePrecision] * c + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.8e-14], t$95$1, If[LessEqual[j, 1.25e-63], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
\mathbf{if}\;j \leq -4.8 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-63}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -4.8e-14 or 1.25e-63 < j Initial program 74.8%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.1
Applied rewrites72.1%
Taylor expanded in y around 0
Applied rewrites68.0%
Taylor expanded in t around 0
Applied rewrites67.3%
if -4.8e-14 < j < 1.25e-63Initial program 65.7%
Taylor expanded in c around -inf
Applied rewrites72.0%
Taylor expanded in j around 0
sub-negN/A
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6471.6
Applied rewrites71.6%
Taylor expanded in a around 0
Applied rewrites68.5%
Final simplification67.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -5.1e+32)
(* (fma (- x) t (* j c)) a)
(if (<= a 4.1e-48)
(fma (* i b) t (* (fma (- b) c (* y x)) z))
(* (fma (- a) c (* i y)) (- j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -5.1e+32) {
tmp = fma(-x, t, (j * c)) * a;
} else if (a <= 4.1e-48) {
tmp = fma((i * b), t, (fma(-b, c, (y * x)) * z));
} else {
tmp = fma(-a, c, (i * y)) * -j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -5.1e+32) tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); elseif (a <= 4.1e-48) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); else tmp = Float64(fma(Float64(-a), c, Float64(i * y)) * Float64(-j)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -5.1e+32], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 4.1e-48], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(N[((-a) * c + N[(i * y), $MachinePrecision]), $MachinePrecision] * (-j)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.1 \cdot 10^{+32}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{-48}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, c, i \cdot y\right) \cdot \left(-j\right)\\
\end{array}
\end{array}
if a < -5.10000000000000004e32Initial program 63.3%
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-*.f6468.2
Applied rewrites68.2%
if -5.10000000000000004e32 < a < 4.10000000000000014e-48Initial program 78.6%
Taylor expanded in c around -inf
Applied rewrites71.6%
Taylor expanded in j around 0
sub-negN/A
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6471.1
Applied rewrites71.1%
Taylor expanded in a around 0
Applied rewrites70.8%
if 4.10000000000000014e-48 < a Initial program 63.5%
Taylor expanded in y around 0
Applied rewrites69.7%
Taylor expanded in j around -inf
Applied rewrites53.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y)))
(if (<= y -5.1e-22)
t_1
(if (<= y -1.05e-293)
(* (fma (- x) a (* i b)) t)
(if (<= y 2.8e+69) (* (fma (- z) b (* j a)) c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double tmp;
if (y <= -5.1e-22) {
tmp = t_1;
} else if (y <= -1.05e-293) {
tmp = fma(-x, a, (i * b)) * t;
} else if (y <= 2.8e+69) {
tmp = fma(-z, b, (j * a)) * c;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (y <= -5.1e-22) tmp = t_1; elseif (y <= -1.05e-293) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (y <= 2.8e+69) tmp = Float64(fma(Float64(-z), b, Float64(j * a)) * c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -5.1e-22], t$95$1, If[LessEqual[y, -1.05e-293], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y, 2.8e+69], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+69}:\\
\;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.10000000000000022e-22 or 2.79999999999999982e69 < y Initial program 65.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-*.f6472.2
Applied rewrites72.2%
if -5.10000000000000022e-22 < y < -1.05000000000000003e-293Initial program 77.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.5
Applied rewrites58.5%
if -1.05000000000000003e-293 < y < 2.79999999999999982e69Initial program 76.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-*.f6448.6
Applied rewrites48.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y)))
(if (<= y -1.15e-24)
t_1
(if (<= y -1e-244)
(* (* j c) a)
(if (<= y 2.7e+37) (* (fma (- c) b (* y x)) z) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double tmp;
if (y <= -1.15e-24) {
tmp = t_1;
} else if (y <= -1e-244) {
tmp = (j * c) * a;
} else if (y <= 2.7e+37) {
tmp = fma(-c, b, (y * x)) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (y <= -1.15e-24) tmp = t_1; elseif (y <= -1e-244) tmp = Float64(Float64(j * c) * a); elseif (y <= 2.7e+37) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -1.15e-24], t$95$1, If[LessEqual[y, -1e-244], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 2.7e+37], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -1.15 \cdot 10^{-24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1 \cdot 10^{-244}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+37}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.1500000000000001e-24 or 2.69999999999999986e37 < y Initial program 64.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-*.f6471.1
Applied rewrites71.1%
if -1.1500000000000001e-24 < y < -9.9999999999999993e-245Initial program 70.8%
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-*.f6448.6
Applied rewrites48.6%
Taylor expanded in z around 0
Applied rewrites37.7%
if -9.9999999999999993e-245 < y < 2.69999999999999986e37Initial program 80.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-*.f6440.2
Applied rewrites40.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.65e+221)
(* (* b t) i)
(if (<= i -4e+184)
(* (* (- i) j) y)
(if (<= i 9.5e+194) (* (fma (- c) b (* y x)) z) (* (* (- j) y) i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.65e+221) {
tmp = (b * t) * i;
} else if (i <= -4e+184) {
tmp = (-i * j) * y;
} else if (i <= 9.5e+194) {
tmp = fma(-c, b, (y * x)) * z;
} else {
tmp = (-j * y) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.65e+221) tmp = Float64(Float64(b * t) * i); elseif (i <= -4e+184) tmp = Float64(Float64(Float64(-i) * j) * y); elseif (i <= 9.5e+194) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); else tmp = Float64(Float64(Float64(-j) * y) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.65e+221], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, -4e+184], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, 9.5e+194], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq -4 \cdot 10^{+184}:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{+194}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
\end{array}
\end{array}
if i < -2.6499999999999998e221Initial program 38.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-*.f6469.8
Applied rewrites69.8%
Taylor expanded in y around 0
Applied rewrites67.7%
if -2.6499999999999998e221 < i < -4.00000000000000007e184Initial program 74.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-*.f6466.4
Applied rewrites66.4%
Taylor expanded in x around 0
Applied rewrites66.1%
if -4.00000000000000007e184 < i < 9.5e194Initial program 74.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-*.f6449.5
Applied rewrites49.5%
if 9.5e194 < i Initial program 63.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-*.f6478.4
Applied rewrites78.4%
Taylor expanded in y around inf
Applied rewrites63.5%
Final simplification52.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z x) y)))
(if (<= y -6.8e-33)
t_1
(if (<= y -8.5e-262)
(* (* j c) a)
(if (<= y 8.6e-94) (* (* (- c) z) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (y <= -6.8e-33) {
tmp = t_1;
} else if (y <= -8.5e-262) {
tmp = (j * c) * a;
} else if (y <= 8.6e-94) {
tmp = (-c * z) * b;
} 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 = (z * x) * y
if (y <= (-6.8d-33)) then
tmp = t_1
else if (y <= (-8.5d-262)) then
tmp = (j * c) * a
else if (y <= 8.6d-94) then
tmp = (-c * z) * b
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 = (z * x) * y;
double tmp;
if (y <= -6.8e-33) {
tmp = t_1;
} else if (y <= -8.5e-262) {
tmp = (j * c) * a;
} else if (y <= 8.6e-94) {
tmp = (-c * z) * b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * x) * y tmp = 0 if y <= -6.8e-33: tmp = t_1 elif y <= -8.5e-262: tmp = (j * c) * a elif y <= 8.6e-94: tmp = (-c * z) * b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * x) * y) tmp = 0.0 if (y <= -6.8e-33) tmp = t_1; elseif (y <= -8.5e-262) tmp = Float64(Float64(j * c) * a); elseif (y <= 8.6e-94) tmp = Float64(Float64(Float64(-c) * z) * b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * x) * y; tmp = 0.0; if (y <= -6.8e-33) tmp = t_1; elseif (y <= -8.5e-262) tmp = (j * c) * a; elseif (y <= 8.6e-94) tmp = (-c * z) * b; 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[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -6.8e-33], t$95$1, If[LessEqual[y, -8.5e-262], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 8.6e-94], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-262}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{-94}:\\
\;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.8000000000000001e-33 or 8.5999999999999997e-94 < y Initial program 66.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-*.f6464.6
Applied rewrites64.6%
Taylor expanded in x around inf
Applied rewrites40.1%
if -6.8000000000000001e-33 < y < -8.5e-262Initial program 71.6%
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-*.f6447.5
Applied rewrites47.5%
Taylor expanded in z around 0
Applied rewrites39.3%
if -8.5e-262 < y < 8.5999999999999997e-94Initial program 82.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-*.f6440.4
Applied rewrites40.4%
Taylor expanded in x around 0
Applied rewrites40.2%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y)))
(if (<= y -5.1e-22)
t_1
(if (<= y 0.00116) (* (fma (- x) a (* i b)) t) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double tmp;
if (y <= -5.1e-22) {
tmp = t_1;
} else if (y <= 0.00116) {
tmp = fma(-x, a, (i * b)) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (y <= -5.1e-22) tmp = t_1; elseif (y <= 0.00116) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -5.1e-22], t$95$1, If[LessEqual[y, 0.00116], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.00116:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.10000000000000022e-22 or 0.00116 < y Initial program 65.1%
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-*.f6468.4
Applied rewrites68.4%
if -5.10000000000000022e-22 < y < 0.00116Initial program 78.4%
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-*.f6449.0
Applied rewrites49.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- c) b (* y x)) z)))
(if (<= z -1.2e-52)
t_1
(if (<= z 8.5e-96) (* (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(-c, b, (y * x)) * z;
double tmp;
if (z <= -1.2e-52) {
tmp = t_1;
} else if (z <= 8.5e-96) {
tmp = fma(-i, y, (c * a)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-c), b, Float64(y * x)) * z) tmp = 0.0 if (z <= -1.2e-52) tmp = t_1; elseif (z <= 8.5e-96) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.2e-52], t$95$1, If[LessEqual[z, 8.5e-96], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-96}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.2000000000000001e-52 or 8.49999999999999983e-96 < z Initial program 67.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-*.f6458.6
Applied rewrites58.6%
if -1.2000000000000001e-52 < z < 8.49999999999999983e-96Initial program 76.6%
Taylor expanded in c around -inf
Applied rewrites76.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6455.9
Applied rewrites55.9%
Final simplification57.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.15e+84)
(* (* j c) a)
(if (<= j -1.7e-142)
(* (* b t) i)
(if (<= j 1.8e+80) (* (* z x) y) (* (* j a) c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.15e+84) {
tmp = (j * c) * a;
} else if (j <= -1.7e-142) {
tmp = (b * t) * i;
} else if (j <= 1.8e+80) {
tmp = (z * x) * y;
} else {
tmp = (j * a) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.15d+84)) then
tmp = (j * c) * a
else if (j <= (-1.7d-142)) then
tmp = (b * t) * i
else if (j <= 1.8d+80) then
tmp = (z * x) * y
else
tmp = (j * a) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.15e+84) {
tmp = (j * c) * a;
} else if (j <= -1.7e-142) {
tmp = (b * t) * i;
} else if (j <= 1.8e+80) {
tmp = (z * x) * y;
} else {
tmp = (j * a) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.15e+84: tmp = (j * c) * a elif j <= -1.7e-142: tmp = (b * t) * i elif j <= 1.8e+80: tmp = (z * x) * y else: tmp = (j * a) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.15e+84) tmp = Float64(Float64(j * c) * a); elseif (j <= -1.7e-142) tmp = Float64(Float64(b * t) * i); elseif (j <= 1.8e+80) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(j * a) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.15e+84) tmp = (j * c) * a; elseif (j <= -1.7e-142) tmp = (b * t) * i; elseif (j <= 1.8e+80) tmp = (z * x) * y; else tmp = (j * a) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.15e+84], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, -1.7e-142], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[j, 1.8e+80], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.15 \cdot 10^{+84}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-142}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;j \leq 1.8 \cdot 10^{+80}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if j < -1.1499999999999999e84Initial program 73.5%
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-*.f6458.3
Applied rewrites58.3%
Taylor expanded in z around 0
Applied rewrites50.0%
if -1.1499999999999999e84 < j < -1.70000000000000014e-142Initial program 77.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-*.f6446.8
Applied rewrites46.8%
Taylor expanded in y around 0
Applied rewrites38.1%
if -1.70000000000000014e-142 < j < 1.79999999999999997e80Initial program 68.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-*.f6442.8
Applied rewrites42.8%
Taylor expanded in x around inf
Applied rewrites34.0%
if 1.79999999999999997e80 < j Initial program 68.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-*.f6449.3
Applied rewrites49.3%
Taylor expanded in z around 0
Applied rewrites41.1%
Final simplification39.5%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* z x) y))) (if (<= z -1e-12) t_1 (if (<= z 1.26e+197) (* (* 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 = (z * x) * y;
double tmp;
if (z <= -1e-12) {
tmp = t_1;
} else if (z <= 1.26e+197) {
tmp = (j * c) * a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * x) * y
if (z <= (-1d-12)) then
tmp = t_1
else if (z <= 1.26d+197) then
tmp = (j * c) * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (z <= -1e-12) {
tmp = t_1;
} else if (z <= 1.26e+197) {
tmp = (j * c) * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * x) * y tmp = 0 if z <= -1e-12: tmp = t_1 elif z <= 1.26e+197: tmp = (j * c) * a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * x) * y) tmp = 0.0 if (z <= -1e-12) tmp = t_1; elseif (z <= 1.26e+197) tmp = Float64(Float64(j * c) * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * x) * y; tmp = 0.0; if (z <= -1e-12) tmp = t_1; elseif (z <= 1.26e+197) tmp = (j * c) * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[z, -1e-12], t$95$1, If[LessEqual[z, 1.26e+197], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot x\right) \cdot y\\
\mathbf{if}\;z \leq -1 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{+197}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.9999999999999998e-13 or 1.26e197 < z Initial program 68.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.1
Applied rewrites60.1%
Taylor expanded in x around inf
Applied rewrites50.9%
if -9.9999999999999998e-13 < z < 1.26e197Initial program 72.6%
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-*.f6440.8
Applied rewrites40.8%
Taylor expanded in z around 0
Applied rewrites29.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -6.8e-33) (* (* z y) x) (if (<= y 4.2e+53) (* (* j c) a) (* (* y x) z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -6.8e-33) {
tmp = (z * y) * x;
} else if (y <= 4.2e+53) {
tmp = (j * c) * a;
} else {
tmp = (y * x) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-6.8d-33)) then
tmp = (z * y) * x
else if (y <= 4.2d+53) then
tmp = (j * c) * a
else
tmp = (y * x) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -6.8e-33) {
tmp = (z * y) * x;
} else if (y <= 4.2e+53) {
tmp = (j * c) * a;
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -6.8e-33: tmp = (z * y) * x elif y <= 4.2e+53: tmp = (j * c) * a else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -6.8e-33) tmp = Float64(Float64(z * y) * x); elseif (y <= 4.2e+53) tmp = Float64(Float64(j * c) * a); else tmp = Float64(Float64(y * x) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -6.8e-33) tmp = (z * y) * x; elseif (y <= 4.2e+53) tmp = (j * c) * a; else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -6.8e-33], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 4.2e+53], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+53}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if y < -6.8000000000000001e-33Initial program 65.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-*.f6452.8
Applied rewrites52.8%
Taylor expanded in x around inf
Applied rewrites43.0%
if -6.8000000000000001e-33 < y < 4.2000000000000004e53Initial program 76.7%
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-*.f6446.8
Applied rewrites46.8%
Taylor expanded in z around 0
Applied rewrites29.8%
if 4.2000000000000004e53 < y Initial program 64.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-*.f6457.7
Applied rewrites57.7%
Taylor expanded in x around inf
Applied rewrites43.8%
Applied rewrites46.1%
Final simplification36.9%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* i t) b))) (if (<= i -4.8e+198) t_1 (if (<= i 4.8e+104) (* (* 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 (i <= -4.8e+198) {
tmp = t_1;
} else if (i <= 4.8e+104) {
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 (i <= (-4.8d+198)) then
tmp = t_1
else if (i <= 4.8d+104) 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 (i <= -4.8e+198) {
tmp = t_1;
} else if (i <= 4.8e+104) {
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 i <= -4.8e+198: tmp = t_1 elif i <= 4.8e+104: 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 (i <= -4.8e+198) tmp = t_1; elseif (i <= 4.8e+104) 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 (i <= -4.8e+198) tmp = t_1; elseif (i <= 4.8e+104) 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[i, -4.8e+198], t$95$1, If[LessEqual[i, 4.8e+104], 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}\;i \leq -4.8 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+104}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -4.8000000000000003e198 or 4.8e104 < i Initial program 58.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-*.f6470.4
Applied rewrites70.4%
Taylor expanded in y around 0
Applied rewrites46.0%
if -4.8000000000000003e198 < i < 4.8e104Initial program 75.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-*.f6449.7
Applied rewrites49.7%
Taylor expanded in x around inf
Applied rewrites31.2%
Applied rewrites32.1%
(FPCore (x y z t a b c i j) :precision binary64 (* (* y x) z))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (y * x) * z;
}
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 = (y * x) * z
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 (y * x) * z;
}
def code(x, y, z, t, a, b, c, i, j): return (y * x) * z
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(y * x) * z) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (y * x) * z; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]
\begin{array}{l}
\\
\left(y \cdot x\right) \cdot z
\end{array}
Initial program 71.0%
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-*.f6443.8
Applied rewrites43.8%
Taylor expanded in x around inf
Applied rewrites26.1%
Applied rewrites26.8%
(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 2024304
(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)))))