
(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(y - z) * Float64(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[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 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(y - z) * Float64(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[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -1e-306) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ (- t (/ y (/ z (- t x)))) (/ (* (- t x) 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 <= -1e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = (t - (y / (z / (t - x)))) + (((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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-1d-306)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = (t - (y / (z / (t - x)))) + (((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 t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -1e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = (t - (y / (z / (t - x)))) + (((t - x) * 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 <= -1e-306) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = (t - (y / (z / (t - x)))) + (((t - x) * a) / z) 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 ((t_1 <= -1e-306) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(Float64(t - Float64(y / Float64(z / Float64(t - x)))) + Float64(Float64(Float64(t - x) * 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 <= -1e-306) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = (t - (y / (z / (t - x)))) + (((t - x) * a) / z); 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[Or[LessEqual[t$95$1, -1e-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[(N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-306} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;\left(t - \frac{y}{\frac{z}{t - x}}\right) + \frac{\left(t - x\right) \cdot a}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000003e-306 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.9%
Taylor expanded in y around 0 80.1%
div-sub80.1%
associate-*r/80.1%
mul-1-neg80.1%
distribute-lft-neg-out80.1%
associate-*r/90.6%
*-commutative90.6%
distribute-lft-out91.9%
sub-neg91.9%
associate-/r/94.3%
Simplified94.3%
if -1.00000000000000003e-306 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.6%
Taylor expanded in z around inf 81.6%
sub-neg81.6%
+-commutative81.6%
mul-1-neg81.6%
unsub-neg81.6%
associate-/l*92.6%
mul-1-neg92.6%
remove-double-neg92.6%
Simplified92.6%
Final simplification94.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -1e-306) (not (<= t_1 0.0)))
t_1
(+ t (/ (* (- t x) (- a y)) 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 <= -1e-306) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t + (((t - x) * (a - y)) / 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 <= (-1d-306)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = t_1
else
tmp = t + (((t - x) * (a - y)) / 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 <= -1e-306) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -1e-306) or not (t_1 <= 0.0): tmp = t_1 else: tmp = t + (((t - x) * (a - y)) / z) 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 ((t_1 <= -1e-306) || !(t_1 <= 0.0)) tmp = t_1; else tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / 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 <= -1e-306) || ~((t_1 <= 0.0))) tmp = t_1; else tmp = t + (((t - x) * (a - y)) / z); 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[Or[LessEqual[t$95$1, -1e-306], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], t$95$1, N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-306} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000003e-306 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.9%
if -1.00000000000000003e-306 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.6%
Taylor expanded in z around -inf 81.6%
+-commutative81.6%
mul-1-neg81.6%
unsub-neg81.6%
distribute-rgt-out--81.6%
Simplified81.6%
Final simplification90.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -1e-306) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ t (/ (* (- t x) (- a y)) 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 <= -1e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + (((t - x) * (a - y)) / 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 <= (-1d-306)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + (((t - x) * (a - y)) / 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 <= -1e-306) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -1e-306) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + (((t - x) * (a - y)) / z) 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 ((t_1 <= -1e-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(t - x) * Float64(a - y)) / 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 <= -1e-306) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + (((t - x) * (a - y)) / z); 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[Or[LessEqual[t$95$1, -1e-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[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -1 \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 \left(a - y\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000003e-306 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.9%
Taylor expanded in y around 0 80.1%
div-sub80.1%
associate-*r/80.1%
mul-1-neg80.1%
distribute-lft-neg-out80.1%
associate-*r/90.6%
*-commutative90.6%
distribute-lft-out91.9%
sub-neg91.9%
associate-/r/94.3%
Simplified94.3%
if -1.00000000000000003e-306 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.6%
Taylor expanded in z around -inf 81.6%
+-commutative81.6%
mul-1-neg81.6%
unsub-neg81.6%
distribute-rgt-out--81.6%
Simplified81.6%
Final simplification93.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (- t (/ y (/ z t)))))
(if (<= z -3.6e+61)
t_2
(if (<= z -4.8e-250)
t_1
(if (<= z -1.26e-297)
(/ y (/ a t))
(if (<= z 5.6e-191)
t_1
(if (<= z 2.05e-88)
(* t (/ (- y z) a))
(if (<= z 4.8e-66) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -3.6e+61) {
tmp = t_2;
} else if (z <= -4.8e-250) {
tmp = t_1;
} else if (z <= -1.26e-297) {
tmp = y / (a / t);
} else if (z <= 5.6e-191) {
tmp = t_1;
} else if (z <= 2.05e-88) {
tmp = t * ((y - z) / a);
} else if (z <= 4.8e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
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 * (1.0d0 - (y / a))
t_2 = t - (y / (z / t))
if (z <= (-3.6d+61)) then
tmp = t_2
else if (z <= (-4.8d-250)) then
tmp = t_1
else if (z <= (-1.26d-297)) then
tmp = y / (a / t)
else if (z <= 5.6d-191) then
tmp = t_1
else if (z <= 2.05d-88) then
tmp = t * ((y - z) / a)
else if (z <= 4.8d-66) then
tmp = t_1
else
tmp = t_2
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 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -3.6e+61) {
tmp = t_2;
} else if (z <= -4.8e-250) {
tmp = t_1;
} else if (z <= -1.26e-297) {
tmp = y / (a / t);
} else if (z <= 5.6e-191) {
tmp = t_1;
} else if (z <= 2.05e-88) {
tmp = t * ((y - z) / a);
} else if (z <= 4.8e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t - (y / (z / t)) tmp = 0 if z <= -3.6e+61: tmp = t_2 elif z <= -4.8e-250: tmp = t_1 elif z <= -1.26e-297: tmp = y / (a / t) elif z <= 5.6e-191: tmp = t_1 elif z <= 2.05e-88: tmp = t * ((y - z) / a) elif z <= 4.8e-66: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t - Float64(y / Float64(z / t))) tmp = 0.0 if (z <= -3.6e+61) tmp = t_2; elseif (z <= -4.8e-250) tmp = t_1; elseif (z <= -1.26e-297) tmp = Float64(y / Float64(a / t)); elseif (z <= 5.6e-191) tmp = t_1; elseif (z <= 2.05e-88) tmp = Float64(t * Float64(Float64(y - z) / a)); elseif (z <= 4.8e-66) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t - (y / (z / t)); tmp = 0.0; if (z <= -3.6e+61) tmp = t_2; elseif (z <= -4.8e-250) tmp = t_1; elseif (z <= -1.26e-297) tmp = y / (a / t); elseif (z <= 5.6e-191) tmp = t_1; elseif (z <= 2.05e-88) tmp = t * ((y - z) / a); elseif (z <= 4.8e-66) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.6e+61], t$95$2, If[LessEqual[z, -4.8e-250], t$95$1, If[LessEqual[z, -1.26e-297], N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-191], t$95$1, If[LessEqual[z, 2.05e-88], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-66], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t - \frac{y}{\frac{z}{t}}\\
\mathbf{if}\;z \leq -3.6 \cdot 10^{+61}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.26 \cdot 10^{-297}:\\
\;\;\;\;\frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-191}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-88}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -3.6000000000000001e61 or 4.80000000000000052e-66 < z Initial program 71.8%
Taylor expanded in x around 0 52.1%
associate-*r/71.7%
Simplified71.7%
Taylor expanded in a around 0 63.1%
associate-*r/63.1%
neg-mul-163.1%
Simplified63.1%
Taylor expanded in y around 0 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
associate-/l*63.0%
Simplified63.0%
if -3.6000000000000001e61 < z < -4.7999999999999998e-250 or -1.2599999999999999e-297 < z < 5.60000000000000023e-191 or 2.0500000000000001e-88 < z < 4.80000000000000052e-66Initial program 92.2%
Taylor expanded in y around 0 91.3%
div-sub91.3%
associate-*r/91.3%
mul-1-neg91.3%
distribute-lft-neg-out91.3%
associate-*r/90.2%
*-commutative90.2%
distribute-lft-out92.2%
sub-neg92.2%
associate-/r/95.0%
Simplified95.0%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around inf 59.2%
*-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
Simplified59.2%
if -4.7999999999999998e-250 < z < -1.2599999999999999e-297Initial program 99.9%
Taylor expanded in y around -inf 76.7%
Taylor expanded in t around inf 64.1%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in a around inf 64.1%
associate-/l*79.3%
Simplified79.3%
if 5.60000000000000023e-191 < z < 2.0500000000000001e-88Initial program 91.3%
Taylor expanded in x around 0 53.9%
associate-*r/58.1%
Simplified58.1%
Taylor expanded in a around inf 53.5%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (- t (/ y (/ z t)))))
(if (<= z -1.7e+63)
t_2
(if (<= z -3.5e-249)
t_1
(if (<= z -1.7e-298)
(/ y (/ a t))
(if (<= z 5.2e-189)
(- x (/ y (/ a x)))
(if (<= z 1.65e-88)
(* t (/ (- y z) a))
(if (<= z 8e-66) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -1.7e+63) {
tmp = t_2;
} else if (z <= -3.5e-249) {
tmp = t_1;
} else if (z <= -1.7e-298) {
tmp = y / (a / t);
} else if (z <= 5.2e-189) {
tmp = x - (y / (a / x));
} else if (z <= 1.65e-88) {
tmp = t * ((y - z) / a);
} else if (z <= 8e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
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 * (1.0d0 - (y / a))
t_2 = t - (y / (z / t))
if (z <= (-1.7d+63)) then
tmp = t_2
else if (z <= (-3.5d-249)) then
tmp = t_1
else if (z <= (-1.7d-298)) then
tmp = y / (a / t)
else if (z <= 5.2d-189) then
tmp = x - (y / (a / x))
else if (z <= 1.65d-88) then
tmp = t * ((y - z) / a)
else if (z <= 8d-66) then
tmp = t_1
else
tmp = t_2
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 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -1.7e+63) {
tmp = t_2;
} else if (z <= -3.5e-249) {
tmp = t_1;
} else if (z <= -1.7e-298) {
tmp = y / (a / t);
} else if (z <= 5.2e-189) {
tmp = x - (y / (a / x));
} else if (z <= 1.65e-88) {
tmp = t * ((y - z) / a);
} else if (z <= 8e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t - (y / (z / t)) tmp = 0 if z <= -1.7e+63: tmp = t_2 elif z <= -3.5e-249: tmp = t_1 elif z <= -1.7e-298: tmp = y / (a / t) elif z <= 5.2e-189: tmp = x - (y / (a / x)) elif z <= 1.65e-88: tmp = t * ((y - z) / a) elif z <= 8e-66: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t - Float64(y / Float64(z / t))) tmp = 0.0 if (z <= -1.7e+63) tmp = t_2; elseif (z <= -3.5e-249) tmp = t_1; elseif (z <= -1.7e-298) tmp = Float64(y / Float64(a / t)); elseif (z <= 5.2e-189) tmp = Float64(x - Float64(y / Float64(a / x))); elseif (z <= 1.65e-88) tmp = Float64(t * Float64(Float64(y - z) / a)); elseif (z <= 8e-66) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t - (y / (z / t)); tmp = 0.0; if (z <= -1.7e+63) tmp = t_2; elseif (z <= -3.5e-249) tmp = t_1; elseif (z <= -1.7e-298) tmp = y / (a / t); elseif (z <= 5.2e-189) tmp = x - (y / (a / x)); elseif (z <= 1.65e-88) tmp = t * ((y - z) / a); elseif (z <= 8e-66) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.7e+63], t$95$2, If[LessEqual[z, -3.5e-249], t$95$1, If[LessEqual[z, -1.7e-298], N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e-189], N[(x - N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-88], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e-66], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t - \frac{y}{\frac{z}{t}}\\
\mathbf{if}\;z \leq -1.7 \cdot 10^{+63}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-249}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-298}:\\
\;\;\;\;\frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-189}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-88}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -1.6999999999999999e63 or 7.9999999999999998e-66 < z Initial program 71.8%
Taylor expanded in x around 0 52.1%
associate-*r/71.7%
Simplified71.7%
Taylor expanded in a around 0 63.1%
associate-*r/63.1%
neg-mul-163.1%
Simplified63.1%
Taylor expanded in y around 0 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
associate-/l*63.0%
Simplified63.0%
if -1.6999999999999999e63 < z < -3.50000000000000013e-249 or 1.64999999999999997e-88 < z < 7.9999999999999998e-66Initial program 88.9%
Taylor expanded in y around 0 87.6%
div-sub87.6%
associate-*r/87.6%
mul-1-neg87.6%
distribute-lft-neg-out87.6%
associate-*r/87.5%
*-commutative87.5%
distribute-lft-out88.9%
sub-neg88.9%
associate-/r/92.8%
Simplified92.8%
Taylor expanded in z around 0 64.6%
Taylor expanded in x around inf 48.7%
*-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
Simplified48.7%
if -3.50000000000000013e-249 < z < -1.7e-298Initial program 99.9%
Taylor expanded in y around -inf 76.7%
Taylor expanded in t around inf 64.1%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in a around inf 64.1%
associate-/l*79.3%
Simplified79.3%
if -1.7e-298 < z < 5.1999999999999998e-189Initial program 99.9%
Taylor expanded in y around 0 99.9%
div-sub99.9%
associate-*r/99.9%
mul-1-neg99.9%
distribute-lft-neg-out99.9%
associate-*r/96.7%
*-commutative96.7%
distribute-lft-out99.9%
sub-neg99.9%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
Taylor expanded in t around 0 83.6%
+-commutative83.6%
mul-1-neg83.6%
unsub-neg83.6%
associate-/l*83.6%
Simplified83.6%
if 5.1999999999999998e-189 < z < 1.64999999999999997e-88Initial program 91.3%
Taylor expanded in x around 0 53.9%
associate-*r/58.1%
Simplified58.1%
Taylor expanded in a around inf 53.5%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (- t (/ y (/ z t)))))
(if (<= z -7.8e+61)
t_2
(if (<= z -5.5e-250)
t_1
(if (<= z -1.66e-301)
(/ y (/ a t))
(if (<= z 1.95e-188)
(- x (/ y (/ a x)))
(if (<= z 2.05e-88)
(/ t (/ a (- y z)))
(if (<= z 9.2e-66) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -7.8e+61) {
tmp = t_2;
} else if (z <= -5.5e-250) {
tmp = t_1;
} else if (z <= -1.66e-301) {
tmp = y / (a / t);
} else if (z <= 1.95e-188) {
tmp = x - (y / (a / x));
} else if (z <= 2.05e-88) {
tmp = t / (a / (y - z));
} else if (z <= 9.2e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
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 * (1.0d0 - (y / a))
t_2 = t - (y / (z / t))
if (z <= (-7.8d+61)) then
tmp = t_2
else if (z <= (-5.5d-250)) then
tmp = t_1
else if (z <= (-1.66d-301)) then
tmp = y / (a / t)
else if (z <= 1.95d-188) then
tmp = x - (y / (a / x))
else if (z <= 2.05d-88) then
tmp = t / (a / (y - z))
else if (z <= 9.2d-66) then
tmp = t_1
else
tmp = t_2
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 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -7.8e+61) {
tmp = t_2;
} else if (z <= -5.5e-250) {
tmp = t_1;
} else if (z <= -1.66e-301) {
tmp = y / (a / t);
} else if (z <= 1.95e-188) {
tmp = x - (y / (a / x));
} else if (z <= 2.05e-88) {
tmp = t / (a / (y - z));
} else if (z <= 9.2e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t - (y / (z / t)) tmp = 0 if z <= -7.8e+61: tmp = t_2 elif z <= -5.5e-250: tmp = t_1 elif z <= -1.66e-301: tmp = y / (a / t) elif z <= 1.95e-188: tmp = x - (y / (a / x)) elif z <= 2.05e-88: tmp = t / (a / (y - z)) elif z <= 9.2e-66: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t - Float64(y / Float64(z / t))) tmp = 0.0 if (z <= -7.8e+61) tmp = t_2; elseif (z <= -5.5e-250) tmp = t_1; elseif (z <= -1.66e-301) tmp = Float64(y / Float64(a / t)); elseif (z <= 1.95e-188) tmp = Float64(x - Float64(y / Float64(a / x))); elseif (z <= 2.05e-88) tmp = Float64(t / Float64(a / Float64(y - z))); elseif (z <= 9.2e-66) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t - (y / (z / t)); tmp = 0.0; if (z <= -7.8e+61) tmp = t_2; elseif (z <= -5.5e-250) tmp = t_1; elseif (z <= -1.66e-301) tmp = y / (a / t); elseif (z <= 1.95e-188) tmp = x - (y / (a / x)); elseif (z <= 2.05e-88) tmp = t / (a / (y - z)); elseif (z <= 9.2e-66) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+61], t$95$2, If[LessEqual[z, -5.5e-250], t$95$1, If[LessEqual[z, -1.66e-301], N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.95e-188], N[(x - N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e-88], N[(t / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e-66], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t - \frac{y}{\frac{z}{t}}\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+61}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.66 \cdot 10^{-301}:\\
\;\;\;\;\frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-188}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-88}:\\
\;\;\;\;\frac{t}{\frac{a}{y - z}}\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -7.79999999999999975e61 or 9.19999999999999967e-66 < z Initial program 71.8%
Taylor expanded in x around 0 52.1%
associate-*r/71.7%
Simplified71.7%
Taylor expanded in a around 0 63.1%
associate-*r/63.1%
neg-mul-163.1%
Simplified63.1%
Taylor expanded in y around 0 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
associate-/l*63.0%
Simplified63.0%
if -7.79999999999999975e61 < z < -5.5e-250 or 2.0500000000000001e-88 < z < 9.19999999999999967e-66Initial program 88.9%
Taylor expanded in y around 0 87.6%
div-sub87.6%
associate-*r/87.6%
mul-1-neg87.6%
distribute-lft-neg-out87.6%
associate-*r/87.5%
*-commutative87.5%
distribute-lft-out88.9%
sub-neg88.9%
associate-/r/92.8%
Simplified92.8%
Taylor expanded in z around 0 64.6%
Taylor expanded in x around inf 48.7%
*-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
Simplified48.7%
if -5.5e-250 < z < -1.65999999999999991e-301Initial program 99.9%
Taylor expanded in y around -inf 76.7%
Taylor expanded in t around inf 64.1%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in a around inf 64.1%
associate-/l*79.3%
Simplified79.3%
if -1.65999999999999991e-301 < z < 1.94999999999999988e-188Initial program 99.9%
Taylor expanded in y around 0 99.9%
div-sub99.9%
associate-*r/99.9%
mul-1-neg99.9%
distribute-lft-neg-out99.9%
associate-*r/96.7%
*-commutative96.7%
distribute-lft-out99.9%
sub-neg99.9%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
Taylor expanded in t around 0 83.6%
+-commutative83.6%
mul-1-neg83.6%
unsub-neg83.6%
associate-/l*83.6%
Simplified83.6%
if 1.94999999999999988e-188 < z < 2.0500000000000001e-88Initial program 91.3%
Taylor expanded in x around 0 53.9%
associate-*r/58.1%
Simplified58.1%
Taylor expanded in a around inf 45.1%
associate-/l*53.5%
Simplified53.5%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (- t (/ y (/ z t)))))
(if (<= z -1.25e+64)
t_2
(if (<= z -2.8e-248)
t_1
(if (<= z -1.9e-299)
(/ y (/ (- a z) t))
(if (<= z 2.75e-189)
(- x (/ y (/ a x)))
(if (<= z 1.35e-88)
(/ t (/ a (- y z)))
(if (<= z 4.2e-66) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -1.25e+64) {
tmp = t_2;
} else if (z <= -2.8e-248) {
tmp = t_1;
} else if (z <= -1.9e-299) {
tmp = y / ((a - z) / t);
} else if (z <= 2.75e-189) {
tmp = x - (y / (a / x));
} else if (z <= 1.35e-88) {
tmp = t / (a / (y - z));
} else if (z <= 4.2e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
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 * (1.0d0 - (y / a))
t_2 = t - (y / (z / t))
if (z <= (-1.25d+64)) then
tmp = t_2
else if (z <= (-2.8d-248)) then
tmp = t_1
else if (z <= (-1.9d-299)) then
tmp = y / ((a - z) / t)
else if (z <= 2.75d-189) then
tmp = x - (y / (a / x))
else if (z <= 1.35d-88) then
tmp = t / (a / (y - z))
else if (z <= 4.2d-66) then
tmp = t_1
else
tmp = t_2
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 - (y / a));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -1.25e+64) {
tmp = t_2;
} else if (z <= -2.8e-248) {
tmp = t_1;
} else if (z <= -1.9e-299) {
tmp = y / ((a - z) / t);
} else if (z <= 2.75e-189) {
tmp = x - (y / (a / x));
} else if (z <= 1.35e-88) {
tmp = t / (a / (y - z));
} else if (z <= 4.2e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t - (y / (z / t)) tmp = 0 if z <= -1.25e+64: tmp = t_2 elif z <= -2.8e-248: tmp = t_1 elif z <= -1.9e-299: tmp = y / ((a - z) / t) elif z <= 2.75e-189: tmp = x - (y / (a / x)) elif z <= 1.35e-88: tmp = t / (a / (y - z)) elif z <= 4.2e-66: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t - Float64(y / Float64(z / t))) tmp = 0.0 if (z <= -1.25e+64) tmp = t_2; elseif (z <= -2.8e-248) tmp = t_1; elseif (z <= -1.9e-299) tmp = Float64(y / Float64(Float64(a - z) / t)); elseif (z <= 2.75e-189) tmp = Float64(x - Float64(y / Float64(a / x))); elseif (z <= 1.35e-88) tmp = Float64(t / Float64(a / Float64(y - z))); elseif (z <= 4.2e-66) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t - (y / (z / t)); tmp = 0.0; if (z <= -1.25e+64) tmp = t_2; elseif (z <= -2.8e-248) tmp = t_1; elseif (z <= -1.9e-299) tmp = y / ((a - z) / t); elseif (z <= 2.75e-189) tmp = x - (y / (a / x)); elseif (z <= 1.35e-88) tmp = t / (a / (y - z)); elseif (z <= 4.2e-66) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e+64], t$95$2, If[LessEqual[z, -2.8e-248], t$95$1, If[LessEqual[z, -1.9e-299], N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.75e-189], N[(x - N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e-88], N[(t / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-66], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t - \frac{y}{\frac{z}{t}}\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-248}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-299}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t}}\\
\mathbf{elif}\;z \leq 2.75 \cdot 10^{-189}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-88}:\\
\;\;\;\;\frac{t}{\frac{a}{y - z}}\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -1.25e64 or 4.2000000000000001e-66 < z Initial program 71.8%
Taylor expanded in x around 0 52.1%
associate-*r/71.7%
Simplified71.7%
Taylor expanded in a around 0 63.1%
associate-*r/63.1%
neg-mul-163.1%
Simplified63.1%
Taylor expanded in y around 0 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
associate-/l*63.0%
Simplified63.0%
if -1.25e64 < z < -2.8000000000000001e-248 or 1.34999999999999997e-88 < z < 4.2000000000000001e-66Initial program 88.9%
Taylor expanded in y around 0 87.6%
div-sub87.6%
associate-*r/87.6%
mul-1-neg87.6%
distribute-lft-neg-out87.6%
associate-*r/87.5%
*-commutative87.5%
distribute-lft-out88.9%
sub-neg88.9%
associate-/r/92.8%
Simplified92.8%
Taylor expanded in z around 0 64.6%
Taylor expanded in x around inf 48.7%
*-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
Simplified48.7%
if -2.8000000000000001e-248 < z < -1.9000000000000001e-299Initial program 99.9%
Taylor expanded in y around -inf 76.7%
Taylor expanded in t around inf 64.1%
associate-/l*79.3%
Simplified79.3%
if -1.9000000000000001e-299 < z < 2.7499999999999999e-189Initial program 99.9%
Taylor expanded in y around 0 99.9%
div-sub99.9%
associate-*r/99.9%
mul-1-neg99.9%
distribute-lft-neg-out99.9%
associate-*r/96.7%
*-commutative96.7%
distribute-lft-out99.9%
sub-neg99.9%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
Taylor expanded in t around 0 83.6%
+-commutative83.6%
mul-1-neg83.6%
unsub-neg83.6%
associate-/l*83.6%
Simplified83.6%
if 2.7499999999999999e-189 < z < 1.34999999999999997e-88Initial program 91.3%
Taylor expanded in x around 0 53.9%
associate-*r/58.1%
Simplified58.1%
Taylor expanded in a around inf 45.1%
associate-/l*53.5%
Simplified53.5%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -3.7e+61)
(* t (/ (- z y) z))
(if (<= z -4.8e-250)
t_1
(if (<= z -7.8e-303)
(/ y (/ (- a z) t))
(if (<= z 4.8e-188)
(- x (/ y (/ a x)))
(if (<= z 2.4e-88)
(/ t (/ a (- y z)))
(if (<= z 2.4e-66) t_1 (- t (/ y (/ z t)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -3.7e+61) {
tmp = t * ((z - y) / z);
} else if (z <= -4.8e-250) {
tmp = t_1;
} else if (z <= -7.8e-303) {
tmp = y / ((a - z) / t);
} else if (z <= 4.8e-188) {
tmp = x - (y / (a / x));
} else if (z <= 2.4e-88) {
tmp = t / (a / (y - z));
} else if (z <= 2.4e-66) {
tmp = t_1;
} else {
tmp = t - (y / (z / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-3.7d+61)) then
tmp = t * ((z - y) / z)
else if (z <= (-4.8d-250)) then
tmp = t_1
else if (z <= (-7.8d-303)) then
tmp = y / ((a - z) / t)
else if (z <= 4.8d-188) then
tmp = x - (y / (a / x))
else if (z <= 2.4d-88) then
tmp = t / (a / (y - z))
else if (z <= 2.4d-66) then
tmp = t_1
else
tmp = t - (y / (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 * (1.0 - (y / a));
double tmp;
if (z <= -3.7e+61) {
tmp = t * ((z - y) / z);
} else if (z <= -4.8e-250) {
tmp = t_1;
} else if (z <= -7.8e-303) {
tmp = y / ((a - z) / t);
} else if (z <= 4.8e-188) {
tmp = x - (y / (a / x));
} else if (z <= 2.4e-88) {
tmp = t / (a / (y - z));
} else if (z <= 2.4e-66) {
tmp = t_1;
} else {
tmp = t - (y / (z / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -3.7e+61: tmp = t * ((z - y) / z) elif z <= -4.8e-250: tmp = t_1 elif z <= -7.8e-303: tmp = y / ((a - z) / t) elif z <= 4.8e-188: tmp = x - (y / (a / x)) elif z <= 2.4e-88: tmp = t / (a / (y - z)) elif z <= 2.4e-66: tmp = t_1 else: tmp = t - (y / (z / t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -3.7e+61) tmp = Float64(t * Float64(Float64(z - y) / z)); elseif (z <= -4.8e-250) tmp = t_1; elseif (z <= -7.8e-303) tmp = Float64(y / Float64(Float64(a - z) / t)); elseif (z <= 4.8e-188) tmp = Float64(x - Float64(y / Float64(a / x))); elseif (z <= 2.4e-88) tmp = Float64(t / Float64(a / Float64(y - z))); elseif (z <= 2.4e-66) tmp = t_1; else tmp = Float64(t - Float64(y / Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -3.7e+61) tmp = t * ((z - y) / z); elseif (z <= -4.8e-250) tmp = t_1; elseif (z <= -7.8e-303) tmp = y / ((a - z) / t); elseif (z <= 4.8e-188) tmp = x - (y / (a / x)); elseif (z <= 2.4e-88) tmp = t / (a / (y - z)); elseif (z <= 2.4e-66) tmp = t_1; else tmp = t - (y / (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.7e+61], N[(t * N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.8e-250], t$95$1, If[LessEqual[z, -7.8e-303], N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-188], N[(x - N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-88], N[(t / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-66], t$95$1, N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{+61}:\\
\;\;\;\;t \cdot \frac{z - y}{z}\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -7.8 \cdot 10^{-303}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t}}\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-188}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-88}:\\
\;\;\;\;\frac{t}{\frac{a}{y - z}}\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\end{array}
\end{array}
if z < -3.70000000000000003e61Initial program 68.8%
Taylor expanded in x around 0 45.4%
associate-*r/64.5%
Simplified64.5%
Taylor expanded in a around 0 59.5%
associate-*r/59.5%
neg-mul-159.5%
Simplified59.5%
if -3.70000000000000003e61 < z < -4.7999999999999998e-250 or 2.4e-88 < z < 2.40000000000000026e-66Initial program 88.9%
Taylor expanded in y around 0 87.6%
div-sub87.6%
associate-*r/87.6%
mul-1-neg87.6%
distribute-lft-neg-out87.6%
associate-*r/87.5%
*-commutative87.5%
distribute-lft-out88.9%
sub-neg88.9%
associate-/r/92.8%
Simplified92.8%
Taylor expanded in z around 0 64.6%
Taylor expanded in x around inf 48.7%
*-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
Simplified48.7%
if -4.7999999999999998e-250 < z < -7.7999999999999998e-303Initial program 99.9%
Taylor expanded in y around -inf 76.7%
Taylor expanded in t around inf 64.1%
associate-/l*79.3%
Simplified79.3%
if -7.7999999999999998e-303 < z < 4.8e-188Initial program 99.9%
Taylor expanded in y around 0 99.9%
div-sub99.9%
associate-*r/99.9%
mul-1-neg99.9%
distribute-lft-neg-out99.9%
associate-*r/96.7%
*-commutative96.7%
distribute-lft-out99.9%
sub-neg99.9%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
Taylor expanded in t around 0 83.6%
+-commutative83.6%
mul-1-neg83.6%
unsub-neg83.6%
associate-/l*83.6%
Simplified83.6%
if 4.8e-188 < z < 2.4e-88Initial program 91.3%
Taylor expanded in x around 0 53.9%
associate-*r/58.1%
Simplified58.1%
Taylor expanded in a around inf 45.1%
associate-/l*53.5%
Simplified53.5%
if 2.40000000000000026e-66 < z Initial program 74.2%
Taylor expanded in x around 0 57.6%
associate-*r/77.5%
Simplified77.5%
Taylor expanded in a around 0 65.9%
associate-*r/65.9%
neg-mul-165.9%
Simplified65.9%
Taylor expanded in y around 0 58.6%
+-commutative58.6%
mul-1-neg58.6%
unsub-neg58.6%
associate-/l*65.9%
Simplified65.9%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y z) (/ a (- t x))))))
(if (<= a -5.2e-8)
t_1
(if (<= a -1.52e-142)
(/ t (/ (- a z) (- y z)))
(if (<= a 310000.0) (+ t (/ (* y (- x t)) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) / (a / (t - x)));
double tmp;
if (a <= -5.2e-8) {
tmp = t_1;
} else if (a <= -1.52e-142) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 310000.0) {
tmp = t + ((y * (x - t)) / 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) / (a / (t - x)))
if (a <= (-5.2d-8)) then
tmp = t_1
else if (a <= (-1.52d-142)) then
tmp = t / ((a - z) / (y - z))
else if (a <= 310000.0d0) then
tmp = t + ((y * (x - t)) / 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) / (a / (t - x)));
double tmp;
if (a <= -5.2e-8) {
tmp = t_1;
} else if (a <= -1.52e-142) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 310000.0) {
tmp = t + ((y * (x - t)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) / (a / (t - x))) tmp = 0 if a <= -5.2e-8: tmp = t_1 elif a <= -1.52e-142: tmp = t / ((a - z) / (y - z)) elif a <= 310000.0: tmp = t + ((y * (x - t)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) / Float64(a / Float64(t - x)))) tmp = 0.0 if (a <= -5.2e-8) tmp = t_1; elseif (a <= -1.52e-142) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif (a <= 310000.0) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) / (a / (t - x))); tmp = 0.0; if (a <= -5.2e-8) tmp = t_1; elseif (a <= -1.52e-142) tmp = t / ((a - z) / (y - z)); elseif (a <= 310000.0) tmp = t + ((y * (x - t)) / 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[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.2e-8], t$95$1, If[LessEqual[a, -1.52e-142], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 310000.0], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{\frac{a}{t - x}}\\
\mathbf{if}\;a \leq -5.2 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.52 \cdot 10^{-142}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq 310000:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -5.2000000000000002e-8 or 3.1e5 < a Initial program 92.1%
Taylor expanded in a around inf 66.8%
+-commutative66.8%
associate-/l*79.9%
Simplified79.9%
if -5.2000000000000002e-8 < a < -1.51999999999999992e-142Initial program 86.2%
Taylor expanded in y around 0 79.1%
div-sub79.1%
associate-*r/79.1%
mul-1-neg79.1%
distribute-lft-neg-out79.1%
associate-*r/86.2%
*-commutative86.2%
distribute-lft-out86.2%
sub-neg86.2%
associate-/r/96.4%
Simplified96.4%
Taylor expanded in x around 0 75.8%
associate-/l*79.1%
Simplified79.1%
if -1.51999999999999992e-142 < a < 3.1e5Initial program 71.1%
Taylor expanded in z around -inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
distribute-rgt-out--78.5%
Simplified78.5%
Taylor expanded in y around inf 77.7%
Final simplification78.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y z) (/ a (- t x))))))
(if (<= a -1.16e-9)
t_1
(if (<= a -1.3e-131)
(/ t (/ (- a z) (- y z)))
(if (<= a 205000.0) (+ t (/ (* (- t x) (- a y)) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) / (a / (t - x)));
double tmp;
if (a <= -1.16e-9) {
tmp = t_1;
} else if (a <= -1.3e-131) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 205000.0) {
tmp = t + (((t - x) * (a - y)) / 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) / (a / (t - x)))
if (a <= (-1.16d-9)) then
tmp = t_1
else if (a <= (-1.3d-131)) then
tmp = t / ((a - z) / (y - z))
else if (a <= 205000.0d0) then
tmp = t + (((t - x) * (a - y)) / 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) / (a / (t - x)));
double tmp;
if (a <= -1.16e-9) {
tmp = t_1;
} else if (a <= -1.3e-131) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 205000.0) {
tmp = t + (((t - x) * (a - y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) / (a / (t - x))) tmp = 0 if a <= -1.16e-9: tmp = t_1 elif a <= -1.3e-131: tmp = t / ((a - z) / (y - z)) elif a <= 205000.0: tmp = t + (((t - x) * (a - y)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) / Float64(a / Float64(t - x)))) tmp = 0.0 if (a <= -1.16e-9) tmp = t_1; elseif (a <= -1.3e-131) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif (a <= 205000.0) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) / (a / (t - x))); tmp = 0.0; if (a <= -1.16e-9) tmp = t_1; elseif (a <= -1.3e-131) tmp = t / ((a - z) / (y - z)); elseif (a <= 205000.0) tmp = t + (((t - x) * (a - y)) / 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[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.16e-9], t$95$1, If[LessEqual[a, -1.3e-131], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 205000.0], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{\frac{a}{t - x}}\\
\mathbf{if}\;a \leq -1.16 \cdot 10^{-9}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-131}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq 205000:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.15999999999999992e-9 or 205000 < a Initial program 92.1%
Taylor expanded in a around inf 66.8%
+-commutative66.8%
associate-/l*79.9%
Simplified79.9%
if -1.15999999999999992e-9 < a < -1.29999999999999998e-131Initial program 86.2%
Taylor expanded in y around 0 79.1%
div-sub79.1%
associate-*r/79.1%
mul-1-neg79.1%
distribute-lft-neg-out79.1%
associate-*r/86.2%
*-commutative86.2%
distribute-lft-out86.2%
sub-neg86.2%
associate-/r/96.4%
Simplified96.4%
Taylor expanded in x around 0 75.8%
associate-/l*79.1%
Simplified79.1%
if -1.29999999999999998e-131 < a < 205000Initial program 71.1%
Taylor expanded in z around -inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
distribute-rgt-out--78.5%
Simplified78.5%
Final simplification79.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) a))))
(if (<= z -1.5e+91)
t
(if (<= z -3.4e-300)
t_1
(if (<= z 4.3e-191) x (if (<= z 9.8e+123) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / a);
double tmp;
if (z <= -1.5e+91) {
tmp = t;
} else if (z <= -3.4e-300) {
tmp = t_1;
} else if (z <= 4.3e-191) {
tmp = x;
} else if (z <= 9.8e+123) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / a)
if (z <= (-1.5d+91)) then
tmp = t
else if (z <= (-3.4d-300)) then
tmp = t_1
else if (z <= 4.3d-191) then
tmp = x
else if (z <= 9.8d+123) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / a);
double tmp;
if (z <= -1.5e+91) {
tmp = t;
} else if (z <= -3.4e-300) {
tmp = t_1;
} else if (z <= 4.3e-191) {
tmp = x;
} else if (z <= 9.8e+123) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / a) tmp = 0 if z <= -1.5e+91: tmp = t elif z <= -3.4e-300: tmp = t_1 elif z <= 4.3e-191: tmp = x elif z <= 9.8e+123: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / a)) tmp = 0.0 if (z <= -1.5e+91) tmp = t; elseif (z <= -3.4e-300) tmp = t_1; elseif (z <= 4.3e-191) tmp = x; elseif (z <= 9.8e+123) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / a); tmp = 0.0; if (z <= -1.5e+91) tmp = t; elseif (z <= -3.4e-300) tmp = t_1; elseif (z <= 4.3e-191) tmp = x; elseif (z <= 9.8e+123) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.5e+91], t, If[LessEqual[z, -3.4e-300], t$95$1, If[LessEqual[z, 4.3e-191], x, If[LessEqual[z, 9.8e+123], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a}\\
\mathbf{if}\;z \leq -1.5 \cdot 10^{+91}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{-191}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.50000000000000003e91 or 9.79999999999999952e123 < z Initial program 60.1%
Taylor expanded in z around inf 53.6%
if -1.50000000000000003e91 < z < -3.40000000000000018e-300 or 4.29999999999999983e-191 < z < 9.79999999999999952e123Initial program 91.4%
Taylor expanded in x around 0 46.4%
associate-*r/52.1%
Simplified52.1%
Taylor expanded in a around inf 35.8%
if -3.40000000000000018e-300 < z < 4.29999999999999983e-191Initial program 99.9%
Taylor expanded in a around inf 63.1%
Final simplification44.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= t -1.1e-36)
t_1
(if (<= t -8.2e-268)
(/ (- y) (/ (- a z) x))
(if (<= t 2.2e-94) (- x (/ y (/ a x))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (t <= -1.1e-36) {
tmp = t_1;
} else if (t <= -8.2e-268) {
tmp = -y / ((a - z) / x);
} else if (t <= 2.2e-94) {
tmp = x - (y / (a / 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) / (a - z))
if (t <= (-1.1d-36)) then
tmp = t_1
else if (t <= (-8.2d-268)) then
tmp = -y / ((a - z) / x)
else if (t <= 2.2d-94) then
tmp = x - (y / (a / 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) / (a - z));
double tmp;
if (t <= -1.1e-36) {
tmp = t_1;
} else if (t <= -8.2e-268) {
tmp = -y / ((a - z) / x);
} else if (t <= 2.2e-94) {
tmp = x - (y / (a / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if t <= -1.1e-36: tmp = t_1 elif t <= -8.2e-268: tmp = -y / ((a - z) / x) elif t <= 2.2e-94: tmp = x - (y / (a / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -1.1e-36) tmp = t_1; elseif (t <= -8.2e-268) tmp = Float64(Float64(-y) / Float64(Float64(a - z) / x)); elseif (t <= 2.2e-94) tmp = Float64(x - Float64(y / Float64(a / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -1.1e-36) tmp = t_1; elseif (t <= -8.2e-268) tmp = -y / ((a - z) / x); elseif (t <= 2.2e-94) tmp = x - (y / (a / 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[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e-36], t$95$1, If[LessEqual[t, -8.2e-268], N[((-y) / N[(N[(a - z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-94], N[(x - N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-268}:\\
\;\;\;\;\frac{-y}{\frac{a - z}{x}}\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-94}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.1e-36 or 2.20000000000000001e-94 < t Initial program 87.5%
Taylor expanded in x around 0 58.9%
associate-*r/76.8%
Simplified76.8%
if -1.1e-36 < t < -8.1999999999999998e-268Initial program 68.0%
Taylor expanded in y around -inf 55.0%
Taylor expanded in t around 0 52.2%
mul-1-neg52.2%
associate-/l*60.4%
distribute-neg-frac60.4%
Simplified60.4%
if -8.1999999999999998e-268 < t < 2.20000000000000001e-94Initial program 78.2%
Taylor expanded in y around 0 77.5%
div-sub77.5%
associate-*r/77.5%
mul-1-neg77.5%
distribute-lft-neg-out77.5%
associate-*r/78.1%
*-commutative78.1%
distribute-lft-out78.2%
sub-neg78.2%
associate-/r/79.8%
Simplified79.8%
Taylor expanded in z around 0 64.6%
Taylor expanded in t around 0 56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
associate-/l*58.2%
Simplified58.2%
Final simplification70.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= t -2.6e-36)
t_1
(if (<= t -1.7e-299)
(* y (/ (- t x) (- a z)))
(if (<= t 2.4e-94) (- x (/ y (/ a x))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (t <= -2.6e-36) {
tmp = t_1;
} else if (t <= -1.7e-299) {
tmp = y * ((t - x) / (a - z));
} else if (t <= 2.4e-94) {
tmp = x - (y / (a / 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) / (a - z))
if (t <= (-2.6d-36)) then
tmp = t_1
else if (t <= (-1.7d-299)) then
tmp = y * ((t - x) / (a - z))
else if (t <= 2.4d-94) then
tmp = x - (y / (a / 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) / (a - z));
double tmp;
if (t <= -2.6e-36) {
tmp = t_1;
} else if (t <= -1.7e-299) {
tmp = y * ((t - x) / (a - z));
} else if (t <= 2.4e-94) {
tmp = x - (y / (a / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if t <= -2.6e-36: tmp = t_1 elif t <= -1.7e-299: tmp = y * ((t - x) / (a - z)) elif t <= 2.4e-94: tmp = x - (y / (a / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -2.6e-36) tmp = t_1; elseif (t <= -1.7e-299) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (t <= 2.4e-94) tmp = Float64(x - Float64(y / Float64(a / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -2.6e-36) tmp = t_1; elseif (t <= -1.7e-299) tmp = y * ((t - x) / (a - z)); elseif (t <= 2.4e-94) tmp = x - (y / (a / 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[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e-36], t$95$1, If[LessEqual[t, -1.7e-299], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-94], N[(x - N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-299}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-94}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.6e-36 or 2.4e-94 < t Initial program 87.5%
Taylor expanded in x around 0 58.9%
associate-*r/76.8%
Simplified76.8%
if -2.6e-36 < t < -1.6999999999999999e-299Initial program 71.4%
Taylor expanded in y around inf 62.2%
div-sub62.2%
*-commutative62.2%
Simplified62.2%
if -1.6999999999999999e-299 < t < 2.4e-94Initial program 76.5%
Taylor expanded in y around 0 75.8%
div-sub75.8%
associate-*r/75.8%
mul-1-neg75.8%
distribute-lft-neg-out75.8%
associate-*r/76.4%
*-commutative76.4%
distribute-lft-out76.5%
sub-neg76.5%
associate-/r/78.2%
Simplified78.2%
Taylor expanded in z around 0 65.5%
Taylor expanded in t around 0 56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
associate-/l*58.7%
Simplified58.7%
Final simplification71.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (- x t) (/ a y)))))
(if (<= a -1.75e-6)
t_1
(if (<= a -1.1e-130)
(* t (/ (- y z) (- a z)))
(if (<= a 225000.0) (+ t (/ (* y (- x t)) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((x - t) / (a / y));
double tmp;
if (a <= -1.75e-6) {
tmp = t_1;
} else if (a <= -1.1e-130) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 225000.0) {
tmp = t + ((y * (x - t)) / 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 - ((x - t) / (a / y))
if (a <= (-1.75d-6)) then
tmp = t_1
else if (a <= (-1.1d-130)) then
tmp = t * ((y - z) / (a - z))
else if (a <= 225000.0d0) then
tmp = t + ((y * (x - t)) / 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 - ((x - t) / (a / y));
double tmp;
if (a <= -1.75e-6) {
tmp = t_1;
} else if (a <= -1.1e-130) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 225000.0) {
tmp = t + ((y * (x - t)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((x - t) / (a / y)) tmp = 0 if a <= -1.75e-6: tmp = t_1 elif a <= -1.1e-130: tmp = t * ((y - z) / (a - z)) elif a <= 225000.0: tmp = t + ((y * (x - t)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(x - t) / Float64(a / y))) tmp = 0.0 if (a <= -1.75e-6) tmp = t_1; elseif (a <= -1.1e-130) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 225000.0) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((x - t) / (a / y)); tmp = 0.0; if (a <= -1.75e-6) tmp = t_1; elseif (a <= -1.1e-130) tmp = t * ((y - z) / (a - z)); elseif (a <= 225000.0) tmp = t + ((y * (x - t)) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(x - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.75e-6], t$95$1, If[LessEqual[a, -1.1e-130], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 225000.0], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{x - t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -1.75 \cdot 10^{-6}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-130}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 225000:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.74999999999999997e-6 or 225000 < a Initial program 92.6%
Taylor expanded in y around 0 83.2%
div-sub83.2%
associate-*r/83.2%
mul-1-neg83.2%
distribute-lft-neg-out83.2%
associate-*r/92.6%
*-commutative92.6%
distribute-lft-out92.6%
sub-neg92.6%
associate-/r/94.1%
Simplified94.1%
Taylor expanded in z around 0 74.3%
if -1.74999999999999997e-6 < a < -1.0999999999999999e-130Initial program 84.1%
Taylor expanded in x around 0 73.2%
associate-*r/76.3%
Simplified76.3%
if -1.0999999999999999e-130 < a < 225000Initial program 71.1%
Taylor expanded in z around -inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
distribute-rgt-out--78.5%
Simplified78.5%
Taylor expanded in y around inf 77.7%
Final simplification75.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (- x t) (/ a y)))))
(if (<= a -9.2e-7)
t_1
(if (<= a -2.9e-121)
(/ t (/ (- a z) (- y z)))
(if (<= a 6000000.0) (+ t (/ (* y (- x t)) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((x - t) / (a / y));
double tmp;
if (a <= -9.2e-7) {
tmp = t_1;
} else if (a <= -2.9e-121) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 6000000.0) {
tmp = t + ((y * (x - t)) / 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 - ((x - t) / (a / y))
if (a <= (-9.2d-7)) then
tmp = t_1
else if (a <= (-2.9d-121)) then
tmp = t / ((a - z) / (y - z))
else if (a <= 6000000.0d0) then
tmp = t + ((y * (x - t)) / 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 - ((x - t) / (a / y));
double tmp;
if (a <= -9.2e-7) {
tmp = t_1;
} else if (a <= -2.9e-121) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 6000000.0) {
tmp = t + ((y * (x - t)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((x - t) / (a / y)) tmp = 0 if a <= -9.2e-7: tmp = t_1 elif a <= -2.9e-121: tmp = t / ((a - z) / (y - z)) elif a <= 6000000.0: tmp = t + ((y * (x - t)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(x - t) / Float64(a / y))) tmp = 0.0 if (a <= -9.2e-7) tmp = t_1; elseif (a <= -2.9e-121) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif (a <= 6000000.0) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((x - t) / (a / y)); tmp = 0.0; if (a <= -9.2e-7) tmp = t_1; elseif (a <= -2.9e-121) tmp = t / ((a - z) / (y - z)); elseif (a <= 6000000.0) tmp = t + ((y * (x - t)) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(x - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e-7], t$95$1, If[LessEqual[a, -2.9e-121], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6000000.0], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{x - t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.9 \cdot 10^{-121}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq 6000000:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -9.1999999999999998e-7 or 6e6 < a Initial program 92.6%
Taylor expanded in y around 0 83.2%
div-sub83.2%
associate-*r/83.2%
mul-1-neg83.2%
distribute-lft-neg-out83.2%
associate-*r/92.6%
*-commutative92.6%
distribute-lft-out92.6%
sub-neg92.6%
associate-/r/94.1%
Simplified94.1%
Taylor expanded in z around 0 74.3%
if -9.1999999999999998e-7 < a < -2.9e-121Initial program 84.1%
Taylor expanded in y around 0 76.4%
div-sub76.4%
associate-*r/76.4%
mul-1-neg76.4%
distribute-lft-neg-out76.4%
associate-*r/84.1%
*-commutative84.1%
distribute-lft-out84.1%
sub-neg84.1%
associate-/r/93.9%
Simplified93.9%
Taylor expanded in x around 0 73.2%
associate-/l*76.4%
Simplified76.4%
if -2.9e-121 < a < 6e6Initial program 71.1%
Taylor expanded in z around -inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
distribute-rgt-out--78.5%
Simplified78.5%
Taylor expanded in y around inf 77.7%
Final simplification75.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y a))))
(if (<= a -14500000000.0)
x
(if (<= a -1.2e-173)
t_1
(if (<= a 110000000.0) t (if (<= a 1.85e+71) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / a);
double tmp;
if (a <= -14500000000.0) {
tmp = x;
} else if (a <= -1.2e-173) {
tmp = t_1;
} else if (a <= 110000000.0) {
tmp = t;
} else if (a <= 1.85e+71) {
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 = t * (y / a)
if (a <= (-14500000000.0d0)) then
tmp = x
else if (a <= (-1.2d-173)) then
tmp = t_1
else if (a <= 110000000.0d0) then
tmp = t
else if (a <= 1.85d+71) 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 = t * (y / a);
double tmp;
if (a <= -14500000000.0) {
tmp = x;
} else if (a <= -1.2e-173) {
tmp = t_1;
} else if (a <= 110000000.0) {
tmp = t;
} else if (a <= 1.85e+71) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / a) tmp = 0 if a <= -14500000000.0: tmp = x elif a <= -1.2e-173: tmp = t_1 elif a <= 110000000.0: tmp = t elif a <= 1.85e+71: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / a)) tmp = 0.0 if (a <= -14500000000.0) tmp = x; elseif (a <= -1.2e-173) tmp = t_1; elseif (a <= 110000000.0) tmp = t; elseif (a <= 1.85e+71) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / a); tmp = 0.0; if (a <= -14500000000.0) tmp = x; elseif (a <= -1.2e-173) tmp = t_1; elseif (a <= 110000000.0) tmp = t; elseif (a <= 1.85e+71) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -14500000000.0], x, If[LessEqual[a, -1.2e-173], t$95$1, If[LessEqual[a, 110000000.0], t, If[LessEqual[a, 1.85e+71], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -14500000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-173}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 110000000:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+71}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.45e10 or 1.85e71 < a Initial program 92.2%
Taylor expanded in a around inf 44.9%
if -1.45e10 < a < -1.20000000000000008e-173 or 1.1e8 < a < 1.85e71Initial program 84.9%
Taylor expanded in x around 0 63.4%
associate-*r/69.9%
Simplified69.9%
Taylor expanded in z around 0 43.5%
if -1.20000000000000008e-173 < a < 1.1e8Initial program 72.3%
Taylor expanded in z around inf 39.6%
Final simplification42.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (/ a y))))
(if (<= a -980000000.0)
x
(if (<= a -2.05e-175)
t_1
(if (<= a 180000000.0) t (if (<= a 3.8e+70) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a / y);
double tmp;
if (a <= -980000000.0) {
tmp = x;
} else if (a <= -2.05e-175) {
tmp = t_1;
} else if (a <= 180000000.0) {
tmp = t;
} else if (a <= 3.8e+70) {
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 = t / (a / y)
if (a <= (-980000000.0d0)) then
tmp = x
else if (a <= (-2.05d-175)) then
tmp = t_1
else if (a <= 180000000.0d0) then
tmp = t
else if (a <= 3.8d+70) 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 = t / (a / y);
double tmp;
if (a <= -980000000.0) {
tmp = x;
} else if (a <= -2.05e-175) {
tmp = t_1;
} else if (a <= 180000000.0) {
tmp = t;
} else if (a <= 3.8e+70) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (a / y) tmp = 0 if a <= -980000000.0: tmp = x elif a <= -2.05e-175: tmp = t_1 elif a <= 180000000.0: tmp = t elif a <= 3.8e+70: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(a / y)) tmp = 0.0 if (a <= -980000000.0) tmp = x; elseif (a <= -2.05e-175) tmp = t_1; elseif (a <= 180000000.0) tmp = t; elseif (a <= 3.8e+70) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (a / y); tmp = 0.0; if (a <= -980000000.0) tmp = x; elseif (a <= -2.05e-175) tmp = t_1; elseif (a <= 180000000.0) tmp = t; elseif (a <= 3.8e+70) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -980000000.0], x, If[LessEqual[a, -2.05e-175], t$95$1, If[LessEqual[a, 180000000.0], t, If[LessEqual[a, 3.8e+70], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -980000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.05 \cdot 10^{-175}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 180000000:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.8e8 or 3.7999999999999998e70 < a Initial program 92.2%
Taylor expanded in a around inf 44.9%
if -9.8e8 < a < -2.04999999999999999e-175 or 1.8e8 < a < 3.7999999999999998e70Initial program 84.9%
Taylor expanded in x around 0 63.4%
associate-*r/69.9%
Simplified69.9%
Taylor expanded in z around 0 43.5%
clear-num43.5%
un-div-inv43.6%
Applied egg-rr43.6%
if -2.04999999999999999e-175 < a < 1.8e8Initial program 72.3%
Taylor expanded in z around inf 39.6%
Final simplification42.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.5e+62) (not (<= z 2.8e-117))) (* t (/ (- y z) (- a z))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.5e+62) || !(z <= 2.8e-117)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y / (a / (t - 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 ((z <= (-2.5d+62)) .or. (.not. (z <= 2.8d-117))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.5e+62) || !(z <= 2.8e-117)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.5e+62) or not (z <= 2.8e-117): tmp = t * ((y - z) / (a - z)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.5e+62) || !(z <= 2.8e-117)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.5e+62) || ~((z <= 2.8e-117))) tmp = t * ((y - z) / (a - z)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.5e+62], N[Not[LessEqual[z, 2.8e-117]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+62} \lor \neg \left(z \leq 2.8 \cdot 10^{-117}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -2.50000000000000014e62 or 2.8e-117 < z Initial program 72.8%
Taylor expanded in x around 0 52.4%
associate-*r/70.5%
Simplified70.5%
if -2.50000000000000014e62 < z < 2.8e-117Initial program 94.2%
Taylor expanded in z around 0 71.6%
+-commutative71.6%
associate-/l*76.2%
Simplified76.2%
Final simplification73.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.2e+62) (not (<= z 1.7e-66))) (* t (/ (- y z) (- a z))) (- x (/ (- x t) (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.2e+62) || !(z <= 1.7e-66)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - ((x - t) / (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) :: tmp
if ((z <= (-3.2d+62)) .or. (.not. (z <= 1.7d-66))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x - ((x - t) / (a / y))
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.2e+62) || !(z <= 1.7e-66)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - ((x - t) / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.2e+62) or not (z <= 1.7e-66): tmp = t * ((y - z) / (a - z)) else: tmp = x - ((x - t) / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.2e+62) || !(z <= 1.7e-66)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x - Float64(Float64(x - t) / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.2e+62) || ~((z <= 1.7e-66))) tmp = t * ((y - z) / (a - z)); else tmp = x - ((x - t) / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.2e+62], N[Not[LessEqual[z, 1.7e-66]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+62} \lor \neg \left(z \leq 1.7 \cdot 10^{-66}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -3.19999999999999984e62 or 1.69999999999999999e-66 < z Initial program 71.8%
Taylor expanded in x around 0 52.1%
associate-*r/71.7%
Simplified71.7%
if -3.19999999999999984e62 < z < 1.69999999999999999e-66Initial program 92.7%
Taylor expanded in y around 0 92.0%
div-sub92.0%
associate-*r/92.0%
mul-1-neg92.0%
distribute-lft-neg-out92.0%
associate-*r/90.5%
*-commutative90.5%
distribute-lft-out92.7%
sub-neg92.7%
associate-/r/95.5%
Simplified95.5%
Taylor expanded in z around 0 75.5%
Final simplification73.7%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.7e+48) t (if (<= t 1.7e+85) (* x (- 1.0 (/ y a))) (* t (/ (- y z) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.7e+48) {
tmp = t;
} else if (t <= 1.7e+85) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * ((y - 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) :: tmp
if (t <= (-3.7d+48)) then
tmp = t
else if (t <= 1.7d+85) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t * ((y - z) / 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 <= -3.7e+48) {
tmp = t;
} else if (t <= 1.7e+85) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * ((y - z) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.7e+48: tmp = t elif t <= 1.7e+85: tmp = x * (1.0 - (y / a)) else: tmp = t * ((y - z) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.7e+48) tmp = t; elseif (t <= 1.7e+85) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t * Float64(Float64(y - z) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.7e+48) tmp = t; elseif (t <= 1.7e+85) tmp = x * (1.0 - (y / a)); else tmp = t * ((y - z) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.7e+48], t, If[LessEqual[t, 1.7e+85], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.7 \cdot 10^{+48}:\\
\;\;\;\;t\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+85}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\end{array}
\end{array}
if t < -3.6999999999999999e48Initial program 93.3%
Taylor expanded in z around inf 41.3%
if -3.6999999999999999e48 < t < 1.7000000000000002e85Initial program 75.4%
Taylor expanded in y around 0 74.3%
div-sub74.3%
associate-*r/74.3%
mul-1-neg74.3%
distribute-lft-neg-out74.3%
associate-*r/73.9%
*-commutative73.9%
distribute-lft-out75.4%
sub-neg75.4%
associate-/r/77.3%
Simplified77.3%
Taylor expanded in z around 0 51.5%
Taylor expanded in x around inf 46.1%
*-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
Simplified46.1%
if 1.7000000000000002e85 < t Initial program 90.4%
Taylor expanded in x around 0 72.1%
associate-*r/91.9%
Simplified91.9%
Taylor expanded in a around inf 57.9%
Final simplification47.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.2e+122) t (if (<= z 4e-121) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.2e+122) {
tmp = t;
} else if (z <= 4e-121) {
tmp = x;
} 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 <= (-1.2d+122)) then
tmp = t
else if (z <= 4d-121) then
tmp = x
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 <= -1.2e+122) {
tmp = t;
} else if (z <= 4e-121) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.2e+122: tmp = t elif z <= 4e-121: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.2e+122) tmp = t; elseif (z <= 4e-121) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.2e+122) tmp = t; elseif (z <= 4e-121) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.2e+122], t, If[LessEqual[z, 4e-121], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+122}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-121}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.2000000000000001e122 or 3.9999999999999999e-121 < z Initial program 71.8%
Taylor expanded in z around inf 42.2%
if -1.2000000000000001e122 < z < 3.9999999999999999e-121Initial program 92.8%
Taylor expanded in a around inf 35.9%
Final simplification38.9%
(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 82.9%
Taylor expanded in z around inf 24.2%
Final simplification24.2%
herbie shell --seed 2023268
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))