
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_1 -5e-306)
(+ x (/ (- t x) (/ (- a z) (- y z))))
(if (<= t_1 0.0)
(+ t (/ (- (* (- t x) a) (* y (- t x))) z))
(fma (- t x) (/ (- y z) (- a z)) x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -5e-306) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else if (t_1 <= 0.0) {
tmp = t + ((((t - x) * a) - (y * (t - x))) / z);
} else {
tmp = fma((t - x), ((y - z) / (a - z)), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_1 <= -5e-306) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); elseif (t_1 <= 0.0) tmp = Float64(t + Float64(Float64(Float64(Float64(t - x) * a) - Float64(y * Float64(t - x))) / z)); else tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-306], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(t + N[(N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] - N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-306}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot a - y \cdot \left(t - x\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -4.99999999999999998e-306Initial program 76.7%
associate-/l*89.5%
Simplified89.5%
*-commutative89.5%
associate-*l/76.7%
associate-*r/95.3%
clear-num95.3%
un-div-inv95.3%
Applied egg-rr95.3%
if -4.99999999999999998e-306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.4%
associate-/l*4.1%
Simplified4.1%
Taylor expanded in z around -inf 99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 71.4%
+-commutative71.4%
*-commutative71.4%
associate-/l*92.4%
fma-define92.4%
Simplified92.4%
Final simplification94.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z)))))
(t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -5e-306)
t_2
(if (<= t_2 0.0) (+ t (/ (* x (- y a)) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -5e-306) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t + ((x * (y - a)) / z);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -5e-306) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t + ((x * (y - a)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) t_2 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -5e-306: tmp = t_2 elif t_2 <= 0.0: tmp = t + ((x * (y - a)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -5e-306) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(t + Float64(Float64(x * Float64(y - a)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); t_2 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -5e-306) tmp = t_2; elseif (t_2 <= 0.0) tmp = t + ((x * (y - a)) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-306], t$95$2, If[LessEqual[t$95$2, 0.0], N[(t + N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-306}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t + \frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 63.5%
associate-/l*90.4%
Simplified90.4%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -4.99999999999999998e-306Initial program 97.1%
if -4.99999999999999998e-306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.4%
associate-/l*4.1%
Simplified4.1%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.8%
mul-1-neg99.8%
distribute-lft-out--99.8%
associate-*r/99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-rgt-out--99.8%
Simplified99.8%
Taylor expanded in t around 0 99.8%
associate-*r/99.8%
mul-1-neg99.8%
Simplified99.8%
Final simplification93.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -5e-306) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ t (/ (- (* (- t x) a) (* y (- t x))) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((((t - x) * a) - (y * (t - x))) / 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) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-5d-306)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + ((((t - x) * a) - (y * (t - x))) / z)
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 - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((((t - x) * a) - (y * (t - x))) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -5e-306) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + ((((t - x) * a) - (y * (t - x))) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -5e-306) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(Float64(Float64(t - x) * a) - Float64(y * Float64(t - x))) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -5e-306) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + ((((t - x) * a) - (y * (t - x))) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-306], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] - N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-306} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot a - y \cdot \left(t - x\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -4.99999999999999998e-306 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 73.9%
associate-/l*89.8%
Simplified89.8%
*-commutative89.8%
associate-*l/73.9%
associate-*r/93.8%
clear-num93.6%
un-div-inv93.7%
Applied egg-rr93.7%
if -4.99999999999999998e-306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.4%
associate-/l*4.1%
Simplified4.1%
Taylor expanded in z around -inf 99.8%
Final simplification94.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.8e+125)
t
(if (<= z -4.8e+95)
(/ (* x (- y a)) z)
(if (<= z -9.5e+26)
t
(if (<= z -7.2e-48)
x
(if (<= z -2.3e-144)
(/ (* (- y z) t) a)
(if (<= z 1.55e-226)
(* y (/ (- t x) a))
(if (<= z 8.1e-69)
x
(if (<= z 3.75e-6) (* t (/ y (- a z))) t)))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.8e+125) {
tmp = t;
} else if (z <= -4.8e+95) {
tmp = (x * (y - a)) / z;
} else if (z <= -9.5e+26) {
tmp = t;
} else if (z <= -7.2e-48) {
tmp = x;
} else if (z <= -2.3e-144) {
tmp = ((y - z) * t) / a;
} else if (z <= 1.55e-226) {
tmp = y * ((t - x) / a);
} else if (z <= 8.1e-69) {
tmp = x;
} else if (z <= 3.75e-6) {
tmp = t * (y / (a - z));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.8d+125)) then
tmp = t
else if (z <= (-4.8d+95)) then
tmp = (x * (y - a)) / z
else if (z <= (-9.5d+26)) then
tmp = t
else if (z <= (-7.2d-48)) then
tmp = x
else if (z <= (-2.3d-144)) then
tmp = ((y - z) * t) / a
else if (z <= 1.55d-226) then
tmp = y * ((t - x) / a)
else if (z <= 8.1d-69) then
tmp = x
else if (z <= 3.75d-6) then
tmp = t * (y / (a - z))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.8e+125) {
tmp = t;
} else if (z <= -4.8e+95) {
tmp = (x * (y - a)) / z;
} else if (z <= -9.5e+26) {
tmp = t;
} else if (z <= -7.2e-48) {
tmp = x;
} else if (z <= -2.3e-144) {
tmp = ((y - z) * t) / a;
} else if (z <= 1.55e-226) {
tmp = y * ((t - x) / a);
} else if (z <= 8.1e-69) {
tmp = x;
} else if (z <= 3.75e-6) {
tmp = t * (y / (a - z));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.8e+125: tmp = t elif z <= -4.8e+95: tmp = (x * (y - a)) / z elif z <= -9.5e+26: tmp = t elif z <= -7.2e-48: tmp = x elif z <= -2.3e-144: tmp = ((y - z) * t) / a elif z <= 1.55e-226: tmp = y * ((t - x) / a) elif z <= 8.1e-69: tmp = x elif z <= 3.75e-6: tmp = t * (y / (a - z)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.8e+125) tmp = t; elseif (z <= -4.8e+95) tmp = Float64(Float64(x * Float64(y - a)) / z); elseif (z <= -9.5e+26) tmp = t; elseif (z <= -7.2e-48) tmp = x; elseif (z <= -2.3e-144) tmp = Float64(Float64(Float64(y - z) * t) / a); elseif (z <= 1.55e-226) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 8.1e-69) tmp = x; elseif (z <= 3.75e-6) tmp = Float64(t * Float64(y / Float64(a - z))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.8e+125) tmp = t; elseif (z <= -4.8e+95) tmp = (x * (y - a)) / z; elseif (z <= -9.5e+26) tmp = t; elseif (z <= -7.2e-48) tmp = x; elseif (z <= -2.3e-144) tmp = ((y - z) * t) / a; elseif (z <= 1.55e-226) tmp = y * ((t - x) / a); elseif (z <= 8.1e-69) tmp = x; elseif (z <= 3.75e-6) tmp = t * (y / (a - z)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.8e+125], t, If[LessEqual[z, -4.8e+95], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, -9.5e+26], t, If[LessEqual[z, -7.2e-48], x, If[LessEqual[z, -2.3e-144], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 1.55e-226], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.1e-69], x, If[LessEqual[z, 3.75e-6], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{+95}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-48}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-144}:\\
\;\;\;\;\frac{\left(y - z\right) \cdot t}{a}\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-226}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 8.1 \cdot 10^{-69}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.75 \cdot 10^{-6}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.80000000000000002e125 or -4.8000000000000001e95 < z < -9.50000000000000054e26 or 3.7500000000000001e-6 < z Initial program 48.3%
associate-/l*74.0%
Simplified74.0%
Taylor expanded in z around inf 53.5%
if -3.80000000000000002e125 < z < -4.8000000000000001e95Initial program 45.1%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in z around inf 86.9%
associate--l+86.9%
associate-*r/86.9%
associate-*r/86.9%
mul-1-neg86.9%
div-sub86.9%
mul-1-neg86.9%
distribute-lft-out--86.9%
associate-*r/86.9%
mul-1-neg86.9%
unsub-neg86.9%
distribute-rgt-out--86.9%
Simplified86.9%
Taylor expanded in t around 0 82.2%
if -9.50000000000000054e26 < z < -7.2000000000000003e-48 or 1.54999999999999994e-226 < z < 8.10000000000000027e-69Initial program 83.6%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in a around inf 47.9%
if -7.2000000000000003e-48 < z < -2.3e-144Initial program 92.3%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in x around 0 62.7%
Taylor expanded in a around inf 63.2%
if -2.3e-144 < z < 1.54999999999999994e-226Initial program 91.0%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in y around inf 64.1%
div-sub64.1%
Simplified64.1%
Taylor expanded in a around inf 54.9%
if 8.10000000000000027e-69 < z < 3.7500000000000001e-6Initial program 90.0%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around inf 74.6%
div-sub74.7%
Simplified74.7%
Taylor expanded in t around inf 45.1%
associate-/l*55.0%
Simplified55.0%
Final simplification53.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ z (- z a)))))
(if (<= z -5.5e+125)
t_1
(if (<= z -2e+98)
(/ (* x (- y a)) z)
(if (<= z -4.8e+21)
t_1
(if (<= z -9.5e-48)
x
(if (<= z -2.8e-143)
(/ (* (- y z) t) a)
(if (<= z 4.8e-226)
(* y (/ (- t x) a))
(if (<= z 2.15e-67)
x
(if (<= z 4.6e-5) (* t (/ y (- a z))) t_1))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (z / (z - a));
double tmp;
if (z <= -5.5e+125) {
tmp = t_1;
} else if (z <= -2e+98) {
tmp = (x * (y - a)) / z;
} else if (z <= -4.8e+21) {
tmp = t_1;
} else if (z <= -9.5e-48) {
tmp = x;
} else if (z <= -2.8e-143) {
tmp = ((y - z) * t) / a;
} else if (z <= 4.8e-226) {
tmp = y * ((t - x) / a);
} else if (z <= 2.15e-67) {
tmp = x;
} else if (z <= 4.6e-5) {
tmp = t * (y / (a - z));
} 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 = t * (z / (z - a))
if (z <= (-5.5d+125)) then
tmp = t_1
else if (z <= (-2d+98)) then
tmp = (x * (y - a)) / z
else if (z <= (-4.8d+21)) then
tmp = t_1
else if (z <= (-9.5d-48)) then
tmp = x
else if (z <= (-2.8d-143)) then
tmp = ((y - z) * t) / a
else if (z <= 4.8d-226) then
tmp = y * ((t - x) / a)
else if (z <= 2.15d-67) then
tmp = x
else if (z <= 4.6d-5) then
tmp = t * (y / (a - z))
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 = t * (z / (z - a));
double tmp;
if (z <= -5.5e+125) {
tmp = t_1;
} else if (z <= -2e+98) {
tmp = (x * (y - a)) / z;
} else if (z <= -4.8e+21) {
tmp = t_1;
} else if (z <= -9.5e-48) {
tmp = x;
} else if (z <= -2.8e-143) {
tmp = ((y - z) * t) / a;
} else if (z <= 4.8e-226) {
tmp = y * ((t - x) / a);
} else if (z <= 2.15e-67) {
tmp = x;
} else if (z <= 4.6e-5) {
tmp = t * (y / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (z / (z - a)) tmp = 0 if z <= -5.5e+125: tmp = t_1 elif z <= -2e+98: tmp = (x * (y - a)) / z elif z <= -4.8e+21: tmp = t_1 elif z <= -9.5e-48: tmp = x elif z <= -2.8e-143: tmp = ((y - z) * t) / a elif z <= 4.8e-226: tmp = y * ((t - x) / a) elif z <= 2.15e-67: tmp = x elif z <= 4.6e-5: tmp = t * (y / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(z / Float64(z - a))) tmp = 0.0 if (z <= -5.5e+125) tmp = t_1; elseif (z <= -2e+98) tmp = Float64(Float64(x * Float64(y - a)) / z); elseif (z <= -4.8e+21) tmp = t_1; elseif (z <= -9.5e-48) tmp = x; elseif (z <= -2.8e-143) tmp = Float64(Float64(Float64(y - z) * t) / a); elseif (z <= 4.8e-226) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 2.15e-67) tmp = x; elseif (z <= 4.6e-5) tmp = Float64(t * Float64(y / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (z / (z - a)); tmp = 0.0; if (z <= -5.5e+125) tmp = t_1; elseif (z <= -2e+98) tmp = (x * (y - a)) / z; elseif (z <= -4.8e+21) tmp = t_1; elseif (z <= -9.5e-48) tmp = x; elseif (z <= -2.8e-143) tmp = ((y - z) * t) / a; elseif (z <= 4.8e-226) tmp = y * ((t - x) / a); elseif (z <= 2.15e-67) tmp = x; elseif (z <= 4.6e-5) tmp = t * (y / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.5e+125], t$95$1, If[LessEqual[z, -2e+98], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, -4.8e+21], t$95$1, If[LessEqual[z, -9.5e-48], x, If[LessEqual[z, -2.8e-143], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 4.8e-226], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.15e-67], x, If[LessEqual[z, 4.6e-5], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{z}{z - a}\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2 \cdot 10^{+98}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-48}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-143}:\\
\;\;\;\;\frac{\left(y - z\right) \cdot t}{a}\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-226}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{-67}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-5}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.49999999999999996e125 or -2e98 < z < -4.8e21 or 4.6e-5 < z Initial program 47.9%
associate-/l*74.2%
Simplified74.2%
Taylor expanded in x around 0 41.1%
Taylor expanded in y around 0 36.1%
mul-1-neg36.1%
associate-/l*60.5%
distribute-rgt-neg-in60.5%
distribute-neg-frac260.5%
sub-neg60.5%
distribute-neg-in60.5%
remove-double-neg60.5%
Simplified60.5%
if -5.49999999999999996e125 < z < -2e98Initial program 45.1%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in z around inf 86.9%
associate--l+86.9%
associate-*r/86.9%
associate-*r/86.9%
mul-1-neg86.9%
div-sub86.9%
mul-1-neg86.9%
distribute-lft-out--86.9%
associate-*r/86.9%
mul-1-neg86.9%
unsub-neg86.9%
distribute-rgt-out--86.9%
Simplified86.9%
Taylor expanded in t around 0 82.2%
if -4.8e21 < z < -9.50000000000000036e-48 or 4.7999999999999999e-226 < z < 2.15000000000000013e-67Initial program 84.9%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in a around inf 48.6%
if -9.50000000000000036e-48 < z < -2.7999999999999999e-143Initial program 92.3%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in x around 0 62.7%
Taylor expanded in a around inf 63.2%
if -2.7999999999999999e-143 < z < 4.7999999999999999e-226Initial program 91.0%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in y around inf 64.1%
div-sub64.1%
Simplified64.1%
Taylor expanded in a around inf 54.9%
if 2.15000000000000013e-67 < z < 4.6e-5Initial program 90.0%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around inf 74.6%
div-sub74.7%
Simplified74.7%
Taylor expanded in t around inf 45.1%
associate-/l*55.0%
Simplified55.0%
Final simplification57.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- t x) a))))
(if (<= a -6.5e+48)
x
(if (<= a -4.2e+24)
(/ (* (- y z) t) a)
(if (<= a -4.6e-40)
x
(if (<= a -3.4e-76)
(* t (/ y a))
(if (<= a -1.7e-103)
t_1
(if (<= a 5.7e+25)
(* t (/ (- z y) z))
(if (<= a 7e+177) x (if (<= a 2.2e+211) t_1 x))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / a);
double tmp;
if (a <= -6.5e+48) {
tmp = x;
} else if (a <= -4.2e+24) {
tmp = ((y - z) * t) / a;
} else if (a <= -4.6e-40) {
tmp = x;
} else if (a <= -3.4e-76) {
tmp = t * (y / a);
} else if (a <= -1.7e-103) {
tmp = t_1;
} else if (a <= 5.7e+25) {
tmp = t * ((z - y) / z);
} else if (a <= 7e+177) {
tmp = x;
} else if (a <= 2.2e+211) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = y * ((t - x) / a)
if (a <= (-6.5d+48)) then
tmp = x
else if (a <= (-4.2d+24)) then
tmp = ((y - z) * t) / a
else if (a <= (-4.6d-40)) then
tmp = x
else if (a <= (-3.4d-76)) then
tmp = t * (y / a)
else if (a <= (-1.7d-103)) then
tmp = t_1
else if (a <= 5.7d+25) then
tmp = t * ((z - y) / z)
else if (a <= 7d+177) then
tmp = x
else if (a <= 2.2d+211) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / a);
double tmp;
if (a <= -6.5e+48) {
tmp = x;
} else if (a <= -4.2e+24) {
tmp = ((y - z) * t) / a;
} else if (a <= -4.6e-40) {
tmp = x;
} else if (a <= -3.4e-76) {
tmp = t * (y / a);
} else if (a <= -1.7e-103) {
tmp = t_1;
} else if (a <= 5.7e+25) {
tmp = t * ((z - y) / z);
} else if (a <= 7e+177) {
tmp = x;
} else if (a <= 2.2e+211) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / a) tmp = 0 if a <= -6.5e+48: tmp = x elif a <= -4.2e+24: tmp = ((y - z) * t) / a elif a <= -4.6e-40: tmp = x elif a <= -3.4e-76: tmp = t * (y / a) elif a <= -1.7e-103: tmp = t_1 elif a <= 5.7e+25: tmp = t * ((z - y) / z) elif a <= 7e+177: tmp = x elif a <= 2.2e+211: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / a)) tmp = 0.0 if (a <= -6.5e+48) tmp = x; elseif (a <= -4.2e+24) tmp = Float64(Float64(Float64(y - z) * t) / a); elseif (a <= -4.6e-40) tmp = x; elseif (a <= -3.4e-76) tmp = Float64(t * Float64(y / a)); elseif (a <= -1.7e-103) tmp = t_1; elseif (a <= 5.7e+25) tmp = Float64(t * Float64(Float64(z - y) / z)); elseif (a <= 7e+177) tmp = x; elseif (a <= 2.2e+211) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / a); tmp = 0.0; if (a <= -6.5e+48) tmp = x; elseif (a <= -4.2e+24) tmp = ((y - z) * t) / a; elseif (a <= -4.6e-40) tmp = x; elseif (a <= -3.4e-76) tmp = t * (y / a); elseif (a <= -1.7e-103) tmp = t_1; elseif (a <= 5.7e+25) tmp = t * ((z - y) / z); elseif (a <= 7e+177) tmp = x; elseif (a <= 2.2e+211) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e+48], x, If[LessEqual[a, -4.2e+24], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[a, -4.6e-40], x, If[LessEqual[a, -3.4e-76], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.7e-103], t$95$1, If[LessEqual[a, 5.7e+25], N[(t * N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+177], x, If[LessEqual[a, 2.2e+211], t$95$1, x]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{+48}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{\left(y - z\right) \cdot t}{a}\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-40}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.4 \cdot 10^{-76}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.7 \cdot 10^{+25}:\\
\;\;\;\;t \cdot \frac{z - y}{z}\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+177}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+211}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -6.49999999999999972e48 or -4.2000000000000003e24 < a < -4.6e-40 or 5.6999999999999996e25 < a < 6.99999999999999983e177 or 2.20000000000000004e211 < a Initial program 70.1%
associate-/l*92.4%
Simplified92.4%
Taylor expanded in a around inf 52.0%
if -6.49999999999999972e48 < a < -4.2000000000000003e24Initial program 83.7%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in x around 0 77.1%
Taylor expanded in a around inf 77.3%
if -4.6e-40 < a < -3.3999999999999999e-76Initial program 68.4%
associate-/l*83.9%
Simplified83.9%
Taylor expanded in y around inf 68.4%
div-sub68.4%
Simplified68.4%
Taylor expanded in t around inf 50.1%
Taylor expanded in a around inf 52.2%
associate-/l*68.5%
Simplified68.5%
if -3.3999999999999999e-76 < a < -1.70000000000000001e-103 or 6.99999999999999983e177 < a < 2.20000000000000004e211Initial program 62.2%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in y around inf 71.5%
div-sub71.5%
Simplified71.5%
Taylor expanded in a around inf 65.1%
if -1.70000000000000001e-103 < a < 5.6999999999999996e25Initial program 66.9%
associate-/l*72.7%
Simplified72.7%
Taylor expanded in x around 0 55.5%
Taylor expanded in a around 0 48.2%
mul-1-neg48.2%
associate-/l*62.1%
distribute-lft-neg-in62.1%
Simplified62.1%
Final simplification58.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -5e-306) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ t (/ (* x (- y a)) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((x * (y - a)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-5d-306)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + ((x * (y - a)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((x * (y - a)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -5e-306) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + ((x * (y - a)) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -5e-306) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(x * Float64(y - a)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -5e-306) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + ((x * (y - a)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-306], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-306} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -4.99999999999999998e-306 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 73.9%
associate-/l*89.8%
Simplified89.8%
*-commutative89.8%
associate-*l/73.9%
associate-*r/93.8%
clear-num93.6%
un-div-inv93.7%
Applied egg-rr93.7%
if -4.99999999999999998e-306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.4%
associate-/l*4.1%
Simplified4.1%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.8%
mul-1-neg99.8%
distribute-lft-out--99.8%
associate-*r/99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-rgt-out--99.8%
Simplified99.8%
Taylor expanded in t around 0 99.8%
associate-*r/99.8%
mul-1-neg99.8%
Simplified99.8%
Final simplification94.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= a -7.3e-107)
t_1
(if (<= a 5.5e-189)
(- t (/ (* (- t x) (- y a)) z))
(if (<= a 9.5e-142)
(* t (/ (- y z) (- a z)))
(if (<= a 5.6e-92) (- t (* y (/ (- t x) z))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (a <= -7.3e-107) {
tmp = t_1;
} else if (a <= 5.5e-189) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (a <= 9.5e-142) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 5.6e-92) {
tmp = t - (y * ((t - x) / z));
} 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 - z) * ((t - x) / (a - z)))
if (a <= (-7.3d-107)) then
tmp = t_1
else if (a <= 5.5d-189) then
tmp = t - (((t - x) * (y - a)) / z)
else if (a <= 9.5d-142) then
tmp = t * ((y - z) / (a - z))
else if (a <= 5.6d-92) then
tmp = t - (y * ((t - x) / z))
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 - z) * ((t - x) / (a - z)));
double tmp;
if (a <= -7.3e-107) {
tmp = t_1;
} else if (a <= 5.5e-189) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (a <= 9.5e-142) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 5.6e-92) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if a <= -7.3e-107: tmp = t_1 elif a <= 5.5e-189: tmp = t - (((t - x) * (y - a)) / z) elif a <= 9.5e-142: tmp = t * ((y - z) / (a - z)) elif a <= 5.6e-92: tmp = t - (y * ((t - x) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (a <= -7.3e-107) tmp = t_1; elseif (a <= 5.5e-189) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); elseif (a <= 9.5e-142) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 5.6e-92) tmp = Float64(t - Float64(y * Float64(Float64(t - x) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if (a <= -7.3e-107) tmp = t_1; elseif (a <= 5.5e-189) tmp = t - (((t - x) * (y - a)) / z); elseif (a <= 9.5e-142) tmp = t * ((y - z) / (a - z)); elseif (a <= 5.6e-92) tmp = t - (y * ((t - x) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.3e-107], t$95$1, If[LessEqual[a, 5.5e-189], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-142], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.6e-92], N[(t - N[(y * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;a \leq -7.3 \cdot 10^{-107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-189}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-142}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{-92}:\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.2999999999999994e-107 or 5.6e-92 < a Initial program 70.5%
associate-/l*91.6%
Simplified91.6%
if -7.2999999999999994e-107 < a < 5.4999999999999999e-189Initial program 71.3%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in z around inf 88.4%
associate--l+88.4%
associate-*r/88.4%
associate-*r/88.4%
mul-1-neg88.4%
div-sub89.7%
mul-1-neg89.7%
distribute-lft-out--89.7%
associate-*r/89.7%
mul-1-neg89.7%
unsub-neg89.7%
distribute-rgt-out--89.7%
Simplified89.7%
if 5.4999999999999999e-189 < a < 9.49999999999999967e-142Initial program 35.3%
associate-/l*71.2%
Simplified71.2%
Taylor expanded in x around 0 35.1%
associate-/l*89.8%
Simplified89.8%
if 9.49999999999999967e-142 < a < 5.6e-92Initial program 49.2%
associate-/l*66.6%
Simplified66.6%
Taylor expanded in z around inf 72.0%
associate--l+72.0%
associate-*r/72.0%
associate-*r/72.0%
mul-1-neg72.0%
div-sub72.0%
mul-1-neg72.0%
distribute-lft-out--72.0%
associate-*r/72.0%
mul-1-neg72.0%
unsub-neg72.0%
distribute-rgt-out--72.0%
Simplified72.0%
Taylor expanded in y around inf 72.0%
associate-/l*99.7%
Simplified99.7%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -3.8e+125)
t_1
(if (<= z -1.28e+98)
(/ (* x (- y a)) z)
(if (or (<= z -9.6e+22) (not (<= z 0.025)))
t_1
(+ x (/ (- t x) (/ a y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -3.8e+125) {
tmp = t_1;
} else if (z <= -1.28e+98) {
tmp = (x * (y - a)) / z;
} else if ((z <= -9.6e+22) || !(z <= 0.025)) {
tmp = t_1;
} else {
tmp = x + ((t - x) / (a / 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 = t * ((y - z) / (a - z))
if (z <= (-3.8d+125)) then
tmp = t_1
else if (z <= (-1.28d+98)) then
tmp = (x * (y - a)) / z
else if ((z <= (-9.6d+22)) .or. (.not. (z <= 0.025d0))) then
tmp = t_1
else
tmp = x + ((t - x) / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -3.8e+125) {
tmp = t_1;
} else if (z <= -1.28e+98) {
tmp = (x * (y - a)) / z;
} else if ((z <= -9.6e+22) || !(z <= 0.025)) {
tmp = t_1;
} else {
tmp = x + ((t - x) / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -3.8e+125: tmp = t_1 elif z <= -1.28e+98: tmp = (x * (y - a)) / z elif (z <= -9.6e+22) or not (z <= 0.025): tmp = t_1 else: tmp = x + ((t - x) / (a / y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -3.8e+125) tmp = t_1; elseif (z <= -1.28e+98) tmp = Float64(Float64(x * Float64(y - a)) / z); elseif ((z <= -9.6e+22) || !(z <= 0.025)) tmp = t_1; else tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -3.8e+125) tmp = t_1; elseif (z <= -1.28e+98) tmp = (x * (y - a)) / z; elseif ((z <= -9.6e+22) || ~((z <= 0.025))) tmp = t_1; else tmp = x + ((t - x) / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+125], t$95$1, If[LessEqual[z, -1.28e+98], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[Or[LessEqual[z, -9.6e+22], N[Not[LessEqual[z, 0.025]], $MachinePrecision]], t$95$1, N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.28 \cdot 10^{+98}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;z \leq -9.6 \cdot 10^{+22} \lor \neg \left(z \leq 0.025\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -3.80000000000000002e125 or -1.28000000000000006e98 < z < -9.6e22 or 0.025000000000000001 < z Initial program 47.0%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in x around 0 41.8%
associate-/l*71.4%
Simplified71.4%
if -3.80000000000000002e125 < z < -1.28000000000000006e98Initial program 45.1%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in z around inf 86.9%
associate--l+86.9%
associate-*r/86.9%
associate-*r/86.9%
mul-1-neg86.9%
div-sub86.9%
mul-1-neg86.9%
distribute-lft-out--86.9%
associate-*r/86.9%
mul-1-neg86.9%
unsub-neg86.9%
distribute-rgt-out--86.9%
Simplified86.9%
Taylor expanded in t around 0 82.2%
if -9.6e22 < z < 0.025000000000000001Initial program 88.5%
associate-/l*93.2%
Simplified93.2%
*-commutative93.2%
associate-*l/88.5%
associate-*r/95.5%
clear-num95.4%
un-div-inv95.5%
Applied egg-rr95.5%
Taylor expanded in z around 0 77.3%
Final simplification74.7%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4.9e-40)
x
(if (<= a -1.9e-173)
(* t (/ y a))
(if (<= a -5.8e-299)
t
(if (<= a 1.72e-245) (* t (/ y (- a z))) (if (<= a 2.45e+25) t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.9e-40) {
tmp = x;
} else if (a <= -1.9e-173) {
tmp = t * (y / a);
} else if (a <= -5.8e-299) {
tmp = t;
} else if (a <= 1.72e-245) {
tmp = t * (y / (a - z));
} else if (a <= 2.45e+25) {
tmp = t;
} 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 <= (-4.9d-40)) then
tmp = x
else if (a <= (-1.9d-173)) then
tmp = t * (y / a)
else if (a <= (-5.8d-299)) then
tmp = t
else if (a <= 1.72d-245) then
tmp = t * (y / (a - z))
else if (a <= 2.45d+25) then
tmp = t
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 <= -4.9e-40) {
tmp = x;
} else if (a <= -1.9e-173) {
tmp = t * (y / a);
} else if (a <= -5.8e-299) {
tmp = t;
} else if (a <= 1.72e-245) {
tmp = t * (y / (a - z));
} else if (a <= 2.45e+25) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.9e-40: tmp = x elif a <= -1.9e-173: tmp = t * (y / a) elif a <= -5.8e-299: tmp = t elif a <= 1.72e-245: tmp = t * (y / (a - z)) elif a <= 2.45e+25: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.9e-40) tmp = x; elseif (a <= -1.9e-173) tmp = Float64(t * Float64(y / a)); elseif (a <= -5.8e-299) tmp = t; elseif (a <= 1.72e-245) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (a <= 2.45e+25) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.9e-40) tmp = x; elseif (a <= -1.9e-173) tmp = t * (y / a); elseif (a <= -5.8e-299) tmp = t; elseif (a <= 1.72e-245) tmp = t * (y / (a - z)); elseif (a <= 2.45e+25) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.9e-40], x, If[LessEqual[a, -1.9e-173], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.8e-299], t, If[LessEqual[a, 1.72e-245], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.45e+25], t, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.9 \cdot 10^{-40}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-173}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-299}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 1.72 \cdot 10^{-245}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 2.45 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.8999999999999997e-40 or 2.45e25 < a Initial program 68.4%
associate-/l*91.3%
Simplified91.3%
Taylor expanded in a around inf 46.7%
if -4.8999999999999997e-40 < a < -1.90000000000000015e-173Initial program 78.1%
associate-/l*74.4%
Simplified74.4%
Taylor expanded in y around inf 67.2%
div-sub67.2%
Simplified67.2%
Taylor expanded in t around inf 47.7%
Taylor expanded in a around inf 44.4%
associate-/l*47.9%
Simplified47.9%
if -1.90000000000000015e-173 < a < -5.80000000000000051e-299 or 1.71999999999999997e-245 < a < 2.45e25Initial program 63.2%
associate-/l*73.7%
Simplified73.7%
Taylor expanded in z around inf 48.9%
if -5.80000000000000051e-299 < a < 1.71999999999999997e-245Initial program 79.0%
associate-/l*78.5%
Simplified78.5%
Taylor expanded in y around inf 71.0%
div-sub71.0%
Simplified71.0%
Taylor expanded in t around inf 47.3%
associate-/l*52.0%
Simplified52.0%
Final simplification47.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.05e+47)
x
(if (<= a -2.8e-162)
(* y (/ (- t x) a))
(if (<= a -5e-300)
t
(if (<= a 7.8e-244) (* t (/ y (- a z))) (if (<= a 5.7e+25) t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.05e+47) {
tmp = x;
} else if (a <= -2.8e-162) {
tmp = y * ((t - x) / a);
} else if (a <= -5e-300) {
tmp = t;
} else if (a <= 7.8e-244) {
tmp = t * (y / (a - z));
} else if (a <= 5.7e+25) {
tmp = t;
} 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.05d+47)) then
tmp = x
else if (a <= (-2.8d-162)) then
tmp = y * ((t - x) / a)
else if (a <= (-5d-300)) then
tmp = t
else if (a <= 7.8d-244) then
tmp = t * (y / (a - z))
else if (a <= 5.7d+25) then
tmp = t
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.05e+47) {
tmp = x;
} else if (a <= -2.8e-162) {
tmp = y * ((t - x) / a);
} else if (a <= -5e-300) {
tmp = t;
} else if (a <= 7.8e-244) {
tmp = t * (y / (a - z));
} else if (a <= 5.7e+25) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.05e+47: tmp = x elif a <= -2.8e-162: tmp = y * ((t - x) / a) elif a <= -5e-300: tmp = t elif a <= 7.8e-244: tmp = t * (y / (a - z)) elif a <= 5.7e+25: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.05e+47) tmp = x; elseif (a <= -2.8e-162) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (a <= -5e-300) tmp = t; elseif (a <= 7.8e-244) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (a <= 5.7e+25) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.05e+47) tmp = x; elseif (a <= -2.8e-162) tmp = y * ((t - x) / a); elseif (a <= -5e-300) tmp = t; elseif (a <= 7.8e-244) tmp = t * (y / (a - z)); elseif (a <= 5.7e+25) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.05e+47], x, If[LessEqual[a, -2.8e-162], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5e-300], t, If[LessEqual[a, 7.8e-244], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.7e+25], t, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.05 \cdot 10^{+47}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.8 \cdot 10^{-162}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-300}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{-244}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 5.7 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.05e47 or 5.6999999999999996e25 < a Initial program 67.0%
associate-/l*93.3%
Simplified93.3%
Taylor expanded in a around inf 49.1%
if -1.05e47 < a < -2.80000000000000022e-162Initial program 79.4%
associate-/l*79.2%
Simplified79.2%
Taylor expanded in y around inf 56.1%
div-sub56.1%
Simplified56.1%
Taylor expanded in a around inf 48.9%
if -2.80000000000000022e-162 < a < -4.99999999999999996e-300 or 7.7999999999999998e-244 < a < 5.6999999999999996e25Initial program 62.8%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in z around inf 47.9%
if -4.99999999999999996e-300 < a < 7.7999999999999998e-244Initial program 79.0%
associate-/l*78.5%
Simplified78.5%
Taylor expanded in y around inf 71.0%
div-sub71.0%
Simplified71.0%
Taylor expanded in t around inf 47.3%
associate-/l*52.0%
Simplified52.0%
Final simplification48.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.8e+48)
x
(if (<= a -1.75e+23)
(/ (* (- y z) t) a)
(if (<= a -3.3e-40)
x
(if (<= a -7.5e-164) (* y (/ (- t x) a)) (if (<= a 3.45e+25) t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.8e+48) {
tmp = x;
} else if (a <= -1.75e+23) {
tmp = ((y - z) * t) / a;
} else if (a <= -3.3e-40) {
tmp = x;
} else if (a <= -7.5e-164) {
tmp = y * ((t - x) / a);
} else if (a <= 3.45e+25) {
tmp = t;
} 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.8d+48)) then
tmp = x
else if (a <= (-1.75d+23)) then
tmp = ((y - z) * t) / a
else if (a <= (-3.3d-40)) then
tmp = x
else if (a <= (-7.5d-164)) then
tmp = y * ((t - x) / a)
else if (a <= 3.45d+25) then
tmp = t
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.8e+48) {
tmp = x;
} else if (a <= -1.75e+23) {
tmp = ((y - z) * t) / a;
} else if (a <= -3.3e-40) {
tmp = x;
} else if (a <= -7.5e-164) {
tmp = y * ((t - x) / a);
} else if (a <= 3.45e+25) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.8e+48: tmp = x elif a <= -1.75e+23: tmp = ((y - z) * t) / a elif a <= -3.3e-40: tmp = x elif a <= -7.5e-164: tmp = y * ((t - x) / a) elif a <= 3.45e+25: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.8e+48) tmp = x; elseif (a <= -1.75e+23) tmp = Float64(Float64(Float64(y - z) * t) / a); elseif (a <= -3.3e-40) tmp = x; elseif (a <= -7.5e-164) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (a <= 3.45e+25) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.8e+48) tmp = x; elseif (a <= -1.75e+23) tmp = ((y - z) * t) / a; elseif (a <= -3.3e-40) tmp = x; elseif (a <= -7.5e-164) tmp = y * ((t - x) / a); elseif (a <= 3.45e+25) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.8e+48], x, If[LessEqual[a, -1.75e+23], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[a, -3.3e-40], x, If[LessEqual[a, -7.5e-164], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.45e+25], t, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{+48}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{+23}:\\
\;\;\;\;\frac{\left(y - z\right) \cdot t}{a}\\
\mathbf{elif}\;a \leq -3.3 \cdot 10^{-40}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-164}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq 3.45 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.80000000000000012e48 or -1.7500000000000001e23 < a < -3.29999999999999993e-40 or 3.4499999999999999e25 < a Initial program 68.0%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in a around inf 48.4%
if -2.80000000000000012e48 < a < -1.7500000000000001e23Initial program 83.7%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in x around 0 77.1%
Taylor expanded in a around inf 77.3%
if -3.29999999999999993e-40 < a < -7.5000000000000006e-164Initial program 79.6%
associate-/l*79.5%
Simplified79.5%
Taylor expanded in y around inf 71.3%
div-sub71.3%
Simplified71.3%
Taylor expanded in a around inf 63.2%
if -7.5000000000000006e-164 < a < 3.4499999999999999e25Initial program 65.7%
associate-/l*73.1%
Simplified73.1%
Taylor expanded in z around inf 44.6%
Final simplification48.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- t x) (- a z)))))
(if (<= y -3.5e+176)
t_1
(if (<= y 9.2e-86) (* t (/ (- y z) (- a z))) (if (<= y 4.9e+54) x t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -3.5e+176) {
tmp = t_1;
} else if (y <= 9.2e-86) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 4.9e+54) {
tmp = 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 = y * ((t - x) / (a - z))
if (y <= (-3.5d+176)) then
tmp = t_1
else if (y <= 9.2d-86) then
tmp = t * ((y - z) / (a - z))
else if (y <= 4.9d+54) then
tmp = 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 = y * ((t - x) / (a - z));
double tmp;
if (y <= -3.5e+176) {
tmp = t_1;
} else if (y <= 9.2e-86) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 4.9e+54) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / (a - z)) tmp = 0 if y <= -3.5e+176: tmp = t_1 elif y <= 9.2e-86: tmp = t * ((y - z) / (a - z)) elif y <= 4.9e+54: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (y <= -3.5e+176) tmp = t_1; elseif (y <= 9.2e-86) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (y <= 4.9e+54) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / (a - z)); tmp = 0.0; if (y <= -3.5e+176) tmp = t_1; elseif (y <= 9.2e-86) tmp = t * ((y - z) / (a - z)); elseif (y <= 4.9e+54) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+176], t$95$1, If[LessEqual[y, 9.2e-86], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.9e+54], x, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-86}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+54}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.50000000000000003e176 or 4.90000000000000001e54 < y Initial program 73.4%
associate-/l*93.1%
Simplified93.1%
Taylor expanded in y around inf 77.9%
div-sub77.9%
Simplified77.9%
if -3.50000000000000003e176 < y < 9.19999999999999985e-86Initial program 64.5%
associate-/l*78.3%
Simplified78.3%
Taylor expanded in x around 0 41.9%
associate-/l*59.5%
Simplified59.5%
if 9.19999999999999985e-86 < y < 4.90000000000000001e54Initial program 71.2%
associate-/l*78.1%
Simplified78.1%
Taylor expanded in a around inf 44.7%
Final simplification63.2%
(FPCore (x y z t a)
:precision binary64
(if (<= y -1.3e+180)
(* (- t x) (/ y (- a z)))
(if (<= y 2.45e-85)
(* t (/ (- y z) (- a z)))
(if (<= y 9.8e+54) x (* y (/ (- t x) (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.3e+180) {
tmp = (t - x) * (y / (a - z));
} else if (y <= 2.45e-85) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 9.8e+54) {
tmp = x;
} else {
tmp = y * ((t - 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 (y <= (-1.3d+180)) then
tmp = (t - x) * (y / (a - z))
else if (y <= 2.45d-85) then
tmp = t * ((y - z) / (a - z))
else if (y <= 9.8d+54) then
tmp = x
else
tmp = y * ((t - 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 (y <= -1.3e+180) {
tmp = (t - x) * (y / (a - z));
} else if (y <= 2.45e-85) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 9.8e+54) {
tmp = x;
} else {
tmp = y * ((t - x) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.3e+180: tmp = (t - x) * (y / (a - z)) elif y <= 2.45e-85: tmp = t * ((y - z) / (a - z)) elif y <= 9.8e+54: tmp = x else: tmp = y * ((t - x) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.3e+180) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (y <= 2.45e-85) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (y <= 9.8e+54) tmp = x; else tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -1.3e+180) tmp = (t - x) * (y / (a - z)); elseif (y <= 2.45e-85) tmp = t * ((y - z) / (a - z)); elseif (y <= 9.8e+54) tmp = x; else tmp = y * ((t - x) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.3e+180], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.45e-85], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.8e+54], x, N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+180}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{-85}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;y \leq 9.8 \cdot 10^{+54}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\end{array}
\end{array}
if y < -1.3000000000000001e180Initial program 73.8%
associate-/l*88.0%
Simplified88.0%
Taylor expanded in y around -inf 71.9%
associate-*r/92.4%
clear-num88.8%
div-inv89.0%
associate-/r/97.7%
Applied egg-rr97.7%
if -1.3000000000000001e180 < y < 2.45000000000000007e-85Initial program 64.3%
associate-/l*78.6%
Simplified78.6%
Taylor expanded in x around 0 42.0%
associate-/l*59.4%
Simplified59.4%
if 2.45000000000000007e-85 < y < 9.80000000000000002e54Initial program 71.2%
associate-/l*78.1%
Simplified78.1%
Taylor expanded in a around inf 44.7%
if 9.80000000000000002e54 < y Initial program 74.0%
associate-/l*94.3%
Simplified94.3%
Taylor expanded in y around inf 74.6%
div-sub74.6%
Simplified74.6%
Final simplification63.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- t x) (/ a y)))))
(if (<= a -3.4e-103)
t_1
(if (<= a 8.6e-192)
(- t (/ (* (- t x) (- y a)) z))
(if (<= a 9e+63) (* t (/ (- y z) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) / (a / y));
double tmp;
if (a <= -3.4e-103) {
tmp = t_1;
} else if (a <= 8.6e-192) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (a <= 9e+63) {
tmp = t * ((y - z) / (a - z));
} 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 + ((t - x) / (a / y))
if (a <= (-3.4d-103)) then
tmp = t_1
else if (a <= 8.6d-192) then
tmp = t - (((t - x) * (y - a)) / z)
else if (a <= 9d+63) then
tmp = t * ((y - z) / (a - z))
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 + ((t - x) / (a / y));
double tmp;
if (a <= -3.4e-103) {
tmp = t_1;
} else if (a <= 8.6e-192) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (a <= 9e+63) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) / (a / y)) tmp = 0 if a <= -3.4e-103: tmp = t_1 elif a <= 8.6e-192: tmp = t - (((t - x) * (y - a)) / z) elif a <= 9e+63: tmp = t * ((y - z) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) / Float64(a / y))) tmp = 0.0 if (a <= -3.4e-103) tmp = t_1; elseif (a <= 8.6e-192) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); elseif (a <= 9e+63) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) / (a / y)); tmp = 0.0; if (a <= -3.4e-103) tmp = t_1; elseif (a <= 8.6e-192) tmp = t - (((t - x) * (y - a)) / z); elseif (a <= 9e+63) tmp = t * ((y - z) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e-103], t$95$1, If[LessEqual[a, 8.6e-192], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e+63], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -3.4 \cdot 10^{-103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{-192}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+63}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.40000000000000003e-103 or 9.00000000000000034e63 < a Initial program 69.4%
associate-/l*91.7%
Simplified91.7%
*-commutative91.7%
associate-*l/69.4%
associate-*r/94.1%
clear-num94.0%
un-div-inv94.0%
Applied egg-rr94.0%
Taylor expanded in z around 0 71.9%
if -3.40000000000000003e-103 < a < 8.59999999999999998e-192Initial program 71.3%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in z around inf 88.4%
associate--l+88.4%
associate-*r/88.4%
associate-*r/88.4%
mul-1-neg88.4%
div-sub89.7%
mul-1-neg89.7%
distribute-lft-out--89.7%
associate-*r/89.7%
mul-1-neg89.7%
unsub-neg89.7%
distribute-rgt-out--89.7%
Simplified89.7%
if 8.59999999999999998e-192 < a < 9.00000000000000034e63Initial program 60.3%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in x around 0 42.1%
associate-/l*71.5%
Simplified71.5%
Final simplification77.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.5e-103) (not (<= a 5.5e+61))) (+ x (* y (/ (- t x) a))) (* t (/ (- y z) (- a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.5e-103) || !(a <= 5.5e+61)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-3.5d-103)) .or. (.not. (a <= 5.5d+61))) then
tmp = x + (y * ((t - x) / a))
else
tmp = t * ((y - z) / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.5e-103) || !(a <= 5.5e+61)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.5e-103) or not (a <= 5.5e+61): tmp = x + (y * ((t - x) / a)) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.5e-103) || !(a <= 5.5e+61)) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); else tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.5e-103) || ~((a <= 5.5e+61))) tmp = x + (y * ((t - x) / a)); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.5e-103], N[Not[LessEqual[a, 5.5e+61]], $MachinePrecision]], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.5 \cdot 10^{-103} \lor \neg \left(a \leq 5.5 \cdot 10^{+61}\right):\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if a < -3.50000000000000016e-103 or 5.50000000000000036e61 < a Initial program 69.4%
associate-/l*91.7%
Simplified91.7%
Taylor expanded in z around 0 62.4%
associate-/l*71.1%
Simplified71.1%
if -3.50000000000000016e-103 < a < 5.50000000000000036e61Initial program 67.4%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in x around 0 55.7%
associate-/l*69.9%
Simplified69.9%
Final simplification70.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.7e-103) (not (<= a 6.4e-12))) (+ x (/ (- t x) (/ a y))) (- t (* y (/ (- t x) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.7e-103) || !(a <= 6.4e-12)) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t - (y * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-3.7d-103)) .or. (.not. (a <= 6.4d-12))) then
tmp = x + ((t - x) / (a / y))
else
tmp = t - (y * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.7e-103) || !(a <= 6.4e-12)) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t - (y * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.7e-103) or not (a <= 6.4e-12): tmp = x + ((t - x) / (a / y)) else: tmp = t - (y * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.7e-103) || !(a <= 6.4e-12)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); else tmp = Float64(t - Float64(y * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.7e-103) || ~((a <= 6.4e-12))) tmp = x + ((t - x) / (a / y)); else tmp = t - (y * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.7e-103], N[Not[LessEqual[a, 6.4e-12]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(y * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{-103} \lor \neg \left(a \leq 6.4 \cdot 10^{-12}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if a < -3.6999999999999999e-103 or 6.4000000000000002e-12 < a Initial program 70.5%
associate-/l*91.7%
Simplified91.7%
*-commutative91.7%
associate-*l/70.5%
associate-*r/93.9%
clear-num93.8%
un-div-inv93.8%
Applied egg-rr93.8%
Taylor expanded in z around 0 70.9%
if -3.6999999999999999e-103 < a < 6.4000000000000002e-12Initial program 65.6%
associate-/l*70.9%
Simplified70.9%
Taylor expanded in z around inf 79.8%
associate--l+79.8%
associate-*r/79.8%
associate-*r/79.8%
mul-1-neg79.8%
div-sub80.8%
mul-1-neg80.8%
distribute-lft-out--80.8%
associate-*r/80.8%
mul-1-neg80.8%
unsub-neg80.8%
distribute-rgt-out--80.8%
Simplified80.8%
Taylor expanded in y around inf 78.1%
associate-/l*82.2%
Simplified82.2%
Final simplification75.6%
(FPCore (x y z t a) :precision binary64 (if (<= x -9.6e+95) x (if (<= x 1.12e+156) (* t (/ (- y z) (- a z))) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -9.6e+95) {
tmp = x;
} else if (x <= 1.12e+156) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-9.6d+95)) then
tmp = x
else if (x <= 1.12d+156) then
tmp = t * ((y - z) / (a - z))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -9.6e+95) {
tmp = x;
} else if (x <= 1.12e+156) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -9.6e+95: tmp = x elif x <= 1.12e+156: tmp = t * ((y - z) / (a - z)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -9.6e+95) tmp = x; elseif (x <= 1.12e+156) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -9.6e+95) tmp = x; elseif (x <= 1.12e+156) tmp = t * ((y - z) / (a - z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -9.6e+95], x, If[LessEqual[x, 1.12e+156], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.6 \cdot 10^{+95}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{+156}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -9.6000000000000002e95 or 1.12000000000000007e156 < x Initial program 57.8%
associate-/l*76.5%
Simplified76.5%
Taylor expanded in a around inf 43.8%
if -9.6000000000000002e95 < x < 1.12000000000000007e156Initial program 72.6%
associate-/l*85.7%
Simplified85.7%
Taylor expanded in x around 0 50.3%
associate-/l*68.3%
Simplified68.3%
Final simplification61.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -6.6e-40) x (if (<= a -3.5e-172) (* t (/ y a)) (if (<= a 1.65e+25) t x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.6e-40) {
tmp = x;
} else if (a <= -3.5e-172) {
tmp = t * (y / a);
} else if (a <= 1.65e+25) {
tmp = t;
} 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 <= (-6.6d-40)) then
tmp = x
else if (a <= (-3.5d-172)) then
tmp = t * (y / a)
else if (a <= 1.65d+25) then
tmp = t
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 <= -6.6e-40) {
tmp = x;
} else if (a <= -3.5e-172) {
tmp = t * (y / a);
} else if (a <= 1.65e+25) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.6e-40: tmp = x elif a <= -3.5e-172: tmp = t * (y / a) elif a <= 1.65e+25: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.6e-40) tmp = x; elseif (a <= -3.5e-172) tmp = Float64(t * Float64(y / a)); elseif (a <= 1.65e+25) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.6e-40) tmp = x; elseif (a <= -3.5e-172) tmp = t * (y / a); elseif (a <= 1.65e+25) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.6e-40], x, If[LessEqual[a, -3.5e-172], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e+25], t, x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.6 \cdot 10^{-40}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.5 \cdot 10^{-172}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -6.59999999999999986e-40 or 1.6500000000000001e25 < a Initial program 68.4%
associate-/l*91.3%
Simplified91.3%
Taylor expanded in a around inf 46.7%
if -6.59999999999999986e-40 < a < -3.50000000000000029e-172Initial program 78.1%
associate-/l*74.4%
Simplified74.4%
Taylor expanded in y around inf 67.2%
div-sub67.2%
Simplified67.2%
Taylor expanded in t around inf 47.7%
Taylor expanded in a around inf 44.4%
associate-/l*47.9%
Simplified47.9%
if -3.50000000000000029e-172 < a < 1.6500000000000001e25Initial program 66.0%
associate-/l*74.6%
Simplified74.6%
Taylor expanded in z around inf 45.4%
Final simplification46.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.8e-34) x (if (<= a 3.1e+25) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.8e-34) {
tmp = x;
} else if (a <= 3.1e+25) {
tmp = t;
} 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 <= (-4.8d-34)) then
tmp = x
else if (a <= 3.1d+25) then
tmp = t
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 <= -4.8e-34) {
tmp = x;
} else if (a <= 3.1e+25) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.8e-34: tmp = x elif a <= 3.1e+25: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.8e-34) tmp = x; elseif (a <= 3.1e+25) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.8e-34) tmp = x; elseif (a <= 3.1e+25) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.8e-34], x, If[LessEqual[a, 3.1e+25], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{-34}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.79999999999999982e-34 or 3.0999999999999998e25 < a Initial program 68.7%
associate-/l*91.9%
Simplified91.9%
Taylor expanded in a around inf 46.8%
if -4.79999999999999982e-34 < a < 3.0999999999999998e25Initial program 68.3%
associate-/l*74.2%
Simplified74.2%
Taylor expanded in z around inf 40.5%
Final simplification43.7%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return 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 = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 68.5%
associate-/l*83.1%
Simplified83.1%
Taylor expanded in z around inf 27.2%
Final simplification27.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024079
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))