
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (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 - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (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 - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) (- a t)))))
(t_2 (- x (/ (* (- y x) (- t z)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -4e-295)
t_2
(if (<= t_2 0.0)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= t_2 5e+253) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) / (a - t)));
double t_2 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -4e-295) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_2 <= 5e+253) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) / (a - t)));
double t_2 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -4e-295) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_2 <= 5e+253) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((y - x) / (a - t))) t_2 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -4e-295: tmp = t_2 elif t_2 <= 0.0: tmp = y + (((y - x) * (a - z)) / t) elif t_2 <= 5e+253: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))) t_2 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -4e-295) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (t_2 <= 5e+253) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - t) * ((y - x) / (a - t))); t_2 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -4e-295) tmp = t_2; elseif (t_2 <= 0.0) tmp = y + (((y - x) * (a - z)) / t); elseif (t_2 <= 5e+253) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -4e-295], t$95$2, If[LessEqual[t$95$2, 0.0], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+253], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
t_2 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -4 \cdot 10^{-295}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+253}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 4.9999999999999997e253 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 47.5%
associate-*l/82.8%
Simplified82.8%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.00000000000000024e-295 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.9999999999999997e253Initial program 97.7%
if -4.00000000000000024e-295 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.5%
associate-*l/4.0%
Simplified4.0%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
distribute-lft-out--99.9%
div-sub99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-rgt-out--99.8%
Simplified99.8%
Final simplification92.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- y x) (- t z)) (- a t)))))
(if (or (<= t_1 -4e-295) (not (<= t_1 0.0)))
(- x (/ (- x y) (/ (- a t) (- z t))))
(- (/ (* (- y x) a) t) (- (/ (* (- y x) z) t) y)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -4e-295) || !(t_1 <= 0.0)) {
tmp = x - ((x - y) / ((a - t) / (z - t)));
} else {
tmp = (((y - x) * a) / t) - ((((y - x) * z) / 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) :: t_1
real(8) :: tmp
t_1 = x - (((y - x) * (t - z)) / (a - t))
if ((t_1 <= (-4d-295)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x - ((x - y) / ((a - t) / (z - t)))
else
tmp = (((y - x) * a) / t) - ((((y - x) * z) / t) - 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 - x) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -4e-295) || !(t_1 <= 0.0)) {
tmp = x - ((x - y) / ((a - t) / (z - t)));
} else {
tmp = (((y - x) * a) / t) - ((((y - x) * z) / t) - y);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if (t_1 <= -4e-295) or not (t_1 <= 0.0): tmp = x - ((x - y) / ((a - t) / (z - t))) else: tmp = (((y - x) * a) / t) - ((((y - x) * z) / t) - y) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -4e-295) || !(t_1 <= 0.0)) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(Float64(Float64(Float64(y - x) * a) / t) - Float64(Float64(Float64(Float64(y - x) * z) / t) - y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if ((t_1 <= -4e-295) || ~((t_1 <= 0.0))) tmp = x - ((x - y) / ((a - t) / (z - t))); else tmp = (((y - x) * a) / t) - ((((y - x) * z) / t) - y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -4e-295], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y - x), $MachinePrecision] * a), $MachinePrecision] / t), $MachinePrecision] - N[(N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{-295} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(y - x\right) \cdot a}{t} - \left(\frac{\left(y - x\right) \cdot z}{t} - y\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.00000000000000024e-295 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 77.9%
associate-*l/86.2%
Simplified86.2%
associate-/r/90.7%
Applied egg-rr90.7%
if -4.00000000000000024e-295 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.5%
associate-*l/4.0%
Simplified4.0%
Taylor expanded in t around inf 99.9%
associate-*r/99.9%
mul-1-neg99.9%
associate-*r/99.9%
mul-1-neg99.9%
Simplified99.9%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- y x) (- t z)) (- a t)))))
(if (or (<= t_1 -4e-295) (not (<= t_1 0.0)))
(- x (/ (- x y) (/ (- a t) (- z t))))
(+ y (/ (* (- y x) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -4e-295) || !(t_1 <= 0.0)) {
tmp = x - ((x - y) / ((a - t) / (z - t)));
} else {
tmp = y + (((y - x) * (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) :: t_1
real(8) :: tmp
t_1 = x - (((y - x) * (t - z)) / (a - t))
if ((t_1 <= (-4d-295)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x - ((x - y) / ((a - t) / (z - t)))
else
tmp = y + (((y - x) * (a - z)) / t)
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 - x) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -4e-295) || !(t_1 <= 0.0)) {
tmp = x - ((x - y) / ((a - t) / (z - t)));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if (t_1 <= -4e-295) or not (t_1 <= 0.0): tmp = x - ((x - y) / ((a - t) / (z - t))) else: tmp = y + (((y - x) * (a - z)) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -4e-295) || !(t_1 <= 0.0)) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if ((t_1 <= -4e-295) || ~((t_1 <= 0.0))) tmp = x - ((x - y) / ((a - t) / (z - t))); else tmp = y + (((y - x) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -4e-295], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{-295} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.00000000000000024e-295 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 77.9%
associate-*l/86.2%
Simplified86.2%
associate-/r/90.7%
Applied egg-rr90.7%
if -4.00000000000000024e-295 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.5%
associate-*l/4.0%
Simplified4.0%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
distribute-lft-out--99.9%
div-sub99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-rgt-out--99.8%
Simplified99.8%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -3.5e+96)
y
(if (<= t -9e-21)
t_1
(if (<= t 7.2e-144)
(+ x (* y (/ z a)))
(if (<= t 3.1e+48)
t_1
(if (or (<= t 3.1e+63) (and (not (<= t 2.15e+73)) (<= t 2.6e+179)))
(* x (/ (- z a) t))
y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -3.5e+96) {
tmp = y;
} else if (t <= -9e-21) {
tmp = t_1;
} else if (t <= 7.2e-144) {
tmp = x + (y * (z / a));
} else if (t <= 3.1e+48) {
tmp = t_1;
} else if ((t <= 3.1e+63) || (!(t <= 2.15e+73) && (t <= 2.6e+179))) {
tmp = x * ((z - a) / t);
} else {
tmp = 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 * (1.0d0 - (z / a))
if (t <= (-3.5d+96)) then
tmp = y
else if (t <= (-9d-21)) then
tmp = t_1
else if (t <= 7.2d-144) then
tmp = x + (y * (z / a))
else if (t <= 3.1d+48) then
tmp = t_1
else if ((t <= 3.1d+63) .or. (.not. (t <= 2.15d+73)) .and. (t <= 2.6d+179)) then
tmp = x * ((z - a) / t)
else
tmp = 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 * (1.0 - (z / a));
double tmp;
if (t <= -3.5e+96) {
tmp = y;
} else if (t <= -9e-21) {
tmp = t_1;
} else if (t <= 7.2e-144) {
tmp = x + (y * (z / a));
} else if (t <= 3.1e+48) {
tmp = t_1;
} else if ((t <= 3.1e+63) || (!(t <= 2.15e+73) && (t <= 2.6e+179))) {
tmp = x * ((z - a) / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -3.5e+96: tmp = y elif t <= -9e-21: tmp = t_1 elif t <= 7.2e-144: tmp = x + (y * (z / a)) elif t <= 3.1e+48: tmp = t_1 elif (t <= 3.1e+63) or (not (t <= 2.15e+73) and (t <= 2.6e+179)): tmp = x * ((z - a) / t) else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -3.5e+96) tmp = y; elseif (t <= -9e-21) tmp = t_1; elseif (t <= 7.2e-144) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 3.1e+48) tmp = t_1; elseif ((t <= 3.1e+63) || (!(t <= 2.15e+73) && (t <= 2.6e+179))) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -3.5e+96) tmp = y; elseif (t <= -9e-21) tmp = t_1; elseif (t <= 7.2e-144) tmp = x + (y * (z / a)); elseif (t <= 3.1e+48) tmp = t_1; elseif ((t <= 3.1e+63) || (~((t <= 2.15e+73)) && (t <= 2.6e+179))) tmp = x * ((z - a) / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.5e+96], y, If[LessEqual[t, -9e-21], t$95$1, If[LessEqual[t, 7.2e-144], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e+48], t$95$1, If[Or[LessEqual[t, 3.1e+63], And[N[Not[LessEqual[t, 2.15e+73]], $MachinePrecision], LessEqual[t, 2.6e+179]]], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -3.5 \cdot 10^{+96}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-144}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+63} \lor \neg \left(t \leq 2.15 \cdot 10^{+73}\right) \land t \leq 2.6 \cdot 10^{+179}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.4999999999999999e96 or 3.1000000000000001e63 < t < 2.15000000000000007e73 or 2.6000000000000002e179 < t Initial program 39.5%
associate-*l/57.3%
Simplified57.3%
Taylor expanded in t around inf 55.2%
if -3.4999999999999999e96 < t < -8.99999999999999936e-21 or 7.2000000000000001e-144 < t < 3.10000000000000005e48Initial program 81.8%
associate-*l/88.0%
Simplified88.0%
Taylor expanded in t around 0 51.7%
associate-/l*56.6%
Simplified56.6%
Taylor expanded in x around inf 52.8%
mul-1-neg52.8%
unsub-neg52.8%
Simplified52.8%
if -8.99999999999999936e-21 < t < 7.2000000000000001e-144Initial program 92.7%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in t around 0 79.0%
associate-/l*81.0%
Simplified81.0%
Taylor expanded in y around inf 67.2%
associate-*r/69.1%
Simplified69.1%
if 3.10000000000000005e48 < t < 3.1000000000000001e63 or 2.15000000000000007e73 < t < 2.6000000000000002e179Initial program 58.5%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in t around inf 66.3%
associate-*r/66.3%
mul-1-neg66.3%
associate-*r/66.3%
mul-1-neg66.3%
Simplified66.3%
Taylor expanded in x around inf 54.3%
div-sub54.4%
Simplified54.4%
Final simplification59.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.9e+97)
y
(if (<= t -2.5e-20)
(- x (/ (* x z) a))
(if (<= t 3.75e-143)
(+ x (* y (/ z a)))
(if (<= t 8.8e+49)
(* x (- 1.0 (/ z a)))
(if (or (<= t 3.1e+62) (and (not (<= t 1.25e+73)) (<= t 6.5e+177)))
(* x (/ (- z a) t))
y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e+97) {
tmp = y;
} else if (t <= -2.5e-20) {
tmp = x - ((x * z) / a);
} else if (t <= 3.75e-143) {
tmp = x + (y * (z / a));
} else if (t <= 8.8e+49) {
tmp = x * (1.0 - (z / a));
} else if ((t <= 3.1e+62) || (!(t <= 1.25e+73) && (t <= 6.5e+177))) {
tmp = x * ((z - a) / t);
} else {
tmp = 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.9d+97)) then
tmp = y
else if (t <= (-2.5d-20)) then
tmp = x - ((x * z) / a)
else if (t <= 3.75d-143) then
tmp = x + (y * (z / a))
else if (t <= 8.8d+49) then
tmp = x * (1.0d0 - (z / a))
else if ((t <= 3.1d+62) .or. (.not. (t <= 1.25d+73)) .and. (t <= 6.5d+177)) then
tmp = x * ((z - a) / t)
else
tmp = 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.9e+97) {
tmp = y;
} else if (t <= -2.5e-20) {
tmp = x - ((x * z) / a);
} else if (t <= 3.75e-143) {
tmp = x + (y * (z / a));
} else if (t <= 8.8e+49) {
tmp = x * (1.0 - (z / a));
} else if ((t <= 3.1e+62) || (!(t <= 1.25e+73) && (t <= 6.5e+177))) {
tmp = x * ((z - a) / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e+97: tmp = y elif t <= -2.5e-20: tmp = x - ((x * z) / a) elif t <= 3.75e-143: tmp = x + (y * (z / a)) elif t <= 8.8e+49: tmp = x * (1.0 - (z / a)) elif (t <= 3.1e+62) or (not (t <= 1.25e+73) and (t <= 6.5e+177)): tmp = x * ((z - a) / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e+97) tmp = y; elseif (t <= -2.5e-20) tmp = Float64(x - Float64(Float64(x * z) / a)); elseif (t <= 3.75e-143) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 8.8e+49) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif ((t <= 3.1e+62) || (!(t <= 1.25e+73) && (t <= 6.5e+177))) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e+97) tmp = y; elseif (t <= -2.5e-20) tmp = x - ((x * z) / a); elseif (t <= 3.75e-143) tmp = x + (y * (z / a)); elseif (t <= 8.8e+49) tmp = x * (1.0 - (z / a)); elseif ((t <= 3.1e+62) || (~((t <= 1.25e+73)) && (t <= 6.5e+177))) tmp = x * ((z - a) / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e+97], y, If[LessEqual[t, -2.5e-20], N[(x - N[(N[(x * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.75e-143], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e+49], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 3.1e+62], And[N[Not[LessEqual[t, 1.25e+73]], $MachinePrecision], LessEqual[t, 6.5e+177]]], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+97}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-20}:\\
\;\;\;\;x - \frac{x \cdot z}{a}\\
\mathbf{elif}\;t \leq 3.75 \cdot 10^{-143}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+49}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+62} \lor \neg \left(t \leq 1.25 \cdot 10^{+73}\right) \land t \leq 6.5 \cdot 10^{+177}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.90000000000000018e97 or 3.10000000000000014e62 < t < 1.24999999999999994e73 or 6.5000000000000002e177 < t Initial program 39.5%
associate-*l/57.3%
Simplified57.3%
Taylor expanded in t around inf 55.2%
if -1.90000000000000018e97 < t < -2.4999999999999999e-20Initial program 86.0%
associate-*l/89.2%
Simplified89.2%
Taylor expanded in y around 0 54.6%
mul-1-neg54.6%
unsub-neg54.6%
associate-/l*54.8%
Simplified54.8%
Taylor expanded in t around 0 50.9%
if -2.4999999999999999e-20 < t < 3.7500000000000002e-143Initial program 92.7%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in t around 0 79.0%
associate-/l*81.0%
Simplified81.0%
Taylor expanded in y around inf 67.2%
associate-*r/69.1%
Simplified69.1%
if 3.7500000000000002e-143 < t < 8.8000000000000003e49Initial program 79.1%
associate-*l/87.3%
Simplified87.3%
Taylor expanded in t around 0 51.8%
associate-/l*61.8%
Simplified61.8%
Taylor expanded in x around inf 53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
if 8.8000000000000003e49 < t < 3.10000000000000014e62 or 1.24999999999999994e73 < t < 6.5000000000000002e177Initial program 58.5%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in t around inf 66.3%
associate-*r/66.3%
mul-1-neg66.3%
associate-*r/66.3%
mul-1-neg66.3%
Simplified66.3%
Taylor expanded in x around inf 54.3%
div-sub54.4%
Simplified54.4%
Final simplification59.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.9e+95)
y
(if (<= t -5.9e-21)
(- x (/ (* x z) a))
(if (<= t 1.76e-143)
(+ x (* y (/ z a)))
(if (<= t 7.5e+49)
(* x (- 1.0 (/ z a)))
(if (<= t 6.5e+63)
(/ x (/ t (- z a)))
(if (<= t 1.45e+73)
y
(if (<= t 2.85e+178) (* x (/ (- z a) t)) y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e+95) {
tmp = y;
} else if (t <= -5.9e-21) {
tmp = x - ((x * z) / a);
} else if (t <= 1.76e-143) {
tmp = x + (y * (z / a));
} else if (t <= 7.5e+49) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6.5e+63) {
tmp = x / (t / (z - a));
} else if (t <= 1.45e+73) {
tmp = y;
} else if (t <= 2.85e+178) {
tmp = x * ((z - a) / t);
} else {
tmp = 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.9d+95)) then
tmp = y
else if (t <= (-5.9d-21)) then
tmp = x - ((x * z) / a)
else if (t <= 1.76d-143) then
tmp = x + (y * (z / a))
else if (t <= 7.5d+49) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 6.5d+63) then
tmp = x / (t / (z - a))
else if (t <= 1.45d+73) then
tmp = y
else if (t <= 2.85d+178) then
tmp = x * ((z - a) / t)
else
tmp = 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.9e+95) {
tmp = y;
} else if (t <= -5.9e-21) {
tmp = x - ((x * z) / a);
} else if (t <= 1.76e-143) {
tmp = x + (y * (z / a));
} else if (t <= 7.5e+49) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6.5e+63) {
tmp = x / (t / (z - a));
} else if (t <= 1.45e+73) {
tmp = y;
} else if (t <= 2.85e+178) {
tmp = x * ((z - a) / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e+95: tmp = y elif t <= -5.9e-21: tmp = x - ((x * z) / a) elif t <= 1.76e-143: tmp = x + (y * (z / a)) elif t <= 7.5e+49: tmp = x * (1.0 - (z / a)) elif t <= 6.5e+63: tmp = x / (t / (z - a)) elif t <= 1.45e+73: tmp = y elif t <= 2.85e+178: tmp = x * ((z - a) / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e+95) tmp = y; elseif (t <= -5.9e-21) tmp = Float64(x - Float64(Float64(x * z) / a)); elseif (t <= 1.76e-143) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 7.5e+49) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 6.5e+63) tmp = Float64(x / Float64(t / Float64(z - a))); elseif (t <= 1.45e+73) tmp = y; elseif (t <= 2.85e+178) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e+95) tmp = y; elseif (t <= -5.9e-21) tmp = x - ((x * z) / a); elseif (t <= 1.76e-143) tmp = x + (y * (z / a)); elseif (t <= 7.5e+49) tmp = x * (1.0 - (z / a)); elseif (t <= 6.5e+63) tmp = x / (t / (z - a)); elseif (t <= 1.45e+73) tmp = y; elseif (t <= 2.85e+178) tmp = x * ((z - a) / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e+95], y, If[LessEqual[t, -5.9e-21], N[(x - N[(N[(x * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.76e-143], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e+49], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e+63], N[(x / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e+73], y, If[LessEqual[t, 2.85e+178], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+95}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -5.9 \cdot 10^{-21}:\\
\;\;\;\;x - \frac{x \cdot z}{a}\\
\mathbf{elif}\;t \leq 1.76 \cdot 10^{-143}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+49}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+63}:\\
\;\;\;\;\frac{x}{\frac{t}{z - a}}\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+73}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 2.85 \cdot 10^{+178}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.9e95 or 6.49999999999999992e63 < t < 1.4500000000000001e73 or 2.85000000000000017e178 < t Initial program 39.5%
associate-*l/57.3%
Simplified57.3%
Taylor expanded in t around inf 55.2%
if -1.9e95 < t < -5.9000000000000003e-21Initial program 86.0%
associate-*l/89.2%
Simplified89.2%
Taylor expanded in y around 0 54.6%
mul-1-neg54.6%
unsub-neg54.6%
associate-/l*54.8%
Simplified54.8%
Taylor expanded in t around 0 50.9%
if -5.9000000000000003e-21 < t < 1.76000000000000005e-143Initial program 92.7%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in t around 0 79.0%
associate-/l*81.0%
Simplified81.0%
Taylor expanded in y around inf 67.2%
associate-*r/69.1%
Simplified69.1%
if 1.76000000000000005e-143 < t < 7.4999999999999995e49Initial program 79.1%
associate-*l/87.3%
Simplified87.3%
Taylor expanded in t around 0 51.8%
associate-/l*61.8%
Simplified61.8%
Taylor expanded in x around inf 53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
if 7.4999999999999995e49 < t < 6.49999999999999992e63Initial program 67.4%
associate-*l/66.9%
Simplified66.9%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Taylor expanded in x around inf 99.0%
div-sub99.5%
Simplified99.5%
clear-num100.0%
un-div-inv100.0%
Applied egg-rr100.0%
if 1.4500000000000001e73 < t < 2.85000000000000017e178Initial program 57.1%
associate-*l/73.9%
Simplified73.9%
Taylor expanded in t around inf 61.2%
associate-*r/61.2%
mul-1-neg61.2%
associate-*r/61.2%
mul-1-neg61.2%
Simplified61.2%
Taylor expanded in x around inf 47.6%
div-sub47.6%
Simplified47.6%
Final simplification59.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= a -8e+58)
(+ x (* y (/ z a)))
(if (<= a -1.48e-64)
(* z (/ (- y x) (- a t)))
(if (<= a 3e-249)
t_1
(if (<= a 2.1e-215)
(/ (* x (- z)) (- a t))
(if (<= a 3.5e-7) t_1 (* x (- 1.0 (/ z a))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -8e+58) {
tmp = x + (y * (z / a));
} else if (a <= -1.48e-64) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 3e-249) {
tmp = t_1;
} else if (a <= 2.1e-215) {
tmp = (x * -z) / (a - t);
} else if (a <= 3.5e-7) {
tmp = t_1;
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (a <= (-8d+58)) then
tmp = x + (y * (z / a))
else if (a <= (-1.48d-64)) then
tmp = z * ((y - x) / (a - t))
else if (a <= 3d-249) then
tmp = t_1
else if (a <= 2.1d-215) then
tmp = (x * -z) / (a - t)
else if (a <= 3.5d-7) then
tmp = t_1
else
tmp = x * (1.0d0 - (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -8e+58) {
tmp = x + (y * (z / a));
} else if (a <= -1.48e-64) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 3e-249) {
tmp = t_1;
} else if (a <= 2.1e-215) {
tmp = (x * -z) / (a - t);
} else if (a <= 3.5e-7) {
tmp = t_1;
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if a <= -8e+58: tmp = x + (y * (z / a)) elif a <= -1.48e-64: tmp = z * ((y - x) / (a - t)) elif a <= 3e-249: tmp = t_1 elif a <= 2.1e-215: tmp = (x * -z) / (a - t) elif a <= 3.5e-7: tmp = t_1 else: tmp = x * (1.0 - (z / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (a <= -8e+58) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (a <= -1.48e-64) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 3e-249) tmp = t_1; elseif (a <= 2.1e-215) tmp = Float64(Float64(x * Float64(-z)) / Float64(a - t)); elseif (a <= 3.5e-7) tmp = t_1; else tmp = Float64(x * Float64(1.0 - Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (a <= -8e+58) tmp = x + (y * (z / a)); elseif (a <= -1.48e-64) tmp = z * ((y - x) / (a - t)); elseif (a <= 3e-249) tmp = t_1; elseif (a <= 2.1e-215) tmp = (x * -z) / (a - t); elseif (a <= 3.5e-7) tmp = t_1; else tmp = x * (1.0 - (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8e+58], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.48e-64], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e-249], t$95$1, If[LessEqual[a, 2.1e-215], N[(N[(x * (-z)), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-7], t$95$1, N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a \leq -8 \cdot 10^{+58}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq -1.48 \cdot 10^{-64}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-249}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-215}:\\
\;\;\;\;\frac{x \cdot \left(-z\right)}{a - t}\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\end{array}
\end{array}
if a < -7.99999999999999955e58Initial program 68.9%
associate-*l/88.6%
Simplified88.6%
Taylor expanded in t around 0 59.6%
associate-/l*71.6%
Simplified71.6%
Taylor expanded in y around inf 61.9%
associate-*r/68.6%
Simplified68.6%
if -7.99999999999999955e58 < a < -1.48e-64Initial program 79.4%
associate-*l/75.8%
Simplified75.8%
Taylor expanded in z around inf 63.0%
div-sub63.0%
Simplified63.0%
if -1.48e-64 < a < 3.00000000000000004e-249 or 2.1e-215 < a < 3.49999999999999984e-7Initial program 69.1%
associate-*l/72.6%
Simplified72.6%
Taylor expanded in y around inf 72.6%
div-sub72.6%
Simplified72.6%
if 3.00000000000000004e-249 < a < 2.1e-215Initial program 87.4%
associate-*l/63.4%
Simplified63.4%
Taylor expanded in y around 0 76.4%
mul-1-neg76.4%
unsub-neg76.4%
associate-/l*76.6%
Simplified76.6%
Taylor expanded in z around inf 88.7%
associate-*r/88.7%
associate-*r*88.7%
neg-mul-188.7%
Simplified88.7%
if 3.49999999999999984e-7 < a Initial program 76.7%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in t around 0 64.3%
associate-/l*72.9%
Simplified72.9%
Taylor expanded in x around inf 63.8%
mul-1-neg63.8%
unsub-neg63.8%
Simplified63.8%
Final simplification68.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ y (/ (- t) (- z t)))))
(if (<= t -1.75e+27)
t_1
(if (<= t 1.75e-28)
(+ x (* y (/ z a)))
(if (<= t 3.6e+34)
t_1
(if (<= t 1.1e+47)
(* x (- 1.0 (/ z a)))
(if (<= t 2.25e+139) (* x (/ (- z a) t)) t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y / (-t / (z - t));
double tmp;
if (t <= -1.75e+27) {
tmp = t_1;
} else if (t <= 1.75e-28) {
tmp = x + (y * (z / a));
} else if (t <= 3.6e+34) {
tmp = t_1;
} else if (t <= 1.1e+47) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2.25e+139) {
tmp = x * ((z - 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) :: tmp
t_1 = y / (-t / (z - t))
if (t <= (-1.75d+27)) then
tmp = t_1
else if (t <= 1.75d-28) then
tmp = x + (y * (z / a))
else if (t <= 3.6d+34) then
tmp = t_1
else if (t <= 1.1d+47) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 2.25d+139) then
tmp = x * ((z - 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 / (-t / (z - t));
double tmp;
if (t <= -1.75e+27) {
tmp = t_1;
} else if (t <= 1.75e-28) {
tmp = x + (y * (z / a));
} else if (t <= 3.6e+34) {
tmp = t_1;
} else if (t <= 1.1e+47) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2.25e+139) {
tmp = x * ((z - a) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y / (-t / (z - t)) tmp = 0 if t <= -1.75e+27: tmp = t_1 elif t <= 1.75e-28: tmp = x + (y * (z / a)) elif t <= 3.6e+34: tmp = t_1 elif t <= 1.1e+47: tmp = x * (1.0 - (z / a)) elif t <= 2.25e+139: tmp = x * ((z - a) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y / Float64(Float64(-t) / Float64(z - t))) tmp = 0.0 if (t <= -1.75e+27) tmp = t_1; elseif (t <= 1.75e-28) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 3.6e+34) tmp = t_1; elseif (t <= 1.1e+47) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 2.25e+139) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y / (-t / (z - t)); tmp = 0.0; if (t <= -1.75e+27) tmp = t_1; elseif (t <= 1.75e-28) tmp = x + (y * (z / a)); elseif (t <= 3.6e+34) tmp = t_1; elseif (t <= 1.1e+47) tmp = x * (1.0 - (z / a)); elseif (t <= 2.25e+139) tmp = x * ((z - a) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[((-t) / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e+27], t$95$1, If[LessEqual[t, 1.75e-28], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+34], t$95$1, If[LessEqual[t, 1.1e+47], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e+139], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{-t}{z - t}}\\
\mathbf{if}\;t \leq -1.75 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-28}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+139}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.7500000000000001e27 or 1.75e-28 < t < 3.6e34 or 2.25e139 < t Initial program 53.1%
associate-*l/66.2%
div-inv66.2%
associate-*l*72.3%
Applied egg-rr72.3%
Taylor expanded in x around 0 52.2%
associate-/l*65.6%
Simplified65.6%
Taylor expanded in a around 0 58.2%
neg-mul-158.2%
distribute-neg-frac58.2%
Simplified58.2%
if -1.7500000000000001e27 < t < 1.75e-28Initial program 93.1%
associate-*l/93.8%
Simplified93.8%
Taylor expanded in t around 0 78.2%
associate-/l*81.1%
Simplified81.1%
Taylor expanded in y around inf 62.8%
associate-*r/64.2%
Simplified64.2%
if 3.6e34 < t < 1.1e47Initial program 35.1%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in t around 0 35.1%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in x around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if 1.1e47 < t < 2.25e139Initial program 52.8%
associate-*l/67.7%
Simplified67.7%
Taylor expanded in t around inf 69.3%
associate-*r/69.3%
mul-1-neg69.3%
associate-*r/69.3%
mul-1-neg69.3%
Simplified69.3%
Taylor expanded in x around inf 52.5%
div-sub52.5%
Simplified52.5%
Final simplification61.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -5.2e+28)
t_1
(if (<= t 2.6e-38)
(+ x (/ z (/ a (- y x))))
(if (<= t 7.4e+33)
t_1
(if (<= t 1.15e+47)
(* x (- 1.0 (/ z a)))
(if (<= t 8e+138) (* x (/ (- z a) t)) (/ y (/ (- t) (- z t))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -5.2e+28) {
tmp = t_1;
} else if (t <= 2.6e-38) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 7.4e+33) {
tmp = t_1;
} else if (t <= 1.15e+47) {
tmp = x * (1.0 - (z / a));
} else if (t <= 8e+138) {
tmp = x * ((z - a) / t);
} else {
tmp = y / (-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) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-5.2d+28)) then
tmp = t_1
else if (t <= 2.6d-38) then
tmp = x + (z / (a / (y - x)))
else if (t <= 7.4d+33) then
tmp = t_1
else if (t <= 1.15d+47) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 8d+138) then
tmp = x * ((z - a) / t)
else
tmp = y / (-t / (z - t))
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 - t));
double tmp;
if (t <= -5.2e+28) {
tmp = t_1;
} else if (t <= 2.6e-38) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 7.4e+33) {
tmp = t_1;
} else if (t <= 1.15e+47) {
tmp = x * (1.0 - (z / a));
} else if (t <= 8e+138) {
tmp = x * ((z - a) / t);
} else {
tmp = y / (-t / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -5.2e+28: tmp = t_1 elif t <= 2.6e-38: tmp = x + (z / (a / (y - x))) elif t <= 7.4e+33: tmp = t_1 elif t <= 1.15e+47: tmp = x * (1.0 - (z / a)) elif t <= 8e+138: tmp = x * ((z - a) / t) else: tmp = y / (-t / (z - t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -5.2e+28) tmp = t_1; elseif (t <= 2.6e-38) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); elseif (t <= 7.4e+33) tmp = t_1; elseif (t <= 1.15e+47) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 8e+138) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = Float64(y / Float64(Float64(-t) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -5.2e+28) tmp = t_1; elseif (t <= 2.6e-38) tmp = x + (z / (a / (y - x))); elseif (t <= 7.4e+33) tmp = t_1; elseif (t <= 1.15e+47) tmp = x * (1.0 - (z / a)); elseif (t <= 8e+138) tmp = x * ((z - a) / t); else tmp = y / (-t / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e+28], t$95$1, If[LessEqual[t, 2.6e-38], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.4e+33], t$95$1, If[LessEqual[t, 1.15e+47], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+138], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(y / N[((-t) / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-38}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+138}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{-t}{z - t}}\\
\end{array}
\end{array}
if t < -5.2000000000000004e28 or 2.60000000000000011e-38 < t < 7.3999999999999997e33Initial program 61.4%
associate-*l/70.0%
Simplified70.0%
Taylor expanded in y around inf 63.6%
div-sub63.6%
Simplified63.6%
if -5.2000000000000004e28 < t < 2.60000000000000011e-38Initial program 93.1%
associate-*l/93.7%
Simplified93.7%
Taylor expanded in t around 0 78.7%
associate-/l*81.7%
Simplified81.7%
if 7.3999999999999997e33 < t < 1.1499999999999999e47Initial program 35.1%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in t around 0 35.1%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in x around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if 1.1499999999999999e47 < t < 8.0000000000000003e138Initial program 52.8%
associate-*l/67.7%
Simplified67.7%
Taylor expanded in t around inf 69.3%
associate-*r/69.3%
mul-1-neg69.3%
associate-*r/69.3%
mul-1-neg69.3%
Simplified69.3%
Taylor expanded in x around inf 52.5%
div-sub52.5%
Simplified52.5%
if 8.0000000000000003e138 < t Initial program 32.0%
associate-*l/57.0%
div-inv56.9%
associate-*l*63.3%
Applied egg-rr63.3%
Taylor expanded in x around 0 46.0%
associate-/l*72.4%
Simplified72.4%
Taylor expanded in a around 0 72.4%
neg-mul-172.4%
distribute-neg-frac72.4%
Simplified72.4%
Final simplification73.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ a z)))) (t_2 (* y (/ (- z t) (- a t)))))
(if (<= t -1.15e+23)
t_2
(if (<= t 3.6e-35)
t_1
(if (<= t 2.45e+30)
t_2
(if (<= t 5.8e+45)
t_1
(if (<= t 9.2e+138)
(* x (/ (- z a) t))
(/ y (/ (- t) (- z t))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) / (a / z));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (t <= -1.15e+23) {
tmp = t_2;
} else if (t <= 3.6e-35) {
tmp = t_1;
} else if (t <= 2.45e+30) {
tmp = t_2;
} else if (t <= 5.8e+45) {
tmp = t_1;
} else if (t <= 9.2e+138) {
tmp = x * ((z - a) / t);
} else {
tmp = y / (-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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((y - x) / (a / z))
t_2 = y * ((z - t) / (a - t))
if (t <= (-1.15d+23)) then
tmp = t_2
else if (t <= 3.6d-35) then
tmp = t_1
else if (t <= 2.45d+30) then
tmp = t_2
else if (t <= 5.8d+45) then
tmp = t_1
else if (t <= 9.2d+138) then
tmp = x * ((z - a) / t)
else
tmp = y / (-t / (z - t))
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 - x) / (a / z));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (t <= -1.15e+23) {
tmp = t_2;
} else if (t <= 3.6e-35) {
tmp = t_1;
} else if (t <= 2.45e+30) {
tmp = t_2;
} else if (t <= 5.8e+45) {
tmp = t_1;
} else if (t <= 9.2e+138) {
tmp = x * ((z - a) / t);
} else {
tmp = y / (-t / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) / (a / z)) t_2 = y * ((z - t) / (a - t)) tmp = 0 if t <= -1.15e+23: tmp = t_2 elif t <= 3.6e-35: tmp = t_1 elif t <= 2.45e+30: tmp = t_2 elif t <= 5.8e+45: tmp = t_1 elif t <= 9.2e+138: tmp = x * ((z - a) / t) else: tmp = y / (-t / (z - t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - x) / Float64(a / z))) t_2 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -1.15e+23) tmp = t_2; elseif (t <= 3.6e-35) tmp = t_1; elseif (t <= 2.45e+30) tmp = t_2; elseif (t <= 5.8e+45) tmp = t_1; elseif (t <= 9.2e+138) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = Float64(y / Float64(Float64(-t) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - x) / (a / z)); t_2 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -1.15e+23) tmp = t_2; elseif (t <= 3.6e-35) tmp = t_1; elseif (t <= 2.45e+30) tmp = t_2; elseif (t <= 5.8e+45) tmp = t_1; elseif (t <= 9.2e+138) tmp = x * ((z - a) / t); else tmp = y / (-t / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.15e+23], t$95$2, If[LessEqual[t, 3.6e-35], t$95$1, If[LessEqual[t, 2.45e+30], t$95$2, If[LessEqual[t, 5.8e+45], t$95$1, If[LessEqual[t, 9.2e+138], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(y / N[((-t) / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{\frac{a}{z}}\\
t_2 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -1.15 \cdot 10^{+23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.45 \cdot 10^{+30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{+138}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{-t}{z - t}}\\
\end{array}
\end{array}
if t < -1.15e23 or 3.60000000000000019e-35 < t < 2.44999999999999992e30Initial program 60.4%
associate-*l/69.2%
Simplified69.2%
Taylor expanded in y around inf 63.9%
div-sub63.9%
Simplified63.9%
if -1.15e23 < t < 3.60000000000000019e-35 or 2.44999999999999992e30 < t < 5.7999999999999994e45Initial program 91.8%
associate-*l/94.0%
Simplified94.0%
associate-/r/97.0%
Applied egg-rr97.0%
Taylor expanded in t around 0 83.4%
if 5.7999999999999994e45 < t < 9.2000000000000003e138Initial program 52.8%
associate-*l/67.7%
Simplified67.7%
Taylor expanded in t around inf 69.3%
associate-*r/69.3%
mul-1-neg69.3%
associate-*r/69.3%
mul-1-neg69.3%
Simplified69.3%
Taylor expanded in x around inf 52.5%
div-sub52.5%
Simplified52.5%
if 9.2000000000000003e138 < t Initial program 32.0%
associate-*l/57.0%
div-inv56.9%
associate-*l*63.3%
Applied egg-rr63.3%
Taylor expanded in x around 0 46.0%
associate-/l*72.4%
Simplified72.4%
Taylor expanded in a around 0 72.4%
neg-mul-172.4%
distribute-neg-frac72.4%
Simplified72.4%
Final simplification73.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.5e+104)
x
(if (<= a -6.2e-25)
(/ (- x) (/ a z))
(if (<= a -3.9e-85)
y
(if (<= a -2.5e-145)
(/ y (/ a z))
(if (<= a 1.25e-245)
y
(if (<= a 5.2e-156) (* x (/ z t)) (if (<= a 1.6e-6) y x))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e+104) {
tmp = x;
} else if (a <= -6.2e-25) {
tmp = -x / (a / z);
} else if (a <= -3.9e-85) {
tmp = y;
} else if (a <= -2.5e-145) {
tmp = y / (a / z);
} else if (a <= 1.25e-245) {
tmp = y;
} else if (a <= 5.2e-156) {
tmp = x * (z / t);
} else if (a <= 1.6e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.5d+104)) then
tmp = x
else if (a <= (-6.2d-25)) then
tmp = -x / (a / z)
else if (a <= (-3.9d-85)) then
tmp = y
else if (a <= (-2.5d-145)) then
tmp = y / (a / z)
else if (a <= 1.25d-245) then
tmp = y
else if (a <= 5.2d-156) then
tmp = x * (z / t)
else if (a <= 1.6d-6) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e+104) {
tmp = x;
} else if (a <= -6.2e-25) {
tmp = -x / (a / z);
} else if (a <= -3.9e-85) {
tmp = y;
} else if (a <= -2.5e-145) {
tmp = y / (a / z);
} else if (a <= 1.25e-245) {
tmp = y;
} else if (a <= 5.2e-156) {
tmp = x * (z / t);
} else if (a <= 1.6e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.5e+104: tmp = x elif a <= -6.2e-25: tmp = -x / (a / z) elif a <= -3.9e-85: tmp = y elif a <= -2.5e-145: tmp = y / (a / z) elif a <= 1.25e-245: tmp = y elif a <= 5.2e-156: tmp = x * (z / t) elif a <= 1.6e-6: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.5e+104) tmp = x; elseif (a <= -6.2e-25) tmp = Float64(Float64(-x) / Float64(a / z)); elseif (a <= -3.9e-85) tmp = y; elseif (a <= -2.5e-145) tmp = Float64(y / Float64(a / z)); elseif (a <= 1.25e-245) tmp = y; elseif (a <= 5.2e-156) tmp = Float64(x * Float64(z / t)); elseif (a <= 1.6e-6) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.5e+104) tmp = x; elseif (a <= -6.2e-25) tmp = -x / (a / z); elseif (a <= -3.9e-85) tmp = y; elseif (a <= -2.5e-145) tmp = y / (a / z); elseif (a <= 1.25e-245) tmp = y; elseif (a <= 5.2e-156) tmp = x * (z / t); elseif (a <= 1.6e-6) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.5e+104], x, If[LessEqual[a, -6.2e-25], N[((-x) / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.9e-85], y, If[LessEqual[a, -2.5e-145], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-245], y, If[LessEqual[a, 5.2e-156], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-6], y, x]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{+104}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-25}:\\
\;\;\;\;\frac{-x}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-85}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-145}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-245}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-156}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-6}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.49999999999999984e104 or 1.5999999999999999e-6 < a Initial program 73.2%
associate-*l/91.2%
Simplified91.2%
Taylor expanded in a around inf 54.8%
if -1.49999999999999984e104 < a < -6.19999999999999989e-25Initial program 77.7%
associate-*l/77.1%
Simplified77.1%
Taylor expanded in y around 0 52.4%
mul-1-neg52.4%
unsub-neg52.4%
associate-/l*49.8%
Simplified49.8%
Taylor expanded in t around 0 45.6%
Taylor expanded in z around inf 35.7%
mul-1-neg35.7%
associate-/l*32.9%
distribute-neg-frac32.9%
Simplified32.9%
if -6.19999999999999989e-25 < a < -3.89999999999999988e-85 or -2.4999999999999999e-145 < a < 1.2499999999999999e-245 or 5.2000000000000002e-156 < a < 1.5999999999999999e-6Initial program 66.9%
associate-*l/71.3%
Simplified71.3%
Taylor expanded in t around inf 43.6%
if -3.89999999999999988e-85 < a < -2.4999999999999999e-145Initial program 84.1%
associate-*l/75.6%
div-inv76.0%
associate-*l*83.4%
Applied egg-rr83.4%
Taylor expanded in x around 0 68.2%
associate-/l*68.3%
Simplified68.3%
Taylor expanded in t around 0 52.2%
associate-/l*52.2%
Simplified52.2%
if 1.2499999999999999e-245 < a < 5.2000000000000002e-156Initial program 79.8%
associate-*l/69.3%
Simplified69.3%
Taylor expanded in t around inf 63.7%
associate-*r/63.7%
mul-1-neg63.7%
associate-*r/63.7%
mul-1-neg63.7%
Simplified63.7%
Taylor expanded in x around inf 49.3%
div-sub49.3%
Simplified49.3%
Taylor expanded in z around inf 49.3%
Final simplification47.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -8.2e+94)
y
(if (<= t 3.6e-235)
t_1
(if (<= t 9.8e-216)
(/ y (/ a z))
(if (<= t 1.5e+43) t_1 (if (<= t 7e+177) (* x (/ (- z a) t)) y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -8.2e+94) {
tmp = y;
} else if (t <= 3.6e-235) {
tmp = t_1;
} else if (t <= 9.8e-216) {
tmp = y / (a / z);
} else if (t <= 1.5e+43) {
tmp = t_1;
} else if (t <= 7e+177) {
tmp = x * ((z - a) / t);
} else {
tmp = 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 * (1.0d0 - (z / a))
if (t <= (-8.2d+94)) then
tmp = y
else if (t <= 3.6d-235) then
tmp = t_1
else if (t <= 9.8d-216) then
tmp = y / (a / z)
else if (t <= 1.5d+43) then
tmp = t_1
else if (t <= 7d+177) then
tmp = x * ((z - a) / t)
else
tmp = 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 * (1.0 - (z / a));
double tmp;
if (t <= -8.2e+94) {
tmp = y;
} else if (t <= 3.6e-235) {
tmp = t_1;
} else if (t <= 9.8e-216) {
tmp = y / (a / z);
} else if (t <= 1.5e+43) {
tmp = t_1;
} else if (t <= 7e+177) {
tmp = x * ((z - a) / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -8.2e+94: tmp = y elif t <= 3.6e-235: tmp = t_1 elif t <= 9.8e-216: tmp = y / (a / z) elif t <= 1.5e+43: tmp = t_1 elif t <= 7e+177: tmp = x * ((z - a) / t) else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -8.2e+94) tmp = y; elseif (t <= 3.6e-235) tmp = t_1; elseif (t <= 9.8e-216) tmp = Float64(y / Float64(a / z)); elseif (t <= 1.5e+43) tmp = t_1; elseif (t <= 7e+177) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -8.2e+94) tmp = y; elseif (t <= 3.6e-235) tmp = t_1; elseif (t <= 9.8e-216) tmp = y / (a / z); elseif (t <= 1.5e+43) tmp = t_1; elseif (t <= 7e+177) tmp = x * ((z - a) / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.2e+94], y, If[LessEqual[t, 3.6e-235], t$95$1, If[LessEqual[t, 9.8e-216], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+43], t$95$1, If[LessEqual[t, 7e+177], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -8.2 \cdot 10^{+94}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-235}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-216}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+43}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+177}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -8.20000000000000061e94 or 6.99999999999999983e177 < t Initial program 38.6%
associate-*l/56.0%
Simplified56.0%
Taylor expanded in t around inf 53.9%
if -8.20000000000000061e94 < t < 3.59999999999999999e-235 or 9.8000000000000003e-216 < t < 1.50000000000000008e43Initial program 87.8%
associate-*l/92.5%
Simplified92.5%
Taylor expanded in t around 0 66.4%
associate-/l*70.6%
Simplified70.6%
Taylor expanded in x around inf 55.3%
mul-1-neg55.3%
unsub-neg55.3%
Simplified55.3%
if 3.59999999999999999e-235 < t < 9.8000000000000003e-216Initial program 99.6%
associate-*l/59.4%
div-inv59.4%
associate-*l*99.3%
Applied egg-rr99.3%
Taylor expanded in x around 0 99.6%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around 0 86.2%
associate-/l*86.6%
Simplified86.6%
if 1.50000000000000008e43 < t < 6.99999999999999983e177Initial program 56.0%
associate-*l/71.1%
Simplified71.1%
Taylor expanded in t around inf 69.0%
associate-*r/69.0%
mul-1-neg69.0%
associate-*r/69.0%
mul-1-neg69.0%
Simplified69.0%
Taylor expanded in x around inf 48.9%
div-sub49.0%
Simplified49.0%
Final simplification55.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= a -4.2e+99)
(+ x (* y (/ z a)))
(if (<= a 8.5e-243)
t_1
(if (<= a 8.5e-216)
(/ (* x (- z)) (- a t))
(if (<= a 3.2e-6) t_1 (* x (- 1.0 (/ z a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -4.2e+99) {
tmp = x + (y * (z / a));
} else if (a <= 8.5e-243) {
tmp = t_1;
} else if (a <= 8.5e-216) {
tmp = (x * -z) / (a - t);
} else if (a <= 3.2e-6) {
tmp = t_1;
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (a <= (-4.2d+99)) then
tmp = x + (y * (z / a))
else if (a <= 8.5d-243) then
tmp = t_1
else if (a <= 8.5d-216) then
tmp = (x * -z) / (a - t)
else if (a <= 3.2d-6) then
tmp = t_1
else
tmp = x * (1.0d0 - (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -4.2e+99) {
tmp = x + (y * (z / a));
} else if (a <= 8.5e-243) {
tmp = t_1;
} else if (a <= 8.5e-216) {
tmp = (x * -z) / (a - t);
} else if (a <= 3.2e-6) {
tmp = t_1;
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if a <= -4.2e+99: tmp = x + (y * (z / a)) elif a <= 8.5e-243: tmp = t_1 elif a <= 8.5e-216: tmp = (x * -z) / (a - t) elif a <= 3.2e-6: tmp = t_1 else: tmp = x * (1.0 - (z / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (a <= -4.2e+99) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (a <= 8.5e-243) tmp = t_1; elseif (a <= 8.5e-216) tmp = Float64(Float64(x * Float64(-z)) / Float64(a - t)); elseif (a <= 3.2e-6) tmp = t_1; else tmp = Float64(x * Float64(1.0 - Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (a <= -4.2e+99) tmp = x + (y * (z / a)); elseif (a <= 8.5e-243) tmp = t_1; elseif (a <= 8.5e-216) tmp = (x * -z) / (a - t); elseif (a <= 3.2e-6) tmp = t_1; else tmp = x * (1.0 - (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+99], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-243], t$95$1, If[LessEqual[a, 8.5e-216], N[(N[(x * (-z)), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-6], t$95$1, N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+99}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-243}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-216}:\\
\;\;\;\;\frac{x \cdot \left(-z\right)}{a - t}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-6}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\end{array}
\end{array}
if a < -4.2000000000000002e99Initial program 69.8%
associate-*l/92.8%
Simplified92.8%
Taylor expanded in t around 0 62.6%
associate-/l*76.7%
Simplified76.7%
Taylor expanded in y around inf 67.2%
associate-*r/73.1%
Simplified73.1%
if -4.2000000000000002e99 < a < 8.5000000000000002e-243 or 8.50000000000000003e-216 < a < 3.1999999999999999e-6Initial program 71.1%
associate-*l/72.8%
Simplified72.8%
Taylor expanded in y around inf 64.5%
div-sub64.5%
Simplified64.5%
if 8.5000000000000002e-243 < a < 8.50000000000000003e-216Initial program 87.4%
associate-*l/63.4%
Simplified63.4%
Taylor expanded in y around 0 76.4%
mul-1-neg76.4%
unsub-neg76.4%
associate-/l*76.6%
Simplified76.6%
Taylor expanded in z around inf 88.7%
associate-*r/88.7%
associate-*r*88.7%
neg-mul-188.7%
Simplified88.7%
if 3.1999999999999999e-6 < a Initial program 76.7%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in t around 0 64.3%
associate-/l*72.9%
Simplified72.9%
Taylor expanded in x around inf 63.8%
mul-1-neg63.8%
unsub-neg63.8%
Simplified63.8%
Final simplification66.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4.1e+77) (not (<= t 3.35e+177))) (+ y (/ (- x y) (/ t z))) (+ x (* (- z t) (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.1e+77) || !(t <= 3.35e+177)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x + ((z - t) * ((y - x) / (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 <= (-4.1d+77)) .or. (.not. (t <= 3.35d+177))) then
tmp = y + ((x - y) / (t / z))
else
tmp = x + ((z - t) * ((y - x) / (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 <= -4.1e+77) || !(t <= 3.35e+177)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x + ((z - t) * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4.1e+77) or not (t <= 3.35e+177): tmp = y + ((x - y) / (t / z)) else: tmp = x + ((z - t) * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4.1e+77) || !(t <= 3.35e+177)) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4.1e+77) || ~((t <= 3.35e+177))) tmp = y + ((x - y) / (t / z)); else tmp = x + ((z - t) * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4.1e+77], N[Not[LessEqual[t, 3.35e+177]], $MachinePrecision]], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.1 \cdot 10^{+77} \lor \neg \left(t \leq 3.35 \cdot 10^{+177}\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if t < -4.1000000000000001e77 or 3.3500000000000002e177 < t Initial program 40.1%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 69.4%
associate-*r/69.4%
mul-1-neg69.4%
associate-*r/69.4%
mul-1-neg69.4%
Simplified69.4%
Taylor expanded in a around 0 69.5%
mul-1-neg69.5%
*-commutative69.5%
unsub-neg69.5%
associate-/l*76.8%
Simplified76.8%
if -4.1000000000000001e77 < t < 3.3500000000000002e177Initial program 84.3%
associate-*l/89.0%
Simplified89.0%
Final simplification85.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -4.8e+95)
y
(if (<= t 5e-235)
t_1
(if (<= t 1.55e-214) (/ y (/ a z)) (if (<= t 7e+139) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -4.8e+95) {
tmp = y;
} else if (t <= 5e-235) {
tmp = t_1;
} else if (t <= 1.55e-214) {
tmp = y / (a / z);
} else if (t <= 7e+139) {
tmp = t_1;
} else {
tmp = 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 * (1.0d0 - (z / a))
if (t <= (-4.8d+95)) then
tmp = y
else if (t <= 5d-235) then
tmp = t_1
else if (t <= 1.55d-214) then
tmp = y / (a / z)
else if (t <= 7d+139) then
tmp = t_1
else
tmp = 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 * (1.0 - (z / a));
double tmp;
if (t <= -4.8e+95) {
tmp = y;
} else if (t <= 5e-235) {
tmp = t_1;
} else if (t <= 1.55e-214) {
tmp = y / (a / z);
} else if (t <= 7e+139) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -4.8e+95: tmp = y elif t <= 5e-235: tmp = t_1 elif t <= 1.55e-214: tmp = y / (a / z) elif t <= 7e+139: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -4.8e+95) tmp = y; elseif (t <= 5e-235) tmp = t_1; elseif (t <= 1.55e-214) tmp = Float64(y / Float64(a / z)); elseif (t <= 7e+139) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -4.8e+95) tmp = y; elseif (t <= 5e-235) tmp = t_1; elseif (t <= 1.55e-214) tmp = y / (a / z); elseif (t <= 7e+139) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+95], y, If[LessEqual[t, 5e-235], t$95$1, If[LessEqual[t, 1.55e-214], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e+139], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+95}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-235}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-214}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.8000000000000001e95 or 6.99999999999999957e139 < t Initial program 41.1%
associate-*l/58.5%
Simplified58.5%
Taylor expanded in t around inf 52.2%
if -4.8000000000000001e95 < t < 4.9999999999999998e-235 or 1.55000000000000002e-214 < t < 6.99999999999999957e139Initial program 83.6%
associate-*l/89.5%
Simplified89.5%
Taylor expanded in t around 0 61.6%
associate-/l*65.1%
Simplified65.1%
Taylor expanded in x around inf 51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
if 4.9999999999999998e-235 < t < 1.55000000000000002e-214Initial program 99.6%
associate-*l/59.4%
div-inv59.4%
associate-*l*99.3%
Applied egg-rr99.3%
Taylor expanded in x around 0 99.6%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around 0 86.2%
associate-/l*86.6%
Simplified86.6%
Final simplification52.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -8e+33) (not (<= t 3.6e-29))) (+ y (/ (- x y) (/ t z))) (+ x (* (- z t) (/ (- y x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -8e+33) || !(t <= 3.6e-29)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x + ((z - t) * ((y - x) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-8d+33)) .or. (.not. (t <= 3.6d-29))) then
tmp = y + ((x - y) / (t / z))
else
tmp = x + ((z - t) * ((y - x) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -8e+33) || !(t <= 3.6e-29)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x + ((z - t) * ((y - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -8e+33) or not (t <= 3.6e-29): tmp = y + ((x - y) / (t / z)) else: tmp = x + ((z - t) * ((y - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -8e+33) || !(t <= 3.6e-29)) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -8e+33) || ~((t <= 3.6e-29))) tmp = y + ((x - y) / (t / z)); else tmp = x + ((z - t) * ((y - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -8e+33], N[Not[LessEqual[t, 3.6e-29]], $MachinePrecision]], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+33} \lor \neg \left(t \leq 3.6 \cdot 10^{-29}\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a}\\
\end{array}
\end{array}
if t < -7.9999999999999996e33 or 3.59999999999999974e-29 < t Initial program 51.6%
associate-*l/66.5%
Simplified66.5%
Taylor expanded in t around inf 66.0%
associate-*r/66.0%
mul-1-neg66.0%
associate-*r/66.0%
mul-1-neg66.0%
Simplified66.0%
Taylor expanded in a around 0 63.5%
mul-1-neg63.5%
*-commutative63.5%
unsub-neg63.5%
associate-/l*69.5%
Simplified69.5%
if -7.9999999999999996e33 < t < 3.59999999999999974e-29Initial program 93.2%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in a around inf 84.3%
Final simplification77.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.75e+34) (not (<= t 6.2e-29))) (+ y (/ (- x y) (/ t z))) (- x (/ (- x y) (/ a (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.75e+34) || !(t <= 6.2e-29)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x - ((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 ((t <= (-1.75d+34)) .or. (.not. (t <= 6.2d-29))) then
tmp = y + ((x - y) / (t / z))
else
tmp = x - ((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 ((t <= -1.75e+34) || !(t <= 6.2e-29)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x - ((x - y) / (a / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.75e+34) or not (t <= 6.2e-29): tmp = y + ((x - y) / (t / z)) else: tmp = x - ((x - y) / (a / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.75e+34) || !(t <= 6.2e-29)) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); else tmp = Float64(x - Float64(Float64(x - y) / Float64(a / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.75e+34) || ~((t <= 6.2e-29))) tmp = y + ((x - y) / (t / z)); else tmp = x - ((x - y) / (a / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.75e+34], N[Not[LessEqual[t, 6.2e-29]], $MachinePrecision]], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.75 \cdot 10^{+34} \lor \neg \left(t \leq 6.2 \cdot 10^{-29}\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a}{z - t}}\\
\end{array}
\end{array}
if t < -1.74999999999999999e34 or 6.20000000000000052e-29 < t Initial program 51.6%
associate-*l/66.5%
Simplified66.5%
Taylor expanded in t around inf 66.0%
associate-*r/66.0%
mul-1-neg66.0%
associate-*r/66.0%
mul-1-neg66.0%
Simplified66.0%
Taylor expanded in a around 0 63.5%
mul-1-neg63.5%
*-commutative63.5%
unsub-neg63.5%
associate-/l*69.5%
Simplified69.5%
if -1.74999999999999999e34 < t < 6.20000000000000052e-29Initial program 93.2%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in a around inf 82.1%
associate-/l*86.1%
Simplified86.1%
Final simplification77.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.6e+34)
(+ y (/ (- x y) (/ t z)))
(if (<= t 2.2e-28)
(- x (/ (- x y) (/ a (- z t))))
(+ y (/ (* (- y x) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.6e+34) {
tmp = y + ((x - y) / (t / z));
} else if (t <= 2.2e-28) {
tmp = x - ((x - y) / (a / (z - t)));
} else {
tmp = y + (((y - x) * (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 (t <= (-1.6d+34)) then
tmp = y + ((x - y) / (t / z))
else if (t <= 2.2d-28) then
tmp = x - ((x - y) / (a / (z - t)))
else
tmp = y + (((y - x) * (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 (t <= -1.6e+34) {
tmp = y + ((x - y) / (t / z));
} else if (t <= 2.2e-28) {
tmp = x - ((x - y) / (a / (z - t)));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.6e+34: tmp = y + ((x - y) / (t / z)) elif t <= 2.2e-28: tmp = x - ((x - y) / (a / (z - t))) else: tmp = y + (((y - x) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.6e+34) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); elseif (t <= 2.2e-28) tmp = Float64(x - Float64(Float64(x - y) / Float64(a / Float64(z - t)))); else tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.6e+34) tmp = y + ((x - y) / (t / z)); elseif (t <= 2.2e-28) tmp = x - ((x - y) / (a / (z - t))); else tmp = y + (((y - x) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.6e+34], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-28], N[(x - N[(N[(x - y), $MachinePrecision] / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+34}:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-28}:\\
\;\;\;\;x - \frac{x - y}{\frac{a}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if t < -1.5999999999999999e34Initial program 54.8%
associate-*l/65.1%
Simplified65.1%
Taylor expanded in t around inf 64.8%
associate-*r/64.8%
mul-1-neg64.8%
associate-*r/64.8%
mul-1-neg64.8%
Simplified64.8%
Taylor expanded in a around 0 63.0%
mul-1-neg63.0%
*-commutative63.0%
unsub-neg63.0%
associate-/l*71.5%
Simplified71.5%
if -1.5999999999999999e34 < t < 2.19999999999999996e-28Initial program 93.2%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in a around inf 82.1%
associate-/l*86.1%
Simplified86.1%
if 2.19999999999999996e-28 < t Initial program 49.0%
associate-*l/67.5%
Simplified67.5%
Taylor expanded in t around inf 67.0%
associate--l+67.0%
distribute-lft-out--67.0%
div-sub67.0%
mul-1-neg67.0%
unsub-neg67.0%
distribute-rgt-out--68.5%
Simplified68.5%
Final simplification78.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.15e+102)
x
(if (<= a -2.85e-145)
(* z (/ y a))
(if (<= a 6.8e-250)
y
(if (<= a 5.1e-155) (* x (/ z t)) (if (<= a 4e-7) y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.15e+102) {
tmp = x;
} else if (a <= -2.85e-145) {
tmp = z * (y / a);
} else if (a <= 6.8e-250) {
tmp = y;
} else if (a <= 5.1e-155) {
tmp = x * (z / t);
} else if (a <= 4e-7) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-2.15d+102)) then
tmp = x
else if (a <= (-2.85d-145)) then
tmp = z * (y / a)
else if (a <= 6.8d-250) then
tmp = y
else if (a <= 5.1d-155) then
tmp = x * (z / t)
else if (a <= 4d-7) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.15e+102) {
tmp = x;
} else if (a <= -2.85e-145) {
tmp = z * (y / a);
} else if (a <= 6.8e-250) {
tmp = y;
} else if (a <= 5.1e-155) {
tmp = x * (z / t);
} else if (a <= 4e-7) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.15e+102: tmp = x elif a <= -2.85e-145: tmp = z * (y / a) elif a <= 6.8e-250: tmp = y elif a <= 5.1e-155: tmp = x * (z / t) elif a <= 4e-7: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.15e+102) tmp = x; elseif (a <= -2.85e-145) tmp = Float64(z * Float64(y / a)); elseif (a <= 6.8e-250) tmp = y; elseif (a <= 5.1e-155) tmp = Float64(x * Float64(z / t)); elseif (a <= 4e-7) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.15e+102) tmp = x; elseif (a <= -2.85e-145) tmp = z * (y / a); elseif (a <= 6.8e-250) tmp = y; elseif (a <= 5.1e-155) tmp = x * (z / t); elseif (a <= 4e-7) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.15e+102], x, If[LessEqual[a, -2.85e-145], N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-250], y, If[LessEqual[a, 5.1e-155], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e-7], y, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.15 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.85 \cdot 10^{-145}:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-250}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 5.1 \cdot 10^{-155}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{-7}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.15e102 or 3.9999999999999998e-7 < a Initial program 73.2%
associate-*l/91.2%
Simplified91.2%
Taylor expanded in a around inf 54.8%
if -2.15e102 < a < -2.85000000000000016e-145Initial program 79.3%
associate-*l/74.2%
div-inv74.3%
associate-*l*80.8%
Applied egg-rr80.8%
Taylor expanded in x around 0 53.4%
associate-/l*55.0%
Simplified55.0%
Taylor expanded in t around 0 28.2%
associate-/l*29.8%
associate-/r/28.1%
Simplified28.1%
if -2.85000000000000016e-145 < a < 6.79999999999999987e-250 or 5.0999999999999996e-155 < a < 3.9999999999999998e-7Initial program 64.4%
associate-*l/72.3%
Simplified72.3%
Taylor expanded in t around inf 44.3%
if 6.79999999999999987e-250 < a < 5.0999999999999996e-155Initial program 79.8%
associate-*l/69.3%
Simplified69.3%
Taylor expanded in t around inf 63.7%
associate-*r/63.7%
mul-1-neg63.7%
associate-*r/63.7%
mul-1-neg63.7%
Simplified63.7%
Taylor expanded in x around inf 49.3%
div-sub49.3%
Simplified49.3%
Taylor expanded in z around inf 49.3%
Final simplification45.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.15e+102)
x
(if (<= a -5.5e-146)
(/ y (/ a z))
(if (<= a 3.1e-247)
y
(if (<= a 2e-155) (* x (/ z t)) (if (<= a 2.2e-6) y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.15e+102) {
tmp = x;
} else if (a <= -5.5e-146) {
tmp = y / (a / z);
} else if (a <= 3.1e-247) {
tmp = y;
} else if (a <= 2e-155) {
tmp = x * (z / t);
} else if (a <= 2.2e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.15d+102)) then
tmp = x
else if (a <= (-5.5d-146)) then
tmp = y / (a / z)
else if (a <= 3.1d-247) then
tmp = y
else if (a <= 2d-155) then
tmp = x * (z / t)
else if (a <= 2.2d-6) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.15e+102) {
tmp = x;
} else if (a <= -5.5e-146) {
tmp = y / (a / z);
} else if (a <= 3.1e-247) {
tmp = y;
} else if (a <= 2e-155) {
tmp = x * (z / t);
} else if (a <= 2.2e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.15e+102: tmp = x elif a <= -5.5e-146: tmp = y / (a / z) elif a <= 3.1e-247: tmp = y elif a <= 2e-155: tmp = x * (z / t) elif a <= 2.2e-6: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.15e+102) tmp = x; elseif (a <= -5.5e-146) tmp = Float64(y / Float64(a / z)); elseif (a <= 3.1e-247) tmp = y; elseif (a <= 2e-155) tmp = Float64(x * Float64(z / t)); elseif (a <= 2.2e-6) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.15e+102) tmp = x; elseif (a <= -5.5e-146) tmp = y / (a / z); elseif (a <= 3.1e-247) tmp = y; elseif (a <= 2e-155) tmp = x * (z / t); elseif (a <= 2.2e-6) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.15e+102], x, If[LessEqual[a, -5.5e-146], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-247], y, If[LessEqual[a, 2e-155], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-6], y, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.15 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-146}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-247}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-155}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-6}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.1499999999999999e102 or 2.2000000000000001e-6 < a Initial program 73.2%
associate-*l/91.2%
Simplified91.2%
Taylor expanded in a around inf 54.8%
if -1.1499999999999999e102 < a < -5.49999999999999998e-146Initial program 79.3%
associate-*l/74.2%
div-inv74.3%
associate-*l*80.8%
Applied egg-rr80.8%
Taylor expanded in x around 0 53.4%
associate-/l*55.0%
Simplified55.0%
Taylor expanded in t around 0 28.2%
associate-/l*29.8%
Simplified29.8%
if -5.49999999999999998e-146 < a < 3.10000000000000015e-247 or 2.00000000000000003e-155 < a < 2.2000000000000001e-6Initial program 64.4%
associate-*l/72.3%
Simplified72.3%
Taylor expanded in t around inf 44.3%
if 3.10000000000000015e-247 < a < 2.00000000000000003e-155Initial program 79.8%
associate-*l/69.3%
Simplified69.3%
Taylor expanded in t around inf 63.7%
associate-*r/63.7%
mul-1-neg63.7%
associate-*r/63.7%
mul-1-neg63.7%
Simplified63.7%
Taylor expanded in x around inf 49.3%
div-sub49.3%
Simplified49.3%
Taylor expanded in z around inf 49.3%
Final simplification45.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= x -0.076)
t_1
(if (<= x -2.2e-137) y (if (<= x 8.8e-100) (* z (/ y (- a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (x <= -0.076) {
tmp = t_1;
} else if (x <= -2.2e-137) {
tmp = y;
} else if (x <= 8.8e-100) {
tmp = z * (y / (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) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (x <= (-0.076d0)) then
tmp = t_1
else if (x <= (-2.2d-137)) then
tmp = y
else if (x <= 8.8d-100) then
tmp = z * (y / (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 = x * (1.0 - (z / a));
double tmp;
if (x <= -0.076) {
tmp = t_1;
} else if (x <= -2.2e-137) {
tmp = y;
} else if (x <= 8.8e-100) {
tmp = z * (y / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if x <= -0.076: tmp = t_1 elif x <= -2.2e-137: tmp = y elif x <= 8.8e-100: tmp = z * (y / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (x <= -0.076) tmp = t_1; elseif (x <= -2.2e-137) tmp = y; elseif (x <= 8.8e-100) tmp = Float64(z * Float64(y / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (x <= -0.076) tmp = t_1; elseif (x <= -2.2e-137) tmp = y; elseif (x <= 8.8e-100) tmp = z * (y / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.076], t$95$1, If[LessEqual[x, -2.2e-137], y, If[LessEqual[x, 8.8e-100], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;x \leq -0.076:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-137}:\\
\;\;\;\;y\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{-100}:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -0.0759999999999999981 or 8.79999999999999957e-100 < x Initial program 63.4%
associate-*l/77.5%
Simplified77.5%
Taylor expanded in t around 0 54.6%
associate-/l*60.3%
Simplified60.3%
Taylor expanded in x around inf 56.4%
mul-1-neg56.4%
unsub-neg56.4%
Simplified56.4%
if -0.0759999999999999981 < x < -2.2000000000000001e-137Initial program 68.4%
associate-*l/87.4%
Simplified87.4%
Taylor expanded in t around inf 48.1%
if -2.2000000000000001e-137 < x < 8.79999999999999957e-100Initial program 90.1%
associate-*l/83.4%
div-inv83.3%
associate-*l*93.0%
Applied egg-rr93.0%
Taylor expanded in x around 0 74.4%
associate-/l*78.8%
Simplified78.8%
Taylor expanded in z around inf 42.2%
associate-*l/42.4%
*-commutative42.4%
Simplified42.4%
Final simplification51.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4e+27) (not (<= t 5.2e-29))) (+ y (/ (- x y) (/ t z))) (+ x (/ (- y x) (/ a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4e+27) || !(t <= 5.2e-29)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x + ((y - x) / (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 ((t <= (-4d+27)) .or. (.not. (t <= 5.2d-29))) then
tmp = y + ((x - y) / (t / z))
else
tmp = x + ((y - x) / (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 ((t <= -4e+27) || !(t <= 5.2e-29)) {
tmp = y + ((x - y) / (t / z));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4e+27) or not (t <= 5.2e-29): tmp = y + ((x - y) / (t / z)) else: tmp = x + ((y - x) / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4e+27) || !(t <= 5.2e-29)) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4e+27) || ~((t <= 5.2e-29))) tmp = y + ((x - y) / (t / z)); else tmp = x + ((y - x) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4e+27], N[Not[LessEqual[t, 5.2e-29]], $MachinePrecision]], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+27} \lor \neg \left(t \leq 5.2 \cdot 10^{-29}\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -4.0000000000000001e27 or 5.2000000000000004e-29 < t Initial program 52.6%
associate-*l/67.2%
Simplified67.2%
Taylor expanded in t around inf 64.5%
associate-*r/64.5%
mul-1-neg64.5%
associate-*r/64.5%
mul-1-neg64.5%
Simplified64.5%
Taylor expanded in a around 0 62.1%
mul-1-neg62.1%
*-commutative62.1%
unsub-neg62.1%
associate-/l*68.0%
Simplified68.0%
if -4.0000000000000001e27 < t < 5.2000000000000004e-29Initial program 93.1%
associate-*l/93.8%
Simplified93.8%
associate-/r/96.9%
Applied egg-rr96.9%
Taylor expanded in t around 0 82.9%
Final simplification75.4%
(FPCore (x y z t a) :precision binary64 (if (<= x -1.95e+24) (- x (/ x (/ (- a t) z))) (if (<= x 1.05e-83) (* y (/ (- z t) (- a t))) (+ x (/ (- y x) (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.95e+24) {
tmp = x - (x / ((a - t) / z));
} else if (x <= 1.05e-83) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (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 (x <= (-1.95d+24)) then
tmp = x - (x / ((a - t) / z))
else if (x <= 1.05d-83) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + ((y - x) / (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 (x <= -1.95e+24) {
tmp = x - (x / ((a - t) / z));
} else if (x <= 1.05e-83) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.95e+24: tmp = x - (x / ((a - t) / z)) elif x <= 1.05e-83: tmp = y * ((z - t) / (a - t)) else: tmp = x + ((y - x) / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.95e+24) tmp = Float64(x - Float64(x / Float64(Float64(a - t) / z))); elseif (x <= 1.05e-83) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.95e+24) tmp = x - (x / ((a - t) / z)); elseif (x <= 1.05e-83) tmp = y * ((z - t) / (a - t)); else tmp = x + ((y - x) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.95e+24], N[(x - N[(x / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e-83], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.95 \cdot 10^{+24}:\\
\;\;\;\;x - \frac{x}{\frac{a - t}{z}}\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-83}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\end{array}
\end{array}
if x < -1.9499999999999999e24Initial program 56.6%
associate-*l/69.5%
Simplified69.5%
Taylor expanded in y around 0 54.5%
mul-1-neg54.5%
unsub-neg54.5%
associate-/l*67.5%
Simplified67.5%
Taylor expanded in z around inf 65.7%
if -1.9499999999999999e24 < x < 1.0499999999999999e-83Initial program 83.8%
associate-*l/84.4%
Simplified84.4%
Taylor expanded in y around inf 76.1%
div-sub76.1%
Simplified76.1%
if 1.0499999999999999e-83 < x Initial program 67.6%
associate-*l/81.5%
Simplified81.5%
associate-/r/82.9%
Applied egg-rr82.9%
Taylor expanded in t around 0 65.3%
Final simplification70.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.3e+99)
x
(if (<= a 2.65e-254)
y
(if (<= a 7.5e-155) (* x (/ z t)) (if (<= a 4.4e-7) y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.3e+99) {
tmp = x;
} else if (a <= 2.65e-254) {
tmp = y;
} else if (a <= 7.5e-155) {
tmp = x * (z / t);
} else if (a <= 4.4e-7) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.3d+99)) then
tmp = x
else if (a <= 2.65d-254) then
tmp = y
else if (a <= 7.5d-155) then
tmp = x * (z / t)
else if (a <= 4.4d-7) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.3e+99) {
tmp = x;
} else if (a <= 2.65e-254) {
tmp = y;
} else if (a <= 7.5e-155) {
tmp = x * (z / t);
} else if (a <= 4.4e-7) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.3e+99: tmp = x elif a <= 2.65e-254: tmp = y elif a <= 7.5e-155: tmp = x * (z / t) elif a <= 4.4e-7: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.3e+99) tmp = x; elseif (a <= 2.65e-254) tmp = y; elseif (a <= 7.5e-155) tmp = Float64(x * Float64(z / t)); elseif (a <= 4.4e-7) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.3e+99) tmp = x; elseif (a <= 2.65e-254) tmp = y; elseif (a <= 7.5e-155) tmp = x * (z / t); elseif (a <= 4.4e-7) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.3e+99], x, If[LessEqual[a, 2.65e-254], y, If[LessEqual[a, 7.5e-155], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e-7], y, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+99}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.65 \cdot 10^{-254}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-155}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-7}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.3e99 or 4.4000000000000002e-7 < a Initial program 73.7%
associate-*l/91.3%
Simplified91.3%
Taylor expanded in a around inf 53.9%
if -1.3e99 < a < 2.65000000000000018e-254 or 7.5000000000000006e-155 < a < 4.4000000000000002e-7Initial program 70.9%
associate-*l/72.8%
Simplified72.8%
Taylor expanded in t around inf 34.1%
if 2.65000000000000018e-254 < a < 7.5000000000000006e-155Initial program 79.8%
associate-*l/69.3%
Simplified69.3%
Taylor expanded in t around inf 63.7%
associate-*r/63.7%
mul-1-neg63.7%
associate-*r/63.7%
mul-1-neg63.7%
Simplified63.7%
Taylor expanded in x around inf 49.3%
div-sub49.3%
Simplified49.3%
Taylor expanded in z around inf 49.3%
Final simplification43.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -1e+100) x (if (<= a 2.5e-6) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1e+100) {
tmp = x;
} else if (a <= 2.5e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1d+100)) then
tmp = x
else if (a <= 2.5d-6) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1e+100) {
tmp = x;
} else if (a <= 2.5e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1e+100: tmp = x elif a <= 2.5e-6: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1e+100) tmp = x; elseif (a <= 2.5e-6) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1e+100) tmp = x; elseif (a <= 2.5e-6) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1e+100], x, If[LessEqual[a, 2.5e-6], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{+100}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-6}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.00000000000000002e100 or 2.5000000000000002e-6 < a Initial program 73.7%
associate-*l/91.3%
Simplified91.3%
Taylor expanded in a around inf 53.9%
if -1.00000000000000002e100 < a < 2.5000000000000002e-6Initial program 72.0%
associate-*l/72.3%
Simplified72.3%
Taylor expanded in t around inf 31.1%
Final simplification40.8%
(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 72.7%
associate-*l/80.4%
Simplified80.4%
Taylor expanded in a around inf 27.1%
Final simplification27.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} 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) :: tmp
t_1 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - x))
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 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023315
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))