
(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 24 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
(let* ((t_1 (/ (- (* z (- a t)) (* x y)) (- (* z (- y b)) y)))
(t_2 (+ y (* z (- b y))))
(t_3 (- y (* z y))))
(if (<= t_1 (- INFINITY))
(* x (+ (* (/ z x) (/ (- t a) t_3)) (/ y t_3)))
(if (or (<= t_1 -2e-246) (and (not (<= t_1 0.0)) (<= t_1 4e+295)))
(+ (/ (* x y) t_2) (/ (* z (- t a)) t_2))
(/ (- t a) (- b y))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
double t_2 = y + (z * (b - y));
double t_3 = y - (z * y);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x * (((z / x) * ((t - a) / t_3)) + (y / t_3));
} else if ((t_1 <= -2e-246) || (!(t_1 <= 0.0) && (t_1 <= 4e+295))) {
tmp = ((x * y) / t_2) + ((z * (t - a)) / t_2);
} else {
tmp = (t - a) / (b - y);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
double t_2 = y + (z * (b - y));
double t_3 = y - (z * y);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x * (((z / x) * ((t - a) / t_3)) + (y / t_3));
} else if ((t_1 <= -2e-246) || (!(t_1 <= 0.0) && (t_1 <= 4e+295))) {
tmp = ((x * y) / t_2) + ((z * (t - a)) / t_2);
} else {
tmp = (t - a) / (b - y);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y) t_2 = y + (z * (b - y)) t_3 = y - (z * y) tmp = 0 if t_1 <= -math.inf: tmp = x * (((z / x) * ((t - a) / t_3)) + (y / t_3)) elif (t_1 <= -2e-246) or (not (t_1 <= 0.0) and (t_1 <= 4e+295)): tmp = ((x * y) / t_2) + ((z * (t - a)) / t_2) else: tmp = (t - a) / (b - y) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(z * Float64(a - t)) - Float64(x * y)) / Float64(Float64(z * Float64(y - b)) - y)) t_2 = Float64(y + Float64(z * Float64(b - y))) t_3 = Float64(y - Float64(z * y)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x * Float64(Float64(Float64(z / x) * Float64(Float64(t - a) / t_3)) + Float64(y / t_3))); elseif ((t_1 <= -2e-246) || (!(t_1 <= 0.0) && (t_1 <= 4e+295))) tmp = Float64(Float64(Float64(x * y) / t_2) + Float64(Float64(z * Float64(t - a)) / t_2)); else tmp = Float64(Float64(t - a) / Float64(b - y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y); t_2 = y + (z * (b - y)); t_3 = y - (z * y); tmp = 0.0; if (t_1 <= -Inf) tmp = x * (((z / x) * ((t - a) / t_3)) + (y / t_3)); elseif ((t_1 <= -2e-246) || (~((t_1 <= 0.0)) && (t_1 <= 4e+295))) tmp = ((x * y) / t_2) + ((z * (t - a)) / t_2); else tmp = (t - a) / (b - y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y - N[(z * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x * N[(N[(N[(z / x), $MachinePrecision] * N[(N[(t - a), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, -2e-246], And[N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision], LessEqual[t$95$1, 4e+295]]], N[(N[(N[(x * y), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \left(a - t\right) - x \cdot y}{z \cdot \left(y - b\right) - y}\\
t_2 := y + z \cdot \left(b - y\right)\\
t_3 := y - z \cdot y\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x \cdot \left(\frac{z}{x} \cdot \frac{t - a}{t\_3} + \frac{y}{t\_3}\right)\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-246} \lor \neg \left(t\_1 \leq 0\right) \land t\_1 \leq 4 \cdot 10^{+295}:\\
\;\;\;\;\frac{x \cdot y}{t\_2} + \frac{z \cdot \left(t - a\right)}{t\_2}\\
\mathbf{else}:\\
\;\;\;\;\frac{t - a}{b - y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -inf.0Initial program 51.1%
Taylor expanded in x around inf 86.6%
Taylor expanded in b around 0 72.4%
+-commutative72.4%
times-frac80.9%
associate-*r*80.9%
neg-mul-180.9%
associate-*r*80.9%
neg-mul-180.9%
Simplified80.9%
if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -1.99999999999999991e-246 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 3.9999999999999999e295Initial program 99.2%
Taylor expanded in x around 0 99.2%
if -1.99999999999999991e-246 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0 or 3.9999999999999999e295 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) Initial program 18.7%
Taylor expanded in z around inf 77.5%
Final simplification91.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- b y))))
(if (or (<= z -2.4e+51) (not (<= z 57000000000.0)))
(+
(+ (* x (/ y t_1)) (/ (- t a) (- b y)))
(* y (/ (- a t) (* z (pow (- b y) 2.0)))))
(* x (+ (/ y (+ y t_1)) (/ (* z (- a t)) (* x (- (* z (- y b)) y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (b - y);
double tmp;
if ((z <= -2.4e+51) || !(z <= 57000000000.0)) {
tmp = ((x * (y / t_1)) + ((t - a) / (b - y))) + (y * ((a - t) / (z * pow((b - y), 2.0))));
} else {
tmp = x * ((y / (y + t_1)) + ((z * (a - t)) / (x * ((z * (y - 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) :: t_1
real(8) :: tmp
t_1 = z * (b - y)
if ((z <= (-2.4d+51)) .or. (.not. (z <= 57000000000.0d0))) then
tmp = ((x * (y / t_1)) + ((t - a) / (b - y))) + (y * ((a - t) / (z * ((b - y) ** 2.0d0))))
else
tmp = x * ((y / (y + t_1)) + ((z * (a - t)) / (x * ((z * (y - 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 t_1 = z * (b - y);
double tmp;
if ((z <= -2.4e+51) || !(z <= 57000000000.0)) {
tmp = ((x * (y / t_1)) + ((t - a) / (b - y))) + (y * ((a - t) / (z * Math.pow((b - y), 2.0))));
} else {
tmp = x * ((y / (y + t_1)) + ((z * (a - t)) / (x * ((z * (y - b)) - y))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (b - y) tmp = 0 if (z <= -2.4e+51) or not (z <= 57000000000.0): tmp = ((x * (y / t_1)) + ((t - a) / (b - y))) + (y * ((a - t) / (z * math.pow((b - y), 2.0)))) else: tmp = x * ((y / (y + t_1)) + ((z * (a - t)) / (x * ((z * (y - b)) - y)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(b - y)) tmp = 0.0 if ((z <= -2.4e+51) || !(z <= 57000000000.0)) tmp = Float64(Float64(Float64(x * Float64(y / t_1)) + Float64(Float64(t - a) / Float64(b - y))) + Float64(y * Float64(Float64(a - t) / Float64(z * (Float64(b - y) ^ 2.0))))); else tmp = Float64(x * Float64(Float64(y / Float64(y + t_1)) + Float64(Float64(z * Float64(a - t)) / Float64(x * Float64(Float64(z * Float64(y - b)) - y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (b - y); tmp = 0.0; if ((z <= -2.4e+51) || ~((z <= 57000000000.0))) tmp = ((x * (y / t_1)) + ((t - a) / (b - y))) + (y * ((a - t) / (z * ((b - y) ^ 2.0)))); else tmp = x * ((y / (y + t_1)) + ((z * (a - t)) / (x * ((z * (y - b)) - y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[z, -2.4e+51], N[Not[LessEqual[z, 57000000000.0]], $MachinePrecision]], N[(N[(N[(x * N[(y / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(t - a), $MachinePrecision] / N[(b - y), $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], N[(x * N[(N[(y / N[(y + t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / N[(x * N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b - y\right)\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+51} \lor \neg \left(z \leq 57000000000\right):\\
\;\;\;\;\left(x \cdot \frac{y}{t\_1} + \frac{t - a}{b - y}\right) + y \cdot \frac{a - t}{z \cdot {\left(b - y\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{y + t\_1} + \frac{z \cdot \left(a - t\right)}{x \cdot \left(z \cdot \left(y - b\right) - y\right)}\right)\\
\end{array}
\end{array}
if z < -2.3999999999999999e51 or 5.7e10 < z Initial program 49.0%
Taylor expanded in z around inf 66.5%
associate--r+66.5%
+-commutative66.5%
associate--l+66.5%
associate-/l*68.1%
div-sub69.0%
associate-/l*90.7%
Simplified90.7%
if -2.3999999999999999e51 < z < 5.7e10Initial program 89.3%
Taylor expanded in x around inf 91.1%
Final simplification90.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- (* z (- a t)) (* x y)) (- (* z (- y b)) y)))
(t_2 (- y (* z y))))
(if (<= t_1 (- INFINITY))
(* x (+ (* (/ z x) (/ (- t a) t_2)) (/ y t_2)))
(if (or (<= t_1 -2e-246) (and (not (<= t_1 0.0)) (<= t_1 4e+295)))
t_1
(/ (- t a) (- b y))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
double t_2 = y - (z * y);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x * (((z / x) * ((t - a) / t_2)) + (y / t_2));
} else if ((t_1 <= -2e-246) || (!(t_1 <= 0.0) && (t_1 <= 4e+295))) {
tmp = t_1;
} else {
tmp = (t - a) / (b - y);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
double t_2 = y - (z * y);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x * (((z / x) * ((t - a) / t_2)) + (y / t_2));
} else if ((t_1 <= -2e-246) || (!(t_1 <= 0.0) && (t_1 <= 4e+295))) {
tmp = t_1;
} else {
tmp = (t - a) / (b - y);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y) t_2 = y - (z * y) tmp = 0 if t_1 <= -math.inf: tmp = x * (((z / x) * ((t - a) / t_2)) + (y / t_2)) elif (t_1 <= -2e-246) or (not (t_1 <= 0.0) and (t_1 <= 4e+295)): tmp = t_1 else: tmp = (t - a) / (b - y) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(z * Float64(a - t)) - Float64(x * y)) / Float64(Float64(z * Float64(y - b)) - y)) t_2 = Float64(y - Float64(z * y)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x * Float64(Float64(Float64(z / x) * Float64(Float64(t - a) / t_2)) + Float64(y / t_2))); elseif ((t_1 <= -2e-246) || (!(t_1 <= 0.0) && (t_1 <= 4e+295))) tmp = t_1; else tmp = Float64(Float64(t - a) / Float64(b - y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y); t_2 = y - (z * y); tmp = 0.0; if (t_1 <= -Inf) tmp = x * (((z / x) * ((t - a) / t_2)) + (y / t_2)); elseif ((t_1 <= -2e-246) || (~((t_1 <= 0.0)) && (t_1 <= 4e+295))) tmp = t_1; else tmp = (t - a) / (b - y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y - N[(z * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x * N[(N[(N[(z / x), $MachinePrecision] * N[(N[(t - a), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, -2e-246], And[N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision], LessEqual[t$95$1, 4e+295]]], t$95$1, N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \left(a - t\right) - x \cdot y}{z \cdot \left(y - b\right) - y}\\
t_2 := y - z \cdot y\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x \cdot \left(\frac{z}{x} \cdot \frac{t - a}{t\_2} + \frac{y}{t\_2}\right)\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-246} \lor \neg \left(t\_1 \leq 0\right) \land t\_1 \leq 4 \cdot 10^{+295}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t - a}{b - y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -inf.0Initial program 51.1%
Taylor expanded in x around inf 86.6%
Taylor expanded in b around 0 72.4%
+-commutative72.4%
times-frac80.9%
associate-*r*80.9%
neg-mul-180.9%
associate-*r*80.9%
neg-mul-180.9%
Simplified80.9%
if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -1.99999999999999991e-246 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 3.9999999999999999e295Initial program 99.2%
if -1.99999999999999991e-246 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0 or 3.9999999999999999e295 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) Initial program 18.7%
Taylor expanded in z around inf 77.5%
Final simplification91.2%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -9e+57) (not (<= z 7.2e+72)))
(/ (- t a) (- b y))
(*
x
(+
(/ y (+ y (* z (- b y))))
(/ (* z (- a t)) (* x (- (* z (- y b)) y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -9e+57) || !(z <= 7.2e+72)) {
tmp = (t - a) / (b - y);
} else {
tmp = x * ((y / (y + (z * (b - y)))) + ((z * (a - t)) / (x * ((z * (y - 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 <= (-9d+57)) .or. (.not. (z <= 7.2d+72))) then
tmp = (t - a) / (b - y)
else
tmp = x * ((y / (y + (z * (b - y)))) + ((z * (a - t)) / (x * ((z * (y - 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 <= -9e+57) || !(z <= 7.2e+72)) {
tmp = (t - a) / (b - y);
} else {
tmp = x * ((y / (y + (z * (b - y)))) + ((z * (a - t)) / (x * ((z * (y - b)) - y))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -9e+57) or not (z <= 7.2e+72): tmp = (t - a) / (b - y) else: tmp = x * ((y / (y + (z * (b - y)))) + ((z * (a - t)) / (x * ((z * (y - b)) - y)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -9e+57) || !(z <= 7.2e+72)) tmp = Float64(Float64(t - a) / Float64(b - y)); else tmp = Float64(x * Float64(Float64(y / Float64(y + Float64(z * Float64(b - y)))) + Float64(Float64(z * Float64(a - t)) / Float64(x * Float64(Float64(z * Float64(y - b)) - y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -9e+57) || ~((z <= 7.2e+72))) tmp = (t - a) / (b - y); else tmp = x * ((y / (y + (z * (b - y)))) + ((z * (a - t)) / (x * ((z * (y - b)) - y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -9e+57], N[Not[LessEqual[z, 7.2e+72]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / N[(x * N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+57} \lor \neg \left(z \leq 7.2 \cdot 10^{+72}\right):\\
\;\;\;\;\frac{t - a}{b - y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{y + z \cdot \left(b - y\right)} + \frac{z \cdot \left(a - t\right)}{x \cdot \left(z \cdot \left(y - b\right) - y\right)}\right)\\
\end{array}
\end{array}
if z < -8.99999999999999991e57 or 7.20000000000000069e72 < z Initial program 41.9%
Taylor expanded in z around inf 85.0%
if -8.99999999999999991e57 < z < 7.20000000000000069e72Initial program 88.3%
Taylor expanded in x around inf 91.0%
Final simplification88.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -1.15)
t_1
(if (<= z -3.8e-285)
(/ (* t (+ z (* x (/ y t)))) (+ y (* z b)))
(if (<= z 3e-70)
(+ x (* z (- (/ (- t a) y) (* b (/ x y)))))
(if (<= z 7800000000.0)
(/ (* z (- t a)) (+ y (* z (- b y))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1.15) {
tmp = t_1;
} else if (z <= -3.8e-285) {
tmp = (t * (z + (x * (y / t)))) / (y + (z * b));
} else if (z <= 3e-70) {
tmp = x + (z * (((t - a) / y) - (b * (x / y))));
} else if (z <= 7800000000.0) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} 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 = (t - a) / (b - y)
if (z <= (-1.15d0)) then
tmp = t_1
else if (z <= (-3.8d-285)) then
tmp = (t * (z + (x * (y / t)))) / (y + (z * b))
else if (z <= 3d-70) then
tmp = x + (z * (((t - a) / y) - (b * (x / y))))
else if (z <= 7800000000.0d0) then
tmp = (z * (t - a)) / (y + (z * (b - y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1.15) {
tmp = t_1;
} else if (z <= -3.8e-285) {
tmp = (t * (z + (x * (y / t)))) / (y + (z * b));
} else if (z <= 3e-70) {
tmp = x + (z * (((t - a) / y) - (b * (x / y))));
} else if (z <= 7800000000.0) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -1.15: tmp = t_1 elif z <= -3.8e-285: tmp = (t * (z + (x * (y / t)))) / (y + (z * b)) elif z <= 3e-70: tmp = x + (z * (((t - a) / y) - (b * (x / y)))) elif z <= 7800000000.0: tmp = (z * (t - a)) / (y + (z * (b - y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -1.15) tmp = t_1; elseif (z <= -3.8e-285) tmp = Float64(Float64(t * Float64(z + Float64(x * Float64(y / t)))) / Float64(y + Float64(z * b))); elseif (z <= 3e-70) tmp = Float64(x + Float64(z * Float64(Float64(Float64(t - a) / y) - Float64(b * Float64(x / y))))); elseif (z <= 7800000000.0) tmp = Float64(Float64(z * Float64(t - a)) / Float64(y + Float64(z * Float64(b - y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -1.15) tmp = t_1; elseif (z <= -3.8e-285) tmp = (t * (z + (x * (y / t)))) / (y + (z * b)); elseif (z <= 3e-70) tmp = x + (z * (((t - a) / y) - (b * (x / y)))); elseif (z <= 7800000000.0) tmp = (z * (t - a)) / (y + (z * (b - y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15], t$95$1, If[LessEqual[z, -3.8e-285], N[(N[(t * N[(z + N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-70], N[(x + N[(z * N[(N[(N[(t - a), $MachinePrecision] / y), $MachinePrecision] - N[(b * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7800000000.0], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1.15:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.8 \cdot 10^{-285}:\\
\;\;\;\;\frac{t \cdot \left(z + x \cdot \frac{y}{t}\right)}{y + z \cdot b}\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-70}:\\
\;\;\;\;x + z \cdot \left(\frac{t - a}{y} - b \cdot \frac{x}{y}\right)\\
\mathbf{elif}\;z \leq 7800000000:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1499999999999999 or 7.8e9 < z Initial program 52.6%
Taylor expanded in z around inf 82.2%
if -1.1499999999999999 < z < -3.8000000000000002e-285Initial program 92.7%
Taylor expanded in t around -inf 80.7%
mul-1-neg80.7%
*-commutative80.7%
distribute-rgt-neg-in80.7%
mul-1-neg80.7%
unsub-neg80.7%
mul-1-neg80.7%
+-commutative80.7%
mul-1-neg80.7%
unsub-neg80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in a around 0 61.9%
associate-/l*60.1%
Simplified60.1%
Taylor expanded in b around inf 60.1%
if -3.8000000000000002e-285 < z < 3.0000000000000001e-70Initial program 82.1%
Taylor expanded in b around inf 82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in z around 0 66.2%
associate--r+66.2%
div-sub68.0%
associate-/l*71.4%
Simplified71.4%
if 3.0000000000000001e-70 < z < 7.8e9Initial program 99.5%
Taylor expanded in x around 0 93.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (* z (- b y)))) (t_2 (/ (- t a) (- b y))))
(if (<= z -0.305)
t_2
(if (<= z 1.95e-299)
(/ (* x y) t_1)
(if (<= z 1.7e-70)
(+ x (* z (- (/ (- t a) y) (* b (/ x y)))))
(if (<= z 6600000000000.0) (/ (* z (- t a)) 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 = (t - a) / (b - y);
double tmp;
if (z <= -0.305) {
tmp = t_2;
} else if (z <= 1.95e-299) {
tmp = (x * y) / t_1;
} else if (z <= 1.7e-70) {
tmp = x + (z * (((t - a) / y) - (b * (x / y))));
} else if (z <= 6600000000000.0) {
tmp = (z * (t - a)) / 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 = (t - a) / (b - y)
if (z <= (-0.305d0)) then
tmp = t_2
else if (z <= 1.95d-299) then
tmp = (x * y) / t_1
else if (z <= 1.7d-70) then
tmp = x + (z * (((t - a) / y) - (b * (x / y))))
else if (z <= 6600000000000.0d0) then
tmp = (z * (t - a)) / 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 = (t - a) / (b - y);
double tmp;
if (z <= -0.305) {
tmp = t_2;
} else if (z <= 1.95e-299) {
tmp = (x * y) / t_1;
} else if (z <= 1.7e-70) {
tmp = x + (z * (((t - a) / y) - (b * (x / y))));
} else if (z <= 6600000000000.0) {
tmp = (z * (t - a)) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) t_2 = (t - a) / (b - y) tmp = 0 if z <= -0.305: tmp = t_2 elif z <= 1.95e-299: tmp = (x * y) / t_1 elif z <= 1.7e-70: tmp = x + (z * (((t - a) / y) - (b * (x / y)))) elif z <= 6600000000000.0: tmp = (z * (t - a)) / 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(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -0.305) tmp = t_2; elseif (z <= 1.95e-299) tmp = Float64(Float64(x * y) / t_1); elseif (z <= 1.7e-70) tmp = Float64(x + Float64(z * Float64(Float64(Float64(t - a) / y) - Float64(b * Float64(x / y))))); elseif (z <= 6600000000000.0) tmp = Float64(Float64(z * Float64(t - a)) / 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 = (t - a) / (b - y); tmp = 0.0; if (z <= -0.305) tmp = t_2; elseif (z <= 1.95e-299) tmp = (x * y) / t_1; elseif (z <= 1.7e-70) tmp = x + (z * (((t - a) / y) - (b * (x / y)))); elseif (z <= 6600000000000.0) tmp = (z * (t - a)) / 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[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.305], t$95$2, If[LessEqual[z, 1.95e-299], N[(N[(x * y), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, 1.7e-70], N[(x + N[(z * N[(N[(N[(t - a), $MachinePrecision] / y), $MachinePrecision] - N[(b * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6600000000000.0], N[(N[(z * N[(t - a), $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{t - a}{b - y}\\
\mathbf{if}\;z \leq -0.305:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-299}:\\
\;\;\;\;\frac{x \cdot y}{t\_1}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-70}:\\
\;\;\;\;x + z \cdot \left(\frac{t - a}{y} - b \cdot \frac{x}{y}\right)\\
\mathbf{elif}\;z \leq 6600000000000:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -0.304999999999999993 or 6.6e12 < z Initial program 52.6%
Taylor expanded in z around inf 82.2%
if -0.304999999999999993 < z < 1.9499999999999999e-299Initial program 92.9%
Taylor expanded in x around inf 58.6%
*-commutative58.6%
Simplified58.6%
if 1.9499999999999999e-299 < z < 1.69999999999999998e-70Initial program 80.1%
Taylor expanded in b around inf 80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in z around 0 66.7%
associate--r+66.7%
div-sub68.8%
associate-/l*72.8%
Simplified72.8%
if 1.69999999999999998e-70 < z < 6.6e12Initial program 99.5%
Taylor expanded in x around 0 93.7%
Final simplification75.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- t a))) (t_2 (/ (- t a) (- b y))))
(if (<= z -1550.0)
t_2
(if (<= z -3e-80)
(/ (+ t_1 (* x y)) (* z b))
(if (<= z 9.5e-71)
(+ x (* t (/ z y)))
(if (<= z 1900000000000.0) (/ t_1 (+ y (* z (- b y)))) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (t - a);
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -1550.0) {
tmp = t_2;
} else if (z <= -3e-80) {
tmp = (t_1 + (x * y)) / (z * b);
} else if (z <= 9.5e-71) {
tmp = x + (t * (z / y));
} else if (z <= 1900000000000.0) {
tmp = t_1 / (y + (z * (b - y)));
} 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 = z * (t - a)
t_2 = (t - a) / (b - y)
if (z <= (-1550.0d0)) then
tmp = t_2
else if (z <= (-3d-80)) then
tmp = (t_1 + (x * y)) / (z * b)
else if (z <= 9.5d-71) then
tmp = x + (t * (z / y))
else if (z <= 1900000000000.0d0) then
tmp = t_1 / (y + (z * (b - y)))
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 = z * (t - a);
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -1550.0) {
tmp = t_2;
} else if (z <= -3e-80) {
tmp = (t_1 + (x * y)) / (z * b);
} else if (z <= 9.5e-71) {
tmp = x + (t * (z / y));
} else if (z <= 1900000000000.0) {
tmp = t_1 / (y + (z * (b - y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (t - a) t_2 = (t - a) / (b - y) tmp = 0 if z <= -1550.0: tmp = t_2 elif z <= -3e-80: tmp = (t_1 + (x * y)) / (z * b) elif z <= 9.5e-71: tmp = x + (t * (z / y)) elif z <= 1900000000000.0: tmp = t_1 / (y + (z * (b - y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(t - a)) t_2 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -1550.0) tmp = t_2; elseif (z <= -3e-80) tmp = Float64(Float64(t_1 + Float64(x * y)) / Float64(z * b)); elseif (z <= 9.5e-71) tmp = Float64(x + Float64(t * Float64(z / y))); elseif (z <= 1900000000000.0) tmp = Float64(t_1 / Float64(y + Float64(z * Float64(b - y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (t - a); t_2 = (t - a) / (b - y); tmp = 0.0; if (z <= -1550.0) tmp = t_2; elseif (z <= -3e-80) tmp = (t_1 + (x * y)) / (z * b); elseif (z <= 9.5e-71) tmp = x + (t * (z / y)); elseif (z <= 1900000000000.0) tmp = t_1 / (y + (z * (b - y))); else tmp = t_2; 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[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1550.0], t$95$2, If[LessEqual[z, -3e-80], N[(N[(t$95$1 + N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e-71], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1900000000000.0], N[(t$95$1 / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(t - a\right)\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1550:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-80}:\\
\;\;\;\;\frac{t\_1 + x \cdot y}{z \cdot b}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-71}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\mathbf{elif}\;z \leq 1900000000000:\\
\;\;\;\;\frac{t\_1}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1550 or 1.9e12 < z Initial program 52.2%
Taylor expanded in z around inf 82.0%
if -1550 < z < -3.00000000000000007e-80Initial program 99.4%
Taylor expanded in b around inf 64.7%
if -3.00000000000000007e-80 < z < 9.4999999999999994e-71Initial program 85.1%
Taylor expanded in t around -inf 78.8%
mul-1-neg78.8%
*-commutative78.8%
distribute-rgt-neg-in78.8%
mul-1-neg78.8%
unsub-neg78.8%
mul-1-neg78.8%
+-commutative78.8%
mul-1-neg78.8%
unsub-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in a around 0 64.9%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in z around 0 46.8%
Taylor expanded in t around inf 64.8%
associate-/l*65.0%
Simplified65.0%
if 9.4999999999999994e-71 < z < 1.9e12Initial program 99.5%
Taylor expanded in x around 0 93.7%
Final simplification75.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -245.0)
t_1
(if (<= z -6.5e-80)
(- (* x (/ y (* z b))) (/ (- a t) b))
(if (<= z 3.2e-70)
(+ x (* t (/ z y)))
(if (<= z 36000000000000.0)
(/ (* z (- t a)) (+ y (* z (- b y))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -245.0) {
tmp = t_1;
} else if (z <= -6.5e-80) {
tmp = (x * (y / (z * b))) - ((a - t) / b);
} else if (z <= 3.2e-70) {
tmp = x + (t * (z / y));
} else if (z <= 36000000000000.0) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} 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 = (t - a) / (b - y)
if (z <= (-245.0d0)) then
tmp = t_1
else if (z <= (-6.5d-80)) then
tmp = (x * (y / (z * b))) - ((a - t) / b)
else if (z <= 3.2d-70) then
tmp = x + (t * (z / y))
else if (z <= 36000000000000.0d0) then
tmp = (z * (t - a)) / (y + (z * (b - y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -245.0) {
tmp = t_1;
} else if (z <= -6.5e-80) {
tmp = (x * (y / (z * b))) - ((a - t) / b);
} else if (z <= 3.2e-70) {
tmp = x + (t * (z / y));
} else if (z <= 36000000000000.0) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -245.0: tmp = t_1 elif z <= -6.5e-80: tmp = (x * (y / (z * b))) - ((a - t) / b) elif z <= 3.2e-70: tmp = x + (t * (z / y)) elif z <= 36000000000000.0: tmp = (z * (t - a)) / (y + (z * (b - y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -245.0) tmp = t_1; elseif (z <= -6.5e-80) tmp = Float64(Float64(x * Float64(y / Float64(z * b))) - Float64(Float64(a - t) / b)); elseif (z <= 3.2e-70) tmp = Float64(x + Float64(t * Float64(z / y))); elseif (z <= 36000000000000.0) tmp = Float64(Float64(z * Float64(t - a)) / Float64(y + Float64(z * Float64(b - y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -245.0) tmp = t_1; elseif (z <= -6.5e-80) tmp = (x * (y / (z * b))) - ((a - t) / b); elseif (z <= 3.2e-70) tmp = x + (t * (z / y)); elseif (z <= 36000000000000.0) tmp = (z * (t - a)) / (y + (z * (b - y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -245.0], t$95$1, If[LessEqual[z, -6.5e-80], N[(N[(x * N[(y / N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a - t), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e-70], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 36000000000000.0], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -245:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-80}:\\
\;\;\;\;x \cdot \frac{y}{z \cdot b} - \frac{a - t}{b}\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-70}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\mathbf{elif}\;z \leq 36000000000000:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -245 or 3.6e13 < z Initial program 52.2%
Taylor expanded in z around inf 82.0%
if -245 < z < -6.49999999999999984e-80Initial program 99.4%
Taylor expanded in y around 0 53.1%
associate--l+53.1%
*-commutative53.1%
associate-/l*53.1%
mul-1-neg53.1%
*-commutative53.1%
div-sub53.1%
Simplified53.1%
Taylor expanded in x around inf 64.5%
associate-/l*64.4%
*-commutative64.4%
Simplified64.4%
if -6.49999999999999984e-80 < z < 3.1999999999999997e-70Initial program 85.1%
Taylor expanded in t around -inf 78.8%
mul-1-neg78.8%
*-commutative78.8%
distribute-rgt-neg-in78.8%
mul-1-neg78.8%
unsub-neg78.8%
mul-1-neg78.8%
+-commutative78.8%
mul-1-neg78.8%
unsub-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in a around 0 64.9%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in z around 0 46.8%
Taylor expanded in t around inf 64.8%
associate-/l*65.0%
Simplified65.0%
if 3.1999999999999997e-70 < z < 3.6e13Initial program 99.5%
Taylor expanded in x around 0 93.7%
Final simplification75.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1e+58) (not (<= z 2.9e+112))) (/ (- t a) (- b y)) (/ (- (* z (- a t)) (* x y)) (- (* z (- y b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1e+58) || !(z <= 2.9e+112)) {
tmp = (t - a) / (b - y);
} else {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - 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 <= (-1d+58)) .or. (.not. (z <= 2.9d+112))) then
tmp = (t - a) / (b - y)
else
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - 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 <= -1e+58) || !(z <= 2.9e+112)) {
tmp = (t - a) / (b - y);
} else {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1e+58) or not (z <= 2.9e+112): tmp = (t - a) / (b - y) else: tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1e+58) || !(z <= 2.9e+112)) tmp = Float64(Float64(t - a) / Float64(b - y)); else tmp = Float64(Float64(Float64(z * Float64(a - t)) - Float64(x * y)) / Float64(Float64(z * Float64(y - b)) - y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1e+58) || ~((z <= 2.9e+112))) tmp = (t - a) / (b - y); else tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1e+58], N[Not[LessEqual[z, 2.9e+112]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+58} \lor \neg \left(z \leq 2.9 \cdot 10^{+112}\right):\\
\;\;\;\;\frac{t - a}{b - y}\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot \left(a - t\right) - x \cdot y}{z \cdot \left(y - b\right) - y}\\
\end{array}
\end{array}
if z < -9.99999999999999944e57 or 2.9000000000000002e112 < z Initial program 37.3%
Taylor expanded in z around inf 86.5%
if -9.99999999999999944e57 < z < 2.9000000000000002e112Initial program 87.8%
Final simplification87.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1720.0) (not (<= z 23.5))) (/ (- t a) (- b y)) (/ (+ (* z (- t a)) (* x y)) (+ y (* z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1720.0) || !(z <= 23.5)) {
tmp = (t - a) / (b - y);
} else {
tmp = ((z * (t - a)) + (x * y)) / (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 <= (-1720.0d0)) .or. (.not. (z <= 23.5d0))) then
tmp = (t - a) / (b - y)
else
tmp = ((z * (t - a)) + (x * y)) / (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 <= -1720.0) || !(z <= 23.5)) {
tmp = (t - a) / (b - y);
} else {
tmp = ((z * (t - a)) + (x * y)) / (y + (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1720.0) or not (z <= 23.5): tmp = (t - a) / (b - y) else: tmp = ((z * (t - a)) + (x * y)) / (y + (z * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1720.0) || !(z <= 23.5)) tmp = Float64(Float64(t - a) / Float64(b - y)); else tmp = Float64(Float64(Float64(z * Float64(t - a)) + Float64(x * y)) / Float64(y + Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1720.0) || ~((z <= 23.5))) tmp = (t - a) / (b - y); else tmp = ((z * (t - a)) + (x * y)) / (y + (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1720.0], N[Not[LessEqual[z, 23.5]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1720 \lor \neg \left(z \leq 23.5\right):\\
\;\;\;\;\frac{t - a}{b - y}\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot \left(t - a\right) + x \cdot y}{y + z \cdot b}\\
\end{array}
\end{array}
if z < -1720 or 23.5 < z Initial program 53.0%
Taylor expanded in z around inf 82.0%
if -1720 < z < 23.5Initial program 89.1%
Taylor expanded in b around inf 88.1%
*-commutative88.1%
Simplified88.1%
Final simplification85.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (/ a b))))
(if (<= z -6.2e+58)
(/ t b)
(if (<= z -2.8e-36)
t_1
(if (<= z 4.6e-66) x (if (<= z 6.6e+46) t_1 (/ t b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -(a / b);
double tmp;
if (z <= -6.2e+58) {
tmp = t / b;
} else if (z <= -2.8e-36) {
tmp = t_1;
} else if (z <= 4.6e-66) {
tmp = x;
} else if (z <= 6.6e+46) {
tmp = t_1;
} else {
tmp = t / 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 = -(a / b)
if (z <= (-6.2d+58)) then
tmp = t / b
else if (z <= (-2.8d-36)) then
tmp = t_1
else if (z <= 4.6d-66) then
tmp = x
else if (z <= 6.6d+46) then
tmp = t_1
else
tmp = t / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -(a / b);
double tmp;
if (z <= -6.2e+58) {
tmp = t / b;
} else if (z <= -2.8e-36) {
tmp = t_1;
} else if (z <= 4.6e-66) {
tmp = x;
} else if (z <= 6.6e+46) {
tmp = t_1;
} else {
tmp = t / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = -(a / b) tmp = 0 if z <= -6.2e+58: tmp = t / b elif z <= -2.8e-36: tmp = t_1 elif z <= 4.6e-66: tmp = x elif z <= 6.6e+46: tmp = t_1 else: tmp = t / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(-Float64(a / b)) tmp = 0.0 if (z <= -6.2e+58) tmp = Float64(t / b); elseif (z <= -2.8e-36) tmp = t_1; elseif (z <= 4.6e-66) tmp = x; elseif (z <= 6.6e+46) tmp = t_1; else tmp = Float64(t / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = -(a / b); tmp = 0.0; if (z <= -6.2e+58) tmp = t / b; elseif (z <= -2.8e-36) tmp = t_1; elseif (z <= 4.6e-66) tmp = x; elseif (z <= 6.6e+46) tmp = t_1; else tmp = t / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = (-N[(a / b), $MachinePrecision])}, If[LessEqual[z, -6.2e+58], N[(t / b), $MachinePrecision], If[LessEqual[z, -2.8e-36], t$95$1, If[LessEqual[z, 4.6e-66], x, If[LessEqual[z, 6.6e+46], t$95$1, N[(t / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -\frac{a}{b}\\
\mathbf{if}\;z \leq -6.2 \cdot 10^{+58}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-66}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
\end{array}
if z < -6.1999999999999998e58 or 6.5999999999999996e46 < z Initial program 46.4%
Taylor expanded in y around 0 28.9%
associate--l+28.9%
*-commutative28.9%
associate-/l*44.4%
mul-1-neg44.4%
*-commutative44.4%
div-sub44.4%
Simplified44.4%
Taylor expanded in b around inf 56.8%
associate-/l*57.8%
Simplified57.8%
Taylor expanded in t around inf 37.9%
if -6.1999999999999998e58 < z < -2.8000000000000001e-36 or 4.59999999999999984e-66 < z < 6.5999999999999996e46Initial program 89.7%
Taylor expanded in a around inf 54.7%
mul-1-neg54.7%
distribute-lft-neg-out54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in y around 0 40.4%
associate-*r/40.4%
neg-mul-140.4%
Simplified40.4%
if -2.8000000000000001e-36 < z < 4.59999999999999984e-66Initial program 86.7%
Taylor expanded in z around 0 51.0%
Final simplification43.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -1150.0)
t_1
(if (<= z -4.2e-81)
(- (* x (/ y (* z b))) (/ (- a t) b))
(if (<= z 5.3e-30) (+ x (* t (/ z y))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1150.0) {
tmp = t_1;
} else if (z <= -4.2e-81) {
tmp = (x * (y / (z * b))) - ((a - t) / b);
} else if (z <= 5.3e-30) {
tmp = x + (t * (z / y));
} 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 = (t - a) / (b - y)
if (z <= (-1150.0d0)) then
tmp = t_1
else if (z <= (-4.2d-81)) then
tmp = (x * (y / (z * b))) - ((a - t) / b)
else if (z <= 5.3d-30) then
tmp = x + (t * (z / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1150.0) {
tmp = t_1;
} else if (z <= -4.2e-81) {
tmp = (x * (y / (z * b))) - ((a - t) / b);
} else if (z <= 5.3e-30) {
tmp = x + (t * (z / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -1150.0: tmp = t_1 elif z <= -4.2e-81: tmp = (x * (y / (z * b))) - ((a - t) / b) elif z <= 5.3e-30: tmp = x + (t * (z / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -1150.0) tmp = t_1; elseif (z <= -4.2e-81) tmp = Float64(Float64(x * Float64(y / Float64(z * b))) - Float64(Float64(a - t) / b)); elseif (z <= 5.3e-30) tmp = Float64(x + Float64(t * Float64(z / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -1150.0) tmp = t_1; elseif (z <= -4.2e-81) tmp = (x * (y / (z * b))) - ((a - t) / b); elseif (z <= 5.3e-30) tmp = x + (t * (z / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1150.0], t$95$1, If[LessEqual[z, -4.2e-81], N[(N[(x * N[(y / N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a - t), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e-30], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1150:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \frac{y}{z \cdot b} - \frac{a - t}{b}\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-30}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1150 or 5.29999999999999974e-30 < z Initial program 56.3%
Taylor expanded in z around inf 81.1%
if -1150 < z < -4.1999999999999998e-81Initial program 99.4%
Taylor expanded in y around 0 53.1%
associate--l+53.1%
*-commutative53.1%
associate-/l*53.1%
mul-1-neg53.1%
*-commutative53.1%
div-sub53.1%
Simplified53.1%
Taylor expanded in x around inf 64.5%
associate-/l*64.4%
*-commutative64.4%
Simplified64.4%
if -4.1999999999999998e-81 < z < 5.29999999999999974e-30Initial program 86.1%
Taylor expanded in t around -inf 78.3%
mul-1-neg78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
mul-1-neg78.3%
unsub-neg78.3%
mul-1-neg78.3%
+-commutative78.3%
mul-1-neg78.3%
unsub-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around 0 64.7%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in z around 0 46.8%
Taylor expanded in t around inf 63.6%
associate-/l*63.8%
Simplified63.8%
Final simplification73.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -440.0)
t_1
(if (<= z -5.6e-80)
(/ (- (+ t (/ (* x y) z)) a) b)
(if (<= z 2.1e-32) (+ x (* t (/ z y))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -440.0) {
tmp = t_1;
} else if (z <= -5.6e-80) {
tmp = ((t + ((x * y) / z)) - a) / b;
} else if (z <= 2.1e-32) {
tmp = x + (t * (z / y));
} 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 = (t - a) / (b - y)
if (z <= (-440.0d0)) then
tmp = t_1
else if (z <= (-5.6d-80)) then
tmp = ((t + ((x * y) / z)) - a) / b
else if (z <= 2.1d-32) then
tmp = x + (t * (z / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -440.0) {
tmp = t_1;
} else if (z <= -5.6e-80) {
tmp = ((t + ((x * y) / z)) - a) / b;
} else if (z <= 2.1e-32) {
tmp = x + (t * (z / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -440.0: tmp = t_1 elif z <= -5.6e-80: tmp = ((t + ((x * y) / z)) - a) / b elif z <= 2.1e-32: tmp = x + (t * (z / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -440.0) tmp = t_1; elseif (z <= -5.6e-80) tmp = Float64(Float64(Float64(t + Float64(Float64(x * y) / z)) - a) / b); elseif (z <= 2.1e-32) tmp = Float64(x + Float64(t * Float64(z / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -440.0) tmp = t_1; elseif (z <= -5.6e-80) tmp = ((t + ((x * y) / z)) - a) / b; elseif (z <= 2.1e-32) tmp = x + (t * (z / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -440.0], t$95$1, If[LessEqual[z, -5.6e-80], N[(N[(N[(t + N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[z, 2.1e-32], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -440:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.6 \cdot 10^{-80}:\\
\;\;\;\;\frac{\left(t + \frac{x \cdot y}{z}\right) - a}{b}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-32}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -440 or 2.0999999999999999e-32 < z Initial program 56.3%
Taylor expanded in z around inf 81.1%
if -440 < z < -5.59999999999999978e-80Initial program 99.4%
Taylor expanded in y around 0 53.1%
associate--l+53.1%
*-commutative53.1%
associate-/l*53.1%
mul-1-neg53.1%
*-commutative53.1%
div-sub53.1%
Simplified53.1%
Taylor expanded in b around inf 60.1%
if -5.59999999999999978e-80 < z < 2.0999999999999999e-32Initial program 86.1%
Taylor expanded in t around -inf 78.3%
mul-1-neg78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
mul-1-neg78.3%
unsub-neg78.3%
mul-1-neg78.3%
+-commutative78.3%
mul-1-neg78.3%
unsub-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around 0 64.7%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in z around 0 46.8%
Taylor expanded in t around inf 63.6%
associate-/l*63.8%
Simplified63.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -1150.0)
t_1
(if (<= z -5.5e-80)
(/ (- (+ t (* x (/ y z))) a) b)
(if (<= z 6.4e-31) (+ x (* t (/ z y))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1150.0) {
tmp = t_1;
} else if (z <= -5.5e-80) {
tmp = ((t + (x * (y / z))) - a) / b;
} else if (z <= 6.4e-31) {
tmp = x + (t * (z / y));
} 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 = (t - a) / (b - y)
if (z <= (-1150.0d0)) then
tmp = t_1
else if (z <= (-5.5d-80)) then
tmp = ((t + (x * (y / z))) - a) / b
else if (z <= 6.4d-31) then
tmp = x + (t * (z / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1150.0) {
tmp = t_1;
} else if (z <= -5.5e-80) {
tmp = ((t + (x * (y / z))) - a) / b;
} else if (z <= 6.4e-31) {
tmp = x + (t * (z / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -1150.0: tmp = t_1 elif z <= -5.5e-80: tmp = ((t + (x * (y / z))) - a) / b elif z <= 6.4e-31: tmp = x + (t * (z / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -1150.0) tmp = t_1; elseif (z <= -5.5e-80) tmp = Float64(Float64(Float64(t + Float64(x * Float64(y / z))) - a) / b); elseif (z <= 6.4e-31) tmp = Float64(x + Float64(t * Float64(z / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -1150.0) tmp = t_1; elseif (z <= -5.5e-80) tmp = ((t + (x * (y / z))) - a) / b; elseif (z <= 6.4e-31) tmp = x + (t * (z / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1150.0], t$95$1, If[LessEqual[z, -5.5e-80], N[(N[(N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[z, 6.4e-31], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1150:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-80}:\\
\;\;\;\;\frac{\left(t + x \cdot \frac{y}{z}\right) - a}{b}\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-31}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1150 or 6.40000000000000036e-31 < z Initial program 56.3%
Taylor expanded in z around inf 81.1%
if -1150 < z < -5.4999999999999997e-80Initial program 99.4%
Taylor expanded in y around 0 53.1%
associate--l+53.1%
*-commutative53.1%
associate-/l*53.1%
mul-1-neg53.1%
*-commutative53.1%
div-sub53.1%
Simplified53.1%
Taylor expanded in b around inf 60.1%
associate-/l*59.9%
Simplified59.9%
if -5.4999999999999997e-80 < z < 6.40000000000000036e-31Initial program 86.1%
Taylor expanded in t around -inf 78.3%
mul-1-neg78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
mul-1-neg78.3%
unsub-neg78.3%
mul-1-neg78.3%
+-commutative78.3%
mul-1-neg78.3%
unsub-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around 0 64.7%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in z around 0 46.8%
Taylor expanded in t around inf 63.6%
associate-/l*63.8%
Simplified63.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -1.4)
t_1
(if (<= z 1.95e-299)
(/ (* x y) (+ y (* z (- b y))))
(if (<= z 7.2e-31) (+ x (* t (/ z y))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1.4) {
tmp = t_1;
} else if (z <= 1.95e-299) {
tmp = (x * y) / (y + (z * (b - y)));
} else if (z <= 7.2e-31) {
tmp = x + (t * (z / y));
} 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 = (t - a) / (b - y)
if (z <= (-1.4d0)) then
tmp = t_1
else if (z <= 1.95d-299) then
tmp = (x * y) / (y + (z * (b - y)))
else if (z <= 7.2d-31) then
tmp = x + (t * (z / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1.4) {
tmp = t_1;
} else if (z <= 1.95e-299) {
tmp = (x * y) / (y + (z * (b - y)));
} else if (z <= 7.2e-31) {
tmp = x + (t * (z / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -1.4: tmp = t_1 elif z <= 1.95e-299: tmp = (x * y) / (y + (z * (b - y))) elif z <= 7.2e-31: tmp = x + (t * (z / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -1.4) tmp = t_1; elseif (z <= 1.95e-299) tmp = Float64(Float64(x * y) / Float64(y + Float64(z * Float64(b - y)))); elseif (z <= 7.2e-31) tmp = Float64(x + Float64(t * Float64(z / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -1.4) tmp = t_1; elseif (z <= 1.95e-299) tmp = (x * y) / (y + (z * (b - y))); elseif (z <= 7.2e-31) tmp = x + (t * (z / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4], t$95$1, If[LessEqual[z, 1.95e-299], N[(N[(x * y), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e-31], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1.4:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-299}:\\
\;\;\;\;\frac{x \cdot y}{y + z \cdot \left(b - y\right)}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-31}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.3999999999999999 or 7.20000000000000007e-31 < z Initial program 56.7%
Taylor expanded in z around inf 81.3%
if -1.3999999999999999 < z < 1.9499999999999999e-299Initial program 92.9%
Taylor expanded in x around inf 58.6%
*-commutative58.6%
Simplified58.6%
if 1.9499999999999999e-299 < z < 7.20000000000000007e-31Initial program 82.6%
Taylor expanded in t around -inf 77.1%
mul-1-neg77.1%
*-commutative77.1%
distribute-rgt-neg-in77.1%
mul-1-neg77.1%
unsub-neg77.1%
mul-1-neg77.1%
+-commutative77.1%
mul-1-neg77.1%
unsub-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in a around 0 65.9%
associate-/l*58.5%
Simplified58.5%
Taylor expanded in z around 0 49.5%
Taylor expanded in t around inf 66.9%
associate-/l*67.4%
Simplified67.4%
Final simplification72.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -0.26)
t_1
(if (<= z 1.02e-299)
(/ (* x y) (+ y (* z b)))
(if (<= z 1.9e-32) (+ x (* t (/ z y))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -0.26) {
tmp = t_1;
} else if (z <= 1.02e-299) {
tmp = (x * y) / (y + (z * b));
} else if (z <= 1.9e-32) {
tmp = x + (t * (z / y));
} 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 = (t - a) / (b - y)
if (z <= (-0.26d0)) then
tmp = t_1
else if (z <= 1.02d-299) then
tmp = (x * y) / (y + (z * b))
else if (z <= 1.9d-32) then
tmp = x + (t * (z / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -0.26) {
tmp = t_1;
} else if (z <= 1.02e-299) {
tmp = (x * y) / (y + (z * b));
} else if (z <= 1.9e-32) {
tmp = x + (t * (z / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -0.26: tmp = t_1 elif z <= 1.02e-299: tmp = (x * y) / (y + (z * b)) elif z <= 1.9e-32: tmp = x + (t * (z / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -0.26) tmp = t_1; elseif (z <= 1.02e-299) tmp = Float64(Float64(x * y) / Float64(y + Float64(z * b))); elseif (z <= 1.9e-32) tmp = Float64(x + Float64(t * Float64(z / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -0.26) tmp = t_1; elseif (z <= 1.02e-299) tmp = (x * y) / (y + (z * b)); elseif (z <= 1.9e-32) tmp = x + (t * (z / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.26], t$95$1, If[LessEqual[z, 1.02e-299], N[(N[(x * y), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e-32], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -0.26:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-299}:\\
\;\;\;\;\frac{x \cdot y}{y + z \cdot b}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-32}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.26000000000000001 or 1.90000000000000004e-32 < z Initial program 56.7%
Taylor expanded in z around inf 81.3%
if -0.26000000000000001 < z < 1.02e-299Initial program 92.9%
Taylor expanded in b around inf 92.2%
*-commutative92.2%
Simplified92.2%
Taylor expanded in x around inf 57.9%
*-commutative58.6%
Simplified57.9%
if 1.02e-299 < z < 1.90000000000000004e-32Initial program 82.6%
Taylor expanded in t around -inf 77.1%
mul-1-neg77.1%
*-commutative77.1%
distribute-rgt-neg-in77.1%
mul-1-neg77.1%
unsub-neg77.1%
mul-1-neg77.1%
+-commutative77.1%
mul-1-neg77.1%
unsub-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in a around 0 65.9%
associate-/l*58.5%
Simplified58.5%
Taylor expanded in z around 0 49.5%
Taylor expanded in t around inf 66.9%
associate-/l*67.4%
Simplified67.4%
Final simplification72.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ t (- b y))))
(if (<= z -3.5e-6)
t_1
(if (<= z 2.7e-66) (/ x (- 1.0 z)) (if (<= z 1e+46) (- (/ a b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t / (b - y);
double tmp;
if (z <= -3.5e-6) {
tmp = t_1;
} else if (z <= 2.7e-66) {
tmp = x / (1.0 - z);
} else if (z <= 1e+46) {
tmp = -(a / 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 = t / (b - y)
if (z <= (-3.5d-6)) then
tmp = t_1
else if (z <= 2.7d-66) then
tmp = x / (1.0d0 - z)
else if (z <= 1d+46) then
tmp = -(a / 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 = t / (b - y);
double tmp;
if (z <= -3.5e-6) {
tmp = t_1;
} else if (z <= 2.7e-66) {
tmp = x / (1.0 - z);
} else if (z <= 1e+46) {
tmp = -(a / b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t / (b - y) tmp = 0 if z <= -3.5e-6: tmp = t_1 elif z <= 2.7e-66: tmp = x / (1.0 - z) elif z <= 1e+46: tmp = -(a / b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t / Float64(b - y)) tmp = 0.0 if (z <= -3.5e-6) tmp = t_1; elseif (z <= 2.7e-66) tmp = Float64(x / Float64(1.0 - z)); elseif (z <= 1e+46) tmp = Float64(-Float64(a / b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t / (b - y); tmp = 0.0; if (z <= -3.5e-6) tmp = t_1; elseif (z <= 2.7e-66) tmp = x / (1.0 - z); elseif (z <= 1e+46) tmp = -(a / b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e-6], t$95$1, If[LessEqual[z, 2.7e-66], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+46], (-N[(a / b), $MachinePrecision]), t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-66}:\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{elif}\;z \leq 10^{+46}:\\
\;\;\;\;-\frac{a}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.49999999999999995e-6 or 9.9999999999999999e45 < z Initial program 52.3%
Taylor expanded in z around inf 81.9%
Taylor expanded in t around inf 47.1%
if -3.49999999999999995e-6 < z < 2.69999999999999996e-66Initial program 87.6%
Taylor expanded in y around inf 48.5%
mul-1-neg48.5%
unsub-neg48.5%
Simplified48.5%
if 2.69999999999999996e-66 < z < 9.9999999999999999e45Initial program 87.6%
Taylor expanded in a around inf 52.3%
mul-1-neg52.3%
distribute-lft-neg-out52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in y around 0 47.5%
associate-*r/47.5%
neg-mul-147.5%
Simplified47.5%
Final simplification47.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ t (- b y))))
(if (<= z -1e-22)
t_1
(if (<= z 4.6e-66) x (if (<= z 1.8e+48) (- (/ a b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t / (b - y);
double tmp;
if (z <= -1e-22) {
tmp = t_1;
} else if (z <= 4.6e-66) {
tmp = x;
} else if (z <= 1.8e+48) {
tmp = -(a / 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 = t / (b - y)
if (z <= (-1d-22)) then
tmp = t_1
else if (z <= 4.6d-66) then
tmp = x
else if (z <= 1.8d+48) then
tmp = -(a / 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 = t / (b - y);
double tmp;
if (z <= -1e-22) {
tmp = t_1;
} else if (z <= 4.6e-66) {
tmp = x;
} else if (z <= 1.8e+48) {
tmp = -(a / b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t / (b - y) tmp = 0 if z <= -1e-22: tmp = t_1 elif z <= 4.6e-66: tmp = x elif z <= 1.8e+48: tmp = -(a / b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t / Float64(b - y)) tmp = 0.0 if (z <= -1e-22) tmp = t_1; elseif (z <= 4.6e-66) tmp = x; elseif (z <= 1.8e+48) tmp = Float64(-Float64(a / b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t / (b - y); tmp = 0.0; if (z <= -1e-22) tmp = t_1; elseif (z <= 4.6e-66) tmp = x; elseif (z <= 1.8e+48) tmp = -(a / b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1e-22], t$95$1, If[LessEqual[z, 4.6e-66], x, If[LessEqual[z, 1.8e+48], (-N[(a / b), $MachinePrecision]), t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -1 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-66}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+48}:\\
\;\;\;\;-\frac{a}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1e-22 or 1.79999999999999992e48 < z Initial program 53.4%
Taylor expanded in z around inf 80.8%
Taylor expanded in t around inf 46.8%
if -1e-22 < z < 4.59999999999999984e-66Initial program 87.3%
Taylor expanded in z around 0 48.9%
if 4.59999999999999984e-66 < z < 1.79999999999999992e48Initial program 87.6%
Taylor expanded in a around inf 52.3%
mul-1-neg52.3%
distribute-lft-neg-out52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in y around 0 47.5%
associate-*r/47.5%
neg-mul-147.5%
Simplified47.5%
Final simplification47.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -5.8e-80) (not (<= z 3.8e-30))) (/ (- t a) (- b y)) (+ x (* t (/ z y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.8e-80) || !(z <= 3.8e-30)) {
tmp = (t - a) / (b - y);
} else {
tmp = x + (t * (z / 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 <= (-5.8d-80)) .or. (.not. (z <= 3.8d-30))) then
tmp = (t - a) / (b - y)
else
tmp = x + (t * (z / 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 <= -5.8e-80) || !(z <= 3.8e-30)) {
tmp = (t - a) / (b - y);
} else {
tmp = x + (t * (z / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.8e-80) or not (z <= 3.8e-30): tmp = (t - a) / (b - y) else: tmp = x + (t * (z / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.8e-80) || !(z <= 3.8e-30)) tmp = Float64(Float64(t - a) / Float64(b - y)); else tmp = Float64(x + Float64(t * Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -5.8e-80) || ~((z <= 3.8e-30))) tmp = (t - a) / (b - y); else tmp = x + (t * (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.8e-80], N[Not[LessEqual[z, 3.8e-30]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{-80} \lor \neg \left(z \leq 3.8 \cdot 10^{-30}\right):\\
\;\;\;\;\frac{t - a}{b - y}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\end{array}
\end{array}
if z < -5.79999999999999996e-80 or 3.8000000000000003e-30 < z Initial program 61.6%
Taylor expanded in z around inf 75.5%
if -5.79999999999999996e-80 < z < 3.8000000000000003e-30Initial program 86.1%
Taylor expanded in t around -inf 78.3%
mul-1-neg78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
mul-1-neg78.3%
unsub-neg78.3%
mul-1-neg78.3%
+-commutative78.3%
mul-1-neg78.3%
unsub-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around 0 64.7%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in z around 0 46.8%
Taylor expanded in t around inf 63.6%
associate-/l*63.8%
Simplified63.8%
Final simplification71.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -6.5e-80) (not (<= z 2.35e-32))) (/ (- t a) b) (+ x (* t (/ z y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.5e-80) || !(z <= 2.35e-32)) {
tmp = (t - a) / b;
} else {
tmp = x + (t * (z / 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 <= (-6.5d-80)) .or. (.not. (z <= 2.35d-32))) then
tmp = (t - a) / b
else
tmp = x + (t * (z / 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 <= -6.5e-80) || !(z <= 2.35e-32)) {
tmp = (t - a) / b;
} else {
tmp = x + (t * (z / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.5e-80) or not (z <= 2.35e-32): tmp = (t - a) / b else: tmp = x + (t * (z / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.5e-80) || !(z <= 2.35e-32)) tmp = Float64(Float64(t - a) / b); else tmp = Float64(x + Float64(t * Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.5e-80) || ~((z <= 2.35e-32))) tmp = (t - a) / b; else tmp = x + (t * (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.5e-80], N[Not[LessEqual[z, 2.35e-32]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], N[(x + N[(t * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{-80} \lor \neg \left(z \leq 2.35 \cdot 10^{-32}\right):\\
\;\;\;\;\frac{t - a}{b}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{z}{y}\\
\end{array}
\end{array}
if z < -6.49999999999999984e-80 or 2.3500000000000001e-32 < z Initial program 61.6%
Taylor expanded in y around 0 52.1%
if -6.49999999999999984e-80 < z < 2.3500000000000001e-32Initial program 86.1%
Taylor expanded in t around -inf 78.3%
mul-1-neg78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
mul-1-neg78.3%
unsub-neg78.3%
mul-1-neg78.3%
+-commutative78.3%
mul-1-neg78.3%
unsub-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around 0 64.7%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in z around 0 46.8%
Taylor expanded in t around inf 63.6%
associate-/l*63.8%
Simplified63.8%
Final simplification56.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4e-47) (not (<= y 350000000.0))) (/ 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 <= -4e-47) || !(y <= 350000000.0)) {
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 <= (-4d-47)) .or. (.not. (y <= 350000000.0d0))) 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 <= -4e-47) || !(y <= 350000000.0)) {
tmp = x / (1.0 - z);
} else {
tmp = (t - a) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4e-47) or not (y <= 350000000.0): 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 <= -4e-47) || !(y <= 350000000.0)) 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 <= -4e-47) || ~((y <= 350000000.0))) 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, -4e-47], N[Not[LessEqual[y, 350000000.0]], $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 -4 \cdot 10^{-47} \lor \neg \left(y \leq 350000000\right):\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t - a}{b}\\
\end{array}
\end{array}
if y < -3.9999999999999999e-47 or 3.5e8 < y Initial program 60.0%
Taylor expanded in y around inf 46.0%
mul-1-neg46.0%
unsub-neg46.0%
Simplified46.0%
if -3.9999999999999999e-47 < y < 3.5e8Initial program 83.0%
Taylor expanded in y around 0 64.2%
Final simplification54.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -5.4e-80) (not (<= z 4.2e-66))) (/ t b) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.4e-80) || !(z <= 4.2e-66)) {
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 ((z <= (-5.4d-80)) .or. (.not. (z <= 4.2d-66))) 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 ((z <= -5.4e-80) || !(z <= 4.2e-66)) {
tmp = t / b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.4e-80) or not (z <= 4.2e-66): tmp = t / b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.4e-80) || !(z <= 4.2e-66)) 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 ((z <= -5.4e-80) || ~((z <= 4.2e-66))) tmp = t / b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.4e-80], N[Not[LessEqual[z, 4.2e-66]], $MachinePrecision]], N[(t / b), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \cdot 10^{-80} \lor \neg \left(z \leq 4.2 \cdot 10^{-66}\right):\\
\;\;\;\;\frac{t}{b}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -5.4000000000000004e-80 or 4.2000000000000001e-66 < z Initial program 62.5%
Taylor expanded in y around 0 36.1%
associate--l+36.1%
*-commutative36.1%
associate-/l*46.0%
mul-1-neg46.0%
*-commutative46.0%
div-sub46.0%
Simplified46.0%
Taylor expanded in b around inf 58.0%
associate-/l*58.6%
Simplified58.6%
Taylor expanded in t around inf 31.5%
if -5.4000000000000004e-80 < z < 4.2000000000000001e-66Initial program 85.5%
Taylor expanded in z around 0 53.5%
Final simplification39.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.000185) (not (<= z 2900000.0))) (/ a y) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.000185) || !(z <= 2900000.0)) {
tmp = a / y;
} 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 ((z <= (-0.000185d0)) .or. (.not. (z <= 2900000.0d0))) then
tmp = a / y
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 ((z <= -0.000185) || !(z <= 2900000.0)) {
tmp = a / y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.000185) or not (z <= 2900000.0): tmp = a / y else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.000185) || !(z <= 2900000.0)) tmp = Float64(a / y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.000185) || ~((z <= 2900000.0))) tmp = a / y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.000185], N[Not[LessEqual[z, 2900000.0]], $MachinePrecision]], N[(a / y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.000185 \lor \neg \left(z \leq 2900000\right):\\
\;\;\;\;\frac{a}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.85e-4 or 2.9e6 < z Initial program 53.4%
Taylor expanded in z around inf 81.3%
Taylor expanded in b around 0 38.1%
neg-mul-138.1%
Simplified38.1%
Taylor expanded in t around 0 21.8%
if -1.85e-4 < z < 2.9e6Initial program 89.0%
Taylor expanded in z around 0 42.9%
Final simplification32.3%
(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 71.0%
Taylor expanded in z around 0 23.1%
(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 2024135
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
:alt
(! :herbie-platform default (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))