
(FPCore (x y z t a b) :precision binary64 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
real(8) function code(x, y, z, t, a, b)
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
code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b): return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y)))) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
real(8) function code(x, y, z, t, a, b)
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
code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b): return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y)))) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.05e-13) (not (<= z 4800000000000.0)))
(+
(/ t (- b y))
(+
(* (/ x z) (/ y (- b y)))
(+ (/ a (- y b)) (* y (/ (- a t) (* z (pow (- b y) 2.0)))))))
(/ (fma x y (* z (- t a))) (fma z (- b y) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.05e-13) || !(z <= 4800000000000.0)) {
tmp = (t / (b - y)) + (((x / z) * (y / (b - y))) + ((a / (y - b)) + (y * ((a - t) / (z * pow((b - y), 2.0))))));
} else {
tmp = fma(x, y, (z * (t - a))) / fma(z, (b - y), y);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.05e-13) || !(z <= 4800000000000.0)) tmp = Float64(Float64(t / Float64(b - y)) + Float64(Float64(Float64(x / z) * Float64(y / Float64(b - y))) + Float64(Float64(a / Float64(y - b)) + Float64(y * Float64(Float64(a - t) / Float64(z * (Float64(b - y) ^ 2.0))))))); else tmp = Float64(fma(x, y, Float64(z * Float64(t - a))) / fma(z, Float64(b - y), y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.05e-13], N[Not[LessEqual[z, 4800000000000.0]], $MachinePrecision]], N[(N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x / z), $MachinePrecision] * N[(y / N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a / N[(y - b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a - t), $MachinePrecision] / N[(z * N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * N[(b - y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{-13} \lor \neg \left(z \leq 4800000000000\right):\\
\;\;\;\;\frac{t}{b - y} + \left(\frac{x}{z} \cdot \frac{y}{b - y} + \left(\frac{a}{y - b} + y \cdot \frac{a - t}{z \cdot {\left(b - y\right)}^{2}}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, y, z \cdot \left(t - a\right)\right)}{\mathsf{fma}\left(z, b - y, y\right)}\\
\end{array}
\end{array}
if z < -1.04999999999999994e-13 or 4.8e12 < z Initial program 40.6%
Taylor expanded in z around inf 58.8%
associate--l+58.8%
times-frac67.0%
associate-/l*93.4%
Simplified93.4%
if -1.04999999999999994e-13 < z < 4.8e12Initial program 91.4%
fma-define91.4%
+-commutative91.4%
fma-define91.4%
Simplified91.4%
Final simplification92.3%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.05e-13) (not (<= z 170000000000.0)))
(+
(/ t (- b y))
(+
(* (/ x z) (/ y (- b y)))
(+ (/ a (- y b)) (* y (/ (- a t) (* z (pow (- b y) 2.0)))))))
(/ (- (* y x) (* z (- a t))) (+ y (* z (- b y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.05e-13) || !(z <= 170000000000.0)) {
tmp = (t / (b - y)) + (((x / z) * (y / (b - y))) + ((a / (y - b)) + (y * ((a - t) / (z * pow((b - y), 2.0))))));
} else {
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((z <= (-1.05d-13)) .or. (.not. (z <= 170000000000.0d0))) then
tmp = (t / (b - y)) + (((x / z) * (y / (b - y))) + ((a / (y - b)) + (y * ((a - t) / (z * ((b - y) ** 2.0d0))))))
else
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.05e-13) || !(z <= 170000000000.0)) {
tmp = (t / (b - y)) + (((x / z) * (y / (b - y))) + ((a / (y - b)) + (y * ((a - t) / (z * Math.pow((b - y), 2.0))))));
} else {
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.05e-13) or not (z <= 170000000000.0): tmp = (t / (b - y)) + (((x / z) * (y / (b - y))) + ((a / (y - b)) + (y * ((a - t) / (z * math.pow((b - y), 2.0)))))) else: tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.05e-13) || !(z <= 170000000000.0)) tmp = Float64(Float64(t / Float64(b - y)) + Float64(Float64(Float64(x / z) * Float64(y / Float64(b - y))) + Float64(Float64(a / Float64(y - b)) + Float64(y * Float64(Float64(a - t) / Float64(z * (Float64(b - y) ^ 2.0))))))); else tmp = Float64(Float64(Float64(y * x) - Float64(z * Float64(a - t))) / Float64(y + Float64(z * Float64(b - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.05e-13) || ~((z <= 170000000000.0))) tmp = (t / (b - y)) + (((x / z) * (y / (b - y))) + ((a / (y - b)) + (y * ((a - t) / (z * ((b - y) ^ 2.0)))))); else tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.05e-13], N[Not[LessEqual[z, 170000000000.0]], $MachinePrecision]], N[(N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x / z), $MachinePrecision] * N[(y / N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a / N[(y - b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a - t), $MachinePrecision] / N[(z * N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * x), $MachinePrecision] - N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{-13} \lor \neg \left(z \leq 170000000000\right):\\
\;\;\;\;\frac{t}{b - y} + \left(\frac{x}{z} \cdot \frac{y}{b - y} + \left(\frac{a}{y - b} + y \cdot \frac{a - t}{z \cdot {\left(b - y\right)}^{2}}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot x - z \cdot \left(a - t\right)}{y + z \cdot \left(b - y\right)}\\
\end{array}
\end{array}
if z < -1.04999999999999994e-13 or 1.7e11 < z Initial program 40.6%
Taylor expanded in z around inf 58.8%
associate--l+58.8%
times-frac67.0%
associate-/l*93.4%
Simplified93.4%
if -1.04999999999999994e-13 < z < 1.7e11Initial program 91.4%
Final simplification92.3%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6e+16) (not (<= z 170000000.0)))
(+
(/ (- (* x (/ y (- b y))) (* y (/ (- t a) (pow (- b y) 2.0)))) z)
(/ (- a t) (- y b)))
(/ (- (* y x) (* z (- a t))) (+ y (* z (- b y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6e+16) || !(z <= 170000000.0)) {
tmp = (((x * (y / (b - y))) - (y * ((t - a) / pow((b - y), 2.0)))) / z) + ((a - t) / (y - b));
} else {
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((z <= (-6d+16)) .or. (.not. (z <= 170000000.0d0))) then
tmp = (((x * (y / (b - y))) - (y * ((t - a) / ((b - y) ** 2.0d0)))) / z) + ((a - t) / (y - b))
else
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6e+16) || !(z <= 170000000.0)) {
tmp = (((x * (y / (b - y))) - (y * ((t - a) / Math.pow((b - y), 2.0)))) / z) + ((a - t) / (y - b));
} else {
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6e+16) or not (z <= 170000000.0): tmp = (((x * (y / (b - y))) - (y * ((t - a) / math.pow((b - y), 2.0)))) / z) + ((a - t) / (y - b)) else: tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6e+16) || !(z <= 170000000.0)) tmp = Float64(Float64(Float64(Float64(x * Float64(y / Float64(b - y))) - Float64(y * Float64(Float64(t - a) / (Float64(b - y) ^ 2.0)))) / z) + Float64(Float64(a - t) / Float64(y - b))); else tmp = Float64(Float64(Float64(y * x) - Float64(z * Float64(a - t))) / Float64(y + Float64(z * Float64(b - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6e+16) || ~((z <= 170000000.0))) tmp = (((x * (y / (b - y))) - (y * ((t - a) / ((b - y) ^ 2.0)))) / z) + ((a - t) / (y - b)); else tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6e+16], N[Not[LessEqual[z, 170000000.0]], $MachinePrecision]], N[(N[(N[(N[(x * N[(y / N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(t - a), $MachinePrecision] / N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * x), $MachinePrecision] - N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+16} \lor \neg \left(z \leq 170000000\right):\\
\;\;\;\;\frac{x \cdot \frac{y}{b - y} - y \cdot \frac{t - a}{{\left(b - y\right)}^{2}}}{z} + \frac{a - t}{y - b}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot x - z \cdot \left(a - t\right)}{y + z \cdot \left(b - y\right)}\\
\end{array}
\end{array}
if z < -6e16 or 1.7e8 < z Initial program 39.5%
Taylor expanded in z around -inf 62.6%
associate--l+62.6%
mul-1-neg62.6%
distribute-lft-out--62.6%
associate-/l*66.0%
associate-/l*92.1%
div-sub92.1%
Simplified92.1%
if -6e16 < z < 1.7e8Initial program 89.8%
Final simplification90.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- b y))) (t_2 (+ y t_1)) (t_3 (/ (- a t) (- y b))))
(if (<= z -74000000.0)
(+ (+ t_3 (* x (/ y t_1))) (* y (/ (- a t) (* z (pow (- b y) 2.0)))))
(if (<= z 1.78e+53)
(* x (+ (/ y t_2) (/ (* z (- t a)) (* x t_2))))
t_3))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (b - y);
double t_2 = y + t_1;
double t_3 = (a - t) / (y - b);
double tmp;
if (z <= -74000000.0) {
tmp = (t_3 + (x * (y / t_1))) + (y * ((a - t) / (z * pow((b - y), 2.0))));
} else if (z <= 1.78e+53) {
tmp = x * ((y / t_2) + ((z * (t - a)) / (x * t_2)));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * (b - y)
t_2 = y + t_1
t_3 = (a - t) / (y - b)
if (z <= (-74000000.0d0)) then
tmp = (t_3 + (x * (y / t_1))) + (y * ((a - t) / (z * ((b - y) ** 2.0d0))))
else if (z <= 1.78d+53) then
tmp = x * ((y / t_2) + ((z * (t - a)) / (x * 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 t_1 = z * (b - y);
double t_2 = y + t_1;
double t_3 = (a - t) / (y - b);
double tmp;
if (z <= -74000000.0) {
tmp = (t_3 + (x * (y / t_1))) + (y * ((a - t) / (z * Math.pow((b - y), 2.0))));
} else if (z <= 1.78e+53) {
tmp = x * ((y / t_2) + ((z * (t - a)) / (x * t_2)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (b - y) t_2 = y + t_1 t_3 = (a - t) / (y - b) tmp = 0 if z <= -74000000.0: tmp = (t_3 + (x * (y / t_1))) + (y * ((a - t) / (z * math.pow((b - y), 2.0)))) elif z <= 1.78e+53: tmp = x * ((y / t_2) + ((z * (t - a)) / (x * t_2))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(b - y)) t_2 = Float64(y + t_1) t_3 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -74000000.0) tmp = Float64(Float64(t_3 + Float64(x * Float64(y / t_1))) + Float64(y * Float64(Float64(a - t) / Float64(z * (Float64(b - y) ^ 2.0))))); elseif (z <= 1.78e+53) tmp = Float64(x * Float64(Float64(y / t_2) + Float64(Float64(z * Float64(t - a)) / Float64(x * t_2)))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (b - y); t_2 = y + t_1; t_3 = (a - t) / (y - b); tmp = 0.0; if (z <= -74000000.0) tmp = (t_3 + (x * (y / t_1))) + (y * ((a - t) / (z * ((b - y) ^ 2.0)))); elseif (z <= 1.78e+53) tmp = x * ((y / t_2) + ((z * (t - a)) / (x * t_2))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -74000000.0], N[(N[(t$95$3 + N[(x * N[(y / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a - t), $MachinePrecision] / N[(z * N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.78e+53], N[(x * N[(N[(y / t$95$2), $MachinePrecision] + N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(x * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b - y\right)\\
t_2 := y + t\_1\\
t_3 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -74000000:\\
\;\;\;\;\left(t\_3 + x \cdot \frac{y}{t\_1}\right) + y \cdot \frac{a - t}{z \cdot {\left(b - y\right)}^{2}}\\
\mathbf{elif}\;z \leq 1.78 \cdot 10^{+53}:\\
\;\;\;\;x \cdot \left(\frac{y}{t\_2} + \frac{z \cdot \left(t - a\right)}{x \cdot t\_2}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -7.4e7Initial program 40.5%
Taylor expanded in z around inf 54.8%
associate--r+54.8%
+-commutative54.8%
associate--l+54.8%
associate-/l*56.6%
div-sub56.6%
associate-/l*76.8%
Simplified76.8%
if -7.4e7 < z < 1.77999999999999999e53Initial program 88.8%
Taylor expanded in x around inf 90.5%
if 1.77999999999999999e53 < z Initial program 37.5%
Taylor expanded in z around inf 92.9%
Final simplification88.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- t a)))
(t_2 (/ t_1 (+ y (* z (- b y)))))
(t_3 (/ (- a t) (- y b)))
(t_4 (/ (- (* y x) (* z a)) y)))
(if (<= z -6e+16)
t_3
(if (<= z -7.8e-92)
t_2
(if (<= z -3.3e-251)
t_4
(if (<= z -2.05e-288)
t_2
(if (<= z 7e-261)
(/ (* y x) (+ y (* z b)))
(if (<= z 1e-197)
(/ (* x (+ y (/ t_1 x))) y)
(if (<= z 7.8e-60)
t_2
(if (<= z 7.5e-50)
t_4
(if (<= z 2.1e-20)
t_2
(if (<= z 1.78e+53)
(/ 1.0 (/ (- 1.0 z) x))
t_3))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (t - a);
double t_2 = t_1 / (y + (z * (b - y)));
double t_3 = (a - t) / (y - b);
double t_4 = ((y * x) - (z * a)) / y;
double tmp;
if (z <= -6e+16) {
tmp = t_3;
} else if (z <= -7.8e-92) {
tmp = t_2;
} else if (z <= -3.3e-251) {
tmp = t_4;
} else if (z <= -2.05e-288) {
tmp = t_2;
} else if (z <= 7e-261) {
tmp = (y * x) / (y + (z * b));
} else if (z <= 1e-197) {
tmp = (x * (y + (t_1 / x))) / y;
} else if (z <= 7.8e-60) {
tmp = t_2;
} else if (z <= 7.5e-50) {
tmp = t_4;
} else if (z <= 2.1e-20) {
tmp = t_2;
} else if (z <= 1.78e+53) {
tmp = 1.0 / ((1.0 - z) / x);
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = z * (t - a)
t_2 = t_1 / (y + (z * (b - y)))
t_3 = (a - t) / (y - b)
t_4 = ((y * x) - (z * a)) / y
if (z <= (-6d+16)) then
tmp = t_3
else if (z <= (-7.8d-92)) then
tmp = t_2
else if (z <= (-3.3d-251)) then
tmp = t_4
else if (z <= (-2.05d-288)) then
tmp = t_2
else if (z <= 7d-261) then
tmp = (y * x) / (y + (z * b))
else if (z <= 1d-197) then
tmp = (x * (y + (t_1 / x))) / y
else if (z <= 7.8d-60) then
tmp = t_2
else if (z <= 7.5d-50) then
tmp = t_4
else if (z <= 2.1d-20) then
tmp = t_2
else if (z <= 1.78d+53) then
tmp = 1.0d0 / ((1.0d0 - z) / x)
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 t_1 = z * (t - a);
double t_2 = t_1 / (y + (z * (b - y)));
double t_3 = (a - t) / (y - b);
double t_4 = ((y * x) - (z * a)) / y;
double tmp;
if (z <= -6e+16) {
tmp = t_3;
} else if (z <= -7.8e-92) {
tmp = t_2;
} else if (z <= -3.3e-251) {
tmp = t_4;
} else if (z <= -2.05e-288) {
tmp = t_2;
} else if (z <= 7e-261) {
tmp = (y * x) / (y + (z * b));
} else if (z <= 1e-197) {
tmp = (x * (y + (t_1 / x))) / y;
} else if (z <= 7.8e-60) {
tmp = t_2;
} else if (z <= 7.5e-50) {
tmp = t_4;
} else if (z <= 2.1e-20) {
tmp = t_2;
} else if (z <= 1.78e+53) {
tmp = 1.0 / ((1.0 - z) / x);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (t - a) t_2 = t_1 / (y + (z * (b - y))) t_3 = (a - t) / (y - b) t_4 = ((y * x) - (z * a)) / y tmp = 0 if z <= -6e+16: tmp = t_3 elif z <= -7.8e-92: tmp = t_2 elif z <= -3.3e-251: tmp = t_4 elif z <= -2.05e-288: tmp = t_2 elif z <= 7e-261: tmp = (y * x) / (y + (z * b)) elif z <= 1e-197: tmp = (x * (y + (t_1 / x))) / y elif z <= 7.8e-60: tmp = t_2 elif z <= 7.5e-50: tmp = t_4 elif z <= 2.1e-20: tmp = t_2 elif z <= 1.78e+53: tmp = 1.0 / ((1.0 - z) / x) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(t - a)) t_2 = Float64(t_1 / Float64(y + Float64(z * Float64(b - y)))) t_3 = Float64(Float64(a - t) / Float64(y - b)) t_4 = Float64(Float64(Float64(y * x) - Float64(z * a)) / y) tmp = 0.0 if (z <= -6e+16) tmp = t_3; elseif (z <= -7.8e-92) tmp = t_2; elseif (z <= -3.3e-251) tmp = t_4; elseif (z <= -2.05e-288) tmp = t_2; elseif (z <= 7e-261) tmp = Float64(Float64(y * x) / Float64(y + Float64(z * b))); elseif (z <= 1e-197) tmp = Float64(Float64(x * Float64(y + Float64(t_1 / x))) / y); elseif (z <= 7.8e-60) tmp = t_2; elseif (z <= 7.5e-50) tmp = t_4; elseif (z <= 2.1e-20) tmp = t_2; elseif (z <= 1.78e+53) tmp = Float64(1.0 / Float64(Float64(1.0 - z) / x)); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (t - a); t_2 = t_1 / (y + (z * (b - y))); t_3 = (a - t) / (y - b); t_4 = ((y * x) - (z * a)) / y; tmp = 0.0; if (z <= -6e+16) tmp = t_3; elseif (z <= -7.8e-92) tmp = t_2; elseif (z <= -3.3e-251) tmp = t_4; elseif (z <= -2.05e-288) tmp = t_2; elseif (z <= 7e-261) tmp = (y * x) / (y + (z * b)); elseif (z <= 1e-197) tmp = (x * (y + (t_1 / x))) / y; elseif (z <= 7.8e-60) tmp = t_2; elseif (z <= 7.5e-50) tmp = t_4; elseif (z <= 2.1e-20) tmp = t_2; elseif (z <= 1.78e+53) tmp = 1.0 / ((1.0 - z) / x); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(y * x), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[z, -6e+16], t$95$3, If[LessEqual[z, -7.8e-92], t$95$2, If[LessEqual[z, -3.3e-251], t$95$4, If[LessEqual[z, -2.05e-288], t$95$2, If[LessEqual[z, 7e-261], N[(N[(y * x), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-197], N[(N[(x * N[(y + N[(t$95$1 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 7.8e-60], t$95$2, If[LessEqual[z, 7.5e-50], t$95$4, If[LessEqual[z, 2.1e-20], t$95$2, If[LessEqual[z, 1.78e+53], N[(1.0 / N[(N[(1.0 - z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(t - a\right)\\
t_2 := \frac{t\_1}{y + z \cdot \left(b - y\right)}\\
t_3 := \frac{a - t}{y - b}\\
t_4 := \frac{y \cdot x - z \cdot a}{y}\\
\mathbf{if}\;z \leq -6 \cdot 10^{+16}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -7.8 \cdot 10^{-92}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{-251}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{-288}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-261}:\\
\;\;\;\;\frac{y \cdot x}{y + z \cdot b}\\
\mathbf{elif}\;z \leq 10^{-197}:\\
\;\;\;\;\frac{x \cdot \left(y + \frac{t\_1}{x}\right)}{y}\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{-60}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-50}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.78 \cdot 10^{+53}:\\
\;\;\;\;\frac{1}{\frac{1 - z}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -6e16 or 1.77999999999999999e53 < z Initial program 37.9%
Taylor expanded in z around inf 83.4%
if -6e16 < z < -7.7999999999999993e-92 or -3.3e-251 < z < -2.05000000000000004e-288 or 9.9999999999999999e-198 < z < 7.8000000000000004e-60 or 7.5e-50 < z < 2.0999999999999999e-20Initial program 86.7%
Taylor expanded in x around 0 68.3%
if -7.7999999999999993e-92 < z < -3.3e-251 or 7.8000000000000004e-60 < z < 7.5e-50Initial program 94.9%
Taylor expanded in t around 0 85.1%
+-commutative85.1%
mul-1-neg85.1%
unsub-neg85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in z around 0 66.1%
if -2.05000000000000004e-288 < z < 6.9999999999999995e-261Initial program 94.1%
Taylor expanded in t around 0 94.0%
+-commutative94.0%
mul-1-neg94.0%
unsub-neg94.0%
*-commutative94.0%
*-commutative94.0%
Simplified94.0%
Taylor expanded in b around inf 94.0%
*-commutative94.0%
Simplified94.0%
Taylor expanded in x around inf 88.0%
if 6.9999999999999995e-261 < z < 9.9999999999999999e-198Initial program 90.5%
Taylor expanded in x around inf 90.3%
Taylor expanded in z around 0 76.4%
if 2.0999999999999999e-20 < z < 1.77999999999999999e53Initial program 64.1%
fma-define64.1%
clear-num64.1%
inv-pow64.1%
+-commutative64.1%
fma-undefine64.1%
fma-define64.1%
+-commutative64.1%
fma-define64.1%
Applied egg-rr64.1%
unpow-164.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in y around inf 65.4%
neg-mul-165.4%
Simplified65.4%
Final simplification76.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (* z (- b y)))))
(if (or (<= z -2.6e+60) (not (<= z 1.85e+53)))
(/ (- a t) (- y b))
(* x (+ (/ y t_1) (/ (* z (- t a)) (* x t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double tmp;
if ((z <= -2.6e+60) || !(z <= 1.85e+53)) {
tmp = (a - t) / (y - b);
} else {
tmp = x * ((y / t_1) + ((z * (t - a)) / (x * t_1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = y + (z * (b - y))
if ((z <= (-2.6d+60)) .or. (.not. (z <= 1.85d+53))) then
tmp = (a - t) / (y - b)
else
tmp = x * ((y / t_1) + ((z * (t - a)) / (x * 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 t_1 = y + (z * (b - y));
double tmp;
if ((z <= -2.6e+60) || !(z <= 1.85e+53)) {
tmp = (a - t) / (y - b);
} else {
tmp = x * ((y / t_1) + ((z * (t - a)) / (x * t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) tmp = 0 if (z <= -2.6e+60) or not (z <= 1.85e+53): tmp = (a - t) / (y - b) else: tmp = x * ((y / t_1) + ((z * (t - a)) / (x * t_1))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(z * Float64(b - y))) tmp = 0.0 if ((z <= -2.6e+60) || !(z <= 1.85e+53)) tmp = Float64(Float64(a - t) / Float64(y - b)); else tmp = Float64(x * Float64(Float64(y / t_1) + Float64(Float64(z * Float64(t - a)) / Float64(x * t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (z * (b - y)); tmp = 0.0; if ((z <= -2.6e+60) || ~((z <= 1.85e+53))) tmp = (a - t) / (y - b); else tmp = x * ((y / t_1) + ((z * (t - a)) / (x * t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[z, -2.6e+60], N[Not[LessEqual[z, 1.85e+53]], $MachinePrecision]], N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / t$95$1), $MachinePrecision] + N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \left(b - y\right)\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{+60} \lor \neg \left(z \leq 1.85 \cdot 10^{+53}\right):\\
\;\;\;\;\frac{a - t}{y - b}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{t\_1} + \frac{z \cdot \left(t - a\right)}{x \cdot t\_1}\right)\\
\end{array}
\end{array}
if z < -2.60000000000000008e60 or 1.85e53 < z Initial program 36.6%
Taylor expanded in z around inf 87.7%
if -2.60000000000000008e60 < z < 1.85e53Initial program 86.5%
Taylor expanded in x around inf 87.6%
Final simplification87.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) y)) (t_2 (/ x (- 1.0 z))))
(if (<= y -1.15e+198)
t_2
(if (<= y -2.5e+142)
t_1
(if (<= y -7.5e+58)
t_2
(if (<= y -1.8e+25)
t_1
(if (or (<= y -1.7e-31) (not (<= y 3.1e+37)))
t_2
(/ (- t a) b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / y;
double t_2 = x / (1.0 - z);
double tmp;
if (y <= -1.15e+198) {
tmp = t_2;
} else if (y <= -2.5e+142) {
tmp = t_1;
} else if (y <= -7.5e+58) {
tmp = t_2;
} else if (y <= -1.8e+25) {
tmp = t_1;
} else if ((y <= -1.7e-31) || !(y <= 3.1e+37)) {
tmp = t_2;
} else {
tmp = (t - a) / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a - t) / y
t_2 = x / (1.0d0 - z)
if (y <= (-1.15d+198)) then
tmp = t_2
else if (y <= (-2.5d+142)) then
tmp = t_1
else if (y <= (-7.5d+58)) then
tmp = t_2
else if (y <= (-1.8d+25)) then
tmp = t_1
else if ((y <= (-1.7d-31)) .or. (.not. (y <= 3.1d+37))) then
tmp = t_2
else
tmp = (t - a) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / y;
double t_2 = x / (1.0 - z);
double tmp;
if (y <= -1.15e+198) {
tmp = t_2;
} else if (y <= -2.5e+142) {
tmp = t_1;
} else if (y <= -7.5e+58) {
tmp = t_2;
} else if (y <= -1.8e+25) {
tmp = t_1;
} else if ((y <= -1.7e-31) || !(y <= 3.1e+37)) {
tmp = t_2;
} else {
tmp = (t - a) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / y t_2 = x / (1.0 - z) tmp = 0 if y <= -1.15e+198: tmp = t_2 elif y <= -2.5e+142: tmp = t_1 elif y <= -7.5e+58: tmp = t_2 elif y <= -1.8e+25: tmp = t_1 elif (y <= -1.7e-31) or not (y <= 3.1e+37): tmp = t_2 else: tmp = (t - a) / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / y) t_2 = Float64(x / Float64(1.0 - z)) tmp = 0.0 if (y <= -1.15e+198) tmp = t_2; elseif (y <= -2.5e+142) tmp = t_1; elseif (y <= -7.5e+58) tmp = t_2; elseif (y <= -1.8e+25) tmp = t_1; elseif ((y <= -1.7e-31) || !(y <= 3.1e+37)) tmp = t_2; else tmp = Float64(Float64(t - a) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / y; t_2 = x / (1.0 - z); tmp = 0.0; if (y <= -1.15e+198) tmp = t_2; elseif (y <= -2.5e+142) tmp = t_1; elseif (y <= -7.5e+58) tmp = t_2; elseif (y <= -1.8e+25) tmp = t_1; elseif ((y <= -1.7e-31) || ~((y <= 3.1e+37))) tmp = t_2; else tmp = (t - a) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.15e+198], t$95$2, If[LessEqual[y, -2.5e+142], t$95$1, If[LessEqual[y, -7.5e+58], t$95$2, If[LessEqual[y, -1.8e+25], t$95$1, If[Or[LessEqual[y, -1.7e-31], N[Not[LessEqual[y, 3.1e+37]], $MachinePrecision]], t$95$2, N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y}\\
t_2 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -1.15 \cdot 10^{+198}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.5 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{+58}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-31} \lor \neg \left(y \leq 3.1 \cdot 10^{+37}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{t - a}{b}\\
\end{array}
\end{array}
if y < -1.15e198 or -2.5000000000000001e142 < y < -7.5000000000000001e58 or -1.80000000000000008e25 < y < -1.7000000000000001e-31 or 3.1000000000000002e37 < y Initial program 56.7%
Taylor expanded in y around inf 62.0%
mul-1-neg62.0%
unsub-neg62.0%
Simplified62.0%
if -1.15e198 < y < -2.5000000000000001e142 or -7.5000000000000001e58 < y < -1.80000000000000008e25Initial program 57.0%
Taylor expanded in z around inf 66.5%
Taylor expanded in b around 0 55.5%
associate-*r/55.5%
mul-1-neg55.5%
Simplified55.5%
if -1.7000000000000001e-31 < y < 3.1000000000000002e37Initial program 78.8%
Taylor expanded in y around 0 53.6%
Final simplification57.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (* z (- b y)))) (t_2 (/ (- a t) (- y b))))
(if (<= z -6.5e+16)
t_2
(if (<= z -1.55e-91)
(/ (* z (- t a)) t_1)
(if (<= z -6.8e-221)
(/ (- (* y x) (* z a)) (+ y (* z b)))
(if (<= z 1.78e+53) (/ (+ (* y x) (* z t)) t_1) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -6.5e+16) {
tmp = t_2;
} else if (z <= -1.55e-91) {
tmp = (z * (t - a)) / t_1;
} else if (z <= -6.8e-221) {
tmp = ((y * x) - (z * a)) / (y + (z * b));
} else if (z <= 1.78e+53) {
tmp = ((y * x) + (z * t)) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y + (z * (b - y))
t_2 = (a - t) / (y - b)
if (z <= (-6.5d+16)) then
tmp = t_2
else if (z <= (-1.55d-91)) then
tmp = (z * (t - a)) / t_1
else if (z <= (-6.8d-221)) then
tmp = ((y * x) - (z * a)) / (y + (z * b))
else if (z <= 1.78d+53) then
tmp = ((y * x) + (z * t)) / 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 t_1 = y + (z * (b - y));
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -6.5e+16) {
tmp = t_2;
} else if (z <= -1.55e-91) {
tmp = (z * (t - a)) / t_1;
} else if (z <= -6.8e-221) {
tmp = ((y * x) - (z * a)) / (y + (z * b));
} else if (z <= 1.78e+53) {
tmp = ((y * x) + (z * t)) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) t_2 = (a - t) / (y - b) tmp = 0 if z <= -6.5e+16: tmp = t_2 elif z <= -1.55e-91: tmp = (z * (t - a)) / t_1 elif z <= -6.8e-221: tmp = ((y * x) - (z * a)) / (y + (z * b)) elif z <= 1.78e+53: tmp = ((y * x) + (z * t)) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(z * Float64(b - y))) t_2 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -6.5e+16) tmp = t_2; elseif (z <= -1.55e-91) tmp = Float64(Float64(z * Float64(t - a)) / t_1); elseif (z <= -6.8e-221) tmp = Float64(Float64(Float64(y * x) - Float64(z * a)) / Float64(y + Float64(z * b))); elseif (z <= 1.78e+53) tmp = Float64(Float64(Float64(y * x) + Float64(z * t)) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (z * (b - y)); t_2 = (a - t) / (y - b); tmp = 0.0; if (z <= -6.5e+16) tmp = t_2; elseif (z <= -1.55e-91) tmp = (z * (t - a)) / t_1; elseif (z <= -6.8e-221) tmp = ((y * x) - (z * a)) / (y + (z * b)); elseif (z <= 1.78e+53) tmp = ((y * x) + (z * t)) / t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+16], t$95$2, If[LessEqual[z, -1.55e-91], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, -6.8e-221], N[(N[(N[(y * x), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.78e+53], N[(N[(N[(y * x), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \left(b - y\right)\\
t_2 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+16}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{-91}:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{t\_1}\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-221}:\\
\;\;\;\;\frac{y \cdot x - z \cdot a}{y + z \cdot b}\\
\mathbf{elif}\;z \leq 1.78 \cdot 10^{+53}:\\
\;\;\;\;\frac{y \cdot x + z \cdot t}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -6.5e16 or 1.77999999999999999e53 < z Initial program 37.9%
Taylor expanded in z around inf 83.4%
if -6.5e16 < z < -1.5499999999999999e-91Initial program 82.6%
Taylor expanded in x around 0 76.4%
if -1.5499999999999999e-91 < z < -6.8000000000000003e-221Initial program 93.4%
Taylor expanded in t around 0 80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in b around inf 80.5%
*-commutative80.5%
Simplified80.5%
if -6.8000000000000003e-221 < z < 1.77999999999999999e53Initial program 88.7%
Taylor expanded in a around 0 71.9%
Final simplification78.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (+ y (/ (* z (- t a)) x))) y)) (t_2 (/ (- a t) (- y b))))
(if (<= z -4.8e-37)
t_2
(if (<= z -9.6e-289)
t_1
(if (<= z 2.6e-262)
(/ (* y x) (+ y (* z b)))
(if (<= z 4.5e-14) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (y + ((z * (t - a)) / x))) / y;
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -4.8e-37) {
tmp = t_2;
} else if (z <= -9.6e-289) {
tmp = t_1;
} else if (z <= 2.6e-262) {
tmp = (y * x) / (y + (z * b));
} else if (z <= 4.5e-14) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * (y + ((z * (t - a)) / x))) / y
t_2 = (a - t) / (y - b)
if (z <= (-4.8d-37)) then
tmp = t_2
else if (z <= (-9.6d-289)) then
tmp = t_1
else if (z <= 2.6d-262) then
tmp = (y * x) / (y + (z * b))
else if (z <= 4.5d-14) 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 t_1 = (x * (y + ((z * (t - a)) / x))) / y;
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -4.8e-37) {
tmp = t_2;
} else if (z <= -9.6e-289) {
tmp = t_1;
} else if (z <= 2.6e-262) {
tmp = (y * x) / (y + (z * b));
} else if (z <= 4.5e-14) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (y + ((z * (t - a)) / x))) / y t_2 = (a - t) / (y - b) tmp = 0 if z <= -4.8e-37: tmp = t_2 elif z <= -9.6e-289: tmp = t_1 elif z <= 2.6e-262: tmp = (y * x) / (y + (z * b)) elif z <= 4.5e-14: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64(y + Float64(Float64(z * Float64(t - a)) / x))) / y) t_2 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -4.8e-37) tmp = t_2; elseif (z <= -9.6e-289) tmp = t_1; elseif (z <= 2.6e-262) tmp = Float64(Float64(y * x) / Float64(y + Float64(z * b))); elseif (z <= 4.5e-14) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (y + ((z * (t - a)) / x))) / y; t_2 = (a - t) / (y - b); tmp = 0.0; if (z <= -4.8e-37) tmp = t_2; elseif (z <= -9.6e-289) tmp = t_1; elseif (z <= 2.6e-262) tmp = (y * x) / (y + (z * b)); elseif (z <= 4.5e-14) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(y + N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.8e-37], t$95$2, If[LessEqual[z, -9.6e-289], t$95$1, If[LessEqual[z, 2.6e-262], N[(N[(y * x), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-14], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(y + \frac{z \cdot \left(t - a\right)}{x}\right)}{y}\\
t_2 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{-37}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -9.6 \cdot 10^{-289}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-262}:\\
\;\;\;\;\frac{y \cdot x}{y + z \cdot b}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -4.79999999999999982e-37 or 4.4999999999999998e-14 < z Initial program 43.0%
Taylor expanded in z around inf 78.0%
if -4.79999999999999982e-37 < z < -9.59999999999999975e-289 or 2.5999999999999999e-262 < z < 4.4999999999999998e-14Initial program 90.7%
Taylor expanded in x around inf 85.5%
Taylor expanded in z around 0 60.2%
if -9.59999999999999975e-289 < z < 2.5999999999999999e-262Initial program 94.1%
Taylor expanded in t around 0 94.0%
+-commutative94.0%
mul-1-neg94.0%
unsub-neg94.0%
*-commutative94.0%
*-commutative94.0%
Simplified94.0%
Taylor expanded in b around inf 94.0%
*-commutative94.0%
Simplified94.0%
Taylor expanded in x around inf 88.0%
Final simplification70.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- (* y x) (* z a)) y)) (t_2 (/ (- a t) (- y b))))
(if (<= z -7.2e-38)
t_2
(if (<= z -4e-288)
t_1
(if (<= z 1.55e-228)
(/ (* y x) (+ y (* z b)))
(if (<= z 8.5e-11) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y * x) - (z * a)) / y;
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -7.2e-38) {
tmp = t_2;
} else if (z <= -4e-288) {
tmp = t_1;
} else if (z <= 1.55e-228) {
tmp = (y * x) / (y + (z * b));
} else if (z <= 8.5e-11) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((y * x) - (z * a)) / y
t_2 = (a - t) / (y - b)
if (z <= (-7.2d-38)) then
tmp = t_2
else if (z <= (-4d-288)) then
tmp = t_1
else if (z <= 1.55d-228) then
tmp = (y * x) / (y + (z * b))
else if (z <= 8.5d-11) 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 t_1 = ((y * x) - (z * a)) / y;
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -7.2e-38) {
tmp = t_2;
} else if (z <= -4e-288) {
tmp = t_1;
} else if (z <= 1.55e-228) {
tmp = (y * x) / (y + (z * b));
} else if (z <= 8.5e-11) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y * x) - (z * a)) / y t_2 = (a - t) / (y - b) tmp = 0 if z <= -7.2e-38: tmp = t_2 elif z <= -4e-288: tmp = t_1 elif z <= 1.55e-228: tmp = (y * x) / (y + (z * b)) elif z <= 8.5e-11: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y * x) - Float64(z * a)) / y) t_2 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -7.2e-38) tmp = t_2; elseif (z <= -4e-288) tmp = t_1; elseif (z <= 1.55e-228) tmp = Float64(Float64(y * x) / Float64(y + Float64(z * b))); elseif (z <= 8.5e-11) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y * x) - (z * a)) / y; t_2 = (a - t) / (y - b); tmp = 0.0; if (z <= -7.2e-38) tmp = t_2; elseif (z <= -4e-288) tmp = t_1; elseif (z <= 1.55e-228) tmp = (y * x) / (y + (z * b)); elseif (z <= 8.5e-11) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y * x), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.2e-38], t$95$2, If[LessEqual[z, -4e-288], t$95$1, If[LessEqual[z, 1.55e-228], N[(N[(y * x), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-11], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot x - z \cdot a}{y}\\
t_2 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -7.2 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-288}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-228}:\\
\;\;\;\;\frac{y \cdot x}{y + z \cdot b}\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -7.2000000000000001e-38 or 8.50000000000000037e-11 < z Initial program 43.0%
Taylor expanded in z around inf 78.0%
if -7.2000000000000001e-38 < z < -4.00000000000000023e-288 or 1.5499999999999999e-228 < z < 8.50000000000000037e-11Initial program 90.6%
Taylor expanded in t around 0 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in z around 0 50.9%
if -4.00000000000000023e-288 < z < 1.5499999999999999e-228Initial program 92.9%
Taylor expanded in t around 0 82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in b around inf 82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in x around inf 75.4%
Final simplification66.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))))
(if (<= z -6e+16)
t_1
(if (<= z -9e-92)
(/ (* z (- t a)) (+ y (* z (- b y))))
(if (<= z 2.2) (/ (- (* y x) (* z a)) (+ y (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -6e+16) {
tmp = t_1;
} else if (z <= -9e-92) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} else if (z <= 2.2) {
tmp = ((y * x) - (z * a)) / (y + (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = (a - t) / (y - b)
if (z <= (-6d+16)) then
tmp = t_1
else if (z <= (-9d-92)) then
tmp = (z * (t - a)) / (y + (z * (b - y)))
else if (z <= 2.2d0) then
tmp = ((y * x) - (z * a)) / (y + (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -6e+16) {
tmp = t_1;
} else if (z <= -9e-92) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} else if (z <= 2.2) {
tmp = ((y * x) - (z * a)) / (y + (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) tmp = 0 if z <= -6e+16: tmp = t_1 elif z <= -9e-92: tmp = (z * (t - a)) / (y + (z * (b - y))) elif z <= 2.2: tmp = ((y * x) - (z * a)) / (y + (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -6e+16) tmp = t_1; elseif (z <= -9e-92) tmp = Float64(Float64(z * Float64(t - a)) / Float64(y + Float64(z * Float64(b - y)))); elseif (z <= 2.2) tmp = Float64(Float64(Float64(y * x) - Float64(z * a)) / Float64(y + Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); tmp = 0.0; if (z <= -6e+16) tmp = t_1; elseif (z <= -9e-92) tmp = (z * (t - a)) / (y + (z * (b - y))); elseif (z <= 2.2) tmp = ((y * x) - (z * a)) / (y + (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6e+16], t$95$1, If[LessEqual[z, -9e-92], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2], N[(N[(N[(y * x), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -6 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-92}:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{elif}\;z \leq 2.2:\\
\;\;\;\;\frac{y \cdot x - z \cdot a}{y + z \cdot b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6e16 or 2.2000000000000002 < z Initial program 39.5%
Taylor expanded in z around inf 81.1%
if -6e16 < z < -9.0000000000000001e-92Initial program 82.6%
Taylor expanded in x around 0 76.4%
if -9.0000000000000001e-92 < z < 2.2000000000000002Initial program 90.8%
Taylor expanded in t around 0 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in b around inf 69.5%
*-commutative69.5%
Simplified69.5%
Final simplification75.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -3.4e+50) (not (<= z 2.4e+53))) (/ (- a t) (- y b)) (/ (- (* y x) (* z (- a t))) (+ y (* z (- b y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.4e+50) || !(z <= 2.4e+53)) {
tmp = (a - t) / (y - b);
} else {
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((z <= (-3.4d+50)) .or. (.not. (z <= 2.4d+53))) then
tmp = (a - t) / (y - b)
else
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.4e+50) || !(z <= 2.4e+53)) {
tmp = (a - t) / (y - b);
} else {
tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -3.4e+50) or not (z <= 2.4e+53): tmp = (a - t) / (y - b) else: tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.4e+50) || !(z <= 2.4e+53)) tmp = Float64(Float64(a - t) / Float64(y - b)); else tmp = Float64(Float64(Float64(y * x) - Float64(z * Float64(a - t))) / Float64(y + Float64(z * Float64(b - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -3.4e+50) || ~((z <= 2.4e+53))) tmp = (a - t) / (y - b); else tmp = ((y * x) - (z * (a - t))) / (y + (z * (b - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.4e+50], N[Not[LessEqual[z, 2.4e+53]], $MachinePrecision]], N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * x), $MachinePrecision] - N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+50} \lor \neg \left(z \leq 2.4 \cdot 10^{+53}\right):\\
\;\;\;\;\frac{a - t}{y - b}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot x - z \cdot \left(a - t\right)}{y + z \cdot \left(b - y\right)}\\
\end{array}
\end{array}
if z < -3.3999999999999998e50 or 2.4e53 < z Initial program 36.6%
Taylor expanded in z around inf 87.7%
if -3.3999999999999998e50 < z < 2.4e53Initial program 86.5%
Final simplification87.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (- 1.0 z))))
(if (<= y -4.5e+58)
t_1
(if (<= y -3.5e+25)
(/ a (- y b))
(if (or (<= y -2.3e-31) (not (<= y 2.7e+37))) t_1 (/ (- t a) b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 - z);
double tmp;
if (y <= -4.5e+58) {
tmp = t_1;
} else if (y <= -3.5e+25) {
tmp = a / (y - b);
} else if ((y <= -2.3e-31) || !(y <= 2.7e+37)) {
tmp = t_1;
} else {
tmp = (t - a) / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x / (1.0d0 - z)
if (y <= (-4.5d+58)) then
tmp = t_1
else if (y <= (-3.5d+25)) then
tmp = a / (y - b)
else if ((y <= (-2.3d-31)) .or. (.not. (y <= 2.7d+37))) then
tmp = t_1
else
tmp = (t - a) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 - z);
double tmp;
if (y <= -4.5e+58) {
tmp = t_1;
} else if (y <= -3.5e+25) {
tmp = a / (y - b);
} else if ((y <= -2.3e-31) || !(y <= 2.7e+37)) {
tmp = t_1;
} else {
tmp = (t - a) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 - z) tmp = 0 if y <= -4.5e+58: tmp = t_1 elif y <= -3.5e+25: tmp = a / (y - b) elif (y <= -2.3e-31) or not (y <= 2.7e+37): tmp = t_1 else: tmp = (t - a) / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 - z)) tmp = 0.0 if (y <= -4.5e+58) tmp = t_1; elseif (y <= -3.5e+25) tmp = Float64(a / Float64(y - b)); elseif ((y <= -2.3e-31) || !(y <= 2.7e+37)) tmp = t_1; else tmp = Float64(Float64(t - a) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (1.0 - z); tmp = 0.0; if (y <= -4.5e+58) tmp = t_1; elseif (y <= -3.5e+25) tmp = a / (y - b); elseif ((y <= -2.3e-31) || ~((y <= 2.7e+37))) tmp = t_1; else tmp = (t - a) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e+58], t$95$1, If[LessEqual[y, -3.5e+25], N[(a / N[(y - b), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -2.3e-31], N[Not[LessEqual[y, 2.7e+37]], $MachinePrecision]], t$95$1, N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{+25}:\\
\;\;\;\;\frac{a}{y - b}\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-31} \lor \neg \left(y \leq 2.7 \cdot 10^{+37}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t - a}{b}\\
\end{array}
\end{array}
if y < -4.4999999999999998e58 or -3.49999999999999999e25 < y < -2.2999999999999998e-31 or 2.69999999999999986e37 < y Initial program 57.2%
Taylor expanded in y around inf 57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
if -4.4999999999999998e58 < y < -3.49999999999999999e25Initial program 51.3%
Taylor expanded in a around inf 31.9%
mul-1-neg31.9%
distribute-lft-neg-out31.9%
*-commutative31.9%
Simplified31.9%
Taylor expanded in z around inf 49.5%
associate-*r/49.5%
mul-1-neg49.5%
Simplified49.5%
if -2.2999999999999998e-31 < y < 2.69999999999999986e37Initial program 78.8%
Taylor expanded in y around 0 53.6%
Final simplification55.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.12e-91) (not (<= z 1.16e-49))) (/ (- a t) (- y b)) (/ (* y x) (+ y (* z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.12e-91) || !(z <= 1.16e-49)) {
tmp = (a - t) / (y - b);
} else {
tmp = (y * x) / (y + (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((z <= (-1.12d-91)) .or. (.not. (z <= 1.16d-49))) then
tmp = (a - t) / (y - b)
else
tmp = (y * x) / (y + (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.12e-91) || !(z <= 1.16e-49)) {
tmp = (a - t) / (y - b);
} else {
tmp = (y * x) / (y + (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.12e-91) or not (z <= 1.16e-49): tmp = (a - t) / (y - b) else: tmp = (y * x) / (y + (z * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.12e-91) || !(z <= 1.16e-49)) tmp = Float64(Float64(a - t) / Float64(y - b)); else tmp = Float64(Float64(y * x) / Float64(y + Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.12e-91) || ~((z <= 1.16e-49))) tmp = (a - t) / (y - b); else tmp = (y * x) / (y + (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.12e-91], N[Not[LessEqual[z, 1.16e-49]], $MachinePrecision]], N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision], N[(N[(y * x), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.12 \cdot 10^{-91} \lor \neg \left(z \leq 1.16 \cdot 10^{-49}\right):\\
\;\;\;\;\frac{a - t}{y - b}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot x}{y + z \cdot b}\\
\end{array}
\end{array}
if z < -1.12e-91 or 1.16000000000000003e-49 < z Initial program 47.0%
Taylor expanded in z around inf 71.8%
if -1.12e-91 < z < 1.16000000000000003e-49Initial program 93.2%
Taylor expanded in t around 0 73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in b around inf 73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in x around inf 52.6%
Final simplification63.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -7.5e-92) (not (<= z 1.78e+53))) (/ (- a t) (- y b)) (/ x (- 1.0 z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7.5e-92) || !(z <= 1.78e+53)) {
tmp = (a - t) / (y - b);
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((z <= (-7.5d-92)) .or. (.not. (z <= 1.78d+53))) then
tmp = (a - t) / (y - b)
else
tmp = x / (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7.5e-92) || !(z <= 1.78e+53)) {
tmp = (a - t) / (y - b);
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -7.5e-92) or not (z <= 1.78e+53): tmp = (a - t) / (y - b) else: tmp = x / (1.0 - z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -7.5e-92) || !(z <= 1.78e+53)) tmp = Float64(Float64(a - t) / Float64(y - b)); else tmp = Float64(x / Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -7.5e-92) || ~((z <= 1.78e+53))) tmp = (a - t) / (y - b); else tmp = x / (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -7.5e-92], N[Not[LessEqual[z, 1.78e+53]], $MachinePrecision]], N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{-92} \lor \neg \left(z \leq 1.78 \cdot 10^{+53}\right):\\
\;\;\;\;\frac{a - t}{y - b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - z}\\
\end{array}
\end{array}
if z < -7.5000000000000005e-92 or 1.77999999999999999e53 < z Initial program 44.0%
Taylor expanded in z around inf 77.8%
if -7.5000000000000005e-92 < z < 1.77999999999999999e53Initial program 89.7%
Taylor expanded in y around inf 49.1%
mul-1-neg49.1%
unsub-neg49.1%
Simplified49.1%
Final simplification63.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.05e-91) (not (<= z 1.55e-11))) (/ t (- b y)) (+ x (* z x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.05e-91) || !(z <= 1.55e-11)) {
tmp = t / (b - y);
} else {
tmp = x + (z * x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((z <= (-1.05d-91)) .or. (.not. (z <= 1.55d-11))) then
tmp = t / (b - y)
else
tmp = x + (z * x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.05e-91) || !(z <= 1.55e-11)) {
tmp = t / (b - y);
} else {
tmp = x + (z * x);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.05e-91) or not (z <= 1.55e-11): tmp = t / (b - y) else: tmp = x + (z * x) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.05e-91) || !(z <= 1.55e-11)) tmp = Float64(t / Float64(b - y)); else tmp = Float64(x + Float64(z * x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.05e-91) || ~((z <= 1.55e-11))) tmp = t / (b - y); else tmp = x + (z * x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.05e-91], N[Not[LessEqual[z, 1.55e-11]], $MachinePrecision]], N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{-91} \lor \neg \left(z \leq 1.55 \cdot 10^{-11}\right):\\
\;\;\;\;\frac{t}{b - y}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot x\\
\end{array}
\end{array}
if z < -1.05e-91 or 1.55000000000000014e-11 < z Initial program 45.1%
Taylor expanded in t around inf 26.8%
associate-/l*37.8%
+-commutative37.8%
fma-define37.8%
Simplified37.8%
Taylor expanded in z around inf 45.9%
if -1.05e-91 < z < 1.55000000000000014e-11Initial program 90.8%
fma-define90.8%
clear-num90.6%
inv-pow90.6%
+-commutative90.6%
fma-undefine90.6%
fma-define90.6%
+-commutative90.6%
fma-define90.5%
Applied egg-rr90.5%
unpow-190.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in y around inf 48.8%
neg-mul-148.8%
Simplified48.8%
Taylor expanded in z around 0 48.9%
Final simplification47.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.9e-47) (not (<= y 2.1e-22))) (/ x (- 1.0 z)) (/ t (- b y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.9e-47) || !(y <= 2.1e-22)) {
tmp = x / (1.0 - z);
} else {
tmp = t / (b - y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((y <= (-3.9d-47)) .or. (.not. (y <= 2.1d-22))) then
tmp = x / (1.0d0 - z)
else
tmp = t / (b - y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.9e-47) || !(y <= 2.1e-22)) {
tmp = x / (1.0 - z);
} else {
tmp = t / (b - y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.9e-47) or not (y <= 2.1e-22): tmp = x / (1.0 - z) else: tmp = t / (b - y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.9e-47) || !(y <= 2.1e-22)) tmp = Float64(x / Float64(1.0 - z)); else tmp = Float64(t / Float64(b - y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.9e-47) || ~((y <= 2.1e-22))) tmp = x / (1.0 - z); else tmp = t / (b - y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.9e-47], N[Not[LessEqual[y, 2.1e-22]], $MachinePrecision]], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.9 \cdot 10^{-47} \lor \neg \left(y \leq 2.1 \cdot 10^{-22}\right):\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b - y}\\
\end{array}
\end{array}
if y < -3.89999999999999978e-47 or 2.10000000000000008e-22 < y Initial program 57.8%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
unsub-neg50.5%
Simplified50.5%
if -3.89999999999999978e-47 < y < 2.10000000000000008e-22Initial program 80.4%
Taylor expanded in t around inf 37.8%
associate-/l*45.6%
+-commutative45.6%
fma-define45.6%
Simplified45.6%
Taylor expanded in z around inf 45.9%
Final simplification48.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.55e-31) (not (<= y 2.8e+37))) (/ x (- 1.0 z)) (/ (- t a) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.55e-31) || !(y <= 2.8e+37)) {
tmp = x / (1.0 - z);
} else {
tmp = (t - a) / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((y <= (-1.55d-31)) .or. (.not. (y <= 2.8d+37))) then
tmp = x / (1.0d0 - z)
else
tmp = (t - a) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.55e-31) || !(y <= 2.8e+37)) {
tmp = x / (1.0 - z);
} else {
tmp = (t - a) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.55e-31) or not (y <= 2.8e+37): tmp = x / (1.0 - z) else: tmp = (t - a) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.55e-31) || !(y <= 2.8e+37)) tmp = Float64(x / Float64(1.0 - z)); else tmp = Float64(Float64(t - a) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.55e-31) || ~((y <= 2.8e+37))) tmp = x / (1.0 - z); else tmp = (t - a) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.55e-31], N[Not[LessEqual[y, 2.8e+37]], $MachinePrecision]], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{-31} \lor \neg \left(y \leq 2.8 \cdot 10^{+37}\right):\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t - a}{b}\\
\end{array}
\end{array}
if y < -1.55e-31 or 2.7999999999999998e37 < y Initial program 56.7%
Taylor expanded in y around inf 53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
if -1.55e-31 < y < 2.7999999999999998e37Initial program 78.8%
Taylor expanded in y around 0 53.6%
Final simplification53.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.55e-31) x (if (<= y 1.15e-32) (/ t b) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.55e-31) {
tmp = x;
} else if (y <= 1.15e-32) {
tmp = t / b;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (y <= (-1.55d-31)) then
tmp = x
else if (y <= 1.15d-32) then
tmp = t / b
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.55e-31) {
tmp = x;
} else if (y <= 1.15e-32) {
tmp = t / b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.55e-31: tmp = x elif y <= 1.15e-32: tmp = t / b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.55e-31) tmp = x; elseif (y <= 1.15e-32) tmp = Float64(t / b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.55e-31) tmp = x; elseif (y <= 1.15e-32) tmp = t / b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.55e-31], x, If[LessEqual[y, 1.15e-32], N[(t / b), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{-31}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-32}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.55e-31 or 1.15e-32 < y Initial program 56.9%
Taylor expanded in z around 0 38.8%
if -1.55e-31 < y < 1.15e-32Initial program 80.9%
Taylor expanded in t around inf 36.9%
associate-/l*44.5%
+-commutative44.5%
fma-define44.5%
Simplified44.5%
Taylor expanded in b around inf 38.2%
Final simplification38.5%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
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
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 67.4%
Taylor expanded in z around 0 25.7%
Final simplification25.7%
(FPCore (x y z t a b) :precision binary64 (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
double code(double x, double y, double z, double t, double a, double b) {
return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)));
}
real(8) function code(x, y, z, t, a, b)
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
code = (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)));
}
def code(x, y, z, t, a, b): return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(z * t) + Float64(y * x)) / Float64(y + Float64(z * Float64(b - y)))) - Float64(a / Float64(Float64(b - y) + Float64(y / z)))) end
function tmp = code(x, y, z, t, a, b) tmp = (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(z * t), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a / N[(N[(b - y), $MachinePrecision] + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{z \cdot t + y \cdot x}{y + z \cdot \left(b - y\right)} - \frac{a}{\left(b - y\right) + \frac{y}{z}}
\end{array}
herbie shell --seed 2024055
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
:alt
(- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z))))
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))