
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (cbrt (- a t))) (t_2 (* y (/ z t))))
(if (<= t -2.9e+77)
(+ (fma -1.0 (fma a (/ y t) (* (/ a t) (* y (/ (- a z) t)))) x) t_2)
(if (<= t 5.5e+93)
(+ (+ y x) (* (/ y t_1) (/ (- t z) (pow t_1 2.0))))
(+ x (- t_2 (* a (/ y t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = cbrt((a - t));
double t_2 = y * (z / t);
double tmp;
if (t <= -2.9e+77) {
tmp = fma(-1.0, fma(a, (y / t), ((a / t) * (y * ((a - z) / t)))), x) + t_2;
} else if (t <= 5.5e+93) {
tmp = (y + x) + ((y / t_1) * ((t - z) / pow(t_1, 2.0)));
} else {
tmp = x + (t_2 - (a * (y / t)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = cbrt(Float64(a - t)) t_2 = Float64(y * Float64(z / t)) tmp = 0.0 if (t <= -2.9e+77) tmp = Float64(fma(-1.0, fma(a, Float64(y / t), Float64(Float64(a / t) * Float64(y * Float64(Float64(a - z) / t)))), x) + t_2); elseif (t <= 5.5e+93) tmp = Float64(Float64(y + x) + Float64(Float64(y / t_1) * Float64(Float64(t - z) / (t_1 ^ 2.0)))); else tmp = Float64(x + Float64(t_2 - Float64(a * Float64(y / t)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[Power[N[(a - t), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+77], N[(N[(-1.0 * N[(a * N[(y / t), $MachinePrecision] + N[(N[(a / t), $MachinePrecision] * N[(y * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[t, 5.5e+93], N[(N[(y + x), $MachinePrecision] + N[(N[(y / t$95$1), $MachinePrecision] * N[(N[(t - z), $MachinePrecision] / N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$2 - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt[3]{a - t}\\
t_2 := y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+77}:\\
\;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + t\_2\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+93}:\\
\;\;\;\;\left(y + x\right) + \frac{y}{t\_1} \cdot \frac{t - z}{{t\_1}^{2}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t\_2 - a \cdot \frac{y}{t}\right)\\
\end{array}
\end{array}
if t < -2.9000000000000002e77Initial program 47.2%
add-cube-cbrt47.4%
times-frac62.2%
pow262.2%
Applied egg-rr62.2%
clear-num62.2%
frac-times62.2%
*-un-lft-identity62.2%
Applied egg-rr62.2%
associate-*l/62.2%
unpow262.2%
rem-3cbrt-lft61.9%
Simplified61.9%
Taylor expanded in t around inf 63.9%
Simplified87.8%
if -2.9000000000000002e77 < t < 5.5000000000000003e93Initial program 93.3%
add-cube-cbrt93.0%
times-frac94.6%
pow294.6%
Applied egg-rr94.6%
if 5.5000000000000003e93 < t Initial program 63.1%
sub-neg63.1%
+-commutative63.1%
distribute-frac-neg63.1%
distribute-rgt-neg-out63.1%
associate-/l*67.2%
fma-define67.5%
distribute-frac-neg67.5%
distribute-neg-frac267.5%
sub-neg67.5%
distribute-neg-in67.5%
remove-double-neg67.5%
+-commutative67.5%
sub-neg67.5%
Simplified67.5%
Taylor expanded in t around inf 80.3%
associate--l+80.3%
associate-+r+86.8%
distribute-rgt1-in86.8%
metadata-eval86.8%
mul0-lft86.8%
associate-/l*88.6%
associate-/l*98.1%
Simplified98.1%
Final simplification94.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z t))))
(if (<= t -6.9e+77)
(+ (fma -1.0 (fma a (/ y t) (* (/ a t) (* y (/ (- a z) t)))) x) t_1)
(if (<= t 9e+89)
(- (+ y x) (/ y (/ (- a t) (- z t))))
(+ x (- t_1 (* a (/ y t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / t);
double tmp;
if (t <= -6.9e+77) {
tmp = fma(-1.0, fma(a, (y / t), ((a / t) * (y * ((a - z) / t)))), x) + t_1;
} else if (t <= 9e+89) {
tmp = (y + x) - (y / ((a - t) / (z - t)));
} else {
tmp = x + (t_1 - (a * (y / t)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / t)) tmp = 0.0 if (t <= -6.9e+77) tmp = Float64(fma(-1.0, fma(a, Float64(y / t), Float64(Float64(a / t) * Float64(y * Float64(Float64(a - z) / t)))), x) + t_1); elseif (t <= 9e+89) tmp = Float64(Float64(y + x) - Float64(y / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(x + Float64(t_1 - Float64(a * Float64(y / t)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.9e+77], N[(N[(-1.0 * N[(a * N[(y / t), $MachinePrecision] + N[(N[(a / t), $MachinePrecision] * N[(y * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[t, 9e+89], N[(N[(y + x), $MachinePrecision] - N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$1 - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -6.9 \cdot 10^{+77}:\\
\;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + t\_1\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+89}:\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t\_1 - a \cdot \frac{y}{t}\right)\\
\end{array}
\end{array}
if t < -6.89999999999999959e77Initial program 47.2%
add-cube-cbrt47.4%
times-frac62.2%
pow262.2%
Applied egg-rr62.2%
clear-num62.2%
frac-times62.2%
*-un-lft-identity62.2%
Applied egg-rr62.2%
associate-*l/62.2%
unpow262.2%
rem-3cbrt-lft61.9%
Simplified61.9%
Taylor expanded in t around inf 63.9%
Simplified87.8%
if -6.89999999999999959e77 < t < 9e89Initial program 93.3%
add-cube-cbrt93.0%
times-frac94.6%
pow294.6%
Applied egg-rr94.6%
clear-num94.6%
frac-times93.6%
*-un-lft-identity93.6%
Applied egg-rr93.6%
associate-*l/93.6%
unpow293.6%
rem-3cbrt-lft93.9%
Simplified93.9%
if 9e89 < t Initial program 63.1%
sub-neg63.1%
+-commutative63.1%
distribute-frac-neg63.1%
distribute-rgt-neg-out63.1%
associate-/l*67.2%
fma-define67.5%
distribute-frac-neg67.5%
distribute-neg-frac267.5%
sub-neg67.5%
distribute-neg-in67.5%
remove-double-neg67.5%
+-commutative67.5%
sub-neg67.5%
Simplified67.5%
Taylor expanded in t around inf 80.3%
associate--l+80.3%
associate-+r+86.8%
distribute-rgt1-in86.8%
metadata-eval86.8%
mul0-lft86.8%
associate-/l*88.6%
associate-/l*98.1%
Simplified98.1%
Final simplification93.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z (- t a)))))
(if (<= z -3.4e+118)
t_1
(if (<= z -850000000.0)
x
(if (or (<= z -3.55)
(not
(or (<= z 3.2e+183)
(and (not (<= z 2e+231)) (<= z 1.3e+252)))))
t_1
(+ y x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / (t - a));
double tmp;
if (z <= -3.4e+118) {
tmp = t_1;
} else if (z <= -850000000.0) {
tmp = x;
} else if ((z <= -3.55) || !((z <= 3.2e+183) || (!(z <= 2e+231) && (z <= 1.3e+252)))) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = y * (z / (t - a))
if (z <= (-3.4d+118)) then
tmp = t_1
else if (z <= (-850000000.0d0)) then
tmp = x
else if ((z <= (-3.55d0)) .or. (.not. (z <= 3.2d+183) .or. (.not. (z <= 2d+231)) .and. (z <= 1.3d+252))) then
tmp = t_1
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 t_1 = y * (z / (t - a));
double tmp;
if (z <= -3.4e+118) {
tmp = t_1;
} else if (z <= -850000000.0) {
tmp = x;
} else if ((z <= -3.55) || !((z <= 3.2e+183) || (!(z <= 2e+231) && (z <= 1.3e+252)))) {
tmp = t_1;
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / (t - a)) tmp = 0 if z <= -3.4e+118: tmp = t_1 elif z <= -850000000.0: tmp = x elif (z <= -3.55) or not ((z <= 3.2e+183) or (not (z <= 2e+231) and (z <= 1.3e+252))): tmp = t_1 else: tmp = y + x return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / Float64(t - a))) tmp = 0.0 if (z <= -3.4e+118) tmp = t_1; elseif (z <= -850000000.0) tmp = x; elseif ((z <= -3.55) || !((z <= 3.2e+183) || (!(z <= 2e+231) && (z <= 1.3e+252)))) tmp = t_1; else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / (t - a)); tmp = 0.0; if (z <= -3.4e+118) tmp = t_1; elseif (z <= -850000000.0) tmp = x; elseif ((z <= -3.55) || ~(((z <= 3.2e+183) || (~((z <= 2e+231)) && (z <= 1.3e+252))))) tmp = t_1; else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.4e+118], t$95$1, If[LessEqual[z, -850000000.0], x, If[Or[LessEqual[z, -3.55], N[Not[Or[LessEqual[z, 3.2e+183], And[N[Not[LessEqual[z, 2e+231]], $MachinePrecision], LessEqual[z, 1.3e+252]]]], $MachinePrecision]], t$95$1, N[(y + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{t - a}\\
\mathbf{if}\;z \leq -3.4 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -850000000:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -3.55 \lor \neg \left(z \leq 3.2 \cdot 10^{+183} \lor \neg \left(z \leq 2 \cdot 10^{+231}\right) \land z \leq 1.3 \cdot 10^{+252}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if z < -3.39999999999999986e118 or -8.5e8 < z < -3.5499999999999998 or 3.2000000000000002e183 < z < 2.0000000000000001e231 or 1.30000000000000009e252 < z Initial program 82.8%
sub-neg82.8%
+-commutative82.8%
distribute-frac-neg82.8%
distribute-rgt-neg-out82.8%
associate-/l*88.7%
fma-define88.9%
distribute-frac-neg88.9%
distribute-neg-frac288.9%
sub-neg88.9%
distribute-neg-in88.9%
remove-double-neg88.9%
+-commutative88.9%
sub-neg88.9%
Simplified88.9%
Taylor expanded in z around inf 70.6%
associate-/l*76.1%
Simplified76.1%
if -3.39999999999999986e118 < z < -8.5e8Initial program 76.9%
Taylor expanded in x around inf 60.3%
if -3.5499999999999998 < z < 3.2000000000000002e183 or 2.0000000000000001e231 < z < 1.30000000000000009e252Initial program 77.7%
Taylor expanded in a around inf 69.2%
+-commutative69.2%
Simplified69.2%
Final simplification70.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -6.5e+130)
(+ y x)
(if (<= a -2.65e+70)
(- y (* y (/ z a)))
(if (or (<= a -8e-14) (not (<= a 2.2e+53)))
(+ y x)
(- x (/ (* y (- a z)) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.5e+130) {
tmp = y + x;
} else if (a <= -2.65e+70) {
tmp = y - (y * (z / a));
} else if ((a <= -8e-14) || !(a <= 2.2e+53)) {
tmp = y + x;
} 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 <= (-6.5d+130)) then
tmp = y + x
else if (a <= (-2.65d+70)) then
tmp = y - (y * (z / a))
else if ((a <= (-8d-14)) .or. (.not. (a <= 2.2d+53))) then
tmp = y + x
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 <= -6.5e+130) {
tmp = y + x;
} else if (a <= -2.65e+70) {
tmp = y - (y * (z / a));
} else if ((a <= -8e-14) || !(a <= 2.2e+53)) {
tmp = y + x;
} else {
tmp = x - ((y * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.5e+130: tmp = y + x elif a <= -2.65e+70: tmp = y - (y * (z / a)) elif (a <= -8e-14) or not (a <= 2.2e+53): tmp = y + x else: tmp = x - ((y * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.5e+130) tmp = Float64(y + x); elseif (a <= -2.65e+70) tmp = Float64(y - Float64(y * Float64(z / a))); elseif ((a <= -8e-14) || !(a <= 2.2e+53)) tmp = Float64(y + x); else tmp = Float64(x - Float64(Float64(y * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.5e+130) tmp = y + x; elseif (a <= -2.65e+70) tmp = y - (y * (z / a)); elseif ((a <= -8e-14) || ~((a <= 2.2e+53))) tmp = y + x; else tmp = x - ((y * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.5e+130], N[(y + x), $MachinePrecision], If[LessEqual[a, -2.65e+70], N[(y - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -8e-14], N[Not[LessEqual[a, 2.2e+53]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x - N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -2.65 \cdot 10^{+70}:\\
\;\;\;\;y - y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 2.2 \cdot 10^{+53}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if a < -6.5e130 or -2.65e70 < a < -7.99999999999999999e-14 or 2.19999999999999999e53 < a Initial program 82.0%
Taylor expanded in a around inf 78.2%
+-commutative78.2%
Simplified78.2%
if -6.5e130 < a < -2.65e70Initial program 75.4%
add-cube-cbrt75.2%
times-frac81.8%
pow281.8%
Applied egg-rr81.8%
clear-num81.8%
frac-times81.0%
*-un-lft-identity81.0%
Applied egg-rr81.0%
associate-*l/81.8%
unpow281.8%
rem-3cbrt-lft81.5%
Simplified81.5%
Taylor expanded in t around 0 82.3%
Taylor expanded in x around 0 58.4%
associate-*r/64.3%
Simplified64.3%
if -7.99999999999999999e-14 < a < 2.19999999999999999e53Initial program 77.4%
Taylor expanded in t around inf 79.9%
associate--l+79.9%
distribute-lft-out--79.9%
div-sub80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
distribute-lft-out--80.0%
Simplified80.0%
Final simplification78.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -6.5e+130)
(+ y x)
(if (<= a -2.7e+70)
(- y (* y (/ z a)))
(if (or (<= a -8e-14) (not (<= a 5.5e+52)))
(+ y x)
(+ x (/ (* y z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.5e+130) {
tmp = y + x;
} else if (a <= -2.7e+70) {
tmp = y - (y * (z / a));
} else if ((a <= -8e-14) || !(a <= 5.5e+52)) {
tmp = y + x;
} else {
tmp = x + ((y * 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 <= (-6.5d+130)) then
tmp = y + x
else if (a <= (-2.7d+70)) then
tmp = y - (y * (z / a))
else if ((a <= (-8d-14)) .or. (.not. (a <= 5.5d+52))) then
tmp = y + x
else
tmp = x + ((y * 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 <= -6.5e+130) {
tmp = y + x;
} else if (a <= -2.7e+70) {
tmp = y - (y * (z / a));
} else if ((a <= -8e-14) || !(a <= 5.5e+52)) {
tmp = y + x;
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.5e+130: tmp = y + x elif a <= -2.7e+70: tmp = y - (y * (z / a)) elif (a <= -8e-14) or not (a <= 5.5e+52): tmp = y + x else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.5e+130) tmp = Float64(y + x); elseif (a <= -2.7e+70) tmp = Float64(y - Float64(y * Float64(z / a))); elseif ((a <= -8e-14) || !(a <= 5.5e+52)) tmp = Float64(y + x); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.5e+130) tmp = y + x; elseif (a <= -2.7e+70) tmp = y - (y * (z / a)); elseif ((a <= -8e-14) || ~((a <= 5.5e+52))) tmp = y + x; else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.5e+130], N[(y + x), $MachinePrecision], If[LessEqual[a, -2.7e+70], N[(y - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -8e-14], N[Not[LessEqual[a, 5.5e+52]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{+70}:\\
\;\;\;\;y - y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 5.5 \cdot 10^{+52}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if a < -6.5e130 or -2.7e70 < a < -7.99999999999999999e-14 or 5.49999999999999996e52 < a Initial program 82.0%
Taylor expanded in a around inf 78.2%
+-commutative78.2%
Simplified78.2%
if -6.5e130 < a < -2.7e70Initial program 75.4%
add-cube-cbrt75.2%
times-frac81.8%
pow281.8%
Applied egg-rr81.8%
clear-num81.8%
frac-times81.0%
*-un-lft-identity81.0%
Applied egg-rr81.0%
associate-*l/81.8%
unpow281.8%
rem-3cbrt-lft81.5%
Simplified81.5%
Taylor expanded in t around 0 82.3%
Taylor expanded in x around 0 58.4%
associate-*r/64.3%
Simplified64.3%
if -7.99999999999999999e-14 < a < 5.49999999999999996e52Initial program 77.4%
sub-neg77.4%
+-commutative77.4%
distribute-frac-neg77.4%
distribute-rgt-neg-out77.4%
associate-/l*78.2%
fma-define78.4%
distribute-frac-neg78.4%
distribute-neg-frac278.4%
sub-neg78.4%
distribute-neg-in78.4%
remove-double-neg78.4%
+-commutative78.4%
sub-neg78.4%
Simplified78.4%
Taylor expanded in t around inf 72.7%
associate--l+72.7%
associate-+r+79.9%
distribute-rgt1-in79.9%
metadata-eval79.9%
mul0-lft79.9%
associate-/l*78.5%
associate-/l*77.2%
Simplified77.2%
Taylor expanded in a around 0 76.0%
Final simplification76.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.9e+217)
(/ (* y z) t)
(if (or (<= z 3.5e+185) (and (not (<= z 6e+229)) (<= z 7.8e+251)))
(+ y x)
(* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+217) {
tmp = (y * z) / t;
} else if ((z <= 3.5e+185) || (!(z <= 6e+229) && (z <= 7.8e+251))) {
tmp = y + x;
} else {
tmp = y * (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 <= (-1.9d+217)) then
tmp = (y * z) / t
else if ((z <= 3.5d+185) .or. (.not. (z <= 6d+229)) .and. (z <= 7.8d+251)) then
tmp = y + x
else
tmp = y * (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 <= -1.9e+217) {
tmp = (y * z) / t;
} else if ((z <= 3.5e+185) || (!(z <= 6e+229) && (z <= 7.8e+251))) {
tmp = y + x;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.9e+217: tmp = (y * z) / t elif (z <= 3.5e+185) or (not (z <= 6e+229) and (z <= 7.8e+251)): tmp = y + x else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+217) tmp = Float64(Float64(y * z) / t); elseif ((z <= 3.5e+185) || (!(z <= 6e+229) && (z <= 7.8e+251))) tmp = Float64(y + x); else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.9e+217) tmp = (y * z) / t; elseif ((z <= 3.5e+185) || (~((z <= 6e+229)) && (z <= 7.8e+251))) tmp = y + x; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+217], N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision], If[Or[LessEqual[z, 3.5e+185], And[N[Not[LessEqual[z, 6e+229]], $MachinePrecision], LessEqual[z, 7.8e+251]]], N[(y + x), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+217}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+185} \lor \neg \left(z \leq 6 \cdot 10^{+229}\right) \land z \leq 7.8 \cdot 10^{+251}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -1.90000000000000001e217Initial program 95.0%
sub-neg95.0%
+-commutative95.0%
distribute-frac-neg95.0%
distribute-rgt-neg-out95.0%
associate-/l*90.3%
fma-define90.3%
distribute-frac-neg90.3%
distribute-neg-frac290.3%
sub-neg90.3%
distribute-neg-in90.3%
remove-double-neg90.3%
+-commutative90.3%
sub-neg90.3%
Simplified90.3%
Taylor expanded in z around inf 85.0%
Taylor expanded in t around inf 69.4%
if -1.90000000000000001e217 < z < 3.50000000000000023e185 or 5.99999999999999995e229 < z < 7.79999999999999951e251Initial program 77.3%
Taylor expanded in a around inf 63.7%
+-commutative63.7%
Simplified63.7%
if 3.50000000000000023e185 < z < 5.99999999999999995e229 or 7.79999999999999951e251 < z Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
distribute-frac-neg80.8%
distribute-rgt-neg-out80.8%
associate-/l*89.6%
fma-define89.6%
distribute-frac-neg89.6%
distribute-neg-frac289.6%
sub-neg89.6%
distribute-neg-in89.6%
remove-double-neg89.6%
+-commutative89.6%
sub-neg89.6%
Simplified89.6%
Taylor expanded in z around inf 77.3%
Taylor expanded in t around inf 49.7%
associate-*r/53.0%
Simplified53.0%
Final simplification63.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.1e+78) (not (<= t 2.5e+94))) (+ x (- (* y (/ z t)) (* a (/ y t)))) (- (+ y x) (/ y (/ (- a t) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.1e+78) || !(t <= 2.5e+94)) {
tmp = x + ((y * (z / t)) - (a * (y / t)));
} else {
tmp = (y + x) - (y / ((a - t) / (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 ((t <= (-1.1d+78)) .or. (.not. (t <= 2.5d+94))) then
tmp = x + ((y * (z / t)) - (a * (y / t)))
else
tmp = (y + x) - (y / ((a - t) / (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 ((t <= -1.1e+78) || !(t <= 2.5e+94)) {
tmp = x + ((y * (z / t)) - (a * (y / t)));
} else {
tmp = (y + x) - (y / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.1e+78) or not (t <= 2.5e+94): tmp = x + ((y * (z / t)) - (a * (y / t))) else: tmp = (y + x) - (y / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.1e+78) || !(t <= 2.5e+94)) tmp = Float64(x + Float64(Float64(y * Float64(z / t)) - Float64(a * Float64(y / t)))); else tmp = Float64(Float64(y + x) - Float64(y / Float64(Float64(a - t) / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.1e+78) || ~((t <= 2.5e+94))) tmp = x + ((y * (z / t)) - (a * (y / t))); else tmp = (y + x) - (y / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.1e+78], N[Not[LessEqual[t, 2.5e+94]], $MachinePrecision]], N[(x + N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y + x), $MachinePrecision] - N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+78} \lor \neg \left(t \leq 2.5 \cdot 10^{+94}\right):\\
\;\;\;\;x + \left(y \cdot \frac{z}{t} - a \cdot \frac{y}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if t < -1.10000000000000007e78 or 2.50000000000000005e94 < t Initial program 55.4%
sub-neg55.4%
+-commutative55.4%
distribute-frac-neg55.4%
distribute-rgt-neg-out55.4%
associate-/l*63.7%
fma-define63.9%
distribute-frac-neg63.9%
distribute-neg-frac263.9%
sub-neg63.9%
distribute-neg-in63.9%
remove-double-neg63.9%
+-commutative63.9%
sub-neg63.9%
Simplified63.9%
Taylor expanded in t around inf 73.0%
associate--l+73.0%
associate-+r+80.3%
distribute-rgt1-in80.3%
metadata-eval80.3%
mul0-lft80.3%
associate-/l*84.8%
associate-/l*92.9%
Simplified92.9%
if -1.10000000000000007e78 < t < 2.50000000000000005e94Initial program 93.3%
add-cube-cbrt93.0%
times-frac94.6%
pow294.6%
Applied egg-rr94.6%
clear-num94.6%
frac-times93.6%
*-un-lft-identity93.6%
Applied egg-rr93.6%
associate-*l/93.6%
unpow293.6%
rem-3cbrt-lft93.9%
Simplified93.9%
Final simplification93.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -9.2e+77)
(* y (- (+ (/ z t) (/ x y)) (/ a t)))
(if (<= t 3.2e+129)
(- (+ y x) (* (- z t) (/ y (- a t))))
(- x (* a (/ y t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.2e+77) {
tmp = y * (((z / t) + (x / y)) - (a / t));
} else if (t <= 3.2e+129) {
tmp = (y + x) - ((z - t) * (y / (a - t)));
} else {
tmp = x - (a * (y / 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 (t <= (-9.2d+77)) then
tmp = y * (((z / t) + (x / y)) - (a / t))
else if (t <= 3.2d+129) then
tmp = (y + x) - ((z - t) * (y / (a - t)))
else
tmp = x - (a * (y / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.2e+77) {
tmp = y * (((z / t) + (x / y)) - (a / t));
} else if (t <= 3.2e+129) {
tmp = (y + x) - ((z - t) * (y / (a - t)));
} else {
tmp = x - (a * (y / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.2e+77: tmp = y * (((z / t) + (x / y)) - (a / t)) elif t <= 3.2e+129: tmp = (y + x) - ((z - t) * (y / (a - t))) else: tmp = x - (a * (y / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.2e+77) tmp = Float64(y * Float64(Float64(Float64(z / t) + Float64(x / y)) - Float64(a / t))); elseif (t <= 3.2e+129) tmp = Float64(Float64(y + x) - Float64(Float64(z - t) * Float64(y / Float64(a - t)))); else tmp = Float64(x - Float64(a * Float64(y / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.2e+77) tmp = y * (((z / t) + (x / y)) - (a / t)); elseif (t <= 3.2e+129) tmp = (y + x) - ((z - t) * (y / (a - t))); else tmp = x - (a * (y / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.2e+77], N[(y * N[(N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision] - N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+129], N[(N[(y + x), $MachinePrecision] - N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.2 \cdot 10^{+77}:\\
\;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+129}:\\
\;\;\;\;\left(y + x\right) - \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\
\end{array}
\end{array}
if t < -9.19999999999999979e77Initial program 47.2%
Taylor expanded in t around inf 73.4%
associate--l+73.4%
distribute-lft-out--73.4%
div-sub73.4%
mul-1-neg73.4%
unsub-neg73.4%
*-commutative73.4%
distribute-lft-out--73.4%
Simplified73.4%
Taylor expanded in y around inf 79.8%
if -9.19999999999999979e77 < t < 3.2000000000000002e129Initial program 90.9%
associate-/l*92.0%
*-commutative92.0%
Applied egg-rr92.0%
if 3.2000000000000002e129 < t Initial program 64.2%
Taylor expanded in t around inf 89.9%
associate--l+89.9%
distribute-lft-out--89.9%
div-sub89.9%
mul-1-neg89.9%
unsub-neg89.9%
*-commutative89.9%
distribute-lft-out--89.9%
Simplified89.9%
Taylor expanded in a around inf 84.1%
associate-/l*94.1%
Simplified94.1%
Final simplification90.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.4e+223)
(* y (- (+ (/ z t) (/ x y)) (/ a t)))
(if (<= t 4.2e+129)
(- (+ y x) (/ y (/ (- a t) (- z t))))
(- x (* a (/ y t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.4e+223) {
tmp = y * (((z / t) + (x / y)) - (a / t));
} else if (t <= 4.2e+129) {
tmp = (y + x) - (y / ((a - t) / (z - t)));
} else {
tmp = x - (a * (y / 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 (t <= (-4.4d+223)) then
tmp = y * (((z / t) + (x / y)) - (a / t))
else if (t <= 4.2d+129) then
tmp = (y + x) - (y / ((a - t) / (z - t)))
else
tmp = x - (a * (y / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.4e+223) {
tmp = y * (((z / t) + (x / y)) - (a / t));
} else if (t <= 4.2e+129) {
tmp = (y + x) - (y / ((a - t) / (z - t)));
} else {
tmp = x - (a * (y / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.4e+223: tmp = y * (((z / t) + (x / y)) - (a / t)) elif t <= 4.2e+129: tmp = (y + x) - (y / ((a - t) / (z - t))) else: tmp = x - (a * (y / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.4e+223) tmp = Float64(y * Float64(Float64(Float64(z / t) + Float64(x / y)) - Float64(a / t))); elseif (t <= 4.2e+129) tmp = Float64(Float64(y + x) - Float64(y / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(x - Float64(a * Float64(y / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.4e+223) tmp = y * (((z / t) + (x / y)) - (a / t)); elseif (t <= 4.2e+129) tmp = (y + x) - (y / ((a - t) / (z - t))); else tmp = x - (a * (y / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.4e+223], N[(y * N[(N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision] - N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e+129], N[(N[(y + x), $MachinePrecision] - N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.4 \cdot 10^{+223}:\\
\;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+129}:\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\
\end{array}
\end{array}
if t < -4.3999999999999999e223Initial program 29.6%
Taylor expanded in t around inf 70.9%
associate--l+70.9%
distribute-lft-out--70.9%
div-sub70.9%
mul-1-neg70.9%
unsub-neg70.9%
*-commutative70.9%
distribute-lft-out--70.9%
Simplified70.9%
Taylor expanded in y around inf 84.1%
if -4.3999999999999999e223 < t < 4.19999999999999993e129Initial program 87.6%
add-cube-cbrt87.4%
times-frac90.8%
pow290.8%
Applied egg-rr90.8%
clear-num90.7%
frac-times89.9%
*-un-lft-identity89.9%
Applied egg-rr89.9%
associate-*l/89.9%
unpow289.9%
rem-3cbrt-lft90.1%
Simplified90.1%
if 4.19999999999999993e129 < t Initial program 64.2%
Taylor expanded in t around inf 89.9%
associate--l+89.9%
distribute-lft-out--89.9%
div-sub89.9%
mul-1-neg89.9%
unsub-neg89.9%
*-commutative89.9%
distribute-lft-out--89.9%
Simplified89.9%
Taylor expanded in a around inf 84.1%
associate-/l*94.1%
Simplified94.1%
Final simplification90.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -1e+78) (+ x (* y (/ z t))) (if (<= t 5.1e+125) (+ (+ y x) (* y (/ z (- t a)))) (- x (* a (/ y t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1e+78) {
tmp = x + (y * (z / t));
} else if (t <= 5.1e+125) {
tmp = (y + x) + (y * (z / (t - a)));
} else {
tmp = x - (a * (y / 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 (t <= (-1d+78)) then
tmp = x + (y * (z / t))
else if (t <= 5.1d+125) then
tmp = (y + x) + (y * (z / (t - a)))
else
tmp = x - (a * (y / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1e+78) {
tmp = x + (y * (z / t));
} else if (t <= 5.1e+125) {
tmp = (y + x) + (y * (z / (t - a)));
} else {
tmp = x - (a * (y / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1e+78: tmp = x + (y * (z / t)) elif t <= 5.1e+125: tmp = (y + x) + (y * (z / (t - a))) else: tmp = x - (a * (y / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1e+78) tmp = Float64(x + Float64(y * Float64(z / t))); elseif (t <= 5.1e+125) tmp = Float64(Float64(y + x) + Float64(y * Float64(z / Float64(t - a)))); else tmp = Float64(x - Float64(a * Float64(y / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1e+78) tmp = x + (y * (z / t)); elseif (t <= 5.1e+125) tmp = (y + x) + (y * (z / (t - a))); else tmp = x - (a * (y / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1e+78], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e+125], N[(N[(y + x), $MachinePrecision] + N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+78}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{+125}:\\
\;\;\;\;\left(y + x\right) + y \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\
\end{array}
\end{array}
if t < -1.00000000000000001e78Initial program 47.2%
Taylor expanded in t around inf 73.4%
associate--l+73.4%
distribute-lft-out--73.4%
div-sub73.4%
mul-1-neg73.4%
unsub-neg73.4%
*-commutative73.4%
distribute-lft-out--73.4%
Simplified73.4%
Taylor expanded in a around 0 65.1%
mul-1-neg65.1%
distribute-frac-neg265.1%
associate-/l*75.3%
Simplified75.3%
if -1.00000000000000001e78 < t < 5.0999999999999998e125Initial program 91.4%
Taylor expanded in z around inf 91.2%
associate-/l*91.8%
Simplified91.8%
if 5.0999999999999998e125 < t Initial program 63.6%
Taylor expanded in t around inf 90.4%
associate--l+90.4%
distribute-lft-out--90.4%
div-sub90.4%
mul-1-neg90.4%
unsub-neg90.4%
*-commutative90.4%
distribute-lft-out--90.4%
Simplified90.4%
Taylor expanded in a around inf 82.4%
associate-/l*91.9%
Simplified91.9%
Final simplification88.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -4.8e+222) (* y (- (+ (/ z t) (/ x y)) (/ a t))) (if (<= t 3.35e+125) (+ (+ y x) (* y (/ z (- t a)))) (- x (* a (/ y t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.8e+222) {
tmp = y * (((z / t) + (x / y)) - (a / t));
} else if (t <= 3.35e+125) {
tmp = (y + x) + (y * (z / (t - a)));
} else {
tmp = x - (a * (y / 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 (t <= (-4.8d+222)) then
tmp = y * (((z / t) + (x / y)) - (a / t))
else if (t <= 3.35d+125) then
tmp = (y + x) + (y * (z / (t - a)))
else
tmp = x - (a * (y / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.8e+222) {
tmp = y * (((z / t) + (x / y)) - (a / t));
} else if (t <= 3.35e+125) {
tmp = (y + x) + (y * (z / (t - a)));
} else {
tmp = x - (a * (y / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.8e+222: tmp = y * (((z / t) + (x / y)) - (a / t)) elif t <= 3.35e+125: tmp = (y + x) + (y * (z / (t - a))) else: tmp = x - (a * (y / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.8e+222) tmp = Float64(y * Float64(Float64(Float64(z / t) + Float64(x / y)) - Float64(a / t))); elseif (t <= 3.35e+125) tmp = Float64(Float64(y + x) + Float64(y * Float64(z / Float64(t - a)))); else tmp = Float64(x - Float64(a * Float64(y / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.8e+222) tmp = y * (((z / t) + (x / y)) - (a / t)); elseif (t <= 3.35e+125) tmp = (y + x) + (y * (z / (t - a))); else tmp = x - (a * (y / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.8e+222], N[(y * N[(N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision] - N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.35e+125], N[(N[(y + x), $MachinePrecision] + N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{+222}:\\
\;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\
\mathbf{elif}\;t \leq 3.35 \cdot 10^{+125}:\\
\;\;\;\;\left(y + x\right) + y \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\
\end{array}
\end{array}
if t < -4.8000000000000002e222Initial program 29.6%
Taylor expanded in t around inf 70.9%
associate--l+70.9%
distribute-lft-out--70.9%
div-sub70.9%
mul-1-neg70.9%
unsub-neg70.9%
*-commutative70.9%
distribute-lft-out--70.9%
Simplified70.9%
Taylor expanded in y around inf 84.1%
if -4.8000000000000002e222 < t < 3.3500000000000002e125Initial program 88.0%
Taylor expanded in z around inf 87.8%
associate-/l*89.9%
Simplified89.9%
if 3.3500000000000002e125 < t Initial program 63.6%
Taylor expanded in t around inf 90.4%
associate--l+90.4%
distribute-lft-out--90.4%
div-sub90.4%
mul-1-neg90.4%
unsub-neg90.4%
*-commutative90.4%
distribute-lft-out--90.4%
Simplified90.4%
Taylor expanded in a around inf 82.4%
associate-/l*91.9%
Simplified91.9%
Final simplification89.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -5.7e-33) (not (<= a 1820000000.0))) (- (+ y x) (/ y (/ a z))) (- x (/ (* y (- a z)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.7e-33) || !(a <= 1820000000.0)) {
tmp = (y + x) - (y / (a / 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 <= (-5.7d-33)) .or. (.not. (a <= 1820000000.0d0))) then
tmp = (y + x) - (y / (a / 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 <= -5.7e-33) || !(a <= 1820000000.0)) {
tmp = (y + x) - (y / (a / z));
} else {
tmp = x - ((y * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -5.7e-33) or not (a <= 1820000000.0): tmp = (y + x) - (y / (a / z)) else: tmp = x - ((y * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -5.7e-33) || !(a <= 1820000000.0)) tmp = Float64(Float64(y + x) - Float64(y / Float64(a / z))); else tmp = Float64(x - Float64(Float64(y * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -5.7e-33) || ~((a <= 1820000000.0))) tmp = (y + x) - (y / (a / z)); else tmp = x - ((y * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.7e-33], N[Not[LessEqual[a, 1820000000.0]], $MachinePrecision]], N[(N[(y + x), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.7 \cdot 10^{-33} \lor \neg \left(a \leq 1820000000\right):\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if a < -5.70000000000000025e-33 or 1.82e9 < a Initial program 80.2%
add-cube-cbrt80.1%
times-frac88.6%
pow288.6%
Applied egg-rr88.6%
clear-num88.6%
frac-times88.6%
*-un-lft-identity88.6%
Applied egg-rr88.6%
associate-*l/88.7%
unpow288.7%
rem-3cbrt-lft88.7%
Simplified88.7%
Taylor expanded in t around 0 83.8%
if -5.70000000000000025e-33 < a < 1.82e9Initial program 77.7%
Taylor expanded in t around inf 83.5%
associate--l+83.5%
distribute-lft-out--83.5%
div-sub83.5%
mul-1-neg83.5%
unsub-neg83.5%
*-commutative83.5%
distribute-lft-out--83.5%
Simplified83.5%
Final simplification83.7%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.65e-29)
(- (+ y x) (* y (/ z a)))
(if (<= a 1550000000.0)
(- x (/ (* y (- a z)) t))
(- (+ y x) (/ y (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.65e-29) {
tmp = (y + x) - (y * (z / a));
} else if (a <= 1550000000.0) {
tmp = x - ((y * (a - z)) / t);
} else {
tmp = (y + x) - (y / (a / 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 <= (-1.65d-29)) then
tmp = (y + x) - (y * (z / a))
else if (a <= 1550000000.0d0) then
tmp = x - ((y * (a - z)) / t)
else
tmp = (y + x) - (y / (a / 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 <= -1.65e-29) {
tmp = (y + x) - (y * (z / a));
} else if (a <= 1550000000.0) {
tmp = x - ((y * (a - z)) / t);
} else {
tmp = (y + x) - (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.65e-29: tmp = (y + x) - (y * (z / a)) elif a <= 1550000000.0: tmp = x - ((y * (a - z)) / t) else: tmp = (y + x) - (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.65e-29) tmp = Float64(Float64(y + x) - Float64(y * Float64(z / a))); elseif (a <= 1550000000.0) tmp = Float64(x - Float64(Float64(y * Float64(a - z)) / t)); else tmp = Float64(Float64(y + x) - Float64(y / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.65e-29) tmp = (y + x) - (y * (z / a)); elseif (a <= 1550000000.0) tmp = x - ((y * (a - z)) / t); else tmp = (y + x) - (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.65e-29], N[(N[(y + x), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1550000000.0], N[(x - N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(y + x), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.65 \cdot 10^{-29}:\\
\;\;\;\;\left(y + x\right) - y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq 1550000000:\\
\;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -1.65000000000000014e-29Initial program 80.7%
Taylor expanded in t around 0 80.7%
+-commutative80.7%
associate-/l*83.4%
Simplified83.4%
if -1.65000000000000014e-29 < a < 1.55e9Initial program 77.7%
Taylor expanded in t around inf 83.5%
associate--l+83.5%
distribute-lft-out--83.5%
div-sub83.5%
mul-1-neg83.5%
unsub-neg83.5%
*-commutative83.5%
distribute-lft-out--83.5%
Simplified83.5%
if 1.55e9 < a Initial program 79.5%
add-cube-cbrt79.5%
times-frac90.1%
pow290.1%
Applied egg-rr90.1%
clear-num90.0%
frac-times90.1%
*-un-lft-identity90.1%
Applied egg-rr90.1%
associate-*l/90.1%
unpow290.1%
rem-3cbrt-lft89.9%
Simplified89.9%
Taylor expanded in t around 0 84.4%
Final simplification83.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -8e-14) (not (<= a 1.5e+53))) (+ y x) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8e-14) || !(a <= 1.5e+53)) {
tmp = y + x;
} else {
tmp = x + ((y * 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 <= (-8d-14)) .or. (.not. (a <= 1.5d+53))) then
tmp = y + x
else
tmp = x + ((y * 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 <= -8e-14) || !(a <= 1.5e+53)) {
tmp = y + x;
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -8e-14) or not (a <= 1.5e+53): tmp = y + x else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -8e-14) || !(a <= 1.5e+53)) tmp = Float64(y + x); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -8e-14) || ~((a <= 1.5e+53))) tmp = y + x; else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8e-14], N[Not[LessEqual[a, 1.5e+53]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 1.5 \cdot 10^{+53}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if a < -7.99999999999999999e-14 or 1.49999999999999999e53 < a Initial program 81.0%
Taylor expanded in a around inf 71.8%
+-commutative71.8%
Simplified71.8%
if -7.99999999999999999e-14 < a < 1.49999999999999999e53Initial program 77.4%
sub-neg77.4%
+-commutative77.4%
distribute-frac-neg77.4%
distribute-rgt-neg-out77.4%
associate-/l*78.2%
fma-define78.4%
distribute-frac-neg78.4%
distribute-neg-frac278.4%
sub-neg78.4%
distribute-neg-in78.4%
remove-double-neg78.4%
+-commutative78.4%
sub-neg78.4%
Simplified78.4%
Taylor expanded in t around inf 72.7%
associate--l+72.7%
associate-+r+79.9%
distribute-rgt1-in79.9%
metadata-eval79.9%
mul0-lft79.9%
associate-/l*78.5%
associate-/l*77.2%
Simplified77.2%
Taylor expanded in a around 0 76.0%
Final simplification74.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.7e-259) (not (<= a 9e-99))) (+ y x) (* y (/ z t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.7e-259) || !(a <= 9e-99)) {
tmp = y + x;
} else {
tmp = y * (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 <= (-2.7d-259)) .or. (.not. (a <= 9d-99))) then
tmp = y + x
else
tmp = y * (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 <= -2.7e-259) || !(a <= 9e-99)) {
tmp = y + x;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.7e-259) or not (a <= 9e-99): tmp = y + x else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.7e-259) || !(a <= 9e-99)) tmp = Float64(y + x); else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.7e-259) || ~((a <= 9e-99))) tmp = y + x; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.7e-259], N[Not[LessEqual[a, 9e-99]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.7 \cdot 10^{-259} \lor \neg \left(a \leq 9 \cdot 10^{-99}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if a < -2.69999999999999984e-259 or 9.0000000000000006e-99 < a Initial program 80.4%
Taylor expanded in a around inf 62.1%
+-commutative62.1%
Simplified62.1%
if -2.69999999999999984e-259 < a < 9.0000000000000006e-99Initial program 73.9%
sub-neg73.9%
+-commutative73.9%
distribute-frac-neg73.9%
distribute-rgt-neg-out73.9%
associate-/l*72.5%
fma-define72.9%
distribute-frac-neg72.9%
distribute-neg-frac272.9%
sub-neg72.9%
distribute-neg-in72.9%
remove-double-neg72.9%
+-commutative72.9%
sub-neg72.9%
Simplified72.9%
Taylor expanded in z around inf 59.3%
Taylor expanded in t around inf 50.6%
associate-*r/50.7%
Simplified50.7%
Final simplification59.6%
(FPCore (x y z t a) :precision binary64 (if (<= x 1.3e-9) (+ y x) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 1.3e-9) {
tmp = y + x;
} 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 (x <= 1.3d-9) then
tmp = y + x
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 (x <= 1.3e-9) {
tmp = y + x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= 1.3e-9: tmp = y + x else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= 1.3e-9) tmp = Float64(y + x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= 1.3e-9) tmp = y + x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, 1.3e-9], N[(y + x), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.3 \cdot 10^{-9}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < 1.3000000000000001e-9Initial program 77.8%
Taylor expanded in a around inf 52.4%
+-commutative52.4%
Simplified52.4%
if 1.3000000000000001e-9 < x Initial program 83.0%
Taylor expanded in x around inf 71.4%
Final simplification56.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 78.9%
Taylor expanded in x around inf 48.1%
Final simplification48.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
(t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
(if (< t_2 -1.3664970889390727e-7)
t_1
(if (< t_2 1.4754293444577233e-239)
(/ (- (* y (- a z)) (* x t)) (- a t))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
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) :: t_2
real(8) :: tmp
t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
t_2 = (x + y) - (((z - t) * y) / (a - t))
if (t_2 < (-1.3664970889390727d-7)) then
tmp = t_1
else if (t_2 < 1.4754293444577233d-239) then
tmp = ((y * (a - z)) - (x * t)) / (a - t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y) t_2 = (x + y) - (((z - t) * y) / (a - t)) tmp = 0 if t_2 < -1.3664970889390727e-7: tmp = t_1 elif t_2 < 1.4754293444577233e-239: tmp = ((y * (a - z)) - (x * t)) / (a - t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y)) t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) tmp = 0.0 if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y); t_2 = (x + y) - (((z - t) * y) / (a - t)); tmp = 0.0; if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = ((y * (a - z)) - (x * t)) / (a - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
\mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\
\;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024095
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:alt
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))