
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (- (* y z) (* t a))))
(if (<= (+ (+ (* x t_2) (* b (- (* t i) (* z c)))) t_1) INFINITY)
(fma t_2 x (fma b (- (fma i (- t) (* z c))) t_1))
(fma z (fma c (- b) (* x y)) (* t (fma i b (* a (- x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = (y * z) - (t * a);
double tmp;
if ((((x * t_2) + (b * ((t * i) - (z * c)))) + t_1) <= ((double) INFINITY)) {
tmp = fma(t_2, x, fma(b, -fma(i, -t, (z * c)), t_1));
} else {
tmp = fma(z, fma(c, -b, (x * y)), (t * fma(i, b, (a * -x))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(Float64(y * z) - Float64(t * a)) tmp = 0.0 if (Float64(Float64(Float64(x * t_2) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + t_1) <= Inf) tmp = fma(t_2, x, fma(b, Float64(-fma(i, Float64(-t), Float64(z * c))), t_1)); else tmp = fma(z, fma(c, Float64(-b), Float64(x * y)), Float64(t * fma(i, b, Float64(a * Float64(-x))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(t$95$2 * x + N[(b * (-N[(i * (-t) + N[(z * c), $MachinePrecision]), $MachinePrecision]) + t$95$1), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(t * N[(i * b + N[(a * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := y \cdot z - t \cdot a\\
\mathbf{if}\;\left(x \cdot t\_2 + b \cdot \left(t \cdot i - z \cdot c\right)\right) + t\_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t\_2, x, \mathsf{fma}\left(b, -\mathsf{fma}\left(i, -t, z \cdot c\right), t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(c, -b, x \cdot y\right), t \cdot \mathsf{fma}\left(i, b, a \cdot \left(-x\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 94.7%
lift-+.f64N/A
lift--.f64N/A
sub-negN/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lift-*.f64N/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
Applied rewrites94.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 a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6438.4
Applied rewrites38.4%
Taylor expanded in j around 0
Applied rewrites63.0%
Final simplification88.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (fma t (- a) (* y z)))))
(if (<= x -1.62e-28)
t_1
(if (<= x -3.8e-223)
(* c (fma b (- z) (* a j)))
(if (<= x -4.2e-296)
(+ (* t (* b i)) (* j (* a c)))
(if (<= x 3.6e+92)
(fma z (fma c (- b) (* x y)) (* b (* t i)))
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 = x * fma(t, -a, (y * z));
double tmp;
if (x <= -1.62e-28) {
tmp = t_1;
} else if (x <= -3.8e-223) {
tmp = c * fma(b, -z, (a * j));
} else if (x <= -4.2e-296) {
tmp = (t * (b * i)) + (j * (a * c));
} else if (x <= 3.6e+92) {
tmp = fma(z, fma(c, -b, (x * y)), (b * (t * i)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * fma(t, Float64(-a), Float64(y * z))) tmp = 0.0 if (x <= -1.62e-28) tmp = t_1; elseif (x <= -3.8e-223) tmp = Float64(c * fma(b, Float64(-z), Float64(a * j))); elseif (x <= -4.2e-296) tmp = Float64(Float64(t * Float64(b * i)) + Float64(j * Float64(a * c))); elseif (x <= 3.6e+92) tmp = fma(z, fma(c, Float64(-b), Float64(x * y)), Float64(b * Float64(t * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.62e-28], t$95$1, If[LessEqual[x, -3.8e-223], N[(c * N[(b * (-z) + N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.2e-296], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.6e+92], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
\mathbf{if}\;x \leq -1.62 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-223}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, a \cdot j\right)\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-296}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) + j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+92}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(c, -b, x \cdot y\right), b \cdot \left(t \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.62e-28 or 3.6e92 < x Initial program 78.3%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6473.2
Applied rewrites73.2%
if -1.62e-28 < x < -3.80000000000000012e-223Initial program 76.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.2
Applied rewrites66.2%
if -3.80000000000000012e-223 < x < -4.1999999999999999e-296Initial program 93.3%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
Taylor expanded in c around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6486.3
Applied rewrites86.3%
Applied rewrites93.2%
if -4.1999999999999999e-296 < x < 3.6e92Initial program 68.2%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6424.7
Applied rewrites24.7%
Taylor expanded in j around 0
Applied rewrites72.4%
Taylor expanded in i around inf
Applied rewrites64.8%
Final simplification70.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- (* a c) (* y i)) j (* i (* t b)))))
(if (<= j -5.5e-55)
t_1
(if (<= j 1.7e+19)
(fma z (fma c (- b) (* x y)) (* t (fma i b (* a (- 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(((a * c) - (y * i)), j, (i * (t * b)));
double tmp;
if (j <= -5.5e-55) {
tmp = t_1;
} else if (j <= 1.7e+19) {
tmp = fma(z, fma(c, -b, (x * y)), (t * fma(i, b, (a * -x))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(Float64(a * c) - Float64(y * i)), j, Float64(i * Float64(t * b))) tmp = 0.0 if (j <= -5.5e-55) tmp = t_1; elseif (j <= 1.7e+19) tmp = fma(z, fma(c, Float64(-b), Float64(x * y)), Float64(t * fma(i, b, Float64(a * Float64(-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[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.5e-55], t$95$1, If[LessEqual[j, 1.7e+19], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(t * N[(i * b + N[(a * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a \cdot c - y \cdot i, j, i \cdot \left(t \cdot b\right)\right)\\
\mathbf{if}\;j \leq -5.5 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(c, -b, x \cdot y\right), t \cdot \mathsf{fma}\left(i, b, a \cdot \left(-x\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -5.4999999999999999e-55 or 1.7e19 < j Initial program 74.4%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6464.1
Applied rewrites64.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6468.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6468.9
Applied rewrites71.8%
if -5.4999999999999999e-55 < j < 1.7e19Initial program 77.3%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6432.8
Applied rewrites32.8%
Taylor expanded in j around 0
Applied rewrites78.5%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -21000000.0)
(* y (* x z))
(if (<= x -2.45e-67)
(* j (* a c))
(if (<= x -3e-224)
(* c (* z (- b)))
(if (<= x -6.6e-290)
(* b (* t i))
(if (<= x 1.4e+92)
(* z (* b (- c)))
(if (<= x 5.4e+206) (* t (* a (- x))) (* z (* x y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -21000000.0) {
tmp = y * (x * z);
} else if (x <= -2.45e-67) {
tmp = j * (a * c);
} else if (x <= -3e-224) {
tmp = c * (z * -b);
} else if (x <= -6.6e-290) {
tmp = b * (t * i);
} else if (x <= 1.4e+92) {
tmp = z * (b * -c);
} else if (x <= 5.4e+206) {
tmp = t * (a * -x);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-21000000.0d0)) then
tmp = y * (x * z)
else if (x <= (-2.45d-67)) then
tmp = j * (a * c)
else if (x <= (-3d-224)) then
tmp = c * (z * -b)
else if (x <= (-6.6d-290)) then
tmp = b * (t * i)
else if (x <= 1.4d+92) then
tmp = z * (b * -c)
else if (x <= 5.4d+206) then
tmp = t * (a * -x)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -21000000.0) {
tmp = y * (x * z);
} else if (x <= -2.45e-67) {
tmp = j * (a * c);
} else if (x <= -3e-224) {
tmp = c * (z * -b);
} else if (x <= -6.6e-290) {
tmp = b * (t * i);
} else if (x <= 1.4e+92) {
tmp = z * (b * -c);
} else if (x <= 5.4e+206) {
tmp = t * (a * -x);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -21000000.0: tmp = y * (x * z) elif x <= -2.45e-67: tmp = j * (a * c) elif x <= -3e-224: tmp = c * (z * -b) elif x <= -6.6e-290: tmp = b * (t * i) elif x <= 1.4e+92: tmp = z * (b * -c) elif x <= 5.4e+206: tmp = t * (a * -x) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -21000000.0) tmp = Float64(y * Float64(x * z)); elseif (x <= -2.45e-67) tmp = Float64(j * Float64(a * c)); elseif (x <= -3e-224) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= -6.6e-290) tmp = Float64(b * Float64(t * i)); elseif (x <= 1.4e+92) tmp = Float64(z * Float64(b * Float64(-c))); elseif (x <= 5.4e+206) tmp = Float64(t * Float64(a * Float64(-x))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -21000000.0) tmp = y * (x * z); elseif (x <= -2.45e-67) tmp = j * (a * c); elseif (x <= -3e-224) tmp = c * (z * -b); elseif (x <= -6.6e-290) tmp = b * (t * i); elseif (x <= 1.4e+92) tmp = z * (b * -c); elseif (x <= 5.4e+206) tmp = t * (a * -x); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -21000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.45e-67], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3e-224], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.6e-290], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+92], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e+206], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -21000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -2.45 \cdot 10^{-67}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;x \leq -3 \cdot 10^{-224}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq -6.6 \cdot 10^{-290}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+92}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{+206}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.1e7Initial program 78.6%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.3
Applied rewrites35.3%
Taylor expanded in j around 0
Applied rewrites65.9%
Taylor expanded in y around inf
Applied rewrites54.0%
if -2.1e7 < x < -2.44999999999999997e-67Initial program 94.4%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6436.7
Applied rewrites36.7%
Taylor expanded in b around 0
Applied rewrites42.1%
if -2.44999999999999997e-67 < x < -2.99999999999999982e-224Initial program 72.2%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.7
Applied rewrites69.7%
Taylor expanded in b around inf
Applied rewrites47.3%
if -2.99999999999999982e-224 < x < -6.59999999999999972e-290Initial program 92.3%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6425.4
Applied rewrites25.4%
Taylor expanded in j around 0
Applied rewrites69.6%
Taylor expanded in i around inf
Applied rewrites69.9%
if -6.59999999999999972e-290 < x < 1.4e92Initial program 69.1%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6426.6
Applied rewrites26.6%
Taylor expanded in j around 0
Applied rewrites70.6%
Taylor expanded in z around inf
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6448.3
Applied rewrites48.3%
Taylor expanded in y around 0
Applied rewrites38.8%
if 1.4e92 < x < 5.40000000000000007e206Initial program 78.1%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6457.3
Applied rewrites57.3%
Taylor expanded in t around inf
Applied rewrites53.5%
if 5.40000000000000007e206 < x Initial program 70.5%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6479.4
Applied rewrites79.4%
Taylor expanded in t around 0
Applied rewrites67.6%
Final simplification49.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= x -21000000.0)
(* y (* x z))
(if (<= x -2.45e-67)
(* j (* a c))
(if (<= x -3e-224)
t_1
(if (<= x -6.6e-290)
(* b (* t i))
(if (<= x 1.35e+92)
t_1
(if (<= x 5.4e+206) (* t (* a (- x))) (* z (* x y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (x <= -21000000.0) {
tmp = y * (x * z);
} else if (x <= -2.45e-67) {
tmp = j * (a * c);
} else if (x <= -3e-224) {
tmp = t_1;
} else if (x <= -6.6e-290) {
tmp = b * (t * i);
} else if (x <= 1.35e+92) {
tmp = t_1;
} else if (x <= 5.4e+206) {
tmp = t * (a * -x);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (x <= (-21000000.0d0)) then
tmp = y * (x * z)
else if (x <= (-2.45d-67)) then
tmp = j * (a * c)
else if (x <= (-3d-224)) then
tmp = t_1
else if (x <= (-6.6d-290)) then
tmp = b * (t * i)
else if (x <= 1.35d+92) then
tmp = t_1
else if (x <= 5.4d+206) then
tmp = t * (a * -x)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (x <= -21000000.0) {
tmp = y * (x * z);
} else if (x <= -2.45e-67) {
tmp = j * (a * c);
} else if (x <= -3e-224) {
tmp = t_1;
} else if (x <= -6.6e-290) {
tmp = b * (t * i);
} else if (x <= 1.35e+92) {
tmp = t_1;
} else if (x <= 5.4e+206) {
tmp = t * (a * -x);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if x <= -21000000.0: tmp = y * (x * z) elif x <= -2.45e-67: tmp = j * (a * c) elif x <= -3e-224: tmp = t_1 elif x <= -6.6e-290: tmp = b * (t * i) elif x <= 1.35e+92: tmp = t_1 elif x <= 5.4e+206: tmp = t * (a * -x) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (x <= -21000000.0) tmp = Float64(y * Float64(x * z)); elseif (x <= -2.45e-67) tmp = Float64(j * Float64(a * c)); elseif (x <= -3e-224) tmp = t_1; elseif (x <= -6.6e-290) tmp = Float64(b * Float64(t * i)); elseif (x <= 1.35e+92) tmp = t_1; elseif (x <= 5.4e+206) tmp = Float64(t * Float64(a * Float64(-x))); else tmp = Float64(z * Float64(x * y)); 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 (x <= -21000000.0) tmp = y * (x * z); elseif (x <= -2.45e-67) tmp = j * (a * c); elseif (x <= -3e-224) tmp = t_1; elseif (x <= -6.6e-290) tmp = b * (t * i); elseif (x <= 1.35e+92) tmp = t_1; elseif (x <= 5.4e+206) tmp = t * (a * -x); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -21000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.45e-67], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3e-224], t$95$1, If[LessEqual[x, -6.6e-290], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+92], t$95$1, If[LessEqual[x, 5.4e+206], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;x \leq -21000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -2.45 \cdot 10^{-67}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;x \leq -3 \cdot 10^{-224}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -6.6 \cdot 10^{-290}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{+206}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.1e7Initial program 78.6%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.3
Applied rewrites35.3%
Taylor expanded in j around 0
Applied rewrites65.9%
Taylor expanded in y around inf
Applied rewrites54.0%
if -2.1e7 < x < -2.44999999999999997e-67Initial program 94.4%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6436.7
Applied rewrites36.7%
Taylor expanded in b around 0
Applied rewrites42.1%
if -2.44999999999999997e-67 < x < -2.99999999999999982e-224 or -6.59999999999999972e-290 < x < 1.35e92Initial program 70.0%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.9
Applied rewrites57.9%
Taylor expanded in b around inf
Applied rewrites41.4%
if -2.99999999999999982e-224 < x < -6.59999999999999972e-290Initial program 92.3%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6425.4
Applied rewrites25.4%
Taylor expanded in j around 0
Applied rewrites69.6%
Taylor expanded in i around inf
Applied rewrites69.9%
if 1.35e92 < x < 5.40000000000000007e206Initial program 78.1%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6457.3
Applied rewrites57.3%
Taylor expanded in t around inf
Applied rewrites53.5%
if 5.40000000000000007e206 < x Initial program 70.5%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6479.4
Applied rewrites79.4%
Taylor expanded in t around 0
Applied rewrites67.6%
Final simplification49.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma z (fma c (- b) (* x y)) (* b (* t i)))))
(if (<= z -7e-41)
t_1
(if (<= z -1.3e-261)
(* t (fma i b (* a (- x))))
(if (<= z 3.8e-16) (fma (- (* a c) (* y i)) j (* 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(z, fma(c, -b, (x * y)), (b * (t * i)));
double tmp;
if (z <= -7e-41) {
tmp = t_1;
} else if (z <= -1.3e-261) {
tmp = t * fma(i, b, (a * -x));
} else if (z <= 3.8e-16) {
tmp = fma(((a * c) - (y * i)), j, (i * (t * b)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(z, fma(c, Float64(-b), Float64(x * y)), Float64(b * Float64(t * i))) tmp = 0.0 if (z <= -7e-41) tmp = t_1; elseif (z <= -1.3e-261) tmp = Float64(t * fma(i, b, Float64(a * Float64(-x)))); elseif (z <= 3.8e-16) tmp = fma(Float64(Float64(a * c) - Float64(y * i)), j, Float64(i * Float64(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[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e-41], t$95$1, If[LessEqual[z, -1.3e-261], N[(t * N[(i * b + N[(a * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e-16], N[(N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \mathsf{fma}\left(c, -b, x \cdot y\right), b \cdot \left(t \cdot i\right)\right)\\
\mathbf{if}\;z \leq -7 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-261}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(i, b, a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-16}:\\
\;\;\;\;\mathsf{fma}\left(a \cdot c - y \cdot i, j, i \cdot \left(t \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.9999999999999999e-41 or 3.80000000000000012e-16 < z Initial program 68.9%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6429.1
Applied rewrites29.1%
Taylor expanded in j around 0
Applied rewrites78.0%
Taylor expanded in i around inf
Applied rewrites74.2%
if -6.9999999999999999e-41 < z < -1.3000000000000001e-261Initial program 84.7%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6448.0
Applied rewrites48.0%
Taylor expanded in t around inf
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6466.0
Applied rewrites66.0%
if -1.3000000000000001e-261 < z < 3.80000000000000012e-16Initial program 86.4%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6467.6
Applied rewrites67.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6469.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6469.1
Applied rewrites69.1%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -21000000.0)
(* y (* x z))
(if (<= x -2.2e-201)
(* j (* a c))
(if (<= x 3.2e+73)
(* i (* t b))
(if (<= x 5.4e+206) (* t (* a (- x))) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -21000000.0) {
tmp = y * (x * z);
} else if (x <= -2.2e-201) {
tmp = j * (a * c);
} else if (x <= 3.2e+73) {
tmp = i * (t * b);
} else if (x <= 5.4e+206) {
tmp = t * (a * -x);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-21000000.0d0)) then
tmp = y * (x * z)
else if (x <= (-2.2d-201)) then
tmp = j * (a * c)
else if (x <= 3.2d+73) then
tmp = i * (t * b)
else if (x <= 5.4d+206) then
tmp = t * (a * -x)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -21000000.0) {
tmp = y * (x * z);
} else if (x <= -2.2e-201) {
tmp = j * (a * c);
} else if (x <= 3.2e+73) {
tmp = i * (t * b);
} else if (x <= 5.4e+206) {
tmp = t * (a * -x);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -21000000.0: tmp = y * (x * z) elif x <= -2.2e-201: tmp = j * (a * c) elif x <= 3.2e+73: tmp = i * (t * b) elif x <= 5.4e+206: tmp = t * (a * -x) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -21000000.0) tmp = Float64(y * Float64(x * z)); elseif (x <= -2.2e-201) tmp = Float64(j * Float64(a * c)); elseif (x <= 3.2e+73) tmp = Float64(i * Float64(t * b)); elseif (x <= 5.4e+206) tmp = Float64(t * Float64(a * Float64(-x))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -21000000.0) tmp = y * (x * z); elseif (x <= -2.2e-201) tmp = j * (a * c); elseif (x <= 3.2e+73) tmp = i * (t * b); elseif (x <= 5.4e+206) tmp = t * (a * -x); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -21000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.2e-201], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+73], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e+206], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -21000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-201}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+73}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{+206}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.1e7Initial program 78.6%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.3
Applied rewrites35.3%
Taylor expanded in j around 0
Applied rewrites65.9%
Taylor expanded in y around inf
Applied rewrites54.0%
if -2.1e7 < x < -2.2e-201Initial program 78.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.0
Applied rewrites59.0%
Taylor expanded in b around 0
Applied rewrites37.2%
if -2.2e-201 < x < 3.19999999999999982e73Initial program 75.2%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6448.0
Applied rewrites48.0%
Taylor expanded in j around 0
Applied rewrites36.8%
if 3.19999999999999982e73 < x < 5.40000000000000007e206Initial program 72.3%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6456.1
Applied rewrites56.1%
Taylor expanded in t around inf
Applied rewrites49.8%
if 5.40000000000000007e206 < x Initial program 70.5%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6479.4
Applied rewrites79.4%
Taylor expanded in t around 0
Applied rewrites67.6%
Final simplification45.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (fma t (- a) (* y z)))))
(if (<= x -1.62e-28)
t_1
(if (<= x -2.6e-201)
(* c (fma b (- z) (* a j)))
(if (<= x 1.25e+34) (* b (fma c (- z) (* t i))) 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 = x * fma(t, -a, (y * z));
double tmp;
if (x <= -1.62e-28) {
tmp = t_1;
} else if (x <= -2.6e-201) {
tmp = c * fma(b, -z, (a * j));
} else if (x <= 1.25e+34) {
tmp = b * fma(c, -z, (t * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * fma(t, Float64(-a), Float64(y * z))) tmp = 0.0 if (x <= -1.62e-28) tmp = t_1; elseif (x <= -2.6e-201) tmp = Float64(c * fma(b, Float64(-z), Float64(a * j))); elseif (x <= 1.25e+34) tmp = Float64(b * fma(c, Float64(-z), Float64(t * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.62e-28], t$95$1, If[LessEqual[x, -2.6e-201], N[(c * N[(b * (-z) + N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+34], N[(b * N[(c * (-z) + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
\mathbf{if}\;x \leq -1.62 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-201}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, a \cdot j\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+34}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.62e-28 or 1.25e34 < x Initial program 77.1%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.8
Applied rewrites71.8%
if -1.62e-28 < x < -2.59999999999999982e-201Initial program 73.8%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.6
Applied rewrites67.6%
if -2.59999999999999982e-201 < x < 1.25e34Initial program 74.9%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6424.5
Applied rewrites24.5%
Taylor expanded in b around inf
sub-negN/A
remove-double-negN/A
mul-1-negN/A
distribute-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
distribute-rgt-neg-inN/A
mul-1-negN/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%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.3e+22)
(* t (fma a (- x) (* b i)))
(if (<= t 2.4e-186)
(* j (- (* a c) (* y i)))
(if (<= t 1.7e+60)
(* c (fma b (- z) (* a j)))
(* t (fma i b (* a (- x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.3e+22) {
tmp = t * fma(a, -x, (b * i));
} else if (t <= 2.4e-186) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 1.7e+60) {
tmp = c * fma(b, -z, (a * j));
} else {
tmp = t * fma(i, b, (a * -x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.3e+22) tmp = Float64(t * fma(a, Float64(-x), Float64(b * i))); elseif (t <= 2.4e-186) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (t <= 1.7e+60) tmp = Float64(c * fma(b, Float64(-z), Float64(a * j))); else tmp = Float64(t * fma(i, b, Float64(a * Float64(-x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.3e+22], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-186], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+60], N[(c * N[(b * (-z) + N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(i * b + N[(a * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.3 \cdot 10^{+22}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-186}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+60}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(i, b, a \cdot \left(-x\right)\right)\\
\end{array}
\end{array}
if t < -2.3000000000000002e22Initial program 74.6%
Taylor expanded in t around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.3
Applied rewrites64.3%
if -2.3000000000000002e22 < t < 2.40000000000000003e-186Initial program 80.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.5
Applied rewrites51.5%
if 2.40000000000000003e-186 < t < 1.7e60Initial program 72.3%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.5
Applied rewrites59.5%
if 1.7e60 < t Initial program 71.2%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6446.6
Applied rewrites46.6%
Taylor expanded in t around inf
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6477.8
Applied rewrites77.8%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (fma a (- x) (* b i)))))
(if (<= t -2.3e+22)
t_1
(if (<= t 2.4e-186)
(* j (- (* a c) (* y i)))
(if (<= t 1.7e+60) (* c (fma b (- z) (* 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 = t * fma(a, -x, (b * i));
double tmp;
if (t <= -2.3e+22) {
tmp = t_1;
} else if (t <= 2.4e-186) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 1.7e+60) {
tmp = c * fma(b, -z, (a * j));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * fma(a, Float64(-x), Float64(b * i))) tmp = 0.0 if (t <= -2.3e+22) tmp = t_1; elseif (t <= 2.4e-186) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (t <= 1.7e+60) tmp = Float64(c * fma(b, Float64(-z), Float64(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[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.3e+22], t$95$1, If[LessEqual[t, 2.4e-186], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+60], N[(c * N[(b * (-z) + N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-186}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+60}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.3000000000000002e22 or 1.7e60 < t Initial program 72.9%
Taylor expanded in t around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.1
Applied rewrites71.1%
if -2.3000000000000002e22 < t < 2.40000000000000003e-186Initial program 80.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.5
Applied rewrites51.5%
if 2.40000000000000003e-186 < t < 1.7e60Initial program 72.3%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.5
Applied rewrites59.5%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* t i)))))
(if (<= b -5.8e-30)
t_1
(if (<= b 4.5e-275)
(* a (fma j c (* x (- t))))
(if (<= b 1.2e+14) (* j (- (* a c) (* y i))) 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 = b * fma(c, -z, (t * i));
double tmp;
if (b <= -5.8e-30) {
tmp = t_1;
} else if (b <= 4.5e-275) {
tmp = a * fma(j, c, (x * -t));
} else if (b <= 1.2e+14) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(t * i))) tmp = 0.0 if (b <= -5.8e-30) tmp = t_1; elseif (b <= 4.5e-275) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); elseif (b <= 1.2e+14) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e-30], t$95$1, If[LessEqual[b, 4.5e-275], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e+14], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, t \cdot i\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-275}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+14}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.79999999999999978e-30 or 1.2e14 < b Initial program 77.3%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6426.5
Applied rewrites26.5%
Taylor expanded in b around inf
sub-negN/A
remove-double-negN/A
mul-1-negN/A
distribute-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6466.5
Applied rewrites66.5%
if -5.79999999999999978e-30 < b < 4.49999999999999978e-275Initial program 73.2%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6456.3
Applied rewrites56.3%
if 4.49999999999999978e-275 < b < 1.2e14Initial program 75.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6449.4
Applied rewrites49.4%
Final simplification59.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma j c (* x (- t))))))
(if (<= a -2.5e-110)
t_1
(if (<= a -1.9e-285)
(* c (* z (- b)))
(if (<= a 0.00018) (* 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 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -2.5e-110) {
tmp = t_1;
} else if (a <= -1.9e-285) {
tmp = c * (z * -b);
} else if (a <= 0.00018) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -2.5e-110) tmp = t_1; elseif (a <= -1.9e-285) tmp = Float64(c * Float64(z * Float64(-b))); elseif (a <= 0.00018) tmp = Float64(y * Float64(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[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.5e-110], t$95$1, If[LessEqual[a, -1.9e-285], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.00018], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -2.5 \cdot 10^{-110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-285}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 0.00018:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.5e-110 or 1.80000000000000011e-4 < a Initial program 70.8%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.6
Applied rewrites53.6%
if -2.5e-110 < a < -1.9000000000000001e-285Initial program 86.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.5
Applied rewrites53.5%
Taylor expanded in b around inf
Applied rewrites47.1%
if -1.9000000000000001e-285 < a < 1.80000000000000011e-4Initial program 83.3%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6410.7
Applied rewrites10.7%
Taylor expanded in j around 0
Applied rewrites66.0%
Taylor expanded in y around inf
Applied rewrites38.3%
Final simplification49.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* t i)))))
(if (<= b -5.8e-30)
t_1
(if (<= b 1.26e-100) (* a (fma j c (* x (- 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 = b * fma(c, -z, (t * i));
double tmp;
if (b <= -5.8e-30) {
tmp = t_1;
} else if (b <= 1.26e-100) {
tmp = a * fma(j, c, (x * -t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(t * i))) tmp = 0.0 if (b <= -5.8e-30) tmp = t_1; elseif (b <= 1.26e-100) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e-30], t$95$1, If[LessEqual[b, 1.26e-100], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, t \cdot i\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.26 \cdot 10^{-100}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.79999999999999978e-30 or 1.2599999999999999e-100 < b Initial program 75.1%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6427.3
Applied rewrites27.3%
Taylor expanded in b around inf
sub-negN/A
remove-double-negN/A
mul-1-negN/A
distribute-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6462.9
Applied rewrites62.9%
if -5.79999999999999978e-30 < b < 1.2599999999999999e-100Initial program 76.8%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6450.6
Applied rewrites50.6%
Final simplification57.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -5.8e-30)
t_1
(if (<= b 1.26e-100) (* a (fma j c (* x (- 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e-30) {
tmp = t_1;
} else if (b <= 1.26e-100) {
tmp = a * fma(j, c, (x * -t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.8e-30) tmp = t_1; elseif (b <= 1.26e-100) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e-30], t$95$1, If[LessEqual[b, 1.26e-100], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.26 \cdot 10^{-100}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.79999999999999978e-30 or 1.2599999999999999e-100 < b Initial program 75.1%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6462.2
Applied rewrites62.2%
if -5.79999999999999978e-30 < b < 1.2599999999999999e-100Initial program 76.8%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6450.6
Applied rewrites50.6%
Final simplification57.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -21000000.0)
t_1
(if (<= x -2.2e-201)
(* j (* a c))
(if (<= x 6.4e+33) (* 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 = y * (x * z);
double tmp;
if (x <= -21000000.0) {
tmp = t_1;
} else if (x <= -2.2e-201) {
tmp = j * (a * c);
} else if (x <= 6.4e+33) {
tmp = i * (t * 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 = y * (x * z)
if (x <= (-21000000.0d0)) then
tmp = t_1
else if (x <= (-2.2d-201)) then
tmp = j * (a * c)
else if (x <= 6.4d+33) then
tmp = i * (t * 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 = y * (x * z);
double tmp;
if (x <= -21000000.0) {
tmp = t_1;
} else if (x <= -2.2e-201) {
tmp = j * (a * c);
} else if (x <= 6.4e+33) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if x <= -21000000.0: tmp = t_1 elif x <= -2.2e-201: tmp = j * (a * c) elif x <= 6.4e+33: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (x <= -21000000.0) tmp = t_1; elseif (x <= -2.2e-201) tmp = Float64(j * Float64(a * c)); elseif (x <= 6.4e+33) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (x <= -21000000.0) tmp = t_1; elseif (x <= -2.2e-201) tmp = j * (a * c); elseif (x <= 6.4e+33) tmp = i * (t * 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -21000000.0], t$95$1, If[LessEqual[x, -2.2e-201], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.4e+33], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -21000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-201}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{+33}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.1e7 or 6.40000000000000034e33 < x Initial program 75.6%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6442.6
Applied rewrites42.6%
Taylor expanded in j around 0
Applied rewrites67.7%
Taylor expanded in y around inf
Applied rewrites49.5%
if -2.1e7 < x < -2.2e-201Initial program 78.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.0
Applied rewrites59.0%
Taylor expanded in b around 0
Applied rewrites37.2%
if -2.2e-201 < x < 6.40000000000000034e33Initial program 74.9%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6448.4
Applied rewrites48.4%
Taylor expanded in j around 0
Applied rewrites37.7%
Final simplification43.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -21000000.0)
t_1
(if (<= x -2.8e-201)
(* j (* a c))
(if (<= x 6.4e+33) (* b (* t i)) 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 = y * (x * z);
double tmp;
if (x <= -21000000.0) {
tmp = t_1;
} else if (x <= -2.8e-201) {
tmp = j * (a * c);
} else if (x <= 6.4e+33) {
tmp = b * (t * i);
} 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 = y * (x * z)
if (x <= (-21000000.0d0)) then
tmp = t_1
else if (x <= (-2.8d-201)) then
tmp = j * (a * c)
else if (x <= 6.4d+33) then
tmp = b * (t * i)
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 = y * (x * z);
double tmp;
if (x <= -21000000.0) {
tmp = t_1;
} else if (x <= -2.8e-201) {
tmp = j * (a * c);
} else if (x <= 6.4e+33) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if x <= -21000000.0: tmp = t_1 elif x <= -2.8e-201: tmp = j * (a * c) elif x <= 6.4e+33: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (x <= -21000000.0) tmp = t_1; elseif (x <= -2.8e-201) tmp = Float64(j * Float64(a * c)); elseif (x <= 6.4e+33) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (x <= -21000000.0) tmp = t_1; elseif (x <= -2.8e-201) tmp = j * (a * c); elseif (x <= 6.4e+33) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -21000000.0], t$95$1, If[LessEqual[x, -2.8e-201], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.4e+33], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -21000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-201}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{+33}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.1e7 or 6.40000000000000034e33 < x Initial program 75.6%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6442.6
Applied rewrites42.6%
Taylor expanded in j around 0
Applied rewrites67.7%
Taylor expanded in y around inf
Applied rewrites49.5%
if -2.1e7 < x < -2.7999999999999999e-201Initial program 78.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.0
Applied rewrites59.0%
Taylor expanded in b around 0
Applied rewrites37.2%
if -2.7999999999999999e-201 < x < 6.40000000000000034e33Initial program 74.9%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6424.5
Applied rewrites24.5%
Taylor expanded in j around 0
Applied rewrites69.2%
Taylor expanded in i around inf
Applied rewrites35.7%
Final simplification42.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -21000000.0)
t_1
(if (<= x -2.8e-201)
(* j (* a c))
(if (<= x 6.4e+33) (* b (* t i)) 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 (x <= -21000000.0) {
tmp = t_1;
} else if (x <= -2.8e-201) {
tmp = j * (a * c);
} else if (x <= 6.4e+33) {
tmp = b * (t * i);
} 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 (x <= (-21000000.0d0)) then
tmp = t_1
else if (x <= (-2.8d-201)) then
tmp = j * (a * c)
else if (x <= 6.4d+33) then
tmp = b * (t * i)
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 (x <= -21000000.0) {
tmp = t_1;
} else if (x <= -2.8e-201) {
tmp = j * (a * c);
} else if (x <= 6.4e+33) {
tmp = b * (t * i);
} 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 x <= -21000000.0: tmp = t_1 elif x <= -2.8e-201: tmp = j * (a * c) elif x <= 6.4e+33: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -21000000.0) tmp = t_1; elseif (x <= -2.8e-201) tmp = Float64(j * Float64(a * c)); elseif (x <= 6.4e+33) tmp = Float64(b * Float64(t * i)); 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 (x <= -21000000.0) tmp = t_1; elseif (x <= -2.8e-201) tmp = j * (a * c); elseif (x <= 6.4e+33) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -21000000.0], t$95$1, If[LessEqual[x, -2.8e-201], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.4e+33], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -21000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-201}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{+33}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.1e7 or 6.40000000000000034e33 < x Initial program 75.6%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6473.2
Applied rewrites73.2%
Taylor expanded in t around 0
Applied rewrites44.3%
if -2.1e7 < x < -2.7999999999999999e-201Initial program 78.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.0
Applied rewrites59.0%
Taylor expanded in b around 0
Applied rewrites37.2%
if -2.7999999999999999e-201 < x < 6.40000000000000034e33Initial program 74.9%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6424.5
Applied rewrites24.5%
Taylor expanded in j around 0
Applied rewrites69.2%
Taylor expanded in i around inf
Applied rewrites35.7%
Final simplification40.1%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* z (* x y)))) (if (<= x -21000000.0) t_1 (if (<= x 6.3e+205) (* 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 = z * (x * y);
double tmp;
if (x <= -21000000.0) {
tmp = t_1;
} else if (x <= 6.3e+205) {
tmp = j * (a * c);
} 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 (x <= (-21000000.0d0)) then
tmp = t_1
else if (x <= 6.3d+205) then
tmp = j * (a * c)
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 (x <= -21000000.0) {
tmp = t_1;
} else if (x <= 6.3e+205) {
tmp = j * (a * c);
} 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 x <= -21000000.0: tmp = t_1 elif x <= 6.3e+205: tmp = j * (a * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -21000000.0) tmp = t_1; elseif (x <= 6.3e+205) tmp = Float64(j * Float64(a * c)); 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 (x <= -21000000.0) tmp = t_1; elseif (x <= 6.3e+205) tmp = j * (a * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -21000000.0], t$95$1, If[LessEqual[x, 6.3e+205], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -21000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{+205}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.1e7 or 6.30000000000000014e205 < x Initial program 76.5%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6479.2
Applied rewrites79.2%
Taylor expanded in t around 0
Applied rewrites52.4%
if -2.1e7 < x < 6.30000000000000014e205Initial program 75.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.7
Applied rewrites50.7%
Taylor expanded in b around 0
Applied rewrites27.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t 1.1e-168) (* j (* a c)) (* c (* a j))))
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.1e-168) {
tmp = j * (a * c);
} else {
tmp = c * (a * j);
}
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.1d-168) then
tmp = j * (a * c)
else
tmp = c * (a * j)
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.1e-168) {
tmp = j * (a * c);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= 1.1e-168: tmp = j * (a * c) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 1.1e-168) tmp = Float64(j * Float64(a * c)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= 1.1e-168) tmp = j * (a * c); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 1.1e-168], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.1 \cdot 10^{-168}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if t < 1.0999999999999999e-168Initial program 79.0%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.5
Applied rewrites43.5%
Taylor expanded in b around 0
Applied rewrites25.4%
if 1.0999999999999999e-168 < t Initial program 70.5%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6440.4
Applied rewrites40.4%
Taylor expanded in j around inf
Applied rewrites22.9%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
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 = c * (a * j)
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 c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 75.9%
Taylor expanded in a around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6437.5
Applied rewrites37.5%
Taylor expanded in j around inf
Applied rewrites22.6%
(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 2024233
(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)))))