
(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 27 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)))
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* (- (/ (* x y) b) c) (* z b)))))
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))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (((x * y) / b) - c) * (z * b);
}
return tmp;
}
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 * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (((x * y) / b) - c) * (z * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (((x * y) / b) - c) * (z * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(Float64(Float64(x * y) / b) - c) * Float64(z * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (((x * y) / b) - c) * (z * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{x \cdot y}{b} - c\right) \cdot \left(z \cdot b\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 92.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 b around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified15.3%
Taylor expanded in z around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6461.4%
Simplified61.4%
Final simplification85.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= c -1.3e+121)
(* c (- (* a j) (* z b)))
(if (<= c -2.5e+38)
t_1
(if (<= c -2.55e-83)
(* (* t b) (- i (/ (* x a) b)))
(if (<= c 1.7e-123)
t_1
(if (<= c 9.5e-31)
(* (- t (/ (* y j) b)) (* b i))
(* c (* j (- a (/ (* z b) j)))))))))))
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) - (i * j));
double tmp;
if (c <= -1.3e+121) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -2.5e+38) {
tmp = t_1;
} else if (c <= -2.55e-83) {
tmp = (t * b) * (i - ((x * a) / b));
} else if (c <= 1.7e-123) {
tmp = t_1;
} else if (c <= 9.5e-31) {
tmp = (t - ((y * j) / b)) * (b * i);
} else {
tmp = c * (j * (a - ((z * b) / 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) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (c <= (-1.3d+121)) then
tmp = c * ((a * j) - (z * b))
else if (c <= (-2.5d+38)) then
tmp = t_1
else if (c <= (-2.55d-83)) then
tmp = (t * b) * (i - ((x * a) / b))
else if (c <= 1.7d-123) then
tmp = t_1
else if (c <= 9.5d-31) then
tmp = (t - ((y * j) / b)) * (b * i)
else
tmp = c * (j * (a - ((z * b) / 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 t_1 = y * ((x * z) - (i * j));
double tmp;
if (c <= -1.3e+121) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -2.5e+38) {
tmp = t_1;
} else if (c <= -2.55e-83) {
tmp = (t * b) * (i - ((x * a) / b));
} else if (c <= 1.7e-123) {
tmp = t_1;
} else if (c <= 9.5e-31) {
tmp = (t - ((y * j) / b)) * (b * i);
} else {
tmp = c * (j * (a - ((z * b) / j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if c <= -1.3e+121: tmp = c * ((a * j) - (z * b)) elif c <= -2.5e+38: tmp = t_1 elif c <= -2.55e-83: tmp = (t * b) * (i - ((x * a) / b)) elif c <= 1.7e-123: tmp = t_1 elif c <= 9.5e-31: tmp = (t - ((y * j) / b)) * (b * i) else: tmp = c * (j * (a - ((z * b) / j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (c <= -1.3e+121) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (c <= -2.5e+38) tmp = t_1; elseif (c <= -2.55e-83) tmp = Float64(Float64(t * b) * Float64(i - Float64(Float64(x * a) / b))); elseif (c <= 1.7e-123) tmp = t_1; elseif (c <= 9.5e-31) tmp = Float64(Float64(t - Float64(Float64(y * j) / b)) * Float64(b * i)); else tmp = Float64(c * Float64(j * Float64(a - Float64(Float64(z * b) / j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (c <= -1.3e+121) tmp = c * ((a * j) - (z * b)); elseif (c <= -2.5e+38) tmp = t_1; elseif (c <= -2.55e-83) tmp = (t * b) * (i - ((x * a) / b)); elseif (c <= 1.7e-123) tmp = t_1; elseif (c <= 9.5e-31) tmp = (t - ((y * j) / b)) * (b * i); else tmp = c * (j * (a - ((z * b) / j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.3e+121], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.5e+38], t$95$1, If[LessEqual[c, -2.55e-83], N[(N[(t * b), $MachinePrecision] * N[(i - N[(N[(x * a), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.7e-123], t$95$1, If[LessEqual[c, 9.5e-31], N[(N[(t - N[(N[(y * j), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(j * N[(a - N[(N[(z * b), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;c \leq -1.3 \cdot 10^{+121}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.55 \cdot 10^{-83}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(i - \frac{x \cdot a}{b}\right)\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-31}:\\
\;\;\;\;\left(t - \frac{y \cdot j}{b}\right) \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(j \cdot \left(a - \frac{z \cdot b}{j}\right)\right)\\
\end{array}
\end{array}
if c < -1.2999999999999999e121Initial program 41.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6472.2%
Simplified72.2%
if -1.2999999999999999e121 < c < -2.49999999999999985e38 or -2.55000000000000018e-83 < c < 1.7e-123Initial program 80.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.1%
Simplified58.1%
if -2.49999999999999985e38 < c < -2.55000000000000018e-83Initial program 82.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified78.0%
Taylor expanded in t around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6457.3%
Simplified57.3%
if 1.7e-123 < c < 9.5000000000000008e-31Initial program 94.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified87.9%
Taylor expanded in i around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6463.5%
Simplified63.5%
if 9.5000000000000008e-31 < c Initial program 65.3%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6466.0%
Simplified66.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6468.7%
Simplified68.7%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= a -4.2e+114)
(+ (* j (- (* a c) (* y i))) (* y (* x z)))
(if (<= a -1.15e-13)
(+ t_2 t_1)
(if (<= a 3.8e-50)
(+ (* y (- (* x z) (* i j))) t_1)
(+ t_2 (* c (- (* a j) (* z b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (a <= -4.2e+114) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else if (a <= -1.15e-13) {
tmp = t_2 + t_1;
} else if (a <= 3.8e-50) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_2 + (c * ((a * j) - (z * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
if (a <= (-4.2d+114)) then
tmp = (j * ((a * c) - (y * i))) + (y * (x * z))
else if (a <= (-1.15d-13)) then
tmp = t_2 + t_1
else if (a <= 3.8d-50) then
tmp = (y * ((x * z) - (i * j))) + t_1
else
tmp = t_2 + (c * ((a * j) - (z * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (a <= -4.2e+114) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else if (a <= -1.15e-13) {
tmp = t_2 + t_1;
} else if (a <= 3.8e-50) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_2 + (c * ((a * j) - (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if a <= -4.2e+114: tmp = (j * ((a * c) - (y * i))) + (y * (x * z)) elif a <= -1.15e-13: tmp = t_2 + t_1 elif a <= 3.8e-50: tmp = (y * ((x * z) - (i * j))) + t_1 else: tmp = t_2 + (c * ((a * j) - (z * b))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (a <= -4.2e+114) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(y * Float64(x * z))); elseif (a <= -1.15e-13) tmp = Float64(t_2 + t_1); elseif (a <= 3.8e-50) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); else tmp = Float64(t_2 + Float64(c * Float64(Float64(a * j) - Float64(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (a <= -4.2e+114) tmp = (j * ((a * c) - (y * i))) + (y * (x * z)); elseif (a <= -1.15e-13) tmp = t_2 + t_1; elseif (a <= 3.8e-50) tmp = (y * ((x * z) - (i * j))) + t_1; else tmp = t_2 + (c * ((a * j) - (z * b))); end tmp_2 = 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]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+114], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e-13], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[a, 3.8e-50], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$2 + N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+114}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-13}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{-50}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 + c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -4.2000000000000001e114Initial program 50.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6468.7%
Simplified68.7%
if -4.2000000000000001e114 < a < -1.1499999999999999e-13Initial program 56.2%
Taylor expanded in j around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6472.6%
Simplified72.6%
if -1.1499999999999999e-13 < a < 3.7999999999999999e-50Initial program 83.8%
Taylor expanded in a around 0
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
Simplified78.7%
if 3.7999999999999999e-50 < a Initial program 70.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified69.3%
Final simplification73.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= a -1.42e+187)
t_1
(if (<= a -6.2e+146)
(* x (- 0.0 (* t a)))
(if (<= a 2e-40)
(* c (* z (- 0.0 b)))
(if (<= a 1.15e+73)
(* z (* x y))
(if (<= a 4.4e+230) (* t (- 0.0 (* x a))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (a <= -1.42e+187) {
tmp = t_1;
} else if (a <= -6.2e+146) {
tmp = x * (0.0 - (t * a));
} else if (a <= 2e-40) {
tmp = c * (z * (0.0 - b));
} else if (a <= 1.15e+73) {
tmp = z * (x * y);
} else if (a <= 4.4e+230) {
tmp = t * (0.0 - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (a * c)
if (a <= (-1.42d+187)) then
tmp = t_1
else if (a <= (-6.2d+146)) then
tmp = x * (0.0d0 - (t * a))
else if (a <= 2d-40) then
tmp = c * (z * (0.0d0 - b))
else if (a <= 1.15d+73) then
tmp = z * (x * y)
else if (a <= 4.4d+230) then
tmp = t * (0.0d0 - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (a <= -1.42e+187) {
tmp = t_1;
} else if (a <= -6.2e+146) {
tmp = x * (0.0 - (t * a));
} else if (a <= 2e-40) {
tmp = c * (z * (0.0 - b));
} else if (a <= 1.15e+73) {
tmp = z * (x * y);
} else if (a <= 4.4e+230) {
tmp = t * (0.0 - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if a <= -1.42e+187: tmp = t_1 elif a <= -6.2e+146: tmp = x * (0.0 - (t * a)) elif a <= 2e-40: tmp = c * (z * (0.0 - b)) elif a <= 1.15e+73: tmp = z * (x * y) elif a <= 4.4e+230: tmp = t * (0.0 - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (a <= -1.42e+187) tmp = t_1; elseif (a <= -6.2e+146) tmp = Float64(x * Float64(0.0 - Float64(t * a))); elseif (a <= 2e-40) tmp = Float64(c * Float64(z * Float64(0.0 - b))); elseif (a <= 1.15e+73) tmp = Float64(z * Float64(x * y)); elseif (a <= 4.4e+230) tmp = Float64(t * Float64(0.0 - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (a <= -1.42e+187) tmp = t_1; elseif (a <= -6.2e+146) tmp = x * (0.0 - (t * a)); elseif (a <= 2e-40) tmp = c * (z * (0.0 - b)); elseif (a <= 1.15e+73) tmp = z * (x * y); elseif (a <= 4.4e+230) tmp = t * (0.0 - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.42e+187], t$95$1, If[LessEqual[a, -6.2e+146], N[(x * N[(0.0 - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e-40], N[(c * N[(z * N[(0.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e+73], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e+230], N[(t * N[(0.0 - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -1.42 \cdot 10^{+187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \left(0 - t \cdot a\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-40}:\\
\;\;\;\;c \cdot \left(z \cdot \left(0 - b\right)\right)\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+73}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+230}:\\
\;\;\;\;t \cdot \left(0 - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.41999999999999991e187 or 4.4000000000000002e230 < a Initial program 56.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6466.1%
Simplified66.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.6%
Simplified52.6%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.3%
Applied egg-rr61.3%
if -1.41999999999999991e187 < a < -6.2000000000000004e146Initial program 40.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6487.1%
Simplified87.1%
Taylor expanded in y around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6486.3%
Simplified86.3%
if -6.2000000000000004e146 < a < 1.9999999999999999e-40Initial program 77.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified53.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6434.3%
Simplified34.3%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.3%
Applied egg-rr34.3%
if 1.9999999999999999e-40 < a < 1.15e73Initial program 76.9%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified76.0%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6441.1%
Simplified41.1%
if 1.15e73 < a < 4.4000000000000002e230Initial program 69.3%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6457.9%
Simplified57.9%
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6457.9%
Applied egg-rr57.9%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6449.5%
Simplified49.5%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= a -1.05e+186)
t_1
(if (<= a -6.3e+147)
(- 0.0 (* a (* x t)))
(if (<= a 2.05e-41)
(* c (* z (- 0.0 b)))
(if (<= a 9.6e+79)
(* z (* x y))
(if (<= a 1.75e+231) (* t (- 0.0 (* x a))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (a <= -1.05e+186) {
tmp = t_1;
} else if (a <= -6.3e+147) {
tmp = 0.0 - (a * (x * t));
} else if (a <= 2.05e-41) {
tmp = c * (z * (0.0 - b));
} else if (a <= 9.6e+79) {
tmp = z * (x * y);
} else if (a <= 1.75e+231) {
tmp = t * (0.0 - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (a * c)
if (a <= (-1.05d+186)) then
tmp = t_1
else if (a <= (-6.3d+147)) then
tmp = 0.0d0 - (a * (x * t))
else if (a <= 2.05d-41) then
tmp = c * (z * (0.0d0 - b))
else if (a <= 9.6d+79) then
tmp = z * (x * y)
else if (a <= 1.75d+231) then
tmp = t * (0.0d0 - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (a <= -1.05e+186) {
tmp = t_1;
} else if (a <= -6.3e+147) {
tmp = 0.0 - (a * (x * t));
} else if (a <= 2.05e-41) {
tmp = c * (z * (0.0 - b));
} else if (a <= 9.6e+79) {
tmp = z * (x * y);
} else if (a <= 1.75e+231) {
tmp = t * (0.0 - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if a <= -1.05e+186: tmp = t_1 elif a <= -6.3e+147: tmp = 0.0 - (a * (x * t)) elif a <= 2.05e-41: tmp = c * (z * (0.0 - b)) elif a <= 9.6e+79: tmp = z * (x * y) elif a <= 1.75e+231: tmp = t * (0.0 - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (a <= -1.05e+186) tmp = t_1; elseif (a <= -6.3e+147) tmp = Float64(0.0 - Float64(a * Float64(x * t))); elseif (a <= 2.05e-41) tmp = Float64(c * Float64(z * Float64(0.0 - b))); elseif (a <= 9.6e+79) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.75e+231) tmp = Float64(t * Float64(0.0 - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (a <= -1.05e+186) tmp = t_1; elseif (a <= -6.3e+147) tmp = 0.0 - (a * (x * t)); elseif (a <= 2.05e-41) tmp = c * (z * (0.0 - b)); elseif (a <= 9.6e+79) tmp = z * (x * y); elseif (a <= 1.75e+231) tmp = t * (0.0 - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.05e+186], t$95$1, If[LessEqual[a, -6.3e+147], N[(0.0 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e-41], N[(c * N[(z * N[(0.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.6e+79], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e+231], N[(t * N[(0.0 - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -1.05 \cdot 10^{+186}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.3 \cdot 10^{+147}:\\
\;\;\;\;0 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-41}:\\
\;\;\;\;c \cdot \left(z \cdot \left(0 - b\right)\right)\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{+79}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{+231}:\\
\;\;\;\;t \cdot \left(0 - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.05e186 or 1.7499999999999999e231 < a Initial program 56.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6466.1%
Simplified66.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.6%
Simplified52.6%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.3%
Applied egg-rr61.3%
if -1.05e186 < a < -6.29999999999999983e147Initial program 40.2%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6480.1%
Simplified80.1%
Taylor expanded in j around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6477.3%
Simplified77.3%
if -6.29999999999999983e147 < a < 2.05000000000000007e-41Initial program 77.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified53.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6434.3%
Simplified34.3%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.3%
Applied egg-rr34.3%
if 2.05000000000000007e-41 < a < 9.59999999999999942e79Initial program 76.9%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified76.0%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6441.1%
Simplified41.1%
if 9.59999999999999942e79 < a < 1.7499999999999999e231Initial program 69.3%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6457.9%
Simplified57.9%
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6457.9%
Applied egg-rr57.9%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6449.5%
Simplified49.5%
Final simplification43.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- 0.0 (* x a)))) (t_2 (* j (* a c))))
(if (<= a -6.6e+187)
t_2
(if (<= a -1.3e+147)
t_1
(if (<= a 1.5e-46)
(* c (* z (- 0.0 b)))
(if (<= a 1.05e+85) (* z (* x y)) (if (<= a 2.9e+230) 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 = t * (0.0 - (x * a));
double t_2 = j * (a * c);
double tmp;
if (a <= -6.6e+187) {
tmp = t_2;
} else if (a <= -1.3e+147) {
tmp = t_1;
} else if (a <= 1.5e-46) {
tmp = c * (z * (0.0 - b));
} else if (a <= 1.05e+85) {
tmp = z * (x * y);
} else if (a <= 2.9e+230) {
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 = t * (0.0d0 - (x * a))
t_2 = j * (a * c)
if (a <= (-6.6d+187)) then
tmp = t_2
else if (a <= (-1.3d+147)) then
tmp = t_1
else if (a <= 1.5d-46) then
tmp = c * (z * (0.0d0 - b))
else if (a <= 1.05d+85) then
tmp = z * (x * y)
else if (a <= 2.9d+230) 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 = t * (0.0 - (x * a));
double t_2 = j * (a * c);
double tmp;
if (a <= -6.6e+187) {
tmp = t_2;
} else if (a <= -1.3e+147) {
tmp = t_1;
} else if (a <= 1.5e-46) {
tmp = c * (z * (0.0 - b));
} else if (a <= 1.05e+85) {
tmp = z * (x * y);
} else if (a <= 2.9e+230) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (0.0 - (x * a)) t_2 = j * (a * c) tmp = 0 if a <= -6.6e+187: tmp = t_2 elif a <= -1.3e+147: tmp = t_1 elif a <= 1.5e-46: tmp = c * (z * (0.0 - b)) elif a <= 1.05e+85: tmp = z * (x * y) elif a <= 2.9e+230: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(0.0 - Float64(x * a))) t_2 = Float64(j * Float64(a * c)) tmp = 0.0 if (a <= -6.6e+187) tmp = t_2; elseif (a <= -1.3e+147) tmp = t_1; elseif (a <= 1.5e-46) tmp = Float64(c * Float64(z * Float64(0.0 - b))); elseif (a <= 1.05e+85) tmp = Float64(z * Float64(x * y)); elseif (a <= 2.9e+230) 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 = t * (0.0 - (x * a)); t_2 = j * (a * c); tmp = 0.0; if (a <= -6.6e+187) tmp = t_2; elseif (a <= -1.3e+147) tmp = t_1; elseif (a <= 1.5e-46) tmp = c * (z * (0.0 - b)); elseif (a <= 1.05e+85) tmp = z * (x * y); elseif (a <= 2.9e+230) 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[(t * N[(0.0 - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e+187], t$95$2, If[LessEqual[a, -1.3e+147], t$95$1, If[LessEqual[a, 1.5e-46], N[(c * N[(z * N[(0.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+85], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+230], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(0 - x \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+187}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-46}:\\
\;\;\;\;c \cdot \left(z \cdot \left(0 - b\right)\right)\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+85}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+230}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.6000000000000003e187 or 2.8999999999999999e230 < a Initial program 56.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6466.1%
Simplified66.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.6%
Simplified52.6%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.3%
Applied egg-rr61.3%
if -6.6000000000000003e187 < a < -1.2999999999999999e147 or 1.05000000000000005e85 < a < 2.8999999999999999e230Initial program 62.9%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6462.2%
Simplified62.2%
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.2%
Applied egg-rr62.2%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6455.7%
Simplified55.7%
if -1.2999999999999999e147 < a < 1.49999999999999994e-46Initial program 77.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified53.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6434.3%
Simplified34.3%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.3%
Applied egg-rr34.3%
if 1.49999999999999994e-46 < a < 1.05000000000000005e85Initial program 76.9%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified76.0%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6441.1%
Simplified41.1%
Final simplification43.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.05e-22)
(* (- (/ (* x y) b) c) (* z b))
(if (<= z 1.25e-55)
(+ (* j (- (* a c) (* y i))) (* i (* t b)))
(if (<= z 2e+254)
(- (* x (- (* y z) (* t a))) (* c (* z b)))
(* z (- (* x y) (* b c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.05e-22) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 1.25e-55) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (z <= 2e+254) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else {
tmp = z * ((x * y) - (b * 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 (z <= (-2.05d-22)) then
tmp = (((x * y) / b) - c) * (z * b)
else if (z <= 1.25d-55) then
tmp = (j * ((a * c) - (y * i))) + (i * (t * b))
else if (z <= 2d+254) then
tmp = (x * ((y * z) - (t * a))) - (c * (z * b))
else
tmp = z * ((x * y) - (b * 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 (z <= -2.05e-22) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 1.25e-55) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (z <= 2e+254) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.05e-22: tmp = (((x * y) / b) - c) * (z * b) elif z <= 1.25e-55: tmp = (j * ((a * c) - (y * i))) + (i * (t * b)) elif z <= 2e+254: tmp = (x * ((y * z) - (t * a))) - (c * (z * b)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.05e-22) tmp = Float64(Float64(Float64(Float64(x * y) / b) - c) * Float64(z * b)); elseif (z <= 1.25e-55) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(i * Float64(t * b))); elseif (z <= 2e+254) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.05e-22) tmp = (((x * y) / b) - c) * (z * b); elseif (z <= 1.25e-55) tmp = (j * ((a * c) - (y * i))) + (i * (t * b)); elseif (z <= 2e+254) tmp = (x * ((y * z) - (t * a))) - (c * (z * b)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.05e-22], N[(N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-55], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+254], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.05 \cdot 10^{-22}:\\
\;\;\;\;\left(\frac{x \cdot y}{b} - c\right) \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-55}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+254}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -2.05e-22Initial program 56.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified57.2%
Taylor expanded in z around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6466.6%
Simplified66.6%
if -2.05e-22 < z < 1.25e-55Initial program 80.4%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6466.7%
Simplified66.7%
if 1.25e-55 < z < 1.9999999999999999e254Initial program 78.8%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified73.5%
Taylor expanded in j around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6468.6%
Simplified68.6%
if 1.9999999999999999e254 < z Initial program 46.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6492.2%
Simplified92.2%
Final simplification68.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.15e-22)
(* (- (/ (* x y) b) c) (* z b))
(if (<= z 3e-61)
(+ (* j (- (* a c) (* y i))) (* i (* t b)))
(if (<= z 1.95e+116)
(+ (* x (- (* y z) (* t a))) (* c (* a j)))
(* z (- (* x y) (* b c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.15e-22) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 3e-61) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (z <= 1.95e+116) {
tmp = (x * ((y * z) - (t * a))) + (c * (a * j));
} else {
tmp = z * ((x * y) - (b * 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 (z <= (-2.15d-22)) then
tmp = (((x * y) / b) - c) * (z * b)
else if (z <= 3d-61) then
tmp = (j * ((a * c) - (y * i))) + (i * (t * b))
else if (z <= 1.95d+116) then
tmp = (x * ((y * z) - (t * a))) + (c * (a * j))
else
tmp = z * ((x * y) - (b * 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 (z <= -2.15e-22) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 3e-61) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (z <= 1.95e+116) {
tmp = (x * ((y * z) - (t * a))) + (c * (a * j));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.15e-22: tmp = (((x * y) / b) - c) * (z * b) elif z <= 3e-61: tmp = (j * ((a * c) - (y * i))) + (i * (t * b)) elif z <= 1.95e+116: tmp = (x * ((y * z) - (t * a))) + (c * (a * j)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.15e-22) tmp = Float64(Float64(Float64(Float64(x * y) / b) - c) * Float64(z * b)); elseif (z <= 3e-61) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(i * Float64(t * b))); elseif (z <= 1.95e+116) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(a * j))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.15e-22) tmp = (((x * y) / b) - c) * (z * b); elseif (z <= 3e-61) tmp = (j * ((a * c) - (y * i))) + (i * (t * b)); elseif (z <= 1.95e+116) tmp = (x * ((y * z) - (t * a))) + (c * (a * j)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.15e-22], N[(N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-61], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.95e+116], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.15 \cdot 10^{-22}:\\
\;\;\;\;\left(\frac{x \cdot y}{b} - c\right) \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-61}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{+116}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -2.15000000000000019e-22Initial program 56.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified57.2%
Taylor expanded in z around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6466.6%
Simplified66.6%
if -2.15000000000000019e-22 < z < 3.00000000000000012e-61Initial program 80.1%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6466.1%
Simplified66.1%
if 3.00000000000000012e-61 < z < 1.95000000000000016e116Initial program 83.2%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified76.7%
Taylor expanded in j around inf
*-lowering-*.f6468.8%
Simplified68.8%
if 1.95000000000000016e116 < z Initial program 66.0%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6471.1%
Simplified71.1%
Final simplification67.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.3e+121)
t_2
(if (<= c -1.7e+41)
t_1
(if (<= c -4e-83)
(* t (- (* b i) (* x a)))
(if (<= c 1.04e-47) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.3e+121) {
tmp = t_2;
} else if (c <= -1.7e+41) {
tmp = t_1;
} else if (c <= -4e-83) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.04e-47) {
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 = y * ((x * z) - (i * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.3d+121)) then
tmp = t_2
else if (c <= (-1.7d+41)) then
tmp = t_1
else if (c <= (-4d-83)) then
tmp = t * ((b * i) - (x * a))
else if (c <= 1.04d-47) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.3e+121) {
tmp = t_2;
} else if (c <= -1.7e+41) {
tmp = t_1;
} else if (c <= -4e-83) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.04e-47) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.3e+121: tmp = t_2 elif c <= -1.7e+41: tmp = t_1 elif c <= -4e-83: tmp = t * ((b * i) - (x * a)) elif c <= 1.04e-47: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.3e+121) tmp = t_2; elseif (c <= -1.7e+41) tmp = t_1; elseif (c <= -4e-83) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 1.04e-47) 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 = y * ((x * z) - (i * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.3e+121) tmp = t_2; elseif (c <= -1.7e+41) tmp = t_1; elseif (c <= -4e-83) tmp = t * ((b * i) - (x * a)); elseif (c <= 1.04e-47) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.3e+121], t$95$2, If[LessEqual[c, -1.7e+41], t$95$1, If[LessEqual[c, -4e-83], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.04e-47], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.3 \cdot 10^{+121}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4 \cdot 10^{-83}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 1.04 \cdot 10^{-47}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.2999999999999999e121 or 1.03999999999999995e-47 < c Initial program 57.9%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6467.0%
Simplified67.0%
if -1.2999999999999999e121 < c < -1.69999999999999999e41 or -4.0000000000000001e-83 < c < 1.03999999999999995e-47Initial program 82.4%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6455.6%
Simplified55.6%
if -1.69999999999999999e41 < c < -4.0000000000000001e-83Initial program 82.0%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6457.0%
Simplified57.0%
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6457.0%
Applied egg-rr57.0%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
+-commutativeN/A
sub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6457.0%
Simplified57.0%
Final simplification60.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -1.2e-44)
t_1
(if (<= a -2.8e-101)
(- 0.0 (* i (* y j)))
(if (<= a -1.12e-251)
(* t (* b i))
(if (<= a 7.5e-14) (* c (* z (- 0.0 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.2e-44) {
tmp = t_1;
} else if (a <= -2.8e-101) {
tmp = 0.0 - (i * (y * j));
} else if (a <= -1.12e-251) {
tmp = t * (b * i);
} else if (a <= 7.5e-14) {
tmp = c * (z * (0.0 - 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 = a * ((c * j) - (x * t))
if (a <= (-1.2d-44)) then
tmp = t_1
else if (a <= (-2.8d-101)) then
tmp = 0.0d0 - (i * (y * j))
else if (a <= (-1.12d-251)) then
tmp = t * (b * i)
else if (a <= 7.5d-14) then
tmp = c * (z * (0.0d0 - 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.2e-44) {
tmp = t_1;
} else if (a <= -2.8e-101) {
tmp = 0.0 - (i * (y * j));
} else if (a <= -1.12e-251) {
tmp = t * (b * i);
} else if (a <= 7.5e-14) {
tmp = c * (z * (0.0 - b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -1.2e-44: tmp = t_1 elif a <= -2.8e-101: tmp = 0.0 - (i * (y * j)) elif a <= -1.12e-251: tmp = t * (b * i) elif a <= 7.5e-14: tmp = c * (z * (0.0 - b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -1.2e-44) tmp = t_1; elseif (a <= -2.8e-101) tmp = Float64(0.0 - Float64(i * Float64(y * j))); elseif (a <= -1.12e-251) tmp = Float64(t * Float64(b * i)); elseif (a <= 7.5e-14) tmp = Float64(c * Float64(z * Float64(0.0 - b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -1.2e-44) tmp = t_1; elseif (a <= -2.8e-101) tmp = 0.0 - (i * (y * j)); elseif (a <= -1.12e-251) tmp = t * (b * i); elseif (a <= 7.5e-14) tmp = c * (z * (0.0 - 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e-44], t$95$1, If[LessEqual[a, -2.8e-101], N[(0.0 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.12e-251], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-14], N[(c * N[(z * N[(0.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.8 \cdot 10^{-101}:\\
\;\;\;\;0 - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;a \leq -1.12 \cdot 10^{-251}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-14}:\\
\;\;\;\;c \cdot \left(z \cdot \left(0 - b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.20000000000000004e-44 or 7.4999999999999996e-14 < a Initial program 63.6%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6457.0%
Simplified57.0%
if -1.20000000000000004e-44 < a < -2.79999999999999989e-101Initial program 83.7%
Taylor expanded in a around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6456.7%
Simplified56.7%
Taylor expanded in a around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.2%
Simplified51.2%
if -2.79999999999999989e-101 < a < -1.12000000000000007e-251Initial program 92.4%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6441.9%
Simplified41.9%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6435.2%
Simplified35.2%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.1%
Applied egg-rr42.1%
if -1.12000000000000007e-251 < a < 7.4999999999999996e-14Initial program 76.7%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified57.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6437.9%
Simplified37.9%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6437.9%
Applied egg-rr37.9%
Final simplification50.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -5.8e+46)
(- t_1 (* c (* z b)))
(if (<= j 2.6e+89)
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(+ t_1 (* i (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -5.8e+46) {
tmp = t_1 - (c * (z * b));
} else if (j <= 2.6e+89) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (i * (t * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-5.8d+46)) then
tmp = t_1 - (c * (z * b))
else if (j <= 2.6d+89) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else
tmp = t_1 + (i * (t * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -5.8e+46) {
tmp = t_1 - (c * (z * b));
} else if (j <= 2.6e+89) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (i * (t * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -5.8e+46: tmp = t_1 - (c * (z * b)) elif j <= 2.6e+89: tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) else: tmp = t_1 + (i * (t * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -5.8e+46) tmp = Float64(t_1 - Float64(c * Float64(z * b))); elseif (j <= 2.6e+89) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t_1 + Float64(i * Float64(t * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -5.8e+46) tmp = t_1 - (c * (z * b)); elseif (j <= 2.6e+89) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); else tmp = t_1 + (i * (t * b)); end tmp_2 = 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]}, If[LessEqual[j, -5.8e+46], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.6e+89], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -5.8 \cdot 10^{+46}:\\
\;\;\;\;t\_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{+89}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if j < -5.8000000000000004e46Initial program 80.3%
Taylor expanded in c around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6480.8%
Simplified80.8%
if -5.8000000000000004e46 < j < 2.6000000000000001e89Initial program 71.4%
Taylor expanded in j around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.5%
Simplified67.5%
if 2.6000000000000001e89 < j Initial program 64.2%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.1%
Simplified74.1%
Final simplification71.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -8e+87)
(- t_1 (* c (* z b)))
(if (<= j 4.9e+88)
(+ (* x (- (* y z) (* t a))) (* c (- (* a j) (* z b))))
(+ t_1 (* i (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -8e+87) {
tmp = t_1 - (c * (z * b));
} else if (j <= 4.9e+88) {
tmp = (x * ((y * z) - (t * a))) + (c * ((a * j) - (z * b)));
} else {
tmp = t_1 + (i * (t * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-8d+87)) then
tmp = t_1 - (c * (z * b))
else if (j <= 4.9d+88) then
tmp = (x * ((y * z) - (t * a))) + (c * ((a * j) - (z * b)))
else
tmp = t_1 + (i * (t * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -8e+87) {
tmp = t_1 - (c * (z * b));
} else if (j <= 4.9e+88) {
tmp = (x * ((y * z) - (t * a))) + (c * ((a * j) - (z * b)));
} else {
tmp = t_1 + (i * (t * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -8e+87: tmp = t_1 - (c * (z * b)) elif j <= 4.9e+88: tmp = (x * ((y * z) - (t * a))) + (c * ((a * j) - (z * b))) else: tmp = t_1 + (i * (t * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -8e+87) tmp = Float64(t_1 - Float64(c * Float64(z * b))); elseif (j <= 4.9e+88) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(Float64(a * j) - Float64(z * b)))); else tmp = Float64(t_1 + Float64(i * Float64(t * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -8e+87) tmp = t_1 - (c * (z * b)); elseif (j <= 4.9e+88) tmp = (x * ((y * z) - (t * a))) + (c * ((a * j) - (z * b))); else tmp = t_1 + (i * (t * b)); end tmp_2 = 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]}, If[LessEqual[j, -8e+87], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.9e+88], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -8 \cdot 10^{+87}:\\
\;\;\;\;t\_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{+88}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if j < -7.9999999999999997e87Initial program 77.0%
Taylor expanded in c around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6483.1%
Simplified83.1%
if -7.9999999999999997e87 < j < 4.9000000000000002e88Initial program 72.4%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified66.1%
if 4.9000000000000002e88 < j Initial program 64.2%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.1%
Simplified74.1%
Final simplification70.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- 0.0 b)))))
(if (<= c -1.95e+28)
t_1
(if (<= c -1.65e-83)
(* i (* t b))
(if (<= c 2.2e-148)
(* z (* x y))
(if (<= c 5.6e+233) (* 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 = c * (z * (0.0 - b));
double tmp;
if (c <= -1.95e+28) {
tmp = t_1;
} else if (c <= -1.65e-83) {
tmp = i * (t * b);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else if (c <= 5.6e+233) {
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 = c * (z * (0.0d0 - b))
if (c <= (-1.95d+28)) then
tmp = t_1
else if (c <= (-1.65d-83)) then
tmp = i * (t * b)
else if (c <= 2.2d-148) then
tmp = z * (x * y)
else if (c <= 5.6d+233) 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 = c * (z * (0.0 - b));
double tmp;
if (c <= -1.95e+28) {
tmp = t_1;
} else if (c <= -1.65e-83) {
tmp = i * (t * b);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else if (c <= 5.6e+233) {
tmp = j * (a * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * (0.0 - b)) tmp = 0 if c <= -1.95e+28: tmp = t_1 elif c <= -1.65e-83: tmp = i * (t * b) elif c <= 2.2e-148: tmp = z * (x * y) elif c <= 5.6e+233: tmp = j * (a * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(0.0 - b))) tmp = 0.0 if (c <= -1.95e+28) tmp = t_1; elseif (c <= -1.65e-83) tmp = Float64(i * Float64(t * b)); elseif (c <= 2.2e-148) tmp = Float64(z * Float64(x * y)); elseif (c <= 5.6e+233) 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 = c * (z * (0.0 - b)); tmp = 0.0; if (c <= -1.95e+28) tmp = t_1; elseif (c <= -1.65e-83) tmp = i * (t * b); elseif (c <= 2.2e-148) tmp = z * (x * y); elseif (c <= 5.6e+233) 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[(c * N[(z * N[(0.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.95e+28], t$95$1, If[LessEqual[c, -1.65e-83], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e-148], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.6e+233], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(0 - b\right)\right)\\
\mathbf{if}\;c \leq -1.95 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.65 \cdot 10^{-83}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-148}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{+233}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.9499999999999999e28 or 5.60000000000000021e233 < c Initial program 54.9%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified61.7%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6442.4%
Simplified42.4%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.4%
Applied egg-rr42.4%
if -1.9499999999999999e28 < c < -1.65e-83Initial program 80.5%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6457.2%
Simplified57.2%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6433.9%
Simplified33.9%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6437.5%
Applied egg-rr37.5%
if -1.65e-83 < c < 2.20000000000000017e-148Initial program 82.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified55.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6439.4%
Simplified39.4%
if 2.20000000000000017e-148 < c < 5.60000000000000021e233Initial program 72.8%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6444.5%
Simplified44.5%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6430.3%
Simplified30.3%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6439.4%
Applied egg-rr39.4%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6e-50)
(* (- (/ (* x y) b) c) (* z b))
(if (<= z 3.2e-173)
(* j (- (* a c) (* y i)))
(if (<= z 3.6e+94)
(* a (* t (- (/ (* c j) t) x)))
(* z (- (* x y) (* b c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6e-50) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 3.2e-173) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 3.6e+94) {
tmp = a * (t * (((c * j) / t) - x));
} else {
tmp = z * ((x * y) - (b * 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 (z <= (-6d-50)) then
tmp = (((x * y) / b) - c) * (z * b)
else if (z <= 3.2d-173) then
tmp = j * ((a * c) - (y * i))
else if (z <= 3.6d+94) then
tmp = a * (t * (((c * j) / t) - x))
else
tmp = z * ((x * y) - (b * 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 (z <= -6e-50) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 3.2e-173) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 3.6e+94) {
tmp = a * (t * (((c * j) / t) - x));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6e-50: tmp = (((x * y) / b) - c) * (z * b) elif z <= 3.2e-173: tmp = j * ((a * c) - (y * i)) elif z <= 3.6e+94: tmp = a * (t * (((c * j) / t) - x)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6e-50) tmp = Float64(Float64(Float64(Float64(x * y) / b) - c) * Float64(z * b)); elseif (z <= 3.2e-173) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 3.6e+94) tmp = Float64(a * Float64(t * Float64(Float64(Float64(c * j) / t) - x))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6e-50) tmp = (((x * y) / b) - c) * (z * b); elseif (z <= 3.2e-173) tmp = j * ((a * c) - (y * i)); elseif (z <= 3.6e+94) tmp = a * (t * (((c * j) / t) - x)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6e-50], N[(N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e-173], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e+94], N[(a * N[(t * N[(N[(N[(c * j), $MachinePrecision] / t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{-50}:\\
\;\;\;\;\left(\frac{x \cdot y}{b} - c\right) \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-173}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+94}:\\
\;\;\;\;a \cdot \left(t \cdot \left(\frac{c \cdot j}{t} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -5.99999999999999981e-50Initial program 57.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified58.1%
Taylor expanded in z around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6464.5%
Simplified64.5%
if -5.99999999999999981e-50 < z < 3.2e-173Initial program 80.2%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.4%
Simplified58.4%
if 3.2e-173 < z < 3.59999999999999992e94Initial program 84.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6452.8%
Simplified52.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6458.3%
Simplified58.3%
if 3.59999999999999992e94 < z Initial program 63.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.0%
Simplified70.0%
Final simplification62.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -1.95e-49)
t_1
(if (<= z 1.25e-173)
(* j (- (* a c) (* y i)))
(if (<= z 1.45e+94) (* a (* t (- (/ (* c j) t) x))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.95e-49) {
tmp = t_1;
} else if (z <= 1.25e-173) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.45e+94) {
tmp = a * (t * (((c * j) / t) - x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-1.95d-49)) then
tmp = t_1
else if (z <= 1.25d-173) then
tmp = j * ((a * c) - (y * i))
else if (z <= 1.45d+94) then
tmp = a * (t * (((c * j) / t) - x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.95e-49) {
tmp = t_1;
} else if (z <= 1.25e-173) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.45e+94) {
tmp = a * (t * (((c * j) / t) - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.95e-49: tmp = t_1 elif z <= 1.25e-173: tmp = j * ((a * c) - (y * i)) elif z <= 1.45e+94: tmp = a * (t * (((c * j) / t) - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.95e-49) tmp = t_1; elseif (z <= 1.25e-173) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 1.45e+94) tmp = Float64(a * Float64(t * Float64(Float64(Float64(c * j) / t) - x))); 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) - (b * c)); tmp = 0.0; if (z <= -1.95e-49) tmp = t_1; elseif (z <= 1.25e-173) tmp = j * ((a * c) - (y * i)); elseif (z <= 1.45e+94) tmp = a * (t * (((c * j) / t) - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.95e-49], t$95$1, If[LessEqual[z, 1.25e-173], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+94], N[(a * N[(t * N[(N[(N[(c * j), $MachinePrecision] / t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-173}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+94}:\\
\;\;\;\;a \cdot \left(t \cdot \left(\frac{c \cdot j}{t} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.95000000000000006e-49 or 1.4499999999999999e94 < z Initial program 59.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.6%
Simplified62.6%
if -1.95000000000000006e-49 < z < 1.2500000000000001e-173Initial program 80.2%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.4%
Simplified58.4%
if 1.2500000000000001e-173 < z < 1.4499999999999999e94Initial program 84.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6452.8%
Simplified52.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6458.3%
Simplified58.3%
Final simplification60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -4.9e-26)
(* (- (/ (* x y) b) c) (* z b))
(if (<= z 2.95e+95)
(+ (* j (- (* a c) (* y i))) (* i (* t b)))
(* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -4.9e-26) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 2.95e+95) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else {
tmp = z * ((x * y) - (b * 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 (z <= (-4.9d-26)) then
tmp = (((x * y) / b) - c) * (z * b)
else if (z <= 2.95d+95) then
tmp = (j * ((a * c) - (y * i))) + (i * (t * b))
else
tmp = z * ((x * y) - (b * 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 (z <= -4.9e-26) {
tmp = (((x * y) / b) - c) * (z * b);
} else if (z <= 2.95e+95) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -4.9e-26: tmp = (((x * y) / b) - c) * (z * b) elif z <= 2.95e+95: tmp = (j * ((a * c) - (y * i))) + (i * (t * b)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -4.9e-26) tmp = Float64(Float64(Float64(Float64(x * y) / b) - c) * Float64(z * b)); elseif (z <= 2.95e+95) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(i * Float64(t * b))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -4.9e-26) tmp = (((x * y) / b) - c) * (z * b); elseif (z <= 2.95e+95) tmp = (j * ((a * c) - (y * i))) + (i * (t * b)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4.9e-26], N[(N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.95e+95], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{-26}:\\
\;\;\;\;\left(\frac{x \cdot y}{b} - c\right) \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq 2.95 \cdot 10^{+95}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -4.8999999999999999e-26Initial program 56.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified57.2%
Taylor expanded in z around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6466.6%
Simplified66.6%
if -4.8999999999999999e-26 < z < 2.95000000000000002e95Initial program 81.9%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.7%
Simplified61.7%
if 2.95000000000000002e95 < z Initial program 63.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.0%
Simplified70.0%
Final simplification64.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.65e-15)
(* a (- (* c j) (* x t)))
(if (<= t -3.45e-217)
(* c (- (* a j) (* z b)))
(if (<= t 1.6e+108)
(* z (- (* x y) (* b c)))
(* t (- (* b i) (* x a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.65e-15) {
tmp = a * ((c * j) - (x * t));
} else if (t <= -3.45e-217) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 1.6e+108) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.65d-15)) then
tmp = a * ((c * j) - (x * t))
else if (t <= (-3.45d-217)) then
tmp = c * ((a * j) - (z * b))
else if (t <= 1.6d+108) then
tmp = z * ((x * y) - (b * c))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.65e-15) {
tmp = a * ((c * j) - (x * t));
} else if (t <= -3.45e-217) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 1.6e+108) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.65e-15: tmp = a * ((c * j) - (x * t)) elif t <= -3.45e-217: tmp = c * ((a * j) - (z * b)) elif t <= 1.6e+108: tmp = z * ((x * y) - (b * c)) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.65e-15) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (t <= -3.45e-217) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 1.6e+108) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.65e-15) tmp = a * ((c * j) - (x * t)); elseif (t <= -3.45e-217) tmp = c * ((a * j) - (z * b)); elseif (t <= 1.6e+108) tmp = z * ((x * y) - (b * c)); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.65e-15], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.45e-217], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e+108], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.65 \cdot 10^{-15}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;t \leq -3.45 \cdot 10^{-217}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{+108}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -1.65e-15Initial program 63.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.4%
Simplified60.4%
if -1.65e-15 < t < -3.44999999999999987e-217Initial program 73.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6457.8%
Simplified57.8%
if -3.44999999999999987e-217 < t < 1.6e108Initial program 75.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.5%
Simplified54.5%
if 1.6e108 < t Initial program 70.4%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6476.9%
Simplified76.9%
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.9%
Applied egg-rr76.9%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
+-commutativeN/A
sub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.9%
Simplified76.9%
Final simplification60.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.8e-18)
t_1
(if (<= x 1.1e-179)
(* c (- (* a j) (* z b)))
(if (<= x 1.85e+33) (* 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.8e-18) {
tmp = t_1;
} else if (x <= 1.1e-179) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 1.85e+33) {
tmp = j * ((a * c) - (y * 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 = x * ((y * z) - (t * a))
if (x <= (-1.8d-18)) then
tmp = t_1
else if (x <= 1.1d-179) then
tmp = c * ((a * j) - (z * b))
else if (x <= 1.85d+33) then
tmp = j * ((a * c) - (y * 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.8e-18) {
tmp = t_1;
} else if (x <= 1.1e-179) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 1.85e+33) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.8e-18: tmp = t_1 elif x <= 1.1e-179: tmp = c * ((a * j) - (z * b)) elif x <= 1.85e+33: 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.8e-18) tmp = t_1; elseif (x <= 1.1e-179) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (x <= 1.85e+33) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.8e-18) tmp = t_1; elseif (x <= 1.1e-179) tmp = c * ((a * j) - (z * b)); elseif (x <= 1.85e+33) tmp = j * ((a * c) - (y * 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.8e-18], t$95$1, If[LessEqual[x, 1.1e-179], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e+33], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{+33}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.80000000000000005e-18 or 1.8499999999999999e33 < x Initial program 72.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6460.1%
Simplified60.1%
if -1.80000000000000005e-18 < x < 1.10000000000000002e-179Initial program 66.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6451.8%
Simplified51.8%
if 1.10000000000000002e-179 < x < 1.8499999999999999e33Initial program 79.4%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6475.3%
Simplified75.3%
Final simplification59.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= c -1.15e+27)
t_1
(if (<= c -3.5e-83)
(* i (* t b))
(if (<= c 2.2e-148) (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (c <= -1.15e+27) {
tmp = t_1;
} else if (c <= -3.5e-83) {
tmp = i * (t * b);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (a * c)
if (c <= (-1.15d+27)) then
tmp = t_1
else if (c <= (-3.5d-83)) then
tmp = i * (t * b)
else if (c <= 2.2d-148) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (c <= -1.15e+27) {
tmp = t_1;
} else if (c <= -3.5e-83) {
tmp = i * (t * b);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if c <= -1.15e+27: tmp = t_1 elif c <= -3.5e-83: tmp = i * (t * b) elif c <= 2.2e-148: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (c <= -1.15e+27) tmp = t_1; elseif (c <= -3.5e-83) tmp = Float64(i * Float64(t * b)); elseif (c <= 2.2e-148) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (c <= -1.15e+27) tmp = t_1; elseif (c <= -3.5e-83) tmp = i * (t * b); elseif (c <= 2.2e-148) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.15e+27], t$95$1, If[LessEqual[c, -3.5e-83], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e-148], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;c \leq -1.15 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.5 \cdot 10^{-83}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-148}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.15e27 or 2.20000000000000017e-148 < c Initial program 63.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6441.8%
Simplified41.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.6%
Simplified31.6%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6436.1%
Applied egg-rr36.1%
if -1.15e27 < c < -3.5000000000000003e-83Initial program 79.7%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6459.4%
Simplified59.4%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6435.1%
Simplified35.1%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6438.9%
Applied egg-rr38.9%
if -3.5000000000000003e-83 < c < 2.20000000000000017e-148Initial program 82.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified55.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6439.4%
Simplified39.4%
Final simplification37.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= c -1.9e-48)
t_1
(if (<= c -1.65e-83)
(* t (* b i))
(if (<= c 2.2e-148) (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (c <= -1.9e-48) {
tmp = t_1;
} else if (c <= -1.65e-83) {
tmp = t * (b * i);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (a * c)
if (c <= (-1.9d-48)) then
tmp = t_1
else if (c <= (-1.65d-83)) then
tmp = t * (b * i)
else if (c <= 2.2d-148) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (c <= -1.9e-48) {
tmp = t_1;
} else if (c <= -1.65e-83) {
tmp = t * (b * i);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if c <= -1.9e-48: tmp = t_1 elif c <= -1.65e-83: tmp = t * (b * i) elif c <= 2.2e-148: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (c <= -1.9e-48) tmp = t_1; elseif (c <= -1.65e-83) tmp = Float64(t * Float64(b * i)); elseif (c <= 2.2e-148) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (c <= -1.9e-48) tmp = t_1; elseif (c <= -1.65e-83) tmp = t * (b * i); elseif (c <= 2.2e-148) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.9e-48], t$95$1, If[LessEqual[c, -1.65e-83], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e-148], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{-48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.65 \cdot 10^{-83}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-148}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.90000000000000001e-48 or 2.20000000000000017e-148 < c Initial program 65.2%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6442.7%
Simplified42.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.4%
Simplified31.4%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Applied egg-rr35.6%
if -1.90000000000000001e-48 < c < -1.65e-83Initial program 76.8%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6469.9%
Simplified69.9%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6447.4%
Simplified47.4%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.4%
Applied egg-rr47.4%
if -1.65e-83 < c < 2.20000000000000017e-148Initial program 82.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified55.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6439.4%
Simplified39.4%
Final simplification37.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= c -3e-48)
t_1
(if (<= c -2.55e-83)
(* b (* t i))
(if (<= c 2.2e-148) (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (c <= -3e-48) {
tmp = t_1;
} else if (c <= -2.55e-83) {
tmp = b * (t * i);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (a * c)
if (c <= (-3d-48)) then
tmp = t_1
else if (c <= (-2.55d-83)) then
tmp = b * (t * i)
else if (c <= 2.2d-148) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (c <= -3e-48) {
tmp = t_1;
} else if (c <= -2.55e-83) {
tmp = b * (t * i);
} else if (c <= 2.2e-148) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if c <= -3e-48: tmp = t_1 elif c <= -2.55e-83: tmp = b * (t * i) elif c <= 2.2e-148: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (c <= -3e-48) tmp = t_1; elseif (c <= -2.55e-83) tmp = Float64(b * Float64(t * i)); elseif (c <= 2.2e-148) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (c <= -3e-48) tmp = t_1; elseif (c <= -2.55e-83) tmp = b * (t * i); elseif (c <= 2.2e-148) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3e-48], t$95$1, If[LessEqual[c, -2.55e-83], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e-148], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;c \leq -3 \cdot 10^{-48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.55 \cdot 10^{-83}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-148}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.9999999999999999e-48 or 2.20000000000000017e-148 < c Initial program 65.2%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6442.7%
Simplified42.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.4%
Simplified31.4%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Applied egg-rr35.6%
if -2.9999999999999999e-48 < c < -2.55000000000000018e-83Initial program 76.8%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6469.9%
Simplified69.9%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6447.4%
Simplified47.4%
if -2.55000000000000018e-83 < c < 2.20000000000000017e-148Initial program 82.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified55.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6439.4%
Simplified39.4%
Final simplification37.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))))
(if (<= t -1.52e+184)
t_1
(if (<= t -1.8e-258)
(* a (* c j))
(if (<= t 1.1e+169) (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (t <= -1.52e+184) {
tmp = t_1;
} else if (t <= -1.8e-258) {
tmp = a * (c * j);
} else if (t <= 1.1e+169) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (t * i)
if (t <= (-1.52d+184)) then
tmp = t_1
else if (t <= (-1.8d-258)) then
tmp = a * (c * j)
else if (t <= 1.1d+169) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (t <= -1.52e+184) {
tmp = t_1;
} else if (t <= -1.8e-258) {
tmp = a * (c * j);
} else if (t <= 1.1e+169) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if t <= -1.52e+184: tmp = t_1 elif t <= -1.8e-258: tmp = a * (c * j) elif t <= 1.1e+169: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (t <= -1.52e+184) tmp = t_1; elseif (t <= -1.8e-258) tmp = Float64(a * Float64(c * j)); elseif (t <= 1.1e+169) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); tmp = 0.0; if (t <= -1.52e+184) tmp = t_1; elseif (t <= -1.8e-258) tmp = a * (c * j); elseif (t <= 1.1e+169) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.52e+184], t$95$1, If[LessEqual[t, -1.8e-258], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e+169], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;t \leq -1.52 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-258}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+169}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.52e184 or 1.1e169 < t Initial program 65.3%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6478.7%
Simplified78.7%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6448.3%
Simplified48.3%
if -1.52e184 < t < -1.79999999999999989e-258Initial program 69.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6446.1%
Simplified46.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.8%
Simplified34.8%
if -1.79999999999999989e-258 < t < 1.1e169Initial program 75.8%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-lowering-+.f64N/A
Simplified64.5%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6431.6%
Simplified31.6%
Final simplification36.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))))
(if (<= t -2.85e+184)
t_1
(if (<= t -8e-255) (* a (* c j)) (if (<= t 9.5e-15) (* x (* y 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 = b * (t * i);
double tmp;
if (t <= -2.85e+184) {
tmp = t_1;
} else if (t <= -8e-255) {
tmp = a * (c * j);
} else if (t <= 9.5e-15) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (t * i)
if (t <= (-2.85d+184)) then
tmp = t_1
else if (t <= (-8d-255)) then
tmp = a * (c * j)
else if (t <= 9.5d-15) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (t <= -2.85e+184) {
tmp = t_1;
} else if (t <= -8e-255) {
tmp = a * (c * j);
} else if (t <= 9.5e-15) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if t <= -2.85e+184: tmp = t_1 elif t <= -8e-255: tmp = a * (c * j) elif t <= 9.5e-15: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (t <= -2.85e+184) tmp = t_1; elseif (t <= -8e-255) tmp = Float64(a * Float64(c * j)); elseif (t <= 9.5e-15) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); tmp = 0.0; if (t <= -2.85e+184) tmp = t_1; elseif (t <= -8e-255) tmp = a * (c * j); elseif (t <= 9.5e-15) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.85e+184], t$95$1, If[LessEqual[t, -8e-255], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-15], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;t \leq -2.85 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -8 \cdot 10^{-255}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.85000000000000008e184 or 9.5000000000000005e-15 < t Initial program 68.1%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6463.9%
Simplified63.9%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6439.1%
Simplified39.1%
if -2.85000000000000008e184 < t < -8.0000000000000001e-255Initial program 69.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6446.1%
Simplified46.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.8%
Simplified34.8%
if -8.0000000000000001e-255 < t < 9.5000000000000005e-15Initial program 78.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6437.5%
Simplified37.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6433.2%
Simplified33.2%
Final simplification35.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -4.2e-15) (* a (- (* c j) (* x t))) (if (<= t 4.6e+18) (* c (- (* a j) (* z b))) (* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.2e-15) {
tmp = a * ((c * j) - (x * t));
} else if (t <= 4.6e+18) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-4.2d-15)) then
tmp = a * ((c * j) - (x * t))
else if (t <= 4.6d+18) then
tmp = c * ((a * j) - (z * b))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.2e-15) {
tmp = a * ((c * j) - (x * t));
} else if (t <= 4.6e+18) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -4.2e-15: tmp = a * ((c * j) - (x * t)) elif t <= 4.6e+18: tmp = c * ((a * j) - (z * b)) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -4.2e-15) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (t <= 4.6e+18) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -4.2e-15) tmp = a * ((c * j) - (x * t)); elseif (t <= 4.6e+18) tmp = c * ((a * j) - (z * b)); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -4.2e-15], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e+18], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{-15}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+18}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -4.19999999999999962e-15Initial program 63.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.4%
Simplified60.4%
if -4.19999999999999962e-15 < t < 4.6e18Initial program 76.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6450.2%
Simplified50.2%
if 4.6e18 < t Initial program 67.6%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6464.5%
Simplified64.5%
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6464.5%
Applied egg-rr64.5%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
+-commutativeN/A
sub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6464.5%
Simplified64.5%
Final simplification56.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -2.7e+146)
t_1
(if (<= a 7.2e-14) (* b (- (* t i) (* z 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.7e+146) {
tmp = t_1;
} else if (a <= 7.2e-14) {
tmp = b * ((t * i) - (z * 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 = a * ((c * j) - (x * t))
if (a <= (-2.7d+146)) then
tmp = t_1
else if (a <= 7.2d-14) then
tmp = b * ((t * i) - (z * 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.7e+146) {
tmp = t_1;
} else if (a <= 7.2e-14) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.7e+146: tmp = t_1 elif a <= 7.2e-14: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.7e+146) tmp = t_1; elseif (a <= 7.2e-14) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.7e+146) tmp = t_1; elseif (a <= 7.2e-14) tmp = b * ((t * i) - (z * 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.7e+146], t$95$1, If[LessEqual[a, 7.2e-14], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.7 \cdot 10^{+146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-14}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.69999999999999989e146 or 7.1999999999999996e-14 < a Initial program 64.1%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6462.7%
Simplified62.7%
if -2.69999999999999989e146 < a < 7.1999999999999996e-14Initial program 77.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.2%
Simplified50.2%
Final simplification55.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* b (* t i)))) (if (<= t -1.52e+184) t_1 (if (<= t 0.00019) (* a (* c j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (t <= -1.52e+184) {
tmp = t_1;
} else if (t <= 0.00019) {
tmp = a * (c * 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 * (t * i)
if (t <= (-1.52d+184)) then
tmp = t_1
else if (t <= 0.00019d0) then
tmp = a * (c * 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 * (t * i);
double tmp;
if (t <= -1.52e+184) {
tmp = t_1;
} else if (t <= 0.00019) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if t <= -1.52e+184: tmp = t_1 elif t <= 0.00019: tmp = a * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (t <= -1.52e+184) tmp = t_1; elseif (t <= 0.00019) tmp = Float64(a * Float64(c * 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 * (t * i); tmp = 0.0; if (t <= -1.52e+184) tmp = t_1; elseif (t <= 0.00019) tmp = a * (c * 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[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.52e+184], t$95$1, If[LessEqual[t, 0.00019], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;t \leq -1.52 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.00019:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.52e184 or 1.9000000000000001e-4 < t Initial program 66.6%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6465.6%
Simplified65.6%
Taylor expanded in a around 0
*-lowering-*.f64N/A
*-lowering-*.f6439.7%
Simplified39.7%
if -1.52e184 < t < 1.9000000000000001e-4Initial program 73.7%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6437.1%
Simplified37.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6428.4%
Simplified28.4%
Final simplification32.2%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * 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 = a * (c * 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 a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 71.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6438.4%
Simplified38.4%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6421.9%
Simplified21.9%
Final simplification21.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024158
(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)))))