
(FPCore (x y z t) :precision binary64 (/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
def code(x, y, z, t): return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
def code(x, y, z, t): return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* z t) x)) (t_2 (/ (+ x (/ (- (* y z) x) t_1)) (+ x 1.0))))
(if (<= t_2 -5e+232)
(/ (- x (* y (- (/ x (* y t_1)) (/ z t_1)))) (+ x 1.0))
(if (<= t_2 4e+171)
t_2
(- (/ x (+ x 1.0)) (/ (- (/ (/ x z) (+ x 1.0)) (/ y (+ x 1.0))) t))))))
double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double tmp;
if (t_2 <= -5e+232) {
tmp = (x - (y * ((x / (y * t_1)) - (z / t_1)))) / (x + 1.0);
} else if (t_2 <= 4e+171) {
tmp = t_2;
} else {
tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z * t) - x
t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0d0)
if (t_2 <= (-5d+232)) then
tmp = (x - (y * ((x / (y * t_1)) - (z / t_1)))) / (x + 1.0d0)
else if (t_2 <= 4d+171) then
tmp = t_2
else
tmp = (x / (x + 1.0d0)) - ((((x / z) / (x + 1.0d0)) - (y / (x + 1.0d0))) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double tmp;
if (t_2 <= -5e+232) {
tmp = (x - (y * ((x / (y * t_1)) - (z / t_1)))) / (x + 1.0);
} else if (t_2 <= 4e+171) {
tmp = t_2;
} else {
tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t);
}
return tmp;
}
def code(x, y, z, t): t_1 = (z * t) - x t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0) tmp = 0 if t_2 <= -5e+232: tmp = (x - (y * ((x / (y * t_1)) - (z / t_1)))) / (x + 1.0) elif t_2 <= 4e+171: tmp = t_2 else: tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(z * t) - x) t_2 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / t_1)) / Float64(x + 1.0)) tmp = 0.0 if (t_2 <= -5e+232) tmp = Float64(Float64(x - Float64(y * Float64(Float64(x / Float64(y * t_1)) - Float64(z / t_1)))) / Float64(x + 1.0)); elseif (t_2 <= 4e+171) tmp = t_2; else tmp = Float64(Float64(x / Float64(x + 1.0)) - Float64(Float64(Float64(Float64(x / z) / Float64(x + 1.0)) - Float64(y / Float64(x + 1.0))) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (z * t) - x; t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0); tmp = 0.0; if (t_2 <= -5e+232) tmp = (x - (y * ((x / (y * t_1)) - (z / t_1)))) / (x + 1.0); elseif (t_2 <= 4e+171) tmp = t_2; else tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+232], N[(N[(x - N[(y * N[(N[(x / N[(y * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(z / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 4e+171], t$95$2, N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(x / z), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] - N[(y / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x + \frac{y \cdot z - x}{t\_1}}{x + 1}\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{+232}:\\
\;\;\;\;\frac{x - y \cdot \left(\frac{x}{y \cdot t\_1} - \frac{z}{t\_1}\right)}{x + 1}\\
\mathbf{elif}\;t\_2 \leq 4 \cdot 10^{+171}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1} - \frac{\frac{\frac{x}{z}}{x + 1} - \frac{y}{x + 1}}{t}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) < -4.99999999999999987e232Initial program 64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in y around inf 99.9%
if -4.99999999999999987e232 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) < 3.99999999999999982e171Initial program 99.4%
if 3.99999999999999982e171 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) Initial program 40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in t around -inf 86.2%
+-commutative86.2%
mul-1-neg86.2%
unsub-neg86.2%
+-commutative86.2%
sub-neg86.2%
mul-1-neg86.2%
distribute-neg-frac286.2%
distribute-neg-in86.2%
metadata-eval86.2%
unsub-neg86.2%
mul-1-neg86.2%
remove-double-neg86.2%
associate-/r*86.2%
+-commutative86.2%
Simplified86.2%
Final simplification98.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (+ x (/ (- (* y z) x) (- (* z t) x))) (+ x 1.0))))
(if (<= t_1 (- INFINITY))
(/ (+ x (/ 1.0 (/ t y))) (+ x 1.0))
(if (<= t_1 4e+171)
t_1
(- (/ x (+ x 1.0)) (/ (- (/ (/ x z) (+ x 1.0)) (/ y (+ x 1.0))) t))))))
double code(double x, double y, double z, double t) {
double t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + (1.0 / (t / y))) / (x + 1.0);
} else if (t_1 <= 4e+171) {
tmp = t_1;
} else {
tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t);
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + (1.0 / (t / y))) / (x + 1.0);
} else if (t_1 <= 4e+171) {
tmp = t_1;
} else {
tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t);
}
return tmp;
}
def code(x, y, z, t): t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0) tmp = 0 if t_1 <= -math.inf: tmp = (x + (1.0 / (t / y))) / (x + 1.0) elif t_1 <= 4e+171: tmp = t_1 else: tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(z * t) - x))) / Float64(x + 1.0)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + Float64(1.0 / Float64(t / y))) / Float64(x + 1.0)); elseif (t_1 <= 4e+171) tmp = t_1; else tmp = Float64(Float64(x / Float64(x + 1.0)) - Float64(Float64(Float64(Float64(x / z) / Float64(x + 1.0)) - Float64(y / Float64(x + 1.0))) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0); tmp = 0.0; if (t_1 <= -Inf) tmp = (x + (1.0 / (t / y))) / (x + 1.0); elseif (t_1 <= 4e+171) tmp = t_1; else tmp = (x / (x + 1.0)) - ((((x / z) / (x + 1.0)) - (y / (x + 1.0))) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + N[(1.0 / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+171], t$95$1, N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(x / z), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] - N[(y / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z - x}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{x + \frac{1}{\frac{t}{y}}}{x + 1}\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+171}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1} - \frac{\frac{\frac{x}{z}}{x + 1} - \frac{y}{x + 1}}{t}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) < -inf.0Initial program 48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
+-commutative99.9%
Simplified99.9%
clear-num100.0%
inv-pow100.0%
Applied egg-rr100.0%
unpow-1100.0%
Simplified100.0%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) < 3.99999999999999982e171Initial program 99.4%
if 3.99999999999999982e171 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) Initial program 40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in t around -inf 86.2%
+-commutative86.2%
mul-1-neg86.2%
unsub-neg86.2%
+-commutative86.2%
sub-neg86.2%
mul-1-neg86.2%
distribute-neg-frac286.2%
distribute-neg-in86.2%
metadata-eval86.2%
unsub-neg86.2%
mul-1-neg86.2%
remove-double-neg86.2%
associate-/r*86.2%
+-commutative86.2%
Simplified86.2%
Final simplification98.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (+ x (/ (- (* y z) x) (- (* z t) x))) (+ x 1.0))))
(if (<= t_1 (- INFINITY))
(/ (+ x (/ 1.0 (/ t y))) (+ x 1.0))
(if (<= t_1 4e+171) t_1 (/ (- x (/ (- (/ x z) y) t)) (+ x 1.0))))))
double code(double x, double y, double z, double t) {
double t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + (1.0 / (t / y))) / (x + 1.0);
} else if (t_1 <= 4e+171) {
tmp = t_1;
} else {
tmp = (x - (((x / z) - y) / t)) / (x + 1.0);
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + (1.0 / (t / y))) / (x + 1.0);
} else if (t_1 <= 4e+171) {
tmp = t_1;
} else {
tmp = (x - (((x / z) - y) / t)) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0) tmp = 0 if t_1 <= -math.inf: tmp = (x + (1.0 / (t / y))) / (x + 1.0) elif t_1 <= 4e+171: tmp = t_1 else: tmp = (x - (((x / z) - y) / t)) / (x + 1.0) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(z * t) - x))) / Float64(x + 1.0)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + Float64(1.0 / Float64(t / y))) / Float64(x + 1.0)); elseif (t_1 <= 4e+171) tmp = t_1; else tmp = Float64(Float64(x - Float64(Float64(Float64(x / z) - y) / t)) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0); tmp = 0.0; if (t_1 <= -Inf) tmp = (x + (1.0 / (t / y))) / (x + 1.0); elseif (t_1 <= 4e+171) tmp = t_1; else tmp = (x - (((x / z) - y) / t)) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + N[(1.0 / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+171], t$95$1, N[(N[(x - N[(N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z - x}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{x + \frac{1}{\frac{t}{y}}}{x + 1}\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+171}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \frac{\frac{x}{z} - y}{t}}{x + 1}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) < -inf.0Initial program 48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
+-commutative99.9%
Simplified99.9%
clear-num100.0%
inv-pow100.0%
Applied egg-rr100.0%
unpow-1100.0%
Simplified100.0%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) < 3.99999999999999982e171Initial program 99.4%
if 3.99999999999999982e171 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) Initial program 40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in t around -inf 82.8%
mul-1-neg82.8%
distribute-lft-out--82.8%
Simplified82.8%
Final simplification97.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (+ x (/ y t)) (+ x 1.0))))
(if (<= t -2.5e-122)
t_1
(if (<= t 4.3e-143)
(/ (+ (- x (* y (/ z x))) 1.0) (+ x 1.0))
(if (<= t 2.65e+38) (/ (- x (/ x (- (* z t) x))) (+ x 1.0)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (x + (y / t)) / (x + 1.0);
double tmp;
if (t <= -2.5e-122) {
tmp = t_1;
} else if (t <= 4.3e-143) {
tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0);
} else if (t <= 2.65e+38) {
tmp = (x - (x / ((z * t) - x))) / (x + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (y / t)) / (x + 1.0d0)
if (t <= (-2.5d-122)) then
tmp = t_1
else if (t <= 4.3d-143) then
tmp = ((x - (y * (z / x))) + 1.0d0) / (x + 1.0d0)
else if (t <= 2.65d+38) then
tmp = (x - (x / ((z * t) - x))) / (x + 1.0d0)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x + (y / t)) / (x + 1.0);
double tmp;
if (t <= -2.5e-122) {
tmp = t_1;
} else if (t <= 4.3e-143) {
tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0);
} else if (t <= 2.65e+38) {
tmp = (x - (x / ((z * t) - x))) / (x + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x + (y / t)) / (x + 1.0) tmp = 0 if t <= -2.5e-122: tmp = t_1 elif t <= 4.3e-143: tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0) elif t <= 2.65e+38: tmp = (x - (x / ((z * t) - x))) / (x + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)) tmp = 0.0 if (t <= -2.5e-122) tmp = t_1; elseif (t <= 4.3e-143) tmp = Float64(Float64(Float64(x - Float64(y * Float64(z / x))) + 1.0) / Float64(x + 1.0)); elseif (t <= 2.65e+38) tmp = Float64(Float64(x - Float64(x / Float64(Float64(z * t) - x))) / Float64(x + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x + (y / t)) / (x + 1.0); tmp = 0.0; if (t <= -2.5e-122) tmp = t_1; elseif (t <= 4.3e-143) tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0); elseif (t <= 2.65e+38) tmp = (x - (x / ((z * t) - x))) / (x + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e-122], t$95$1, If[LessEqual[t, 4.3e-143], N[(N[(N[(x - N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.65e+38], N[(N[(x - N[(x / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{-122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-143}:\\
\;\;\;\;\frac{\left(x - y \cdot \frac{z}{x}\right) + 1}{x + 1}\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{+38}:\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.4999999999999999e-122 or 2.65000000000000012e38 < t Initial program 87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in z around inf 88.6%
+-commutative88.6%
+-commutative88.6%
Simplified88.6%
if -2.4999999999999999e-122 < t < 4.29999999999999956e-143Initial program 94.8%
*-commutative94.8%
Simplified94.8%
Taylor expanded in t around 0 85.4%
mul-1-neg85.4%
unsub-neg85.4%
associate-/l*89.2%
+-commutative89.2%
Simplified89.2%
if 4.29999999999999956e-143 < t < 2.65000000000000012e38Initial program 94.7%
*-commutative94.7%
Simplified94.7%
Taylor expanded in y around 0 71.1%
Final simplification86.3%
(FPCore (x y z t)
:precision binary64
(if (<= x -3.4e-26)
1.0
(if (<= x 7.5e-40)
(/ (+ x (/ y t)) (+ x 1.0))
(if (<= x 28000.0) (* (/ z (+ x 1.0)) (/ y (- (* z t) x))) 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.4e-26) {
tmp = 1.0;
} else if (x <= 7.5e-40) {
tmp = (x + (y / t)) / (x + 1.0);
} else if (x <= 28000.0) {
tmp = (z / (x + 1.0)) * (y / ((z * t) - x));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-3.4d-26)) then
tmp = 1.0d0
else if (x <= 7.5d-40) then
tmp = (x + (y / t)) / (x + 1.0d0)
else if (x <= 28000.0d0) then
tmp = (z / (x + 1.0d0)) * (y / ((z * t) - x))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.4e-26) {
tmp = 1.0;
} else if (x <= 7.5e-40) {
tmp = (x + (y / t)) / (x + 1.0);
} else if (x <= 28000.0) {
tmp = (z / (x + 1.0)) * (y / ((z * t) - x));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.4e-26: tmp = 1.0 elif x <= 7.5e-40: tmp = (x + (y / t)) / (x + 1.0) elif x <= 28000.0: tmp = (z / (x + 1.0)) * (y / ((z * t) - x)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.4e-26) tmp = 1.0; elseif (x <= 7.5e-40) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); elseif (x <= 28000.0) tmp = Float64(Float64(z / Float64(x + 1.0)) * Float64(y / Float64(Float64(z * t) - x))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.4e-26) tmp = 1.0; elseif (x <= 7.5e-40) tmp = (x + (y / t)) / (x + 1.0); elseif (x <= 28000.0) tmp = (z / (x + 1.0)) * (y / ((z * t) - x)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.4e-26], 1.0, If[LessEqual[x, 7.5e-40], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 28000.0], N[(N[(z / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] * N[(y / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{-26}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-40}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{elif}\;x \leq 28000:\\
\;\;\;\;\frac{z}{x + 1} \cdot \frac{y}{z \cdot t - x}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -3.40000000000000013e-26 or 28000 < x Initial program 90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in x around inf 90.0%
if -3.40000000000000013e-26 < x < 7.50000000000000069e-40Initial program 89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in z around inf 64.5%
+-commutative64.5%
+-commutative64.5%
Simplified64.5%
if 7.50000000000000069e-40 < x < 28000Initial program 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in y around inf 78.9%
associate-/l/78.9%
*-commutative78.9%
times-frac78.9%
Applied egg-rr78.9%
Final simplification78.9%
(FPCore (x y z t) :precision binary64 (if (or (<= t -5.6e-122) (not (<= t 6.5e+36))) (/ (+ x (/ y t)) (+ x 1.0)) (/ (+ (- x (* y (/ z x))) 1.0) (+ x 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -5.6e-122) || !(t <= 6.5e+36)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((t <= (-5.6d-122)) .or. (.not. (t <= 6.5d+36))) then
tmp = (x + (y / t)) / (x + 1.0d0)
else
tmp = ((x - (y * (z / x))) + 1.0d0) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -5.6e-122) || !(t <= 6.5e+36)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -5.6e-122) or not (t <= 6.5e+36): tmp = (x + (y / t)) / (x + 1.0) else: tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -5.6e-122) || !(t <= 6.5e+36)) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = Float64(Float64(Float64(x - Float64(y * Float64(z / x))) + 1.0) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -5.6e-122) || ~((t <= 6.5e+36))) tmp = (x + (y / t)) / (x + 1.0); else tmp = ((x - (y * (z / x))) + 1.0) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -5.6e-122], N[Not[LessEqual[t, 6.5e+36]], $MachinePrecision]], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{-122} \lor \neg \left(t \leq 6.5 \cdot 10^{+36}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - y \cdot \frac{z}{x}\right) + 1}{x + 1}\\
\end{array}
\end{array}
if t < -5.5999999999999998e-122 or 6.4999999999999998e36 < t Initial program 87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in z around inf 88.1%
+-commutative88.1%
+-commutative88.1%
Simplified88.1%
if -5.5999999999999998e-122 < t < 6.4999999999999998e36Initial program 94.8%
*-commutative94.8%
Simplified94.8%
Taylor expanded in t around 0 77.2%
mul-1-neg77.2%
unsub-neg77.2%
associate-/l*79.8%
+-commutative79.8%
Simplified79.8%
Final simplification84.5%
(FPCore (x y z t) :precision binary64 (if (<= x -7.8e-26) 1.0 (if (<= x 3700000000.0) (/ (+ x (/ y t)) (+ x 1.0)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -7.8e-26) {
tmp = 1.0;
} else if (x <= 3700000000.0) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-7.8d-26)) then
tmp = 1.0d0
else if (x <= 3700000000.0d0) then
tmp = (x + (y / t)) / (x + 1.0d0)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -7.8e-26) {
tmp = 1.0;
} else if (x <= 3700000000.0) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -7.8e-26: tmp = 1.0 elif x <= 3700000000.0: tmp = (x + (y / t)) / (x + 1.0) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -7.8e-26) tmp = 1.0; elseif (x <= 3700000000.0) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -7.8e-26) tmp = 1.0; elseif (x <= 3700000000.0) tmp = (x + (y / t)) / (x + 1.0); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -7.8e-26], 1.0, If[LessEqual[x, 3700000000.0], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.8 \cdot 10^{-26}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3700000000:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -7.79999999999999973e-26 or 3.7e9 < x Initial program 90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in x around inf 90.0%
if -7.79999999999999973e-26 < x < 3.7e9Initial program 90.6%
*-commutative90.6%
Simplified90.6%
Taylor expanded in z around inf 61.8%
+-commutative61.8%
+-commutative61.8%
Simplified61.8%
Final simplification77.1%
(FPCore (x y z t) :precision binary64 (if (<= x -1.4e-43) 1.0 (if (<= x 28000.0) (* z (/ y (- (* z t) x))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.4e-43) {
tmp = 1.0;
} else if (x <= 28000.0) {
tmp = z * (y / ((z * t) - x));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.4d-43)) then
tmp = 1.0d0
else if (x <= 28000.0d0) then
tmp = z * (y / ((z * t) - x))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.4e-43) {
tmp = 1.0;
} else if (x <= 28000.0) {
tmp = z * (y / ((z * t) - x));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.4e-43: tmp = 1.0 elif x <= 28000.0: tmp = z * (y / ((z * t) - x)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.4e-43) tmp = 1.0; elseif (x <= 28000.0) tmp = Float64(z * Float64(y / Float64(Float64(z * t) - x))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.4e-43) tmp = 1.0; elseif (x <= 28000.0) tmp = z * (y / ((z * t) - x)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.4e-43], 1.0, If[LessEqual[x, 28000.0], N[(z * N[(y / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{-43}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 28000:\\
\;\;\;\;z \cdot \frac{y}{z \cdot t - x}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.3999999999999999e-43 or 28000 < x Initial program 90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in x around inf 88.2%
if -1.3999999999999999e-43 < x < 28000Initial program 91.2%
*-commutative91.2%
Simplified91.2%
Taylor expanded in y around inf 48.8%
associate-/l/48.8%
*-commutative48.8%
times-frac48.8%
Applied egg-rr48.8%
Taylor expanded in x around 0 47.6%
Final simplification70.3%
(FPCore (x y z t) :precision binary64 (if (<= x -2.5e-69) 1.0 (if (<= x 5.9e-156) (/ y t) (/ x (+ x 1.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.5e-69) {
tmp = 1.0;
} else if (x <= 5.9e-156) {
tmp = y / t;
} else {
tmp = x / (x + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-2.5d-69)) then
tmp = 1.0d0
else if (x <= 5.9d-156) then
tmp = y / t
else
tmp = x / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.5e-69) {
tmp = 1.0;
} else if (x <= 5.9e-156) {
tmp = y / t;
} else {
tmp = x / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -2.5e-69: tmp = 1.0 elif x <= 5.9e-156: tmp = y / t else: tmp = x / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -2.5e-69) tmp = 1.0; elseif (x <= 5.9e-156) tmp = Float64(y / t); else tmp = Float64(x / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -2.5e-69) tmp = 1.0; elseif (x <= 5.9e-156) tmp = y / t; else tmp = x / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -2.5e-69], 1.0, If[LessEqual[x, 5.9e-156], N[(y / t), $MachinePrecision], N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{-69}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 5.9 \cdot 10^{-156}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1}\\
\end{array}
\end{array}
if x < -2.50000000000000017e-69Initial program 89.6%
*-commutative89.6%
Simplified89.6%
Taylor expanded in x around inf 80.8%
if -2.50000000000000017e-69 < x < 5.8999999999999999e-156Initial program 89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in x around 0 51.7%
if 5.8999999999999999e-156 < x Initial program 92.3%
*-commutative92.3%
Simplified92.3%
Taylor expanded in t around inf 76.0%
+-commutative76.0%
Simplified76.0%
(FPCore (x y z t) :precision binary64 (if (<= x -1.6e-68) 1.0 (if (<= x 2.02e-112) (/ y t) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.6e-68) {
tmp = 1.0;
} else if (x <= 2.02e-112) {
tmp = y / t;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.6d-68)) then
tmp = 1.0d0
else if (x <= 2.02d-112) then
tmp = y / t
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.6e-68) {
tmp = 1.0;
} else if (x <= 2.02e-112) {
tmp = y / t;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.6e-68: tmp = 1.0 elif x <= 2.02e-112: tmp = y / t else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.6e-68) tmp = 1.0; elseif (x <= 2.02e-112) tmp = Float64(y / t); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.6e-68) tmp = 1.0; elseif (x <= 2.02e-112) tmp = y / t; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.6e-68], 1.0, If[LessEqual[x, 2.02e-112], N[(y / t), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{-68}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.02 \cdot 10^{-112}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.5999999999999999e-68 or 2.02e-112 < x Initial program 91.3%
*-commutative91.3%
Simplified91.3%
Taylor expanded in x around inf 78.1%
if -1.5999999999999999e-68 < x < 2.02e-112Initial program 89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in x around 0 49.1%
(FPCore (x y z t) :precision binary64 1.0)
double code(double x, double y, double z, double t) {
return 1.0;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = 1.0d0
end function
public static double code(double x, double y, double z, double t) {
return 1.0;
}
def code(x, y, z, t): return 1.0
function code(x, y, z, t) return 1.0 end
function tmp = code(x, y, z, t) tmp = 1.0; end
code[x_, y_, z_, t_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 90.8%
*-commutative90.8%
Simplified90.8%
Taylor expanded in x around inf 55.9%
(FPCore (x y z t) :precision binary64 (/ (+ x (- (/ y (- t (/ x z))) (/ x (- (* t z) x)))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0);
}
def code(x, y, z, t): return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(y / Float64(t - Float64(x / z))) - Float64(x / Float64(Float64(t * z) - x)))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(y / N[(t - N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \left(\frac{y}{t - \frac{x}{z}} - \frac{x}{t \cdot z - x}\right)}{x + 1}
\end{array}
herbie shell --seed 2024145
(FPCore (x y z t)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, A"
:precision binary64
:alt
(! :herbie-platform default (/ (+ x (- (/ y (- t (/ x z))) (/ x (- (* t z) x)))) (+ x 1)))
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))