
(FPCore (x y z t) :precision binary64 (+ (* (/ x y) (- z t)) t))
double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x / y) * (z - t)) + t
end function
public static double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
def code(x, y, z, t): return ((x / y) * (z - t)) + t
function code(x, y, z, t) return Float64(Float64(Float64(x / y) * Float64(z - t)) + t) end
function tmp = code(x, y, z, t) tmp = ((x / y) * (z - t)) + t; end
code[x_, y_, z_, t_] := N[(N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y} \cdot \left(z - t\right) + t
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (* (/ x y) (- z t)) t))
double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x / y) * (z - t)) + t
end function
public static double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
def code(x, y, z, t): return ((x / y) * (z - t)) + t
function code(x, y, z, t) return Float64(Float64(Float64(x / y) * Float64(z - t)) + t) end
function tmp = code(x, y, z, t) tmp = ((x / y) * (z - t)) + t; end
code[x_, y_, z_, t_] := N[(N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y} \cdot \left(z - t\right) + t
\end{array}
(FPCore (x y z t) :precision binary64 (+ t (/ (- z t) (/ y x))))
double code(double x, double y, double z, double t) {
return t + ((z - t) / (y / x));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = t + ((z - t) / (y / x))
end function
public static double code(double x, double y, double z, double t) {
return t + ((z - t) / (y / x));
}
def code(x, y, z, t): return t + ((z - t) / (y / x))
function code(x, y, z, t) return Float64(t + Float64(Float64(z - t) / Float64(y / x))) end
function tmp = code(x, y, z, t) tmp = t + ((z - t) / (y / x)); end
code[x_, y_, z_, t_] := N[(t + N[(N[(z - t), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t + \frac{z - t}{\frac{y}{x}}
\end{array}
Initial program 97.6%
*-commutative97.6%
clear-num97.6%
un-div-inv97.7%
Applied egg-rr97.7%
Final simplification97.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (/ x (- y)))))
(if (<= (/ x y) -2e+274)
(* x (/ z y))
(if (<= (/ x y) -2e+19)
t_1
(if (<= (/ x y) -1e-66)
(* z (/ x y))
(if (<= (/ x y) 0.0002) t t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (x / -y);
double tmp;
if ((x / y) <= -2e+274) {
tmp = x * (z / y);
} else if ((x / y) <= -2e+19) {
tmp = t_1;
} else if ((x / y) <= -1e-66) {
tmp = z * (x / y);
} else if ((x / y) <= 0.0002) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = t * (x / -y)
if ((x / y) <= (-2d+274)) then
tmp = x * (z / y)
else if ((x / y) <= (-2d+19)) then
tmp = t_1
else if ((x / y) <= (-1d-66)) then
tmp = z * (x / y)
else if ((x / y) <= 0.0002d0) then
tmp = t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = t * (x / -y);
double tmp;
if ((x / y) <= -2e+274) {
tmp = x * (z / y);
} else if ((x / y) <= -2e+19) {
tmp = t_1;
} else if ((x / y) <= -1e-66) {
tmp = z * (x / y);
} else if ((x / y) <= 0.0002) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (x / -y) tmp = 0 if (x / y) <= -2e+274: tmp = x * (z / y) elif (x / y) <= -2e+19: tmp = t_1 elif (x / y) <= -1e-66: tmp = z * (x / y) elif (x / y) <= 0.0002: tmp = t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(x / Float64(-y))) tmp = 0.0 if (Float64(x / y) <= -2e+274) tmp = Float64(x * Float64(z / y)); elseif (Float64(x / y) <= -2e+19) tmp = t_1; elseif (Float64(x / y) <= -1e-66) tmp = Float64(z * Float64(x / y)); elseif (Float64(x / y) <= 0.0002) tmp = t; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (x / -y); tmp = 0.0; if ((x / y) <= -2e+274) tmp = x * (z / y); elseif ((x / y) <= -2e+19) tmp = t_1; elseif ((x / y) <= -1e-66) tmp = z * (x / y); elseif ((x / y) <= 0.0002) tmp = t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(x / (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x / y), $MachinePrecision], -2e+274], N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], -2e+19], t$95$1, If[LessEqual[N[(x / y), $MachinePrecision], -1e-66], N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 0.0002], t, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{x}{-y}\\
\mathbf{if}\;\frac{x}{y} \leq -2 \cdot 10^{+274}:\\
\;\;\;\;x \cdot \frac{z}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -2 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;\frac{x}{y} \leq -1 \cdot 10^{-66}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 0.0002:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 x y) < -1.99999999999999984e274Initial program 82.5%
Taylor expanded in y around 0 99.9%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
associate-/l*82.5%
Applied egg-rr82.5%
Taylor expanded in z around inf 81.2%
associate-/l*81.3%
Simplified81.3%
if -1.99999999999999984e274 < (/.f64 x y) < -2e19 or 2.0000000000000001e-4 < (/.f64 x y) Initial program 98.8%
Taylor expanded in y around 0 91.7%
Taylor expanded in y around 0 91.4%
Taylor expanded in z around 0 53.8%
mul-1-neg53.8%
associate-/l*61.8%
*-commutative61.8%
distribute-rgt-neg-in61.8%
Simplified61.8%
if -2e19 < (/.f64 x y) < -9.9999999999999998e-67Initial program 99.6%
Taylor expanded in y around 0 91.3%
Taylor expanded in y around 0 85.7%
*-commutative85.7%
associate-/l*93.9%
Applied egg-rr93.9%
Taylor expanded in z around inf 82.5%
associate-*l/90.8%
Simplified90.8%
if -9.9999999999999998e-67 < (/.f64 x y) < 2.0000000000000001e-4Initial program 98.3%
Taylor expanded in x around 0 80.8%
Final simplification73.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (- t) (/ y x))))
(if (<= (/ x y) -2e+274)
(* x (/ z y))
(if (<= (/ x y) -2e+19)
t_1
(if (<= (/ x y) -1e-66)
(* z (/ x y))
(if (<= (/ x y) 0.0002) t t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = -t / (y / x);
double tmp;
if ((x / y) <= -2e+274) {
tmp = x * (z / y);
} else if ((x / y) <= -2e+19) {
tmp = t_1;
} else if ((x / y) <= -1e-66) {
tmp = z * (x / y);
} else if ((x / y) <= 0.0002) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = -t / (y / x)
if ((x / y) <= (-2d+274)) then
tmp = x * (z / y)
else if ((x / y) <= (-2d+19)) then
tmp = t_1
else if ((x / y) <= (-1d-66)) then
tmp = z * (x / y)
else if ((x / y) <= 0.0002d0) then
tmp = t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = -t / (y / x);
double tmp;
if ((x / y) <= -2e+274) {
tmp = x * (z / y);
} else if ((x / y) <= -2e+19) {
tmp = t_1;
} else if ((x / y) <= -1e-66) {
tmp = z * (x / y);
} else if ((x / y) <= 0.0002) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = -t / (y / x) tmp = 0 if (x / y) <= -2e+274: tmp = x * (z / y) elif (x / y) <= -2e+19: tmp = t_1 elif (x / y) <= -1e-66: tmp = z * (x / y) elif (x / y) <= 0.0002: tmp = t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-t) / Float64(y / x)) tmp = 0.0 if (Float64(x / y) <= -2e+274) tmp = Float64(x * Float64(z / y)); elseif (Float64(x / y) <= -2e+19) tmp = t_1; elseif (Float64(x / y) <= -1e-66) tmp = Float64(z * Float64(x / y)); elseif (Float64(x / y) <= 0.0002) tmp = t; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -t / (y / x); tmp = 0.0; if ((x / y) <= -2e+274) tmp = x * (z / y); elseif ((x / y) <= -2e+19) tmp = t_1; elseif ((x / y) <= -1e-66) tmp = z * (x / y); elseif ((x / y) <= 0.0002) tmp = t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-t) / N[(y / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x / y), $MachinePrecision], -2e+274], N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], -2e+19], t$95$1, If[LessEqual[N[(x / y), $MachinePrecision], -1e-66], N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 0.0002], t, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-t}{\frac{y}{x}}\\
\mathbf{if}\;\frac{x}{y} \leq -2 \cdot 10^{+274}:\\
\;\;\;\;x \cdot \frac{z}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -2 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;\frac{x}{y} \leq -1 \cdot 10^{-66}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 0.0002:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 x y) < -1.99999999999999984e274Initial program 82.5%
Taylor expanded in y around 0 99.9%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
associate-/l*82.5%
Applied egg-rr82.5%
Taylor expanded in z around inf 81.2%
associate-/l*81.3%
Simplified81.3%
if -1.99999999999999984e274 < (/.f64 x y) < -2e19 or 2.0000000000000001e-4 < (/.f64 x y) Initial program 98.8%
Taylor expanded in y around 0 91.7%
Taylor expanded in y around 0 91.4%
Taylor expanded in z around 0 53.8%
mul-1-neg53.8%
associate-/l*61.8%
*-commutative61.8%
distribute-rgt-neg-in61.8%
Simplified61.8%
clear-num61.8%
associate-/r/61.9%
clear-num61.9%
frac-2neg61.9%
remove-double-neg61.9%
distribute-neg-frac261.9%
Applied egg-rr61.9%
if -2e19 < (/.f64 x y) < -9.9999999999999998e-67Initial program 99.6%
Taylor expanded in y around 0 91.3%
Taylor expanded in y around 0 85.7%
*-commutative85.7%
associate-/l*93.9%
Applied egg-rr93.9%
Taylor expanded in z around inf 82.5%
associate-*l/90.8%
Simplified90.8%
if -9.9999999999999998e-67 < (/.f64 x y) < 2.0000000000000001e-4Initial program 98.3%
Taylor expanded in x around 0 80.8%
Final simplification73.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ x y)))))
(if (<= t -2.5e-194)
t_1
(if (<= t 2.9e-163)
(/ (* z x) y)
(if (or (<= t 2.8e-150) (not (<= t 2.2e-95))) t_1 (* z (/ x y)))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (1.0 - (x / y));
double tmp;
if (t <= -2.5e-194) {
tmp = t_1;
} else if (t <= 2.9e-163) {
tmp = (z * x) / y;
} else if ((t <= 2.8e-150) || !(t <= 2.2e-95)) {
tmp = t_1;
} else {
tmp = z * (x / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = t * (1.0d0 - (x / y))
if (t <= (-2.5d-194)) then
tmp = t_1
else if (t <= 2.9d-163) then
tmp = (z * x) / y
else if ((t <= 2.8d-150) .or. (.not. (t <= 2.2d-95))) then
tmp = t_1
else
tmp = z * (x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = t * (1.0 - (x / y));
double tmp;
if (t <= -2.5e-194) {
tmp = t_1;
} else if (t <= 2.9e-163) {
tmp = (z * x) / y;
} else if ((t <= 2.8e-150) || !(t <= 2.2e-95)) {
tmp = t_1;
} else {
tmp = z * (x / y);
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (1.0 - (x / y)) tmp = 0 if t <= -2.5e-194: tmp = t_1 elif t <= 2.9e-163: tmp = (z * x) / y elif (t <= 2.8e-150) or not (t <= 2.2e-95): tmp = t_1 else: tmp = z * (x / y) return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(1.0 - Float64(x / y))) tmp = 0.0 if (t <= -2.5e-194) tmp = t_1; elseif (t <= 2.9e-163) tmp = Float64(Float64(z * x) / y); elseif ((t <= 2.8e-150) || !(t <= 2.2e-95)) tmp = t_1; else tmp = Float64(z * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (1.0 - (x / y)); tmp = 0.0; if (t <= -2.5e-194) tmp = t_1; elseif (t <= 2.9e-163) tmp = (z * x) / y; elseif ((t <= 2.8e-150) || ~((t <= 2.2e-95))) tmp = t_1; else tmp = z * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e-194], t$95$1, If[LessEqual[t, 2.9e-163], N[(N[(z * x), $MachinePrecision] / y), $MachinePrecision], If[Or[LessEqual[t, 2.8e-150], N[Not[LessEqual[t, 2.2e-95]], $MachinePrecision]], t$95$1, N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{x}{y}\right)\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{-194}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-163}:\\
\;\;\;\;\frac{z \cdot x}{y}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-150} \lor \neg \left(t \leq 2.2 \cdot 10^{-95}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\end{array}
\end{array}
if t < -2.5000000000000001e-194 or 2.9000000000000001e-163 < t < 2.79999999999999996e-150 or 2.1999999999999999e-95 < t Initial program 99.8%
Taylor expanded in z around 0 75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-rgt-identity75.5%
associate-/l*81.8%
distribute-lft-out--81.8%
Simplified81.8%
if -2.5000000000000001e-194 < t < 2.9000000000000001e-163Initial program 91.3%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around 0 76.0%
if 2.79999999999999996e-150 < t < 2.1999999999999999e-95Initial program 93.6%
Taylor expanded in y around 0 96.2%
Taylor expanded in y around 0 96.2%
*-commutative96.2%
associate-/l*93.6%
Applied egg-rr93.6%
Taylor expanded in z around inf 73.7%
associate-*l/74.0%
Simplified74.0%
Final simplification80.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (/ z y))))
(if (<= x -3.6e+91)
t_1
(if (<= x -7.2e-30)
(* y (/ t y))
(if (or (<= x -4.8e-48) (not (<= x 3.1e-106))) t_1 t)))))
double code(double x, double y, double z, double t) {
double t_1 = x * (z / y);
double tmp;
if (x <= -3.6e+91) {
tmp = t_1;
} else if (x <= -7.2e-30) {
tmp = y * (t / y);
} else if ((x <= -4.8e-48) || !(x <= 3.1e-106)) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x * (z / y)
if (x <= (-3.6d+91)) then
tmp = t_1
else if (x <= (-7.2d-30)) then
tmp = y * (t / y)
else if ((x <= (-4.8d-48)) .or. (.not. (x <= 3.1d-106))) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (z / y);
double tmp;
if (x <= -3.6e+91) {
tmp = t_1;
} else if (x <= -7.2e-30) {
tmp = y * (t / y);
} else if ((x <= -4.8e-48) || !(x <= 3.1e-106)) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (z / y) tmp = 0 if x <= -3.6e+91: tmp = t_1 elif x <= -7.2e-30: tmp = y * (t / y) elif (x <= -4.8e-48) or not (x <= 3.1e-106): tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(z / y)) tmp = 0.0 if (x <= -3.6e+91) tmp = t_1; elseif (x <= -7.2e-30) tmp = Float64(y * Float64(t / y)); elseif ((x <= -4.8e-48) || !(x <= 3.1e-106)) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (z / y); tmp = 0.0; if (x <= -3.6e+91) tmp = t_1; elseif (x <= -7.2e-30) tmp = y * (t / y); elseif ((x <= -4.8e-48) || ~((x <= 3.1e-106))) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.6e+91], t$95$1, If[LessEqual[x, -7.2e-30], N[(y * N[(t / y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -4.8e-48], N[Not[LessEqual[x, 3.1e-106]], $MachinePrecision]], t$95$1, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{z}{y}\\
\mathbf{if}\;x \leq -3.6 \cdot 10^{+91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \frac{t}{y}\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-48} \lor \neg \left(x \leq 3.1 \cdot 10^{-106}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if x < -3.6e91 or -7.2000000000000006e-30 < x < -4.8e-48 or 3.09999999999999985e-106 < x Initial program 96.7%
Taylor expanded in y around 0 84.5%
Taylor expanded in y around 0 78.2%
*-commutative78.2%
associate-/l*84.9%
Applied egg-rr84.9%
Taylor expanded in z around inf 47.3%
associate-/l*52.7%
Simplified52.7%
if -3.6e91 < x < -7.2000000000000006e-30Initial program 99.9%
Taylor expanded in y around 0 83.6%
Taylor expanded in y around inf 21.2%
*-commutative21.2%
associate-/l*45.1%
Applied egg-rr45.1%
if -4.8e-48 < x < 3.09999999999999985e-106Initial program 98.0%
Taylor expanded in x around 0 70.8%
Final simplification59.3%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -1e-66) (not (<= (/ x y) 20000000.0))) (* (- z t) (/ x y)) (* t (- 1.0 (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e-66) || !((x / y) <= 20000000.0)) {
tmp = (z - t) * (x / y);
} else {
tmp = t * (1.0 - (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x / y) <= (-1d-66)) .or. (.not. ((x / y) <= 20000000.0d0))) then
tmp = (z - t) * (x / y)
else
tmp = t * (1.0d0 - (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e-66) || !((x / y) <= 20000000.0)) {
tmp = (z - t) * (x / y);
} else {
tmp = t * (1.0 - (x / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -1e-66) or not ((x / y) <= 20000000.0): tmp = (z - t) * (x / y) else: tmp = t * (1.0 - (x / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -1e-66) || !(Float64(x / y) <= 20000000.0)) tmp = Float64(Float64(z - t) * Float64(x / y)); else tmp = Float64(t * Float64(1.0 - Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -1e-66) || ~(((x / y) <= 20000000.0))) tmp = (z - t) * (x / y); else tmp = t * (1.0 - (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -1e-66], N[Not[LessEqual[N[(x / y), $MachinePrecision], 20000000.0]], $MachinePrecision]], N[(N[(z - t), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{-66} \lor \neg \left(\frac{x}{y} \leq 20000000\right):\\
\;\;\;\;\left(z - t\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if (/.f64 x y) < -9.9999999999999998e-67 or 2e7 < (/.f64 x y) Initial program 97.0%
Taylor expanded in y around 0 92.6%
Taylor expanded in y around 0 92.2%
*-commutative92.2%
associate-/l*96.5%
Applied egg-rr96.5%
if -9.9999999999999998e-67 < (/.f64 x y) < 2e7Initial program 98.3%
Taylor expanded in z around 0 77.7%
mul-1-neg77.7%
unsub-neg77.7%
*-rgt-identity77.7%
associate-/l*82.1%
distribute-lft-out--82.1%
Simplified82.1%
Final simplification89.7%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -5e-43) (not (<= (/ x y) 0.0002))) (* (- z t) (/ x y)) (+ t (* x (/ z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5e-43) || !((x / y) <= 0.0002)) {
tmp = (z - t) * (x / y);
} else {
tmp = t + (x * (z / y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x / y) <= (-5d-43)) .or. (.not. ((x / y) <= 0.0002d0))) then
tmp = (z - t) * (x / y)
else
tmp = t + (x * (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5e-43) || !((x / y) <= 0.0002)) {
tmp = (z - t) * (x / y);
} else {
tmp = t + (x * (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -5e-43) or not ((x / y) <= 0.0002): tmp = (z - t) * (x / y) else: tmp = t + (x * (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -5e-43) || !(Float64(x / y) <= 0.0002)) tmp = Float64(Float64(z - t) * Float64(x / y)); else tmp = Float64(t + Float64(x * Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -5e-43) || ~(((x / y) <= 0.0002))) tmp = (z - t) * (x / y); else tmp = t + (x * (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -5e-43], N[Not[LessEqual[N[(x / y), $MachinePrecision], 0.0002]], $MachinePrecision]], N[(N[(z - t), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(t + N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -5 \cdot 10^{-43} \lor \neg \left(\frac{x}{y} \leq 0.0002\right):\\
\;\;\;\;\left(z - t\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t + x \cdot \frac{z}{y}\\
\end{array}
\end{array}
if (/.f64 x y) < -5.00000000000000019e-43 or 2.0000000000000001e-4 < (/.f64 x y) Initial program 96.9%
Taylor expanded in y around 0 92.5%
Taylor expanded in y around 0 91.7%
*-commutative91.7%
associate-/l*96.1%
Applied egg-rr96.1%
if -5.00000000000000019e-43 < (/.f64 x y) < 2.0000000000000001e-4Initial program 98.4%
Taylor expanded in z around inf 95.0%
associate-/l*93.4%
Simplified93.4%
Final simplification94.8%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -5e-43) (not (<= (/ x y) 0.0002))) (* (- z t) (/ x y)) (+ t (/ x (/ y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5e-43) || !((x / y) <= 0.0002)) {
tmp = (z - t) * (x / y);
} else {
tmp = t + (x / (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x / y) <= (-5d-43)) .or. (.not. ((x / y) <= 0.0002d0))) then
tmp = (z - t) * (x / y)
else
tmp = t + (x / (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5e-43) || !((x / y) <= 0.0002)) {
tmp = (z - t) * (x / y);
} else {
tmp = t + (x / (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -5e-43) or not ((x / y) <= 0.0002): tmp = (z - t) * (x / y) else: tmp = t + (x / (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -5e-43) || !(Float64(x / y) <= 0.0002)) tmp = Float64(Float64(z - t) * Float64(x / y)); else tmp = Float64(t + Float64(x / Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -5e-43) || ~(((x / y) <= 0.0002))) tmp = (z - t) * (x / y); else tmp = t + (x / (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -5e-43], N[Not[LessEqual[N[(x / y), $MachinePrecision], 0.0002]], $MachinePrecision]], N[(N[(z - t), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(t + N[(x / N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -5 \cdot 10^{-43} \lor \neg \left(\frac{x}{y} \leq 0.0002\right):\\
\;\;\;\;\left(z - t\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x}{\frac{y}{z}}\\
\end{array}
\end{array}
if (/.f64 x y) < -5.00000000000000019e-43 or 2.0000000000000001e-4 < (/.f64 x y) Initial program 96.9%
Taylor expanded in y around 0 92.5%
Taylor expanded in y around 0 91.7%
*-commutative91.7%
associate-/l*96.1%
Applied egg-rr96.1%
if -5.00000000000000019e-43 < (/.f64 x y) < 2.0000000000000001e-4Initial program 98.4%
Taylor expanded in z around inf 95.0%
associate-/l*93.4%
Simplified93.4%
clear-num93.4%
un-div-inv94.0%
Applied egg-rr94.0%
Final simplification95.1%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -5000.0) (not (<= (/ x y) 0.0002))) (* (- z t) (/ x y)) (+ t (/ z (/ y x)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5000.0) || !((x / y) <= 0.0002)) {
tmp = (z - t) * (x / y);
} else {
tmp = t + (z / (y / x));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x / y) <= (-5000.0d0)) .or. (.not. ((x / y) <= 0.0002d0))) then
tmp = (z - t) * (x / y)
else
tmp = t + (z / (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5000.0) || !((x / y) <= 0.0002)) {
tmp = (z - t) * (x / y);
} else {
tmp = t + (z / (y / x));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -5000.0) or not ((x / y) <= 0.0002): tmp = (z - t) * (x / y) else: tmp = t + (z / (y / x)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -5000.0) || !(Float64(x / y) <= 0.0002)) tmp = Float64(Float64(z - t) * Float64(x / y)); else tmp = Float64(t + Float64(z / Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -5000.0) || ~(((x / y) <= 0.0002))) tmp = (z - t) * (x / y); else tmp = t + (z / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -5000.0], N[Not[LessEqual[N[(x / y), $MachinePrecision], 0.0002]], $MachinePrecision]], N[(N[(z - t), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(t + N[(z / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -5000 \lor \neg \left(\frac{x}{y} \leq 0.0002\right):\\
\;\;\;\;\left(z - t\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{z}{\frac{y}{x}}\\
\end{array}
\end{array}
if (/.f64 x y) < -5e3 or 2.0000000000000001e-4 < (/.f64 x y) Initial program 96.8%
Taylor expanded in y around 0 93.0%
Taylor expanded in y around 0 92.2%
*-commutative92.2%
associate-/l*96.0%
Applied egg-rr96.0%
if -5e3 < (/.f64 x y) < 2.0000000000000001e-4Initial program 98.4%
Taylor expanded in z around inf 94.4%
associate-/l*92.2%
Simplified92.2%
*-commutative92.2%
associate-/r/97.3%
Applied egg-rr97.3%
Final simplification96.7%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -1e-66) (not (<= (/ x y) 0.0002))) (* z (/ x y)) t))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e-66) || !((x / y) <= 0.0002)) {
tmp = z * (x / y);
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x / y) <= (-1d-66)) .or. (.not. ((x / y) <= 0.0002d0))) then
tmp = z * (x / y)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e-66) || !((x / y) <= 0.0002)) {
tmp = z * (x / y);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -1e-66) or not ((x / y) <= 0.0002): tmp = z * (x / y) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -1e-66) || !(Float64(x / y) <= 0.0002)) tmp = Float64(z * Float64(x / y)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -1e-66) || ~(((x / y) <= 0.0002))) tmp = z * (x / y); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -1e-66], N[Not[LessEqual[N[(x / y), $MachinePrecision], 0.0002]], $MachinePrecision]], N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision], t]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{-66} \lor \neg \left(\frac{x}{y} \leq 0.0002\right):\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if (/.f64 x y) < -9.9999999999999998e-67 or 2.0000000000000001e-4 < (/.f64 x y) Initial program 97.0%
Taylor expanded in y around 0 92.7%
Taylor expanded in y around 0 91.9%
*-commutative91.9%
associate-/l*96.2%
Applied egg-rr96.2%
Taylor expanded in z around inf 51.8%
associate-*l/51.8%
Simplified51.8%
if -9.9999999999999998e-67 < (/.f64 x y) < 2.0000000000000001e-4Initial program 98.3%
Taylor expanded in x around 0 80.8%
Final simplification65.4%
(FPCore (x y z t) :precision binary64 (if (<= (/ x y) -1e-66) (/ (* z x) y) (if (<= (/ x y) 0.0002) t (* z (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -1e-66) {
tmp = (z * x) / y;
} else if ((x / y) <= 0.0002) {
tmp = t;
} else {
tmp = z * (x / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x / y) <= (-1d-66)) then
tmp = (z * x) / y
else if ((x / y) <= 0.0002d0) then
tmp = t
else
tmp = z * (x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -1e-66) {
tmp = (z * x) / y;
} else if ((x / y) <= 0.0002) {
tmp = t;
} else {
tmp = z * (x / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -1e-66: tmp = (z * x) / y elif (x / y) <= 0.0002: tmp = t else: tmp = z * (x / y) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -1e-66) tmp = Float64(Float64(z * x) / y); elseif (Float64(x / y) <= 0.0002) tmp = t; else tmp = Float64(z * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x / y) <= -1e-66) tmp = (z * x) / y; elseif ((x / y) <= 0.0002) tmp = t; else tmp = z * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -1e-66], N[(N[(z * x), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 0.0002], t, N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{-66}:\\
\;\;\;\;\frac{z \cdot x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 0.0002:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 x y) < -9.9999999999999998e-67Initial program 96.1%
Taylor expanded in y around 0 91.0%
Taylor expanded in t around 0 54.3%
if -9.9999999999999998e-67 < (/.f64 x y) < 2.0000000000000001e-4Initial program 98.3%
Taylor expanded in x around 0 80.8%
if 2.0000000000000001e-4 < (/.f64 x y) Initial program 98.2%
Taylor expanded in y around 0 95.0%
Taylor expanded in y around 0 94.3%
*-commutative94.3%
associate-/l*97.4%
Applied egg-rr97.4%
Taylor expanded in z around inf 48.4%
associate-*l/49.8%
Simplified49.8%
Final simplification65.8%
(FPCore (x y z t) :precision binary64 (if (or (<= x -7.8e-53) (not (<= x 3.2e-106))) (* x (/ z y)) t))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -7.8e-53) || !(x <= 3.2e-106)) {
tmp = x * (z / y);
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-7.8d-53)) .or. (.not. (x <= 3.2d-106))) then
tmp = x * (z / y)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -7.8e-53) || !(x <= 3.2e-106)) {
tmp = x * (z / y);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -7.8e-53) or not (x <= 3.2e-106): tmp = x * (z / y) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -7.8e-53) || !(x <= 3.2e-106)) tmp = Float64(x * Float64(z / y)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -7.8e-53) || ~((x <= 3.2e-106))) tmp = x * (z / y); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -7.8e-53], N[Not[LessEqual[x, 3.2e-106]], $MachinePrecision]], N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision], t]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.8 \cdot 10^{-53} \lor \neg \left(x \leq 3.2 \cdot 10^{-106}\right):\\
\;\;\;\;x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if x < -7.8000000000000004e-53 or 3.2e-106 < x Initial program 97.3%
Taylor expanded in y around 0 84.3%
Taylor expanded in y around 0 75.7%
*-commutative75.7%
associate-/l*81.1%
Applied egg-rr81.1%
Taylor expanded in z around inf 44.0%
associate-/l*48.3%
Simplified48.3%
if -7.8000000000000004e-53 < x < 3.2e-106Initial program 98.0%
Taylor expanded in x around 0 70.8%
Final simplification57.6%
(FPCore (x y z t) :precision binary64 (+ t (* (- z t) (/ x y))))
double code(double x, double y, double z, double t) {
return t + ((z - t) * (x / y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = t + ((z - t) * (x / y))
end function
public static double code(double x, double y, double z, double t) {
return t + ((z - t) * (x / y));
}
def code(x, y, z, t): return t + ((z - t) * (x / y))
function code(x, y, z, t) return Float64(t + Float64(Float64(z - t) * Float64(x / y))) end
function tmp = code(x, y, z, t) tmp = t + ((z - t) * (x / y)); end
code[x_, y_, z_, t_] := N[(t + N[(N[(z - t), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t + \left(z - t\right) \cdot \frac{x}{y}
\end{array}
Initial program 97.6%
Final simplification97.6%
(FPCore (x y z t) :precision binary64 t)
double code(double x, double y, double z, double t) {
return t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = t
end function
public static double code(double x, double y, double z, double t) {
return t;
}
def code(x, y, z, t): return t
function code(x, y, z, t) return t end
function tmp = code(x, y, z, t) tmp = t; end
code[x_, y_, z_, t_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 97.6%
Taylor expanded in x around 0 39.5%
Final simplification39.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (* (/ x y) (- z t)) t)))
(if (< z 2.759456554562692e-282)
t_1
(if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = ((x / y) * (z - t)) + t;
double tmp;
if (z < 2.759456554562692e-282) {
tmp = t_1;
} else if (z < 2.326994450874436e-110) {
tmp = (x * ((z - t) / y)) + t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = ((x / y) * (z - t)) + t
if (z < 2.759456554562692d-282) then
tmp = t_1
else if (z < 2.326994450874436d-110) then
tmp = (x * ((z - t) / y)) + t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = ((x / y) * (z - t)) + t;
double tmp;
if (z < 2.759456554562692e-282) {
tmp = t_1;
} else if (z < 2.326994450874436e-110) {
tmp = (x * ((z - t) / y)) + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((x / y) * (z - t)) + t tmp = 0 if z < 2.759456554562692e-282: tmp = t_1 elif z < 2.326994450874436e-110: tmp = (x * ((z - t) / y)) + t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(x / y) * Float64(z - t)) + t) tmp = 0.0 if (z < 2.759456554562692e-282) tmp = t_1; elseif (z < 2.326994450874436e-110) tmp = Float64(Float64(x * Float64(Float64(z - t) / y)) + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = ((x / y) * (z - t)) + t; tmp = 0.0; if (z < 2.759456554562692e-282) tmp = t_1; elseif (z < 2.326994450874436e-110) tmp = (x * ((z - t) / y)) + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]}, If[Less[z, 2.759456554562692e-282], t$95$1, If[Less[z, 2.326994450874436e-110], N[(N[(x * N[(N[(z - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} \cdot \left(z - t\right) + t\\
\mathbf{if}\;z < 2.759456554562692 \cdot 10^{-282}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 2.326994450874436 \cdot 10^{-110}:\\
\;\;\;\;x \cdot \frac{z - t}{y} + t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024095
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:alt
(if (< z 2.759456554562692e-282) (+ (* (/ x y) (- z t)) t) (if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) (+ (* (/ x y) (- z t)) t)))
(+ (* (/ x y) (- z t)) t))