
(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 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(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 -2e-274) (not (<= t_1 0.0)))
(fma (- t x) (/ (- y z) (- a z)) x)
(- t (/ (* (- 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 <= -2e-274) || !(t_1 <= 0.0)) {
tmp = fma((t - x), ((y - z) / (a - z)), x);
} else {
tmp = t - (((t - x) * (y - 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 <= -2e-274) || !(t_1 <= 0.0)) tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x); else tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); end return 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, -2e-274], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $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 -2 \cdot 10^{-274} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999993e-274 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 92.8%
+-commutative92.8%
remove-double-neg92.8%
unsub-neg92.8%
*-commutative92.8%
associate-*l/77.1%
associate-/l*95.4%
fma-neg95.4%
remove-double-neg95.4%
Simplified95.4%
if -1.99999999999999993e-274 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 76.6%
associate--l+76.6%
associate-*r/76.6%
associate-*r/76.6%
mul-1-neg76.6%
div-sub76.6%
mul-1-neg76.6%
distribute-lft-out--76.6%
associate-*r/76.6%
mul-1-neg76.6%
unsub-neg76.6%
distribute-rgt-out--76.6%
Simplified76.6%
Final simplification92.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y z) (/ (- a z) (- t x)))))
(t_2 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_2 -2e+83)
t_1
(if (<= t_2 -2e-274)
(* t (+ (/ (- y z) (- a z)) (/ (* x (+ (/ (- y z) (- z a)) 1.0)) t)))
(if (<= t_2 0.0) (- t (/ (* (- 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) / ((a - z) / (t - x)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -2e+83) {
tmp = t_1;
} else if (t_2 <= -2e-274) {
tmp = t * (((y - z) / (a - z)) + ((x * (((y - z) / (z - a)) + 1.0)) / t));
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (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) :: t_2
real(8) :: tmp
t_1 = x + ((y - z) / ((a - z) / (t - x)))
t_2 = x + ((y - z) * ((t - x) / (a - z)))
if (t_2 <= (-2d+83)) then
tmp = t_1
else if (t_2 <= (-2d-274)) then
tmp = t * (((y - z) / (a - z)) + ((x * (((y - z) / (z - a)) + 1.0d0)) / t))
else if (t_2 <= 0.0d0) then
tmp = t - (((t - x) * (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 = x + ((y - z) / ((a - z) / (t - x)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -2e+83) {
tmp = t_1;
} else if (t_2 <= -2e-274) {
tmp = t * (((y - z) / (a - z)) + ((x * (((y - z) / (z - a)) + 1.0)) / t));
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) / ((a - z) / (t - x))) t_2 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_2 <= -2e+83: tmp = t_1 elif t_2 <= -2e-274: tmp = t * (((y - z) / (a - z)) + ((x * (((y - z) / (z - a)) + 1.0)) / t)) elif t_2 <= 0.0: tmp = t - (((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(a - z) / Float64(t - x)))) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_2 <= -2e+83) tmp = t_1; elseif (t_2 <= -2e-274) tmp = Float64(t * Float64(Float64(Float64(y - z) / Float64(a - z)) + Float64(Float64(x * Float64(Float64(Float64(y - z) / Float64(z - a)) + 1.0)) / t))); elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(t - 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) / ((a - z) / (t - x))); t_2 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if (t_2 <= -2e+83) tmp = t_1; elseif (t_2 <= -2e-274) tmp = t * (((y - z) / (a - z)) + ((x * (((y - z) / (z - a)) + 1.0)) / t)); elseif (t_2 <= 0.0) tmp = t - (((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[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+83], t$95$1, If[LessEqual[t$95$2, -2e-274], N[(t * N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{\frac{a - z}{t - x}}\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-274}:\\
\;\;\;\;t \cdot \left(\frac{y - z}{a - z} + \frac{x \cdot \left(\frac{y - z}{z - a} + 1\right)}{t}\right)\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.00000000000000006e83 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 94.3%
clear-num94.0%
un-div-inv94.4%
Applied egg-rr94.4%
if -2.00000000000000006e83 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999993e-274Initial program 83.5%
Taylor expanded in t around -inf 91.2%
mul-1-neg91.2%
distribute-rgt-neg-in91.2%
+-commutative91.2%
mul-1-neg91.2%
unsub-neg91.2%
mul-1-neg91.2%
distribute-frac-neg291.2%
sub-neg91.2%
+-commutative91.2%
distribute-neg-in91.2%
remove-double-neg91.2%
Simplified99.9%
if -1.99999999999999993e-274 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 76.6%
associate--l+76.6%
associate-*r/76.6%
associate-*r/76.6%
mul-1-neg76.6%
div-sub76.6%
mul-1-neg76.6%
distribute-lft-out--76.6%
associate-*r/76.6%
mul-1-neg76.6%
unsub-neg76.6%
distribute-rgt-out--76.6%
Simplified76.6%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y z) (/ (- a z) (- t x)))))
(t_2 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_2 -2e+103)
t_1
(if (<= t_2 -2e-274)
(+ (* x (+ (/ (- y z) (- z a)) 1.0)) (/ (* (- y z) t) (- a z)))
(if (<= t_2 0.0) (- t (/ (* (- 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) / ((a - z) / (t - x)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -2e+103) {
tmp = t_1;
} else if (t_2 <= -2e-274) {
tmp = (x * (((y - z) / (z - a)) + 1.0)) + (((y - z) * t) / (a - z));
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (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) :: t_2
real(8) :: tmp
t_1 = x + ((y - z) / ((a - z) / (t - x)))
t_2 = x + ((y - z) * ((t - x) / (a - z)))
if (t_2 <= (-2d+103)) then
tmp = t_1
else if (t_2 <= (-2d-274)) then
tmp = (x * (((y - z) / (z - a)) + 1.0d0)) + (((y - z) * t) / (a - z))
else if (t_2 <= 0.0d0) then
tmp = t - (((t - x) * (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 = x + ((y - z) / ((a - z) / (t - x)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -2e+103) {
tmp = t_1;
} else if (t_2 <= -2e-274) {
tmp = (x * (((y - z) / (z - a)) + 1.0)) + (((y - z) * t) / (a - z));
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) / ((a - z) / (t - x))) t_2 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_2 <= -2e+103: tmp = t_1 elif t_2 <= -2e-274: tmp = (x * (((y - z) / (z - a)) + 1.0)) + (((y - z) * t) / (a - z)) elif t_2 <= 0.0: tmp = t - (((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(a - z) / Float64(t - x)))) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_2 <= -2e+103) tmp = t_1; elseif (t_2 <= -2e-274) tmp = Float64(Float64(x * Float64(Float64(Float64(y - z) / Float64(z - a)) + 1.0)) + Float64(Float64(Float64(y - z) * t) / Float64(a - z))); elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(t - 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) / ((a - z) / (t - x))); t_2 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if (t_2 <= -2e+103) tmp = t_1; elseif (t_2 <= -2e-274) tmp = (x * (((y - z) / (z - a)) + 1.0)) + (((y - z) * t) / (a - z)); elseif (t_2 <= 0.0) tmp = t - (((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[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+103], t$95$1, If[LessEqual[t$95$2, -2e-274], N[(N[(x * N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{\frac{a - z}{t - x}}\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-274}:\\
\;\;\;\;x \cdot \left(\frac{y - z}{z - a} + 1\right) + \frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2e103 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 94.3%
clear-num94.0%
un-div-inv94.4%
Applied egg-rr94.4%
if -2e103 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999993e-274Initial program 84.0%
Taylor expanded in x around 0 97.1%
if -1.99999999999999993e-274 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 76.6%
associate--l+76.6%
associate-*r/76.6%
associate-*r/76.6%
mul-1-neg76.6%
div-sub76.6%
mul-1-neg76.6%
distribute-lft-out--76.6%
associate-*r/76.6%
mul-1-neg76.6%
unsub-neg76.6%
distribute-rgt-out--76.6%
Simplified76.6%
Final simplification92.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-274) (not (<= t_1 0.0)))
t_1
(- t (/ (* (- 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 <= -2e-274) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t - (((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 <= (-2d-274)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = t_1
else
tmp = t - (((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 <= -2e-274) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t - (((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 <= -2e-274) or not (t_1 <= 0.0): tmp = t_1 else: tmp = t - (((t - x) * (y - 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 <= -2e-274) || !(t_1 <= 0.0)) tmp = t_1; else tmp = Float64(t - Float64(Float64(Float64(t - 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 <= -2e-274) || ~((t_1 <= 0.0))) tmp = t_1; else tmp = t - (((t - x) * (y - 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, -2e-274], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], t$95$1, N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $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 -2 \cdot 10^{-274} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999993e-274 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 92.8%
if -1.99999999999999993e-274 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 76.6%
associate--l+76.6%
associate-*r/76.6%
associate-*r/76.6%
mul-1-neg76.6%
div-sub76.6%
mul-1-neg76.6%
distribute-lft-out--76.6%
associate-*r/76.6%
mul-1-neg76.6%
unsub-neg76.6%
distribute-rgt-out--76.6%
Simplified76.6%
Final simplification90.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_1 -2e-274)
t_1
(if (<= t_1 0.0)
(- t (/ (* (- t x) (- y a)) z))
(+ x (/ (- y z) (/ (- a z) (- t 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 <= -2e-274) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else {
tmp = x + ((y - z) / ((a - z) / (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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if (t_1 <= (-2d-274)) then
tmp = t_1
else if (t_1 <= 0.0d0) then
tmp = t - (((t - x) * (y - a)) / z)
else
tmp = x + ((y - z) / ((a - z) / (t - x)))
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 <= -2e-274) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_1 <= -2e-274: tmp = t_1 elif t_1 <= 0.0: tmp = t - (((t - x) * (y - a)) / z) else: tmp = x + ((y - z) / ((a - z) / (t - x))) 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 <= -2e-274) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); 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 <= -2e-274) tmp = t_1; elseif (t_1 <= 0.0) tmp = t - (((t - x) * (y - a)) / z); else tmp = x + ((y - z) / ((a - z) / (t - x))); 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[t$95$1, -2e-274], t$95$1, If[LessEqual[t$95$1, 0.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $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 -2 \cdot 10^{-274}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999993e-274Initial program 92.1%
if -1.99999999999999993e-274 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 76.6%
associate--l+76.6%
associate-*r/76.6%
associate-*r/76.6%
mul-1-neg76.6%
div-sub76.6%
mul-1-neg76.6%
distribute-lft-out--76.6%
associate-*r/76.6%
mul-1-neg76.6%
unsub-neg76.6%
distribute-rgt-out--76.6%
Simplified76.6%
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 93.3%
clear-num92.9%
un-div-inv93.5%
Applied egg-rr93.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ t a)))))
(if (<= a -1.66e+159)
t_1
(if (<= a -9.5e-196)
(* t (/ (- y z) (- a z)))
(if (<= a 1.75e-52) (+ t (* y (/ x z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (t / a));
double tmp;
if (a <= -1.66e+159) {
tmp = t_1;
} else if (a <= -9.5e-196) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 1.75e-52) {
tmp = t + (y * (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 * (t / a))
if (a <= (-1.66d+159)) then
tmp = t_1
else if (a <= (-9.5d-196)) then
tmp = t * ((y - z) / (a - z))
else if (a <= 1.75d-52) then
tmp = t + (y * (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 * (t / a));
double tmp;
if (a <= -1.66e+159) {
tmp = t_1;
} else if (a <= -9.5e-196) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 1.75e-52) {
tmp = t + (y * (x / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (t / a)) tmp = 0 if a <= -1.66e+159: tmp = t_1 elif a <= -9.5e-196: tmp = t * ((y - z) / (a - z)) elif a <= 1.75e-52: tmp = t + (y * (x / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(t / a))) tmp = 0.0 if (a <= -1.66e+159) tmp = t_1; elseif (a <= -9.5e-196) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 1.75e-52) tmp = Float64(t + Float64(y * Float64(x / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (t / a)); tmp = 0.0; if (a <= -1.66e+159) tmp = t_1; elseif (a <= -9.5e-196) tmp = t * ((y - z) / (a - z)); elseif (a <= 1.75e-52) tmp = t + (y * (x / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.66e+159], t$95$1, If[LessEqual[a, -9.5e-196], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e-52], N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{t}{a}\\
\mathbf{if}\;a \leq -1.66 \cdot 10^{+159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-196}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-52}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.6600000000000001e159 or 1.75e-52 < a Initial program 88.8%
Taylor expanded in z around 0 64.7%
associate-/l*72.9%
Simplified72.9%
Taylor expanded in t around inf 66.5%
if -1.6600000000000001e159 < a < -9.50000000000000032e-196Initial program 80.6%
Taylor expanded in x around 0 42.1%
associate-/l*60.6%
Simplified60.6%
if -9.50000000000000032e-196 < a < 1.75e-52Initial program 71.8%
Taylor expanded in z around inf 85.3%
associate--l+85.3%
associate-*r/85.3%
associate-*r/85.3%
mul-1-neg85.3%
div-sub85.5%
mul-1-neg85.5%
distribute-lft-out--85.5%
associate-*r/85.5%
mul-1-neg85.5%
unsub-neg85.5%
distribute-rgt-out--85.5%
Simplified85.5%
Taylor expanded in y around inf 82.8%
associate-/l*89.1%
Simplified89.1%
Taylor expanded in t around 0 74.7%
neg-mul-174.7%
Simplified74.7%
Final simplification66.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -6.6e+122)
t
(if (<= z 52000000000.0)
(* x (- 1.0 (/ y a)))
(if (<= z 2.6e+90) (* y (/ (- x t) z)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.6e+122) {
tmp = t;
} else if (z <= 52000000000.0) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.6e+90) {
tmp = y * ((x - t) / 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 <= (-6.6d+122)) then
tmp = t
else if (z <= 52000000000.0d0) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 2.6d+90) then
tmp = y * ((x - t) / 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 <= -6.6e+122) {
tmp = t;
} else if (z <= 52000000000.0) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.6e+90) {
tmp = y * ((x - t) / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6.6e+122: tmp = t elif z <= 52000000000.0: tmp = x * (1.0 - (y / a)) elif z <= 2.6e+90: tmp = y * ((x - t) / z) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6.6e+122) tmp = t; elseif (z <= 52000000000.0) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 2.6e+90) tmp = Float64(y * Float64(Float64(x - t) / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6.6e+122) tmp = t; elseif (z <= 52000000000.0) tmp = x * (1.0 - (y / a)); elseif (z <= 2.6e+90) tmp = y * ((x - t) / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.6e+122], t, If[LessEqual[z, 52000000000.0], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+90], N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.6 \cdot 10^{+122}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 52000000000:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+90}:\\
\;\;\;\;y \cdot \frac{x - t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -6.5999999999999998e122 or 2.5999999999999998e90 < z Initial program 59.5%
Taylor expanded in z around inf 60.2%
if -6.5999999999999998e122 < z < 5.2e10Initial program 94.0%
Taylor expanded in z around 0 60.1%
associate-/l*65.5%
Simplified65.5%
Taylor expanded in x around inf 44.9%
mul-1-neg44.9%
sub-neg44.9%
Simplified44.9%
if 5.2e10 < z < 2.5999999999999998e90Initial program 80.4%
Taylor expanded in z around inf 67.8%
associate--l+67.8%
associate-*r/67.8%
associate-*r/67.8%
mul-1-neg67.8%
div-sub67.8%
mul-1-neg67.8%
distribute-lft-out--67.8%
associate-*r/67.8%
mul-1-neg67.8%
unsub-neg67.8%
distribute-rgt-out--67.8%
Simplified67.8%
Taylor expanded in y around -inf 53.4%
associate-*r/53.4%
associate-*r*53.4%
*-commutative53.4%
associate-*r*53.4%
mul-1-neg53.4%
Simplified53.4%
Taylor expanded in y around 0 53.4%
associate-/l*65.8%
Simplified65.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.18e+79) (not (<= a 2.7e-36))) (+ x (* (- t x) (/ (- y z) a))) (- t (/ y (/ z (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.18e+79) || !(a <= 2.7e-36)) {
tmp = x + ((t - x) * ((y - z) / a));
} else {
tmp = t - (y / (z / (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 ((a <= (-1.18d+79)) .or. (.not. (a <= 2.7d-36))) then
tmp = x + ((t - x) * ((y - z) / a))
else
tmp = t - (y / (z / (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 ((a <= -1.18e+79) || !(a <= 2.7e-36)) {
tmp = x + ((t - x) * ((y - z) / a));
} else {
tmp = t - (y / (z / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.18e+79) or not (a <= 2.7e-36): tmp = x + ((t - x) * ((y - z) / a)) else: tmp = t - (y / (z / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.18e+79) || !(a <= 2.7e-36)) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); else tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.18e+79) || ~((a <= 2.7e-36))) tmp = x + ((t - x) * ((y - z) / a)); else tmp = t - (y / (z / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.18e+79], N[Not[LessEqual[a, 2.7e-36]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.18 \cdot 10^{+79} \lor \neg \left(a \leq 2.7 \cdot 10^{-36}\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\end{array}
\end{array}
if a < -1.18e79 or 2.70000000000000007e-36 < a Initial program 90.1%
Taylor expanded in a around inf 68.7%
associate-/l*80.8%
Simplified80.8%
if -1.18e79 < a < 2.70000000000000007e-36Initial program 74.6%
Taylor expanded in z around inf 72.5%
associate--l+72.5%
associate-*r/72.5%
associate-*r/72.5%
mul-1-neg72.5%
div-sub72.5%
mul-1-neg72.5%
distribute-lft-out--72.5%
associate-*r/72.5%
mul-1-neg72.5%
unsub-neg72.5%
distribute-rgt-out--72.5%
Simplified72.5%
Taylor expanded in y around inf 69.6%
associate-/l*78.6%
Simplified78.6%
clear-num78.6%
un-div-inv78.6%
Applied egg-rr78.6%
Final simplification79.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -0.155)
(+ x (/ (- y z) (/ (- a z) t)))
(if (<= a 3.3e-36)
(- t (/ y (/ z (- t x))))
(+ x (* (- t x) (/ (- y z) a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -0.155) {
tmp = x + ((y - z) / ((a - z) / t));
} else if (a <= 3.3e-36) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + ((t - x) * ((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 (a <= (-0.155d0)) then
tmp = x + ((y - z) / ((a - z) / t))
else if (a <= 3.3d-36) then
tmp = t - (y / (z / (t - x)))
else
tmp = x + ((t - x) * ((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 (a <= -0.155) {
tmp = x + ((y - z) / ((a - z) / t));
} else if (a <= 3.3e-36) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + ((t - x) * ((y - z) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -0.155: tmp = x + ((y - z) / ((a - z) / t)) elif a <= 3.3e-36: tmp = t - (y / (z / (t - x))) else: tmp = x + ((t - x) * ((y - z) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -0.155) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); elseif (a <= 3.3e-36) tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -0.155) tmp = x + ((y - z) / ((a - z) / t)); elseif (a <= 3.3e-36) tmp = t - (y / (z / (t - x))); else tmp = x + ((t - x) * ((y - z) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -0.155], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-36], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -0.155:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-36}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\end{array}
\end{array}
if a < -0.154999999999999999Initial program 91.1%
clear-num91.0%
un-div-inv91.0%
Applied egg-rr91.0%
Taylor expanded in t around inf 78.4%
if -0.154999999999999999 < a < 3.29999999999999991e-36Initial program 73.9%
Taylor expanded in z around inf 75.2%
associate--l+75.2%
associate-*r/75.2%
associate-*r/75.2%
mul-1-neg75.2%
div-sub75.3%
mul-1-neg75.3%
distribute-lft-out--75.3%
associate-*r/75.3%
mul-1-neg75.3%
unsub-neg75.3%
distribute-rgt-out--75.3%
Simplified75.3%
Taylor expanded in y around inf 71.3%
associate-/l*80.9%
Simplified80.9%
clear-num80.9%
un-div-inv80.9%
Applied egg-rr80.9%
if 3.29999999999999991e-36 < a Initial program 86.1%
Taylor expanded in a around inf 63.7%
associate-/l*78.3%
Simplified78.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.1e+80) (not (<= a 1.36e-36))) (+ x (* y (/ (- t x) a))) (- t (/ y (/ z (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.1e+80) || !(a <= 1.36e-36)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t - (y / (z / (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 ((a <= (-1.1d+80)) .or. (.not. (a <= 1.36d-36))) then
tmp = x + (y * ((t - x) / a))
else
tmp = t - (y / (z / (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 ((a <= -1.1e+80) || !(a <= 1.36e-36)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t - (y / (z / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.1e+80) or not (a <= 1.36e-36): tmp = x + (y * ((t - x) / a)) else: tmp = t - (y / (z / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.1e+80) || !(a <= 1.36e-36)) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); else tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.1e+80) || ~((a <= 1.36e-36))) tmp = x + (y * ((t - x) / a)); else tmp = t - (y / (z / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.1e+80], N[Not[LessEqual[a, 1.36e-36]], $MachinePrecision]], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{+80} \lor \neg \left(a \leq 1.36 \cdot 10^{-36}\right):\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\end{array}
\end{array}
if a < -1.10000000000000001e80 or 1.36000000000000007e-36 < a Initial program 90.1%
Taylor expanded in z around 0 63.2%
associate-/l*71.5%
Simplified71.5%
if -1.10000000000000001e80 < a < 1.36000000000000007e-36Initial program 74.6%
Taylor expanded in z around inf 72.5%
associate--l+72.5%
associate-*r/72.5%
associate-*r/72.5%
mul-1-neg72.5%
div-sub72.5%
mul-1-neg72.5%
distribute-lft-out--72.5%
associate-*r/72.5%
mul-1-neg72.5%
unsub-neg72.5%
distribute-rgt-out--72.5%
Simplified72.5%
Taylor expanded in y around inf 69.6%
associate-/l*78.6%
Simplified78.6%
clear-num78.6%
un-div-inv78.6%
Applied egg-rr78.6%
Final simplification75.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -5.6e+78) (not (<= a 4.2e-36))) (+ x (* y (/ (- t x) a))) (- t (* y (/ (- t x) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.6e+78) || !(a <= 4.2e-36)) {
tmp = x + (y * ((t - x) / a));
} 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 <= (-5.6d+78)) .or. (.not. (a <= 4.2d-36))) then
tmp = x + (y * ((t - x) / a))
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 <= -5.6e+78) || !(a <= 4.2e-36)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t - (y * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -5.6e+78) or not (a <= 4.2e-36): tmp = x + (y * ((t - x) / a)) else: tmp = t - (y * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -5.6e+78) || !(a <= 4.2e-36)) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); 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 <= -5.6e+78) || ~((a <= 4.2e-36))) tmp = x + (y * ((t - x) / a)); else tmp = t - (y * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.6e+78], N[Not[LessEqual[a, 4.2e-36]], $MachinePrecision]], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $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 -5.6 \cdot 10^{+78} \lor \neg \left(a \leq 4.2 \cdot 10^{-36}\right):\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if a < -5.6000000000000002e78 or 4.19999999999999982e-36 < a Initial program 90.1%
Taylor expanded in z around 0 63.2%
associate-/l*71.5%
Simplified71.5%
if -5.6000000000000002e78 < a < 4.19999999999999982e-36Initial program 74.6%
Taylor expanded in z around inf 72.5%
associate--l+72.5%
associate-*r/72.5%
associate-*r/72.5%
mul-1-neg72.5%
div-sub72.5%
mul-1-neg72.5%
distribute-lft-out--72.5%
associate-*r/72.5%
mul-1-neg72.5%
unsub-neg72.5%
distribute-rgt-out--72.5%
Simplified72.5%
Taylor expanded in y around inf 69.6%
associate-/l*78.6%
Simplified78.6%
Final simplification75.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.7e-47) (* t (/ (- y z) (- a z))) (if (<= z 1.9e+111) (+ x (* y (/ (- t x) a))) (+ t (* y (/ x z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.7e-47) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 1.9e+111) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t + (y * (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 (z <= (-2.7d-47)) then
tmp = t * ((y - z) / (a - z))
else if (z <= 1.9d+111) then
tmp = x + (y * ((t - x) / a))
else
tmp = t + (y * (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 (z <= -2.7e-47) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 1.9e+111) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.7e-47: tmp = t * ((y - z) / (a - z)) elif z <= 1.9e+111: tmp = x + (y * ((t - x) / a)) else: tmp = t + (y * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.7e-47) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= 1.9e+111) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); else tmp = Float64(t + Float64(y * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.7e-47) tmp = t * ((y - z) / (a - z)); elseif (z <= 1.9e+111) tmp = x + (y * ((t - x) / a)); else tmp = t + (y * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.7e-47], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+111], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-47}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+111}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -2.6999999999999998e-47Initial program 72.6%
Taylor expanded in x around 0 47.5%
associate-/l*70.9%
Simplified70.9%
if -2.6999999999999998e-47 < z < 1.89999999999999988e111Initial program 91.9%
Taylor expanded in z around 0 63.9%
associate-/l*66.9%
Simplified66.9%
if 1.89999999999999988e111 < z Initial program 58.7%
Taylor expanded in z around inf 65.8%
associate--l+65.8%
associate-*r/65.8%
associate-*r/65.8%
mul-1-neg65.8%
div-sub65.8%
mul-1-neg65.8%
distribute-lft-out--65.8%
associate-*r/65.8%
mul-1-neg65.8%
unsub-neg65.8%
distribute-rgt-out--65.8%
Simplified65.8%
Taylor expanded in y around inf 66.0%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in t around 0 80.5%
neg-mul-180.5%
Simplified80.5%
Final simplification70.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.2e-5) (* t (/ (- y z) (- a z))) (if (<= z 2.5e+100) (* y (/ (- t x) (- a z))) (+ t (* y (/ x z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.2e-5) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 2.5e+100) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = t + (y * (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 (z <= (-1.2d-5)) then
tmp = t * ((y - z) / (a - z))
else if (z <= 2.5d+100) then
tmp = y * ((t - x) / (a - z))
else
tmp = t + (y * (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 (z <= -1.2e-5) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 2.5e+100) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.2e-5: tmp = t * ((y - z) / (a - z)) elif z <= 2.5e+100: tmp = y * ((t - x) / (a - z)) else: tmp = t + (y * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.2e-5) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= 2.5e+100) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); else tmp = Float64(t + Float64(y * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.2e-5) tmp = t * ((y - z) / (a - z)); elseif (z <= 2.5e+100) tmp = y * ((t - x) / (a - z)); else tmp = t + (y * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.2e-5], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e+100], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{-5}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+100}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -1.2e-5Initial program 70.7%
Taylor expanded in x around 0 44.0%
associate-/l*69.0%
Simplified69.0%
if -1.2e-5 < z < 2.4999999999999999e100Initial program 92.6%
Taylor expanded in y around inf 60.0%
div-sub60.0%
Simplified60.0%
if 2.4999999999999999e100 < z Initial program 58.3%
Taylor expanded in z around inf 65.2%
associate--l+65.2%
associate-*r/65.2%
associate-*r/65.2%
mul-1-neg65.2%
div-sub65.2%
mul-1-neg65.2%
distribute-lft-out--65.2%
associate-*r/65.2%
mul-1-neg65.2%
unsub-neg65.2%
distribute-rgt-out--65.2%
Simplified65.2%
Taylor expanded in y around inf 65.4%
associate-/l*82.7%
Simplified82.7%
Taylor expanded in t around 0 79.2%
neg-mul-179.2%
Simplified79.2%
Final simplification65.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -8.4e+78) (not (<= a 2.4e-53))) (+ x (* y (/ t a))) (+ t (* y (/ x z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8.4e+78) || !(a <= 2.4e-53)) {
tmp = x + (y * (t / a));
} else {
tmp = t + (y * (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 <= (-8.4d+78)) .or. (.not. (a <= 2.4d-53))) then
tmp = x + (y * (t / a))
else
tmp = t + (y * (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 <= -8.4e+78) || !(a <= 2.4e-53)) {
tmp = x + (y * (t / a));
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -8.4e+78) or not (a <= 2.4e-53): tmp = x + (y * (t / a)) else: tmp = t + (y * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -8.4e+78) || !(a <= 2.4e-53)) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(t + Float64(y * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -8.4e+78) || ~((a <= 2.4e-53))) tmp = x + (y * (t / a)); else tmp = t + (y * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8.4e+78], N[Not[LessEqual[a, 2.4e-53]], $MachinePrecision]], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.4 \cdot 10^{+78} \lor \neg \left(a \leq 2.4 \cdot 10^{-53}\right):\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if a < -8.4000000000000003e78 or 2.40000000000000007e-53 < a Initial program 89.6%
Taylor expanded in z around 0 62.3%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in t around inf 62.3%
if -8.4000000000000003e78 < a < 2.40000000000000007e-53Initial program 74.4%
Taylor expanded in z around inf 73.9%
associate--l+73.9%
associate-*r/73.9%
associate-*r/73.9%
mul-1-neg73.9%
div-sub74.0%
mul-1-neg74.0%
distribute-lft-out--74.0%
associate-*r/74.0%
mul-1-neg74.0%
unsub-neg74.0%
distribute-rgt-out--74.0%
Simplified74.0%
Taylor expanded in y around inf 70.9%
associate-/l*79.6%
Simplified79.6%
Taylor expanded in t around 0 66.1%
neg-mul-166.1%
Simplified66.1%
Final simplification64.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.1e+80) (not (<= a 4.2e-52))) (+ x (* y (/ t a))) (- t (* t (/ y z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.1e+80) || !(a <= 4.2e-52)) {
tmp = x + (y * (t / a));
} else {
tmp = t - (t * (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) :: tmp
if ((a <= (-1.1d+80)) .or. (.not. (a <= 4.2d-52))) then
tmp = x + (y * (t / a))
else
tmp = t - (t * (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.1e+80) || !(a <= 4.2e-52)) {
tmp = x + (y * (t / a));
} else {
tmp = t - (t * (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.1e+80) or not (a <= 4.2e-52): tmp = x + (y * (t / a)) else: tmp = t - (t * (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.1e+80) || !(a <= 4.2e-52)) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(t - Float64(t * Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.1e+80) || ~((a <= 4.2e-52))) tmp = x + (y * (t / a)); else tmp = t - (t * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.1e+80], N[Not[LessEqual[a, 4.2e-52]], $MachinePrecision]], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{+80} \lor \neg \left(a \leq 4.2 \cdot 10^{-52}\right):\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;t - t \cdot \frac{y}{z}\\
\end{array}
\end{array}
if a < -1.10000000000000001e80 or 4.1999999999999997e-52 < a Initial program 89.6%
Taylor expanded in z around 0 62.3%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in t around inf 62.3%
if -1.10000000000000001e80 < a < 4.1999999999999997e-52Initial program 74.4%
Taylor expanded in z around inf 73.9%
associate--l+73.9%
associate-*r/73.9%
associate-*r/73.9%
mul-1-neg73.9%
div-sub74.0%
mul-1-neg74.0%
distribute-lft-out--74.0%
associate-*r/74.0%
mul-1-neg74.0%
unsub-neg74.0%
distribute-rgt-out--74.0%
Simplified74.0%
Taylor expanded in y around inf 70.9%
associate-/l*79.6%
Simplified79.6%
Taylor expanded in t around inf 53.1%
associate-/l*57.1%
Simplified57.1%
Final simplification59.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.6e+89) (not (<= z 1.95e+111))) (- t (* a (/ x z))) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.6e+89) || !(z <= 1.95e+111)) {
tmp = t - (a * (x / z));
} else {
tmp = x + (t * (y / 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 ((z <= (-1.6d+89)) .or. (.not. (z <= 1.95d+111))) then
tmp = t - (a * (x / z))
else
tmp = x + (t * (y / a))
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.6e+89) || !(z <= 1.95e+111)) {
tmp = t - (a * (x / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.6e+89) or not (z <= 1.95e+111): tmp = t - (a * (x / z)) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.6e+89) || !(z <= 1.95e+111)) tmp = Float64(t - Float64(a * Float64(x / z))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.6e+89) || ~((z <= 1.95e+111))) tmp = t - (a * (x / z)); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.6e+89], N[Not[LessEqual[z, 1.95e+111]], $MachinePrecision]], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+89} \lor \neg \left(z \leq 1.95 \cdot 10^{+111}\right):\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -1.59999999999999994e89 or 1.9499999999999999e111 < z Initial program 60.6%
Taylor expanded in z around inf 62.0%
associate--l+62.0%
associate-*r/62.0%
associate-*r/62.0%
mul-1-neg62.0%
div-sub62.0%
mul-1-neg62.0%
distribute-lft-out--62.0%
associate-*r/62.0%
mul-1-neg62.0%
unsub-neg62.0%
distribute-rgt-out--62.0%
Simplified62.0%
Taylor expanded in y around 0 60.0%
neg-mul-160.0%
Simplified60.0%
Taylor expanded in t around 0 63.4%
associate-/l*66.6%
Simplified66.6%
if -1.59999999999999994e89 < z < 1.9499999999999999e111Initial program 92.2%
Taylor expanded in z around 0 60.7%
associate-/l*65.1%
Simplified65.1%
Taylor expanded in t around inf 52.5%
associate-/l*55.0%
Simplified55.0%
Final simplification59.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.2e+89) (* t (/ z (- z a))) (if (<= z 1.9e+111) (+ x (* t (/ y a))) (- t (* a (/ x z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.2e+89) {
tmp = t * (z / (z - a));
} else if (z <= 1.9e+111) {
tmp = x + (t * (y / a));
} else {
tmp = t - (a * (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 (z <= (-3.2d+89)) then
tmp = t * (z / (z - a))
else if (z <= 1.9d+111) then
tmp = x + (t * (y / a))
else
tmp = t - (a * (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 (z <= -3.2e+89) {
tmp = t * (z / (z - a));
} else if (z <= 1.9e+111) {
tmp = x + (t * (y / a));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.2e+89: tmp = t * (z / (z - a)) elif z <= 1.9e+111: tmp = x + (t * (y / a)) else: tmp = t - (a * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.2e+89) tmp = Float64(t * Float64(z / Float64(z - a))); elseif (z <= 1.9e+111) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(t - Float64(a * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.2e+89) tmp = t * (z / (z - a)); elseif (z <= 1.9e+111) tmp = x + (t * (y / a)); else tmp = t - (a * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.2e+89], N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+111], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+89}:\\
\;\;\;\;t \cdot \frac{z}{z - a}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+111}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -3.19999999999999987e89Initial program 62.6%
Taylor expanded in y around 0 32.8%
mul-1-neg32.8%
unsub-neg32.8%
associate-/l*49.4%
Simplified49.4%
Taylor expanded in x around 0 38.7%
mul-1-neg38.7%
associate-/l*66.6%
distribute-rgt-neg-in66.6%
Simplified66.6%
if -3.19999999999999987e89 < z < 1.89999999999999988e111Initial program 92.2%
Taylor expanded in z around 0 60.7%
associate-/l*65.1%
Simplified65.1%
Taylor expanded in t around inf 52.5%
associate-/l*55.0%
Simplified55.0%
if 1.89999999999999988e111 < z Initial program 58.7%
Taylor expanded in z around inf 65.8%
associate--l+65.8%
associate-*r/65.8%
associate-*r/65.8%
mul-1-neg65.8%
div-sub65.8%
mul-1-neg65.8%
distribute-lft-out--65.8%
associate-*r/65.8%
mul-1-neg65.8%
unsub-neg65.8%
distribute-rgt-out--65.8%
Simplified65.8%
Taylor expanded in y around 0 63.6%
neg-mul-163.6%
Simplified63.6%
Taylor expanded in t around 0 65.8%
associate-/l*70.1%
Simplified70.1%
Final simplification59.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -8.5e+116) t (if (<= z 5.8e+101) (+ x (* t (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.5e+116) {
tmp = t;
} else if (z <= 5.8e+101) {
tmp = x + (t * (y / a));
} 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 <= (-8.5d+116)) then
tmp = t
else if (z <= 5.8d+101) then
tmp = x + (t * (y / a))
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 <= -8.5e+116) {
tmp = t;
} else if (z <= 5.8e+101) {
tmp = x + (t * (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.5e+116: tmp = t elif z <= 5.8e+101: tmp = x + (t * (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.5e+116) tmp = t; elseif (z <= 5.8e+101) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.5e+116) tmp = t; elseif (z <= 5.8e+101) tmp = x + (t * (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.5e+116], t, If[LessEqual[z, 5.8e+101], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+116}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{+101}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -8.5000000000000002e116 or 5.79999999999999974e101 < z Initial program 59.3%
Taylor expanded in z around inf 62.1%
if -8.5000000000000002e116 < z < 5.79999999999999974e101Initial program 92.3%
Taylor expanded in z around 0 59.1%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in t around inf 51.0%
associate-/l*53.5%
Simplified53.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.5e+120) t (if (<= z 1.1e+101) (* x (- 1.0 (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.5e+120) {
tmp = t;
} else if (z <= 1.1e+101) {
tmp = x * (1.0 - (y / a));
} 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 <= (-4.5d+120)) then
tmp = t
else if (z <= 1.1d+101) then
tmp = x * (1.0d0 - (y / a))
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 <= -4.5e+120) {
tmp = t;
} else if (z <= 1.1e+101) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.5e+120: tmp = t elif z <= 1.1e+101: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.5e+120) tmp = t; elseif (z <= 1.1e+101) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.5e+120) tmp = t; elseif (z <= 1.1e+101) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.5e+120], t, If[LessEqual[z, 1.1e+101], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{+120}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+101}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.49999999999999977e120 or 1.1e101 < z Initial program 59.3%
Taylor expanded in z around inf 62.1%
if -4.49999999999999977e120 < z < 1.1e101Initial program 92.3%
Taylor expanded in z around 0 59.1%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in x around inf 43.4%
mul-1-neg43.4%
sub-neg43.4%
Simplified43.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.6e+82) x (if (<= a 4.6e-52) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.6e+82) {
tmp = x;
} else if (a <= 4.6e-52) {
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.6d+82)) then
tmp = x
else if (a <= 4.6d-52) 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.6e+82) {
tmp = x;
} else if (a <= 4.6e-52) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.6e+82: tmp = x elif a <= 4.6e-52: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.6e+82) tmp = x; elseif (a <= 4.6e-52) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.6e+82) tmp = x; elseif (a <= 4.6e-52) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.6e+82], x, If[LessEqual[a, 4.6e-52], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.6 \cdot 10^{+82}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-52}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.59999999999999976e82 or 4.59999999999999989e-52 < a Initial program 89.6%
Taylor expanded in a around inf 43.0%
if -4.59999999999999976e82 < a < 4.59999999999999989e-52Initial program 74.4%
Taylor expanded in z around inf 42.4%
(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 81.2%
Taylor expanded in z around inf 27.7%
herbie shell --seed 2024128
(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)))))