
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (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)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (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)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (y / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
Initial program 86.3%
associate-/l*98.0%
Simplified98.0%
clear-num98.0%
un-div-inv98.1%
Applied egg-rr98.1%
Final simplification98.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ a z)))))
(if (<= t -1.55e+77)
(+ x y)
(if (<= t 2.7e-13)
t_1
(if (<= t 5.8e+53)
(/ y (/ t (- z)))
(if (<= t 5.1e+84) t_1 (+ x y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (t <= -1.55e+77) {
tmp = x + y;
} else if (t <= 2.7e-13) {
tmp = t_1;
} else if (t <= 5.8e+53) {
tmp = y / (t / -z);
} else if (t <= 5.1e+84) {
tmp = t_1;
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y / (a / z))
if (t <= (-1.55d+77)) then
tmp = x + y
else if (t <= 2.7d-13) then
tmp = t_1
else if (t <= 5.8d+53) then
tmp = y / (t / -z)
else if (t <= 5.1d+84) then
tmp = t_1
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (t <= -1.55e+77) {
tmp = x + y;
} else if (t <= 2.7e-13) {
tmp = t_1;
} else if (t <= 5.8e+53) {
tmp = y / (t / -z);
} else if (t <= 5.1e+84) {
tmp = t_1;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (a / z)) tmp = 0 if t <= -1.55e+77: tmp = x + y elif t <= 2.7e-13: tmp = t_1 elif t <= 5.8e+53: tmp = y / (t / -z) elif t <= 5.1e+84: tmp = t_1 else: tmp = x + y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (t <= -1.55e+77) tmp = Float64(x + y); elseif (t <= 2.7e-13) tmp = t_1; elseif (t <= 5.8e+53) tmp = Float64(y / Float64(t / Float64(-z))); elseif (t <= 5.1e+84) tmp = t_1; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (a / z)); tmp = 0.0; if (t <= -1.55e+77) tmp = x + y; elseif (t <= 2.7e-13) tmp = t_1; elseif (t <= 5.8e+53) tmp = y / (t / -z); elseif (t <= 5.1e+84) tmp = t_1; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e+77], N[(x + y), $MachinePrecision], If[LessEqual[t, 2.7e-13], t$95$1, If[LessEqual[t, 5.8e+53], N[(y / N[(t / (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e+84], t$95$1, N[(x + y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{+77}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+53}:\\
\;\;\;\;\frac{y}{\frac{t}{-z}}\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.54999999999999999e77 or 5.1000000000000001e84 < t Initial program 69.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 88.3%
+-commutative88.3%
Simplified88.3%
if -1.54999999999999999e77 < t < 2.70000000000000011e-13 or 5.8000000000000004e53 < t < 5.1000000000000001e84Initial program 96.6%
associate-/l*96.6%
Simplified96.6%
clear-num96.6%
un-div-inv96.7%
Applied egg-rr96.7%
Taylor expanded in t around 0 77.7%
if 2.70000000000000011e-13 < t < 5.8000000000000004e53Initial program 99.9%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in z around inf 75.3%
associate-/l*74.8%
Simplified74.8%
Taylor expanded in a around 0 75.3%
mul-1-neg75.3%
unsub-neg75.3%
associate-/l*74.8%
Simplified74.8%
Taylor expanded in x around 0 55.5%
mul-1-neg55.5%
distribute-frac-neg255.5%
associate-/l*55.2%
Simplified55.2%
associate-*r/55.5%
distribute-frac-neg255.5%
associate-*l/55.3%
associate-/r/55.5%
distribute-neg-frac55.5%
Applied egg-rr55.5%
Final simplification80.7%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.45e+221)
(* z (/ y (- t)))
(if (or (<= z 1.65e+185) (and (not (<= z 9e+228)) (<= z 3.2e+253)))
(+ x y)
(* y (/ (- z) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.45e+221) {
tmp = z * (y / -t);
} else if ((z <= 1.65e+185) || (!(z <= 9e+228) && (z <= 3.2e+253))) {
tmp = x + y;
} 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.45d+221)) then
tmp = z * (y / -t)
else if ((z <= 1.65d+185) .or. (.not. (z <= 9d+228)) .and. (z <= 3.2d+253)) then
tmp = x + y
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.45e+221) {
tmp = z * (y / -t);
} else if ((z <= 1.65e+185) || (!(z <= 9e+228) && (z <= 3.2e+253))) {
tmp = x + y;
} else {
tmp = y * (-z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.45e+221: tmp = z * (y / -t) elif (z <= 1.65e+185) or (not (z <= 9e+228) and (z <= 3.2e+253)): tmp = x + y else: tmp = y * (-z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.45e+221) tmp = Float64(z * Float64(y / Float64(-t))); elseif ((z <= 1.65e+185) || (!(z <= 9e+228) && (z <= 3.2e+253))) tmp = Float64(x + y); else tmp = Float64(y * Float64(Float64(-z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.45e+221) tmp = z * (y / -t); elseif ((z <= 1.65e+185) || (~((z <= 9e+228)) && (z <= 3.2e+253))) tmp = x + y; else tmp = y * (-z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.45e+221], N[(z * N[(y / (-t)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 1.65e+185], And[N[Not[LessEqual[z, 9e+228]], $MachinePrecision], LessEqual[z, 3.2e+253]]], N[(x + y), $MachinePrecision], N[(y * N[((-z) / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+221}:\\
\;\;\;\;z \cdot \frac{y}{-t}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+185} \lor \neg \left(z \leq 9 \cdot 10^{+228}\right) \land z \leq 3.2 \cdot 10^{+253}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-z}{t}\\
\end{array}
\end{array}
if z < -1.4499999999999999e221Initial program 100.0%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around inf 94.9%
associate-/l*85.0%
Simplified85.0%
Taylor expanded in a around 0 74.4%
mul-1-neg74.4%
unsub-neg74.4%
associate-/l*64.6%
Simplified64.6%
Taylor expanded in x around 0 64.3%
associate-*r/64.3%
associate-*r*64.3%
neg-mul-164.3%
associate-*l/64.2%
Simplified64.2%
if -1.4499999999999999e221 < z < 1.65000000000000006e185 or 8.99999999999999966e228 < z < 3.2000000000000003e253Initial program 85.6%
associate-/l*99.0%
Simplified99.0%
Taylor expanded in t around inf 68.2%
+-commutative68.2%
Simplified68.2%
if 1.65000000000000006e185 < z < 8.99999999999999966e228 or 3.2000000000000003e253 < z Initial program 81.6%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in z around inf 81.7%
associate-/l*92.7%
Simplified92.7%
Taylor expanded in a around 0 51.6%
mul-1-neg51.6%
unsub-neg51.6%
associate-/l*54.7%
Simplified54.7%
Taylor expanded in x around 0 47.8%
mul-1-neg47.8%
distribute-frac-neg247.8%
associate-/l*50.9%
Simplified50.9%
Final simplification66.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.9e+218)
(* z (/ y (- t)))
(if (<= z 4.6e+184)
(+ x y)
(if (<= z 5.1e+228)
(* y (/ (- z) t))
(if (<= z 6e+252) (+ x y) (/ y (/ t (- z))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e+218) {
tmp = z * (y / -t);
} else if (z <= 4.6e+184) {
tmp = x + y;
} else if (z <= 5.1e+228) {
tmp = y * (-z / t);
} else if (z <= 6e+252) {
tmp = x + y;
} else {
tmp = y / (t / -z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.9d+218)) then
tmp = z * (y / -t)
else if (z <= 4.6d+184) then
tmp = x + y
else if (z <= 5.1d+228) then
tmp = y * (-z / t)
else if (z <= 6d+252) then
tmp = x + y
else
tmp = y / (t / -z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e+218) {
tmp = z * (y / -t);
} else if (z <= 4.6e+184) {
tmp = x + y;
} else if (z <= 5.1e+228) {
tmp = y * (-z / t);
} else if (z <= 6e+252) {
tmp = x + y;
} else {
tmp = y / (t / -z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.9e+218: tmp = z * (y / -t) elif z <= 4.6e+184: tmp = x + y elif z <= 5.1e+228: tmp = y * (-z / t) elif z <= 6e+252: tmp = x + y else: tmp = y / (t / -z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.9e+218) tmp = Float64(z * Float64(y / Float64(-t))); elseif (z <= 4.6e+184) tmp = Float64(x + y); elseif (z <= 5.1e+228) tmp = Float64(y * Float64(Float64(-z) / t)); elseif (z <= 6e+252) tmp = Float64(x + y); else tmp = Float64(y / Float64(t / Float64(-z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.9e+218) tmp = z * (y / -t); elseif (z <= 4.6e+184) tmp = x + y; elseif (z <= 5.1e+228) tmp = y * (-z / t); elseif (z <= 6e+252) tmp = x + y; else tmp = y / (t / -z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.9e+218], N[(z * N[(y / (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e+184], N[(x + y), $MachinePrecision], If[LessEqual[z, 5.1e+228], N[(y * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e+252], N[(x + y), $MachinePrecision], N[(y / N[(t / (-z)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{+218}:\\
\;\;\;\;z \cdot \frac{y}{-t}\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+184}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 5.1 \cdot 10^{+228}:\\
\;\;\;\;y \cdot \frac{-z}{t}\\
\mathbf{elif}\;z \leq 6 \cdot 10^{+252}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{t}{-z}}\\
\end{array}
\end{array}
if z < -2.8999999999999999e218Initial program 100.0%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around inf 94.9%
associate-/l*85.0%
Simplified85.0%
Taylor expanded in a around 0 74.4%
mul-1-neg74.4%
unsub-neg74.4%
associate-/l*64.6%
Simplified64.6%
Taylor expanded in x around 0 64.3%
associate-*r/64.3%
associate-*r*64.3%
neg-mul-164.3%
associate-*l/64.2%
Simplified64.2%
if -2.8999999999999999e218 < z < 4.6e184 or 5.09999999999999972e228 < z < 5.99999999999999978e252Initial program 85.6%
associate-/l*99.0%
Simplified99.0%
Taylor expanded in t around inf 68.2%
+-commutative68.2%
Simplified68.2%
if 4.6e184 < z < 5.09999999999999972e228Initial program 82.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 82.6%
associate-/l*91.4%
Simplified91.4%
Taylor expanded in a around 0 55.6%
mul-1-neg55.6%
unsub-neg55.6%
associate-/l*55.7%
Simplified55.7%
Taylor expanded in x around 0 55.1%
mul-1-neg55.1%
distribute-frac-neg255.1%
associate-/l*55.3%
Simplified55.3%
if 5.99999999999999978e252 < z Initial program 81.1%
associate-/l*93.8%
Simplified93.8%
Taylor expanded in z around inf 81.1%
associate-/l*93.8%
Simplified93.8%
Taylor expanded in a around 0 48.7%
mul-1-neg48.7%
unsub-neg48.7%
associate-/l*54.0%
Simplified54.0%
Taylor expanded in x around 0 42.4%
mul-1-neg42.4%
distribute-frac-neg242.4%
associate-/l*47.7%
Simplified47.7%
associate-*r/42.4%
distribute-frac-neg242.4%
associate-*l/47.5%
associate-/r/47.8%
distribute-neg-frac47.8%
Applied egg-rr47.8%
Final simplification66.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -9.5e+220)
(/ (* y (- z)) t)
(if (<= z 1.5e+185)
(+ x y)
(if (<= z 3.7e+229)
(* y (/ (- z) t))
(if (<= z 8e+253) (+ x y) (/ y (/ t (- z))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.5e+220) {
tmp = (y * -z) / t;
} else if (z <= 1.5e+185) {
tmp = x + y;
} else if (z <= 3.7e+229) {
tmp = y * (-z / t);
} else if (z <= 8e+253) {
tmp = x + y;
} else {
tmp = y / (t / -z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-9.5d+220)) then
tmp = (y * -z) / t
else if (z <= 1.5d+185) then
tmp = x + y
else if (z <= 3.7d+229) then
tmp = y * (-z / t)
else if (z <= 8d+253) then
tmp = x + y
else
tmp = y / (t / -z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.5e+220) {
tmp = (y * -z) / t;
} else if (z <= 1.5e+185) {
tmp = x + y;
} else if (z <= 3.7e+229) {
tmp = y * (-z / t);
} else if (z <= 8e+253) {
tmp = x + y;
} else {
tmp = y / (t / -z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -9.5e+220: tmp = (y * -z) / t elif z <= 1.5e+185: tmp = x + y elif z <= 3.7e+229: tmp = y * (-z / t) elif z <= 8e+253: tmp = x + y else: tmp = y / (t / -z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -9.5e+220) tmp = Float64(Float64(y * Float64(-z)) / t); elseif (z <= 1.5e+185) tmp = Float64(x + y); elseif (z <= 3.7e+229) tmp = Float64(y * Float64(Float64(-z) / t)); elseif (z <= 8e+253) tmp = Float64(x + y); else tmp = Float64(y / Float64(t / Float64(-z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -9.5e+220) tmp = (y * -z) / t; elseif (z <= 1.5e+185) tmp = x + y; elseif (z <= 3.7e+229) tmp = y * (-z / t); elseif (z <= 8e+253) tmp = x + y; else tmp = y / (t / -z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -9.5e+220], N[(N[(y * (-z)), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 1.5e+185], N[(x + y), $MachinePrecision], If[LessEqual[z, 3.7e+229], N[(y * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e+253], N[(x + y), $MachinePrecision], N[(y / N[(t / (-z)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+220}:\\
\;\;\;\;\frac{y \cdot \left(-z\right)}{t}\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+185}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+229}:\\
\;\;\;\;y \cdot \frac{-z}{t}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+253}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{t}{-z}}\\
\end{array}
\end{array}
if z < -9.50000000000000084e220Initial program 100.0%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around inf 94.9%
associate-/l*85.0%
Simplified85.0%
Taylor expanded in a around 0 74.4%
mul-1-neg74.4%
unsub-neg74.4%
associate-/l*64.6%
Simplified64.6%
Taylor expanded in x around 0 64.3%
mul-1-neg64.3%
distribute-frac-neg264.3%
associate-/l*54.5%
Simplified54.5%
associate-*r/64.3%
frac-2neg64.3%
*-commutative64.3%
distribute-rgt-neg-in64.3%
remove-double-neg64.3%
Applied egg-rr64.3%
if -9.50000000000000084e220 < z < 1.49999999999999997e185 or 3.70000000000000002e229 < z < 7.9999999999999995e253Initial program 85.6%
associate-/l*99.0%
Simplified99.0%
Taylor expanded in t around inf 68.2%
+-commutative68.2%
Simplified68.2%
if 1.49999999999999997e185 < z < 3.70000000000000002e229Initial program 82.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 82.6%
associate-/l*91.4%
Simplified91.4%
Taylor expanded in a around 0 55.6%
mul-1-neg55.6%
unsub-neg55.6%
associate-/l*55.7%
Simplified55.7%
Taylor expanded in x around 0 55.1%
mul-1-neg55.1%
distribute-frac-neg255.1%
associate-/l*55.3%
Simplified55.3%
if 7.9999999999999995e253 < z Initial program 81.1%
associate-/l*93.8%
Simplified93.8%
Taylor expanded in z around inf 81.1%
associate-/l*93.8%
Simplified93.8%
Taylor expanded in a around 0 48.7%
mul-1-neg48.7%
unsub-neg48.7%
associate-/l*54.0%
Simplified54.0%
Taylor expanded in x around 0 42.4%
mul-1-neg42.4%
distribute-frac-neg242.4%
associate-/l*47.7%
Simplified47.7%
associate-*r/42.4%
distribute-frac-neg242.4%
associate-*l/47.5%
associate-/r/47.8%
distribute-neg-frac47.8%
Applied egg-rr47.8%
Final simplification66.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -7.2e+76)
(+ x y)
(if (<= t 1.02e-89)
(+ x (/ y (/ a z)))
(if (<= t 1.2e+88) (- x (* y (/ z t))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.2e+76) {
tmp = x + y;
} else if (t <= 1.02e-89) {
tmp = x + (y / (a / z));
} else if (t <= 1.2e+88) {
tmp = x - (y * (z / t));
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-7.2d+76)) then
tmp = x + y
else if (t <= 1.02d-89) then
tmp = x + (y / (a / z))
else if (t <= 1.2d+88) then
tmp = x - (y * (z / t))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.2e+76) {
tmp = x + y;
} else if (t <= 1.02e-89) {
tmp = x + (y / (a / z));
} else if (t <= 1.2e+88) {
tmp = x - (y * (z / t));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.2e+76: tmp = x + y elif t <= 1.02e-89: tmp = x + (y / (a / z)) elif t <= 1.2e+88: tmp = x - (y * (z / t)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.2e+76) tmp = Float64(x + y); elseif (t <= 1.02e-89) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (t <= 1.2e+88) tmp = Float64(x - Float64(y * Float64(z / t))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.2e+76) tmp = x + y; elseif (t <= 1.02e-89) tmp = x + (y / (a / z)); elseif (t <= 1.2e+88) tmp = x - (y * (z / t)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.2e+76], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.02e-89], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e+88], N[(x - N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+76}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-89}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+88}:\\
\;\;\;\;x - y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -7.2000000000000006e76 or 1.2e88 < t Initial program 69.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 88.3%
+-commutative88.3%
Simplified88.3%
if -7.2000000000000006e76 < t < 1.0199999999999999e-89Initial program 95.9%
associate-/l*95.9%
Simplified95.9%
clear-num95.9%
un-div-inv96.0%
Applied egg-rr96.0%
Taylor expanded in t around 0 80.4%
if 1.0199999999999999e-89 < t < 1.2e88Initial program 100.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 86.8%
associate-/l*86.6%
Simplified86.6%
Taylor expanded in a around 0 79.3%
mul-1-neg79.3%
unsub-neg79.3%
associate-/l*79.1%
Simplified79.1%
Final simplification83.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -9.2e+76)
(+ x y)
(if (<= t 1.45e-90)
(+ x (/ y (/ a z)))
(if (<= t 1.75e+88) (- x (/ y (/ t z))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.2e+76) {
tmp = x + y;
} else if (t <= 1.45e-90) {
tmp = x + (y / (a / z));
} else if (t <= 1.75e+88) {
tmp = x - (y / (t / z));
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-9.2d+76)) then
tmp = x + y
else if (t <= 1.45d-90) then
tmp = x + (y / (a / z))
else if (t <= 1.75d+88) then
tmp = x - (y / (t / z))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.2e+76) {
tmp = x + y;
} else if (t <= 1.45e-90) {
tmp = x + (y / (a / z));
} else if (t <= 1.75e+88) {
tmp = x - (y / (t / z));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.2e+76: tmp = x + y elif t <= 1.45e-90: tmp = x + (y / (a / z)) elif t <= 1.75e+88: tmp = x - (y / (t / z)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.2e+76) tmp = Float64(x + y); elseif (t <= 1.45e-90) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (t <= 1.75e+88) tmp = Float64(x - Float64(y / Float64(t / z))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.2e+76) tmp = x + y; elseif (t <= 1.45e-90) tmp = x + (y / (a / z)); elseif (t <= 1.75e+88) tmp = x - (y / (t / z)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.2e+76], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.45e-90], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+88], N[(x - N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.2 \cdot 10^{+76}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-90}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+88}:\\
\;\;\;\;x - \frac{y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -9.20000000000000005e76 or 1.7499999999999999e88 < t Initial program 69.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 88.3%
+-commutative88.3%
Simplified88.3%
if -9.20000000000000005e76 < t < 1.44999999999999992e-90Initial program 95.9%
associate-/l*95.9%
Simplified95.9%
clear-num95.9%
un-div-inv96.0%
Applied egg-rr96.0%
Taylor expanded in t around 0 80.4%
if 1.44999999999999992e-90 < t < 1.7499999999999999e88Initial program 100.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 86.8%
associate-/l*86.6%
Simplified86.6%
Taylor expanded in a around 0 79.3%
mul-1-neg79.3%
unsub-neg79.3%
associate-/l*79.1%
Simplified79.1%
clear-num79.2%
un-div-inv79.3%
Applied egg-rr79.3%
Final simplification83.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1e+77)
(+ x y)
(if (<= t 1.22e-89)
(+ x (/ y (/ a z)))
(if (<= t 3.5e+87) (- x (/ (* y z) t)) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1e+77) {
tmp = x + y;
} else if (t <= 1.22e-89) {
tmp = x + (y / (a / z));
} else if (t <= 3.5e+87) {
tmp = x - ((y * z) / t);
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1d+77)) then
tmp = x + y
else if (t <= 1.22d-89) then
tmp = x + (y / (a / z))
else if (t <= 3.5d+87) then
tmp = x - ((y * z) / t)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1e+77) {
tmp = x + y;
} else if (t <= 1.22e-89) {
tmp = x + (y / (a / z));
} else if (t <= 3.5e+87) {
tmp = x - ((y * z) / t);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1e+77: tmp = x + y elif t <= 1.22e-89: tmp = x + (y / (a / z)) elif t <= 3.5e+87: tmp = x - ((y * z) / t) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1e+77) tmp = Float64(x + y); elseif (t <= 1.22e-89) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (t <= 3.5e+87) tmp = Float64(x - Float64(Float64(y * z) / t)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1e+77) tmp = x + y; elseif (t <= 1.22e-89) tmp = x + (y / (a / z)); elseif (t <= 3.5e+87) tmp = x - ((y * z) / t); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1e+77], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.22e-89], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+87], N[(x - N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+77}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-89}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+87}:\\
\;\;\;\;x - \frac{y \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -9.99999999999999983e76 or 3.49999999999999986e87 < t Initial program 69.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 88.3%
+-commutative88.3%
Simplified88.3%
if -9.99999999999999983e76 < t < 1.22e-89Initial program 95.9%
associate-/l*95.9%
Simplified95.9%
clear-num95.9%
un-div-inv96.0%
Applied egg-rr96.0%
Taylor expanded in t around 0 80.4%
if 1.22e-89 < t < 3.49999999999999986e87Initial program 100.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 86.8%
associate-/l*86.6%
Simplified86.6%
Taylor expanded in a around 0 79.3%
mul-1-neg79.3%
unsub-neg79.3%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in y around 0 79.3%
Final simplification83.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.55e+77)
(+ x y)
(if (<= t 1.25e-89)
(+ x (/ y (/ a z)))
(if (<= t 3.2e+87) (- x (/ (* y z) t)) (+ x (/ t (/ t y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.55e+77) {
tmp = x + y;
} else if (t <= 1.25e-89) {
tmp = x + (y / (a / z));
} else if (t <= 3.2e+87) {
tmp = x - ((y * z) / t);
} else {
tmp = x + (t / (t / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.55d+77)) then
tmp = x + y
else if (t <= 1.25d-89) then
tmp = x + (y / (a / z))
else if (t <= 3.2d+87) then
tmp = x - ((y * z) / t)
else
tmp = x + (t / (t / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.55e+77) {
tmp = x + y;
} else if (t <= 1.25e-89) {
tmp = x + (y / (a / z));
} else if (t <= 3.2e+87) {
tmp = x - ((y * z) / t);
} else {
tmp = x + (t / (t / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.55e+77: tmp = x + y elif t <= 1.25e-89: tmp = x + (y / (a / z)) elif t <= 3.2e+87: tmp = x - ((y * z) / t) else: tmp = x + (t / (t / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.55e+77) tmp = Float64(x + y); elseif (t <= 1.25e-89) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (t <= 3.2e+87) tmp = Float64(x - Float64(Float64(y * z) / t)); else tmp = Float64(x + Float64(t / Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.55e+77) tmp = x + y; elseif (t <= 1.25e-89) tmp = x + (y / (a / z)); elseif (t <= 3.2e+87) tmp = x - ((y * z) / t); else tmp = x + (t / (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.55e+77], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.25e-89], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+87], N[(x - N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{+77}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-89}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+87}:\\
\;\;\;\;x - \frac{y \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{t}{y}}\\
\end{array}
\end{array}
if t < -1.54999999999999999e77Initial program 63.8%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 83.5%
+-commutative83.5%
Simplified83.5%
if -1.54999999999999999e77 < t < 1.24999999999999992e-89Initial program 95.9%
associate-/l*95.9%
Simplified95.9%
clear-num95.9%
un-div-inv96.0%
Applied egg-rr96.0%
Taylor expanded in t around 0 80.4%
if 1.24999999999999992e-89 < t < 3.2e87Initial program 100.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 86.8%
associate-/l*86.6%
Simplified86.6%
Taylor expanded in a around 0 79.3%
mul-1-neg79.3%
unsub-neg79.3%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in y around 0 79.3%
if 3.2e87 < t Initial program 74.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around 0 70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*92.7%
Simplified92.7%
clear-num92.6%
un-div-inv92.8%
Applied egg-rr92.8%
Taylor expanded in a around 0 92.8%
neg-mul-192.8%
distribute-neg-frac292.8%
Simplified92.8%
Final simplification83.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.3e+77) (not (<= t 3.35e+84))) (- x (* y (+ (/ z t) -1.0))) (+ x (/ (* y z) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.3e+77) || !(t <= 3.35e+84)) {
tmp = x - (y * ((z / t) + -1.0));
} else {
tmp = x + ((y * z) / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-1.3d+77)) .or. (.not. (t <= 3.35d+84))) then
tmp = x - (y * ((z / t) + (-1.0d0)))
else
tmp = x + ((y * z) / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.3e+77) || !(t <= 3.35e+84)) {
tmp = x - (y * ((z / t) + -1.0));
} else {
tmp = x + ((y * z) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.3e+77) or not (t <= 3.35e+84): tmp = x - (y * ((z / t) + -1.0)) else: tmp = x + ((y * z) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.3e+77) || !(t <= 3.35e+84)) tmp = Float64(x - Float64(y * Float64(Float64(z / t) + -1.0))); else tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.3e+77) || ~((t <= 3.35e+84))) tmp = x - (y * ((z / t) + -1.0)); else tmp = x + ((y * z) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.3e+77], N[Not[LessEqual[t, 3.35e+84]], $MachinePrecision]], N[(x - N[(y * N[(N[(z / t), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{+77} \lor \neg \left(t \leq 3.35 \cdot 10^{+84}\right):\\
\;\;\;\;x - y \cdot \left(\frac{z}{t} + -1\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\end{array}
\end{array}
if t < -1.3000000000000001e77 or 3.3500000000000002e84 < t Initial program 69.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in a around 0 67.2%
mul-1-neg67.2%
unsub-neg67.2%
associate-/l*95.1%
div-sub95.1%
sub-neg95.1%
*-inverses95.1%
metadata-eval95.1%
Simplified95.1%
if -1.3000000000000001e77 < t < 3.3500000000000002e84Initial program 96.9%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in z around inf 87.9%
Final simplification90.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -8e+180) (+ x y) (if (<= t 3.3e+89) (+ x (* y (/ z (- a t)))) (+ x (/ t (/ t y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8e+180) {
tmp = x + y;
} else if (t <= 3.3e+89) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = x + (t / (t / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-8d+180)) then
tmp = x + y
else if (t <= 3.3d+89) then
tmp = x + (y * (z / (a - t)))
else
tmp = x + (t / (t / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8e+180) {
tmp = x + y;
} else if (t <= 3.3e+89) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = x + (t / (t / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -8e+180: tmp = x + y elif t <= 3.3e+89: tmp = x + (y * (z / (a - t))) else: tmp = x + (t / (t / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -8e+180) tmp = Float64(x + y); elseif (t <= 3.3e+89) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); else tmp = Float64(x + Float64(t / Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -8e+180) tmp = x + y; elseif (t <= 3.3e+89) tmp = x + (y * (z / (a - t))); else tmp = x + (t / (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -8e+180], N[(x + y), $MachinePrecision], If[LessEqual[t, 3.3e+89], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+180}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{+89}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{t}{y}}\\
\end{array}
\end{array}
if t < -8.0000000000000001e180Initial program 57.1%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 88.0%
+-commutative88.0%
Simplified88.0%
if -8.0000000000000001e180 < t < 3.29999999999999974e89Initial program 95.5%
associate-/l*97.1%
Simplified97.1%
Taylor expanded in z around inf 85.6%
associate-/l*86.7%
Simplified86.7%
if 3.29999999999999974e89 < t Initial program 74.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around 0 70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*92.7%
Simplified92.7%
clear-num92.6%
un-div-inv92.8%
Applied egg-rr92.8%
Taylor expanded in a around 0 92.8%
neg-mul-192.8%
distribute-neg-frac292.8%
Simplified92.8%
Final simplification88.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.5e+62) (+ x (* t (/ y (- t a)))) (if (<= t 1.65e+88) (+ x (/ (* y z) (- a t))) (+ x (/ t (/ t y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.5e+62) {
tmp = x + (t * (y / (t - a)));
} else if (t <= 1.65e+88) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (t / (t / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.5d+62)) then
tmp = x + (t * (y / (t - a)))
else if (t <= 1.65d+88) then
tmp = x + ((y * z) / (a - t))
else
tmp = x + (t / (t / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.5e+62) {
tmp = x + (t * (y / (t - a)));
} else if (t <= 1.65e+88) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (t / (t / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.5e+62: tmp = x + (t * (y / (t - a))) elif t <= 1.65e+88: tmp = x + ((y * z) / (a - t)) else: tmp = x + (t / (t / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.5e+62) tmp = Float64(x + Float64(t * Float64(y / Float64(t - a)))); elseif (t <= 1.65e+88) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x + Float64(t / Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.5e+62) tmp = x + (t * (y / (t - a))); elseif (t <= 1.65e+88) tmp = x + ((y * z) / (a - t)); else tmp = x + (t / (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.5e+62], N[(x + N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e+88], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+62}:\\
\;\;\;\;x + t \cdot \frac{y}{t - a}\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+88}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{t}{y}}\\
\end{array}
\end{array}
if t < -2.50000000000000014e62Initial program 66.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around 0 60.2%
mul-1-neg60.2%
unsub-neg60.2%
associate-/l*83.0%
Simplified83.0%
if -2.50000000000000014e62 < t < 1.6500000000000002e88Initial program 96.8%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in z around inf 88.9%
if 1.6500000000000002e88 < t Initial program 74.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around 0 70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*92.7%
Simplified92.7%
clear-num92.6%
un-div-inv92.8%
Applied egg-rr92.8%
Taylor expanded in a around 0 92.8%
neg-mul-192.8%
distribute-neg-frac292.8%
Simplified92.8%
Final simplification88.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -8.5e+61)
(+ x (/ y (/ (- t a) t)))
(if (<= t 1.15e+87)
(+ x (/ (* y z) (- a t)))
(- x (* y (+ (/ z t) -1.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8.5e+61) {
tmp = x + (y / ((t - a) / t));
} else if (t <= 1.15e+87) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x - (y * ((z / t) + -1.0));
}
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 <= (-8.5d+61)) then
tmp = x + (y / ((t - a) / t))
else if (t <= 1.15d+87) then
tmp = x + ((y * z) / (a - t))
else
tmp = x - (y * ((z / t) + (-1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8.5e+61) {
tmp = x + (y / ((t - a) / t));
} else if (t <= 1.15e+87) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x - (y * ((z / t) + -1.0));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -8.5e+61: tmp = x + (y / ((t - a) / t)) elif t <= 1.15e+87: tmp = x + ((y * z) / (a - t)) else: tmp = x - (y * ((z / t) + -1.0)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -8.5e+61) tmp = Float64(x + Float64(y / Float64(Float64(t - a) / t))); elseif (t <= 1.15e+87) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x - Float64(y * Float64(Float64(z / t) + -1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -8.5e+61) tmp = x + (y / ((t - a) / t)); elseif (t <= 1.15e+87) tmp = x + ((y * z) / (a - t)); else tmp = x - (y * ((z / t) + -1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -8.5e+61], N[(x + N[(y / N[(N[(t - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e+87], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(N[(z / t), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{+61}:\\
\;\;\;\;x + \frac{y}{\frac{t - a}{t}}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{+87}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \left(\frac{z}{t} + -1\right)\\
\end{array}
\end{array}
if t < -8.50000000000000035e61Initial program 66.0%
associate-/l*100.0%
Simplified100.0%
clear-num99.9%
un-div-inv100.0%
Applied egg-rr100.0%
Taylor expanded in z around 0 88.4%
associate-*r/88.4%
neg-mul-188.4%
Simplified88.4%
if -8.50000000000000035e61 < t < 1.1500000000000001e87Initial program 96.8%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in z around inf 88.9%
if 1.1500000000000001e87 < t Initial program 74.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in a around 0 74.3%
mul-1-neg74.3%
unsub-neg74.3%
associate-/l*100.0%
div-sub100.0%
sub-neg100.0%
*-inverses100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification91.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -5.2e-114) (not (<= t 2.7e-160))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -5.2e-114) || !(t <= 2.7e-160)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-5.2d-114)) .or. (.not. (t <= 2.7d-160))) then
tmp = x + y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -5.2e-114) || !(t <= 2.7e-160)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -5.2e-114) or not (t <= 2.7e-160): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -5.2e-114) || !(t <= 2.7e-160)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -5.2e-114) || ~((t <= 2.7e-160))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -5.2e-114], N[Not[LessEqual[t, 2.7e-160]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{-114} \lor \neg \left(t \leq 2.7 \cdot 10^{-160}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -5.20000000000000026e-114 or 2.7000000000000001e-160 < t Initial program 82.3%
associate-/l*98.9%
Simplified98.9%
Taylor expanded in t around inf 68.8%
+-commutative68.8%
Simplified68.8%
if -5.20000000000000026e-114 < t < 2.7000000000000001e-160Initial program 97.1%
associate-/l*95.7%
Simplified95.7%
Taylor expanded in x around inf 46.3%
Final simplification62.8%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (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) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
Initial program 86.3%
associate-/l*98.0%
Simplified98.0%
Final simplification98.0%
(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 86.3%
associate-/l*98.0%
Simplified98.0%
Taylor expanded in x around inf 48.0%
Final simplification48.0%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (y / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
herbie shell --seed 2024095
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"
:precision binary64
:alt
(+ x (/ y (/ (- a t) (- z t))))
(+ x (/ (* y (- z t)) (- a t))))