
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y))))))
(if (<= t_1 INFINITY)
t_1
(* (fma (- t) a (fma z y (/ (* (fma (- y) j (* b a)) i) x))) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(-t, a, fma(z, y, ((fma(-y, j, (b * a)) * i) / x))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(fma(Float64(-y), j, Float64(b * a)) * i) / x))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-t) * a + N[(z * y + N[(N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites44.7%
Taylor expanded in x around inf
Applied rewrites70.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- y) j (* b a)))
(t_2 (* (fma (- t) a (fma z y (/ (* t_1 i) x))) x)))
(if (<= i -2e+101)
t_2
(if (<= i -1e-19)
(fma t_1 i (* (fma (- x) (/ (* z y) a) (* t x)) (- a)))
(if (<= i 3.1e-73)
(+
(- (* x (- (* y z) (* t a))) (* (* c b) z))
(* j (- (* c t) (* i y))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-y, j, (b * a));
double t_2 = fma(-t, a, fma(z, y, ((t_1 * i) / x))) * x;
double tmp;
if (i <= -2e+101) {
tmp = t_2;
} else if (i <= -1e-19) {
tmp = fma(t_1, i, (fma(-x, ((z * y) / a), (t * x)) * -a));
} else if (i <= 3.1e-73) {
tmp = ((x * ((y * z) - (t * a))) - ((c * b) * z)) + (j * ((c * t) - (i * y)));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-y), j, Float64(b * a)) t_2 = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(t_1 * i) / x))) * x) tmp = 0.0 if (i <= -2e+101) tmp = t_2; elseif (i <= -1e-19) tmp = fma(t_1, i, Float64(fma(Float64(-x), Float64(Float64(z * y) / a), Float64(t * x)) * Float64(-a))); elseif (i <= 3.1e-73) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(c * b) * z)) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-t) * a + N[(z * y + N[(N[(t$95$1 * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[i, -2e+101], t$95$2, If[LessEqual[i, -1e-19], N[(t$95$1 * i + N[(N[((-x) * N[(N[(z * y), $MachinePrecision] / a), $MachinePrecision] + N[(t * x), $MachinePrecision]), $MachinePrecision] * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e-73], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(c * b), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right)\\
t_2 := \mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{t\_1 \cdot i}{x}\right)\right) \cdot x\\
\mathbf{if}\;i \leq -2 \cdot 10^{+101}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1 \cdot 10^{-19}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, i, \mathsf{fma}\left(-x, \frac{z \cdot y}{a}, t \cdot x\right) \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{-73}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(c \cdot b\right) \cdot z\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2e101 or 3.09999999999999969e-73 < i Initial program 64.8%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites73.0%
Taylor expanded in x around inf
Applied rewrites78.5%
if -2e101 < i < -9.9999999999999998e-20Initial program 65.6%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites65.3%
Taylor expanded in a around -inf
Applied rewrites83.9%
if -9.9999999999999998e-20 < i < 3.09999999999999969e-73Initial program 86.9%
Taylor expanded in z around inf
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6481.2
Applied rewrites81.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= i -5.5e+153) (not (<= i 1.85e+81)))
(* (fma (- t) a (fma z y (/ (* (fma (- y) j (* b a)) i) x))) x)
(fma
(fma (- z) c (* i a))
b
(fma (fma (- a) x (* j c)) t (* (fma (- i) j (* z x)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -5.5e+153) || !(i <= 1.85e+81)) {
tmp = fma(-t, a, fma(z, y, ((fma(-y, j, (b * a)) * i) / x))) * x;
} else {
tmp = fma(fma(-z, c, (i * a)), b, fma(fma(-a, x, (j * c)), t, (fma(-i, j, (z * x)) * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -5.5e+153) || !(i <= 1.85e+81)) tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(fma(Float64(-y), j, Float64(b * a)) * i) / x))) * x); else tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -5.5e+153], N[Not[LessEqual[i, 1.85e+81]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y + N[(N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.5 \cdot 10^{+153} \lor \neg \left(i \leq 1.85 \cdot 10^{+81}\right):\\
\;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if i < -5.5000000000000003e153 or 1.85e81 < i Initial program 57.7%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites71.1%
Taylor expanded in x around inf
Applied rewrites82.2%
if -5.5000000000000003e153 < i < 1.85e81Initial program 81.8%
Taylor expanded in y around 0
Applied rewrites82.3%
Final simplification82.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.55e+68) (not (<= i 3.1e-73))) (* (fma (- t) a (fma z y (/ (* (fma (- y) j (* b a)) i) x))) x) (+ (- (* x (- (* y z) (* t a))) (* (* c b) z)) (* j (- (* c t) (* i y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.55e+68) || !(i <= 3.1e-73)) {
tmp = fma(-t, a, fma(z, y, ((fma(-y, j, (b * a)) * i) / x))) * x;
} else {
tmp = ((x * ((y * z) - (t * a))) - ((c * b) * z)) + (j * ((c * t) - (i * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.55e+68) || !(i <= 3.1e-73)) tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(fma(Float64(-y), j, Float64(b * a)) * i) / x))) * x); else tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(c * b) * z)) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.55e+68], N[Not[LessEqual[i, 3.1e-73]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y + N[(N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(c * b), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.55 \cdot 10^{+68} \lor \neg \left(i \leq 3.1 \cdot 10^{-73}\right):\\
\;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(c \cdot b\right) \cdot z\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\end{array}
\end{array}
if i < -1.5499999999999999e68 or 3.09999999999999969e-73 < i Initial program 65.4%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites74.0%
Taylor expanded in x around inf
Applied rewrites78.6%
if -1.5499999999999999e68 < i < 3.09999999999999969e-73Initial program 82.6%
Taylor expanded in z around inf
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6476.2
Applied rewrites76.2%
Final simplification77.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -2.7e+16) (not (<= y 4.2e-45))) (* (fma (- t) a (fma z y (/ (* (fma (- y) j (* b a)) i) x))) x) (fma (fma (- z) c (* i a)) b (* (fma (- a) x (* j c)) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -2.7e+16) || !(y <= 4.2e-45)) {
tmp = fma(-t, a, fma(z, y, ((fma(-y, j, (b * a)) * i) / x))) * x;
} else {
tmp = fma(fma(-z, c, (i * a)), b, (fma(-a, x, (j * c)) * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -2.7e+16) || !(y <= 4.2e-45)) tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(fma(Float64(-y), j, Float64(b * a)) * i) / x))) * x); else tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-a), x, Float64(j * c)) * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -2.7e+16], N[Not[LessEqual[y, 4.2e-45]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y + N[(N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+16} \lor \neg \left(y \leq 4.2 \cdot 10^{-45}\right):\\
\;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\
\end{array}
\end{array}
if y < -2.7e16 or 4.1999999999999999e-45 < y Initial program 66.5%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites68.3%
Taylor expanded in x around inf
Applied rewrites73.4%
if -2.7e16 < y < 4.1999999999999999e-45Initial program 80.0%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites78.9%
Final simplification76.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -1.15e+70) (not (<= y 1.3e-15))) (+ (* (* z x) y) (* j (- (* c t) (* i y)))) (fma (fma (- x) a (* j c)) t (* (fma (- c) z (* i a)) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -1.15e+70) || !(y <= 1.3e-15)) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else {
tmp = fma(fma(-x, a, (j * c)), t, (fma(-c, z, (i * a)) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -1.15e+70) || !(y <= 1.3e-15)) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); else tmp = fma(fma(Float64(-x), a, Float64(j * c)), t, Float64(fma(Float64(-c), z, Float64(i * a)) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.15e+70], N[Not[LessEqual[y, 1.3e-15]], $MachinePrecision]], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+70} \lor \neg \left(y \leq 1.3 \cdot 10^{-15}\right):\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\right)\\
\end{array}
\end{array}
if y < -1.14999999999999997e70 or 1.30000000000000002e-15 < y Initial program 66.3%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6466.4
Applied rewrites66.4%
if -1.14999999999999997e70 < y < 1.30000000000000002e-15Initial program 78.5%
Taylor expanded in y around 0
Applied rewrites73.2%
Taylor expanded in y around 0
Applied rewrites76.2%
Final simplification72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.15e+70)
(+ (* (* z x) y) (* j (- (* c t) (* i y))))
(if (<= y 3.5e+40)
(fma (* (- a) x) t (* (fma (- c) z (* i a)) b))
(if (<= y 2.15e+119)
(fma (fma (- y) j (* b a)) i (* (* (- t) a) x))
(* (fma (- b) c (* y x)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.15e+70) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else if (y <= 3.5e+40) {
tmp = fma((-a * x), t, (fma(-c, z, (i * a)) * b));
} else if (y <= 2.15e+119) {
tmp = fma(fma(-y, j, (b * a)), i, ((-t * a) * x));
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.15e+70) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (y <= 3.5e+40) tmp = fma(Float64(Float64(-a) * x), t, Float64(fma(Float64(-c), z, Float64(i * a)) * b)); elseif (y <= 2.15e+119) tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(Float64(Float64(-t) * a) * x)); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.15e+70], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e+40], N[(N[((-a) * x), $MachinePrecision] * t + N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.15e+119], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+70}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+40}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot x, t, \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\right)\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{+119}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \left(\left(-t\right) \cdot a\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if y < -1.14999999999999997e70Initial program 62.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6467.7
Applied rewrites67.7%
if -1.14999999999999997e70 < y < 3.4999999999999999e40Initial program 78.0%
Taylor expanded in y around 0
Applied rewrites72.6%
Taylor expanded in y around 0
Applied rewrites73.7%
Taylor expanded in x around inf
Applied rewrites68.4%
if 3.4999999999999999e40 < y < 2.15000000000000016e119Initial program 71.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites64.6%
Taylor expanded in y around 0
Applied rewrites78.9%
if 2.15000000000000016e119 < y Initial program 65.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.7
Applied rewrites76.7%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.5e+69)
(* (fma (- i) j (* z x)) y)
(if (<= y 3.5e+40)
(fma (* (- a) x) t (* (fma (- c) z (* i a)) b))
(if (<= y 2.15e+119)
(fma (fma (- y) j (* b a)) i (* (* (- t) a) x))
(* (fma (- b) c (* y x)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.5e+69) {
tmp = fma(-i, j, (z * x)) * y;
} else if (y <= 3.5e+40) {
tmp = fma((-a * x), t, (fma(-c, z, (i * a)) * b));
} else if (y <= 2.15e+119) {
tmp = fma(fma(-y, j, (b * a)), i, ((-t * a) * x));
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.5e+69) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (y <= 3.5e+40) tmp = fma(Float64(Float64(-a) * x), t, Float64(fma(Float64(-c), z, Float64(i * a)) * b)); elseif (y <= 2.15e+119) tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(Float64(Float64(-t) * a) * x)); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.5e+69], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 3.5e+40], N[(N[((-a) * x), $MachinePrecision] * t + N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.15e+119], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+69}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+40}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot x, t, \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\right)\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{+119}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \left(\left(-t\right) \cdot a\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if y < -2.50000000000000018e69Initial program 62.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
if -2.50000000000000018e69 < y < 3.4999999999999999e40Initial program 78.0%
Taylor expanded in y around 0
Applied rewrites72.6%
Taylor expanded in y around 0
Applied rewrites73.7%
Taylor expanded in x around inf
Applied rewrites68.4%
if 3.4999999999999999e40 < y < 2.15000000000000016e119Initial program 71.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites64.6%
Taylor expanded in y around 0
Applied rewrites78.9%
if 2.15000000000000016e119 < y Initial program 65.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.7
Applied rewrites76.7%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.4e+123)
(+ (* (* z x) y) (* j (- (* c t) (* i y))))
(if (<= y 5.5e-16)
(fma (fma (- z) c (* i a)) b (* (fma (- a) x (* j c)) t))
(fma (fma (- y) j (* b a)) i (* (fma (- a) t (* z y)) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.4e+123) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else if (y <= 5.5e-16) {
tmp = fma(fma(-z, c, (i * a)), b, (fma(-a, x, (j * c)) * t));
} else {
tmp = fma(fma(-y, j, (b * a)), i, (fma(-a, t, (z * y)) * x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.4e+123) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (y <= 5.5e-16) tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-a), x, Float64(j * c)) * t)); else tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.4e+123], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-16], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+123}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-16}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\end{array}
\end{array}
if y < -2.39999999999999989e123Initial program 66.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6469.6
Applied rewrites69.6%
if -2.39999999999999989e123 < y < 5.49999999999999964e-16Initial program 76.9%
Taylor expanded in y around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites77.2%
if 5.49999999999999964e-16 < y Initial program 68.7%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites75.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.15e+70)
(+ (* (* z x) y) (* j (- (* c t) (* i y))))
(if (<= y 5.5e-16)
(fma (fma (- x) a (* j c)) t (* (fma (- c) z (* i a)) b))
(fma (fma (- y) j (* b a)) i (* (fma (- a) t (* z y)) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.15e+70) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else if (y <= 5.5e-16) {
tmp = fma(fma(-x, a, (j * c)), t, (fma(-c, z, (i * a)) * b));
} else {
tmp = fma(fma(-y, j, (b * a)), i, (fma(-a, t, (z * y)) * x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.15e+70) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (y <= 5.5e-16) tmp = fma(fma(Float64(-x), a, Float64(j * c)), t, Float64(fma(Float64(-c), z, Float64(i * a)) * b)); else tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.15e+70], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-16], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+70}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-16}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\end{array}
\end{array}
if y < -1.14999999999999997e70Initial program 62.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6467.7
Applied rewrites67.7%
if -1.14999999999999997e70 < y < 5.49999999999999964e-16Initial program 78.5%
Taylor expanded in y around 0
Applied rewrites73.2%
Taylor expanded in y around 0
Applied rewrites76.2%
if 5.49999999999999964e-16 < y Initial program 68.7%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
distribute-rgt-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
Applied rewrites75.1%
Final simplification74.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.5e+69)
(* (fma (- i) j (* z x)) y)
(if (<= y 3.7e+40)
(fma (* (- a) x) t (* (fma (- c) z (* i a)) b))
(if (<= y 7.5e+119)
(* (fma (- y) j (* b a)) i)
(* (fma (- b) c (* y x)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.5e+69) {
tmp = fma(-i, j, (z * x)) * y;
} else if (y <= 3.7e+40) {
tmp = fma((-a * x), t, (fma(-c, z, (i * a)) * b));
} else if (y <= 7.5e+119) {
tmp = fma(-y, j, (b * a)) * i;
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.5e+69) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (y <= 3.7e+40) tmp = fma(Float64(Float64(-a) * x), t, Float64(fma(Float64(-c), z, Float64(i * a)) * b)); elseif (y <= 7.5e+119) tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.5e+69], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 3.7e+40], N[(N[((-a) * x), $MachinePrecision] * t + N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+119], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+69}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+40}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot x, t, \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+119}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if y < -2.50000000000000018e69Initial program 62.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
if -2.50000000000000018e69 < y < 3.7e40Initial program 78.0%
Taylor expanded in y around 0
Applied rewrites72.6%
Taylor expanded in y around 0
Applied rewrites73.7%
Taylor expanded in x around inf
Applied rewrites68.4%
if 3.7e40 < y < 7.500000000000001e119Initial program 71.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.8
Applied rewrites71.8%
if 7.500000000000001e119 < y Initial program 65.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.7
Applied rewrites76.7%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= b -2.85e+90)
(* (* b a) i)
(if (<= b -5.5e-244)
t_1
(if (<= b 9.2e-281)
(* (fma (- i) j (* z x)) y)
(if (<= b 5.8e+29) (* (fma (- a) x (* j c)) 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(-b, c, (y * x)) * z;
double tmp;
if (b <= -2.85e+90) {
tmp = (b * a) * i;
} else if (b <= -5.5e-244) {
tmp = t_1;
} else if (b <= 9.2e-281) {
tmp = fma(-i, j, (z * x)) * y;
} else if (b <= 5.8e+29) {
tmp = fma(-a, x, (j * c)) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (b <= -2.85e+90) tmp = Float64(Float64(b * a) * i); elseif (b <= -5.5e-244) tmp = t_1; elseif (b <= 9.2e-281) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (b <= 5.8e+29) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * 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[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[b, -2.85e+90], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -5.5e-244], t$95$1, If[LessEqual[b, 9.2e-281], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[b, 5.8e+29], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;b \leq -2.85 \cdot 10^{+90}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-244}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-281}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+29}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.85000000000000009e90Initial program 78.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.2
Applied rewrites65.2%
Taylor expanded in y around 0
Applied rewrites58.8%
if -2.85000000000000009e90 < b < -5.4999999999999998e-244 or 5.7999999999999999e29 < b Initial program 74.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.6
Applied rewrites55.6%
if -5.4999999999999998e-244 < b < 9.19999999999999956e-281Initial program 72.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.8
Applied rewrites76.8%
if 9.19999999999999956e-281 < b < 5.7999999999999999e29Initial program 66.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.6
Applied rewrites59.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -4.6e+95)
(* (* b a) i)
(if (<= b -4.5e-290)
(* (* (- y) j) i)
(if (<= b 2.4e+145)
(* (* (- x) t) a)
(if (<= b 2.1e+195) (* (* c t) j) (* (* (- b) z) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.6e+95) {
tmp = (b * a) * i;
} else if (b <= -4.5e-290) {
tmp = (-y * j) * i;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 2.1e+195) {
tmp = (c * t) * j;
} else {
tmp = (-b * z) * 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 (b <= (-4.6d+95)) then
tmp = (b * a) * i
else if (b <= (-4.5d-290)) then
tmp = (-y * j) * i
else if (b <= 2.4d+145) then
tmp = (-x * t) * a
else if (b <= 2.1d+195) then
tmp = (c * t) * j
else
tmp = (-b * z) * 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 (b <= -4.6e+95) {
tmp = (b * a) * i;
} else if (b <= -4.5e-290) {
tmp = (-y * j) * i;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 2.1e+195) {
tmp = (c * t) * j;
} else {
tmp = (-b * z) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.6e+95: tmp = (b * a) * i elif b <= -4.5e-290: tmp = (-y * j) * i elif b <= 2.4e+145: tmp = (-x * t) * a elif b <= 2.1e+195: tmp = (c * t) * j else: tmp = (-b * z) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.6e+95) tmp = Float64(Float64(b * a) * i); elseif (b <= -4.5e-290) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (b <= 2.4e+145) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (b <= 2.1e+195) tmp = Float64(Float64(c * t) * j); else tmp = Float64(Float64(Float64(-b) * z) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.6e+95) tmp = (b * a) * i; elseif (b <= -4.5e-290) tmp = (-y * j) * i; elseif (b <= 2.4e+145) tmp = (-x * t) * a; elseif (b <= 2.1e+195) tmp = (c * t) * j; else tmp = (-b * z) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.6e+95], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -4.5e-290], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 2.4e+145], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 2.1e+195], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.6 \cdot 10^{+95}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-290}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+195}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\
\end{array}
\end{array}
if b < -4.59999999999999994e95Initial program 78.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.6
Applied rewrites64.6%
Taylor expanded in y around 0
Applied rewrites59.9%
if -4.59999999999999994e95 < b < -4.5e-290Initial program 70.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.2
Applied rewrites41.2%
Taylor expanded in y around inf
Applied rewrites30.3%
if -4.5e-290 < b < 2.39999999999999992e145Initial program 72.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.7
Applied rewrites51.7%
Taylor expanded in x around inf
Applied rewrites40.5%
if 2.39999999999999992e145 < b < 2.10000000000000009e195Initial program 66.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.4
Applied rewrites56.4%
Taylor expanded in x around 0
Applied rewrites57.0%
Applied rewrites63.3%
if 2.10000000000000009e195 < b Initial program 79.1%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/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
lower-*.f6465.9
Applied rewrites65.9%
Taylor expanded in z around inf
Applied rewrites55.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -4.6e+95)
(* (* b a) i)
(if (<= b -4.5e-290)
(* (* (- y) j) i)
(if (<= b 2.4e+145)
(* (* (- x) t) a)
(if (<= b 2.1e+195) (* (* c t) j) (* (- b) (* c z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.6e+95) {
tmp = (b * a) * i;
} else if (b <= -4.5e-290) {
tmp = (-y * j) * i;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 2.1e+195) {
tmp = (c * t) * j;
} else {
tmp = -b * (c * 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 (b <= (-4.6d+95)) then
tmp = (b * a) * i
else if (b <= (-4.5d-290)) then
tmp = (-y * j) * i
else if (b <= 2.4d+145) then
tmp = (-x * t) * a
else if (b <= 2.1d+195) then
tmp = (c * t) * j
else
tmp = -b * (c * 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 (b <= -4.6e+95) {
tmp = (b * a) * i;
} else if (b <= -4.5e-290) {
tmp = (-y * j) * i;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 2.1e+195) {
tmp = (c * t) * j;
} else {
tmp = -b * (c * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.6e+95: tmp = (b * a) * i elif b <= -4.5e-290: tmp = (-y * j) * i elif b <= 2.4e+145: tmp = (-x * t) * a elif b <= 2.1e+195: tmp = (c * t) * j else: tmp = -b * (c * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.6e+95) tmp = Float64(Float64(b * a) * i); elseif (b <= -4.5e-290) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (b <= 2.4e+145) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (b <= 2.1e+195) tmp = Float64(Float64(c * t) * j); else tmp = Float64(Float64(-b) * Float64(c * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.6e+95) tmp = (b * a) * i; elseif (b <= -4.5e-290) tmp = (-y * j) * i; elseif (b <= 2.4e+145) tmp = (-x * t) * a; elseif (b <= 2.1e+195) tmp = (c * t) * j; else tmp = -b * (c * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.6e+95], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -4.5e-290], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 2.4e+145], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 2.1e+195], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.6 \cdot 10^{+95}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-290}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+195}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\
\end{array}
\end{array}
if b < -4.59999999999999994e95Initial program 78.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.6
Applied rewrites64.6%
Taylor expanded in y around 0
Applied rewrites59.9%
if -4.59999999999999994e95 < b < -4.5e-290Initial program 70.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.2
Applied rewrites41.2%
Taylor expanded in y around inf
Applied rewrites30.3%
if -4.5e-290 < b < 2.39999999999999992e145Initial program 72.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.7
Applied rewrites51.7%
Taylor expanded in x around inf
Applied rewrites40.5%
if 2.39999999999999992e145 < b < 2.10000000000000009e195Initial program 66.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.4
Applied rewrites56.4%
Taylor expanded in x around 0
Applied rewrites57.0%
Applied rewrites63.3%
if 2.10000000000000009e195 < b Initial program 79.1%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/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
lower-*.f6465.9
Applied rewrites65.9%
Taylor expanded in z around inf
Applied rewrites49.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.25e-26) (not (<= a 7.8e-75))) (* (fma (- x) t (* i b)) a) (* (fma (- b) c (* y x)) z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.25e-26) || !(a <= 7.8e-75)) {
tmp = fma(-x, t, (i * b)) * a;
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.25e-26) || !(a <= 7.8e-75)) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.25e-26], N[Not[LessEqual[a, 7.8e-75]], $MachinePrecision]], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.25 \cdot 10^{-26} \lor \neg \left(a \leq 7.8 \cdot 10^{-75}\right):\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if a < -2.2499999999999999e-26 or 7.8000000000000003e-75 < a Initial program 69.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.6
Applied rewrites67.6%
if -2.2499999999999999e-26 < a < 7.8000000000000003e-75Initial program 79.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.7
Applied rewrites60.7%
Final simplification64.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -6.5e+193) (not (<= t 5.4e+149))) (* (fma (- a) x (* j c)) t) (* (fma (- b) c (* y x)) z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -6.5e+193) || !(t <= 5.4e+149)) {
tmp = fma(-a, x, (j * c)) * t;
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -6.5e+193) || !(t <= 5.4e+149)) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -6.5e+193], N[Not[LessEqual[t, 5.4e+149]], $MachinePrecision]], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{+193} \lor \neg \left(t \leq 5.4 \cdot 10^{+149}\right):\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if t < -6.4999999999999997e193 or 5.4000000000000002e149 < t Initial program 61.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6470.8
Applied rewrites70.8%
if -6.4999999999999997e193 < t < 5.4000000000000002e149Initial program 77.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.3
Applied rewrites50.3%
Final simplification55.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3900000.0)
(* (* b a) i)
(if (<= b 2.4e+145)
(* (* (- x) t) a)
(if (<= b 2.1e+195) (* (* c t) j) (* (- b) (* c z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3900000.0) {
tmp = (b * a) * i;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 2.1e+195) {
tmp = (c * t) * j;
} else {
tmp = -b * (c * 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 (b <= (-3900000.0d0)) then
tmp = (b * a) * i
else if (b <= 2.4d+145) then
tmp = (-x * t) * a
else if (b <= 2.1d+195) then
tmp = (c * t) * j
else
tmp = -b * (c * 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 (b <= -3900000.0) {
tmp = (b * a) * i;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 2.1e+195) {
tmp = (c * t) * j;
} else {
tmp = -b * (c * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3900000.0: tmp = (b * a) * i elif b <= 2.4e+145: tmp = (-x * t) * a elif b <= 2.1e+195: tmp = (c * t) * j else: tmp = -b * (c * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3900000.0) tmp = Float64(Float64(b * a) * i); elseif (b <= 2.4e+145) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (b <= 2.1e+195) tmp = Float64(Float64(c * t) * j); else tmp = Float64(Float64(-b) * Float64(c * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3900000.0) tmp = (b * a) * i; elseif (b <= 2.4e+145) tmp = (-x * t) * a; elseif (b <= 2.1e+195) tmp = (c * t) * j; else tmp = -b * (c * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3900000.0], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 2.4e+145], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 2.1e+195], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3900000:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+195}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\
\end{array}
\end{array}
if b < -3.9e6Initial program 78.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.4
Applied rewrites58.4%
Taylor expanded in y around 0
Applied rewrites48.4%
if -3.9e6 < b < 2.39999999999999992e145Initial program 70.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.4
Applied rewrites46.4%
Taylor expanded in x around inf
Applied rewrites35.7%
if 2.39999999999999992e145 < b < 2.10000000000000009e195Initial program 66.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.4
Applied rewrites56.4%
Taylor expanded in x around 0
Applied rewrites57.0%
Applied rewrites63.3%
if 2.10000000000000009e195 < b Initial program 79.1%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/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
lower-*.f6465.9
Applied rewrites65.9%
Taylor expanded in z around inf
Applied rewrites49.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -8.2e+95) (* (* b a) i) (if (<= b 2.26e+195) (* (fma (- a) x (* j c)) t) (* (* (- b) z) c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -8.2e+95) {
tmp = (b * a) * i;
} else if (b <= 2.26e+195) {
tmp = fma(-a, x, (j * c)) * t;
} else {
tmp = (-b * z) * c;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -8.2e+95) tmp = Float64(Float64(b * a) * i); elseif (b <= 2.26e+195) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); else tmp = Float64(Float64(Float64(-b) * z) * c); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -8.2e+95], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 2.26e+195], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.2 \cdot 10^{+95}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;b \leq 2.26 \cdot 10^{+195}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\
\end{array}
\end{array}
if b < -8.19999999999999972e95Initial program 78.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.6
Applied rewrites64.6%
Taylor expanded in y around 0
Applied rewrites59.9%
if -8.19999999999999972e95 < b < 2.26000000000000001e195Initial program 70.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.9
Applied rewrites44.9%
if 2.26000000000000001e195 < b Initial program 79.1%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/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
lower-*.f6465.9
Applied rewrites65.9%
Taylor expanded in z around inf
Applied rewrites55.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* b a) i)))
(if (<= b -3900000.0)
t_1
(if (<= b 2.4e+145)
(* (* (- x) t) a)
(if (<= b 9.6e+201) (* (* c t) j) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * a) * i;
double tmp;
if (b <= -3900000.0) {
tmp = t_1;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 9.6e+201) {
tmp = (c * t) * j;
} 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 = (b * a) * i
if (b <= (-3900000.0d0)) then
tmp = t_1
else if (b <= 2.4d+145) then
tmp = (-x * t) * a
else if (b <= 9.6d+201) then
tmp = (c * t) * j
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 = (b * a) * i;
double tmp;
if (b <= -3900000.0) {
tmp = t_1;
} else if (b <= 2.4e+145) {
tmp = (-x * t) * a;
} else if (b <= 9.6e+201) {
tmp = (c * t) * j;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * a) * i tmp = 0 if b <= -3900000.0: tmp = t_1 elif b <= 2.4e+145: tmp = (-x * t) * a elif b <= 9.6e+201: tmp = (c * t) * j else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * a) * i) tmp = 0.0 if (b <= -3900000.0) tmp = t_1; elseif (b <= 2.4e+145) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (b <= 9.6e+201) tmp = Float64(Float64(c * t) * j); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * a) * i; tmp = 0.0; if (b <= -3900000.0) tmp = t_1; elseif (b <= 2.4e+145) tmp = (-x * t) * a; elseif (b <= 9.6e+201) tmp = (c * t) * j; 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[(b * a), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[b, -3900000.0], t$95$1, If[LessEqual[b, 2.4e+145], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 9.6e+201], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot a\right) \cdot i\\
\mathbf{if}\;b \leq -3900000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;b \leq 9.6 \cdot 10^{+201}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.9e6 or 9.59999999999999971e201 < b Initial program 78.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.4
Applied rewrites55.4%
Taylor expanded in y around 0
Applied rewrites46.0%
if -3.9e6 < b < 2.39999999999999992e145Initial program 70.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.4
Applied rewrites46.4%
Taylor expanded in x around inf
Applied rewrites35.7%
if 2.39999999999999992e145 < b < 9.59999999999999971e201Initial program 72.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.1
Applied rewrites47.1%
Taylor expanded in x around 0
Applied rewrites47.7%
Applied rewrites53.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.08e-12) (not (<= j 4.2e+85))) (* (* j c) t) (* (* b a) i)))
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.08e-12) || !(j <= 4.2e+85)) {
tmp = (j * c) * t;
} else {
tmp = (b * a) * 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 ((j <= (-1.08d-12)) .or. (.not. (j <= 4.2d+85))) then
tmp = (j * c) * t
else
tmp = (b * a) * 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 ((j <= -1.08e-12) || !(j <= 4.2e+85)) {
tmp = (j * c) * t;
} else {
tmp = (b * a) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.08e-12) or not (j <= 4.2e+85): tmp = (j * c) * t else: tmp = (b * a) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.08e-12) || !(j <= 4.2e+85)) tmp = Float64(Float64(j * c) * t); else tmp = Float64(Float64(b * a) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.08e-12) || ~((j <= 4.2e+85))) tmp = (j * c) * t; else tmp = (b * a) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.08e-12], N[Not[LessEqual[j, 4.2e+85]], $MachinePrecision]], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 4.2 \cdot 10^{+85}\right):\\
\;\;\;\;\left(j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\end{array}
\end{array}
if j < -1.08000000000000004e-12 or 4.2000000000000002e85 < j Initial program 72.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.2
Applied rewrites50.2%
Taylor expanded in x around 0
Applied rewrites41.4%
if -1.08000000000000004e-12 < j < 4.2000000000000002e85Initial program 73.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.8
Applied rewrites41.8%
Taylor expanded in y around 0
Applied rewrites35.0%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.08e-12) (not (<= j 6e+85))) (* (* j c) t) (* (* i b) a)))
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.08e-12) || !(j <= 6e+85)) {
tmp = (j * c) * t;
} else {
tmp = (i * b) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1.08d-12)) .or. (.not. (j <= 6d+85))) then
tmp = (j * c) * t
else
tmp = (i * b) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.08e-12) || !(j <= 6e+85)) {
tmp = (j * c) * t;
} else {
tmp = (i * b) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.08e-12) or not (j <= 6e+85): tmp = (j * c) * t else: tmp = (i * b) * a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.08e-12) || !(j <= 6e+85)) tmp = Float64(Float64(j * c) * t); else tmp = Float64(Float64(i * b) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.08e-12) || ~((j <= 6e+85))) tmp = (j * c) * t; else tmp = (i * b) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.08e-12], N[Not[LessEqual[j, 6e+85]], $MachinePrecision]], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 6 \cdot 10^{+85}\right):\\
\;\;\;\;\left(j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\end{array}
\end{array}
if j < -1.08000000000000004e-12 or 6.0000000000000001e85 < j Initial program 72.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.2
Applied rewrites50.2%
Taylor expanded in x around 0
Applied rewrites41.4%
if -1.08000000000000004e-12 < j < 6.0000000000000001e85Initial program 73.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.8
Applied rewrites41.8%
Taylor expanded in y around 0
Applied rewrites34.1%
Final simplification37.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -6.5e+158) (* (* j t) c) (if (<= t 1.35e+123) (* (* i b) a) (* (* c t) 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 <= -6.5e+158) {
tmp = (j * t) * c;
} else if (t <= 1.35e+123) {
tmp = (i * b) * a;
} else {
tmp = (c * t) * 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 <= (-6.5d+158)) then
tmp = (j * t) * c
else if (t <= 1.35d+123) then
tmp = (i * b) * a
else
tmp = (c * t) * 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 <= -6.5e+158) {
tmp = (j * t) * c;
} else if (t <= 1.35e+123) {
tmp = (i * b) * a;
} else {
tmp = (c * t) * j;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.5e+158: tmp = (j * t) * c elif t <= 1.35e+123: tmp = (i * b) * a else: tmp = (c * t) * j return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.5e+158) tmp = Float64(Float64(j * t) * c); elseif (t <= 1.35e+123) tmp = Float64(Float64(i * b) * a); else tmp = Float64(Float64(c * t) * j); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.5e+158) tmp = (j * t) * c; elseif (t <= 1.35e+123) tmp = (i * b) * a; else tmp = (c * t) * j; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.5e+158], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[t, 1.35e+123], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{+158}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+123}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\end{array}
\end{array}
if t < -6.5000000000000001e158Initial program 61.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.8
Applied rewrites76.8%
Taylor expanded in x around 0
Applied rewrites45.6%
if -6.5000000000000001e158 < t < 1.35000000000000007e123Initial program 77.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.6
Applied rewrites47.6%
Taylor expanded in y around 0
Applied rewrites33.7%
if 1.35000000000000007e123 < t Initial program 67.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.4
Applied rewrites62.4%
Taylor expanded in x around 0
Applied rewrites35.5%
Applied rewrites40.2%
(FPCore (x y z t a b c i j) :precision binary64 (* (* c t) j))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (c * t) * 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 * t) * 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 * t) * j;
}
def code(x, y, z, t, a, b, c, i, j): return (c * t) * j
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(c * t) * j) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (c * t) * j; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]
\begin{array}{l}
\\
\left(c \cdot t\right) \cdot j
\end{array}
Initial program 73.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6437.3
Applied rewrites37.3%
Taylor expanded in x around 0
Applied rewrites19.7%
Applied rewrites20.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024326
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))