
(FPCore (x y z t a) :precision binary64 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
real(8) function code(x, y, z, t, a)
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
code = x - ((y - z) / (((t - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a): return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a) return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a))) end
function tmp = code(x, y, z, t, a) tmp = x - ((y - z) / (((t - z) + 1.0) / a)); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
real(8) function code(x, y, z, t, a)
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
code = x - ((y - z) / (((t - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a): return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a) return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a))) end
function tmp = code(x, y, z, t, a) tmp = x - ((y - z) / (((t - z) + 1.0) / a)); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (* a (/ (- z y) (+ (- t z) 1.0)))))
double code(double x, double y, double z, double t, double a) {
return x + (a * ((z - y) / ((t - z) + 1.0)));
}
real(8) function code(x, y, z, t, a)
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
code = x + (a * ((z - y) / ((t - z) + 1.0d0)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (a * ((z - y) / ((t - z) + 1.0)));
}
def code(x, y, z, t, a): return x + (a * ((z - y) / ((t - z) + 1.0)))
function code(x, y, z, t, a) return Float64(x + Float64(a * Float64(Float64(z - y) / Float64(Float64(t - z) + 1.0)))) end
function tmp = code(x, y, z, t, a) tmp = x + (a * ((z - y) / ((t - z) + 1.0))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(a * N[(N[(z - y), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + a \cdot \frac{z - y}{\left(t - z\right) + 1}
\end{array}
Initial program 96.0%
associate-/r/99.2%
Simplified99.2%
Final simplification99.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1900.0) (not (<= z 1.65e-25))) (+ x (* a (/ (- z y) (- 1.0 z)))) (- x (/ a (/ (+ t 1.0) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1900.0) || !(z <= 1.65e-25)) {
tmp = x + (a * ((z - y) / (1.0 - z)));
} else {
tmp = x - (a / ((t + 1.0) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((z <= (-1900.0d0)) .or. (.not. (z <= 1.65d-25))) then
tmp = x + (a * ((z - y) / (1.0d0 - z)))
else
tmp = x - (a / ((t + 1.0d0) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1900.0) || !(z <= 1.65e-25)) {
tmp = x + (a * ((z - y) / (1.0 - z)));
} else {
tmp = x - (a / ((t + 1.0) / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1900.0) or not (z <= 1.65e-25): tmp = x + (a * ((z - y) / (1.0 - z))) else: tmp = x - (a / ((t + 1.0) / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1900.0) || !(z <= 1.65e-25)) tmp = Float64(x + Float64(a * Float64(Float64(z - y) / Float64(1.0 - z)))); else tmp = Float64(x - Float64(a / Float64(Float64(t + 1.0) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1900.0) || ~((z <= 1.65e-25))) tmp = x + (a * ((z - y) / (1.0 - z))); else tmp = x - (a / ((t + 1.0) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1900.0], N[Not[LessEqual[z, 1.65e-25]], $MachinePrecision]], N[(x + N[(a * N[(N[(z - y), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a / N[(N[(t + 1.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1900 \lor \neg \left(z \leq 1.65 \cdot 10^{-25}\right):\\
\;\;\;\;x + a \cdot \frac{z - y}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{a}{\frac{t + 1}{y}}\\
\end{array}
\end{array}
if z < -1900 or 1.6499999999999999e-25 < z Initial program 93.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in t around 0 89.5%
if -1900 < z < 1.6499999999999999e-25Initial program 99.1%
associate-/r/98.4%
Simplified98.4%
Taylor expanded in z around 0 95.3%
associate-/l*97.6%
Simplified97.6%
Final simplification93.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4500.0) (not (<= z 2.65e-6))) (+ x (/ (- z y) (/ (- z) a))) (- x (/ a (/ (+ t 1.0) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4500.0) || !(z <= 2.65e-6)) {
tmp = x + ((z - y) / (-z / a));
} else {
tmp = x - (a / ((t + 1.0) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((z <= (-4500.0d0)) .or. (.not. (z <= 2.65d-6))) then
tmp = x + ((z - y) / (-z / a))
else
tmp = x - (a / ((t + 1.0d0) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4500.0) || !(z <= 2.65e-6)) {
tmp = x + ((z - y) / (-z / a));
} else {
tmp = x - (a / ((t + 1.0) / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4500.0) or not (z <= 2.65e-6): tmp = x + ((z - y) / (-z / a)) else: tmp = x - (a / ((t + 1.0) / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4500.0) || !(z <= 2.65e-6)) tmp = Float64(x + Float64(Float64(z - y) / Float64(Float64(-z) / a))); else tmp = Float64(x - Float64(a / Float64(Float64(t + 1.0) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4500.0) || ~((z <= 2.65e-6))) tmp = x + ((z - y) / (-z / a)); else tmp = x - (a / ((t + 1.0) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4500.0], N[Not[LessEqual[z, 2.65e-6]], $MachinePrecision]], N[(x + N[(N[(z - y), $MachinePrecision] / N[((-z) / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a / N[(N[(t + 1.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4500 \lor \neg \left(z \leq 2.65 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{z - y}{\frac{-z}{a}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{a}{\frac{t + 1}{y}}\\
\end{array}
\end{array}
if z < -4500 or 2.65e-6 < z Initial program 93.1%
Taylor expanded in z around inf 82.3%
mul-1-neg82.3%
distribute-neg-frac82.3%
Simplified82.3%
if -4500 < z < 2.65e-6Initial program 99.1%
associate-/r/98.4%
Simplified98.4%
Taylor expanded in z around 0 95.4%
associate-/l*97.6%
Simplified97.6%
Final simplification89.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -500000000000.0) (- x (+ a (/ a z))) (if (<= z 8.8e+17) (- x (/ a (/ (+ t 1.0) y))) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -500000000000.0) {
tmp = x - (a + (a / z));
} else if (z <= 8.8e+17) {
tmp = x - (a / ((t + 1.0) / y));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (z <= (-500000000000.0d0)) then
tmp = x - (a + (a / z))
else if (z <= 8.8d+17) then
tmp = x - (a / ((t + 1.0d0) / y))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -500000000000.0) {
tmp = x - (a + (a / z));
} else if (z <= 8.8e+17) {
tmp = x - (a / ((t + 1.0) / y));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -500000000000.0: tmp = x - (a + (a / z)) elif z <= 8.8e+17: tmp = x - (a / ((t + 1.0) / y)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -500000000000.0) tmp = Float64(x - Float64(a + Float64(a / z))); elseif (z <= 8.8e+17) tmp = Float64(x - Float64(a / Float64(Float64(t + 1.0) / y))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -500000000000.0) tmp = x - (a + (a / z)); elseif (z <= 8.8e+17) tmp = x - (a / ((t + 1.0) / y)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -500000000000.0], N[(x - N[(a + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.8e+17], N[(x - N[(a / N[(N[(t + 1.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -500000000000:\\
\;\;\;\;x - \left(a + \frac{a}{z}\right)\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{+17}:\\
\;\;\;\;x - \frac{a}{\frac{t + 1}{y}}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -5e11Initial program 93.2%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in t around 0 89.8%
Taylor expanded in y around 0 82.7%
neg-mul-182.7%
distribute-neg-frac82.7%
Simplified82.7%
Taylor expanded in z around inf 82.7%
if -5e11 < z < 8.8e17Initial program 99.1%
associate-/r/98.5%
Simplified98.5%
Taylor expanded in z around 0 93.5%
associate-/l*95.6%
Simplified95.6%
if 8.8e17 < z Initial program 91.9%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 77.1%
Final simplification88.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -490000000000.0) (- x a) (if (<= z 62000000000.0) (- x (* y a)) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -490000000000.0) {
tmp = x - a;
} else if (z <= 62000000000.0) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (z <= (-490000000000.0d0)) then
tmp = x - a
else if (z <= 62000000000.0d0) then
tmp = x - (y * a)
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -490000000000.0) {
tmp = x - a;
} else if (z <= 62000000000.0) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -490000000000.0: tmp = x - a elif z <= 62000000000.0: tmp = x - (y * a) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -490000000000.0) tmp = Float64(x - a); elseif (z <= 62000000000.0) tmp = Float64(x - Float64(y * a)); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -490000000000.0) tmp = x - a; elseif (z <= 62000000000.0) tmp = x - (y * a); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -490000000000.0], N[(x - a), $MachinePrecision], If[LessEqual[z, 62000000000.0], N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -490000000000:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 62000000000:\\
\;\;\;\;x - y \cdot a\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -4.9e11 or 6.2e10 < z Initial program 92.6%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 80.0%
if -4.9e11 < z < 6.2e10Initial program 99.1%
associate-/r/98.5%
Simplified98.5%
Taylor expanded in t around 0 79.6%
Taylor expanded in z around 0 79.1%
Final simplification79.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -290000000000.0) (- x (+ a (/ a z))) (if (<= z 7e+16) (- x (* y a)) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -290000000000.0) {
tmp = x - (a + (a / z));
} else if (z <= 7e+16) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (z <= (-290000000000.0d0)) then
tmp = x - (a + (a / z))
else if (z <= 7d+16) then
tmp = x - (y * a)
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -290000000000.0) {
tmp = x - (a + (a / z));
} else if (z <= 7e+16) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -290000000000.0: tmp = x - (a + (a / z)) elif z <= 7e+16: tmp = x - (y * a) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -290000000000.0) tmp = Float64(x - Float64(a + Float64(a / z))); elseif (z <= 7e+16) tmp = Float64(x - Float64(y * a)); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -290000000000.0) tmp = x - (a + (a / z)); elseif (z <= 7e+16) tmp = x - (y * a); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -290000000000.0], N[(x - N[(a + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+16], N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -290000000000:\\
\;\;\;\;x - \left(a + \frac{a}{z}\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+16}:\\
\;\;\;\;x - y \cdot a\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -2.9e11Initial program 93.2%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in t around 0 89.8%
Taylor expanded in y around 0 82.7%
neg-mul-182.7%
distribute-neg-frac82.7%
Simplified82.7%
Taylor expanded in z around inf 82.7%
if -2.9e11 < z < 7e16Initial program 99.1%
associate-/r/98.5%
Simplified98.5%
Taylor expanded in t around 0 79.6%
Taylor expanded in z around 0 79.1%
if 7e16 < z Initial program 91.9%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 77.1%
Final simplification79.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.8e+14) (- x a) (if (<= z 2.4e+16) x (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+14) {
tmp = x - a;
} else if (z <= 2.4e+16) {
tmp = x;
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (z <= (-2.8d+14)) then
tmp = x - a
else if (z <= 2.4d+16) then
tmp = x
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+14) {
tmp = x - a;
} else if (z <= 2.4e+16) {
tmp = x;
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+14: tmp = x - a elif z <= 2.4e+16: tmp = x else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+14) tmp = Float64(x - a); elseif (z <= 2.4e+16) tmp = x; else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+14) tmp = x - a; elseif (z <= 2.4e+16) tmp = x; else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+14], N[(x - a), $MachinePrecision], If[LessEqual[z, 2.4e+16], x, N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+14}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+16}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -2.8e14 or 2.4e16 < z Initial program 92.6%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 80.1%
if -2.8e14 < z < 2.4e16Initial program 99.1%
associate-/r/98.5%
Simplified98.5%
Taylor expanded in x around inf 63.4%
Final simplification71.4%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
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
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 96.0%
associate-/r/99.2%
Simplified99.2%
Taylor expanded in x around inf 55.5%
Final simplification55.5%
(FPCore (x y z t a) :precision binary64 (- x (* (/ (- y z) (+ (- t z) 1.0)) a)))
double code(double x, double y, double z, double t, double a) {
return x - (((y - z) / ((t - z) + 1.0)) * a);
}
real(8) function code(x, y, z, t, a)
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
code = x - (((y - z) / ((t - z) + 1.0d0)) * a)
end function
public static double code(double x, double y, double z, double t, double a) {
return x - (((y - z) / ((t - z) + 1.0)) * a);
}
def code(x, y, z, t, a): return x - (((y - z) / ((t - z) + 1.0)) * a)
function code(x, y, z, t, a) return Float64(x - Float64(Float64(Float64(y - z) / Float64(Float64(t - z) + 1.0)) * a)) end
function tmp = code(x, y, z, t, a) tmp = x - (((y - z) / ((t - z) + 1.0)) * a); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(N[(y - z), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\left(t - z\right) + 1} \cdot a
\end{array}
herbie shell --seed 2023196
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
:precision binary64
:herbie-target
(- x (* (/ (- y z) (+ (- t z) 1.0)) a))
(- x (/ (- y z) (/ (+ (- t z) 1.0) a))))