
(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 15 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 (+ (* (- b y) z) y))
(t_2 (fma (- b y) z y))
(t_3 (* (fma (/ z t_2) (+ (/ t a) -1.0) (* (/ y a) (/ x t_2))) a))
(t_4 (* (- t a) z))
(t_5 (/ (fma y x t_4) t_1))
(t_6 (/ (+ t_4 (* y x)) t_1))
(t_7
(-
(/ (- t a) (- b y))
(/
(fma (- y) (/ x (- b y)) (* (/ y (pow (- b y) 2.0)) (- t a)))
z))))
(if (<= t_6 (- INFINITY))
t_3
(if (<= t_6 -5e-303)
t_5
(if (<= t_6 0.0)
t_7
(if (<= t_6 1e+296) t_5 (if (<= t_6 INFINITY) t_3 t_7)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((b - y) * z) + y;
double t_2 = fma((b - y), z, y);
double t_3 = fma((z / t_2), ((t / a) + -1.0), ((y / a) * (x / t_2))) * a;
double t_4 = (t - a) * z;
double t_5 = fma(y, x, t_4) / t_1;
double t_6 = (t_4 + (y * x)) / t_1;
double t_7 = ((t - a) / (b - y)) - (fma(-y, (x / (b - y)), ((y / pow((b - y), 2.0)) * (t - a))) / z);
double tmp;
if (t_6 <= -((double) INFINITY)) {
tmp = t_3;
} else if (t_6 <= -5e-303) {
tmp = t_5;
} else if (t_6 <= 0.0) {
tmp = t_7;
} else if (t_6 <= 1e+296) {
tmp = t_5;
} else if (t_6 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = t_7;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(b - y) * z) + y) t_2 = fma(Float64(b - y), z, y) t_3 = Float64(fma(Float64(z / t_2), Float64(Float64(t / a) + -1.0), Float64(Float64(y / a) * Float64(x / t_2))) * a) t_4 = Float64(Float64(t - a) * z) t_5 = Float64(fma(y, x, t_4) / t_1) t_6 = Float64(Float64(t_4 + Float64(y * x)) / t_1) t_7 = Float64(Float64(Float64(t - a) / Float64(b - y)) - Float64(fma(Float64(-y), Float64(x / Float64(b - y)), Float64(Float64(y / (Float64(b - y) ^ 2.0)) * Float64(t - a))) / z)) tmp = 0.0 if (t_6 <= Float64(-Inf)) tmp = t_3; elseif (t_6 <= -5e-303) tmp = t_5; elseif (t_6 <= 0.0) tmp = t_7; elseif (t_6 <= 1e+296) tmp = t_5; elseif (t_6 <= Inf) tmp = t_3; else tmp = t_7; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(z / t$95$2), $MachinePrecision] * N[(N[(t / a), $MachinePrecision] + -1.0), $MachinePrecision] + N[(N[(y / a), $MachinePrecision] * N[(x / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y * x + t$95$4), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$6 = N[(N[(t$95$4 + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$7 = N[(N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * N[(x / N[(b - y), $MachinePrecision]), $MachinePrecision] + N[(N[(y / N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$6, (-Infinity)], t$95$3, If[LessEqual[t$95$6, -5e-303], t$95$5, If[LessEqual[t$95$6, 0.0], t$95$7, If[LessEqual[t$95$6, 1e+296], t$95$5, If[LessEqual[t$95$6, Infinity], t$95$3, t$95$7]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - y\right) \cdot z + y\\
t_2 := \mathsf{fma}\left(b - y, z, y\right)\\
t_3 := \mathsf{fma}\left(\frac{z}{t\_2}, \frac{t}{a} + -1, \frac{y}{a} \cdot \frac{x}{t\_2}\right) \cdot a\\
t_4 := \left(t - a\right) \cdot z\\
t_5 := \frac{\mathsf{fma}\left(y, x, t\_4\right)}{t\_1}\\
t_6 := \frac{t\_4 + y \cdot x}{t\_1}\\
t_7 := \frac{t - a}{b - y} - \frac{\mathsf{fma}\left(-y, \frac{x}{b - y}, \frac{y}{{\left(b - y\right)}^{2}} \cdot \left(t - a\right)\right)}{z}\\
\mathbf{if}\;t\_6 \leq -\infty:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_6 \leq -5 \cdot 10^{-303}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t\_6 \leq 0:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;t\_6 \leq 10^{+296}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t\_6 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_7\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -inf.0 or 9.99999999999999981e295 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < +inf.0Initial program 28.7%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.5%
if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -4.9999999999999998e-303 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 9.99999999999999981e295Initial program 99.7%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6499.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.7
Applied rewrites99.7%
if -4.9999999999999998e-303 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) Initial program 8.1%
Taylor expanded in z around inf
Applied rewrites97.8%
Final simplification93.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -3.5e+42)
t_1
(if (<= z 3.3e+38) (/ (fma y x (* (- t a) z)) (+ (* (- b y) 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 <= -3.5e+42) {
tmp = t_1;
} else if (z <= 3.3e+38) {
tmp = fma(y, x, ((t - a) * z)) / (((b - y) * 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 <= -3.5e+42) tmp = t_1; elseif (z <= 3.3e+38) tmp = Float64(fma(y, x, Float64(Float64(t - a) * z)) / Float64(Float64(Float64(b - y) * z) + y)); else tmp = t_1; end return 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, -3.5e+42], t$95$1, If[LessEqual[z, 3.3e+38], N[(N[(y * x + N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+38}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, x, \left(t - a\right) \cdot z\right)}{\left(b - y\right) \cdot z + y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.50000000000000023e42 or 3.2999999999999999e38 < z Initial program 39.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6486.4
Applied rewrites86.4%
if -3.50000000000000023e42 < z < 3.2999999999999999e38Initial program 83.3%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6483.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6483.3
Applied rewrites83.3%
Final simplification84.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (- b y) z y)) (t_2 (/ (- t a) (- b y))))
(if (<= z -4.4e+30)
t_2
(if (<= z 4.6e-120)
(* (/ y t_1) x)
(if (<= z 25000000.0) (/ (* (- t a) z) t_1) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((b - y), z, y);
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -4.4e+30) {
tmp = t_2;
} else if (z <= 4.6e-120) {
tmp = (y / t_1) * x;
} else if (z <= 25000000.0) {
tmp = ((t - a) * z) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(b - y), z, y) t_2 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -4.4e+30) tmp = t_2; elseif (z <= 4.6e-120) tmp = Float64(Float64(y / t_1) * x); elseif (z <= 25000000.0) tmp = Float64(Float64(Float64(t - a) * z) / t_1); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.4e+30], t$95$2, If[LessEqual[z, 4.6e-120], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 25000000.0], N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b - y, z, y\right)\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -4.4 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-120}:\\
\;\;\;\;\frac{y}{t\_1} \cdot x\\
\mathbf{elif}\;z \leq 25000000:\\
\;\;\;\;\frac{\left(t - a\right) \cdot z}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -4.4e30 or 2.5e7 < z Initial program 41.1%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6484.1
Applied rewrites84.1%
if -4.4e30 < z < 4.59999999999999973e-120Initial program 83.0%
Taylor expanded in x around inf
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6469.1
Applied rewrites69.1%
if 4.59999999999999973e-120 < z < 2.5e7Initial program 88.1%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6488.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6488.1
Applied rewrites88.1%
Taylor expanded in x around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6467.1
Applied rewrites67.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -4.5e-7)
t_1
(if (<= z 1750000000.0) (/ (fma y x (* t z)) (fma (- b y) 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 <= -4.5e-7) {
tmp = t_1;
} else if (z <= 1750000000.0) {
tmp = fma(y, x, (t * z)) / fma((b - y), 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 <= -4.5e-7) tmp = t_1; elseif (z <= 1750000000.0) tmp = Float64(fma(y, x, Float64(t * z)) / fma(Float64(b - y), z, y)); else tmp = t_1; end return 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, -4.5e-7], t$95$1, If[LessEqual[z, 1750000000.0], N[(N[(y * x + N[(t * z), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1750000000:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, x, t \cdot z\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.4999999999999998e-7 or 1.75e9 < z Initial program 41.4%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6483.1
Applied rewrites83.1%
if -4.4999999999999998e-7 < z < 1.75e9Initial program 85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6467.5
Applied rewrites67.5%
Applied rewrites67.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -4.5e-7)
t_1
(if (<= z 1750000000.0) (/ (fma t z (* y x)) (fma (- b y) 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 <= -4.5e-7) {
tmp = t_1;
} else if (z <= 1750000000.0) {
tmp = fma(t, z, (y * x)) / fma((b - y), 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 <= -4.5e-7) tmp = t_1; elseif (z <= 1750000000.0) tmp = Float64(fma(t, z, Float64(y * x)) / fma(Float64(b - y), z, y)); else tmp = t_1; end return 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, -4.5e-7], t$95$1, If[LessEqual[z, 1750000000.0], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1750000000:\\
\;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.4999999999999998e-7 or 1.75e9 < z Initial program 41.4%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6483.1
Applied rewrites83.1%
if -4.4999999999999998e-7 < z < 1.75e9Initial program 85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6467.5
Applied rewrites67.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -4.4e+30)
t_1
(if (<= z 2.7e-25) (* (/ y (fma (- b y) z y)) x) 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 <= -4.4e+30) {
tmp = t_1;
} else if (z <= 2.7e-25) {
tmp = (y / fma((b - y), z, y)) * x;
} 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 <= -4.4e+30) tmp = t_1; elseif (z <= 2.7e-25) tmp = Float64(Float64(y / fma(Float64(b - y), z, y)) * x); else tmp = t_1; end return 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, -4.4e+30], t$95$1, If[LessEqual[z, 2.7e-25], N[(N[(y / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -4.4 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-25}:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.4e30 or 2.70000000000000016e-25 < z Initial program 43.8%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6482.7
Applied rewrites82.7%
if -4.4e30 < z < 2.70000000000000016e-25Initial program 83.2%
Taylor expanded in x around inf
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6465.9
Applied rewrites65.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ t (- b y))))
(if (<= z -6.8e+28)
t_1
(if (<= z 2.7e-25)
(fma (fma x z x) z x)
(if (<= z 1.4e+95) (/ (- 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 <= -6.8e+28) {
tmp = t_1;
} else if (z <= 2.7e-25) {
tmp = fma(fma(x, z, x), z, x);
} else if (z <= 1.4e+95) {
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 <= -6.8e+28) tmp = t_1; elseif (z <= 2.7e-25) tmp = fma(fma(x, z, x), z, x); elseif (z <= 1.4e+95) tmp = Float64(Float64(-a) / b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.8e+28], t$95$1, If[LessEqual[z, 2.7e-25], N[(N[(x * z + x), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[z, 1.4e+95], N[((-a) / b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -6.8 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-25}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right)\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+95}:\\
\;\;\;\;\frac{-a}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.8e28 or 1.3999999999999999e95 < z Initial program 37.6%
Taylor expanded in t around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6431.8
Applied rewrites31.8%
Taylor expanded in z around inf
Applied rewrites50.2%
if -6.8e28 < z < 2.70000000000000016e-25Initial program 83.1%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6459.1
Applied rewrites59.1%
Taylor expanded in z around 0
Applied rewrites58.0%
if 2.70000000000000016e-25 < z < 1.3999999999999999e95Initial program 72.4%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6472.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6472.4
Applied rewrites72.4%
Taylor expanded in y around 0
lower-/.f64N/A
lower--.f6438.0
Applied rewrites38.0%
Taylor expanded in t around 0
Applied rewrites34.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a) b)))
(if (<= z -1.15e+115)
t_1
(if (<= z -6.8e+28)
(/ t b)
(if (<= z 2.7e-25) (fma (fma x z x) z x) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -a / b;
double tmp;
if (z <= -1.15e+115) {
tmp = t_1;
} else if (z <= -6.8e+28) {
tmp = t / b;
} else if (z <= 2.7e-25) {
tmp = fma(fma(x, z, x), z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(-a) / b) tmp = 0.0 if (z <= -1.15e+115) tmp = t_1; elseif (z <= -6.8e+28) tmp = Float64(t / b); elseif (z <= 2.7e-25) tmp = fma(fma(x, z, x), z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-a) / b), $MachinePrecision]}, If[LessEqual[z, -1.15e+115], t$95$1, If[LessEqual[z, -6.8e+28], N[(t / b), $MachinePrecision], If[LessEqual[z, 2.7e-25], N[(N[(x * z + x), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-a}{b}\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{+28}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-25}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.15000000000000002e115 or 2.70000000000000016e-25 < z Initial program 41.6%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6441.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6441.6
Applied rewrites41.6%
Taylor expanded in y around 0
lower-/.f64N/A
lower--.f6451.3
Applied rewrites51.3%
Taylor expanded in t around 0
Applied rewrites35.3%
if -1.15000000000000002e115 < z < -6.8e28Initial program 59.4%
Taylor expanded in t around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6449.1
Applied rewrites49.1%
Taylor expanded in y around 0
Applied rewrites50.2%
if -6.8e28 < z < 2.70000000000000016e-25Initial program 83.1%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6459.1
Applied rewrites59.1%
Taylor expanded in z around 0
Applied rewrites58.0%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (- t a) (- b y)))) (if (<= z -1.52e-86) t_1 (if (<= z 2.7e-25) (fma x z x) 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.52e-86) {
tmp = t_1;
} else if (z <= 2.7e-25) {
tmp = fma(x, z, x);
} 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.52e-86) tmp = t_1; elseif (z <= 2.7e-25) tmp = fma(x, z, x); else tmp = t_1; end return 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.52e-86], t$95$1, If[LessEqual[z, 2.7e-25], N[(x * z + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1.52 \cdot 10^{-86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-25}:\\
\;\;\;\;\mathsf{fma}\left(x, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.52e-86 or 2.70000000000000016e-25 < z Initial program 49.0%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6477.0
Applied rewrites77.0%
if -1.52e-86 < z < 2.70000000000000016e-25Initial program 83.4%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6463.5
Applied rewrites63.5%
Taylor expanded in z around 0
Applied rewrites63.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (- 1.0 z)))) (if (<= y -4.1e+69) t_1 (if (<= y 850000000.0) (/ (- t a) b) t_1))))
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.1e+69) {
tmp = t_1;
} else if (y <= 850000000.0) {
tmp = (t - 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 = x / (1.0d0 - z)
if (y <= (-4.1d+69)) then
tmp = t_1
else if (y <= 850000000.0d0) then
tmp = (t - 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 = x / (1.0 - z);
double tmp;
if (y <= -4.1e+69) {
tmp = t_1;
} else if (y <= 850000000.0) {
tmp = (t - a) / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 - z) tmp = 0 if y <= -4.1e+69: tmp = t_1 elif y <= 850000000.0: tmp = (t - a) / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 - z)) tmp = 0.0 if (y <= -4.1e+69) tmp = t_1; elseif (y <= 850000000.0) tmp = Float64(Float64(t - a) / b); else tmp = t_1; 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.1e+69) tmp = t_1; elseif (y <= 850000000.0) tmp = (t - a) / b; else tmp = t_1; 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.1e+69], t$95$1, If[LessEqual[y, 850000000.0], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -4.1 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 850000000:\\
\;\;\;\;\frac{t - a}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.0999999999999999e69 or 8.5e8 < y Initial program 49.3%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6458.9
Applied rewrites58.9%
if -4.0999999999999999e69 < y < 8.5e8Initial program 75.4%
Taylor expanded in y around 0
lower-/.f64N/A
lower--.f6454.5
Applied rewrites54.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ t (- b y)))) (if (<= z -4.6e+66) t_1 (if (<= z 4.8e+107) (/ x (- 1.0 z)) 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 <= -4.6e+66) {
tmp = t_1;
} else if (z <= 4.8e+107) {
tmp = x / (1.0 - z);
} 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 <= (-4.6d+66)) then
tmp = t_1
else if (z <= 4.8d+107) then
tmp = x / (1.0d0 - z)
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 <= -4.6e+66) {
tmp = t_1;
} else if (z <= 4.8e+107) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t / (b - y) tmp = 0 if z <= -4.6e+66: tmp = t_1 elif z <= 4.8e+107: tmp = x / (1.0 - z) 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 <= -4.6e+66) tmp = t_1; elseif (z <= 4.8e+107) tmp = Float64(x / Float64(1.0 - z)); 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 <= -4.6e+66) tmp = t_1; elseif (z <= 4.8e+107) tmp = x / (1.0 - z); 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, -4.6e+66], t$95$1, If[LessEqual[z, 4.8e+107], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+107}:\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.6e66 or 4.8000000000000001e107 < z Initial program 35.3%
Taylor expanded in t around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6433.6
Applied rewrites33.6%
Taylor expanded in z around inf
Applied rewrites52.4%
if -4.6e66 < z < 4.8000000000000001e107Initial program 80.8%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6452.0
Applied rewrites52.0%
(FPCore (x y z t a b) :precision binary64 (if (<= z -6.8e+28) (/ t b) (if (<= z 6.2e+64) (fma (fma x z x) z x) (/ t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.8e+28) {
tmp = t / b;
} else if (z <= 6.2e+64) {
tmp = fma(fma(x, z, x), z, x);
} else {
tmp = t / b;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.8e+28) tmp = Float64(t / b); elseif (z <= 6.2e+64) tmp = fma(fma(x, z, x), z, x); else tmp = Float64(t / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.8e+28], N[(t / b), $MachinePrecision], If[LessEqual[z, 6.2e+64], N[(N[(x * z + x), $MachinePrecision] * z + x), $MachinePrecision], N[(t / b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+28}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
\end{array}
if z < -6.8e28 or 6.1999999999999998e64 < z Initial program 38.6%
Taylor expanded in t around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6429.8
Applied rewrites29.8%
Taylor expanded in y around 0
Applied rewrites29.1%
if -6.8e28 < z < 6.1999999999999998e64Initial program 83.0%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6453.7
Applied rewrites53.7%
Taylor expanded in z around 0
Applied rewrites52.0%
(FPCore (x y z t a b) :precision binary64 (if (<= z -1.8e+16) (/ t b) (if (<= z 6.2e+64) (fma x z x) (/ t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.8e+16) {
tmp = t / b;
} else if (z <= 6.2e+64) {
tmp = fma(x, z, x);
} else {
tmp = t / b;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.8e+16) tmp = Float64(t / b); elseif (z <= 6.2e+64) tmp = fma(x, z, x); else tmp = Float64(t / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.8e+16], N[(t / b), $MachinePrecision], If[LessEqual[z, 6.2e+64], N[(x * z + x), $MachinePrecision], N[(t / b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{+16}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(x, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
\end{array}
if z < -1.8e16 or 6.1999999999999998e64 < z Initial program 38.3%
Taylor expanded in t around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6429.5
Applied rewrites29.5%
Taylor expanded in y around 0
Applied rewrites28.9%
if -1.8e16 < z < 6.1999999999999998e64Initial program 83.5%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6453.4
Applied rewrites53.4%
Taylor expanded in z around 0
Applied rewrites52.3%
(FPCore (x y z t a b) :precision binary64 (fma x z x))
double code(double x, double y, double z, double t, double a, double b) {
return fma(x, z, x);
}
function code(x, y, z, t, a, b) return fma(x, z, x) end
code[x_, y_, z_, t_, a_, b_] := N[(x * z + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, z, x\right)
\end{array}
Initial program 62.9%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6437.1
Applied rewrites37.1%
Taylor expanded in z around 0
Applied rewrites29.6%
(FPCore (x y z t a b) :precision binary64 (* z x))
double code(double x, double y, double z, double t, double a, double b) {
return z * 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 = z * x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return z * x;
}
def code(x, y, z, t, a, b): return z * x
function code(x, y, z, t, a, b) return Float64(z * x) end
function tmp = code(x, y, z, t, a, b) tmp = z * x; end
code[x_, y_, z_, t_, a_, b_] := N[(z * x), $MachinePrecision]
\begin{array}{l}
\\
z \cdot x
\end{array}
Initial program 62.9%
Taylor expanded in y around inf
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f6437.1
Applied rewrites37.1%
Taylor expanded in z around 0
Applied rewrites29.6%
Taylor expanded in z around inf
Applied rewrites3.7%
Final simplification3.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 2024325
(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)))))