
(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 (fma y (/ (- z t) (- z a)) x))
double code(double x, double y, double z, double t, double a) {
return fma(y, ((z - t) / (z - a)), x);
}
function code(x, y, z, t, a) return fma(y, Float64(Float64(z - t) / Float64(z - a)), x) end
code[x_, y_, z_, t_, a_] := N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, \frac{z - t}{z - a}, x\right)
\end{array}
Initial program 83.7%
+-commutative83.7%
associate-/l*98.4%
fma-define98.4%
Simplified98.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- z t)) (- z a))))
(if (or (<= t_1 -1e-20) (not (<= t_1 1e+168)))
(* y (/ (- z t) (- z a)))
(+ x (* y (/ z (- z a)))))))
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 <= -1e-20) || !(t_1 <= 1e+168)) {
tmp = y * ((z - t) / (z - a));
} else {
tmp = x + (y * (z / (z - 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) :: t_1
real(8) :: tmp
t_1 = (y * (z - t)) / (z - a)
if ((t_1 <= (-1d-20)) .or. (.not. (t_1 <= 1d+168))) then
tmp = y * ((z - t) / (z - a))
else
tmp = x + (y * (z / (z - a)))
end if
code = tmp
end function
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 <= -1e-20) || !(t_1 <= 1e+168)) {
tmp = y * ((z - t) / (z - a));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * (z - t)) / (z - a) tmp = 0 if (t_1 <= -1e-20) or not (t_1 <= 1e+168): tmp = y * ((z - t) / (z - a)) else: tmp = x + (y * (z / (z - a))) 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 <= -1e-20) || !(t_1 <= 1e+168)) tmp = Float64(y * Float64(Float64(z - t) / Float64(z - a))); else tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); 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 <= -1e-20) || ~((t_1 <= 1e+168))) tmp = y * ((z - t) / (z - a)); else tmp = x + (y * (z / (z - a))); 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, -1e-20], N[Not[LessEqual[t$95$1, 1e+168]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $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 -1 \cdot 10^{-20} \lor \neg \left(t\_1 \leq 10^{+168}\right):\\
\;\;\;\;y \cdot \frac{z - t}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < -9.99999999999999945e-21 or 9.9999999999999993e167 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) Initial program 63.3%
Taylor expanded in x around 0 58.1%
associate-*r/84.8%
Simplified84.8%
if -9.99999999999999945e-21 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < 9.9999999999999993e167Initial program 99.9%
Taylor expanded in t around 0 88.0%
associate-/l*88.1%
Simplified88.1%
Final simplification86.6%
(FPCore (x y z t a)
:precision binary64
(if (or (<= y -7e+26)
(and (not (<= y 6e-11)) (or (<= y 4.3e+66) (not (<= y 1.35e+130)))))
(* y (/ (- z t) (- z a)))
(+ y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -7e+26) || (!(y <= 6e-11) && ((y <= 4.3e+66) || !(y <= 1.35e+130)))) {
tmp = y * ((z - t) / (z - a));
} else {
tmp = y + x;
}
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 ((y <= (-7d+26)) .or. (.not. (y <= 6d-11)) .and. (y <= 4.3d+66) .or. (.not. (y <= 1.35d+130))) then
tmp = y * ((z - t) / (z - a))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -7e+26) || (!(y <= 6e-11) && ((y <= 4.3e+66) || !(y <= 1.35e+130)))) {
tmp = y * ((z - t) / (z - a));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -7e+26) or (not (y <= 6e-11) and ((y <= 4.3e+66) or not (y <= 1.35e+130))): tmp = y * ((z - t) / (z - a)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -7e+26) || (!(y <= 6e-11) && ((y <= 4.3e+66) || !(y <= 1.35e+130)))) tmp = Float64(y * Float64(Float64(z - t) / Float64(z - a))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -7e+26) || (~((y <= 6e-11)) && ((y <= 4.3e+66) || ~((y <= 1.35e+130))))) tmp = y * ((z - t) / (z - a)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -7e+26], And[N[Not[LessEqual[y, 6e-11]], $MachinePrecision], Or[LessEqual[y, 4.3e+66], N[Not[LessEqual[y, 1.35e+130]], $MachinePrecision]]]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+26} \lor \neg \left(y \leq 6 \cdot 10^{-11}\right) \land \left(y \leq 4.3 \cdot 10^{+66} \lor \neg \left(y \leq 1.35 \cdot 10^{+130}\right)\right):\\
\;\;\;\;y \cdot \frac{z - t}{z - a}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if y < -6.9999999999999998e26 or 6e-11 < y < 4.30000000000000027e66 or 1.3499999999999999e130 < y Initial program 69.6%
Taylor expanded in x around 0 57.2%
associate-*r/83.1%
Simplified83.1%
if -6.9999999999999998e26 < y < 6e-11 or 4.30000000000000027e66 < y < 1.3499999999999999e130Initial program 95.7%
Taylor expanded in z around inf 79.5%
+-commutative79.5%
Simplified79.5%
Final simplification81.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3e-41)
(+ y x)
(if (<= z 0.058)
(+ x (/ y (/ a t)))
(if (or (<= z 3.8e+143) (not (<= z 9.5e+180)))
(+ y x)
(- x (* y (/ t z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3e-41) {
tmp = y + x;
} else if (z <= 0.058) {
tmp = x + (y / (a / t));
} else if ((z <= 3.8e+143) || !(z <= 9.5e+180)) {
tmp = y + x;
} else {
tmp = x - (y * (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 (z <= (-3d-41)) then
tmp = y + x
else if (z <= 0.058d0) then
tmp = x + (y / (a / t))
else if ((z <= 3.8d+143) .or. (.not. (z <= 9.5d+180))) then
tmp = y + x
else
tmp = x - (y * (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 (z <= -3e-41) {
tmp = y + x;
} else if (z <= 0.058) {
tmp = x + (y / (a / t));
} else if ((z <= 3.8e+143) || !(z <= 9.5e+180)) {
tmp = y + x;
} else {
tmp = x - (y * (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3e-41: tmp = y + x elif z <= 0.058: tmp = x + (y / (a / t)) elif (z <= 3.8e+143) or not (z <= 9.5e+180): tmp = y + x else: tmp = x - (y * (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3e-41) tmp = Float64(y + x); elseif (z <= 0.058) tmp = Float64(x + Float64(y / Float64(a / t))); elseif ((z <= 3.8e+143) || !(z <= 9.5e+180)) tmp = Float64(y + x); else tmp = Float64(x - Float64(y * Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3e-41) tmp = y + x; elseif (z <= 0.058) tmp = x + (y / (a / t)); elseif ((z <= 3.8e+143) || ~((z <= 9.5e+180))) tmp = y + x; else tmp = x - (y * (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3e-41], N[(y + x), $MachinePrecision], If[LessEqual[z, 0.058], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 3.8e+143], N[Not[LessEqual[z, 9.5e+180]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{-41}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;z \leq 0.058:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+143} \lor \neg \left(z \leq 9.5 \cdot 10^{+180}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{t}{z}\\
\end{array}
\end{array}
if z < -2.99999999999999989e-41 or 0.0580000000000000029 < z < 3.8e143 or 9.5000000000000003e180 < z Initial program 74.7%
Taylor expanded in z around inf 78.1%
+-commutative78.1%
Simplified78.1%
if -2.99999999999999989e-41 < z < 0.0580000000000000029Initial program 96.6%
associate-/l*96.5%
clear-num95.7%
un-div-inv95.6%
Applied egg-rr95.6%
Taylor expanded in z around 0 73.0%
if 3.8e143 < z < 9.5000000000000003e180Initial program 67.4%
associate-/l*99.7%
clear-num99.6%
un-div-inv99.9%
Applied egg-rr99.9%
associate-/r/99.9%
clear-num99.9%
associate-*l/99.9%
*-un-lft-identity99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 67.4%
associate-/l*83.6%
Simplified83.6%
Taylor expanded in z around 0 86.4%
neg-mul-186.4%
distribute-neg-frac86.4%
Simplified86.4%
Final simplification76.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y (- z)))))
(if (<= t -1.85e+184)
t_1
(if (<= t 8e+180)
(+ y x)
(if (<= t 4.1e+270) t_1 (if (<= t 4.7e+278) (+ y x) (/ (* y t) a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / -z);
double tmp;
if (t <= -1.85e+184) {
tmp = t_1;
} else if (t <= 8e+180) {
tmp = y + x;
} else if (t <= 4.1e+270) {
tmp = t_1;
} else if (t <= 4.7e+278) {
tmp = y + x;
} else {
tmp = (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) :: t_1
real(8) :: tmp
t_1 = t * (y / -z)
if (t <= (-1.85d+184)) then
tmp = t_1
else if (t <= 8d+180) then
tmp = y + x
else if (t <= 4.1d+270) then
tmp = t_1
else if (t <= 4.7d+278) then
tmp = y + x
else
tmp = (y * t) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / -z);
double tmp;
if (t <= -1.85e+184) {
tmp = t_1;
} else if (t <= 8e+180) {
tmp = y + x;
} else if (t <= 4.1e+270) {
tmp = t_1;
} else if (t <= 4.7e+278) {
tmp = y + x;
} else {
tmp = (y * t) / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / -z) tmp = 0 if t <= -1.85e+184: tmp = t_1 elif t <= 8e+180: tmp = y + x elif t <= 4.1e+270: tmp = t_1 elif t <= 4.7e+278: tmp = y + x else: tmp = (y * t) / a return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(-z))) tmp = 0.0 if (t <= -1.85e+184) tmp = t_1; elseif (t <= 8e+180) tmp = Float64(y + x); elseif (t <= 4.1e+270) tmp = t_1; elseif (t <= 4.7e+278) tmp = Float64(y + x); else tmp = Float64(Float64(y * t) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / -z); tmp = 0.0; if (t <= -1.85e+184) tmp = t_1; elseif (t <= 8e+180) tmp = y + x; elseif (t <= 4.1e+270) tmp = t_1; elseif (t <= 4.7e+278) tmp = y + x; else tmp = (y * t) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.85e+184], t$95$1, If[LessEqual[t, 8e+180], N[(y + x), $MachinePrecision], If[LessEqual[t, 4.1e+270], t$95$1, If[LessEqual[t, 4.7e+278], N[(y + x), $MachinePrecision], N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{-z}\\
\mathbf{if}\;t \leq -1.85 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+180}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{+270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{+278}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot t}{a}\\
\end{array}
\end{array}
if t < -1.8499999999999999e184 or 8.0000000000000001e180 < t < 4.09999999999999996e270Initial program 80.6%
Taylor expanded in x around 0 66.9%
Taylor expanded in t around inf 66.0%
mul-1-neg79.6%
associate-/l*92.5%
distribute-rgt-neg-in92.5%
distribute-neg-frac292.5%
Simplified76.6%
Taylor expanded in z around inf 57.4%
associate-*r/57.4%
neg-mul-157.4%
Simplified57.4%
if -1.8499999999999999e184 < t < 8.0000000000000001e180 or 4.09999999999999996e270 < t < 4.7e278Initial program 84.3%
Taylor expanded in z around inf 71.0%
+-commutative71.0%
Simplified71.0%
if 4.7e278 < t Initial program 86.7%
Taylor expanded in x around 0 73.2%
Taylor expanded in z around 0 57.9%
Final simplification68.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.6e+81)
(+ x (* t (/ y a)))
(if (<= a 1.9e-90)
(+ x (* y (- 1.0 (/ t z))))
(if (<= a 4.2e-23) (* y (/ (- z t) (- z a))) (+ x (/ y (/ a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.6e+81) {
tmp = x + (t * (y / a));
} else if (a <= 1.9e-90) {
tmp = x + (y * (1.0 - (t / z)));
} else if (a <= 4.2e-23) {
tmp = y * ((z - t) / (z - a));
} else {
tmp = x + (y / (a / 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 <= (-3.6d+81)) then
tmp = x + (t * (y / a))
else if (a <= 1.9d-90) then
tmp = x + (y * (1.0d0 - (t / z)))
else if (a <= 4.2d-23) then
tmp = y * ((z - t) / (z - a))
else
tmp = x + (y / (a / 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 <= -3.6e+81) {
tmp = x + (t * (y / a));
} else if (a <= 1.9e-90) {
tmp = x + (y * (1.0 - (t / z)));
} else if (a <= 4.2e-23) {
tmp = y * ((z - t) / (z - a));
} else {
tmp = x + (y / (a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.6e+81: tmp = x + (t * (y / a)) elif a <= 1.9e-90: tmp = x + (y * (1.0 - (t / z))) elif a <= 4.2e-23: tmp = y * ((z - t) / (z - a)) else: tmp = x + (y / (a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.6e+81) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= 1.9e-90) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(t / z)))); elseif (a <= 4.2e-23) tmp = Float64(y * Float64(Float64(z - t) / Float64(z - a))); else tmp = Float64(x + Float64(y / Float64(a / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.6e+81) tmp = x + (t * (y / a)); elseif (a <= 1.9e-90) tmp = x + (y * (1.0 - (t / z))); elseif (a <= 4.2e-23) tmp = y * ((z - t) / (z - a)); else tmp = x + (y / (a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.6e+81], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e-90], N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e-23], N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.6 \cdot 10^{+81}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-90}:\\
\;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-23}:\\
\;\;\;\;y \cdot \frac{z - t}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\end{array}
\end{array}
if a < -3.60000000000000005e81Initial program 83.9%
Taylor expanded in z around 0 75.5%
associate-/l*79.9%
Simplified79.9%
if -3.60000000000000005e81 < a < 1.9e-90Initial program 88.5%
Taylor expanded in a around 0 79.7%
associate-/l*88.9%
div-sub88.9%
*-inverses88.9%
Simplified88.9%
if 1.9e-90 < a < 4.2000000000000002e-23Initial program 90.8%
Taylor expanded in x around 0 77.7%
associate-*r/86.7%
Simplified86.7%
if 4.2000000000000002e-23 < a Initial program 71.6%
associate-/l*100.0%
clear-num99.9%
un-div-inv100.0%
Applied egg-rr100.0%
Taylor expanded in z around 0 78.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -0.0074) (not (<= t 3.2e+123))) (+ x (* t (/ y (- a z)))) (+ x (* y (/ z (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -0.0074) || !(t <= 3.2e+123)) {
tmp = x + (t * (y / (a - z)));
} else {
tmp = x + (y * (z / (z - 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 ((t <= (-0.0074d0)) .or. (.not. (t <= 3.2d+123))) then
tmp = x + (t * (y / (a - z)))
else
tmp = x + (y * (z / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -0.0074) || !(t <= 3.2e+123)) {
tmp = x + (t * (y / (a - z)));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -0.0074) or not (t <= 3.2e+123): tmp = x + (t * (y / (a - z))) else: tmp = x + (y * (z / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -0.0074) || !(t <= 3.2e+123)) tmp = Float64(x + Float64(t * Float64(y / Float64(a - z)))); else tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -0.0074) || ~((t <= 3.2e+123))) tmp = x + (t * (y / (a - z))); else tmp = x + (y * (z / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -0.0074], N[Not[LessEqual[t, 3.2e+123]], $MachinePrecision]], N[(x + N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0074 \lor \neg \left(t \leq 3.2 \cdot 10^{+123}\right):\\
\;\;\;\;x + t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if t < -0.0074000000000000003 or 3.20000000000000005e123 < t Initial program 81.7%
Taylor expanded in t around inf 78.6%
mul-1-neg78.6%
associate-/l*91.0%
distribute-rgt-neg-in91.0%
distribute-neg-frac291.0%
Simplified91.0%
if -0.0074000000000000003 < t < 3.20000000000000005e123Initial program 85.0%
Taylor expanded in t around 0 74.7%
associate-/l*89.1%
Simplified89.1%
Final simplification89.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.1e-40) (not (<= z 0.215))) (+ y x) (+ x (/ y (/ a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.1e-40) || !(z <= 0.215)) {
tmp = y + x;
} else {
tmp = x + (y / (a / 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 <= (-2.1d-40)) .or. (.not. (z <= 0.215d0))) then
tmp = y + x
else
tmp = x + (y / (a / 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 <= -2.1e-40) || !(z <= 0.215)) {
tmp = y + x;
} else {
tmp = x + (y / (a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.1e-40) or not (z <= 0.215): tmp = y + x else: tmp = x + (y / (a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.1e-40) || !(z <= 0.215)) tmp = Float64(y + x); else tmp = Float64(x + Float64(y / Float64(a / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.1e-40) || ~((z <= 0.215))) tmp = y + x; else tmp = x + (y / (a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.1e-40], N[Not[LessEqual[z, 0.215]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{-40} \lor \neg \left(z \leq 0.215\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\end{array}
\end{array}
if z < -2.10000000000000018e-40 or 0.214999999999999997 < z Initial program 74.1%
Taylor expanded in z around inf 75.9%
+-commutative75.9%
Simplified75.9%
if -2.10000000000000018e-40 < z < 0.214999999999999997Initial program 96.6%
associate-/l*96.5%
clear-num95.7%
un-div-inv95.6%
Applied egg-rr95.6%
Taylor expanded in z around 0 73.0%
Final simplification74.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.4e-40) (not (<= z 2900.0))) (+ y x) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.4e-40) || !(z <= 2900.0)) {
tmp = y + x;
} else {
tmp = x + (t * (y / 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.4d-40)) .or. (.not. (z <= 2900.0d0))) then
tmp = y + x
else
tmp = x + (t * (y / 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.4e-40) || !(z <= 2900.0)) {
tmp = y + x;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.4e-40) or not (z <= 2900.0): tmp = y + x else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.4e-40) || !(z <= 2900.0)) tmp = Float64(y + x); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.4e-40) || ~((z <= 2900.0))) tmp = y + x; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.4e-40], N[Not[LessEqual[z, 2900.0]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{-40} \lor \neg \left(z \leq 2900\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -3.39999999999999984e-40 or 2900 < z Initial program 74.1%
Taylor expanded in z around inf 75.9%
+-commutative75.9%
Simplified75.9%
if -3.39999999999999984e-40 < z < 2900Initial program 96.6%
Taylor expanded in z around 0 71.8%
associate-/l*72.3%
Simplified72.3%
Final simplification74.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -7e+185) (not (<= t 7.8e+164))) (* y (/ (- z t) z)) (+ y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -7e+185) || !(t <= 7.8e+164)) {
tmp = y * ((z - t) / z);
} else {
tmp = y + x;
}
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 <= (-7d+185)) .or. (.not. (t <= 7.8d+164))) then
tmp = y * ((z - t) / z)
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -7e+185) || !(t <= 7.8e+164)) {
tmp = y * ((z - t) / z);
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -7e+185) or not (t <= 7.8e+164): tmp = y * ((z - t) / z) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -7e+185) || !(t <= 7.8e+164)) tmp = Float64(y * Float64(Float64(z - t) / z)); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -7e+185) || ~((t <= 7.8e+164))) tmp = y * ((z - t) / z); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -7e+185], N[Not[LessEqual[t, 7.8e+164]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{+185} \lor \neg \left(t \leq 7.8 \cdot 10^{+164}\right):\\
\;\;\;\;y \cdot \frac{z - t}{z}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -7.00000000000000046e185 or 7.79999999999999971e164 < t Initial program 78.5%
Taylor expanded in x around 0 62.5%
associate-*r/73.8%
Simplified73.8%
Taylor expanded in a around 0 53.8%
if -7.00000000000000046e185 < t < 7.79999999999999971e164Initial program 85.4%
Taylor expanded in z around inf 71.8%
+-commutative71.8%
Simplified71.8%
Final simplification67.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.8e+248) (not (<= t 4.2e+227))) (* t (/ y a)) (+ y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.8e+248) || !(t <= 4.2e+227)) {
tmp = t * (y / a);
} else {
tmp = y + x;
}
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 <= (-1.8d+248)) .or. (.not. (t <= 4.2d+227))) then
tmp = t * (y / a)
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.8e+248) || !(t <= 4.2e+227)) {
tmp = t * (y / a);
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.8e+248) or not (t <= 4.2e+227): tmp = t * (y / a) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.8e+248) || !(t <= 4.2e+227)) tmp = Float64(t * Float64(y / a)); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.8e+248) || ~((t <= 4.2e+227))) tmp = t * (y / a); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.8e+248], N[Not[LessEqual[t, 4.2e+227]], $MachinePrecision]], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{+248} \lor \neg \left(t \leq 4.2 \cdot 10^{+227}\right):\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -1.80000000000000001e248 or 4.20000000000000039e227 < t Initial program 82.0%
Taylor expanded in x around 0 67.1%
Taylor expanded in z around 0 56.4%
associate-/l*78.5%
Simplified63.6%
if -1.80000000000000001e248 < t < 4.20000000000000039e227Initial program 83.9%
Taylor expanded in z around inf 66.1%
+-commutative66.1%
Simplified66.1%
Final simplification65.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.8e+185) (* y (/ t (- z))) (if (<= t 8.5e+224) (+ y x) (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+185) {
tmp = y * (t / -z);
} else if (t <= 8.5e+224) {
tmp = y + x;
} else {
tmp = t * (y / 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 (t <= (-2.8d+185)) then
tmp = y * (t / -z)
else if (t <= 8.5d+224) then
tmp = y + x
else
tmp = t * (y / a)
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.8e+185) {
tmp = y * (t / -z);
} else if (t <= 8.5e+224) {
tmp = y + x;
} else {
tmp = t * (y / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.8e+185: tmp = y * (t / -z) elif t <= 8.5e+224: tmp = y + x else: tmp = t * (y / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.8e+185) tmp = Float64(y * Float64(t / Float64(-z))); elseif (t <= 8.5e+224) tmp = Float64(y + x); else tmp = Float64(t * Float64(y / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.8e+185) tmp = y * (t / -z); elseif (t <= 8.5e+224) tmp = y + x; else tmp = t * (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.8e+185], N[(y * N[(t / (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+224], N[(y + x), $MachinePrecision], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+185}:\\
\;\;\;\;y \cdot \frac{t}{-z}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+224}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -2.79999999999999982e185Initial program 83.1%
Taylor expanded in x around 0 65.7%
Taylor expanded in t around inf 65.4%
mul-1-neg82.7%
associate-/l*92.7%
distribute-rgt-neg-in92.7%
distribute-neg-frac292.7%
Simplified75.4%
Taylor expanded in z around inf 48.7%
associate-*r/48.7%
neg-mul-148.7%
distribute-lft-neg-in48.7%
Simplified48.7%
associate-/l*55.4%
distribute-lft-neg-out55.4%
add-sqr-sqrt0.0%
sqrt-unprod7.9%
sqr-neg7.9%
sqrt-unprod8.3%
add-sqr-sqrt8.3%
associate-/l*8.2%
div-inv8.2%
*-commutative8.2%
associate-*l*8.3%
add-sqr-sqrt8.3%
sqrt-unprod7.9%
sqr-neg7.9%
sqrt-unprod0.0%
add-sqr-sqrt55.1%
div-inv55.1%
Applied egg-rr55.1%
if -2.79999999999999982e185 < t < 8.50000000000000046e224Initial program 84.4%
Taylor expanded in z around inf 68.7%
+-commutative68.7%
Simplified68.7%
if 8.50000000000000046e224 < t Initial program 76.6%
Taylor expanded in x around 0 58.5%
Taylor expanded in z around 0 45.6%
associate-/l*75.4%
Simplified57.2%
Final simplification66.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -0.13) (not (<= y 1.75e+140))) y x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -0.13) || !(y <= 1.75e+140)) {
tmp = y;
} else {
tmp = x;
}
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 ((y <= (-0.13d0)) .or. (.not. (y <= 1.75d+140))) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -0.13) || !(y <= 1.75e+140)) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -0.13) or not (y <= 1.75e+140): tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -0.13) || !(y <= 1.75e+140)) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -0.13) || ~((y <= 1.75e+140))) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -0.13], N[Not[LessEqual[y, 1.75e+140]], $MachinePrecision]], y, x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.13 \lor \neg \left(y \leq 1.75 \cdot 10^{+140}\right):\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -0.13 or 1.74999999999999995e140 < y Initial program 63.2%
Taylor expanded in x around 0 53.0%
Taylor expanded in z around inf 38.2%
if -0.13 < y < 1.74999999999999995e140Initial program 95.7%
Taylor expanded in x around inf 65.6%
Final simplification55.5%
(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}
Initial program 83.7%
associate-/l*98.4%
clear-num98.1%
un-div-inv98.1%
Applied egg-rr98.1%
(FPCore (x y z t a) :precision binary64 (+ y x))
double code(double x, double y, double z, double t, double a) {
return y + 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 = y + x
end function
public static double code(double x, double y, double z, double t, double a) {
return y + x;
}
def code(x, y, z, t, a): return y + x
function code(x, y, z, t, a) return Float64(y + x) end
function tmp = code(x, y, z, t, a) tmp = y + x; end
code[x_, y_, z_, t_, a_] := N[(y + x), $MachinePrecision]
\begin{array}{l}
\\
y + x
\end{array}
Initial program 83.7%
Taylor expanded in z around inf 61.6%
+-commutative61.6%
Simplified61.6%
(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 83.7%
Taylor expanded in x around inf 47.1%
(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 2024096
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
:alt
(+ x (/ y (/ (- z a) (- z t))))
(+ x (/ (* y (- z t)) (- z a))))