
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (* x (- (* y z) (* t a))) t_1))
(t_3 (- (* a c) (* y i)))
(t_4 (+ t_2 (* j t_3))))
(if (<= t_4 5e+285)
(fma j t_3 t_2)
(if (<= t_4 INFINITY)
(+ (+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j)))) t_1)
(* i (- (* t b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = (a * c) - (y * i);
double t_4 = t_2 + (j * t_3);
double tmp;
if (t_4 <= 5e+285) {
tmp = fma(j, t_3, t_2);
} else if (t_4 <= ((double) INFINITY)) {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) t_3 = Float64(Float64(a * c) - Float64(y * i)) t_4 = Float64(t_2 + Float64(j * t_3)) tmp = 0.0 if (t_4 <= 5e+285) tmp = fma(j, t_3, t_2); elseif (t_4 <= Inf) tmp = Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) + t_1); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$2 + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 5e+285], N[(j * t$95$3 + t$95$2), $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
t_3 := a \cdot c - y \cdot i\\
t_4 := t\_2 + j \cdot t\_3\\
\mathbf{if}\;t\_4 \leq 5 \cdot 10^{+285}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_3, t\_2\right)\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\left(a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 5.00000000000000016e285Initial program 97.7%
+-commutative97.7%
fma-define97.7%
*-commutative97.7%
*-commutative97.7%
Simplified97.7%
if 5.00000000000000016e285 < (+.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 83.4%
+-commutative83.4%
fma-define83.4%
*-commutative83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in y around 0 90.4%
Simplified90.4%
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%
+-commutative0.0%
fma-define7.7%
*-commutative7.7%
*-commutative7.7%
Simplified7.7%
Taylor expanded in y around 0 23.2%
Simplified29.0%
Taylor expanded in i around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
*-commutative52.9%
Simplified52.9%
Final simplification86.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (+ (* x (- (* y z) (* t a))) t_1) (* j (- (* a c) (* y i))))))
(if (<= t_2 5e+285)
t_2
(if (<= t_2 INFINITY)
(+ (+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j)))) t_1)
(* i (- (* t b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= 5e+285) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
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 = b * ((t * i) - (z * c));
double t_2 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= 5e+285) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((a * c) - (y * i))) tmp = 0 if t_2 <= 5e+285: tmp = t_2 elif t_2 <= math.inf: tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + t_1 else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= 5e+285) tmp = t_2; elseif (t_2 <= Inf) tmp = Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) + t_1); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_2 <= 5e+285) tmp = t_2; elseif (t_2 <= Inf) tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + t_1; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 5e+285], t$95$2, If[LessEqual[t$95$2, Infinity], N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 \leq 5 \cdot 10^{+285}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\left(a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 5.00000000000000016e285Initial program 97.7%
if 5.00000000000000016e285 < (+.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 83.4%
+-commutative83.4%
fma-define83.4%
*-commutative83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in y around 0 90.4%
Simplified90.4%
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%
+-commutative0.0%
fma-define7.7%
*-commutative7.7%
*-commutative7.7%
Simplified7.7%
Taylor expanded in y around 0 23.2%
Simplified29.0%
Taylor expanded in i around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
*-commutative52.9%
Simplified52.9%
Final simplification86.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -4.4e+23)
(+ (* j (- (* a c) (* y i))) t_1)
(if (<= x 1.18e+116)
(+
(+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j))))
(* b (- (* t i) (* z c))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.4e+23) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if (x <= 1.18e+116) {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-4.4d+23)) then
tmp = (j * ((a * c) - (y * i))) + t_1
else if (x <= 1.18d+116) then
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.4e+23) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if (x <= 1.18e+116) {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -4.4e+23: tmp = (j * ((a * c) - (y * i))) + t_1 elif x <= 1.18e+116: tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -4.4e+23) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); elseif (x <= 1.18e+116) tmp = Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -4.4e+23) tmp = (j * ((a * c) - (y * i))) + t_1; elseif (x <= 1.18e+116) tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.4e+23], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[x, 1.18e+116], N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -4.4 \cdot 10^{+23}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
\mathbf{elif}\;x \leq 1.18 \cdot 10^{+116}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.40000000000000017e23Initial program 80.7%
+-commutative80.7%
fma-define84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in b around 0 81.0%
if -4.40000000000000017e23 < x < 1.1799999999999999e116Initial program 76.1%
+-commutative76.1%
fma-define76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in y around 0 85.2%
Simplified85.8%
if 1.1799999999999999e116 < x Initial program 60.8%
+-commutative60.8%
fma-define65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in y around 0 43.9%
Simplified46.0%
Taylor expanded in j around inf 46.0%
associate-/l*46.0%
Simplified46.0%
Taylor expanded in x around inf 71.9%
+-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
Simplified71.9%
Final simplification82.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= b -4.1e-57) (not (<= b 1.1e+49)))
(+
(- (* a (* c j)) (* y (* i (- j (* x (/ z i))))))
(* b (- (* t i) (* z c))))
(+ (* j (- (* a c) (* y 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 ((b <= -4.1e-57) || !(b <= 1.1e+49)) {
tmp = ((a * (c * j)) - (y * (i * (j - (x * (z / i)))))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) + (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 ((b <= (-4.1d-57)) .or. (.not. (b <= 1.1d+49))) then
tmp = ((a * (c * j)) - (y * (i * (j - (x * (z / i)))))) + (b * ((t * i) - (z * c)))
else
tmp = (j * ((a * c) - (y * i))) + (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 ((b <= -4.1e-57) || !(b <= 1.1e+49)) {
tmp = ((a * (c * j)) - (y * (i * (j - (x * (z / i)))))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.1e-57) or not (b <= 1.1e+49): tmp = ((a * (c * j)) - (y * (i * (j - (x * (z / i)))))) + (b * ((t * i) - (z * c))) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.1e-57) || !(b <= 1.1e+49)) tmp = Float64(Float64(Float64(a * Float64(c * j)) - Float64(y * Float64(i * Float64(j - Float64(x * Float64(z / i)))))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + 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 ((b <= -4.1e-57) || ~((b <= 1.1e+49))) tmp = ((a * (c * j)) - (y * (i * (j - (x * (z / i)))))) + (b * ((t * i) - (z * c))); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.1e-57], N[Not[LessEqual[b, 1.1e+49]], $MachinePrecision]], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * N[(j - N[(x * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.1 \cdot 10^{-57} \lor \neg \left(b \leq 1.1 \cdot 10^{+49}\right):\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) - y \cdot \left(i \cdot \left(j - x \cdot \frac{z}{i}\right)\right)\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -4.1000000000000001e-57 or 1.1e49 < b Initial program 68.7%
+-commutative68.7%
fma-define71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around 0 74.1%
Simplified75.6%
Taylor expanded in j around inf 74.9%
associate-/l*73.4%
Simplified73.4%
Taylor expanded in c around inf 74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in i around inf 74.4%
neg-mul-174.4%
+-commutative74.4%
unsub-neg74.4%
associate-/l*72.9%
Simplified72.9%
if -4.1000000000000001e-57 < b < 1.1e49Initial program 80.0%
+-commutative80.0%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around 0 81.9%
Final simplification77.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (* c j))))
(if (<= b -1.85e-56)
(+ (- t_2 (* y (* j (- i (* x (/ z j)))))) t_1)
(if (<= b 6e+47)
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(+ (- t_2 (* y (* i (- j (* x (/ z i)))))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * (c * j);
double tmp;
if (b <= -1.85e-56) {
tmp = (t_2 - (y * (j * (i - (x * (z / j)))))) + t_1;
} else if (b <= 6e+47) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (t_2 - (y * (i * (j - (x * (z / i)))))) + 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) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * (c * j)
if (b <= (-1.85d-56)) then
tmp = (t_2 - (y * (j * (i - (x * (z / j)))))) + t_1
else if (b <= 6d+47) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (t_2 - (y * (i * (j - (x * (z / i)))))) + 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 t_2 = a * (c * j);
double tmp;
if (b <= -1.85e-56) {
tmp = (t_2 - (y * (j * (i - (x * (z / j)))))) + t_1;
} else if (b <= 6e+47) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (t_2 - (y * (i * (j - (x * (z / i)))))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * (c * j) tmp = 0 if b <= -1.85e-56: tmp = (t_2 - (y * (j * (i - (x * (z / j)))))) + t_1 elif b <= 6e+47: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (t_2 - (y * (i * (j - (x * (z / i)))))) + 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))) t_2 = Float64(a * Float64(c * j)) tmp = 0.0 if (b <= -1.85e-56) tmp = Float64(Float64(t_2 - Float64(y * Float64(j * Float64(i - Float64(x * Float64(z / j)))))) + t_1); elseif (b <= 6e+47) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(t_2 - Float64(y * Float64(i * Float64(j - Float64(x * Float64(z / i)))))) + 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)); t_2 = a * (c * j); tmp = 0.0; if (b <= -1.85e-56) tmp = (t_2 - (y * (j * (i - (x * (z / j)))))) + t_1; elseif (b <= 6e+47) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (t_2 - (y * (i * (j - (x * (z / i)))))) + 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]}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.85e-56], N[(N[(t$95$2 - N[(y * N[(j * N[(i - N[(x * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 6e+47], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$2 - N[(y * N[(i * N[(j - N[(x * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;b \leq -1.85 \cdot 10^{-56}:\\
\;\;\;\;\left(t\_2 - y \cdot \left(j \cdot \left(i - x \cdot \frac{z}{j}\right)\right)\right) + t\_1\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+47}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t\_2 - y \cdot \left(i \cdot \left(j - x \cdot \frac{z}{i}\right)\right)\right) + t\_1\\
\end{array}
\end{array}
if b < -1.8500000000000001e-56Initial program 71.6%
+-commutative71.6%
fma-define75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in y around 0 71.5%
Simplified74.3%
Taylor expanded in j around inf 73.0%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in c around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -1.8500000000000001e-56 < b < 6.0000000000000003e47Initial program 80.0%
+-commutative80.0%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around 0 81.9%
if 6.0000000000000003e47 < b Initial program 65.1%
+-commutative65.1%
fma-define65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in y around 0 77.2%
Simplified77.2%
Taylor expanded in j around inf 77.2%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in c around inf 75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in i around inf 79.0%
neg-mul-179.0%
+-commutative79.0%
unsub-neg79.0%
associate-/l*79.0%
Simplified79.0%
Final simplification78.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -5.8e+146)
t_2
(if (<= b -1.35e-110)
(+ t_1 (* z (- (* x y) (* b c))))
(if (<= b 7.8e+148) (+ t_1 (* x (- (* y z) (* t a)))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e+146) {
tmp = t_2;
} else if (b <= -1.35e-110) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else if (b <= 7.8e+148) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} 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 * ((a * c) - (y * i))
t_2 = b * ((t * i) - (z * c))
if (b <= (-5.8d+146)) then
tmp = t_2
else if (b <= (-1.35d-110)) then
tmp = t_1 + (z * ((x * y) - (b * c)))
else if (b <= 7.8d+148) then
tmp = t_1 + (x * ((y * z) - (t * a)))
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 * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e+146) {
tmp = t_2;
} else if (b <= -1.35e-110) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else if (b <= 7.8e+148) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.8e+146: tmp = t_2 elif b <= -1.35e-110: tmp = t_1 + (z * ((x * y) - (b * c))) elif b <= 7.8e+148: tmp = t_1 + (x * ((y * z) - (t * a))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.8e+146) tmp = t_2; elseif (b <= -1.35e-110) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (b <= 7.8e+148) tmp = Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.8e+146) tmp = t_2; elseif (b <= -1.35e-110) tmp = t_1 + (z * ((x * y) - (b * c))); elseif (b <= 7.8e+148) tmp = t_1 + (x * ((y * z) - (t * a))); 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[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+146], t$95$2, If[LessEqual[b, -1.35e-110], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.8e+148], N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+146}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.35 \cdot 10^{-110}:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{+148}:\\
\;\;\;\;t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.7999999999999997e146 or 7.80000000000000004e148 < b Initial program 64.3%
+-commutative64.3%
fma-define67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around 0 71.6%
Simplified71.6%
Taylor expanded in b around inf 67.9%
*-commutative67.9%
Simplified67.9%
if -5.7999999999999997e146 < b < -1.3499999999999999e-110Initial program 77.6%
Taylor expanded in z around inf 66.0%
*-commutative66.0%
Simplified66.0%
if -1.3499999999999999e-110 < b < 7.80000000000000004e148Initial program 78.0%
+-commutative78.0%
fma-define78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in b around 0 79.1%
Final simplification74.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -4.6e+88)
t_1
(if (<= t -2.2e-280)
(- (* j (- (* a c) (* y i))) (* b (* z c)))
(if (<= t 5.1e-71)
(- (* c (- (* a j) (* z b))) (* i (* y j)))
(if (<= t 3.4e+156) (* x (- (* y z) (* t a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4.6e+88) {
tmp = t_1;
} else if (t <= -2.2e-280) {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
} else if (t <= 5.1e-71) {
tmp = (c * ((a * j) - (z * b))) - (i * (y * j));
} else if (t <= 3.4e+156) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-4.6d+88)) then
tmp = t_1
else if (t <= (-2.2d-280)) then
tmp = (j * ((a * c) - (y * i))) - (b * (z * c))
else if (t <= 5.1d-71) then
tmp = (c * ((a * j) - (z * b))) - (i * (y * j))
else if (t <= 3.4d+156) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4.6e+88) {
tmp = t_1;
} else if (t <= -2.2e-280) {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
} else if (t <= 5.1e-71) {
tmp = (c * ((a * j) - (z * b))) - (i * (y * j));
} else if (t <= 3.4e+156) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -4.6e+88: tmp = t_1 elif t <= -2.2e-280: tmp = (j * ((a * c) - (y * i))) - (b * (z * c)) elif t <= 5.1e-71: tmp = (c * ((a * j) - (z * b))) - (i * (y * j)) elif t <= 3.4e+156: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -4.6e+88) tmp = t_1; elseif (t <= -2.2e-280) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (t <= 5.1e-71) tmp = Float64(Float64(c * Float64(Float64(a * j) - Float64(z * b))) - Float64(i * Float64(y * j))); elseif (t <= 3.4e+156) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -4.6e+88) tmp = t_1; elseif (t <= -2.2e-280) tmp = (j * ((a * c) - (y * i))) - (b * (z * c)); elseif (t <= 5.1e-71) tmp = (c * ((a * j) - (z * b))) - (i * (y * j)); elseif (t <= 3.4e+156) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.6e+88], t$95$1, If[LessEqual[t, -2.2e-280], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e-71], N[(N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+156], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -4.6 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-280}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-71}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+156}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.6000000000000003e88 or 3.4000000000000001e156 < t Initial program 62.7%
+-commutative62.7%
fma-define65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in y around 0 66.6%
Simplified67.8%
Taylor expanded in t around inf 71.2%
+-commutative71.2%
mul-1-neg71.2%
unsub-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
if -4.6000000000000003e88 < t < -2.2000000000000001e-280Initial program 81.5%
+-commutative81.5%
fma-define81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in x around 0 62.8%
Taylor expanded in c around inf 58.0%
*-commutative58.0%
Simplified58.0%
if -2.2000000000000001e-280 < t < 5.1000000000000003e-71Initial program 83.2%
+-commutative83.2%
fma-define85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in x around 0 74.1%
Taylor expanded in c around inf 70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in a around 0 66.8%
associate--l+66.8%
*-commutative66.8%
associate-*r*72.1%
cancel-sign-sub-inv72.1%
*-commutative72.1%
associate-*r*81.4%
mul-1-neg81.4%
distribute-rgt-in83.2%
mul-1-neg83.2%
sub-neg83.2%
+-commutative83.2%
sub-neg83.2%
mul-1-neg83.2%
+-commutative83.2%
mul-1-neg83.2%
Simplified83.2%
if 5.1000000000000003e-71 < t < 3.4000000000000001e156Initial program 72.9%
+-commutative72.9%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y around 0 60.3%
Simplified62.8%
Taylor expanded in j around inf 62.8%
associate-/l*62.8%
Simplified62.8%
Taylor expanded in x around inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -2e+86)
t_1
(if (<= t -2.65e-278)
(* y (- (* x z) (* i j)))
(if (<= t 1.08e-71)
(* c (- (* a j) (* z b)))
(if (<= t 3.5e+155) (* x (- (* y z) (* t a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -2e+86) {
tmp = t_1;
} else if (t <= -2.65e-278) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 1.08e-71) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 3.5e+155) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-2d+86)) then
tmp = t_1
else if (t <= (-2.65d-278)) then
tmp = y * ((x * z) - (i * j))
else if (t <= 1.08d-71) then
tmp = c * ((a * j) - (z * b))
else if (t <= 3.5d+155) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -2e+86) {
tmp = t_1;
} else if (t <= -2.65e-278) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 1.08e-71) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 3.5e+155) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -2e+86: tmp = t_1 elif t <= -2.65e-278: tmp = y * ((x * z) - (i * j)) elif t <= 1.08e-71: tmp = c * ((a * j) - (z * b)) elif t <= 3.5e+155: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -2e+86) tmp = t_1; elseif (t <= -2.65e-278) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 1.08e-71) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 3.5e+155) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -2e+86) tmp = t_1; elseif (t <= -2.65e-278) tmp = y * ((x * z) - (i * j)); elseif (t <= 1.08e-71) tmp = c * ((a * j) - (z * b)); elseif (t <= 3.5e+155) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e+86], t$95$1, If[LessEqual[t, -2.65e-278], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.08e-71], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+155], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.65 \cdot 10^{-278}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{-71}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+155}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2e86 or 3.49999999999999985e155 < t Initial program 63.6%
+-commutative63.6%
fma-define65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in y around 0 67.3%
Simplified68.5%
Taylor expanded in t around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
if -2e86 < t < -2.65e-278Initial program 80.8%
+-commutative80.8%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in y around inf 52.2%
+-commutative52.2%
mul-1-neg52.2%
unsub-neg52.2%
*-commutative52.2%
Simplified52.2%
if -2.65e-278 < t < 1.08e-71Initial program 83.5%
+-commutative83.5%
fma-define85.4%
*-commutative85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in c around inf 69.7%
if 1.08e-71 < t < 3.49999999999999985e155Initial program 72.9%
+-commutative72.9%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y around 0 60.3%
Simplified62.8%
Taylor expanded in j around inf 62.8%
associate-/l*62.8%
Simplified62.8%
Taylor expanded in x around inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -1.2e+200)
t_1
(if (<= c -5.5e-24)
(* a (- (* c j) (* x t)))
(if (<= c 1.6e-288)
(* i (- (* t b) (* y j)))
(if (<= c 100000.0) (* x (- (* y z) (* t a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.2e+200) {
tmp = t_1;
} else if (c <= -5.5e-24) {
tmp = a * ((c * j) - (x * t));
} else if (c <= 1.6e-288) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 100000.0) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (c <= (-1.2d+200)) then
tmp = t_1
else if (c <= (-5.5d-24)) then
tmp = a * ((c * j) - (x * t))
else if (c <= 1.6d-288) then
tmp = i * ((t * b) - (y * j))
else if (c <= 100000.0d0) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.2e+200) {
tmp = t_1;
} else if (c <= -5.5e-24) {
tmp = a * ((c * j) - (x * t));
} else if (c <= 1.6e-288) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 100000.0) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.2e+200: tmp = t_1 elif c <= -5.5e-24: tmp = a * ((c * j) - (x * t)) elif c <= 1.6e-288: tmp = i * ((t * b) - (y * j)) elif c <= 100000.0: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.2e+200) tmp = t_1; elseif (c <= -5.5e-24) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (c <= 1.6e-288) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 100000.0) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.2e+200) tmp = t_1; elseif (c <= -5.5e-24) tmp = a * ((c * j) - (x * t)); elseif (c <= 1.6e-288) tmp = i * ((t * b) - (y * j)); elseif (c <= 100000.0) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.2e+200], t$95$1, If[LessEqual[c, -5.5e-24], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.6e-288], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 100000.0], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.2 \cdot 10^{+200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{-24}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{-288}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 100000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.2e200 or 1e5 < c Initial program 70.1%
+-commutative70.1%
fma-define71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in c around inf 70.6%
if -1.2e200 < c < -5.4999999999999999e-24Initial program 71.0%
+-commutative71.0%
fma-define71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in a around inf 56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
Simplified56.3%
if -5.4999999999999999e-24 < c < 1.6e-288Initial program 73.8%
+-commutative73.8%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in y around 0 74.0%
Simplified74.0%
Taylor expanded in i around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
*-commutative53.0%
*-commutative53.0%
Simplified53.0%
if 1.6e-288 < c < 1e5Initial program 82.1%
+-commutative82.1%
fma-define85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in y around 0 83.8%
Simplified85.3%
Taylor expanded in j around inf 82.4%
associate-/l*79.4%
Simplified79.4%
Taylor expanded in x around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
Simplified62.4%
Final simplification62.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -2.8e-103)
t_2
(if (<= i 2.85e-294)
t_1
(if (<= i 2.6e-179)
(* c (- (* a j) (* z b)))
(if (<= i 8.6e-26) 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 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.8e-103) {
tmp = t_2;
} else if (i <= 2.85e-294) {
tmp = t_1;
} else if (i <= 2.6e-179) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 8.6e-26) {
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 = a * ((c * j) - (x * t))
t_2 = i * ((t * b) - (y * j))
if (i <= (-2.8d-103)) then
tmp = t_2
else if (i <= 2.85d-294) then
tmp = t_1
else if (i <= 2.6d-179) then
tmp = c * ((a * j) - (z * b))
else if (i <= 8.6d-26) 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 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.8e-103) {
tmp = t_2;
} else if (i <= 2.85e-294) {
tmp = t_1;
} else if (i <= 2.6e-179) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 8.6e-26) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.8e-103: tmp = t_2 elif i <= 2.85e-294: tmp = t_1 elif i <= 2.6e-179: tmp = c * ((a * j) - (z * b)) elif i <= 8.6e-26: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.8e-103) tmp = t_2; elseif (i <= 2.85e-294) tmp = t_1; elseif (i <= 2.6e-179) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 8.6e-26) 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 = a * ((c * j) - (x * t)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.8e-103) tmp = t_2; elseif (i <= 2.85e-294) tmp = t_1; elseif (i <= 2.6e-179) tmp = c * ((a * j) - (z * b)); elseif (i <= 8.6e-26) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.8e-103], t$95$2, If[LessEqual[i, 2.85e-294], t$95$1, If[LessEqual[i, 2.6e-179], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.6e-26], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.8 \cdot 10^{-103}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.85 \cdot 10^{-294}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 8.6 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.80000000000000023e-103 or 8.59999999999999976e-26 < i Initial program 67.9%
+-commutative67.9%
fma-define69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in y around 0 69.9%
Simplified70.6%
Taylor expanded in i around inf 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
*-commutative55.8%
Simplified55.8%
if -2.80000000000000023e-103 < i < 2.85000000000000016e-294 or 2.60000000000000005e-179 < i < 8.59999999999999976e-26Initial program 81.1%
+-commutative81.1%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in a around inf 62.1%
+-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
Simplified62.1%
if 2.85000000000000016e-294 < i < 2.60000000000000005e-179Initial program 88.5%
+-commutative88.5%
fma-define88.6%
*-commutative88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in c around inf 59.8%
Final simplification58.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (or (<= x -2.7e-78) (not (<= x 4.5e-94)))
(+ t_1 (* x (- (* y z) (* t a))))
(+ t_1 (* b (- (* t i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if ((x <= -2.7e-78) || !(x <= 4.5e-94)) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if ((x <= (-2.7d-78)) .or. (.not. (x <= 4.5d-94))) then
tmp = t_1 + (x * ((y * z) - (t * a)))
else
tmp = t_1 + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if ((x <= -2.7e-78) || !(x <= 4.5e-94)) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if (x <= -2.7e-78) or not (x <= 4.5e-94): tmp = t_1 + (x * ((y * z) - (t * a))) else: tmp = t_1 + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if ((x <= -2.7e-78) || !(x <= 4.5e-94)) tmp = Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if ((x <= -2.7e-78) || ~((x <= 4.5e-94))) tmp = t_1 + (x * ((y * z) - (t * a))); else tmp = t_1 + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -2.7e-78], N[Not[LessEqual[x, 4.5e-94]], $MachinePrecision]], N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -2.7 \cdot 10^{-78} \lor \neg \left(x \leq 4.5 \cdot 10^{-94}\right):\\
\;\;\;\;t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -2.69999999999999994e-78 or 4.5000000000000002e-94 < x Initial program 76.9%
+-commutative76.9%
fma-define79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in b around 0 74.9%
if -2.69999999999999994e-78 < x < 4.5000000000000002e-94Initial program 70.1%
+-commutative70.1%
fma-define70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in x around 0 73.6%
Final simplification74.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.8e+120) (not (<= b 8.2e+148))) (* b (- (* t i) (* z c))) (+ (* j (- (* a c) (* y 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 ((b <= -4.8e+120) || !(b <= 8.2e+148)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * c) - (y * i))) + (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 ((b <= (-4.8d+120)) .or. (.not. (b <= 8.2d+148))) then
tmp = b * ((t * i) - (z * c))
else
tmp = (j * ((a * c) - (y * i))) + (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 ((b <= -4.8e+120) || !(b <= 8.2e+148)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.8e+120) or not (b <= 8.2e+148): tmp = b * ((t * i) - (z * c)) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.8e+120) || !(b <= 8.2e+148)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + 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 ((b <= -4.8e+120) || ~((b <= 8.2e+148))) tmp = b * ((t * i) - (z * c)); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.8e+120], N[Not[LessEqual[b, 8.2e+148]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+120} \lor \neg \left(b \leq 8.2 \cdot 10^{+148}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -4.80000000000000002e120 or 8.1999999999999996e148 < b Initial program 65.0%
+-commutative65.0%
fma-define69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y around 0 71.7%
Simplified73.1%
Taylor expanded in b around inf 67.0%
*-commutative67.0%
Simplified67.0%
if -4.80000000000000002e120 < b < 8.1999999999999996e148Initial program 78.2%
+-commutative78.2%
fma-define78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in b around 0 74.4%
Final simplification72.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- x)))))
(if (<= c -3.1e+200)
(* c (* z (- b)))
(if (<= c -1.15e-32)
t_1
(if (<= c 2.15e-284)
(* i (* t b))
(if (<= c 4.7e-11) t_1 (* c (* a j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double tmp;
if (c <= -3.1e+200) {
tmp = c * (z * -b);
} else if (c <= -1.15e-32) {
tmp = t_1;
} else if (c <= 2.15e-284) {
tmp = i * (t * b);
} else if (c <= 4.7e-11) {
tmp = t_1;
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (t * -x)
if (c <= (-3.1d+200)) then
tmp = c * (z * -b)
else if (c <= (-1.15d-32)) then
tmp = t_1
else if (c <= 2.15d-284) then
tmp = i * (t * b)
else if (c <= 4.7d-11) then
tmp = t_1
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double tmp;
if (c <= -3.1e+200) {
tmp = c * (z * -b);
} else if (c <= -1.15e-32) {
tmp = t_1;
} else if (c <= 2.15e-284) {
tmp = i * (t * b);
} else if (c <= 4.7e-11) {
tmp = t_1;
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * -x) tmp = 0 if c <= -3.1e+200: tmp = c * (z * -b) elif c <= -1.15e-32: tmp = t_1 elif c <= 2.15e-284: tmp = i * (t * b) elif c <= 4.7e-11: tmp = t_1 else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(t * Float64(-x))) tmp = 0.0 if (c <= -3.1e+200) tmp = Float64(c * Float64(z * Float64(-b))); elseif (c <= -1.15e-32) tmp = t_1; elseif (c <= 2.15e-284) tmp = Float64(i * Float64(t * b)); elseif (c <= 4.7e-11) tmp = t_1; else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (t * -x); tmp = 0.0; if (c <= -3.1e+200) tmp = c * (z * -b); elseif (c <= -1.15e-32) tmp = t_1; elseif (c <= 2.15e-284) tmp = i * (t * b); elseif (c <= 4.7e-11) tmp = t_1; else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.1e+200], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.15e-32], t$95$1, If[LessEqual[c, 2.15e-284], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.7e-11], t$95$1, N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{if}\;c \leq -3.1 \cdot 10^{+200}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.15 \cdot 10^{-284}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;c \leq 4.7 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if c < -3.09999999999999994e200Initial program 72.8%
+-commutative72.8%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in y around 0 61.1%
Simplified65.1%
Taylor expanded in z around inf 58.3%
+-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
*-commutative58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in y around 0 51.0%
mul-1-neg51.0%
*-commutative51.0%
associate-*r*54.5%
*-commutative54.5%
distribute-lft-neg-in54.5%
*-commutative54.5%
Simplified54.5%
if -3.09999999999999994e200 < c < -1.15e-32 or 2.1500000000000001e-284 < c < 4.69999999999999993e-11Initial program 80.3%
+-commutative80.3%
fma-define81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in a around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
Simplified47.9%
Taylor expanded in c around 0 40.7%
associate-*r*40.7%
mul-1-neg40.7%
*-commutative40.7%
Simplified40.7%
if -1.15e-32 < c < 2.1500000000000001e-284Initial program 73.0%
+-commutative73.0%
fma-define74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in y around 0 71.7%
Simplified71.7%
Taylor expanded in t around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
*-commutative44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in i around inf 33.4%
associate-*r*31.2%
*-commutative31.2%
associate-*r*34.8%
Simplified34.8%
if 4.69999999999999993e-11 < c Initial program 67.9%
+-commutative67.9%
fma-define70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in a around inf 46.0%
+-commutative46.0%
mul-1-neg46.0%
unsub-neg46.0%
Simplified46.0%
Taylor expanded in c around inf 44.6%
+-commutative44.6%
mul-1-neg44.6%
unsub-neg44.6%
*-commutative44.6%
associate-/l*44.6%
associate-/l*43.2%
Simplified43.2%
Taylor expanded in c around inf 39.1%
*-commutative39.1%
associate-*l*39.1%
*-commutative39.1%
Simplified39.1%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= y -68000000000000.0)
t_1
(if (<= y 4.4e-287)
(* c (* a j))
(if (<= y 2.3e-249)
(- (* z (* b c)))
(if (<= y 8000000000.0) (* a (* t (- x))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -68000000000000.0) {
tmp = t_1;
} else if (y <= 4.4e-287) {
tmp = c * (a * j);
} else if (y <= 2.3e-249) {
tmp = -(z * (b * c));
} else if (y <= 8000000000.0) {
tmp = a * (t * -x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (y <= (-68000000000000.0d0)) then
tmp = t_1
else if (y <= 4.4d-287) then
tmp = c * (a * j)
else if (y <= 2.3d-249) then
tmp = -(z * (b * c))
else if (y <= 8000000000.0d0) then
tmp = a * (t * -x)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -68000000000000.0) {
tmp = t_1;
} else if (y <= 4.4e-287) {
tmp = c * (a * j);
} else if (y <= 2.3e-249) {
tmp = -(z * (b * c));
} else if (y <= 8000000000.0) {
tmp = a * (t * -x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if y <= -68000000000000.0: tmp = t_1 elif y <= 4.4e-287: tmp = c * (a * j) elif y <= 2.3e-249: tmp = -(z * (b * c)) elif y <= 8000000000.0: tmp = a * (t * -x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (y <= -68000000000000.0) tmp = t_1; elseif (y <= 4.4e-287) tmp = Float64(c * Float64(a * j)); elseif (y <= 2.3e-249) tmp = Float64(-Float64(z * Float64(b * c))); elseif (y <= 8000000000.0) tmp = Float64(a * Float64(t * Float64(-x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (y <= -68000000000000.0) tmp = t_1; elseif (y <= 4.4e-287) tmp = c * (a * j); elseif (y <= 2.3e-249) tmp = -(z * (b * c)); elseif (y <= 8000000000.0) tmp = a * (t * -x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -68000000000000.0], t$95$1, If[LessEqual[y, 4.4e-287], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-249], (-N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y, 8000000000.0], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -68000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-287}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-249}:\\
\;\;\;\;-z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;y \leq 8000000000:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.8e13 or 8e9 < y Initial program 66.9%
+-commutative66.9%
fma-define69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y around 0 73.5%
Simplified75.0%
Taylor expanded in i around inf 47.5%
+-commutative47.5%
mul-1-neg47.5%
unsub-neg47.5%
*-commutative47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in t around 0 37.1%
mul-1-neg37.1%
distribute-rgt-neg-in37.1%
Simplified37.1%
if -6.8e13 < y < 4.4e-287Initial program 83.6%
+-commutative83.6%
fma-define83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in a around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
Simplified49.6%
Taylor expanded in c around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
*-commutative48.0%
associate-/l*49.5%
associate-/l*49.5%
Simplified49.5%
Taylor expanded in c around inf 33.9%
*-commutative33.9%
associate-*l*38.2%
*-commutative38.2%
Simplified38.2%
if 4.4e-287 < y < 2.2999999999999998e-249Initial program 89.2%
+-commutative89.2%
fma-define89.2%
*-commutative89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in y around 0 89.4%
Simplified89.4%
Taylor expanded in z around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in y around 0 70.8%
mul-1-neg70.8%
*-commutative70.8%
distribute-rgt-neg-in70.8%
Simplified70.8%
if 2.2999999999999998e-249 < y < 8e9Initial program 79.4%
+-commutative79.4%
fma-define81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in a around inf 53.2%
+-commutative53.2%
mul-1-neg53.2%
unsub-neg53.2%
Simplified53.2%
Taylor expanded in c around 0 45.0%
associate-*r*45.0%
mul-1-neg45.0%
*-commutative45.0%
Simplified45.0%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= y -1.1e+18)
t_1
(if (<= y 2.1e-288)
(* c (* a j))
(if (<= y 1.1e-255)
(- (* z (* b c)))
(if (<= y 13000000.0) (* t (* a (- x))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -1.1e+18) {
tmp = t_1;
} else if (y <= 2.1e-288) {
tmp = c * (a * j);
} else if (y <= 1.1e-255) {
tmp = -(z * (b * c));
} else if (y <= 13000000.0) {
tmp = t * (a * -x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (y <= (-1.1d+18)) then
tmp = t_1
else if (y <= 2.1d-288) then
tmp = c * (a * j)
else if (y <= 1.1d-255) then
tmp = -(z * (b * c))
else if (y <= 13000000.0d0) then
tmp = t * (a * -x)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -1.1e+18) {
tmp = t_1;
} else if (y <= 2.1e-288) {
tmp = c * (a * j);
} else if (y <= 1.1e-255) {
tmp = -(z * (b * c));
} else if (y <= 13000000.0) {
tmp = t * (a * -x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if y <= -1.1e+18: tmp = t_1 elif y <= 2.1e-288: tmp = c * (a * j) elif y <= 1.1e-255: tmp = -(z * (b * c)) elif y <= 13000000.0: tmp = t * (a * -x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (y <= -1.1e+18) tmp = t_1; elseif (y <= 2.1e-288) tmp = Float64(c * Float64(a * j)); elseif (y <= 1.1e-255) tmp = Float64(-Float64(z * Float64(b * c))); elseif (y <= 13000000.0) tmp = Float64(t * Float64(a * Float64(-x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (y <= -1.1e+18) tmp = t_1; elseif (y <= 2.1e-288) tmp = c * (a * j); elseif (y <= 1.1e-255) tmp = -(z * (b * c)); elseif (y <= 13000000.0) tmp = t * (a * -x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+18], t$95$1, If[LessEqual[y, 2.1e-288], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-255], (-N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y, 13000000.0], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-288}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-255}:\\
\;\;\;\;-z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;y \leq 13000000:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.1e18 or 1.3e7 < y Initial program 66.9%
+-commutative66.9%
fma-define69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y around 0 73.5%
Simplified75.0%
Taylor expanded in i around inf 47.5%
+-commutative47.5%
mul-1-neg47.5%
unsub-neg47.5%
*-commutative47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in t around 0 37.1%
mul-1-neg37.1%
distribute-rgt-neg-in37.1%
Simplified37.1%
if -1.1e18 < y < 2.09999999999999996e-288Initial program 83.6%
+-commutative83.6%
fma-define83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in a around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
Simplified49.6%
Taylor expanded in c around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
*-commutative48.0%
associate-/l*49.5%
associate-/l*49.5%
Simplified49.5%
Taylor expanded in c around inf 33.9%
*-commutative33.9%
associate-*l*38.2%
*-commutative38.2%
Simplified38.2%
if 2.09999999999999996e-288 < y < 1.1e-255Initial program 89.2%
+-commutative89.2%
fma-define89.2%
*-commutative89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in y around 0 89.4%
Simplified89.4%
Taylor expanded in z around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in y around 0 70.8%
mul-1-neg70.8%
*-commutative70.8%
distribute-rgt-neg-in70.8%
Simplified70.8%
if 1.1e-255 < y < 1.3e7Initial program 79.4%
+-commutative79.4%
fma-define81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in y around 0 69.4%
Simplified69.4%
Taylor expanded in t around inf 57.2%
+-commutative57.2%
mul-1-neg57.2%
unsub-neg57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in i around 0 45.0%
mul-1-neg45.0%
distribute-lft-neg-out45.0%
*-commutative45.0%
associate-*r*44.9%
Simplified44.9%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -7.2e+86)
t_1
(if (<= t 2.2e-69)
(- (* c (- (* a j) (* z b))) (* i (* y j)))
(if (<= t 3.6e+155) (* x (- (* y z) (* t a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -7.2e+86) {
tmp = t_1;
} else if (t <= 2.2e-69) {
tmp = (c * ((a * j) - (z * b))) - (i * (y * j));
} else if (t <= 3.6e+155) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-7.2d+86)) then
tmp = t_1
else if (t <= 2.2d-69) then
tmp = (c * ((a * j) - (z * b))) - (i * (y * j))
else if (t <= 3.6d+155) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -7.2e+86) {
tmp = t_1;
} else if (t <= 2.2e-69) {
tmp = (c * ((a * j) - (z * b))) - (i * (y * j));
} else if (t <= 3.6e+155) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -7.2e+86: tmp = t_1 elif t <= 2.2e-69: tmp = (c * ((a * j) - (z * b))) - (i * (y * j)) elif t <= 3.6e+155: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -7.2e+86) tmp = t_1; elseif (t <= 2.2e-69) tmp = Float64(Float64(c * Float64(Float64(a * j) - Float64(z * b))) - Float64(i * Float64(y * j))); elseif (t <= 3.6e+155) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -7.2e+86) tmp = t_1; elseif (t <= 2.2e-69) tmp = (c * ((a * j) - (z * b))) - (i * (y * j)); elseif (t <= 3.6e+155) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+86], t$95$1, If[LessEqual[t, 2.2e-69], N[(N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+155], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-69}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+155}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.20000000000000011e86 or 3.60000000000000007e155 < t Initial program 63.2%
+-commutative63.2%
fma-define65.6%
*-commutative65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in y around 0 66.9%
Simplified68.1%
Taylor expanded in t around inf 71.5%
+-commutative71.5%
mul-1-neg71.5%
unsub-neg71.5%
*-commutative71.5%
*-commutative71.5%
Simplified71.5%
if -7.20000000000000011e86 < t < 2.2e-69Initial program 82.0%
+-commutative82.0%
fma-define82.8%
*-commutative82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in x around 0 67.0%
Taylor expanded in c around inf 62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in a around 0 57.5%
associate--l+57.5%
*-commutative57.5%
associate-*r*57.4%
cancel-sign-sub-inv57.4%
*-commutative57.4%
associate-*r*61.1%
mul-1-neg61.1%
distribute-rgt-in62.6%
mul-1-neg62.6%
sub-neg62.6%
+-commutative62.6%
sub-neg62.6%
mul-1-neg62.6%
+-commutative62.6%
mul-1-neg62.6%
Simplified62.6%
if 2.2e-69 < t < 3.60000000000000007e155Initial program 72.9%
+-commutative72.9%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y around 0 60.3%
Simplified62.8%
Taylor expanded in j around inf 62.8%
associate-/l*62.8%
Simplified62.8%
Taylor expanded in x around inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
Final simplification66.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1e+26)
(* z (- (* x y) (* b c)))
(if (<= z 3.2e+114)
(+ (* j (- (* a c) (* y i))) (* b (* t 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 (z <= -1e+26) {
tmp = z * ((x * y) - (b * c));
} else if (z <= 3.2e+114) {
tmp = (j * ((a * c) - (y * i))) + (b * (t * 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 (z <= (-1d+26)) then
tmp = z * ((x * y) - (b * c))
else if (z <= 3.2d+114) then
tmp = (j * ((a * c) - (y * i))) + (b * (t * 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 (z <= -1e+26) {
tmp = z * ((x * y) - (b * c));
} else if (z <= 3.2e+114) {
tmp = (j * ((a * c) - (y * i))) + (b * (t * i));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1e+26: tmp = z * ((x * y) - (b * c)) elif z <= 3.2e+114: tmp = (j * ((a * c) - (y * i))) + (b * (t * 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 (z <= -1e+26) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= 3.2e+114) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(b * Float64(t * 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 (z <= -1e+26) tmp = z * ((x * y) - (b * c)); elseif (z <= 3.2e+114) tmp = (j * ((a * c) - (y * i))) + (b * (t * 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[z, -1e+26], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+114], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * 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}\;z \leq -1 \cdot 10^{+26}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+114}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if z < -1.00000000000000005e26Initial program 67.1%
+-commutative67.1%
fma-define68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in y around 0 70.9%
Simplified70.9%
Taylor expanded in z around inf 69.4%
+-commutative69.4%
mul-1-neg69.4%
unsub-neg69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
if -1.00000000000000005e26 < z < 3.2e114Initial program 82.5%
Taylor expanded in i around inf 61.6%
*-commutative61.6%
Simplified61.6%
if 3.2e114 < z Initial program 53.5%
+-commutative53.5%
fma-define55.8%
*-commutative55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in y around 0 58.4%
Simplified58.4%
Taylor expanded in j around inf 51.7%
associate-/l*49.5%
Simplified49.5%
Taylor expanded in x around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
Simplified60.8%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -46.0)
t_1
(if (<= t -2.45e-203)
(* j (- (* a c) (* y i)))
(if (<= t 960.0) (* 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 = t * ((b * i) - (x * a));
double tmp;
if (t <= -46.0) {
tmp = t_1;
} else if (t <= -2.45e-203) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 960.0) {
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 = t * ((b * i) - (x * a))
if (t <= (-46.0d0)) then
tmp = t_1
else if (t <= (-2.45d-203)) then
tmp = j * ((a * c) - (y * i))
else if (t <= 960.0d0) 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 = t * ((b * i) - (x * a));
double tmp;
if (t <= -46.0) {
tmp = t_1;
} else if (t <= -2.45e-203) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 960.0) {
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 = t * ((b * i) - (x * a)) tmp = 0 if t <= -46.0: tmp = t_1 elif t <= -2.45e-203: tmp = j * ((a * c) - (y * i)) elif t <= 960.0: 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(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -46.0) tmp = t_1; elseif (t <= -2.45e-203) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (t <= 960.0) 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 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -46.0) tmp = t_1; elseif (t <= -2.45e-203) tmp = j * ((a * c) - (y * i)); elseif (t <= 960.0) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -46.0], t$95$1, If[LessEqual[t, -2.45e-203], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 960.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -46:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{-203}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 960:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -46 or 960 < t Initial program 70.4%
+-commutative70.4%
fma-define72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in y around 0 66.6%
Simplified68.2%
Taylor expanded in t around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
if -46 < t < -2.45e-203Initial program 73.3%
+-commutative73.3%
fma-define73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in y around 0 75.8%
Simplified78.0%
Taylor expanded in j around inf 48.9%
mul-1-neg48.9%
distribute-lft-neg-out48.9%
+-commutative48.9%
cancel-sign-sub-inv48.9%
*-commutative48.9%
Simplified48.9%
if -2.45e-203 < t < 960Initial program 81.6%
+-commutative81.6%
fma-define82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in c around inf 58.6%
Final simplification58.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= y -62000000000000.0)
t_1
(if (<= y 1.8e-282)
(* c (* a j))
(if (<= y 3900.0) (* t (* a (- x))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -62000000000000.0) {
tmp = t_1;
} else if (y <= 1.8e-282) {
tmp = c * (a * j);
} else if (y <= 3900.0) {
tmp = t * (a * -x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (y <= (-62000000000000.0d0)) then
tmp = t_1
else if (y <= 1.8d-282) then
tmp = c * (a * j)
else if (y <= 3900.0d0) then
tmp = t * (a * -x)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -62000000000000.0) {
tmp = t_1;
} else if (y <= 1.8e-282) {
tmp = c * (a * j);
} else if (y <= 3900.0) {
tmp = t * (a * -x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if y <= -62000000000000.0: tmp = t_1 elif y <= 1.8e-282: tmp = c * (a * j) elif y <= 3900.0: tmp = t * (a * -x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (y <= -62000000000000.0) tmp = t_1; elseif (y <= 1.8e-282) tmp = Float64(c * Float64(a * j)); elseif (y <= 3900.0) tmp = Float64(t * Float64(a * Float64(-x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (y <= -62000000000000.0) tmp = t_1; elseif (y <= 1.8e-282) tmp = c * (a * j); elseif (y <= 3900.0) tmp = t * (a * -x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -62000000000000.0], t$95$1, If[LessEqual[y, 1.8e-282], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3900.0], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -62000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-282}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;y \leq 3900:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.2e13 or 3900 < y Initial program 66.9%
+-commutative66.9%
fma-define69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y around 0 73.5%
Simplified75.0%
Taylor expanded in i around inf 47.5%
+-commutative47.5%
mul-1-neg47.5%
unsub-neg47.5%
*-commutative47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in t around 0 37.1%
mul-1-neg37.1%
distribute-rgt-neg-in37.1%
Simplified37.1%
if -6.2e13 < y < 1.7999999999999999e-282Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in a around inf 48.2%
+-commutative48.2%
mul-1-neg48.2%
unsub-neg48.2%
Simplified48.2%
Taylor expanded in c around inf 46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
*-commutative46.7%
associate-/l*48.2%
associate-/l*48.2%
Simplified48.2%
Taylor expanded in c around inf 33.0%
*-commutative33.0%
associate-*l*37.1%
*-commutative37.1%
Simplified37.1%
if 1.7999999999999999e-282 < y < 3900Initial program 80.3%
+-commutative80.3%
fma-define82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in y around 0 71.5%
Simplified71.5%
Taylor expanded in t around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in i around 0 43.1%
mul-1-neg43.1%
distribute-lft-neg-out43.1%
*-commutative43.1%
associate-*r*43.1%
Simplified43.1%
Final simplification38.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.15e+122) (not (<= b 5.3e+59))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.15e+122) || !(b <= 5.3e+59)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.15d+122)) .or. (.not. (b <= 5.3d+59))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.15e+122) || !(b <= 5.3e+59)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.15e+122) or not (b <= 5.3e+59): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.15e+122) || !(b <= 5.3e+59)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.15e+122) || ~((b <= 5.3e+59))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.15e+122], N[Not[LessEqual[b, 5.3e+59]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+122} \lor \neg \left(b \leq 5.3 \cdot 10^{+59}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -1.15e122 or 5.2999999999999997e59 < b Initial program 66.2%
+-commutative66.2%
fma-define68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in y around 0 74.6%
Simplified74.6%
Taylor expanded in b around inf 60.6%
*-commutative60.6%
Simplified60.6%
if -1.15e122 < b < 5.2999999999999997e59Initial program 79.2%
+-commutative79.2%
fma-define80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in a around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
Simplified47.9%
Final simplification52.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -8e+247) (not (<= y 2.3e+15))) (* i (* y (- j))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -8e+247) || !(y <= 2.3e+15)) {
tmp = i * (y * -j);
} else {
tmp = a * ((c * j) - (x * t));
}
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 <= (-8d+247)) .or. (.not. (y <= 2.3d+15))) then
tmp = i * (y * -j)
else
tmp = a * ((c * j) - (x * t))
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 <= -8e+247) || !(y <= 2.3e+15)) {
tmp = i * (y * -j);
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -8e+247) or not (y <= 2.3e+15): tmp = i * (y * -j) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -8e+247) || !(y <= 2.3e+15)) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -8e+247) || ~((y <= 2.3e+15))) tmp = i * (y * -j); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -8e+247], N[Not[LessEqual[y, 2.3e+15]], $MachinePrecision]], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{+247} \lor \neg \left(y \leq 2.3 \cdot 10^{+15}\right):\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if y < -7.99999999999999962e247 or 2.3e15 < y Initial program 68.9%
+-commutative68.9%
fma-define70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in y around 0 77.0%
Simplified78.2%
Taylor expanded in i around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
*-commutative53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in t around 0 44.7%
mul-1-neg44.7%
distribute-rgt-neg-in44.7%
Simplified44.7%
if -7.99999999999999962e247 < y < 2.3e15Initial program 77.0%
+-commutative77.0%
fma-define78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in a around inf 47.4%
+-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
Final simplification46.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -9.5e+18) (not (<= y 1900.0))) (* i (* y (- j))) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -9.5e+18) || !(y <= 1900.0)) {
tmp = i * (y * -j);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-9.5d+18)) .or. (.not. (y <= 1900.0d0))) then
tmp = i * (y * -j)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -9.5e+18) || !(y <= 1900.0)) {
tmp = i * (y * -j);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -9.5e+18) or not (y <= 1900.0): tmp = i * (y * -j) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -9.5e+18) || !(y <= 1900.0)) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -9.5e+18) || ~((y <= 1900.0))) tmp = i * (y * -j); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -9.5e+18], N[Not[LessEqual[y, 1900.0]], $MachinePrecision]], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+18} \lor \neg \left(y \leq 1900\right):\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if y < -9.5e18 or 1900 < y Initial program 66.9%
+-commutative66.9%
fma-define69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y around 0 73.5%
Simplified75.0%
Taylor expanded in i around inf 47.5%
+-commutative47.5%
mul-1-neg47.5%
unsub-neg47.5%
*-commutative47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in t around 0 37.1%
mul-1-neg37.1%
distribute-rgt-neg-in37.1%
Simplified37.1%
if -9.5e18 < y < 1900Initial program 82.4%
+-commutative82.4%
fma-define83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in a around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
Simplified50.7%
Taylor expanded in c around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
*-commutative48.4%
associate-/l*49.2%
associate-/l*48.4%
Simplified48.4%
Taylor expanded in c around inf 26.5%
*-commutative26.5%
associate-*l*29.6%
*-commutative29.6%
Simplified29.6%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.4e+88) (not (<= b 9.2e+148))) (* t (* b i)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+88) || !(b <= 9.2e+148)) {
tmp = t * (b * i);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-4.4d+88)) .or. (.not. (b <= 9.2d+148))) then
tmp = t * (b * i)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+88) || !(b <= 9.2e+148)) {
tmp = t * (b * i);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.4e+88) or not (b <= 9.2e+148): tmp = t * (b * i) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.4e+88) || !(b <= 9.2e+148)) tmp = Float64(t * Float64(b * i)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -4.4e+88) || ~((b <= 9.2e+148))) tmp = t * (b * i); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.4e+88], N[Not[LessEqual[b, 9.2e+148]], $MachinePrecision]], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+88} \lor \neg \left(b \leq 9.2 \cdot 10^{+148}\right):\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if b < -4.40000000000000017e88 or 9.2000000000000002e148 < b Initial program 66.0%
+-commutative66.0%
fma-define69.6%
*-commutative69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in y around 0 70.8%
Simplified72.0%
Taylor expanded in i around inf 46.2%
+-commutative46.2%
mul-1-neg46.2%
unsub-neg46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 37.6%
associate-*r*40.4%
*-commutative40.4%
Simplified40.4%
if -4.40000000000000017e88 < b < 9.2000000000000002e148Initial program 78.4%
+-commutative78.4%
fma-define78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in a around inf 45.3%
+-commutative45.3%
mul-1-neg45.3%
unsub-neg45.3%
Simplified45.3%
Taylor expanded in c around inf 41.1%
+-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
*-commutative41.1%
associate-/l*41.6%
associate-/l*40.5%
Simplified40.5%
Taylor expanded in c around inf 24.1%
*-commutative24.1%
associate-*l*26.9%
*-commutative26.9%
Simplified26.9%
Final simplification31.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -7e+23) (not (<= c 2.5e-111))) (* c (* a j)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7e+23) || !(c <= 2.5e-111)) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-7d+23)) .or. (.not. (c <= 2.5d-111))) then
tmp = c * (a * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7e+23) || !(c <= 2.5e-111)) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -7e+23) or not (c <= 2.5e-111): tmp = c * (a * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -7e+23) || !(c <= 2.5e-111)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -7e+23) || ~((c <= 2.5e-111))) tmp = c * (a * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -7e+23], N[Not[LessEqual[c, 2.5e-111]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7 \cdot 10^{+23} \lor \neg \left(c \leq 2.5 \cdot 10^{-111}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if c < -7.0000000000000004e23 or 2.5000000000000001e-111 < c Initial program 72.0%
+-commutative72.0%
fma-define74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in a around inf 47.2%
+-commutative47.2%
mul-1-neg47.2%
unsub-neg47.2%
Simplified47.2%
Taylor expanded in c around inf 45.3%
+-commutative45.3%
mul-1-neg45.3%
unsub-neg45.3%
*-commutative45.3%
associate-/l*46.0%
associate-/l*44.0%
Simplified44.0%
Taylor expanded in c around inf 31.9%
*-commutative31.9%
associate-*l*33.4%
*-commutative33.4%
Simplified33.4%
if -7.0000000000000004e23 < c < 2.5000000000000001e-111Initial program 77.6%
+-commutative77.6%
fma-define78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in y around 0 77.8%
Simplified77.8%
Taylor expanded in t around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in i around inf 27.0%
associate-*r*24.8%
*-commutative24.8%
associate-*r*27.8%
Simplified27.8%
Final simplification31.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -7.1e+19) (not (<= c 8.8e-16))) (* c (* a j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7.1e+19) || !(c <= 8.8e-16)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-7.1d+19)) .or. (.not. (c <= 8.8d-16))) then
tmp = c * (a * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7.1e+19) || !(c <= 8.8e-16)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -7.1e+19) or not (c <= 8.8e-16): tmp = c * (a * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -7.1e+19) || !(c <= 8.8e-16)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -7.1e+19) || ~((c <= 8.8e-16))) tmp = c * (a * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -7.1e+19], N[Not[LessEqual[c, 8.8e-16]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7.1 \cdot 10^{+19} \lor \neg \left(c \leq 8.8 \cdot 10^{-16}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -7.1e19 or 8.80000000000000001e-16 < c Initial program 69.2%
+-commutative69.2%
fma-define70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in a around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
Simplified47.6%
Taylor expanded in c around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
*-commutative47.7%
associate-/l*48.5%
associate-/l*46.2%
Simplified46.2%
Taylor expanded in c around inf 35.0%
*-commutative35.0%
associate-*l*36.7%
*-commutative36.7%
Simplified36.7%
if -7.1e19 < c < 8.80000000000000001e-16Initial program 79.1%
+-commutative79.1%
fma-define80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y around 0 80.1%
Simplified80.8%
Taylor expanded in i around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
*-commutative44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in t around inf 25.7%
Final simplification30.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -8e+21) (not (<= c 3.4e-16))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -8e+21) || !(c <= 3.4e-16)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-8d+21)) .or. (.not. (c <= 3.4d-16))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -8e+21) || !(c <= 3.4e-16)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -8e+21) or not (c <= 3.4e-16): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -8e+21) || !(c <= 3.4e-16)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -8e+21) || ~((c <= 3.4e-16))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -8e+21], N[Not[LessEqual[c, 3.4e-16]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8 \cdot 10^{+21} \lor \neg \left(c \leq 3.4 \cdot 10^{-16}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -8e21 or 3.4e-16 < c Initial program 69.2%
+-commutative69.2%
fma-define70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in a around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
Simplified47.6%
Taylor expanded in c around inf 35.0%
*-commutative62.8%
Simplified35.0%
if -8e21 < c < 3.4e-16Initial program 79.1%
+-commutative79.1%
fma-define80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y around 0 80.1%
Simplified80.8%
Taylor expanded in i around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
*-commutative44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in t around inf 25.7%
Final simplification30.1%
(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 74.4%
+-commutative74.4%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in a around inf 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
Simplified39.2%
Taylor expanded in c around inf 20.3%
*-commutative65.2%
Simplified20.3%
Final simplification20.3%
(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 2024139
(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)))))