
(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 22 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
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(* c (+ (* a j) (- (/ (* y (- (* x z) (* i j))) 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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / 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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(Float64(a * j) + Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) / c) - Float64(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(N[(a * j), $MachinePrecision] + N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j + \left(\frac{y \cdot \left(x \cdot z - i \cdot j\right)}{c} - z \cdot b\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.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 z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.8%
Simplified34.8%
Taylor expanded in c around -inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified54.8%
Final simplification85.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t i) (* z c))))
(if (<= b -5.5e+111)
(* (* y b) (/ t_1 y))
(if (<= b -2.1e-45)
(* t (- (* b i) (* x a)))
(if (<= b 1.65e-227)
(* y (* z (- x (* i (/ j z)))))
(if (<= b 1.9e-101)
(* a (* x (- (/ (* c j) x) t)))
(if (<= b 4.5e+74)
(* y (* x (- z (/ (* t a) y))))
(if (<= b 1.95e+183) (* i (- (* t b) (* y j))) (* 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 = (t * i) - (z * c);
double tmp;
if (b <= -5.5e+111) {
tmp = (y * b) * (t_1 / y);
} else if (b <= -2.1e-45) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 1.65e-227) {
tmp = y * (z * (x - (i * (j / z))));
} else if (b <= 1.9e-101) {
tmp = a * (x * (((c * j) / x) - t));
} else if (b <= 4.5e+74) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (b <= 1.95e+183) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = b * 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 = (t * i) - (z * c)
if (b <= (-5.5d+111)) then
tmp = (y * b) * (t_1 / y)
else if (b <= (-2.1d-45)) then
tmp = t * ((b * i) - (x * a))
else if (b <= 1.65d-227) then
tmp = y * (z * (x - (i * (j / z))))
else if (b <= 1.9d-101) then
tmp = a * (x * (((c * j) / x) - t))
else if (b <= 4.5d+74) then
tmp = y * (x * (z - ((t * a) / y)))
else if (b <= 1.95d+183) then
tmp = i * ((t * b) - (y * j))
else
tmp = b * 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 = (t * i) - (z * c);
double tmp;
if (b <= -5.5e+111) {
tmp = (y * b) * (t_1 / y);
} else if (b <= -2.1e-45) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 1.65e-227) {
tmp = y * (z * (x - (i * (j / z))));
} else if (b <= 1.9e-101) {
tmp = a * (x * (((c * j) / x) - t));
} else if (b <= 4.5e+74) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (b <= 1.95e+183) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = b * t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * i) - (z * c) tmp = 0 if b <= -5.5e+111: tmp = (y * b) * (t_1 / y) elif b <= -2.1e-45: tmp = t * ((b * i) - (x * a)) elif b <= 1.65e-227: tmp = y * (z * (x - (i * (j / z)))) elif b <= 1.9e-101: tmp = a * (x * (((c * j) / x) - t)) elif b <= 4.5e+74: tmp = y * (x * (z - ((t * a) / y))) elif b <= 1.95e+183: tmp = i * ((t * b) - (y * j)) else: tmp = b * t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) - Float64(z * c)) tmp = 0.0 if (b <= -5.5e+111) tmp = Float64(Float64(y * b) * Float64(t_1 / y)); elseif (b <= -2.1e-45) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 1.65e-227) tmp = Float64(y * Float64(z * Float64(x - Float64(i * Float64(j / z))))); elseif (b <= 1.9e-101) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (b <= 4.5e+74) tmp = Float64(y * Float64(x * Float64(z - Float64(Float64(t * a) / y)))); elseif (b <= 1.95e+183) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(b * t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * i) - (z * c); tmp = 0.0; if (b <= -5.5e+111) tmp = (y * b) * (t_1 / y); elseif (b <= -2.1e-45) tmp = t * ((b * i) - (x * a)); elseif (b <= 1.65e-227) tmp = y * (z * (x - (i * (j / z)))); elseif (b <= 1.9e-101) tmp = a * (x * (((c * j) / x) - t)); elseif (b <= 4.5e+74) tmp = y * (x * (z - ((t * a) / y))); elseif (b <= 1.95e+183) tmp = i * ((t * b) - (y * j)); else tmp = b * t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e+111], N[(N[(y * b), $MachinePrecision] * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.1e-45], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e-227], N[(y * N[(z * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-101], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e+74], N[(y * N[(x * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e+183], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * t$95$1), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot i - z \cdot c\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{+111}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \frac{t\_1}{y}\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-45}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-227}:\\
\;\;\;\;y \cdot \left(z \cdot \left(x - i \cdot \frac{j}{z}\right)\right)\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-101}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+74}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - \frac{t \cdot a}{y}\right)\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+183}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\_1\\
\end{array}
\end{array}
if b < -5.4999999999999998e111Initial program 70.1%
Taylor expanded in y around -inf
Simplified64.0%
Taylor expanded in b around inf
mul-1-negN/A
associate-*r*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
div-subN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
div-subN/A
mul-1-negN/A
div-subN/A
distribute-neg-frac2N/A
mul-1-negN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6473.9%
Simplified73.9%
if -5.4999999999999998e111 < b < -2.09999999999999995e-45Initial program 81.6%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.7%
Simplified60.7%
if -2.09999999999999995e-45 < b < 1.65e-227Initial program 74.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6475.9%
Simplified75.9%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified71.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6469.8%
Simplified69.8%
if 1.65e-227 < b < 1.90000000000000005e-101Initial 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-*.f6468.6%
Simplified68.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6472.4%
Simplified72.4%
if 1.90000000000000005e-101 < b < 4.5e74Initial program 80.2%
Taylor expanded in y around -inf
Simplified73.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6467.3%
Simplified67.3%
if 4.5e74 < b < 1.9499999999999999e183Initial program 75.9%
Taylor expanded in i around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6468.7%
Simplified68.7%
if 1.9499999999999999e183 < b Initial program 67.9%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6468.1%
Simplified68.1%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -6000000000000.0)
(* c (+ (* a j) (- (/ (* y (- (* x z) (* i j))) c) (* z b))))
(if (<= y 1.85e-69)
(+
(+ (* x (- (* y z) (* t a))) (* i (- (* t b) (* y j))))
(* c (- (* a j) (* z b))))
(+ (* j (- (* a c) (* y i))) (* 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 (y <= -6000000000000.0) {
tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b)));
} else if (y <= 1.85e-69) {
tmp = ((x * ((y * z) - (t * a))) + (i * ((t * b) - (y * j)))) + (c * ((a * j) - (z * b)));
} else {
tmp = (j * ((a * c) - (y * i))) + (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 (y <= (-6000000000000.0d0)) then
tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b)))
else if (y <= 1.85d-69) then
tmp = ((x * ((y * z) - (t * a))) + (i * ((t * b) - (y * j)))) + (c * ((a * j) - (z * b)))
else
tmp = (j * ((a * c) - (y * i))) + (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 (y <= -6000000000000.0) {
tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b)));
} else if (y <= 1.85e-69) {
tmp = ((x * ((y * z) - (t * a))) + (i * ((t * b) - (y * j)))) + (c * ((a * j) - (z * b)));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -6000000000000.0: tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b))) elif y <= 1.85e-69: tmp = ((x * ((y * z) - (t * a))) + (i * ((t * b) - (y * j)))) + (c * ((a * j) - (z * b))) else: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -6000000000000.0) tmp = Float64(c * Float64(Float64(a * j) + Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) / c) - Float64(z * b)))); elseif (y <= 1.85e-69) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(i * Float64(Float64(t * b) - Float64(y * j)))) + Float64(c * Float64(Float64(a * j) - Float64(z * b)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + 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 (y <= -6000000000000.0) tmp = c * ((a * j) + (((y * ((x * z) - (i * j))) / c) - (z * b))); elseif (y <= 1.85e-69) tmp = ((x * ((y * z) - (t * a))) + (i * ((t * b) - (y * j)))) + (c * ((a * j) - (z * b))); else tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -6000000000000.0], N[(c * N[(N[(a * j), $MachinePrecision] + N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.85e-69], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6000000000000:\\
\;\;\;\;c \cdot \left(a \cdot j + \left(\frac{y \cdot \left(x \cdot z - i \cdot j\right)}{c} - z \cdot b\right)\right)\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-69}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + i \cdot \left(t \cdot b - y \cdot j\right)\right) + c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if y < -6e12Initial program 62.4%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6459.8%
Simplified59.8%
Taylor expanded in c around -inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified77.8%
if -6e12 < y < 1.8500000000000001e-69Initial program 85.3%
Taylor expanded in i around 0
+-commutativeN/A
associate--l+N/A
sub-negN/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
Simplified85.9%
if 1.8500000000000001e-69 < y Initial program 66.8%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification79.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.6e+121)
(* y (- (* x z) (* i j)))
(if (<= y -9.6e-73)
(- (* z (- (* x y) (* b c))) (* i (* y j)))
(if (<= y 7e-71)
(* t (- (* b i) (* x a)))
(if (<= y 1.65e+17)
(- (* j (- (* a c) (* y i))) (* a (* x t)))
(* y (- (- (* x z) (/ (* b (* z c)) y)) (* i j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.6e+121) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -9.6e-73) {
tmp = (z * ((x * y) - (b * c))) - (i * (y * j));
} else if (y <= 7e-71) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 1.65e+17) {
tmp = (j * ((a * c) - (y * i))) - (a * (x * t));
} else {
tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.6d+121)) then
tmp = y * ((x * z) - (i * j))
else if (y <= (-9.6d-73)) then
tmp = (z * ((x * y) - (b * c))) - (i * (y * j))
else if (y <= 7d-71) then
tmp = t * ((b * i) - (x * a))
else if (y <= 1.65d+17) then
tmp = (j * ((a * c) - (y * i))) - (a * (x * t))
else
tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.6e+121) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -9.6e-73) {
tmp = (z * ((x * y) - (b * c))) - (i * (y * j));
} else if (y <= 7e-71) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 1.65e+17) {
tmp = (j * ((a * c) - (y * i))) - (a * (x * t));
} else {
tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.6e+121: tmp = y * ((x * z) - (i * j)) elif y <= -9.6e-73: tmp = (z * ((x * y) - (b * c))) - (i * (y * j)) elif y <= 7e-71: tmp = t * ((b * i) - (x * a)) elif y <= 1.65e+17: tmp = (j * ((a * c) - (y * i))) - (a * (x * t)) else: tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.6e+121) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= -9.6e-73) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(i * Float64(y * j))); elseif (y <= 7e-71) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (y <= 1.65e+17) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(a * Float64(x * t))); else tmp = Float64(y * Float64(Float64(Float64(x * z) - Float64(Float64(b * Float64(z * c)) / y)) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.6e+121) tmp = y * ((x * z) - (i * j)); elseif (y <= -9.6e-73) tmp = (z * ((x * y) - (b * c))) - (i * (y * j)); elseif (y <= 7e-71) tmp = t * ((b * i) - (x * a)); elseif (y <= 1.65e+17) tmp = (j * ((a * c) - (y * i))) - (a * (x * t)); else tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.6e+121], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.6e-73], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-71], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+17], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(N[(x * z), $MachinePrecision] - N[(N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+121}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -9.6 \cdot 10^{-73}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-71}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+17}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(x \cdot z - \frac{b \cdot \left(z \cdot c\right)}{y}\right) - i \cdot j\right)\\
\end{array}
\end{array}
if y < -1.6e121Initial program 57.7%
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-*.f6485.5%
Simplified85.5%
if -1.6e121 < y < -9.60000000000000022e-73Initial program 73.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6469.8%
Simplified69.8%
Taylor expanded in a 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
*-lowering-*.f64N/A
*-lowering-*.f6465.4%
Simplified65.4%
if -9.60000000000000022e-73 < y < 6.9999999999999998e-71Initial program 85.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6458.3%
Simplified58.3%
if 6.9999999999999998e-71 < y < 1.65e17Initial program 85.7%
Taylor expanded in a around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
if 1.65e17 < y Initial program 63.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.7%
Simplified70.7%
Taylor expanded in a 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
*-lowering-*.f64N/A
*-lowering-*.f6458.6%
Simplified58.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6468.0%
Simplified68.0%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.8e+94)
(* y (* x (- z (/ (* t a) y))))
(if (<= x -5.4e-18)
(* y (- (- (* x z) (/ (* b (* z c)) y)) (* i j)))
(if (<= x 2.4e-84)
(+ (* j (- (* a c) (* y i))) (* t (* b i)))
(if (<= x 2.25e+52)
(- (* z (- (* x y) (* b c))) (* y (* i j)))
(* x (- (* y z) (* t a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.8e+94) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= -5.4e-18) {
tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j));
} else if (x <= 2.4e-84) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else if (x <= 2.25e+52) {
tmp = (z * ((x * y) - (b * c))) - (y * (i * j));
} else {
tmp = x * ((y * z) - (t * 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 (x <= (-2.8d+94)) then
tmp = y * (x * (z - ((t * a) / y)))
else if (x <= (-5.4d-18)) then
tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j))
else if (x <= 2.4d-84) then
tmp = (j * ((a * c) - (y * i))) + (t * (b * i))
else if (x <= 2.25d+52) then
tmp = (z * ((x * y) - (b * c))) - (y * (i * j))
else
tmp = x * ((y * z) - (t * 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 (x <= -2.8e+94) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= -5.4e-18) {
tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j));
} else if (x <= 2.4e-84) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else if (x <= 2.25e+52) {
tmp = (z * ((x * y) - (b * c))) - (y * (i * j));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.8e+94: tmp = y * (x * (z - ((t * a) / y))) elif x <= -5.4e-18: tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j)) elif x <= 2.4e-84: tmp = (j * ((a * c) - (y * i))) + (t * (b * i)) elif x <= 2.25e+52: tmp = (z * ((x * y) - (b * c))) - (y * (i * j)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.8e+94) tmp = Float64(y * Float64(x * Float64(z - Float64(Float64(t * a) / y)))); elseif (x <= -5.4e-18) tmp = Float64(y * Float64(Float64(Float64(x * z) - Float64(Float64(b * Float64(z * c)) / y)) - Float64(i * j))); elseif (x <= 2.4e-84) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))); elseif (x <= 2.25e+52) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(y * Float64(i * j))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.8e+94) tmp = y * (x * (z - ((t * a) / y))); elseif (x <= -5.4e-18) tmp = y * (((x * z) - ((b * (z * c)) / y)) - (i * j)); elseif (x <= 2.4e-84) tmp = (j * ((a * c) - (y * i))) + (t * (b * i)); elseif (x <= 2.25e+52) tmp = (z * ((x * y) - (b * c))) - (y * (i * j)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.8e+94], N[(y * N[(x * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.4e-18], N[(y * N[(N[(N[(x * z), $MachinePrecision] - N[(N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-84], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.25e+52], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{+94}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - \frac{t \cdot a}{y}\right)\right)\\
\mathbf{elif}\;x \leq -5.4 \cdot 10^{-18}:\\
\;\;\;\;y \cdot \left(\left(x \cdot z - \frac{b \cdot \left(z \cdot c\right)}{y}\right) - i \cdot j\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-84}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 2.25 \cdot 10^{+52}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -2.79999999999999998e94Initial program 67.3%
Taylor expanded in y around -inf
Simplified63.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6470.4%
Simplified70.4%
if -2.79999999999999998e94 < x < -5.39999999999999977e-18Initial program 92.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6464.5%
Simplified64.5%
Taylor expanded in a 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
*-lowering-*.f64N/A
*-lowering-*.f6453.2%
Simplified53.2%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6460.8%
Simplified60.8%
if -5.39999999999999977e-18 < x < 2.40000000000000017e-84Initial program 67.1%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.9%
Simplified70.9%
if 2.40000000000000017e-84 < x < 2.25e52Initial program 86.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.0%
Simplified73.0%
Taylor expanded in a 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
*-lowering-*.f64N/A
*-lowering-*.f6470.0%
Simplified70.0%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6470.1%
Applied egg-rr70.1%
if 2.25e52 < x Initial program 74.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.3%
Simplified63.3%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -5.5e+132)
t_2
(if (<= i -6.6e+44)
(* j (- (* a c) (* y i)))
(if (<= i -2.6e-71)
t_1
(if (<= i 2.7e-251)
(* c (- (* a j) (* z b)))
(if (<= i 520000000000.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.5e+132) {
tmp = t_2;
} else if (i <= -6.6e+44) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -2.6e-71) {
tmp = t_1;
} else if (i <= 2.7e-251) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 520000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = i * ((t * b) - (y * j))
if (i <= (-5.5d+132)) then
tmp = t_2
else if (i <= (-6.6d+44)) then
tmp = j * ((a * c) - (y * i))
else if (i <= (-2.6d-71)) then
tmp = t_1
else if (i <= 2.7d-251) then
tmp = c * ((a * j) - (z * b))
else if (i <= 520000000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.5e+132) {
tmp = t_2;
} else if (i <= -6.6e+44) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -2.6e-71) {
tmp = t_1;
} else if (i <= 2.7e-251) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 520000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -5.5e+132: tmp = t_2 elif i <= -6.6e+44: tmp = j * ((a * c) - (y * i)) elif i <= -2.6e-71: tmp = t_1 elif i <= 2.7e-251: tmp = c * ((a * j) - (z * b)) elif i <= 520000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -5.5e+132) tmp = t_2; elseif (i <= -6.6e+44) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (i <= -2.6e-71) tmp = t_1; elseif (i <= 2.7e-251) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 520000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -5.5e+132) tmp = t_2; elseif (i <= -6.6e+44) tmp = j * ((a * c) - (y * i)); elseif (i <= -2.6e-71) tmp = t_1; elseif (i <= 2.7e-251) tmp = c * ((a * j) - (z * b)); elseif (i <= 520000000000.0) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.5e+132], t$95$2, If[LessEqual[i, -6.6e+44], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.6e-71], t$95$1, If[LessEqual[i, 2.7e-251], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 520000000000.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -5.5 \cdot 10^{+132}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -6.6 \cdot 10^{+44}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq -2.6 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-251}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 520000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -5.5e132 or 5.2e11 < i Initial program 67.0%
Taylor expanded in i around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6469.0%
Simplified69.0%
if -5.5e132 < i < -6.60000000000000027e44Initial program 71.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6469.0%
Simplified69.0%
if -6.60000000000000027e44 < i < -2.5999999999999999e-71 or 2.7000000000000001e-251 < i < 5.2e11Initial program 84.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.8%
Simplified59.8%
if -2.5999999999999999e-71 < i < 2.7000000000000001e-251Initial program 71.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.7%
Simplified60.7%
Final simplification64.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -5.2e-18)
(* y (* x (- z (/ (* t a) y))))
(if (<= x 2e-86)
(+ (* j (- (* a c) (* y i))) (* t (* b i)))
(if (<= x 1.4e+54)
(- (* z (- (* x y) (* b c))) (* y (* i j)))
(* x (- (* y z) (* t a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -5.2e-18) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= 2e-86) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else if (x <= 1.4e+54) {
tmp = (z * ((x * y) - (b * c))) - (y * (i * j));
} else {
tmp = x * ((y * z) - (t * 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 (x <= (-5.2d-18)) then
tmp = y * (x * (z - ((t * a) / y)))
else if (x <= 2d-86) then
tmp = (j * ((a * c) - (y * i))) + (t * (b * i))
else if (x <= 1.4d+54) then
tmp = (z * ((x * y) - (b * c))) - (y * (i * j))
else
tmp = x * ((y * z) - (t * 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 (x <= -5.2e-18) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= 2e-86) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else if (x <= 1.4e+54) {
tmp = (z * ((x * y) - (b * c))) - (y * (i * j));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -5.2e-18: tmp = y * (x * (z - ((t * a) / y))) elif x <= 2e-86: tmp = (j * ((a * c) - (y * i))) + (t * (b * i)) elif x <= 1.4e+54: tmp = (z * ((x * y) - (b * c))) - (y * (i * j)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -5.2e-18) tmp = Float64(y * Float64(x * Float64(z - Float64(Float64(t * a) / y)))); elseif (x <= 2e-86) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))); elseif (x <= 1.4e+54) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(y * Float64(i * j))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -5.2e-18) tmp = y * (x * (z - ((t * a) / y))); elseif (x <= 2e-86) tmp = (j * ((a * c) - (y * i))) + (t * (b * i)); elseif (x <= 1.4e+54) tmp = (z * ((x * y) - (b * c))) - (y * (i * j)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -5.2e-18], N[(y * N[(x * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e-86], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+54], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.2 \cdot 10^{-18}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - \frac{t \cdot a}{y}\right)\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-86}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+54}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -5.2000000000000001e-18Initial program 75.9%
Taylor expanded in y around -inf
Simplified68.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6461.2%
Simplified61.2%
if -5.2000000000000001e-18 < x < 2.00000000000000017e-86Initial program 67.1%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.9%
Simplified70.9%
if 2.00000000000000017e-86 < x < 1.40000000000000008e54Initial program 87.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.9%
Simplified70.9%
Taylor expanded in a 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
*-lowering-*.f64N/A
*-lowering-*.f6468.0%
Simplified68.0%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6468.0%
Applied egg-rr68.0%
if 1.40000000000000008e54 < x Initial program 73.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.4%
Simplified64.4%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -3.1e-19)
(* y (* x (- z (/ (* t a) y))))
(if (<= x 3.6e-84)
(+ (* j (- (* a c) (* y i))) (* t (* b i)))
(if (<= x 2.5e+55)
(- (* z (- (* x y) (* b c))) (* i (* y j)))
(* x (- (* y z) (* t a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -3.1e-19) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= 3.6e-84) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else if (x <= 2.5e+55) {
tmp = (z * ((x * y) - (b * c))) - (i * (y * j));
} else {
tmp = x * ((y * z) - (t * 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 (x <= (-3.1d-19)) then
tmp = y * (x * (z - ((t * a) / y)))
else if (x <= 3.6d-84) then
tmp = (j * ((a * c) - (y * i))) + (t * (b * i))
else if (x <= 2.5d+55) then
tmp = (z * ((x * y) - (b * c))) - (i * (y * j))
else
tmp = x * ((y * z) - (t * 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 (x <= -3.1e-19) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= 3.6e-84) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else if (x <= 2.5e+55) {
tmp = (z * ((x * y) - (b * c))) - (i * (y * j));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -3.1e-19: tmp = y * (x * (z - ((t * a) / y))) elif x <= 3.6e-84: tmp = (j * ((a * c) - (y * i))) + (t * (b * i)) elif x <= 2.5e+55: tmp = (z * ((x * y) - (b * c))) - (i * (y * j)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -3.1e-19) tmp = Float64(y * Float64(x * Float64(z - Float64(Float64(t * a) / y)))); elseif (x <= 3.6e-84) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))); elseif (x <= 2.5e+55) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(i * Float64(y * j))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -3.1e-19) tmp = y * (x * (z - ((t * a) / y))); elseif (x <= 3.6e-84) tmp = (j * ((a * c) - (y * i))) + (t * (b * i)); elseif (x <= 2.5e+55) tmp = (z * ((x * y) - (b * c))) - (i * (y * j)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -3.1e-19], N[(y * N[(x * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.6e-84], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+55], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{-19}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - \frac{t \cdot a}{y}\right)\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-84}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+55}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -3.0999999999999999e-19Initial program 75.9%
Taylor expanded in y around -inf
Simplified68.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6461.2%
Simplified61.2%
if -3.0999999999999999e-19 < x < 3.60000000000000003e-84Initial program 67.1%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.9%
Simplified70.9%
if 3.60000000000000003e-84 < x < 2.50000000000000023e55Initial program 87.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.9%
Simplified70.9%
Taylor expanded in a 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
*-lowering-*.f64N/A
*-lowering-*.f6468.0%
Simplified68.0%
if 2.50000000000000023e55 < x Initial program 73.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.4%
Simplified64.4%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -8.5e+132)
t_1
(if (<= i -4.3e+36)
(* j (- (* a c) (* y i)))
(if (<= i -4.3e-61)
(* z (* x y))
(if (<= i 4.2e+18) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.5e+132) {
tmp = t_1;
} else if (i <= -4.3e+36) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -4.3e-61) {
tmp = z * (x * y);
} else if (i <= 4.2e+18) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-8.5d+132)) then
tmp = t_1
else if (i <= (-4.3d+36)) then
tmp = j * ((a * c) - (y * i))
else if (i <= (-4.3d-61)) then
tmp = z * (x * y)
else if (i <= 4.2d+18) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.5e+132) {
tmp = t_1;
} else if (i <= -4.3e+36) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -4.3e-61) {
tmp = z * (x * y);
} else if (i <= 4.2e+18) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -8.5e+132: tmp = t_1 elif i <= -4.3e+36: tmp = j * ((a * c) - (y * i)) elif i <= -4.3e-61: tmp = z * (x * y) elif i <= 4.2e+18: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -8.5e+132) tmp = t_1; elseif (i <= -4.3e+36) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (i <= -4.3e-61) tmp = Float64(z * Float64(x * y)); elseif (i <= 4.2e+18) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -8.5e+132) tmp = t_1; elseif (i <= -4.3e+36) tmp = j * ((a * c) - (y * i)); elseif (i <= -4.3e-61) tmp = z * (x * y); elseif (i <= 4.2e+18) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.5e+132], t$95$1, If[LessEqual[i, -4.3e+36], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.3e-61], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.2e+18], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -8.5 \cdot 10^{+132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -4.3 \cdot 10^{+36}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq -4.3 \cdot 10^{-61}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{+18}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -8.49999999999999969e132 or 4.2e18 < i Initial program 67.0%
Taylor expanded in i around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.8%
Simplified70.8%
if -8.49999999999999969e132 < i < -4.30000000000000005e36Initial program 71.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6469.0%
Simplified69.0%
if -4.30000000000000005e36 < i < -4.3000000000000003e-61Initial program 78.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6453.0%
Simplified53.0%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.6%
Simplified43.6%
if -4.3000000000000003e-61 < i < 4.2e18Initial program 78.9%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6448.7%
Simplified48.7%
Final simplification58.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.25e+168)
t_1
(if (<= i 2.35e+21)
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e+168) {
tmp = t_1;
} else if (i <= 2.35e+21) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * 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 = i * ((t * b) - (y * j))
if (i <= (-1.25d+168)) then
tmp = t_1
else if (i <= 2.35d+21) then
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e+168) {
tmp = t_1;
} else if (i <= 2.35e+21) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.25e+168: tmp = t_1 elif i <= 2.35e+21: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.25e+168) tmp = t_1; elseif (i <= 2.35e+21) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.25e+168) tmp = t_1; elseif (i <= 2.35e+21) tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.25e+168], t$95$1, If[LessEqual[i, 2.35e+21], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.25 \cdot 10^{+168}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.35 \cdot 10^{+21}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.24999999999999992e168 or 2.35e21 < i Initial program 65.3%
Taylor expanded in i around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.4%
Simplified71.4%
if -1.24999999999999992e168 < i < 2.35e21Initial program 78.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.3%
Simplified70.3%
Final simplification70.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -7.4e+99)
(* y (* x z))
(if (<= y -7.2e-56)
(* j (- 0.0 (* y i)))
(if (<= y 8.8e-70)
(* b (* t i))
(if (<= y 1550.0) (* j (* a c)) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -7.4e+99) {
tmp = y * (x * z);
} else if (y <= -7.2e-56) {
tmp = j * (0.0 - (y * i));
} else if (y <= 8.8e-70) {
tmp = b * (t * i);
} else if (y <= 1550.0) {
tmp = j * (a * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-7.4d+99)) then
tmp = y * (x * z)
else if (y <= (-7.2d-56)) then
tmp = j * (0.0d0 - (y * i))
else if (y <= 8.8d-70) then
tmp = b * (t * i)
else if (y <= 1550.0d0) then
tmp = j * (a * c)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -7.4e+99) {
tmp = y * (x * z);
} else if (y <= -7.2e-56) {
tmp = j * (0.0 - (y * i));
} else if (y <= 8.8e-70) {
tmp = b * (t * i);
} else if (y <= 1550.0) {
tmp = j * (a * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -7.4e+99: tmp = y * (x * z) elif y <= -7.2e-56: tmp = j * (0.0 - (y * i)) elif y <= 8.8e-70: tmp = b * (t * i) elif y <= 1550.0: tmp = j * (a * c) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -7.4e+99) tmp = Float64(y * Float64(x * z)); elseif (y <= -7.2e-56) tmp = Float64(j * Float64(0.0 - Float64(y * i))); elseif (y <= 8.8e-70) tmp = Float64(b * Float64(t * i)); elseif (y <= 1550.0) tmp = Float64(j * Float64(a * c)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -7.4e+99) tmp = y * (x * z); elseif (y <= -7.2e-56) tmp = j * (0.0 - (y * i)); elseif (y <= 8.8e-70) tmp = b * (t * i); elseif (y <= 1550.0) tmp = j * (a * c); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -7.4e+99], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-56], N[(j * N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.8e-70], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1550.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.4 \cdot 10^{+99}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-56}:\\
\;\;\;\;j \cdot \left(0 - y \cdot i\right)\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{-70}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 1550:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -7.4000000000000002e99Initial program 57.4%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.0%
Simplified51.0%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified52.9%
Taylor expanded in x around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.9%
Simplified62.9%
if -7.4000000000000002e99 < y < -7.19999999999999956e-56Initial program 76.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6456.2%
Simplified56.2%
Taylor expanded in a 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--.f6440.9%
Simplified40.9%
if -7.19999999999999956e-56 < y < 8.7999999999999996e-70Initial program 86.2%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6457.6%
Simplified57.6%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.4%
Simplified36.4%
if 8.7999999999999996e-70 < y < 1550Initial program 80.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6480.5%
Simplified80.5%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6470.5%
Simplified70.5%
if 1550 < y Initial program 65.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.6%
Simplified41.6%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -9e+99)
(* y (* x z))
(if (<= y -2.8e-56)
(* i (- 0.0 (* y j)))
(if (<= y 6e-73)
(* b (* t i))
(if (<= y 0.7) (* j (* a c)) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -9e+99) {
tmp = y * (x * z);
} else if (y <= -2.8e-56) {
tmp = i * (0.0 - (y * j));
} else if (y <= 6e-73) {
tmp = b * (t * i);
} else if (y <= 0.7) {
tmp = j * (a * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-9d+99)) then
tmp = y * (x * z)
else if (y <= (-2.8d-56)) then
tmp = i * (0.0d0 - (y * j))
else if (y <= 6d-73) then
tmp = b * (t * i)
else if (y <= 0.7d0) then
tmp = j * (a * c)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -9e+99) {
tmp = y * (x * z);
} else if (y <= -2.8e-56) {
tmp = i * (0.0 - (y * j));
} else if (y <= 6e-73) {
tmp = b * (t * i);
} else if (y <= 0.7) {
tmp = j * (a * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -9e+99: tmp = y * (x * z) elif y <= -2.8e-56: tmp = i * (0.0 - (y * j)) elif y <= 6e-73: tmp = b * (t * i) elif y <= 0.7: tmp = j * (a * c) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -9e+99) tmp = Float64(y * Float64(x * z)); elseif (y <= -2.8e-56) tmp = Float64(i * Float64(0.0 - Float64(y * j))); elseif (y <= 6e-73) tmp = Float64(b * Float64(t * i)); elseif (y <= 0.7) tmp = Float64(j * Float64(a * c)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -9e+99) tmp = y * (x * z); elseif (y <= -2.8e-56) tmp = i * (0.0 - (y * j)); elseif (y <= 6e-73) tmp = b * (t * i); elseif (y <= 0.7) tmp = j * (a * c); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -9e+99], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.8e-56], N[(i * N[(0.0 - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-73], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.7], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+99}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-56}:\\
\;\;\;\;i \cdot \left(0 - y \cdot j\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-73}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 0.7:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -8.9999999999999999e99Initial program 57.4%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.0%
Simplified51.0%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified52.9%
Taylor expanded in x around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.9%
Simplified62.9%
if -8.9999999999999999e99 < y < -2.79999999999999993e-56Initial program 76.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6456.2%
Simplified56.2%
Taylor expanded in a 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--.f64N/A
*-lowering-*.f6440.8%
Simplified40.8%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6440.8%
Applied egg-rr40.8%
if -2.79999999999999993e-56 < y < 6e-73Initial program 86.2%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6457.6%
Simplified57.6%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.4%
Simplified36.4%
if 6e-73 < y < 0.69999999999999996Initial program 80.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6480.5%
Simplified80.5%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6470.5%
Simplified70.5%
if 0.69999999999999996 < y Initial program 65.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.6%
Simplified41.6%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.95e-19)
(* y (* x (- z (/ (* t a) y))))
(if (<= x 2.25e+53)
(+ (* j (- (* a c) (* y i))) (* t (* b i)))
(* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.95e-19) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= 2.25e+53) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else {
tmp = x * ((y * z) - (t * 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 (x <= (-1.95d-19)) then
tmp = y * (x * (z - ((t * a) / y)))
else if (x <= 2.25d+53) then
tmp = (j * ((a * c) - (y * i))) + (t * (b * i))
else
tmp = x * ((y * z) - (t * 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 (x <= -1.95e-19) {
tmp = y * (x * (z - ((t * a) / y)));
} else if (x <= 2.25e+53) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.95e-19: tmp = y * (x * (z - ((t * a) / y))) elif x <= 2.25e+53: tmp = (j * ((a * c) - (y * i))) + (t * (b * i)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.95e-19) tmp = Float64(y * Float64(x * Float64(z - Float64(Float64(t * a) / y)))); elseif (x <= 2.25e+53) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.95e-19) tmp = y * (x * (z - ((t * a) / y))); elseif (x <= 2.25e+53) tmp = (j * ((a * c) - (y * i))) + (t * (b * i)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.95e-19], N[(y * N[(x * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.25e+53], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.95 \cdot 10^{-19}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - \frac{t \cdot a}{y}\right)\right)\\
\mathbf{elif}\;x \leq 2.25 \cdot 10^{+53}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -1.94999999999999998e-19Initial program 75.9%
Taylor expanded in y around -inf
Simplified68.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6461.2%
Simplified61.2%
if -1.94999999999999998e-19 < x < 2.2500000000000001e53Initial program 72.1%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6464.6%
Simplified64.6%
if 2.2500000000000001e53 < x Initial program 73.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.4%
Simplified64.4%
Final simplification63.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.06e-23)
t_1
(if (<= y 1.26e-74)
(* t (- (* b i) (* x a)))
(if (<= y 0.00098) (* a (- (* c j) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.06e-23) {
tmp = t_1;
} else if (y <= 1.26e-74) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 0.00098) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-1.06d-23)) then
tmp = t_1
else if (y <= 1.26d-74) then
tmp = t * ((b * i) - (x * a))
else if (y <= 0.00098d0) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.06e-23) {
tmp = t_1;
} else if (y <= 1.26e-74) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 0.00098) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.06e-23: tmp = t_1 elif y <= 1.26e-74: tmp = t * ((b * i) - (x * a)) elif y <= 0.00098: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 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 (y <= -1.06e-23) tmp = t_1; elseif (y <= 1.26e-74) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (y <= 0.00098) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.06e-23) tmp = t_1; elseif (y <= 1.26e-74) tmp = t * ((b * i) - (x * a)); elseif (y <= 0.00098) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.06e-23], t$95$1, If[LessEqual[y, 1.26e-74], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.00098], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.06 \cdot 10^{-23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.26 \cdot 10^{-74}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;y \leq 0.00098:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.05999999999999994e-23 or 9.7999999999999997e-4 < y Initial program 65.5%
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-*.f6466.5%
Simplified66.5%
if -1.05999999999999994e-23 < y < 1.25999999999999997e-74Initial program 85.5%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6457.4%
Simplified57.4%
if 1.25999999999999997e-74 < y < 9.7999999999999997e-4Initial program 80.0%
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-*.f6490.2%
Simplified90.2%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -8.2e+73)
(* y (* x z))
(if (<= y 1.2e-74)
(* b (* t i))
(if (<= y 57.0) (* j (* a c)) (* z (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8.2e+73) {
tmp = y * (x * z);
} else if (y <= 1.2e-74) {
tmp = b * (t * i);
} else if (y <= 57.0) {
tmp = j * (a * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-8.2d+73)) then
tmp = y * (x * z)
else if (y <= 1.2d-74) then
tmp = b * (t * i)
else if (y <= 57.0d0) then
tmp = j * (a * c)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8.2e+73) {
tmp = y * (x * z);
} else if (y <= 1.2e-74) {
tmp = b * (t * i);
} else if (y <= 57.0) {
tmp = j * (a * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -8.2e+73: tmp = y * (x * z) elif y <= 1.2e-74: tmp = b * (t * i) elif y <= 57.0: tmp = j * (a * c) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -8.2e+73) tmp = Float64(y * Float64(x * z)); elseif (y <= 1.2e-74) tmp = Float64(b * Float64(t * i)); elseif (y <= 57.0) tmp = Float64(j * Float64(a * c)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -8.2e+73) tmp = y * (x * z); elseif (y <= 1.2e-74) tmp = b * (t * i); elseif (y <= 57.0) tmp = j * (a * c); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -8.2e+73], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e-74], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 57.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{+73}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-74}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 57:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -8.1999999999999996e73Initial program 58.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.9%
Simplified54.9%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified56.5%
Taylor expanded in x around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6457.3%
Simplified57.3%
if -8.1999999999999996e73 < y < 1.1999999999999999e-74Initial program 85.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6450.1%
Simplified50.1%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6432.7%
Simplified32.7%
if 1.1999999999999999e-74 < y < 57Initial program 80.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6480.5%
Simplified80.5%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6470.5%
Simplified70.5%
if 57 < y Initial program 65.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.6%
Simplified41.6%
Final simplification41.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.4e+74)
(* y (* x z))
(if (<= y 1.45e-70)
(* b (* t i))
(if (<= y 3.0) (* j (* a c)) (* x (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.4e+74) {
tmp = y * (x * z);
} else if (y <= 1.45e-70) {
tmp = b * (t * i);
} else if (y <= 3.0) {
tmp = j * (a * c);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-2.4d+74)) then
tmp = y * (x * z)
else if (y <= 1.45d-70) then
tmp = b * (t * i)
else if (y <= 3.0d0) then
tmp = j * (a * c)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.4e+74) {
tmp = y * (x * z);
} else if (y <= 1.45e-70) {
tmp = b * (t * i);
} else if (y <= 3.0) {
tmp = j * (a * c);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2.4e+74: tmp = y * (x * z) elif y <= 1.45e-70: tmp = b * (t * i) elif y <= 3.0: tmp = j * (a * c) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.4e+74) tmp = Float64(y * Float64(x * z)); elseif (y <= 1.45e-70) tmp = Float64(b * Float64(t * i)); elseif (y <= 3.0) tmp = Float64(j * Float64(a * c)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2.4e+74) tmp = y * (x * z); elseif (y <= 1.45e-70) tmp = b * (t * i); elseif (y <= 3.0) tmp = j * (a * c); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.4e+74], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e-70], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+74}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-70}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 3:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -2.40000000000000008e74Initial program 58.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.9%
Simplified54.9%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified56.5%
Taylor expanded in x around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6457.3%
Simplified57.3%
if -2.40000000000000008e74 < y < 1.44999999999999986e-70Initial program 85.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6450.1%
Simplified50.1%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6432.7%
Simplified32.7%
if 1.44999999999999986e-70 < y < 3Initial program 80.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6480.5%
Simplified80.5%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6470.5%
Simplified70.5%
if 3 < y Initial program 65.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6465.1%
Applied egg-rr65.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.5%
Simplified43.5%
Taylor expanded in z around inf
*-lowering-*.f6440.4%
Simplified40.4%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -1.4e+74)
t_1
(if (<= y 2.45e-74) (* b (* t i)) (if (<= y 140.0) (* 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 = x * (y * z);
double tmp;
if (y <= -1.4e+74) {
tmp = t_1;
} else if (y <= 2.45e-74) {
tmp = b * (t * i);
} else if (y <= 140.0) {
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 = x * (y * z)
if (y <= (-1.4d+74)) then
tmp = t_1
else if (y <= 2.45d-74) then
tmp = b * (t * i)
else if (y <= 140.0d0) 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 = x * (y * z);
double tmp;
if (y <= -1.4e+74) {
tmp = t_1;
} else if (y <= 2.45e-74) {
tmp = b * (t * i);
} else if (y <= 140.0) {
tmp = j * (a * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -1.4e+74: tmp = t_1 elif y <= 2.45e-74: tmp = b * (t * i) elif y <= 140.0: tmp = j * (a * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -1.4e+74) tmp = t_1; elseif (y <= 2.45e-74) tmp = Float64(b * Float64(t * i)); elseif (y <= 140.0) 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 = x * (y * z); tmp = 0.0; if (y <= -1.4e+74) tmp = t_1; elseif (y <= 2.45e-74) tmp = b * (t * i); elseif (y <= 140.0) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.4e+74], t$95$1, If[LessEqual[y, 2.45e-74], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 140.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.4 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{-74}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 140:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.40000000000000001e74 or 140 < y Initial program 62.3%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6462.3%
Applied egg-rr62.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.2%
Simplified51.2%
Taylor expanded in z around inf
*-lowering-*.f6446.3%
Simplified46.3%
if -1.40000000000000001e74 < y < 2.4500000000000001e-74Initial program 85.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6450.1%
Simplified50.1%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6432.7%
Simplified32.7%
if 2.4500000000000001e-74 < y < 140Initial program 80.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6480.5%
Simplified80.5%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6470.5%
Simplified70.5%
Final simplification40.9%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* i (- (* t b) (* y j))))) (if (<= i -5.5e-66) t_1 (if (<= i 1e+20) (* c (- (* a j) (* z b))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.5e-66) {
tmp = t_1;
} else if (i <= 1e+20) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-5.5d-66)) then
tmp = t_1
else if (i <= 1d+20) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.5e-66) {
tmp = t_1;
} else if (i <= 1e+20) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -5.5e-66: tmp = t_1 elif i <= 1e+20: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -5.5e-66) tmp = t_1; elseif (i <= 1e+20) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -5.5e-66) tmp = t_1; elseif (i <= 1e+20) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.5e-66], t$95$1, If[LessEqual[i, 1e+20], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -5.5 \cdot 10^{-66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 10^{+20}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -5.50000000000000053e-66 or 1e20 < i Initial program 70.2%
Taylor expanded in i around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.3%
Simplified59.3%
if -5.50000000000000053e-66 < i < 1e20Initial program 78.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6449.6%
Simplified49.6%
Final simplification55.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -5.5e+91)
t_1
(if (<= b 260000.0) (* a (- (* c j) (* x t))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.5e+91) {
tmp = t_1;
} else if (b <= 260000.0) {
tmp = a * ((c * j) - (x * t));
} 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) - (z * c))
if (b <= (-5.5d+91)) then
tmp = t_1
else if (b <= 260000.0d0) then
tmp = a * ((c * j) - (x * t))
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) - (z * c));
double tmp;
if (b <= -5.5e+91) {
tmp = t_1;
} else if (b <= 260000.0) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.5e+91: tmp = t_1 elif b <= 260000.0: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.5e+91) tmp = t_1; elseif (b <= 260000.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); 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) - (z * c)); tmp = 0.0; if (b <= -5.5e+91) tmp = t_1; elseif (b <= 260000.0) tmp = a * ((c * j) - (x * t)); 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[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e+91], t$95$1, If[LessEqual[b, 260000.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{+91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 260000:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.4999999999999998e91 or 2.6e5 < b Initial program 72.4%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.0%
Simplified61.0%
if -5.4999999999999998e91 < b < 2.6e5Initial program 74.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-*.f6444.0%
Simplified44.0%
Final simplification52.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -1.35e+97) (* y (* x z)) (if (<= y 2.15e+160) (* a (- (* c j) (* x t))) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.35e+97) {
tmp = y * (x * z);
} else if (y <= 2.15e+160) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.35d+97)) then
tmp = y * (x * z)
else if (y <= 2.15d+160) then
tmp = a * ((c * j) - (x * t))
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.35e+97) {
tmp = y * (x * z);
} else if (y <= 2.15e+160) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.35e+97: tmp = y * (x * z) elif y <= 2.15e+160: tmp = a * ((c * j) - (x * t)) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.35e+97) tmp = Float64(y * Float64(x * z)); elseif (y <= 2.15e+160) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.35e+97) tmp = y * (x * z); elseif (y <= 2.15e+160) tmp = a * ((c * j) - (x * t)); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.35e+97], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.15e+160], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+97}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{+160}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -1.34999999999999997e97Initial program 56.0%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.1%
Simplified52.1%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified54.0%
Taylor expanded in x around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6463.8%
Simplified63.8%
if -1.34999999999999997e97 < y < 2.14999999999999994e160Initial program 80.5%
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-*.f6447.1%
Simplified47.1%
if 2.14999999999999994e160 < y Initial program 62.6%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.8%
Simplified50.8%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.1%
Simplified46.1%
Final simplification49.8%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* b (* t i)))) (if (<= i -3.5e+74) t_1 (if (<= i 3.2e+35) (* 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 (i <= -3.5e+74) {
tmp = t_1;
} else if (i <= 3.2e+35) {
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 (i <= (-3.5d+74)) then
tmp = t_1
else if (i <= 3.2d+35) 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 (i <= -3.5e+74) {
tmp = t_1;
} else if (i <= 3.2e+35) {
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 i <= -3.5e+74: tmp = t_1 elif i <= 3.2e+35: 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 (i <= -3.5e+74) tmp = t_1; elseif (i <= 3.2e+35) 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 (i <= -3.5e+74) tmp = t_1; elseif (i <= 3.2e+35) 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[i, -3.5e+74], t$95$1, If[LessEqual[i, 3.2e+35], 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}\;i \leq -3.5 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{+35}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.50000000000000014e74 or 3.19999999999999983e35 < i Initial program 67.9%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6448.5%
Simplified48.5%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.9%
Simplified44.9%
if -3.50000000000000014e74 < i < 3.19999999999999983e35Initial program 77.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-*.f6445.2%
Simplified45.2%
Taylor expanded in j around inf
*-lowering-*.f6427.7%
Simplified27.7%
(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 73.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-*.f6438.2%
Simplified38.2%
Taylor expanded in j around inf
*-lowering-*.f6422.4%
Simplified22.4%
(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 2024191
(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)))))