
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (* x 9.0) y)))
(if (<= t_1 -5e+164)
(*
x
(- (/ (fma (* a (/ t c)) -4.0 (/ b (* z c))) x) (* (/ y z) (/ -9.0 c))))
(if (<= t_1 5e+307)
(/ (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) c)
(* 9.0 (* x (/ y (* z c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (x * 9.0) * y;
double tmp;
if (t_1 <= -5e+164) {
tmp = x * ((fma((a * (t / c)), -4.0, (b / (z * c))) / x) - ((y / z) * (-9.0 / c)));
} else if (t_1 <= 5e+307) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c;
} else {
tmp = 9.0 * (x * (y / (z * c)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(x * 9.0) * y) tmp = 0.0 if (t_1 <= -5e+164) tmp = Float64(x * Float64(Float64(fma(Float64(a * Float64(t / c)), -4.0, Float64(b / Float64(z * c))) / x) - Float64(Float64(y / z) * Float64(-9.0 / c)))); elseif (t_1 <= 5e+307) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+164], N[(x * N[(N[(N[(N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision] * -4.0 + N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - N[(N[(y / z), $MachinePrecision] * N[(-9.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+307], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot 9\right) \cdot y\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \left(\frac{\mathsf{fma}\left(a \cdot \frac{t}{c}, -4, \frac{b}{z \cdot c}\right)}{x} - \frac{y}{z} \cdot \frac{-9}{c}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -4.9999999999999995e164Initial program 70.5%
associate-+l-70.5%
*-commutative70.5%
associate-*r*64.2%
*-commutative64.2%
associate-+l-64.2%
associate-*l*64.1%
associate-*l*67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in x around -inf 82.0%
associate-*r*82.0%
*-commutative82.0%
Simplified93.8%
if -4.9999999999999995e164 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 5e307Initial program 82.7%
associate-+l-82.7%
*-commutative82.7%
associate-*r*82.2%
*-commutative82.2%
associate-+l-82.2%
associate-*l*82.2%
associate-*l*85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in x around 0 82.7%
Taylor expanded in c around 0 92.7%
if 5e307 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) Initial program 77.7%
associate-+l-77.7%
*-commutative77.7%
associate-*r*71.9%
*-commutative71.9%
associate-+l-71.9%
associate-*l*71.9%
associate-*l*77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in x around inf 77.7%
associate-/l*100.0%
Applied egg-rr100.0%
Final simplification93.3%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -1.45e-89) (not (<= z 2.45e-79))) (/ (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) c) (/ (+ b (fma x (* 9.0 y) (* t (* a (* z -4.0))))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -1.45e-89) || !(z <= 2.45e-79)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (b + fma(x, (9.0 * y), (t * (a * (z * -4.0))))) / (z * c);
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -1.45e-89) || !(z <= 2.45e-79)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + fma(x, Float64(9.0 * y), Float64(t * Float64(a * Float64(z * -4.0))))) / Float64(z * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1.45e-89], N[Not[LessEqual[z, 2.45e-79]], $MachinePrecision]], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision] + N[(t * N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{-89} \lor \neg \left(z \leq 2.45 \cdot 10^{-79}\right):\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \mathsf{fma}\left(x, 9 \cdot y, t \cdot \left(a \cdot \left(z \cdot -4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -1.44999999999999996e-89 or 2.45e-79 < z Initial program 70.8%
associate-+l-70.8%
*-commutative70.8%
associate-*r*68.3%
*-commutative68.3%
associate-+l-68.3%
associate-*l*68.3%
associate-*l*74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in x around 0 81.8%
Taylor expanded in c around 0 89.1%
if -1.44999999999999996e-89 < z < 2.45e-79Initial program 98.1%
associate-+l-98.1%
*-commutative98.1%
associate-*r*98.1%
*-commutative98.1%
associate-+l-98.1%
Simplified98.1%
Final simplification92.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (+ b (- (* (* x 9.0) y) (* a (* t (* z 4.0))))) (* z c))))
(if (<= t_1 -4e-184)
t_1
(if (<= t_1 0.0)
(/ (+ (* 9.0 (/ (* x y) c)) (/ b c)) z)
(if (<= t_1 INFINITY)
(/ (+ b (- (* x (* 9.0 y)) (* (* a t) (* z 4.0)))) (* z c))
(* t (+ (* -4.0 (/ a c)) (/ b (* c (* z t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c);
double tmp;
if (t_1 <= -4e-184) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((9.0 * ((x * y) / c)) + (b / c)) / z;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c);
} else {
tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c);
double tmp;
if (t_1 <= -4e-184) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((9.0 * ((x * y) / c)) + (b / c)) / z;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c);
} else {
tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c) tmp = 0 if t_1 <= -4e-184: tmp = t_1 elif t_1 <= 0.0: tmp = ((9.0 * ((x * y) / c)) + (b / c)) / z elif t_1 <= math.inf: tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c) else: tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b + Float64(Float64(Float64(x * 9.0) * y) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)) tmp = 0.0 if (t_1 <= -4e-184) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / c)) + Float64(b / c)) / z); elseif (t_1 <= Inf) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(z * c)); else tmp = Float64(t * Float64(Float64(-4.0 * Float64(a / c)) + Float64(b / Float64(c * Float64(z * t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c); tmp = 0.0; if (t_1 <= -4e-184) tmp = t_1; elseif (t_1 <= 0.0) tmp = ((9.0 * ((x * y) / c)) + (b / c)) / z; elseif (t_1 <= Inf) tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c); else tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b + N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e-184], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(b / c), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(-4.0 * N[(a / c), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b + \left(\left(x \cdot 9\right) \cdot y - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{-184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{c} + \frac{b}{c}}{z}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-4 \cdot \frac{a}{c} + \frac{b}{c \cdot \left(z \cdot t\right)}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -4.0000000000000002e-184Initial program 91.8%
if -4.0000000000000002e-184 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < 0.0Initial program 34.7%
associate-+l-34.7%
*-commutative34.7%
associate-*r*27.4%
*-commutative27.4%
associate-+l-27.4%
associate-*l*27.4%
associate-*l*34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in x around 0 54.1%
Taylor expanded in z around 0 78.1%
if 0.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0Initial program 89.8%
associate-+l-89.8%
*-commutative89.8%
associate-*r*87.9%
*-commutative87.9%
associate-+l-87.9%
associate-*l*87.9%
associate-*l*92.5%
*-commutative92.5%
Simplified92.5%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) Initial program 0.0%
associate-+l-0.0%
*-commutative0.0%
associate-*r*0.0%
*-commutative0.0%
associate-+l-0.0%
associate-*l*0.0%
associate-*l*0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around inf 5.3%
Taylor expanded in t around inf 5.6%
*-commutative5.6%
*-commutative5.6%
*-commutative5.6%
associate-*l*5.6%
*-commutative5.6%
associate-*r*5.6%
*-commutative5.6%
associate-*r*5.6%
*-commutative5.6%
associate-*l*5.6%
Simplified5.6%
Taylor expanded in t around inf 84.2%
Final simplification90.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* x (/ y (* z c)))))
(t_2 (* -4.0 (* t (/ a c))))
(t_3 (/ (/ b z) c)))
(if (<= b -1.1e+194)
t_3
(if (<= b -1.06e+170)
(* -4.0 (/ (* a t) c))
(if (<= b -245000000.0)
(/ (/ b c) z)
(if (<= b -2.5e-98)
t_1
(if (<= b -6.8e-147)
t_2
(if (<= b 3.5e-199) t_1 (if (<= b 9.2e+62) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * (x * (y / (z * c)));
double t_2 = -4.0 * (t * (a / c));
double t_3 = (b / z) / c;
double tmp;
if (b <= -1.1e+194) {
tmp = t_3;
} else if (b <= -1.06e+170) {
tmp = -4.0 * ((a * t) / c);
} else if (b <= -245000000.0) {
tmp = (b / c) / z;
} else if (b <= -2.5e-98) {
tmp = t_1;
} else if (b <= -6.8e-147) {
tmp = t_2;
} else if (b <= 3.5e-199) {
tmp = t_1;
} else if (b <= 9.2e+62) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = 9.0d0 * (x * (y / (z * c)))
t_2 = (-4.0d0) * (t * (a / c))
t_3 = (b / z) / c
if (b <= (-1.1d+194)) then
tmp = t_3
else if (b <= (-1.06d+170)) then
tmp = (-4.0d0) * ((a * t) / c)
else if (b <= (-245000000.0d0)) then
tmp = (b / c) / z
else if (b <= (-2.5d-98)) then
tmp = t_1
else if (b <= (-6.8d-147)) then
tmp = t_2
else if (b <= 3.5d-199) then
tmp = t_1
else if (b <= 9.2d+62) then
tmp = t_2
else
tmp = t_3
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 t_1 = 9.0 * (x * (y / (z * c)));
double t_2 = -4.0 * (t * (a / c));
double t_3 = (b / z) / c;
double tmp;
if (b <= -1.1e+194) {
tmp = t_3;
} else if (b <= -1.06e+170) {
tmp = -4.0 * ((a * t) / c);
} else if (b <= -245000000.0) {
tmp = (b / c) / z;
} else if (b <= -2.5e-98) {
tmp = t_1;
} else if (b <= -6.8e-147) {
tmp = t_2;
} else if (b <= 3.5e-199) {
tmp = t_1;
} else if (b <= 9.2e+62) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 9.0 * (x * (y / (z * c))) t_2 = -4.0 * (t * (a / c)) t_3 = (b / z) / c tmp = 0 if b <= -1.1e+194: tmp = t_3 elif b <= -1.06e+170: tmp = -4.0 * ((a * t) / c) elif b <= -245000000.0: tmp = (b / c) / z elif b <= -2.5e-98: tmp = t_1 elif b <= -6.8e-147: tmp = t_2 elif b <= 3.5e-199: tmp = t_1 elif b <= 9.2e+62: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))) t_2 = Float64(-4.0 * Float64(t * Float64(a / c))) t_3 = Float64(Float64(b / z) / c) tmp = 0.0 if (b <= -1.1e+194) tmp = t_3; elseif (b <= -1.06e+170) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); elseif (b <= -245000000.0) tmp = Float64(Float64(b / c) / z); elseif (b <= -2.5e-98) tmp = t_1; elseif (b <= -6.8e-147) tmp = t_2; elseif (b <= 3.5e-199) tmp = t_1; elseif (b <= 9.2e+62) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 9.0 * (x * (y / (z * c))); t_2 = -4.0 * (t * (a / c)); t_3 = (b / z) / c; tmp = 0.0; if (b <= -1.1e+194) tmp = t_3; elseif (b <= -1.06e+170) tmp = -4.0 * ((a * t) / c); elseif (b <= -245000000.0) tmp = (b / c) / z; elseif (b <= -2.5e-98) tmp = t_1; elseif (b <= -6.8e-147) tmp = t_2; elseif (b <= 3.5e-199) tmp = t_1; elseif (b <= 9.2e+62) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[b, -1.1e+194], t$95$3, If[LessEqual[b, -1.06e+170], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -245000000.0], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, -2.5e-98], t$95$1, If[LessEqual[b, -6.8e-147], t$95$2, If[LessEqual[b, 3.5e-199], t$95$1, If[LessEqual[b, 9.2e+62], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
t_2 := -4 \cdot \left(t \cdot \frac{a}{c}\right)\\
t_3 := \frac{\frac{b}{z}}{c}\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{+194}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.06 \cdot 10^{+170}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;b \leq -245000000:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{-147}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -1.1000000000000001e194 or 9.19999999999999936e62 < b Initial program 85.2%
associate-+l-85.2%
*-commutative85.2%
associate-*r*78.6%
*-commutative78.6%
associate-+l-78.6%
associate-*l*78.6%
associate-*l*83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in x around 0 70.9%
Taylor expanded in c around 0 85.6%
Taylor expanded in t around inf 68.0%
Taylor expanded in b around inf 65.9%
if -1.1000000000000001e194 < b < -1.05999999999999998e170Initial program 99.7%
associate-+l-99.7%
*-commutative99.7%
associate-*r*99.5%
*-commutative99.5%
associate-+l-99.5%
associate-*l*99.5%
associate-*l*99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around inf 100.0%
if -1.05999999999999998e170 < b < -2.45e8Initial program 88.0%
associate-+l-88.0%
*-commutative88.0%
associate-*r*88.0%
*-commutative88.0%
associate-+l-88.0%
associate-*l*88.1%
associate-*l*88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in x around 0 81.8%
Taylor expanded in c around 0 88.4%
Taylor expanded in b around inf 65.0%
associate-/r*65.8%
Simplified65.8%
if -2.45e8 < b < -2.50000000000000009e-98 or -6.79999999999999991e-147 < b < 3.4999999999999999e-199Initial program 78.1%
associate-+l-78.1%
*-commutative78.1%
associate-*r*75.6%
*-commutative75.6%
associate-+l-75.6%
associate-*l*75.6%
associate-*l*79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in x around inf 57.9%
associate-/l*61.4%
Applied egg-rr61.4%
if -2.50000000000000009e-98 < b < -6.79999999999999991e-147 or 3.4999999999999999e-199 < b < 9.19999999999999936e62Initial program 73.4%
associate-+l-73.4%
*-commutative73.4%
associate-*r*77.8%
*-commutative77.8%
associate-+l-77.8%
associate-*l*77.9%
associate-*l*79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in x around 0 87.2%
Taylor expanded in c around 0 90.4%
Taylor expanded in t around inf 80.5%
Taylor expanded in t around inf 52.2%
*-commutative52.2%
associate-/l*55.2%
Simplified55.2%
Final simplification62.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (/ b z) c)) (t_2 (* -4.0 (* t (/ a c)))))
(if (<= b -1.1e+194)
t_1
(if (<= b -2.7e+170)
(* -4.0 (/ (* a t) c))
(if (<= b -2850000000.0)
(/ (/ b c) z)
(if (<= b -1.35e-101)
(* 9.0 (/ 1.0 (* c (/ z (* x y)))))
(if (<= b -2.35e-161)
t_2
(if (<= b 3.6e-199)
(* x (* y (/ (/ 9.0 c) z)))
(if (<= b 1.55e+74) t_2 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b / z) / c;
double t_2 = -4.0 * (t * (a / c));
double tmp;
if (b <= -1.1e+194) {
tmp = t_1;
} else if (b <= -2.7e+170) {
tmp = -4.0 * ((a * t) / c);
} else if (b <= -2850000000.0) {
tmp = (b / c) / z;
} else if (b <= -1.35e-101) {
tmp = 9.0 * (1.0 / (c * (z / (x * y))));
} else if (b <= -2.35e-161) {
tmp = t_2;
} else if (b <= 3.6e-199) {
tmp = x * (y * ((9.0 / c) / z));
} else if (b <= 1.55e+74) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b / z) / c
t_2 = (-4.0d0) * (t * (a / c))
if (b <= (-1.1d+194)) then
tmp = t_1
else if (b <= (-2.7d+170)) then
tmp = (-4.0d0) * ((a * t) / c)
else if (b <= (-2850000000.0d0)) then
tmp = (b / c) / z
else if (b <= (-1.35d-101)) then
tmp = 9.0d0 * (1.0d0 / (c * (z / (x * y))))
else if (b <= (-2.35d-161)) then
tmp = t_2
else if (b <= 3.6d-199) then
tmp = x * (y * ((9.0d0 / c) / z))
else if (b <= 1.55d+74) then
tmp = t_2
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 t_1 = (b / z) / c;
double t_2 = -4.0 * (t * (a / c));
double tmp;
if (b <= -1.1e+194) {
tmp = t_1;
} else if (b <= -2.7e+170) {
tmp = -4.0 * ((a * t) / c);
} else if (b <= -2850000000.0) {
tmp = (b / c) / z;
} else if (b <= -1.35e-101) {
tmp = 9.0 * (1.0 / (c * (z / (x * y))));
} else if (b <= -2.35e-161) {
tmp = t_2;
} else if (b <= 3.6e-199) {
tmp = x * (y * ((9.0 / c) / z));
} else if (b <= 1.55e+74) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b / z) / c t_2 = -4.0 * (t * (a / c)) tmp = 0 if b <= -1.1e+194: tmp = t_1 elif b <= -2.7e+170: tmp = -4.0 * ((a * t) / c) elif b <= -2850000000.0: tmp = (b / c) / z elif b <= -1.35e-101: tmp = 9.0 * (1.0 / (c * (z / (x * y)))) elif b <= -2.35e-161: tmp = t_2 elif b <= 3.6e-199: tmp = x * (y * ((9.0 / c) / z)) elif b <= 1.55e+74: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b / z) / c) t_2 = Float64(-4.0 * Float64(t * Float64(a / c))) tmp = 0.0 if (b <= -1.1e+194) tmp = t_1; elseif (b <= -2.7e+170) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); elseif (b <= -2850000000.0) tmp = Float64(Float64(b / c) / z); elseif (b <= -1.35e-101) tmp = Float64(9.0 * Float64(1.0 / Float64(c * Float64(z / Float64(x * y))))); elseif (b <= -2.35e-161) tmp = t_2; elseif (b <= 3.6e-199) tmp = Float64(x * Float64(y * Float64(Float64(9.0 / c) / z))); elseif (b <= 1.55e+74) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b / z) / c; t_2 = -4.0 * (t * (a / c)); tmp = 0.0; if (b <= -1.1e+194) tmp = t_1; elseif (b <= -2.7e+170) tmp = -4.0 * ((a * t) / c); elseif (b <= -2850000000.0) tmp = (b / c) / z; elseif (b <= -1.35e-101) tmp = 9.0 * (1.0 / (c * (z / (x * y)))); elseif (b <= -2.35e-161) tmp = t_2; elseif (b <= 3.6e-199) tmp = x * (y * ((9.0 / c) / z)); elseif (b <= 1.55e+74) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.1e+194], t$95$1, If[LessEqual[b, -2.7e+170], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2850000000.0], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, -1.35e-101], N[(9.0 * N[(1.0 / N[(c * N[(z / N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.35e-161], t$95$2, If[LessEqual[b, 3.6e-199], N[(x * N[(y * N[(N[(9.0 / c), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e+74], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{b}{z}}{c}\\
t_2 := -4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{+194}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{+170}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;b \leq -2850000000:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;b \leq -1.35 \cdot 10^{-101}:\\
\;\;\;\;9 \cdot \frac{1}{c \cdot \frac{z}{x \cdot y}}\\
\mathbf{elif}\;b \leq -2.35 \cdot 10^{-161}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-199}:\\
\;\;\;\;x \cdot \left(y \cdot \frac{\frac{9}{c}}{z}\right)\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+74}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.1000000000000001e194 or 1.55000000000000011e74 < b Initial program 85.2%
associate-+l-85.2%
*-commutative85.2%
associate-*r*78.6%
*-commutative78.6%
associate-+l-78.6%
associate-*l*78.6%
associate-*l*83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in x around 0 70.9%
Taylor expanded in c around 0 85.6%
Taylor expanded in t around inf 68.0%
Taylor expanded in b around inf 65.9%
if -1.1000000000000001e194 < b < -2.7000000000000002e170Initial program 99.7%
associate-+l-99.7%
*-commutative99.7%
associate-*r*99.5%
*-commutative99.5%
associate-+l-99.5%
associate-*l*99.5%
associate-*l*99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around inf 100.0%
if -2.7000000000000002e170 < b < -2.85e9Initial program 88.0%
associate-+l-88.0%
*-commutative88.0%
associate-*r*88.0%
*-commutative88.0%
associate-+l-88.0%
associate-*l*88.1%
associate-*l*88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in x around 0 81.8%
Taylor expanded in c around 0 88.4%
Taylor expanded in b around inf 65.0%
associate-/r*65.8%
Simplified65.8%
if -2.85e9 < b < -1.3500000000000001e-101Initial program 78.8%
associate-+l-78.8%
*-commutative78.8%
associate-*r*78.8%
*-commutative78.8%
associate-+l-78.8%
associate-*l*78.7%
associate-*l*78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in x around inf 61.6%
clear-num61.4%
inv-pow61.4%
Applied egg-rr61.4%
unpow-161.4%
associate-/l*64.8%
Simplified64.8%
if -1.3500000000000001e-101 < b < -2.3500000000000002e-161 or 3.6000000000000002e-199 < b < 1.55000000000000011e74Initial program 72.7%
associate-+l-72.7%
*-commutative72.7%
associate-*r*75.6%
*-commutative75.6%
associate-+l-75.6%
associate-*l*75.6%
associate-*l*78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in x around 0 86.1%
Taylor expanded in c around 0 89.2%
Taylor expanded in t around inf 79.6%
Taylor expanded in t around inf 52.2%
*-commutative52.2%
associate-/l*55.1%
Simplified55.1%
if -2.3500000000000002e-161 < b < 3.6000000000000002e-199Initial program 78.7%
associate-+l-78.7%
*-commutative78.7%
associate-*r*76.7%
*-commutative76.7%
associate-+l-76.7%
associate-*l*76.8%
associate-*l*80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in x around 0 78.7%
Taylor expanded in x around inf 57.9%
associate-*r/61.6%
*-commutative61.6%
associate-*l*61.6%
*-commutative61.6%
associate-*r/61.6%
*-commutative61.6%
*-commutative61.6%
times-frac55.6%
Simplified55.6%
Taylor expanded in y around 0 61.6%
associate-*r/61.6%
*-commutative61.6%
associate-*r/61.7%
associate-/r*61.6%
Simplified61.6%
Final simplification63.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ b (* z c))) (t_2 (* -4.0 (* t (/ a c)))))
(if (<= x -1.9e+66)
(* 9.0 (* x (/ y (* z c))))
(if (<= x -2.1e-10)
t_1
(if (<= x -5.5e-75)
t_2
(if (<= x -7e-237)
t_1
(if (<= x 1.8e-289)
t_2
(if (<= x 5.2e-57) t_1 (* 9.0 (* (/ y z) (/ x c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = b / (z * c);
double t_2 = -4.0 * (t * (a / c));
double tmp;
if (x <= -1.9e+66) {
tmp = 9.0 * (x * (y / (z * c)));
} else if (x <= -2.1e-10) {
tmp = t_1;
} else if (x <= -5.5e-75) {
tmp = t_2;
} else if (x <= -7e-237) {
tmp = t_1;
} else if (x <= 1.8e-289) {
tmp = t_2;
} else if (x <= 5.2e-57) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / z) * (x / c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b / (z * c)
t_2 = (-4.0d0) * (t * (a / c))
if (x <= (-1.9d+66)) then
tmp = 9.0d0 * (x * (y / (z * c)))
else if (x <= (-2.1d-10)) then
tmp = t_1
else if (x <= (-5.5d-75)) then
tmp = t_2
else if (x <= (-7d-237)) then
tmp = t_1
else if (x <= 1.8d-289) then
tmp = t_2
else if (x <= 5.2d-57) then
tmp = t_1
else
tmp = 9.0d0 * ((y / z) * (x / 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 t_1 = b / (z * c);
double t_2 = -4.0 * (t * (a / c));
double tmp;
if (x <= -1.9e+66) {
tmp = 9.0 * (x * (y / (z * c)));
} else if (x <= -2.1e-10) {
tmp = t_1;
} else if (x <= -5.5e-75) {
tmp = t_2;
} else if (x <= -7e-237) {
tmp = t_1;
} else if (x <= 1.8e-289) {
tmp = t_2;
} else if (x <= 5.2e-57) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / z) * (x / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = b / (z * c) t_2 = -4.0 * (t * (a / c)) tmp = 0 if x <= -1.9e+66: tmp = 9.0 * (x * (y / (z * c))) elif x <= -2.1e-10: tmp = t_1 elif x <= -5.5e-75: tmp = t_2 elif x <= -7e-237: tmp = t_1 elif x <= 1.8e-289: tmp = t_2 elif x <= 5.2e-57: tmp = t_1 else: tmp = 9.0 * ((y / z) * (x / c)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(b / Float64(z * c)) t_2 = Float64(-4.0 * Float64(t * Float64(a / c))) tmp = 0.0 if (x <= -1.9e+66) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))); elseif (x <= -2.1e-10) tmp = t_1; elseif (x <= -5.5e-75) tmp = t_2; elseif (x <= -7e-237) tmp = t_1; elseif (x <= 1.8e-289) tmp = t_2; elseif (x <= 5.2e-57) tmp = t_1; else tmp = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = b / (z * c); t_2 = -4.0 * (t * (a / c)); tmp = 0.0; if (x <= -1.9e+66) tmp = 9.0 * (x * (y / (z * c))); elseif (x <= -2.1e-10) tmp = t_1; elseif (x <= -5.5e-75) tmp = t_2; elseif (x <= -7e-237) tmp = t_1; elseif (x <= 1.8e-289) tmp = t_2; elseif (x <= 5.2e-57) tmp = t_1; else tmp = 9.0 * ((y / z) * (x / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.9e+66], N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.1e-10], t$95$1, If[LessEqual[x, -5.5e-75], t$95$2, If[LessEqual[x, -7e-237], t$95$1, If[LessEqual[x, 1.8e-289], t$95$2, If[LessEqual[x, 5.2e-57], t$95$1, N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b}{z \cdot c}\\
t_2 := -4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{+66}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-75}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-289}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c}\right)\\
\end{array}
\end{array}
if x < -1.9000000000000001e66Initial program 79.5%
associate-+l-79.5%
*-commutative79.5%
associate-*r*79.3%
*-commutative79.3%
associate-+l-79.3%
associate-*l*79.4%
associate-*l*79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in x around inf 57.6%
associate-/l*60.5%
Applied egg-rr60.5%
if -1.9000000000000001e66 < x < -2.1e-10 or -5.50000000000000026e-75 < x < -6.99999999999999966e-237 or 1.8e-289 < x < 5.19999999999999971e-57Initial program 83.7%
associate-+l-83.7%
*-commutative83.7%
associate-*r*80.4%
*-commutative80.4%
associate-+l-80.4%
associate-*l*80.4%
associate-*l*84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in b around inf 53.1%
*-commutative53.1%
Simplified53.1%
if -2.1e-10 < x < -5.50000000000000026e-75 or -6.99999999999999966e-237 < x < 1.8e-289Initial program 74.3%
associate-+l-74.3%
*-commutative74.3%
associate-*r*70.4%
*-commutative70.4%
associate-+l-70.4%
associate-*l*70.5%
associate-*l*74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in x around 0 86.4%
Taylor expanded in c around 0 88.0%
Taylor expanded in t around inf 76.6%
Taylor expanded in t around inf 47.7%
*-commutative47.7%
associate-/l*55.4%
Simplified55.4%
if 5.19999999999999971e-57 < x Initial program 80.7%
associate-+l-80.7%
*-commutative80.7%
associate-*r*80.6%
*-commutative80.6%
associate-+l-80.6%
associate-*l*80.5%
associate-*l*84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in x around inf 44.4%
times-frac48.0%
Simplified48.0%
Final simplification53.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ b (* z c))) (t_2 (* -4.0 (* t (/ a c)))))
(if (<= x -1.32e+66)
(* x (* y (/ (/ 9.0 c) z)))
(if (<= x -6e-11)
t_1
(if (<= x -1.56e-74)
t_2
(if (<= x -6e-234)
t_1
(if (<= x 2.6e-288)
t_2
(if (<= x 1.02e-57) t_1 (* 9.0 (* (/ y z) (/ x c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = b / (z * c);
double t_2 = -4.0 * (t * (a / c));
double tmp;
if (x <= -1.32e+66) {
tmp = x * (y * ((9.0 / c) / z));
} else if (x <= -6e-11) {
tmp = t_1;
} else if (x <= -1.56e-74) {
tmp = t_2;
} else if (x <= -6e-234) {
tmp = t_1;
} else if (x <= 2.6e-288) {
tmp = t_2;
} else if (x <= 1.02e-57) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / z) * (x / c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b / (z * c)
t_2 = (-4.0d0) * (t * (a / c))
if (x <= (-1.32d+66)) then
tmp = x * (y * ((9.0d0 / c) / z))
else if (x <= (-6d-11)) then
tmp = t_1
else if (x <= (-1.56d-74)) then
tmp = t_2
else if (x <= (-6d-234)) then
tmp = t_1
else if (x <= 2.6d-288) then
tmp = t_2
else if (x <= 1.02d-57) then
tmp = t_1
else
tmp = 9.0d0 * ((y / z) * (x / 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 t_1 = b / (z * c);
double t_2 = -4.0 * (t * (a / c));
double tmp;
if (x <= -1.32e+66) {
tmp = x * (y * ((9.0 / c) / z));
} else if (x <= -6e-11) {
tmp = t_1;
} else if (x <= -1.56e-74) {
tmp = t_2;
} else if (x <= -6e-234) {
tmp = t_1;
} else if (x <= 2.6e-288) {
tmp = t_2;
} else if (x <= 1.02e-57) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / z) * (x / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = b / (z * c) t_2 = -4.0 * (t * (a / c)) tmp = 0 if x <= -1.32e+66: tmp = x * (y * ((9.0 / c) / z)) elif x <= -6e-11: tmp = t_1 elif x <= -1.56e-74: tmp = t_2 elif x <= -6e-234: tmp = t_1 elif x <= 2.6e-288: tmp = t_2 elif x <= 1.02e-57: tmp = t_1 else: tmp = 9.0 * ((y / z) * (x / c)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(b / Float64(z * c)) t_2 = Float64(-4.0 * Float64(t * Float64(a / c))) tmp = 0.0 if (x <= -1.32e+66) tmp = Float64(x * Float64(y * Float64(Float64(9.0 / c) / z))); elseif (x <= -6e-11) tmp = t_1; elseif (x <= -1.56e-74) tmp = t_2; elseif (x <= -6e-234) tmp = t_1; elseif (x <= 2.6e-288) tmp = t_2; elseif (x <= 1.02e-57) tmp = t_1; else tmp = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = b / (z * c); t_2 = -4.0 * (t * (a / c)); tmp = 0.0; if (x <= -1.32e+66) tmp = x * (y * ((9.0 / c) / z)); elseif (x <= -6e-11) tmp = t_1; elseif (x <= -1.56e-74) tmp = t_2; elseif (x <= -6e-234) tmp = t_1; elseif (x <= 2.6e-288) tmp = t_2; elseif (x <= 1.02e-57) tmp = t_1; else tmp = 9.0 * ((y / z) * (x / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.32e+66], N[(x * N[(y * N[(N[(9.0 / c), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6e-11], t$95$1, If[LessEqual[x, -1.56e-74], t$95$2, If[LessEqual[x, -6e-234], t$95$1, If[LessEqual[x, 2.6e-288], t$95$2, If[LessEqual[x, 1.02e-57], t$95$1, N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b}{z \cdot c}\\
t_2 := -4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{if}\;x \leq -1.32 \cdot 10^{+66}:\\
\;\;\;\;x \cdot \left(y \cdot \frac{\frac{9}{c}}{z}\right)\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.56 \cdot 10^{-74}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-288}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 1.02 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c}\right)\\
\end{array}
\end{array}
if x < -1.32000000000000009e66Initial program 79.5%
associate-+l-79.5%
*-commutative79.5%
associate-*r*79.3%
*-commutative79.3%
associate-+l-79.3%
associate-*l*79.4%
associate-*l*79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in x around 0 74.7%
Taylor expanded in x around inf 57.6%
associate-*r/60.5%
*-commutative60.5%
associate-*l*60.5%
*-commutative60.5%
associate-*r/60.5%
*-commutative60.5%
*-commutative60.5%
times-frac57.4%
Simplified57.4%
Taylor expanded in y around 0 60.5%
associate-*r/60.5%
*-commutative60.5%
associate-*r/60.5%
associate-/r*60.5%
Simplified60.5%
if -1.32000000000000009e66 < x < -6e-11 or -1.5600000000000001e-74 < x < -5.99999999999999975e-234 or 2.59999999999999989e-288 < x < 1.02e-57Initial program 83.7%
associate-+l-83.7%
*-commutative83.7%
associate-*r*80.4%
*-commutative80.4%
associate-+l-80.4%
associate-*l*80.4%
associate-*l*84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in b around inf 53.1%
*-commutative53.1%
Simplified53.1%
if -6e-11 < x < -1.5600000000000001e-74 or -5.99999999999999975e-234 < x < 2.59999999999999989e-288Initial program 74.3%
associate-+l-74.3%
*-commutative74.3%
associate-*r*70.4%
*-commutative70.4%
associate-+l-70.4%
associate-*l*70.5%
associate-*l*74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in x around 0 86.4%
Taylor expanded in c around 0 88.0%
Taylor expanded in t around inf 76.6%
Taylor expanded in t around inf 47.7%
*-commutative47.7%
associate-/l*55.4%
Simplified55.4%
if 1.02e-57 < x Initial program 80.7%
associate-+l-80.7%
*-commutative80.7%
associate-*r*80.6%
*-commutative80.6%
associate-+l-80.6%
associate-*l*80.5%
associate-*l*84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in x around inf 44.4%
times-frac48.0%
Simplified48.0%
Final simplification53.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (+ b (* x (* 9.0 y))) (* z c))) (t_2 (* a (/ (* t -4.0) c))))
(if (<= z -2.4e+180)
t_2
(if (<= z -2.2e+67)
t_1
(if (<= z -2.9e+46)
(* t (* a (/ -4.0 c)))
(if (<= z 9.2e+67) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b + (x * (9.0 * y))) / (z * c);
double t_2 = a * ((t * -4.0) / c);
double tmp;
if (z <= -2.4e+180) {
tmp = t_2;
} else if (z <= -2.2e+67) {
tmp = t_1;
} else if (z <= -2.9e+46) {
tmp = t * (a * (-4.0 / c));
} else if (z <= 9.2e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b + (x * (9.0d0 * y))) / (z * c)
t_2 = a * ((t * (-4.0d0)) / c)
if (z <= (-2.4d+180)) then
tmp = t_2
else if (z <= (-2.2d+67)) then
tmp = t_1
else if (z <= (-2.9d+46)) then
tmp = t * (a * ((-4.0d0) / c))
else if (z <= 9.2d+67) 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 t_1 = (b + (x * (9.0 * y))) / (z * c);
double t_2 = a * ((t * -4.0) / c);
double tmp;
if (z <= -2.4e+180) {
tmp = t_2;
} else if (z <= -2.2e+67) {
tmp = t_1;
} else if (z <= -2.9e+46) {
tmp = t * (a * (-4.0 / c));
} else if (z <= 9.2e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b + (x * (9.0 * y))) / (z * c) t_2 = a * ((t * -4.0) / c) tmp = 0 if z <= -2.4e+180: tmp = t_2 elif z <= -2.2e+67: tmp = t_1 elif z <= -2.9e+46: tmp = t * (a * (-4.0 / c)) elif z <= 9.2e+67: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b + Float64(x * Float64(9.0 * y))) / Float64(z * c)) t_2 = Float64(a * Float64(Float64(t * -4.0) / c)) tmp = 0.0 if (z <= -2.4e+180) tmp = t_2; elseif (z <= -2.2e+67) tmp = t_1; elseif (z <= -2.9e+46) tmp = Float64(t * Float64(a * Float64(-4.0 / c))); elseif (z <= 9.2e+67) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b + (x * (9.0 * y))) / (z * c); t_2 = a * ((t * -4.0) / c); tmp = 0.0; if (z <= -2.4e+180) tmp = t_2; elseif (z <= -2.2e+67) tmp = t_1; elseif (z <= -2.9e+46) tmp = t * (a * (-4.0 / c)); elseif (z <= 9.2e+67) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+180], t$95$2, If[LessEqual[z, -2.2e+67], t$95$1, If[LessEqual[z, -2.9e+46], N[(t * N[(a * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e+67], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b + x \cdot \left(9 \cdot y\right)}{z \cdot c}\\
t_2 := a \cdot \frac{t \cdot -4}{c}\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+180}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{+46}:\\
\;\;\;\;t \cdot \left(a \cdot \frac{-4}{c}\right)\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.3999999999999998e180 or 9.1999999999999994e67 < z Initial program 53.9%
associate-+l-53.9%
*-commutative53.9%
associate-*r*53.6%
*-commutative53.6%
associate-+l-53.6%
associate-*l*53.6%
associate-*l*62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in z around inf 63.8%
*-commutative63.8%
associate-/l*70.0%
associate-*r*70.0%
associate-*l/70.0%
Simplified70.0%
if -2.3999999999999998e180 < z < -2.2e67 or -2.9000000000000002e46 < z < 9.1999999999999994e67Initial program 92.5%
associate-+l-92.5%
*-commutative92.5%
associate-*r*90.4%
*-commutative90.4%
associate-+l-90.4%
associate-*l*90.4%
associate-*l*91.5%
*-commutative91.5%
Simplified91.5%
Taylor expanded in x around inf 80.0%
associate-*r*80.0%
*-commutative80.0%
associate-*r*80.0%
Simplified80.0%
if -2.2e67 < z < -2.9000000000000002e46Initial program 40.9%
associate-+l-40.9%
*-commutative40.9%
associate-*r*40.9%
*-commutative40.9%
associate-+l-40.9%
associate-*l*40.9%
associate-*l*40.9%
*-commutative40.9%
Simplified40.9%
Taylor expanded in x around 0 80.9%
Taylor expanded in c around 0 80.9%
Taylor expanded in z around inf 80.9%
associate-*r/80.9%
associate-*r*80.9%
associate-*l/99.4%
associate-*r/99.4%
*-commutative99.4%
associate-*r/99.4%
*-commutative99.4%
associate-/l*99.7%
Simplified99.7%
Final simplification77.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* t (/ (+ (/ (/ b t) z) (* a -4.0)) c))))
(if (<= z -2.65e+180)
t_1
(if (<= z -2.2e+67)
(/ (+ (* 9.0 (/ (* x y) z)) (/ b z)) c)
(if (<= z -4.9e-70)
t_1
(if (<= z 2.4e+28)
(/ (+ b (* x (* 9.0 y))) (* z c))
(/ (- (/ b z) (* a (* t 4.0))) c)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = t * ((((b / t) / z) + (a * -4.0)) / c);
double tmp;
if (z <= -2.65e+180) {
tmp = t_1;
} else if (z <= -2.2e+67) {
tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c;
} else if (z <= -4.9e-70) {
tmp = t_1;
} else if (z <= 2.4e+28) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = t * ((((b / t) / z) + (a * (-4.0d0))) / c)
if (z <= (-2.65d+180)) then
tmp = t_1
else if (z <= (-2.2d+67)) then
tmp = ((9.0d0 * ((x * y) / z)) + (b / z)) / c
else if (z <= (-4.9d-70)) then
tmp = t_1
else if (z <= 2.4d+28) then
tmp = (b + (x * (9.0d0 * y))) / (z * c)
else
tmp = ((b / z) - (a * (t * 4.0d0))) / 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 t_1 = t * ((((b / t) / z) + (a * -4.0)) / c);
double tmp;
if (z <= -2.65e+180) {
tmp = t_1;
} else if (z <= -2.2e+67) {
tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c;
} else if (z <= -4.9e-70) {
tmp = t_1;
} else if (z <= 2.4e+28) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = t * ((((b / t) / z) + (a * -4.0)) / c) tmp = 0 if z <= -2.65e+180: tmp = t_1 elif z <= -2.2e+67: tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c elif z <= -4.9e-70: tmp = t_1 elif z <= 2.4e+28: tmp = (b + (x * (9.0 * y))) / (z * c) else: tmp = ((b / z) - (a * (t * 4.0))) / c return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(t * Float64(Float64(Float64(Float64(b / t) / z) + Float64(a * -4.0)) / c)) tmp = 0.0 if (z <= -2.65e+180) tmp = t_1; elseif (z <= -2.2e+67) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) / c); elseif (z <= -4.9e-70) tmp = t_1; elseif (z <= 2.4e+28) tmp = Float64(Float64(b + Float64(x * Float64(9.0 * y))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - Float64(a * Float64(t * 4.0))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = t * ((((b / t) / z) + (a * -4.0)) / c); tmp = 0.0; if (z <= -2.65e+180) tmp = t_1; elseif (z <= -2.2e+67) tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c; elseif (z <= -4.9e-70) tmp = t_1; elseif (z <= 2.4e+28) tmp = (b + (x * (9.0 * y))) / (z * c); else tmp = ((b / z) - (a * (t * 4.0))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(N[(N[(N[(b / t), $MachinePrecision] / z), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.65e+180], t$95$1, If[LessEqual[z, -2.2e+67], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, -4.9e-70], t$95$1, If[LessEqual[z, 2.4e+28], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - N[(a * N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{\frac{\frac{b}{t}}{z} + a \cdot -4}{c}\\
\mathbf{if}\;z \leq -2.65 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{+67}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}}{c}\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+28}:\\
\;\;\;\;\frac{b + x \cdot \left(9 \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - a \cdot \left(t \cdot 4\right)}{c}\\
\end{array}
\end{array}
if z < -2.6500000000000002e180 or -2.2e67 < z < -4.9e-70Initial program 64.0%
associate-+l-64.0%
*-commutative64.0%
associate-*r*57.0%
*-commutative57.0%
associate-+l-57.0%
associate-*l*57.1%
associate-*l*65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in x around 0 77.8%
Taylor expanded in c around 0 83.4%
Taylor expanded in t around inf 80.1%
Taylor expanded in x around 0 64.3%
associate-/l*69.3%
cancel-sign-sub-inv69.3%
associate-/r*64.2%
metadata-eval64.2%
Simplified64.2%
if -2.6500000000000002e180 < z < -2.2e67Initial program 83.5%
associate-+l-83.5%
*-commutative83.5%
associate-*r*70.8%
*-commutative70.8%
associate-+l-70.8%
associate-*l*70.8%
associate-*l*83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in x around 0 83.5%
Taylor expanded in c around 0 91.5%
Taylor expanded in a around 0 74.5%
if -4.9e-70 < z < 2.39999999999999981e28Initial program 96.9%
associate-+l-96.9%
*-commutative96.9%
associate-*r*96.9%
*-commutative96.9%
associate-+l-96.9%
associate-*l*96.9%
associate-*l*95.4%
*-commutative95.4%
Simplified95.4%
Taylor expanded in x around inf 88.6%
associate-*r*88.6%
*-commutative88.6%
associate-*r*88.6%
Simplified88.6%
if 2.39999999999999981e28 < z Initial program 58.9%
associate-+l-58.9%
*-commutative58.9%
associate-*r*64.6%
*-commutative64.6%
associate-+l-64.6%
associate-*l*64.6%
associate-*l*68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in x around 0 84.2%
Taylor expanded in c around 0 91.8%
Taylor expanded in x around 0 78.8%
*-commutative78.8%
associate-*r*78.8%
Simplified78.8%
Final simplification79.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -2.4e+180)
(* t (+ (* -4.0 (/ a c)) (/ b (* c (* z t)))))
(if (<= z -2e+67)
(/ (+ (* 9.0 (/ (* x y) z)) (/ b z)) c)
(if (<= z -2.6e-66)
(* t (/ (+ (/ (/ b t) z) (* a -4.0)) c))
(if (<= z 3.7e+27)
(/ (+ b (* x (* 9.0 y))) (* z c))
(/ (- (/ b z) (* a (* t 4.0))) c))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -2.4e+180) {
tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t))));
} else if (z <= -2e+67) {
tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c;
} else if (z <= -2.6e-66) {
tmp = t * ((((b / t) / z) + (a * -4.0)) / c);
} else if (z <= 3.7e+27) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if (z <= (-2.4d+180)) then
tmp = t * (((-4.0d0) * (a / c)) + (b / (c * (z * t))))
else if (z <= (-2d+67)) then
tmp = ((9.0d0 * ((x * y) / z)) + (b / z)) / c
else if (z <= (-2.6d-66)) then
tmp = t * ((((b / t) / z) + (a * (-4.0d0))) / c)
else if (z <= 3.7d+27) then
tmp = (b + (x * (9.0d0 * y))) / (z * c)
else
tmp = ((b / z) - (a * (t * 4.0d0))) / 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 tmp;
if (z <= -2.4e+180) {
tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t))));
} else if (z <= -2e+67) {
tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c;
} else if (z <= -2.6e-66) {
tmp = t * ((((b / t) / z) + (a * -4.0)) / c);
} else if (z <= 3.7e+27) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -2.4e+180: tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t)))) elif z <= -2e+67: tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c elif z <= -2.6e-66: tmp = t * ((((b / t) / z) + (a * -4.0)) / c) elif z <= 3.7e+27: tmp = (b + (x * (9.0 * y))) / (z * c) else: tmp = ((b / z) - (a * (t * 4.0))) / c return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -2.4e+180) tmp = Float64(t * Float64(Float64(-4.0 * Float64(a / c)) + Float64(b / Float64(c * Float64(z * t))))); elseif (z <= -2e+67) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) / c); elseif (z <= -2.6e-66) tmp = Float64(t * Float64(Float64(Float64(Float64(b / t) / z) + Float64(a * -4.0)) / c)); elseif (z <= 3.7e+27) tmp = Float64(Float64(b + Float64(x * Float64(9.0 * y))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - Float64(a * Float64(t * 4.0))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -2.4e+180) tmp = t * ((-4.0 * (a / c)) + (b / (c * (z * t)))); elseif (z <= -2e+67) tmp = ((9.0 * ((x * y) / z)) + (b / z)) / c; elseif (z <= -2.6e-66) tmp = t * ((((b / t) / z) + (a * -4.0)) / c); elseif (z <= 3.7e+27) tmp = (b + (x * (9.0 * y))) / (z * c); else tmp = ((b / z) - (a * (t * 4.0))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -2.4e+180], N[(t * N[(N[(-4.0 * N[(a / c), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2e+67], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, -2.6e-66], N[(t * N[(N[(N[(N[(b / t), $MachinePrecision] / z), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e+27], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - N[(a * N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+180}:\\
\;\;\;\;t \cdot \left(-4 \cdot \frac{a}{c} + \frac{b}{c \cdot \left(z \cdot t\right)}\right)\\
\mathbf{elif}\;z \leq -2 \cdot 10^{+67}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}}{c}\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-66}:\\
\;\;\;\;t \cdot \frac{\frac{\frac{b}{t}}{z} + a \cdot -4}{c}\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+27}:\\
\;\;\;\;\frac{b + x \cdot \left(9 \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - a \cdot \left(t \cdot 4\right)}{c}\\
\end{array}
\end{array}
if z < -2.3999999999999998e180Initial program 51.4%
associate-+l-51.4%
*-commutative51.4%
associate-*r*40.9%
*-commutative40.9%
associate-+l-40.9%
associate-*l*40.9%
associate-*l*54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in t around inf 33.9%
Taylor expanded in t around inf 38.5%
*-commutative38.5%
*-commutative38.5%
*-commutative38.5%
associate-*l*41.7%
*-commutative41.7%
associate-*r*41.7%
*-commutative41.7%
associate-*r*41.7%
*-commutative41.7%
associate-*l*41.7%
Simplified41.7%
Taylor expanded in t around inf 70.8%
if -2.3999999999999998e180 < z < -1.99999999999999997e67Initial program 83.5%
associate-+l-83.5%
*-commutative83.5%
associate-*r*70.8%
*-commutative70.8%
associate-+l-70.8%
associate-*l*70.8%
associate-*l*83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in x around 0 83.5%
Taylor expanded in c around 0 91.5%
Taylor expanded in a around 0 74.5%
if -1.99999999999999997e67 < z < -2.5999999999999999e-66Initial program 79.2%
associate-+l-79.2%
*-commutative79.2%
associate-*r*75.6%
*-commutative75.6%
associate-+l-75.6%
associate-*l*75.6%
associate-*l*79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in x around 0 86.4%
Taylor expanded in c around 0 86.4%
Taylor expanded in t around inf 83.2%
Taylor expanded in x around 0 66.7%
associate-/l*70.1%
cancel-sign-sub-inv70.1%
associate-/r*70.1%
metadata-eval70.1%
Simplified70.1%
if -2.5999999999999999e-66 < z < 3.70000000000000002e27Initial program 96.2%
associate-+l-96.2%
*-commutative96.2%
associate-*r*96.2%
*-commutative96.2%
associate-+l-96.2%
associate-*l*96.2%
associate-*l*94.6%
*-commutative94.6%
Simplified94.6%
Taylor expanded in x around inf 87.9%
associate-*r*87.9%
*-commutative87.9%
associate-*r*87.9%
Simplified87.9%
if 3.70000000000000002e27 < z Initial program 58.9%
associate-+l-58.9%
*-commutative58.9%
associate-*r*64.6%
*-commutative64.6%
associate-+l-64.6%
associate-*l*64.6%
associate-*l*68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in x around 0 84.2%
Taylor expanded in c around 0 91.8%
Taylor expanded in x around 0 78.8%
*-commutative78.8%
associate-*r*78.8%
Simplified78.8%
Final simplification81.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (- (* y (/ (* x 9.0) z)) (* 4.0 (* a t))) c)))
(if (<= z -1.85e+46)
t_1
(if (<= z -9e-7)
(/ (* y (+ (* 9.0 (/ x c)) (/ b (* y c)))) z)
(if (<= z -3.6e-70)
t_1
(if (<= z 3.1e+28)
(/ (+ b (* x (* 9.0 y))) (* z c))
(/ (- (/ b z) (* a (* t 4.0))) c)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c;
double tmp;
if (z <= -1.85e+46) {
tmp = t_1;
} else if (z <= -9e-7) {
tmp = (y * ((9.0 * (x / c)) + (b / (y * c)))) / z;
} else if (z <= -3.6e-70) {
tmp = t_1;
} else if (z <= 3.1e+28) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = ((y * ((x * 9.0d0) / z)) - (4.0d0 * (a * t))) / c
if (z <= (-1.85d+46)) then
tmp = t_1
else if (z <= (-9d-7)) then
tmp = (y * ((9.0d0 * (x / c)) + (b / (y * c)))) / z
else if (z <= (-3.6d-70)) then
tmp = t_1
else if (z <= 3.1d+28) then
tmp = (b + (x * (9.0d0 * y))) / (z * c)
else
tmp = ((b / z) - (a * (t * 4.0d0))) / 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 t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c;
double tmp;
if (z <= -1.85e+46) {
tmp = t_1;
} else if (z <= -9e-7) {
tmp = (y * ((9.0 * (x / c)) + (b / (y * c)))) / z;
} else if (z <= -3.6e-70) {
tmp = t_1;
} else if (z <= 3.1e+28) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c tmp = 0 if z <= -1.85e+46: tmp = t_1 elif z <= -9e-7: tmp = (y * ((9.0 * (x / c)) + (b / (y * c)))) / z elif z <= -3.6e-70: tmp = t_1 elif z <= 3.1e+28: tmp = (b + (x * (9.0 * y))) / (z * c) else: tmp = ((b / z) - (a * (t * 4.0))) / c return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(y * Float64(Float64(x * 9.0) / z)) - Float64(4.0 * Float64(a * t))) / c) tmp = 0.0 if (z <= -1.85e+46) tmp = t_1; elseif (z <= -9e-7) tmp = Float64(Float64(y * Float64(Float64(9.0 * Float64(x / c)) + Float64(b / Float64(y * c)))) / z); elseif (z <= -3.6e-70) tmp = t_1; elseif (z <= 3.1e+28) tmp = Float64(Float64(b + Float64(x * Float64(9.0 * y))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - Float64(a * Float64(t * 4.0))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c; tmp = 0.0; if (z <= -1.85e+46) tmp = t_1; elseif (z <= -9e-7) tmp = (y * ((9.0 * (x / c)) + (b / (y * c)))) / z; elseif (z <= -3.6e-70) tmp = t_1; elseif (z <= 3.1e+28) tmp = (b + (x * (9.0 * y))) / (z * c); else tmp = ((b / z) - (a * (t * 4.0))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(y * N[(N[(x * 9.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -1.85e+46], t$95$1, If[LessEqual[z, -9e-7], N[(N[(y * N[(N[(9.0 * N[(x / c), $MachinePrecision]), $MachinePrecision] + N[(b / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, -3.6e-70], t$95$1, If[LessEqual[z, 3.1e+28], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - N[(a * N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \frac{x \cdot 9}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-7}:\\
\;\;\;\;\frac{y \cdot \left(9 \cdot \frac{x}{c} + \frac{b}{y \cdot c}\right)}{z}\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+28}:\\
\;\;\;\;\frac{b + x \cdot \left(9 \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - a \cdot \left(t \cdot 4\right)}{c}\\
\end{array}
\end{array}
if z < -1.84999999999999995e46 or -8.99999999999999959e-7 < z < -3.6000000000000002e-70Initial program 68.4%
associate-+l-68.4%
*-commutative68.4%
associate-*r*59.7%
*-commutative59.7%
associate-+l-59.7%
associate-*l*59.7%
associate-*l*69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in x around 0 80.0%
Taylor expanded in c around 0 87.3%
Taylor expanded in x around inf 72.6%
associate-*r/72.5%
associate-*r*72.5%
*-commutative72.5%
associate-*r/78.1%
Simplified78.1%
if -1.84999999999999995e46 < z < -8.99999999999999959e-7Initial program 76.3%
associate-+l-76.3%
*-commutative76.3%
associate-*r*68.0%
*-commutative68.0%
associate-+l-68.0%
associate-*l*68.0%
associate-*l*76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around inf 84.4%
Taylor expanded in z around 0 76.2%
if -3.6000000000000002e-70 < z < 3.1000000000000001e28Initial program 96.9%
associate-+l-96.9%
*-commutative96.9%
associate-*r*96.9%
*-commutative96.9%
associate-+l-96.9%
associate-*l*96.9%
associate-*l*95.4%
*-commutative95.4%
Simplified95.4%
Taylor expanded in x around inf 88.6%
associate-*r*88.6%
*-commutative88.6%
associate-*r*88.6%
Simplified88.6%
if 3.1000000000000001e28 < z Initial program 58.9%
associate-+l-58.9%
*-commutative58.9%
associate-*r*64.6%
*-commutative64.6%
associate-+l-64.6%
associate-*l*64.6%
associate-*l*68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in x around 0 84.2%
Taylor expanded in c around 0 91.8%
Taylor expanded in x around 0 78.8%
*-commutative78.8%
associate-*r*78.8%
Simplified78.8%
Final simplification83.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (- (* y (/ (* x 9.0) z)) (* 4.0 (* a t))) c)))
(if (<= z -2.05e+46)
t_1
(if (<= z -1.45e-6)
(* y (+ (* 9.0 (/ x (* z c))) (/ b (* c (* y z)))))
(if (<= z -2e-70)
t_1
(if (<= z 4.8e+28)
(/ (+ b (* x (* 9.0 y))) (* z c))
(/ (- (/ b z) (* a (* t 4.0))) c)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c;
double tmp;
if (z <= -2.05e+46) {
tmp = t_1;
} else if (z <= -1.45e-6) {
tmp = y * ((9.0 * (x / (z * c))) + (b / (c * (y * z))));
} else if (z <= -2e-70) {
tmp = t_1;
} else if (z <= 4.8e+28) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = ((y * ((x * 9.0d0) / z)) - (4.0d0 * (a * t))) / c
if (z <= (-2.05d+46)) then
tmp = t_1
else if (z <= (-1.45d-6)) then
tmp = y * ((9.0d0 * (x / (z * c))) + (b / (c * (y * z))))
else if (z <= (-2d-70)) then
tmp = t_1
else if (z <= 4.8d+28) then
tmp = (b + (x * (9.0d0 * y))) / (z * c)
else
tmp = ((b / z) - (a * (t * 4.0d0))) / 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 t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c;
double tmp;
if (z <= -2.05e+46) {
tmp = t_1;
} else if (z <= -1.45e-6) {
tmp = y * ((9.0 * (x / (z * c))) + (b / (c * (y * z))));
} else if (z <= -2e-70) {
tmp = t_1;
} else if (z <= 4.8e+28) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else {
tmp = ((b / z) - (a * (t * 4.0))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c tmp = 0 if z <= -2.05e+46: tmp = t_1 elif z <= -1.45e-6: tmp = y * ((9.0 * (x / (z * c))) + (b / (c * (y * z)))) elif z <= -2e-70: tmp = t_1 elif z <= 4.8e+28: tmp = (b + (x * (9.0 * y))) / (z * c) else: tmp = ((b / z) - (a * (t * 4.0))) / c return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(y * Float64(Float64(x * 9.0) / z)) - Float64(4.0 * Float64(a * t))) / c) tmp = 0.0 if (z <= -2.05e+46) tmp = t_1; elseif (z <= -1.45e-6) tmp = Float64(y * Float64(Float64(9.0 * Float64(x / Float64(z * c))) + Float64(b / Float64(c * Float64(y * z))))); elseif (z <= -2e-70) tmp = t_1; elseif (z <= 4.8e+28) tmp = Float64(Float64(b + Float64(x * Float64(9.0 * y))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - Float64(a * Float64(t * 4.0))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c; tmp = 0.0; if (z <= -2.05e+46) tmp = t_1; elseif (z <= -1.45e-6) tmp = y * ((9.0 * (x / (z * c))) + (b / (c * (y * z)))); elseif (z <= -2e-70) tmp = t_1; elseif (z <= 4.8e+28) tmp = (b + (x * (9.0 * y))) / (z * c); else tmp = ((b / z) - (a * (t * 4.0))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(y * N[(N[(x * 9.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -2.05e+46], t$95$1, If[LessEqual[z, -1.45e-6], N[(y * N[(N[(9.0 * N[(x / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2e-70], t$95$1, If[LessEqual[z, 4.8e+28], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - N[(a * N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \frac{x \cdot 9}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.45 \cdot 10^{-6}:\\
\;\;\;\;y \cdot \left(9 \cdot \frac{x}{z \cdot c} + \frac{b}{c \cdot \left(y \cdot z\right)}\right)\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+28}:\\
\;\;\;\;\frac{b + x \cdot \left(9 \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - a \cdot \left(t \cdot 4\right)}{c}\\
\end{array}
\end{array}
if z < -2.05e46 or -1.4500000000000001e-6 < z < -1.99999999999999999e-70Initial program 68.4%
associate-+l-68.4%
*-commutative68.4%
associate-*r*59.7%
*-commutative59.7%
associate-+l-59.7%
associate-*l*59.7%
associate-*l*69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in x around 0 80.0%
Taylor expanded in c around 0 87.3%
Taylor expanded in x around inf 72.6%
associate-*r/72.5%
associate-*r*72.5%
*-commutative72.5%
associate-*r/78.1%
Simplified78.1%
if -2.05e46 < z < -1.4500000000000001e-6Initial program 76.3%
associate-+l-76.3%
*-commutative76.3%
associate-*r*68.0%
*-commutative68.0%
associate-+l-68.0%
associate-*l*68.0%
associate-*l*76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around inf 84.4%
Taylor expanded in a around 0 83.7%
if -1.99999999999999999e-70 < z < 4.79999999999999962e28Initial program 96.9%
associate-+l-96.9%
*-commutative96.9%
associate-*r*96.9%
*-commutative96.9%
associate-+l-96.9%
associate-*l*96.9%
associate-*l*95.4%
*-commutative95.4%
Simplified95.4%
Taylor expanded in x around inf 88.6%
associate-*r*88.6%
*-commutative88.6%
associate-*r*88.6%
Simplified88.6%
if 4.79999999999999962e28 < z Initial program 58.9%
associate-+l-58.9%
*-commutative58.9%
associate-*r*64.6%
*-commutative64.6%
associate-+l-64.6%
associate-*l*64.6%
associate-*l*68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in x around 0 84.2%
Taylor expanded in c around 0 91.8%
Taylor expanded in x around 0 78.8%
*-commutative78.8%
associate-*r*78.8%
Simplified78.8%
Final simplification83.6%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -2.4e+180) (not (<= z 1.06e+119))) (/ (- (* y (/ (* x 9.0) z)) (* 4.0 (* a t))) c) (/ (+ b (- (* x (* 9.0 y)) (* (* a t) (* z 4.0)))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -2.4e+180) || !(z <= 1.06e+119)) {
tmp = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-2.4d+180)) .or. (.not. (z <= 1.06d+119))) then
tmp = ((y * ((x * 9.0d0) / z)) - (4.0d0 * (a * t))) / c
else
tmp = (b + ((x * (9.0d0 * y)) - ((a * t) * (z * 4.0d0)))) / (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 tmp;
if ((z <= -2.4e+180) || !(z <= 1.06e+119)) {
tmp = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -2.4e+180) or not (z <= 1.06e+119): tmp = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c else: tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -2.4e+180) || !(z <= 1.06e+119)) tmp = Float64(Float64(Float64(y * Float64(Float64(x * 9.0) / z)) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -2.4e+180) || ~((z <= 1.06e+119))) tmp = ((y * ((x * 9.0) / z)) - (4.0 * (a * t))) / c; else tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -2.4e+180], N[Not[LessEqual[z, 1.06e+119]], $MachinePrecision]], N[(N[(N[(y * N[(N[(x * 9.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+180} \lor \neg \left(z \leq 1.06 \cdot 10^{+119}\right):\\
\;\;\;\;\frac{y \cdot \frac{x \cdot 9}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -2.3999999999999998e180 or 1.0599999999999999e119 < z Initial program 50.3%
associate-+l-50.3%
*-commutative50.3%
associate-*r*48.2%
*-commutative48.2%
associate-+l-48.2%
associate-*l*48.3%
associate-*l*56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in x around 0 80.9%
Taylor expanded in c around 0 88.0%
Taylor expanded in x around inf 80.8%
associate-*r/80.8%
associate-*r*80.8%
*-commutative80.8%
associate-*r/85.8%
Simplified85.8%
if -2.3999999999999998e180 < z < 1.0599999999999999e119Initial program 89.7%
associate-+l-89.7%
*-commutative89.7%
associate-*r*88.3%
*-commutative88.3%
associate-+l-88.3%
associate-*l*88.3%
associate-*l*89.8%
*-commutative89.8%
Simplified89.8%
Final simplification88.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -1.45e-89) (not (<= z 1e-80))) (/ (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) c) (/ (+ b (- (* (* x 9.0) y) (* a (* t (* z 4.0))))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -1.45e-89) || !(z <= 1e-80)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-1.45d-89)) .or. (.not. (z <= 1d-80))) then
tmp = (((9.0d0 * ((x * y) / z)) + (b / z)) - (4.0d0 * (a * t))) / c
else
tmp = (b + (((x * 9.0d0) * y) - (a * (t * (z * 4.0d0))))) / (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 tmp;
if ((z <= -1.45e-89) || !(z <= 1e-80)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -1.45e-89) or not (z <= 1e-80): tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c else: tmp = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -1.45e-89) || !(z <= 1e-80)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(Float64(x * 9.0) * y) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -1.45e-89) || ~((z <= 1e-80))) tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c; else tmp = (b + (((x * 9.0) * y) - (a * (t * (z * 4.0))))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1.45e-89], N[Not[LessEqual[z, 1e-80]], $MachinePrecision]], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{-89} \lor \neg \left(z \leq 10^{-80}\right):\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(\left(x \cdot 9\right) \cdot y - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -1.44999999999999996e-89 or 9.99999999999999961e-81 < z Initial program 70.8%
associate-+l-70.8%
*-commutative70.8%
associate-*r*68.3%
*-commutative68.3%
associate-+l-68.3%
associate-*l*68.3%
associate-*l*74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in x around 0 81.8%
Taylor expanded in c around 0 89.1%
if -1.44999999999999996e-89 < z < 9.99999999999999961e-81Initial program 98.1%
Final simplification92.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* -4.0 (* t (/ a c)))) (t_2 (/ (/ b z) c)))
(if (<= b -3.2e+192)
t_2
(if (<= b -2.7e+170)
t_1
(if (<= b -3e+17) (/ (/ b c) z) (if (<= b 2.8e+65) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * (t * (a / c));
double t_2 = (b / z) / c;
double tmp;
if (b <= -3.2e+192) {
tmp = t_2;
} else if (b <= -2.7e+170) {
tmp = t_1;
} else if (b <= -3e+17) {
tmp = (b / c) / z;
} else if (b <= 2.8e+65) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-4.0d0) * (t * (a / c))
t_2 = (b / z) / c
if (b <= (-3.2d+192)) then
tmp = t_2
else if (b <= (-2.7d+170)) then
tmp = t_1
else if (b <= (-3d+17)) then
tmp = (b / c) / z
else if (b <= 2.8d+65) 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 t_1 = -4.0 * (t * (a / c));
double t_2 = (b / z) / c;
double tmp;
if (b <= -3.2e+192) {
tmp = t_2;
} else if (b <= -2.7e+170) {
tmp = t_1;
} else if (b <= -3e+17) {
tmp = (b / c) / z;
} else if (b <= 2.8e+65) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = -4.0 * (t * (a / c)) t_2 = (b / z) / c tmp = 0 if b <= -3.2e+192: tmp = t_2 elif b <= -2.7e+170: tmp = t_1 elif b <= -3e+17: tmp = (b / c) / z elif b <= 2.8e+65: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(-4.0 * Float64(t * Float64(a / c))) t_2 = Float64(Float64(b / z) / c) tmp = 0.0 if (b <= -3.2e+192) tmp = t_2; elseif (b <= -2.7e+170) tmp = t_1; elseif (b <= -3e+17) tmp = Float64(Float64(b / c) / z); elseif (b <= 2.8e+65) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = -4.0 * (t * (a / c)); t_2 = (b / z) / c; tmp = 0.0; if (b <= -3.2e+192) tmp = t_2; elseif (b <= -2.7e+170) tmp = t_1; elseif (b <= -3e+17) tmp = (b / c) / z; elseif (b <= 2.8e+65) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[b, -3.2e+192], t$95$2, If[LessEqual[b, -2.7e+170], t$95$1, If[LessEqual[b, -3e+17], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 2.8e+65], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot \frac{a}{c}\right)\\
t_2 := \frac{\frac{b}{z}}{c}\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+192}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{+170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{+17}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.20000000000000023e192 or 2.7999999999999999e65 < b Initial program 85.2%
associate-+l-85.2%
*-commutative85.2%
associate-*r*78.6%
*-commutative78.6%
associate-+l-78.6%
associate-*l*78.6%
associate-*l*83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in x around 0 70.9%
Taylor expanded in c around 0 85.6%
Taylor expanded in t around inf 68.0%
Taylor expanded in b around inf 65.9%
if -3.20000000000000023e192 < b < -2.7000000000000002e170 or -3e17 < b < 2.7999999999999999e65Initial program 77.1%
associate-+l-77.1%
*-commutative77.1%
associate-*r*77.7%
*-commutative77.7%
associate-+l-77.7%
associate-*l*77.7%
associate-*l*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in x around 0 83.7%
Taylor expanded in c around 0 88.0%
Taylor expanded in t around inf 75.9%
Taylor expanded in t around inf 43.0%
*-commutative43.0%
associate-/l*43.1%
Simplified43.1%
if -2.7000000000000002e170 < b < -3e17Initial program 87.7%
associate-+l-87.7%
*-commutative87.7%
associate-*r*87.7%
*-commutative87.7%
associate-+l-87.7%
associate-*l*87.7%
associate-*l*87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in x around 0 81.3%
Taylor expanded in c around 0 88.0%
Taylor expanded in b around inf 67.0%
associate-/r*67.9%
Simplified67.9%
Final simplification53.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (/ b z) c)))
(if (<= b -3.6e+192)
t_1
(if (<= b -2.7e+170)
(* -4.0 (/ (* a t) c))
(if (<= b -54000000000000.0)
(/ (/ b c) z)
(if (<= b 6.3e+65) (* -4.0 (* t (/ a c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b / z) / c;
double tmp;
if (b <= -3.6e+192) {
tmp = t_1;
} else if (b <= -2.7e+170) {
tmp = -4.0 * ((a * t) / c);
} else if (b <= -54000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 6.3e+65) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = (b / z) / c
if (b <= (-3.6d+192)) then
tmp = t_1
else if (b <= (-2.7d+170)) then
tmp = (-4.0d0) * ((a * t) / c)
else if (b <= (-54000000000000.0d0)) then
tmp = (b / c) / z
else if (b <= 6.3d+65) then
tmp = (-4.0d0) * (t * (a / c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b / z) / c;
double tmp;
if (b <= -3.6e+192) {
tmp = t_1;
} else if (b <= -2.7e+170) {
tmp = -4.0 * ((a * t) / c);
} else if (b <= -54000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 6.3e+65) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b / z) / c tmp = 0 if b <= -3.6e+192: tmp = t_1 elif b <= -2.7e+170: tmp = -4.0 * ((a * t) / c) elif b <= -54000000000000.0: tmp = (b / c) / z elif b <= 6.3e+65: tmp = -4.0 * (t * (a / c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b / z) / c) tmp = 0.0 if (b <= -3.6e+192) tmp = t_1; elseif (b <= -2.7e+170) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); elseif (b <= -54000000000000.0) tmp = Float64(Float64(b / c) / z); elseif (b <= 6.3e+65) tmp = Float64(-4.0 * Float64(t * Float64(a / c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b / z) / c; tmp = 0.0; if (b <= -3.6e+192) tmp = t_1; elseif (b <= -2.7e+170) tmp = -4.0 * ((a * t) / c); elseif (b <= -54000000000000.0) tmp = (b / c) / z; elseif (b <= 6.3e+65) tmp = -4.0 * (t * (a / c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[b, -3.6e+192], t$95$1, If[LessEqual[b, -2.7e+170], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -54000000000000.0], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 6.3e+65], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{b}{z}}{c}\\
\mathbf{if}\;b \leq -3.6 \cdot 10^{+192}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{+170}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;b \leq -54000000000000:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;b \leq 6.3 \cdot 10^{+65}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.6000000000000002e192 or 6.29999999999999997e65 < b Initial program 85.2%
associate-+l-85.2%
*-commutative85.2%
associate-*r*78.6%
*-commutative78.6%
associate-+l-78.6%
associate-*l*78.6%
associate-*l*83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in x around 0 70.9%
Taylor expanded in c around 0 85.6%
Taylor expanded in t around inf 68.0%
Taylor expanded in b around inf 65.9%
if -3.6000000000000002e192 < b < -2.7000000000000002e170Initial program 99.7%
associate-+l-99.7%
*-commutative99.7%
associate-*r*99.5%
*-commutative99.5%
associate-+l-99.5%
associate-*l*99.5%
associate-*l*99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around inf 100.0%
if -2.7000000000000002e170 < b < -5.4e13Initial program 87.7%
associate-+l-87.7%
*-commutative87.7%
associate-*r*87.7%
*-commutative87.7%
associate-+l-87.7%
associate-*l*87.7%
associate-*l*87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in x around 0 81.3%
Taylor expanded in c around 0 88.0%
Taylor expanded in b around inf 67.0%
associate-/r*67.9%
Simplified67.9%
if -5.4e13 < b < 6.29999999999999997e65Initial program 76.1%
associate-+l-76.1%
*-commutative76.1%
associate-*r*76.8%
*-commutative76.8%
associate-+l-76.8%
associate-*l*76.8%
associate-*l*79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in x around 0 83.0%
Taylor expanded in c around 0 87.5%
Taylor expanded in t around inf 74.9%
Taylor expanded in t around inf 40.6%
*-commutative40.6%
associate-/l*40.7%
Simplified40.7%
Final simplification53.0%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -5e-70) (not (<= z 6.6e+26))) (/ (- (/ b z) (* a (* t 4.0))) c) (/ (+ b (* x (* 9.0 y))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -5e-70) || !(z <= 6.6e+26)) {
tmp = ((b / z) - (a * (t * 4.0))) / c;
} else {
tmp = (b + (x * (9.0 * y))) / (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-5d-70)) .or. (.not. (z <= 6.6d+26))) then
tmp = ((b / z) - (a * (t * 4.0d0))) / c
else
tmp = (b + (x * (9.0d0 * y))) / (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 tmp;
if ((z <= -5e-70) || !(z <= 6.6e+26)) {
tmp = ((b / z) - (a * (t * 4.0))) / c;
} else {
tmp = (b + (x * (9.0 * y))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -5e-70) or not (z <= 6.6e+26): tmp = ((b / z) - (a * (t * 4.0))) / c else: tmp = (b + (x * (9.0 * y))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -5e-70) || !(z <= 6.6e+26)) tmp = Float64(Float64(Float64(b / z) - Float64(a * Float64(t * 4.0))) / c); else tmp = Float64(Float64(b + Float64(x * Float64(9.0 * y))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -5e-70) || ~((z <= 6.6e+26))) tmp = ((b / z) - (a * (t * 4.0))) / c; else tmp = (b + (x * (9.0 * y))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -5e-70], N[Not[LessEqual[z, 6.6e+26]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(a * N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{-70} \lor \neg \left(z \leq 6.6 \cdot 10^{+26}\right):\\
\;\;\;\;\frac{\frac{b}{z} - a \cdot \left(t \cdot 4\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + x \cdot \left(9 \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -4.9999999999999998e-70 or 6.59999999999999987e26 < z Initial program 65.5%
associate-+l-65.5%
*-commutative65.5%
associate-*r*62.3%
*-commutative62.3%
associate-+l-62.3%
associate-*l*62.3%
associate-*l*69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in x around 0 81.3%
Taylor expanded in c around 0 88.0%
Taylor expanded in x around 0 69.2%
*-commutative69.2%
associate-*r*69.2%
Simplified69.2%
if -4.9999999999999998e-70 < z < 6.59999999999999987e26Initial program 96.9%
associate-+l-96.9%
*-commutative96.9%
associate-*r*96.9%
*-commutative96.9%
associate-+l-96.9%
associate-*l*96.9%
associate-*l*95.4%
*-commutative95.4%
Simplified95.4%
Taylor expanded in x around inf 88.6%
associate-*r*88.6%
*-commutative88.6%
associate-*r*88.6%
Simplified88.6%
Final simplification78.7%
(FPCore (x y z t a b c) :precision binary64 (/ b (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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
code = b / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
def code(x, y, z, t, a, b, c): return b / (z * c)
function code(x, y, z, t, a, b, c) return Float64(b / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = b / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{b}{z \cdot c}
\end{array}
Initial program 80.8%
associate-+l-80.8%
*-commutative80.8%
associate-*r*79.2%
*-commutative79.2%
associate-+l-79.2%
associate-*l*79.2%
associate-*l*82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in b around inf 36.8%
*-commutative36.8%
Simplified36.8%
Final simplification36.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ b (* c z)))
(t_2 (* 4.0 (/ (* a t) c)))
(t_3 (* (* x 9.0) y))
(t_4 (+ (- t_3 (* (* (* z 4.0) t) a)) b))
(t_5 (/ t_4 (* z c)))
(t_6 (/ (+ (- t_3 (* (* z 4.0) (* t a))) b) (* z c))))
(if (< t_5 -1.100156740804105e-171)
t_6
(if (< t_5 0.0)
(/ (/ t_4 z) c)
(if (< t_5 1.1708877911747488e-53)
t_6
(if (< t_5 2.876823679546137e+130)
(- (+ (* (* 9.0 (/ y c)) (/ x z)) t_1) t_2)
(if (< t_5 1.3838515042456319e+158)
t_6
(- (+ (* 9.0 (* (/ y (* c z)) x)) t_1) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = b / (c * z);
double t_2 = 4.0 * ((a * t) / c);
double t_3 = (x * 9.0) * y;
double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
double t_5 = t_4 / (z * c);
double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
double tmp;
if (t_5 < -1.100156740804105e-171) {
tmp = t_6;
} else if (t_5 < 0.0) {
tmp = (t_4 / z) / c;
} else if (t_5 < 1.1708877911747488e-53) {
tmp = t_6;
} else if (t_5 < 2.876823679546137e+130) {
tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
} else if (t_5 < 1.3838515042456319e+158) {
tmp = t_6;
} else {
tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = b / (c * z)
t_2 = 4.0d0 * ((a * t) / c)
t_3 = (x * 9.0d0) * y
t_4 = (t_3 - (((z * 4.0d0) * t) * a)) + b
t_5 = t_4 / (z * c)
t_6 = ((t_3 - ((z * 4.0d0) * (t * a))) + b) / (z * c)
if (t_5 < (-1.100156740804105d-171)) then
tmp = t_6
else if (t_5 < 0.0d0) then
tmp = (t_4 / z) / c
else if (t_5 < 1.1708877911747488d-53) then
tmp = t_6
else if (t_5 < 2.876823679546137d+130) then
tmp = (((9.0d0 * (y / c)) * (x / z)) + t_1) - t_2
else if (t_5 < 1.3838515042456319d+158) then
tmp = t_6
else
tmp = ((9.0d0 * ((y / (c * z)) * x)) + t_1) - 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 t_1 = b / (c * z);
double t_2 = 4.0 * ((a * t) / c);
double t_3 = (x * 9.0) * y;
double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
double t_5 = t_4 / (z * c);
double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
double tmp;
if (t_5 < -1.100156740804105e-171) {
tmp = t_6;
} else if (t_5 < 0.0) {
tmp = (t_4 / z) / c;
} else if (t_5 < 1.1708877911747488e-53) {
tmp = t_6;
} else if (t_5 < 2.876823679546137e+130) {
tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
} else if (t_5 < 1.3838515042456319e+158) {
tmp = t_6;
} else {
tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = b / (c * z) t_2 = 4.0 * ((a * t) / c) t_3 = (x * 9.0) * y t_4 = (t_3 - (((z * 4.0) * t) * a)) + b t_5 = t_4 / (z * c) t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c) tmp = 0 if t_5 < -1.100156740804105e-171: tmp = t_6 elif t_5 < 0.0: tmp = (t_4 / z) / c elif t_5 < 1.1708877911747488e-53: tmp = t_6 elif t_5 < 2.876823679546137e+130: tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2 elif t_5 < 1.3838515042456319e+158: tmp = t_6 else: tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(b / Float64(c * z)) t_2 = Float64(4.0 * Float64(Float64(a * t) / c)) t_3 = Float64(Float64(x * 9.0) * y) t_4 = Float64(Float64(t_3 - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) t_5 = Float64(t_4 / Float64(z * c)) t_6 = Float64(Float64(Float64(t_3 - Float64(Float64(z * 4.0) * Float64(t * a))) + b) / Float64(z * c)) tmp = 0.0 if (t_5 < -1.100156740804105e-171) tmp = t_6; elseif (t_5 < 0.0) tmp = Float64(Float64(t_4 / z) / c); elseif (t_5 < 1.1708877911747488e-53) tmp = t_6; elseif (t_5 < 2.876823679546137e+130) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(y / c)) * Float64(x / z)) + t_1) - t_2); elseif (t_5 < 1.3838515042456319e+158) tmp = t_6; else tmp = Float64(Float64(Float64(9.0 * Float64(Float64(y / Float64(c * z)) * x)) + t_1) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = b / (c * z); t_2 = 4.0 * ((a * t) / c); t_3 = (x * 9.0) * y; t_4 = (t_3 - (((z * 4.0) * t) * a)) + b; t_5 = t_4 / (z * c); t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c); tmp = 0.0; if (t_5 < -1.100156740804105e-171) tmp = t_6; elseif (t_5 < 0.0) tmp = (t_4 / z) / c; elseif (t_5 < 1.1708877911747488e-53) tmp = t_6; elseif (t_5 < 2.876823679546137e+130) tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2; elseif (t_5 < 1.3838515042456319e+158) tmp = t_6; else tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t$95$3 - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$4 / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(t$95$3 - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$5, -1.100156740804105e-171], t$95$6, If[Less[t$95$5, 0.0], N[(N[(t$95$4 / z), $MachinePrecision] / c), $MachinePrecision], If[Less[t$95$5, 1.1708877911747488e-53], t$95$6, If[Less[t$95$5, 2.876823679546137e+130], N[(N[(N[(N[(9.0 * N[(y / c), $MachinePrecision]), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], If[Less[t$95$5, 1.3838515042456319e+158], t$95$6, N[(N[(N[(9.0 * N[(N[(y / N[(c * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b}{c \cdot z}\\
t_2 := 4 \cdot \frac{a \cdot t}{c}\\
t_3 := \left(x \cdot 9\right) \cdot y\\
t_4 := \left(t\_3 - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b\\
t_5 := \frac{t\_4}{z \cdot c}\\
t_6 := \frac{\left(t\_3 - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z \cdot c}\\
\mathbf{if}\;t\_5 < -1.100156740804105 \cdot 10^{-171}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t\_5 < 0:\\
\;\;\;\;\frac{\frac{t\_4}{z}}{c}\\
\mathbf{elif}\;t\_5 < 1.1708877911747488 \cdot 10^{-53}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t\_5 < 2.876823679546137 \cdot 10^{+130}:\\
\;\;\;\;\left(\left(9 \cdot \frac{y}{c}\right) \cdot \frac{x}{z} + t\_1\right) - t\_2\\
\mathbf{elif}\;t\_5 < 1.3838515042456319 \cdot 10^{+158}:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;\left(9 \cdot \left(\frac{y}{c \cdot z} \cdot x\right) + t\_1\right) - t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024130
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:alt
(if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) -1.100156740804105e-171) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 0.0) (/ (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.1708877911747488e-53) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 2.876823679546137e+130) (- (+ (* (* 9.0 (/ y c)) (/ x z)) (/ b (* c z))) (* 4.0 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.3838515042456319e+158) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (- (+ (* 9.0 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4.0 (/ (* a t) c))))))))
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))