
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- z a))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - 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 - a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (z - a))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(z - a))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (z - a)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{z - a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- z a))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - 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 - a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (z - a))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(z - a))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (z - a)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{z - a}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- z t)) (- z a))))
(if (<= t_1 (- INFINITY))
(+ x (* (- z t) (/ y (- z a))))
(if (<= t_1 1e+223) (+ x t_1) (+ x (/ (- z t) (/ (- z a) y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (z - t)) / (z - a);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + ((z - t) * (y / (z - a)));
} else if (t_1 <= 1e+223) {
tmp = x + t_1;
} else {
tmp = x + ((z - t) / ((z - a) / y));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (z - t)) / (z - a);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + ((z - t) * (y / (z - a)));
} else if (t_1 <= 1e+223) {
tmp = x + t_1;
} else {
tmp = x + ((z - t) / ((z - a) / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * (z - t)) / (z - a) tmp = 0 if t_1 <= -math.inf: tmp = x + ((z - t) * (y / (z - a))) elif t_1 <= 1e+223: tmp = x + t_1 else: tmp = x + ((z - t) / ((z - a) / y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y * Float64(z - t)) / Float64(z - a)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(z - a)))); elseif (t_1 <= 1e+223) tmp = Float64(x + t_1); else tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(z - a) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y * (z - t)) / (z - a); tmp = 0.0; if (t_1 <= -Inf) tmp = x + ((z - t) * (y / (z - a))); elseif (t_1 <= 1e+223) tmp = x + t_1; else tmp = x + ((z - t) / ((z - a) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+223], N[(x + t$95$1), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(z - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z - t\right)}{z - a}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{z - a}\\
\mathbf{elif}\;t_1 \leq 10^{+223}:\\
\;\;\;\;x + t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - t}{\frac{z - a}{y}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < -inf.0Initial program 28.9%
associate-*l/99.8%
Simplified99.8%
if -inf.0 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < 1.00000000000000005e223Initial program 99.9%
if 1.00000000000000005e223 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) Initial program 48.5%
associate-*l/99.8%
Simplified99.8%
*-commutative99.8%
clear-num99.8%
un-div-inv100.0%
Applied egg-rr100.0%
Final simplification99.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- z t)) (- z a))))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 5e+210)))
(+ x (* (- z t) (/ y (- z a))))
(+ x t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (z - t)) / (z - a);
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 5e+210)) {
tmp = x + ((z - t) * (y / (z - a)));
} else {
tmp = x + t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (z - t)) / (z - a);
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 5e+210)) {
tmp = x + ((z - t) * (y / (z - a)));
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * (z - t)) / (z - a) tmp = 0 if (t_1 <= -math.inf) or not (t_1 <= 5e+210): tmp = x + ((z - t) * (y / (z - a))) else: tmp = x + t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y * Float64(z - t)) / Float64(z - a)) tmp = 0.0 if ((t_1 <= Float64(-Inf)) || !(t_1 <= 5e+210)) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(z - a)))); else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y * (z - t)) / (z - a); tmp = 0.0; if ((t_1 <= -Inf) || ~((t_1 <= 5e+210))) tmp = x + ((z - t) * (y / (z - a))); else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 5e+210]], $MachinePrecision]], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z - t\right)}{z - a}\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 5 \cdot 10^{+210}\right):\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + t_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < -inf.0 or 4.9999999999999998e210 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) Initial program 39.6%
associate-*l/99.8%
Simplified99.8%
if -inf.0 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < 4.9999999999999998e210Initial program 99.9%
Final simplification99.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4.2e+48)
(+ x y)
(if (<= z 1.45e-9)
(+ x (* y (/ t a)))
(if (<= z 1.35e+87) (- x (/ (* y z) a)) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.2e+48) {
tmp = x + y;
} else if (z <= 1.45e-9) {
tmp = x + (y * (t / a));
} else if (z <= 1.35e+87) {
tmp = x - ((y * z) / a);
} else {
tmp = x + 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 <= (-4.2d+48)) then
tmp = x + y
else if (z <= 1.45d-9) then
tmp = x + (y * (t / a))
else if (z <= 1.35d+87) then
tmp = x - ((y * z) / a)
else
tmp = x + 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 <= -4.2e+48) {
tmp = x + y;
} else if (z <= 1.45e-9) {
tmp = x + (y * (t / a));
} else if (z <= 1.35e+87) {
tmp = x - ((y * z) / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.2e+48: tmp = x + y elif z <= 1.45e-9: tmp = x + (y * (t / a)) elif z <= 1.35e+87: tmp = x - ((y * z) / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.2e+48) tmp = Float64(x + y); elseif (z <= 1.45e-9) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (z <= 1.35e+87) tmp = Float64(x - Float64(Float64(y * z) / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.2e+48) tmp = x + y; elseif (z <= 1.45e-9) tmp = x + (y * (t / a)); elseif (z <= 1.35e+87) tmp = x - ((y * z) / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.2e+48], N[(x + y), $MachinePrecision], If[LessEqual[z, 1.45e-9], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e+87], N[(x - N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+48}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-9}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+87}:\\
\;\;\;\;x - \frac{y \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -4.1999999999999997e48 or 1.35000000000000003e87 < z Initial program 68.8%
associate-*l/93.3%
Simplified93.3%
Taylor expanded in z around inf 82.3%
+-commutative82.3%
Simplified82.3%
if -4.1999999999999997e48 < z < 1.44999999999999996e-9Initial program 94.5%
associate-*l/94.4%
Simplified94.4%
Taylor expanded in z around 0 73.3%
+-commutative73.3%
associate-/l*76.1%
associate-/r/76.2%
Simplified76.2%
if 1.44999999999999996e-9 < z < 1.35000000000000003e87Initial program 93.8%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in a around inf 68.8%
mul-1-neg68.8%
unsub-neg68.8%
associate-/l*65.6%
associate-/r/71.8%
Simplified71.8%
Taylor expanded in z around inf 75.3%
Final simplification78.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.7e+48) (not (<= z 1.5e-51))) (+ x (* y (/ (- z t) z))) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.7e+48) || !(z <= 1.5e-51)) {
tmp = x + (y * ((z - t) / z));
} else {
tmp = x + (y * (t / 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 <= (-3.7d+48)) .or. (.not. (z <= 1.5d-51))) then
tmp = x + (y * ((z - t) / z))
else
tmp = x + (y * (t / 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 <= -3.7e+48) || !(z <= 1.5e-51)) {
tmp = x + (y * ((z - t) / z));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.7e+48) or not (z <= 1.5e-51): tmp = x + (y * ((z - t) / z)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.7e+48) || !(z <= 1.5e-51)) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.7e+48) || ~((z <= 1.5e-51))) tmp = x + (y * ((z - t) / z)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.7e+48], N[Not[LessEqual[z, 1.5e-51]], $MachinePrecision]], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+48} \lor \neg \left(z \leq 1.5 \cdot 10^{-51}\right):\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if z < -3.6999999999999999e48 or 1.50000000000000001e-51 < z Initial program 75.0%
*-un-lft-identity75.0%
times-frac99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 66.0%
associate-*r/85.5%
Simplified85.5%
if -3.6999999999999999e48 < z < 1.50000000000000001e-51Initial program 95.0%
associate-*l/94.1%
Simplified94.1%
Taylor expanded in z around 0 74.3%
+-commutative74.3%
associate-/l*76.6%
associate-/r/76.7%
Simplified76.7%
Final simplification81.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -6.5e+38) (not (<= a 1.15e-41))) (+ x (* (/ y a) (- t z))) (+ x (* y (/ (- z t) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.5e+38) || !(a <= 1.15e-41)) {
tmp = x + ((y / a) * (t - z));
} else {
tmp = x + (y * ((z - t) / z));
}
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 ((a <= (-6.5d+38)) .or. (.not. (a <= 1.15d-41))) then
tmp = x + ((y / a) * (t - z))
else
tmp = x + (y * ((z - t) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.5e+38) || !(a <= 1.15e-41)) {
tmp = x + ((y / a) * (t - z));
} else {
tmp = x + (y * ((z - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -6.5e+38) or not (a <= 1.15e-41): tmp = x + ((y / a) * (t - z)) else: tmp = x + (y * ((z - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6.5e+38) || !(a <= 1.15e-41)) tmp = Float64(x + Float64(Float64(y / a) * Float64(t - z))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -6.5e+38) || ~((a <= 1.15e-41))) tmp = x + ((y / a) * (t - z)); else tmp = x + (y * ((z - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.5e+38], N[Not[LessEqual[a, 1.15e-41]], $MachinePrecision]], N[(x + N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+38} \lor \neg \left(a \leq 1.15 \cdot 10^{-41}\right):\\
\;\;\;\;x + \frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\end{array}
\end{array}
if a < -6.5e38 or 1.15000000000000005e-41 < a Initial program 82.0%
associate-*l/97.5%
Simplified97.5%
Taylor expanded in a around inf 76.5%
mul-1-neg76.5%
unsub-neg76.5%
associate-/l*87.8%
associate-/r/87.8%
Simplified87.8%
if -6.5e38 < a < 1.15000000000000005e-41Initial program 85.9%
*-un-lft-identity85.9%
times-frac97.1%
Applied egg-rr97.1%
Taylor expanded in a around 0 72.3%
associate-*r/84.9%
Simplified84.9%
Final simplification86.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.5e+30) (not (<= a 1e-41))) (- x (/ y (/ a (- z t)))) (+ x (* y (/ (- z t) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.5e+30) || !(a <= 1e-41)) {
tmp = x - (y / (a / (z - t)));
} else {
tmp = x + (y * ((z - t) / z));
}
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 ((a <= (-2.5d+30)) .or. (.not. (a <= 1d-41))) then
tmp = x - (y / (a / (z - t)))
else
tmp = x + (y * ((z - t) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.5e+30) || !(a <= 1e-41)) {
tmp = x - (y / (a / (z - t)));
} else {
tmp = x + (y * ((z - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.5e+30) or not (a <= 1e-41): tmp = x - (y / (a / (z - t))) else: tmp = x + (y * ((z - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.5e+30) || !(a <= 1e-41)) tmp = Float64(x - Float64(y / Float64(a / Float64(z - t)))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.5e+30) || ~((a <= 1e-41))) tmp = x - (y / (a / (z - t))); else tmp = x + (y * ((z - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.5e+30], N[Not[LessEqual[a, 1e-41]], $MachinePrecision]], N[(x - N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.5 \cdot 10^{+30} \lor \neg \left(a \leq 10^{-41}\right):\\
\;\;\;\;x - \frac{y}{\frac{a}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\end{array}
\end{array}
if a < -2.4999999999999999e30 or 1.00000000000000001e-41 < a Initial program 82.0%
associate-*l/97.5%
Simplified97.5%
Taylor expanded in a around inf 76.5%
mul-1-neg76.5%
unsub-neg76.5%
associate-/l*87.8%
associate-/r/87.8%
Simplified87.8%
associate-*l/76.5%
associate-/l*87.8%
Applied egg-rr87.8%
if -2.4999999999999999e30 < a < 1.00000000000000001e-41Initial program 85.9%
*-un-lft-identity85.9%
times-frac97.1%
Applied egg-rr97.1%
Taylor expanded in a around 0 72.3%
associate-*r/84.9%
Simplified84.9%
Final simplification86.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.6e+48) (+ x (* y (/ (- z t) z))) (if (<= z 4e-52) (+ x (* y (/ t a))) (+ x (/ y (/ z (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.6e+48) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 4e-52) {
tmp = x + (y * (t / a));
} else {
tmp = x + (y / (z / (z - t)));
}
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 <= (-5.6d+48)) then
tmp = x + (y * ((z - t) / z))
else if (z <= 4d-52) then
tmp = x + (y * (t / a))
else
tmp = x + (y / (z / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.6e+48) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 4e-52) {
tmp = x + (y * (t / a));
} else {
tmp = x + (y / (z / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.6e+48: tmp = x + (y * ((z - t) / z)) elif z <= 4e-52: tmp = x + (y * (t / a)) else: tmp = x + (y / (z / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.6e+48) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); elseif (z <= 4e-52) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(x + Float64(y / Float64(z / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.6e+48) tmp = x + (y * ((z - t) / z)); elseif (z <= 4e-52) tmp = x + (y * (t / a)); else tmp = x + (y / (z / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.6e+48], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e-52], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{+48}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-52}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{z}{z - t}}\\
\end{array}
\end{array}
if z < -5.60000000000000025e48Initial program 72.8%
*-un-lft-identity72.8%
times-frac99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 65.8%
associate-*r/89.6%
Simplified89.6%
if -5.60000000000000025e48 < z < 4e-52Initial program 95.0%
associate-*l/94.1%
Simplified94.1%
Taylor expanded in z around 0 74.3%
+-commutative74.3%
associate-/l*76.6%
associate-/r/76.7%
Simplified76.7%
if 4e-52 < z Initial program 76.5%
associate-*l/96.3%
Simplified96.3%
Taylor expanded in a around 0 66.0%
+-commutative66.0%
associate-/l*82.8%
Simplified82.8%
Final simplification81.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.7e+33) (+ x (/ (- t z) (/ a y))) (if (<= a 6.6e-42) (+ x (* y (/ (- z t) z))) (- x (/ y (/ a (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.7e+33) {
tmp = x + ((t - z) / (a / y));
} else if (a <= 6.6e-42) {
tmp = x + (y * ((z - t) / z));
} else {
tmp = x - (y / (a / (z - t)));
}
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 (a <= (-1.7d+33)) then
tmp = x + ((t - z) / (a / y))
else if (a <= 6.6d-42) then
tmp = x + (y * ((z - t) / z))
else
tmp = x - (y / (a / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.7e+33) {
tmp = x + ((t - z) / (a / y));
} else if (a <= 6.6e-42) {
tmp = x + (y * ((z - t) / z));
} else {
tmp = x - (y / (a / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.7e+33: tmp = x + ((t - z) / (a / y)) elif a <= 6.6e-42: tmp = x + (y * ((z - t) / z)) else: tmp = x - (y / (a / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.7e+33) tmp = Float64(x + Float64(Float64(t - z) / Float64(a / y))); elseif (a <= 6.6e-42) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); else tmp = Float64(x - Float64(y / Float64(a / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.7e+33) tmp = x + ((t - z) / (a / y)); elseif (a <= 6.6e-42) tmp = x + (y * ((z - t) / z)); else tmp = x - (y / (a / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.7e+33], N[(x + N[(N[(t - z), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.6e-42], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.7 \cdot 10^{+33}:\\
\;\;\;\;x + \frac{t - z}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{-42}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{a}{z - t}}\\
\end{array}
\end{array}
if a < -1.7e33Initial program 80.4%
*-un-lft-identity80.4%
times-frac99.9%
Applied egg-rr99.9%
Taylor expanded in a around inf 73.2%
mul-1-neg73.2%
associate-*r/87.3%
sub-neg87.3%
*-commutative87.3%
associate-/r/87.3%
Simplified87.3%
if -1.7e33 < a < 6.6000000000000005e-42Initial program 85.9%
*-un-lft-identity85.9%
times-frac97.1%
Applied egg-rr97.1%
Taylor expanded in a around 0 72.3%
associate-*r/84.9%
Simplified84.9%
if 6.6000000000000005e-42 < a Initial program 83.3%
associate-*l/98.4%
Simplified98.4%
Taylor expanded in a around inf 79.1%
mul-1-neg79.1%
unsub-neg79.1%
associate-/l*88.3%
associate-/r/88.2%
Simplified88.2%
associate-*l/79.1%
associate-/l*88.3%
Applied egg-rr88.3%
Final simplification86.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.85e+49) (+ x y) (if (<= z 8.8e+63) (+ x (/ (* y t) a)) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.85e+49) {
tmp = x + y;
} else if (z <= 8.8e+63) {
tmp = x + ((y * t) / a);
} else {
tmp = x + 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 <= (-1.85d+49)) then
tmp = x + y
else if (z <= 8.8d+63) then
tmp = x + ((y * t) / a)
else
tmp = x + 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 <= -1.85e+49) {
tmp = x + y;
} else if (z <= 8.8e+63) {
tmp = x + ((y * t) / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.85e+49: tmp = x + y elif z <= 8.8e+63: tmp = x + ((y * t) / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.85e+49) tmp = Float64(x + y); elseif (z <= 8.8e+63) tmp = Float64(x + Float64(Float64(y * t) / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.85e+49) tmp = x + y; elseif (z <= 8.8e+63) tmp = x + ((y * t) / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.85e+49], N[(x + y), $MachinePrecision], If[LessEqual[z, 8.8e+63], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.85 \cdot 10^{+49}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{+63}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.85000000000000009e49 or 8.7999999999999995e63 < z Initial program 70.5%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in z around inf 80.6%
+-commutative80.6%
Simplified80.6%
if -1.85000000000000009e49 < z < 8.7999999999999995e63Initial program 94.2%
associate-*l/95.3%
Simplified95.3%
Taylor expanded in z around 0 71.3%
Final simplification75.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.7e+48) (+ x y) (if (<= z 9.2e+63) (+ x (* y (/ t a))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.7e+48) {
tmp = x + y;
} else if (z <= 9.2e+63) {
tmp = x + (y * (t / a));
} else {
tmp = x + 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 <= (-3.7d+48)) then
tmp = x + y
else if (z <= 9.2d+63) then
tmp = x + (y * (t / a))
else
tmp = x + 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 <= -3.7e+48) {
tmp = x + y;
} else if (z <= 9.2e+63) {
tmp = x + (y * (t / a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.7e+48: tmp = x + y elif z <= 9.2e+63: tmp = x + (y * (t / a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.7e+48) tmp = Float64(x + y); elseif (z <= 9.2e+63) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.7e+48) tmp = x + y; elseif (z <= 9.2e+63) tmp = x + (y * (t / a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.7e+48], N[(x + y), $MachinePrecision], If[LessEqual[z, 9.2e+63], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+48}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+63}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -3.6999999999999999e48 or 9.19999999999999973e63 < z Initial program 70.5%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in z around inf 80.6%
+-commutative80.6%
Simplified80.6%
if -3.6999999999999999e48 < z < 9.19999999999999973e63Initial program 94.2%
associate-*l/95.3%
Simplified95.3%
Taylor expanded in z around 0 71.3%
+-commutative71.3%
associate-/l*74.3%
associate-/r/73.1%
Simplified73.1%
Final simplification76.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.6e+48) (+ x y) (if (<= z 6.8e+65) (+ x (/ t (/ a y))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.6e+48) {
tmp = x + y;
} else if (z <= 6.8e+65) {
tmp = x + (t / (a / y));
} else {
tmp = x + 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 <= (-4.6d+48)) then
tmp = x + y
else if (z <= 6.8d+65) then
tmp = x + (t / (a / y))
else
tmp = x + 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 <= -4.6e+48) {
tmp = x + y;
} else if (z <= 6.8e+65) {
tmp = x + (t / (a / y));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.6e+48: tmp = x + y elif z <= 6.8e+65: tmp = x + (t / (a / y)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.6e+48) tmp = Float64(x + y); elseif (z <= 6.8e+65) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.6e+48) tmp = x + y; elseif (z <= 6.8e+65) tmp = x + (t / (a / y)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.6e+48], N[(x + y), $MachinePrecision], If[LessEqual[z, 6.8e+65], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.6 \cdot 10^{+48}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+65}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -4.6e48 or 6.7999999999999999e65 < z Initial program 70.5%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in z around inf 80.6%
+-commutative80.6%
Simplified80.6%
if -4.6e48 < z < 6.7999999999999999e65Initial program 94.2%
associate-*l/95.3%
Simplified95.3%
Taylor expanded in z around 0 71.3%
+-commutative71.3%
associate-/l*74.3%
Simplified74.3%
Final simplification77.0%
(FPCore (x y z t a) :precision binary64 (+ x (* (- z t) (/ y (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + ((z - t) * (y / (z - 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 + ((z - t) * (y / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((z - t) * (y / (z - a)));
}
def code(x, y, z, t, a): return x + ((z - t) * (y / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(z - t) * Float64(y / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((z - t) * (y / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(z - t\right) \cdot \frac{y}{z - a}
\end{array}
Initial program 84.1%
associate-*l/94.6%
Simplified94.6%
Final simplification94.6%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - 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 - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
Initial program 84.1%
*-un-lft-identity84.1%
times-frac98.4%
Applied egg-rr98.4%
Final simplification98.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.75e+209) (* (/ y a) (- t z)) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.75e+209) {
tmp = (y / a) * (t - z);
} else {
tmp = x + 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 (t <= (-2.75d+209)) then
tmp = (y / a) * (t - z)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.75e+209) {
tmp = (y / a) * (t - z);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.75e+209: tmp = (y / a) * (t - z) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.75e+209) tmp = Float64(Float64(y / a) * Float64(t - z)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.75e+209) tmp = (y / a) * (t - z); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.75e+209], N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.75 \cdot 10^{+209}:\\
\;\;\;\;\frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -2.74999999999999984e209Initial program 71.4%
*-un-lft-identity71.4%
times-frac95.7%
Applied egg-rr95.7%
Taylor expanded in a around inf 53.9%
mul-1-neg53.9%
associate-*r/64.1%
sub-neg64.1%
*-commutative64.1%
associate-/r/68.2%
Simplified68.2%
Taylor expanded in y around inf 51.0%
distribute-rgt-out--51.0%
associate-*l/40.8%
associate-*r/55.1%
associate-/r/55.1%
associate-/l*51.0%
associate-*r/55.1%
distribute-rgt-out--59.7%
Simplified59.7%
if -2.74999999999999984e209 < t Initial program 85.3%
associate-*l/94.9%
Simplified94.9%
Taylor expanded in z around inf 66.0%
+-commutative66.0%
Simplified66.0%
Final simplification65.4%
(FPCore (x y z t a) :precision binary64 (+ x y))
double code(double x, double y, double z, double t, double a) {
return x + y;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x + y;
}
def code(x, y, z, t, a): return x + y
function code(x, y, z, t, a) return Float64(x + y) end
function tmp = code(x, y, z, t, a) tmp = x + y; end
code[x_, y_, z_, t_, a_] := N[(x + y), $MachinePrecision]
\begin{array}{l}
\\
x + y
\end{array}
Initial program 84.1%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in z around inf 61.5%
+-commutative61.5%
Simplified61.5%
Final simplification61.5%
(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 84.1%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in x around inf 49.3%
Final simplification49.3%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- z a) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
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 - a) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((z - a) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((z - a) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
herbie shell --seed 2023271
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (/ (* y (- z t)) (- z a))))