
(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 (/ (+ x (/ (- x (* y z)) (- x (* z t)))) (+ x 1.0)))) (if (<= t_1 1e+209) t_1 (+ (/ x (+ x 1.0)) (/ y (* t (+ x 1.0)))))))
double code(double x, double y, double z, double t) {
double t_1 = (x + ((x - (y * z)) / (x - (z * t)))) / (x + 1.0);
double tmp;
if (t_1 <= 1e+209) {
tmp = t_1;
} else {
tmp = (x / (x + 1.0)) + (y / (t * (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) :: t_1
real(8) :: tmp
t_1 = (x + ((x - (y * z)) / (x - (z * t)))) / (x + 1.0d0)
if (t_1 <= 1d+209) then
tmp = t_1
else
tmp = (x / (x + 1.0d0)) + (y / (t * (x + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x + ((x - (y * z)) / (x - (z * t)))) / (x + 1.0);
double tmp;
if (t_1 <= 1e+209) {
tmp = t_1;
} else {
tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0)));
}
return tmp;
}
def code(x, y, z, t): t_1 = (x + ((x - (y * z)) / (x - (z * t)))) / (x + 1.0) tmp = 0 if t_1 <= 1e+209: tmp = t_1 else: tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x + Float64(Float64(x - Float64(y * z)) / Float64(x - Float64(z * t)))) / Float64(x + 1.0)) tmp = 0.0 if (t_1 <= 1e+209) tmp = t_1; else tmp = Float64(Float64(x / Float64(x + 1.0)) + Float64(y / Float64(t * Float64(x + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x + ((x - (y * z)) / (x - (z * t)))) / (x + 1.0); tmp = 0.0; if (t_1 <= 1e+209) tmp = t_1; else tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x + N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 1e+209], t$95$1, N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{x - y \cdot z}{x - z \cdot t}}{x + 1}\\
\mathbf{if}\;t\_1 \leq 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1} + \frac{y}{t \cdot \left(x + 1\right)}\\
\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))) < 1.0000000000000001e209Initial program 98.2%
if 1.0000000000000001e209 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x #s(literal 1 binary64))) Initial program 24.9%
*-commutative24.9%
Simplified24.9%
Taylor expanded in t around inf 93.6%
+-commutative93.6%
+-commutative93.6%
+-commutative93.6%
Simplified93.6%
Taylor expanded in z around inf 93.6%
+-commutative93.6%
+-commutative93.6%
Simplified93.6%
Final simplification97.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (- (+ x 1.0) (* y (/ z x))) (+ x 1.0))))
(if (<= x -1.25e-130)
t_1
(if (<= x 1.85e-94)
(/ (- (/ (- (/ x z) y) t) x) (- -1.0 x))
(if (<= x 7.8e-41)
t_1
(if (<= x 1.25e+40)
(+ (/ x (+ x 1.0)) (/ y (* t (+ x 1.0))))
1.0))))))
double code(double x, double y, double z, double t) {
double t_1 = ((x + 1.0) - (y * (z / x))) / (x + 1.0);
double tmp;
if (x <= -1.25e-130) {
tmp = t_1;
} else if (x <= 1.85e-94) {
tmp = ((((x / z) - y) / t) - x) / (-1.0 - x);
} else if (x <= 7.8e-41) {
tmp = t_1;
} else if (x <= 1.25e+40) {
tmp = (x / (x + 1.0)) + (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) :: t_1
real(8) :: tmp
t_1 = ((x + 1.0d0) - (y * (z / x))) / (x + 1.0d0)
if (x <= (-1.25d-130)) then
tmp = t_1
else if (x <= 1.85d-94) then
tmp = ((((x / z) - y) / t) - x) / ((-1.0d0) - x)
else if (x <= 7.8d-41) then
tmp = t_1
else if (x <= 1.25d+40) then
tmp = (x / (x + 1.0d0)) + (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 t_1 = ((x + 1.0) - (y * (z / x))) / (x + 1.0);
double tmp;
if (x <= -1.25e-130) {
tmp = t_1;
} else if (x <= 1.85e-94) {
tmp = ((((x / z) - y) / t) - x) / (-1.0 - x);
} else if (x <= 7.8e-41) {
tmp = t_1;
} else if (x <= 1.25e+40) {
tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((x + 1.0) - (y * (z / x))) / (x + 1.0) tmp = 0 if x <= -1.25e-130: tmp = t_1 elif x <= 1.85e-94: tmp = ((((x / z) - y) / t) - x) / (-1.0 - x) elif x <= 7.8e-41: tmp = t_1 elif x <= 1.25e+40: tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(x + 1.0) - Float64(y * Float64(z / x))) / Float64(x + 1.0)) tmp = 0.0 if (x <= -1.25e-130) tmp = t_1; elseif (x <= 1.85e-94) tmp = Float64(Float64(Float64(Float64(Float64(x / z) - y) / t) - x) / Float64(-1.0 - x)); elseif (x <= 7.8e-41) tmp = t_1; elseif (x <= 1.25e+40) tmp = Float64(Float64(x / Float64(x + 1.0)) + Float64(y / Float64(t * Float64(x + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = ((x + 1.0) - (y * (z / x))) / (x + 1.0); tmp = 0.0; if (x <= -1.25e-130) tmp = t_1; elseif (x <= 1.85e-94) tmp = ((((x / z) - y) / t) - x) / (-1.0 - x); elseif (x <= 7.8e-41) tmp = t_1; elseif (x <= 1.25e+40) tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(x + 1.0), $MachinePrecision] - N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.25e-130], t$95$1, If[LessEqual[x, 1.85e-94], N[(N[(N[(N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision] / t), $MachinePrecision] - x), $MachinePrecision] / N[(-1.0 - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-41], t$95$1, If[LessEqual[x, 1.25e+40], N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(x + 1\right) - y \cdot \frac{z}{x}}{x + 1}\\
\mathbf{if}\;x \leq -1.25 \cdot 10^{-130}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-94}:\\
\;\;\;\;\frac{\frac{\frac{x}{z} - y}{t} - x}{-1 - x}\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+40}:\\
\;\;\;\;\frac{x}{x + 1} + \frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.2499999999999999e-130 or 1.8499999999999999e-94 < x < 7.79999999999999982e-41Initial program 90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in t around 0 78.7%
associate-+r+78.7%
mul-1-neg78.7%
unsub-neg78.7%
+-commutative78.7%
associate-/l*85.5%
+-commutative85.5%
Simplified85.5%
if -1.2499999999999999e-130 < x < 1.8499999999999999e-94Initial program 89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in t around -inf 87.4%
mul-1-neg87.4%
unsub-neg87.4%
cancel-sign-sub-inv87.4%
metadata-eval87.4%
*-lft-identity87.4%
+-commutative87.4%
mul-1-neg87.4%
unsub-neg87.4%
Simplified87.4%
if 7.79999999999999982e-41 < x < 1.25000000000000001e40Initial program 93.1%
*-commutative93.1%
Simplified93.1%
Taylor expanded in t around inf 62.7%
+-commutative62.7%
+-commutative62.7%
+-commutative62.7%
Simplified62.7%
Taylor expanded in z around inf 64.4%
+-commutative64.4%
+-commutative64.4%
Simplified64.4%
if 1.25000000000000001e40 < x Initial program 88.0%
*-commutative88.0%
Simplified88.0%
clear-num88.0%
inv-pow88.0%
fma-neg88.0%
Applied egg-rr88.0%
unpow-188.0%
*-commutative88.0%
fma-neg88.0%
*-commutative88.0%
Simplified88.0%
div-inv88.0%
fma-neg88.0%
Applied egg-rr88.0%
Taylor expanded in z around inf 88.0%
Taylor expanded in x around inf 100.0%
Final simplification88.1%
(FPCore (x y z t) :precision binary64 (if (or (<= z -5.8e-58) (not (<= z 2.8e-89))) (+ (/ x (+ x 1.0)) (/ y (* t (+ x 1.0)))) (/ (+ x (/ x (- x (* z t)))) (+ x 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -5.8e-58) || !(z <= 2.8e-89)) {
tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0)));
} else {
tmp = (x + (x / (x - (z * t)))) / (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 ((z <= (-5.8d-58)) .or. (.not. (z <= 2.8d-89))) then
tmp = (x / (x + 1.0d0)) + (y / (t * (x + 1.0d0)))
else
tmp = (x + (x / (x - (z * t)))) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -5.8e-58) || !(z <= 2.8e-89)) {
tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0)));
} else {
tmp = (x + (x / (x - (z * t)))) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -5.8e-58) or not (z <= 2.8e-89): tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))) else: tmp = (x + (x / (x - (z * t)))) / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -5.8e-58) || !(z <= 2.8e-89)) tmp = Float64(Float64(x / Float64(x + 1.0)) + Float64(y / Float64(t * Float64(x + 1.0)))); else tmp = Float64(Float64(x + Float64(x / Float64(x - Float64(z * t)))) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -5.8e-58) || ~((z <= 2.8e-89))) tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))); else tmp = (x + (x / (x - (z * t)))) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -5.8e-58], N[Not[LessEqual[z, 2.8e-89]], $MachinePrecision]], N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(x / N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{-58} \lor \neg \left(z \leq 2.8 \cdot 10^{-89}\right):\\
\;\;\;\;\frac{x}{x + 1} + \frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{x}{x - z \cdot t}}{x + 1}\\
\end{array}
\end{array}
if z < -5.7999999999999998e-58 or 2.7999999999999999e-89 < z Initial program 83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in t around inf 82.1%
+-commutative82.1%
+-commutative82.1%
+-commutative82.1%
Simplified82.1%
Taylor expanded in z around inf 83.6%
+-commutative83.6%
+-commutative83.6%
Simplified83.6%
if -5.7999999999999998e-58 < z < 2.7999999999999999e-89Initial program 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 82.3%
+-commutative82.3%
Simplified82.3%
Final simplification83.1%
(FPCore (x y z t)
:precision binary64
(if (<= x -3.0)
(/ (- (* y (/ z x)) x) (- -1.0 x))
(if (<= x 1.15e-49)
(/ (- (/ (- (/ x z) y) t) x) (- -1.0 x))
(/ (+ x (/ x (- x (* z t)))) (+ x 1.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.0) {
tmp = ((y * (z / x)) - x) / (-1.0 - x);
} else if (x <= 1.15e-49) {
tmp = ((((x / z) - y) / t) - x) / (-1.0 - x);
} else {
tmp = (x + (x / (x - (z * t)))) / (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 <= (-3.0d0)) then
tmp = ((y * (z / x)) - x) / ((-1.0d0) - x)
else if (x <= 1.15d-49) then
tmp = ((((x / z) - y) / t) - x) / ((-1.0d0) - x)
else
tmp = (x + (x / (x - (z * t)))) / (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 <= -3.0) {
tmp = ((y * (z / x)) - x) / (-1.0 - x);
} else if (x <= 1.15e-49) {
tmp = ((((x / z) - y) / t) - x) / (-1.0 - x);
} else {
tmp = (x + (x / (x - (z * t)))) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.0: tmp = ((y * (z / x)) - x) / (-1.0 - x) elif x <= 1.15e-49: tmp = ((((x / z) - y) / t) - x) / (-1.0 - x) else: tmp = (x + (x / (x - (z * t)))) / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.0) tmp = Float64(Float64(Float64(y * Float64(z / x)) - x) / Float64(-1.0 - x)); elseif (x <= 1.15e-49) tmp = Float64(Float64(Float64(Float64(Float64(x / z) - y) / t) - x) / Float64(-1.0 - x)); else tmp = Float64(Float64(x + Float64(x / Float64(x - Float64(z * t)))) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.0) tmp = ((y * (z / x)) - x) / (-1.0 - x); elseif (x <= 1.15e-49) tmp = ((((x / z) - y) / t) - x) / (-1.0 - x); else tmp = (x + (x / (x - (z * t)))) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.0], N[(N[(N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / N[(-1.0 - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e-49], N[(N[(N[(N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision] / t), $MachinePrecision] - x), $MachinePrecision] / N[(-1.0 - x), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(x / N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3:\\
\;\;\;\;\frac{y \cdot \frac{z}{x} - x}{-1 - x}\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-49}:\\
\;\;\;\;\frac{\frac{\frac{x}{z} - y}{t} - x}{-1 - x}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{x}{x - z \cdot t}}{x + 1}\\
\end{array}
\end{array}
if x < -3Initial program 87.2%
*-commutative87.2%
Simplified87.2%
clear-num87.2%
inv-pow87.2%
fma-neg87.2%
Applied egg-rr87.2%
unpow-187.2%
*-commutative87.2%
fma-neg87.2%
*-commutative87.2%
Simplified87.2%
div-inv87.2%
fma-neg87.2%
Applied egg-rr87.2%
Taylor expanded in z around inf 84.6%
Taylor expanded in t around 0 80.4%
mul-1-neg80.4%
unsub-neg80.4%
associate-/l*90.3%
+-commutative90.3%
Simplified90.3%
if -3 < x < 1.15e-49Initial program 91.1%
*-commutative91.1%
Simplified91.1%
Taylor expanded in t around -inf 78.6%
mul-1-neg78.6%
unsub-neg78.6%
cancel-sign-sub-inv78.6%
metadata-eval78.6%
*-lft-identity78.6%
+-commutative78.6%
mul-1-neg78.6%
unsub-neg78.6%
Simplified78.6%
if 1.15e-49 < x Initial program 89.5%
*-commutative89.5%
Simplified89.5%
Taylor expanded in y around 0 89.8%
+-commutative89.8%
Simplified89.8%
Final simplification85.1%
(FPCore (x y z t) :precision binary64 (if (<= x -3400.0) (/ (- (* y (/ z x)) x) (- -1.0 x)) (if (<= x 1.95e+40) (+ (/ x (+ x 1.0)) (/ y (* t (+ x 1.0)))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3400.0) {
tmp = ((y * (z / x)) - x) / (-1.0 - x);
} else if (x <= 1.95e+40) {
tmp = (x / (x + 1.0)) + (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 <= (-3400.0d0)) then
tmp = ((y * (z / x)) - x) / ((-1.0d0) - x)
else if (x <= 1.95d+40) then
tmp = (x / (x + 1.0d0)) + (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 <= -3400.0) {
tmp = ((y * (z / x)) - x) / (-1.0 - x);
} else if (x <= 1.95e+40) {
tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3400.0: tmp = ((y * (z / x)) - x) / (-1.0 - x) elif x <= 1.95e+40: tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3400.0) tmp = Float64(Float64(Float64(y * Float64(z / x)) - x) / Float64(-1.0 - x)); elseif (x <= 1.95e+40) tmp = Float64(Float64(x / Float64(x + 1.0)) + Float64(y / Float64(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 <= -3400.0) tmp = ((y * (z / x)) - x) / (-1.0 - x); elseif (x <= 1.95e+40) tmp = (x / (x + 1.0)) + (y / (t * (x + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3400.0], N[(N[(N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / N[(-1.0 - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.95e+40], N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3400:\\
\;\;\;\;\frac{y \cdot \frac{z}{x} - x}{-1 - x}\\
\mathbf{elif}\;x \leq 1.95 \cdot 10^{+40}:\\
\;\;\;\;\frac{x}{x + 1} + \frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -3400Initial program 87.2%
*-commutative87.2%
Simplified87.2%
clear-num87.2%
inv-pow87.2%
fma-neg87.2%
Applied egg-rr87.2%
unpow-187.2%
*-commutative87.2%
fma-neg87.2%
*-commutative87.2%
Simplified87.2%
div-inv87.2%
fma-neg87.2%
Applied egg-rr87.2%
Taylor expanded in z around inf 84.6%
Taylor expanded in t around 0 80.4%
mul-1-neg80.4%
unsub-neg80.4%
associate-/l*90.3%
+-commutative90.3%
Simplified90.3%
if -3400 < x < 1.95e40Initial program 91.6%
*-commutative91.6%
Simplified91.6%
Taylor expanded in t around inf 75.0%
+-commutative75.0%
+-commutative75.0%
+-commutative75.0%
Simplified75.0%
Taylor expanded in z around inf 67.1%
+-commutative67.1%
+-commutative67.1%
Simplified67.1%
if 1.95e40 < x Initial program 88.0%
*-commutative88.0%
Simplified88.0%
clear-num88.0%
inv-pow88.0%
fma-neg88.0%
Applied egg-rr88.0%
unpow-188.0%
*-commutative88.0%
fma-neg88.0%
*-commutative88.0%
Simplified88.0%
div-inv88.0%
fma-neg88.0%
Applied egg-rr88.0%
Taylor expanded in z around inf 88.0%
Taylor expanded in x around inf 100.0%
Final simplification80.8%
(FPCore (x y z t) :precision binary64 (if (<= x -40000.0) (/ (- (* y (/ z x)) x) (- -1.0 x)) (if (<= x 1.55e+41) (/ (+ x (/ y t)) (+ x 1.0)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -40000.0) {
tmp = ((y * (z / x)) - x) / (-1.0 - x);
} else if (x <= 1.55e+41) {
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 <= (-40000.0d0)) then
tmp = ((y * (z / x)) - x) / ((-1.0d0) - x)
else if (x <= 1.55d+41) 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 <= -40000.0) {
tmp = ((y * (z / x)) - x) / (-1.0 - x);
} else if (x <= 1.55e+41) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -40000.0: tmp = ((y * (z / x)) - x) / (-1.0 - x) elif x <= 1.55e+41: tmp = (x + (y / t)) / (x + 1.0) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -40000.0) tmp = Float64(Float64(Float64(y * Float64(z / x)) - x) / Float64(-1.0 - x)); elseif (x <= 1.55e+41) 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 <= -40000.0) tmp = ((y * (z / x)) - x) / (-1.0 - x); elseif (x <= 1.55e+41) tmp = (x + (y / t)) / (x + 1.0); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -40000.0], N[(N[(N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / N[(-1.0 - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.55e+41], 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 -40000:\\
\;\;\;\;\frac{y \cdot \frac{z}{x} - x}{-1 - x}\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+41}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -4e4Initial program 87.2%
*-commutative87.2%
Simplified87.2%
clear-num87.2%
inv-pow87.2%
fma-neg87.2%
Applied egg-rr87.2%
unpow-187.2%
*-commutative87.2%
fma-neg87.2%
*-commutative87.2%
Simplified87.2%
div-inv87.2%
fma-neg87.2%
Applied egg-rr87.2%
Taylor expanded in z around inf 84.6%
Taylor expanded in t around 0 80.4%
mul-1-neg80.4%
unsub-neg80.4%
associate-/l*90.3%
+-commutative90.3%
Simplified90.3%
if -4e4 < x < 1.55e41Initial program 91.6%
*-commutative91.6%
Simplified91.6%
Taylor expanded in z around inf 67.1%
if 1.55e41 < x Initial program 88.0%
*-commutative88.0%
Simplified88.0%
clear-num88.0%
inv-pow88.0%
fma-neg88.0%
Applied egg-rr88.0%
unpow-188.0%
*-commutative88.0%
fma-neg88.0%
*-commutative88.0%
Simplified88.0%
div-inv88.0%
fma-neg88.0%
Applied egg-rr88.0%
Taylor expanded in z around inf 88.0%
Taylor expanded in x around inf 100.0%
Final simplification80.8%
(FPCore (x y z t) :precision binary64 (if (<= x -0.0042) 1.0 (if (<= x 3.2e+40) (/ (+ x (/ y t)) (+ x 1.0)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -0.0042) {
tmp = 1.0;
} else if (x <= 3.2e+40) {
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 <= (-0.0042d0)) then
tmp = 1.0d0
else if (x <= 3.2d+40) 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 <= -0.0042) {
tmp = 1.0;
} else if (x <= 3.2e+40) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -0.0042: tmp = 1.0 elif x <= 3.2e+40: tmp = (x + (y / t)) / (x + 1.0) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -0.0042) tmp = 1.0; elseif (x <= 3.2e+40) 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 <= -0.0042) tmp = 1.0; elseif (x <= 3.2e+40) tmp = (x + (y / t)) / (x + 1.0); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -0.0042], 1.0, If[LessEqual[x, 3.2e+40], 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 -0.0042:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+40}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -0.00419999999999999974 or 3.19999999999999981e40 < x Initial program 87.6%
*-commutative87.6%
Simplified87.6%
clear-num87.6%
inv-pow87.6%
fma-neg87.6%
Applied egg-rr87.6%
unpow-187.6%
*-commutative87.6%
fma-neg87.6%
*-commutative87.6%
Simplified87.6%
div-inv87.6%
fma-neg87.6%
Applied egg-rr87.6%
Taylor expanded in z around inf 86.2%
Taylor expanded in x around inf 94.6%
if -0.00419999999999999974 < x < 3.19999999999999981e40Initial program 91.6%
*-commutative91.6%
Simplified91.6%
Taylor expanded in z around inf 67.1%
(FPCore (x y z t) :precision binary64 (if (<= x -1.05e-9) 1.0 (if (<= x 1.5e-49) (/ y (* t (+ x 1.0))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.05e-9) {
tmp = 1.0;
} else if (x <= 1.5e-49) {
tmp = 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 <= (-1.05d-9)) then
tmp = 1.0d0
else if (x <= 1.5d-49) then
tmp = 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 <= -1.05e-9) {
tmp = 1.0;
} else if (x <= 1.5e-49) {
tmp = y / (t * (x + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.05e-9: tmp = 1.0 elif x <= 1.5e-49: tmp = y / (t * (x + 1.0)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.05e-9) tmp = 1.0; elseif (x <= 1.5e-49) tmp = Float64(y / Float64(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 <= -1.05e-9) tmp = 1.0; elseif (x <= 1.5e-49) tmp = y / (t * (x + 1.0)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.05e-9], 1.0, If[LessEqual[x, 1.5e-49], N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.05 \cdot 10^{-9}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-49}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.0500000000000001e-9 or 1.5e-49 < x Initial program 88.4%
*-commutative88.4%
Simplified88.4%
clear-num88.4%
inv-pow88.4%
fma-neg88.4%
Applied egg-rr88.4%
unpow-188.4%
*-commutative88.4%
fma-neg88.4%
*-commutative88.4%
Simplified88.4%
div-inv88.4%
fma-neg88.4%
Applied egg-rr88.4%
Taylor expanded in z around inf 84.1%
Taylor expanded in x around inf 88.2%
if -1.0500000000000001e-9 < x < 1.5e-49Initial program 91.1%
*-commutative91.1%
Simplified91.1%
Taylor expanded in t around inf 78.5%
Taylor expanded in y around inf 49.4%
+-commutative49.4%
Simplified49.4%
(FPCore (x y z t) :precision binary64 (if (<= x -9e-10) 1.0 (if (<= x 7.5e-50) (/ y t) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -9e-10) {
tmp = 1.0;
} else if (x <= 7.5e-50) {
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 <= (-9d-10)) then
tmp = 1.0d0
else if (x <= 7.5d-50) 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 <= -9e-10) {
tmp = 1.0;
} else if (x <= 7.5e-50) {
tmp = y / t;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -9e-10: tmp = 1.0 elif x <= 7.5e-50: tmp = y / t else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -9e-10) tmp = 1.0; elseif (x <= 7.5e-50) 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 <= -9e-10) tmp = 1.0; elseif (x <= 7.5e-50) tmp = y / t; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -9e-10], 1.0, If[LessEqual[x, 7.5e-50], N[(y / t), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-10}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -8.9999999999999999e-10 or 7.5e-50 < x Initial program 88.4%
*-commutative88.4%
Simplified88.4%
clear-num88.4%
inv-pow88.4%
fma-neg88.4%
Applied egg-rr88.4%
unpow-188.4%
*-commutative88.4%
fma-neg88.4%
*-commutative88.4%
Simplified88.4%
div-inv88.4%
fma-neg88.4%
Applied egg-rr88.4%
Taylor expanded in z around inf 84.1%
Taylor expanded in x around inf 88.2%
if -8.9999999999999999e-10 < x < 7.5e-50Initial program 91.1%
*-commutative91.1%
Simplified91.1%
Taylor expanded in t around inf 78.5%
Taylor expanded in y around inf 49.4%
+-commutative49.4%
Simplified49.4%
Taylor expanded in x around 0 49.4%
(FPCore (x y z t) :precision binary64 (if (<= x -4.4e-138) 1.0 (if (<= x 4.7e-117) x 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -4.4e-138) {
tmp = 1.0;
} else if (x <= 4.7e-117) {
tmp = 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 <= (-4.4d-138)) then
tmp = 1.0d0
else if (x <= 4.7d-117) then
tmp = 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 <= -4.4e-138) {
tmp = 1.0;
} else if (x <= 4.7e-117) {
tmp = x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -4.4e-138: tmp = 1.0 elif x <= 4.7e-117: tmp = x else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -4.4e-138) tmp = 1.0; elseif (x <= 4.7e-117) tmp = x; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -4.4e-138) tmp = 1.0; elseif (x <= 4.7e-117) tmp = x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -4.4e-138], 1.0, If[LessEqual[x, 4.7e-117], x, 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.4 \cdot 10^{-138}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{-117}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -4.3999999999999998e-138 or 4.70000000000000009e-117 < x Initial program 88.7%
*-commutative88.7%
Simplified88.7%
clear-num88.8%
inv-pow88.8%
fma-neg88.8%
Applied egg-rr88.8%
unpow-188.8%
*-commutative88.8%
fma-neg88.8%
*-commutative88.8%
Simplified88.8%
div-inv88.7%
fma-neg88.7%
Applied egg-rr88.7%
Taylor expanded in z around inf 79.6%
Taylor expanded in x around inf 76.0%
if -4.3999999999999998e-138 < x < 4.70000000000000009e-117Initial program 91.8%
*-commutative91.8%
Simplified91.8%
Taylor expanded in t around inf 22.7%
+-commutative22.7%
Simplified22.7%
Taylor expanded in x around 0 22.7%
neg-mul-122.7%
Simplified22.7%
Taylor expanded in x around 0 22.7%
(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 89.6%
*-commutative89.6%
Simplified89.6%
clear-num89.6%
inv-pow89.6%
fma-neg89.6%
Applied egg-rr89.6%
unpow-189.6%
*-commutative89.6%
fma-neg89.6%
*-commutative89.6%
Simplified89.6%
div-inv89.5%
fma-neg89.5%
Applied egg-rr89.5%
Taylor expanded in z around inf 77.0%
Taylor expanded in x around inf 56.6%
(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 2024101
(FPCore (x y z t)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, A"
:precision binary64
:alt
(/ (+ x (- (/ y (- t (/ x z))) (/ x (- (* t z) x)))) (+ x 1.0))
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))