
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.1e+212) (not (<= t 5.2e+124))) (+ y (* (- y x) (/ (- a z) t))) (- x (/ (- x y) (/ (- a t) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.1e+212) || !(t <= 5.2e+124)) {
tmp = y + ((y - x) * ((a - z) / t));
} else {
tmp = x - ((x - y) / ((a - t) / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.1d+212)) .or. (.not. (t <= 5.2d+124))) then
tmp = y + ((y - x) * ((a - z) / t))
else
tmp = x - ((x - y) / ((a - t) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.1e+212) || !(t <= 5.2e+124)) {
tmp = y + ((y - x) * ((a - z) / t));
} else {
tmp = x - ((x - y) / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.1e+212) or not (t <= 5.2e+124): tmp = y + ((y - x) * ((a - z) / t)) else: tmp = x - ((x - y) / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.1e+212) || !(t <= 5.2e+124)) tmp = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))); else tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.1e+212) || ~((t <= 5.2e+124))) tmp = y + ((y - x) * ((a - z) / t)); else tmp = x - ((x - y) / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.1e+212], N[Not[LessEqual[t, 5.2e+124]], $MachinePrecision]], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+212} \lor \neg \left(t \leq 5.2 \cdot 10^{+124}\right):\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if t < -2.1e212 or 5.2000000000000001e124 < t Initial program 31.5%
associate-*l/57.1%
Simplified57.1%
associate-/r/66.6%
add-cube-cbrt65.3%
associate-/l*65.4%
pow265.4%
Applied egg-rr65.4%
Taylor expanded in t around inf 67.0%
associate--l+67.0%
associate-*r/67.0%
associate-*r/67.0%
div-sub67.0%
distribute-lft-out--67.0%
distribute-rgt-out--67.0%
associate-*r/67.0%
distribute-rgt-out--67.0%
mul-1-neg67.0%
distribute-rgt-out--67.0%
unsub-neg67.0%
associate-*r/94.0%
Simplified94.0%
if -2.1e212 < t < 5.2000000000000001e124Initial program 82.2%
associate-*l/92.2%
Simplified92.2%
associate-/r/95.6%
Applied egg-rr95.6%
Final simplification95.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.8e+190)
x
(if (<= a -2.6e+80)
(- y (* x (/ a t)))
(if (<= a 4.8e+86)
(* y (/ (- t z) t))
(if (<= a 3.25e+159)
x
(if (<= a 1.06e+183)
(* y (/ (- t) (- a t)))
(if (<= a 3e+209) (* y (/ (- z t) a)) x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.8e+190) {
tmp = x;
} else if (a <= -2.6e+80) {
tmp = y - (x * (a / t));
} else if (a <= 4.8e+86) {
tmp = y * ((t - z) / t);
} else if (a <= 3.25e+159) {
tmp = x;
} else if (a <= 1.06e+183) {
tmp = y * (-t / (a - t));
} else if (a <= 3e+209) {
tmp = y * ((z - t) / a);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.8d+190)) then
tmp = x
else if (a <= (-2.6d+80)) then
tmp = y - (x * (a / t))
else if (a <= 4.8d+86) then
tmp = y * ((t - z) / t)
else if (a <= 3.25d+159) then
tmp = x
else if (a <= 1.06d+183) then
tmp = y * (-t / (a - t))
else if (a <= 3d+209) then
tmp = y * ((z - t) / a)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.8e+190) {
tmp = x;
} else if (a <= -2.6e+80) {
tmp = y - (x * (a / t));
} else if (a <= 4.8e+86) {
tmp = y * ((t - z) / t);
} else if (a <= 3.25e+159) {
tmp = x;
} else if (a <= 1.06e+183) {
tmp = y * (-t / (a - t));
} else if (a <= 3e+209) {
tmp = y * ((z - t) / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.8e+190: tmp = x elif a <= -2.6e+80: tmp = y - (x * (a / t)) elif a <= 4.8e+86: tmp = y * ((t - z) / t) elif a <= 3.25e+159: tmp = x elif a <= 1.06e+183: tmp = y * (-t / (a - t)) elif a <= 3e+209: tmp = y * ((z - t) / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.8e+190) tmp = x; elseif (a <= -2.6e+80) tmp = Float64(y - Float64(x * Float64(a / t))); elseif (a <= 4.8e+86) tmp = Float64(y * Float64(Float64(t - z) / t)); elseif (a <= 3.25e+159) tmp = x; elseif (a <= 1.06e+183) tmp = Float64(y * Float64(Float64(-t) / Float64(a - t))); elseif (a <= 3e+209) tmp = Float64(y * Float64(Float64(z - t) / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.8e+190) tmp = x; elseif (a <= -2.6e+80) tmp = y - (x * (a / t)); elseif (a <= 4.8e+86) tmp = y * ((t - z) / t); elseif (a <= 3.25e+159) tmp = x; elseif (a <= 1.06e+183) tmp = y * (-t / (a - t)); elseif (a <= 3e+209) tmp = y * ((z - t) / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.8e+190], x, If[LessEqual[a, -2.6e+80], N[(y - N[(x * N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e+86], N[(y * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.25e+159], x, If[LessEqual[a, 1.06e+183], N[(y * N[((-t) / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e+209], N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.8 \cdot 10^{+190}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{+80}:\\
\;\;\;\;y - x \cdot \frac{a}{t}\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+86}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 3.25 \cdot 10^{+159}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.06 \cdot 10^{+183}:\\
\;\;\;\;y \cdot \frac{-t}{a - t}\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+209}:\\
\;\;\;\;y \cdot \frac{z - t}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.79999999999999989e190 or 4.8000000000000001e86 < a < 3.2500000000000001e159 or 2.99999999999999985e209 < a Initial program 74.5%
associate-*l/87.0%
Simplified87.0%
Taylor expanded in a around inf 55.3%
if -1.79999999999999989e190 < a < -2.59999999999999982e80Initial program 68.6%
associate-*l/78.2%
Simplified78.2%
Taylor expanded in z around 0 39.7%
associate-*r/39.7%
mul-1-neg39.7%
distribute-lft-neg-out39.7%
associate-*r/46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in t around inf 28.4%
associate-/l*42.5%
Simplified42.5%
associate-/r/42.5%
Applied egg-rr42.5%
Taylor expanded in y around 0 35.5%
mul-1-neg35.5%
*-commutative35.5%
associate-*r/42.9%
distribute-rgt-neg-in42.9%
mul-1-neg42.9%
associate-*r/42.9%
neg-mul-142.9%
Simplified42.9%
if -2.59999999999999982e80 < a < 4.8000000000000001e86Initial program 67.7%
associate-*l/81.3%
Simplified81.3%
Taylor expanded in y around inf 65.6%
div-sub65.6%
Simplified65.6%
Taylor expanded in a around 0 56.8%
mul-1-neg56.8%
Simplified56.8%
if 3.2500000000000001e159 < a < 1.06e183Initial program 25.9%
associate-*l/99.1%
Simplified99.1%
Taylor expanded in y around inf 80.8%
div-sub80.8%
Simplified80.8%
Taylor expanded in z around 0 61.2%
associate-*r/61.2%
neg-mul-161.2%
Simplified61.2%
if 1.06e183 < a < 2.99999999999999985e209Initial program 86.4%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in y around inf 59.8%
div-sub59.8%
Simplified59.8%
Taylor expanded in a around inf 59.8%
Final simplification55.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y (- t a)))))
(if (<= t -105.0)
t_1
(if (<= t -1.05e-274)
x
(if (<= t 1.55e-187)
(* z (/ y a))
(if (<= t 1.95e-36) x (if (<= t 1.75e+80) t_1 y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (t - a));
double tmp;
if (t <= -105.0) {
tmp = t_1;
} else if (t <= -1.05e-274) {
tmp = x;
} else if (t <= 1.55e-187) {
tmp = z * (y / a);
} else if (t <= 1.95e-36) {
tmp = x;
} else if (t <= 1.75e+80) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (y / (t - a))
if (t <= (-105.0d0)) then
tmp = t_1
else if (t <= (-1.05d-274)) then
tmp = x
else if (t <= 1.55d-187) then
tmp = z * (y / a)
else if (t <= 1.95d-36) then
tmp = x
else if (t <= 1.75d+80) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (t - a));
double tmp;
if (t <= -105.0) {
tmp = t_1;
} else if (t <= -1.05e-274) {
tmp = x;
} else if (t <= 1.55e-187) {
tmp = z * (y / a);
} else if (t <= 1.95e-36) {
tmp = x;
} else if (t <= 1.75e+80) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (t - a)) tmp = 0 if t <= -105.0: tmp = t_1 elif t <= -1.05e-274: tmp = x elif t <= 1.55e-187: tmp = z * (y / a) elif t <= 1.95e-36: tmp = x elif t <= 1.75e+80: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(t - a))) tmp = 0.0 if (t <= -105.0) tmp = t_1; elseif (t <= -1.05e-274) tmp = x; elseif (t <= 1.55e-187) tmp = Float64(z * Float64(y / a)); elseif (t <= 1.95e-36) tmp = x; elseif (t <= 1.75e+80) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (t - a)); tmp = 0.0; if (t <= -105.0) tmp = t_1; elseif (t <= -1.05e-274) tmp = x; elseif (t <= 1.55e-187) tmp = z * (y / a); elseif (t <= 1.95e-36) tmp = x; elseif (t <= 1.75e+80) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -105.0], t$95$1, If[LessEqual[t, -1.05e-274], x, If[LessEqual[t, 1.55e-187], N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.95e-36], x, If[LessEqual[t, 1.75e+80], t$95$1, y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{t - a}\\
\mathbf{if}\;t \leq -105:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-274}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-187}:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{-36}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+80}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -105 or 1.95e-36 < t < 1.74999999999999997e80Initial program 58.6%
associate-*l/83.8%
Simplified83.8%
Taylor expanded in z around 0 39.7%
associate-*r/39.7%
mul-1-neg39.7%
distribute-lft-neg-out39.7%
associate-*r/54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in x around 0 35.7%
mul-1-neg35.7%
associate-/l*50.0%
distribute-neg-frac50.0%
Simplified50.0%
frac-2neg50.0%
div-inv49.8%
remove-double-neg49.8%
distribute-neg-frac49.8%
sub-neg49.8%
distribute-neg-in49.8%
remove-double-neg49.8%
Applied egg-rr49.8%
associate-/r/49.9%
associate-*l/50.0%
*-lft-identity50.0%
+-commutative50.0%
unsub-neg50.0%
Simplified50.0%
if -105 < t < -1.04999999999999997e-274 or 1.5500000000000001e-187 < t < 1.95e-36Initial program 93.0%
associate-*l/93.7%
Simplified93.7%
Taylor expanded in a around inf 40.3%
if -1.04999999999999997e-274 < t < 1.5500000000000001e-187Initial program 91.0%
associate-*l/95.5%
Simplified95.5%
Taylor expanded in y around inf 60.7%
div-sub60.7%
Simplified60.7%
Taylor expanded in t around 0 56.1%
Taylor expanded in y around 0 56.1%
associate-*l/60.2%
Simplified60.2%
if 1.74999999999999997e80 < t Initial program 39.1%
associate-*l/58.9%
Simplified58.9%
Taylor expanded in t around inf 49.2%
Final simplification47.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ y (- a t)))) (t_2 (* t (/ y (- t a)))))
(if (<= t -7.2e+52)
t_2
(if (<= t -9.2e-69)
t_1
(if (<= t -6e-101)
y
(if (<= t -1.06e-272) x (if (<= t 7e-45) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * (y / (a - t));
double t_2 = t * (y / (t - a));
double tmp;
if (t <= -7.2e+52) {
tmp = t_2;
} else if (t <= -9.2e-69) {
tmp = t_1;
} else if (t <= -6e-101) {
tmp = y;
} else if (t <= -1.06e-272) {
tmp = x;
} else if (t <= 7e-45) {
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 = z * (y / (a - t))
t_2 = t * (y / (t - a))
if (t <= (-7.2d+52)) then
tmp = t_2
else if (t <= (-9.2d-69)) then
tmp = t_1
else if (t <= (-6d-101)) then
tmp = y
else if (t <= (-1.06d-272)) then
tmp = x
else if (t <= 7d-45) 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 = z * (y / (a - t));
double t_2 = t * (y / (t - a));
double tmp;
if (t <= -7.2e+52) {
tmp = t_2;
} else if (t <= -9.2e-69) {
tmp = t_1;
} else if (t <= -6e-101) {
tmp = y;
} else if (t <= -1.06e-272) {
tmp = x;
} else if (t <= 7e-45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * (y / (a - t)) t_2 = t * (y / (t - a)) tmp = 0 if t <= -7.2e+52: tmp = t_2 elif t <= -9.2e-69: tmp = t_1 elif t <= -6e-101: tmp = y elif t <= -1.06e-272: tmp = x elif t <= 7e-45: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(y / Float64(a - t))) t_2 = Float64(t * Float64(y / Float64(t - a))) tmp = 0.0 if (t <= -7.2e+52) tmp = t_2; elseif (t <= -9.2e-69) tmp = t_1; elseif (t <= -6e-101) tmp = y; elseif (t <= -1.06e-272) tmp = x; elseif (t <= 7e-45) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * (y / (a - t)); t_2 = t * (y / (t - a)); tmp = 0.0; if (t <= -7.2e+52) tmp = t_2; elseif (t <= -9.2e-69) tmp = t_1; elseif (t <= -6e-101) tmp = y; elseif (t <= -1.06e-272) tmp = x; elseif (t <= 7e-45) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+52], t$95$2, If[LessEqual[t, -9.2e-69], t$95$1, If[LessEqual[t, -6e-101], y, If[LessEqual[t, -1.06e-272], x, If[LessEqual[t, 7e-45], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y}{a - t}\\
t_2 := t \cdot \frac{y}{t - a}\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+52}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -9.2 \cdot 10^{-69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-101}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.06 \cdot 10^{-272}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -7.2e52 or 7e-45 < t Initial program 51.6%
associate-*l/73.9%
Simplified73.9%
Taylor expanded in z around 0 35.2%
associate-*r/35.2%
mul-1-neg35.2%
distribute-lft-neg-out35.2%
associate-*r/51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in x around 0 33.9%
mul-1-neg33.9%
associate-/l*48.4%
distribute-neg-frac48.4%
Simplified48.4%
frac-2neg48.4%
div-inv48.3%
remove-double-neg48.3%
distribute-neg-frac48.3%
sub-neg48.3%
distribute-neg-in48.3%
remove-double-neg48.3%
Applied egg-rr48.3%
associate-/r/48.8%
associate-*l/48.9%
*-lft-identity48.9%
+-commutative48.9%
unsub-neg48.9%
Simplified48.9%
if -7.2e52 < t < -9.2000000000000003e-69 or -1.05999999999999994e-272 < t < 7e-45Initial program 88.8%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in z around -inf 64.3%
Taylor expanded in y around inf 40.6%
associate-/l*47.0%
Simplified47.0%
associate-/r/46.9%
Applied egg-rr46.9%
if -9.2000000000000003e-69 < t < -6.0000000000000006e-101Initial program 75.6%
associate-*l/75.6%
Simplified75.6%
Taylor expanded in t around inf 51.4%
if -6.0000000000000006e-101 < t < -1.05999999999999994e-272Initial program 97.3%
associate-*l/92.4%
Simplified92.4%
Taylor expanded in a around inf 48.7%
Final simplification48.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ y (- a t)))) (t_2 (* t (/ y (- t a)))))
(if (<= t -7.2e+52)
t_2
(if (<= t -7.5e-90)
t_1
(if (<= t -1.36e-139)
(+ y (/ (* y a) t))
(if (<= t -9e-275) x (if (<= t 6.5e-45) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * (y / (a - t));
double t_2 = t * (y / (t - a));
double tmp;
if (t <= -7.2e+52) {
tmp = t_2;
} else if (t <= -7.5e-90) {
tmp = t_1;
} else if (t <= -1.36e-139) {
tmp = y + ((y * a) / t);
} else if (t <= -9e-275) {
tmp = x;
} else if (t <= 6.5e-45) {
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 = z * (y / (a - t))
t_2 = t * (y / (t - a))
if (t <= (-7.2d+52)) then
tmp = t_2
else if (t <= (-7.5d-90)) then
tmp = t_1
else if (t <= (-1.36d-139)) then
tmp = y + ((y * a) / t)
else if (t <= (-9d-275)) then
tmp = x
else if (t <= 6.5d-45) 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 = z * (y / (a - t));
double t_2 = t * (y / (t - a));
double tmp;
if (t <= -7.2e+52) {
tmp = t_2;
} else if (t <= -7.5e-90) {
tmp = t_1;
} else if (t <= -1.36e-139) {
tmp = y + ((y * a) / t);
} else if (t <= -9e-275) {
tmp = x;
} else if (t <= 6.5e-45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * (y / (a - t)) t_2 = t * (y / (t - a)) tmp = 0 if t <= -7.2e+52: tmp = t_2 elif t <= -7.5e-90: tmp = t_1 elif t <= -1.36e-139: tmp = y + ((y * a) / t) elif t <= -9e-275: tmp = x elif t <= 6.5e-45: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(y / Float64(a - t))) t_2 = Float64(t * Float64(y / Float64(t - a))) tmp = 0.0 if (t <= -7.2e+52) tmp = t_2; elseif (t <= -7.5e-90) tmp = t_1; elseif (t <= -1.36e-139) tmp = Float64(y + Float64(Float64(y * a) / t)); elseif (t <= -9e-275) tmp = x; elseif (t <= 6.5e-45) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * (y / (a - t)); t_2 = t * (y / (t - a)); tmp = 0.0; if (t <= -7.2e+52) tmp = t_2; elseif (t <= -7.5e-90) tmp = t_1; elseif (t <= -1.36e-139) tmp = y + ((y * a) / t); elseif (t <= -9e-275) tmp = x; elseif (t <= 6.5e-45) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+52], t$95$2, If[LessEqual[t, -7.5e-90], t$95$1, If[LessEqual[t, -1.36e-139], N[(y + N[(N[(y * a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e-275], x, If[LessEqual[t, 6.5e-45], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y}{a - t}\\
t_2 := t \cdot \frac{y}{t - a}\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+52}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-90}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.36 \cdot 10^{-139}:\\
\;\;\;\;y + \frac{y \cdot a}{t}\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-275}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -7.2e52 or 6.4999999999999995e-45 < t Initial program 51.6%
associate-*l/73.9%
Simplified73.9%
Taylor expanded in z around 0 35.2%
associate-*r/35.2%
mul-1-neg35.2%
distribute-lft-neg-out35.2%
associate-*r/51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in x around 0 33.9%
mul-1-neg33.9%
associate-/l*48.4%
distribute-neg-frac48.4%
Simplified48.4%
frac-2neg48.4%
div-inv48.3%
remove-double-neg48.3%
distribute-neg-frac48.3%
sub-neg48.3%
distribute-neg-in48.3%
remove-double-neg48.3%
Applied egg-rr48.3%
associate-/r/48.8%
associate-*l/48.9%
*-lft-identity48.9%
+-commutative48.9%
unsub-neg48.9%
Simplified48.9%
if -7.2e52 < t < -7.4999999999999999e-90 or -8.99999999999999957e-275 < t < 6.4999999999999995e-45Initial program 88.9%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in z around -inf 63.4%
Taylor expanded in y around inf 40.1%
associate-/l*46.4%
Simplified46.4%
associate-/r/46.3%
Applied egg-rr46.3%
if -7.4999999999999999e-90 < t < -1.36000000000000003e-139Initial program 86.0%
associate-*l/72.3%
Simplified72.3%
Taylor expanded in z around 0 43.7%
associate-*r/43.7%
mul-1-neg43.7%
distribute-lft-neg-out43.7%
associate-*r/30.2%
*-commutative30.2%
Simplified30.2%
Taylor expanded in t around inf 45.4%
associate-/l*31.9%
Simplified31.9%
Taylor expanded in y around inf 45.5%
if -1.36000000000000003e-139 < t < -8.99999999999999957e-275Initial program 97.0%
associate-*l/94.3%
Simplified94.3%
Taylor expanded in a around inf 51.3%
Final simplification48.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.02e+142)
x
(if (<= a 4.4e+86)
(* y (/ (- t z) t))
(if (<= a 2.45e+154)
x
(if (<= a 4.6e+183)
(* t (/ y (- t a)))
(if (<= a 1e+208) (* y (/ (- z t) a)) x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.02e+142) {
tmp = x;
} else if (a <= 4.4e+86) {
tmp = y * ((t - z) / t);
} else if (a <= 2.45e+154) {
tmp = x;
} else if (a <= 4.6e+183) {
tmp = t * (y / (t - a));
} else if (a <= 1e+208) {
tmp = y * ((z - t) / a);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-2.02d+142)) then
tmp = x
else if (a <= 4.4d+86) then
tmp = y * ((t - z) / t)
else if (a <= 2.45d+154) then
tmp = x
else if (a <= 4.6d+183) then
tmp = t * (y / (t - a))
else if (a <= 1d+208) then
tmp = y * ((z - t) / a)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.02e+142) {
tmp = x;
} else if (a <= 4.4e+86) {
tmp = y * ((t - z) / t);
} else if (a <= 2.45e+154) {
tmp = x;
} else if (a <= 4.6e+183) {
tmp = t * (y / (t - a));
} else if (a <= 1e+208) {
tmp = y * ((z - t) / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.02e+142: tmp = x elif a <= 4.4e+86: tmp = y * ((t - z) / t) elif a <= 2.45e+154: tmp = x elif a <= 4.6e+183: tmp = t * (y / (t - a)) elif a <= 1e+208: tmp = y * ((z - t) / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.02e+142) tmp = x; elseif (a <= 4.4e+86) tmp = Float64(y * Float64(Float64(t - z) / t)); elseif (a <= 2.45e+154) tmp = x; elseif (a <= 4.6e+183) tmp = Float64(t * Float64(y / Float64(t - a))); elseif (a <= 1e+208) tmp = Float64(y * Float64(Float64(z - t) / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.02e+142) tmp = x; elseif (a <= 4.4e+86) tmp = y * ((t - z) / t); elseif (a <= 2.45e+154) tmp = x; elseif (a <= 4.6e+183) tmp = t * (y / (t - a)); elseif (a <= 1e+208) tmp = y * ((z - t) / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.02e+142], x, If[LessEqual[a, 4.4e+86], N[(y * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.45e+154], x, If[LessEqual[a, 4.6e+183], N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e+208], N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.02 \cdot 10^{+142}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+86}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 2.45 \cdot 10^{+154}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{+183}:\\
\;\;\;\;t \cdot \frac{y}{t - a}\\
\mathbf{elif}\;a \leq 10^{+208}:\\
\;\;\;\;y \cdot \frac{z - t}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.02000000000000013e142 or 4.40000000000000006e86 < a < 2.4500000000000001e154 or 9.9999999999999998e207 < a Initial program 77.1%
associate-*l/87.5%
Simplified87.5%
Taylor expanded in a around inf 51.5%
if -2.02000000000000013e142 < a < 4.40000000000000006e86Initial program 66.6%
associate-*l/80.3%
Simplified80.3%
Taylor expanded in y around inf 63.3%
div-sub63.3%
Simplified63.3%
Taylor expanded in a around 0 53.4%
mul-1-neg53.4%
Simplified53.4%
if 2.4500000000000001e154 < a < 4.5999999999999996e183Initial program 25.9%
associate-*l/99.1%
Simplified99.1%
Taylor expanded in z around 0 6.5%
associate-*r/6.5%
mul-1-neg6.5%
distribute-lft-neg-out6.5%
associate-*r/60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in x around 0 6.4%
mul-1-neg6.4%
associate-/l*61.2%
distribute-neg-frac61.2%
Simplified61.2%
frac-2neg61.2%
div-inv60.9%
remove-double-neg60.9%
distribute-neg-frac60.9%
sub-neg60.9%
distribute-neg-in60.9%
remove-double-neg60.9%
Applied egg-rr60.9%
associate-/r/61.2%
associate-*l/60.9%
*-lft-identity60.9%
+-commutative60.9%
unsub-neg60.9%
Simplified60.9%
if 4.5999999999999996e183 < a < 9.9999999999999998e207Initial program 86.4%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in y around inf 59.8%
div-sub59.8%
Simplified59.8%
Taylor expanded in a around inf 59.8%
Final simplification53.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.55e+146)
x
(if (<= a 1.15e+87)
(* y (/ (- t z) t))
(if (<= a 2.5e+152)
x
(if (<= a 2.55e+185)
(* y (/ (- t) (- a t)))
(if (<= a 1.4e+211) (* y (/ (- z t) a)) x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.55e+146) {
tmp = x;
} else if (a <= 1.15e+87) {
tmp = y * ((t - z) / t);
} else if (a <= 2.5e+152) {
tmp = x;
} else if (a <= 2.55e+185) {
tmp = y * (-t / (a - t));
} else if (a <= 1.4e+211) {
tmp = y * ((z - t) / a);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.55d+146)) then
tmp = x
else if (a <= 1.15d+87) then
tmp = y * ((t - z) / t)
else if (a <= 2.5d+152) then
tmp = x
else if (a <= 2.55d+185) then
tmp = y * (-t / (a - t))
else if (a <= 1.4d+211) then
tmp = y * ((z - t) / a)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.55e+146) {
tmp = x;
} else if (a <= 1.15e+87) {
tmp = y * ((t - z) / t);
} else if (a <= 2.5e+152) {
tmp = x;
} else if (a <= 2.55e+185) {
tmp = y * (-t / (a - t));
} else if (a <= 1.4e+211) {
tmp = y * ((z - t) / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.55e+146: tmp = x elif a <= 1.15e+87: tmp = y * ((t - z) / t) elif a <= 2.5e+152: tmp = x elif a <= 2.55e+185: tmp = y * (-t / (a - t)) elif a <= 1.4e+211: tmp = y * ((z - t) / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.55e+146) tmp = x; elseif (a <= 1.15e+87) tmp = Float64(y * Float64(Float64(t - z) / t)); elseif (a <= 2.5e+152) tmp = x; elseif (a <= 2.55e+185) tmp = Float64(y * Float64(Float64(-t) / Float64(a - t))); elseif (a <= 1.4e+211) tmp = Float64(y * Float64(Float64(z - t) / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.55e+146) tmp = x; elseif (a <= 1.15e+87) tmp = y * ((t - z) / t); elseif (a <= 2.5e+152) tmp = x; elseif (a <= 2.55e+185) tmp = y * (-t / (a - t)); elseif (a <= 1.4e+211) tmp = y * ((z - t) / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.55e+146], x, If[LessEqual[a, 1.15e+87], N[(y * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.5e+152], x, If[LessEqual[a, 2.55e+185], N[(y * N[((-t) / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+211], N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.55 \cdot 10^{+146}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+87}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+152}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.55 \cdot 10^{+185}:\\
\;\;\;\;y \cdot \frac{-t}{a - t}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+211}:\\
\;\;\;\;y \cdot \frac{z - t}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.5500000000000001e146 or 1.1500000000000001e87 < a < 2.5e152 or 1.4e211 < a Initial program 77.1%
associate-*l/87.5%
Simplified87.5%
Taylor expanded in a around inf 51.5%
if -1.5500000000000001e146 < a < 1.1500000000000001e87Initial program 66.6%
associate-*l/80.3%
Simplified80.3%
Taylor expanded in y around inf 63.3%
div-sub63.3%
Simplified63.3%
Taylor expanded in a around 0 53.4%
mul-1-neg53.4%
Simplified53.4%
if 2.5e152 < a < 2.54999999999999998e185Initial program 25.9%
associate-*l/99.1%
Simplified99.1%
Taylor expanded in y around inf 80.8%
div-sub80.8%
Simplified80.8%
Taylor expanded in z around 0 61.2%
associate-*r/61.2%
neg-mul-161.2%
Simplified61.2%
if 2.54999999999999998e185 < a < 1.4e211Initial program 86.4%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in y around inf 59.8%
div-sub59.8%
Simplified59.8%
Taylor expanded in a around inf 59.8%
Final simplification53.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -4.7e+156)
t_1
(if (<= t -5.2e+132)
(* z (/ (- y x) (- a t)))
(if (or (<= t -195.0) (not (<= t 1.8e-35)))
t_1
(+ x (/ z (/ a (- y x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -4.7e+156) {
tmp = t_1;
} else if (t <= -5.2e+132) {
tmp = z * ((y - x) / (a - t));
} else if ((t <= -195.0) || !(t <= 1.8e-35)) {
tmp = t_1;
} else {
tmp = x + (z / (a / (y - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-4.7d+156)) then
tmp = t_1
else if (t <= (-5.2d+132)) then
tmp = z * ((y - x) / (a - t))
else if ((t <= (-195.0d0)) .or. (.not. (t <= 1.8d-35))) then
tmp = t_1
else
tmp = x + (z / (a / (y - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -4.7e+156) {
tmp = t_1;
} else if (t <= -5.2e+132) {
tmp = z * ((y - x) / (a - t));
} else if ((t <= -195.0) || !(t <= 1.8e-35)) {
tmp = t_1;
} else {
tmp = x + (z / (a / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -4.7e+156: tmp = t_1 elif t <= -5.2e+132: tmp = z * ((y - x) / (a - t)) elif (t <= -195.0) or not (t <= 1.8e-35): tmp = t_1 else: tmp = x + (z / (a / (y - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -4.7e+156) tmp = t_1; elseif (t <= -5.2e+132) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif ((t <= -195.0) || !(t <= 1.8e-35)) tmp = t_1; else tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -4.7e+156) tmp = t_1; elseif (t <= -5.2e+132) tmp = z * ((y - x) / (a - t)); elseif ((t <= -195.0) || ~((t <= 1.8e-35))) tmp = t_1; else tmp = x + (z / (a / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.7e+156], t$95$1, If[LessEqual[t, -5.2e+132], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -195.0], N[Not[LessEqual[t, 1.8e-35]], $MachinePrecision]], t$95$1, N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -4.7 \cdot 10^{+156}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{+132}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq -195 \lor \neg \left(t \leq 1.8 \cdot 10^{-35}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\end{array}
\end{array}
if t < -4.7e156 or -5.2e132 < t < -195 or 1.80000000000000009e-35 < t Initial program 51.5%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in y around inf 67.7%
div-sub67.7%
Simplified67.7%
if -4.7e156 < t < -5.2e132Initial program 53.1%
associate-*l/80.7%
Simplified80.7%
Taylor expanded in z around inf 71.0%
div-sub71.0%
Simplified71.0%
if -195 < t < 1.80000000000000009e-35Initial program 92.6%
associate-*l/94.1%
Simplified94.1%
Taylor expanded in t around 0 78.7%
associate-/l*82.1%
Simplified82.1%
Final simplification73.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -2.5e+155)
t_1
(if (<= t -1.2e+133)
(* z (/ (- y x) (- a t)))
(if (or (<= t -150.0) (not (<= t 7.9e-35)))
t_1
(+ x (/ (- y x) (/ a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.5e+155) {
tmp = t_1;
} else if (t <= -1.2e+133) {
tmp = z * ((y - x) / (a - t));
} else if ((t <= -150.0) || !(t <= 7.9e-35)) {
tmp = t_1;
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-2.5d+155)) then
tmp = t_1
else if (t <= (-1.2d+133)) then
tmp = z * ((y - x) / (a - t))
else if ((t <= (-150.0d0)) .or. (.not. (t <= 7.9d-35))) then
tmp = t_1
else
tmp = x + ((y - x) / (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.5e+155) {
tmp = t_1;
} else if (t <= -1.2e+133) {
tmp = z * ((y - x) / (a - t));
} else if ((t <= -150.0) || !(t <= 7.9e-35)) {
tmp = t_1;
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -2.5e+155: tmp = t_1 elif t <= -1.2e+133: tmp = z * ((y - x) / (a - t)) elif (t <= -150.0) or not (t <= 7.9e-35): tmp = t_1 else: tmp = x + ((y - x) / (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -2.5e+155) tmp = t_1; elseif (t <= -1.2e+133) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif ((t <= -150.0) || !(t <= 7.9e-35)) tmp = t_1; else tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -2.5e+155) tmp = t_1; elseif (t <= -1.2e+133) tmp = z * ((y - x) / (a - t)); elseif ((t <= -150.0) || ~((t <= 7.9e-35))) tmp = t_1; else tmp = x + ((y - x) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+155], t$95$1, If[LessEqual[t, -1.2e+133], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -150.0], N[Not[LessEqual[t, 7.9e-35]], $MachinePrecision]], t$95$1, N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{+133}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq -150 \lor \neg \left(t \leq 7.9 \cdot 10^{-35}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -2.5e155 or -1.1999999999999999e133 < t < -150 or 7.89999999999999983e-35 < t Initial program 51.5%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in y around inf 67.7%
div-sub67.7%
Simplified67.7%
if -2.5e155 < t < -1.1999999999999999e133Initial program 53.1%
associate-*l/80.7%
Simplified80.7%
Taylor expanded in z around inf 71.0%
div-sub71.0%
Simplified71.0%
if -150 < t < 7.89999999999999983e-35Initial program 92.6%
associate-*l/94.1%
Simplified94.1%
associate-/r/98.2%
Applied egg-rr98.2%
Taylor expanded in t around 0 84.0%
Final simplification74.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* x (/ (- z a) t)))))
(if (<= t -9.6e+131)
t_1
(if (<= t -74.0)
(/ y (/ (- a t) (- z t)))
(if (<= t 3.6e-34)
(+ x (/ (- y x) (/ a z)))
(if (<= t 5.2e+171) (* y (/ (- z t) (- a t))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + (x * ((z - a) / t));
double tmp;
if (t <= -9.6e+131) {
tmp = t_1;
} else if (t <= -74.0) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 3.6e-34) {
tmp = x + ((y - x) / (a / z));
} else if (t <= 5.2e+171) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y + (x * ((z - a) / t))
if (t <= (-9.6d+131)) then
tmp = t_1
else if (t <= (-74.0d0)) then
tmp = y / ((a - t) / (z - t))
else if (t <= 3.6d-34) then
tmp = x + ((y - x) / (a / z))
else if (t <= 5.2d+171) then
tmp = y * ((z - t) / (a - t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y + (x * ((z - a) / t));
double tmp;
if (t <= -9.6e+131) {
tmp = t_1;
} else if (t <= -74.0) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 3.6e-34) {
tmp = x + ((y - x) / (a / z));
} else if (t <= 5.2e+171) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + (x * ((z - a) / t)) tmp = 0 if t <= -9.6e+131: tmp = t_1 elif t <= -74.0: tmp = y / ((a - t) / (z - t)) elif t <= 3.6e-34: tmp = x + ((y - x) / (a / z)) elif t <= 5.2e+171: tmp = y * ((z - t) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(x * Float64(Float64(z - a) / t))) tmp = 0.0 if (t <= -9.6e+131) tmp = t_1; elseif (t <= -74.0) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (t <= 3.6e-34) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif (t <= 5.2e+171) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + (x * ((z - a) / t)); tmp = 0.0; if (t <= -9.6e+131) tmp = t_1; elseif (t <= -74.0) tmp = y / ((a - t) / (z - t)); elseif (t <= 3.6e-34) tmp = x + ((y - x) / (a / z)); elseif (t <= 5.2e+171) tmp = y * ((z - t) / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.6e+131], t$95$1, If[LessEqual[t, -74.0], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-34], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+171], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + x \cdot \frac{z - a}{t}\\
\mathbf{if}\;t \leq -9.6 \cdot 10^{+131}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -74:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-34}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+171}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -9.5999999999999998e131 or 5.2e171 < t Initial program 38.3%
associate-*l/67.7%
Simplified67.7%
associate-/r/74.3%
add-cube-cbrt72.7%
associate-/l*72.8%
pow272.8%
Applied egg-rr72.8%
Taylor expanded in t around inf 59.3%
associate--l+59.3%
associate-*r/59.3%
associate-*r/59.3%
div-sub59.3%
distribute-lft-out--59.3%
distribute-rgt-out--59.4%
associate-*r/59.4%
distribute-rgt-out--59.3%
mul-1-neg59.3%
distribute-rgt-out--59.4%
unsub-neg59.4%
associate-*r/88.6%
Simplified88.6%
Taylor expanded in y around 0 68.1%
mul-1-neg68.1%
associate-*r/84.5%
distribute-rgt-neg-in84.5%
distribute-frac-neg84.5%
neg-sub084.5%
associate--r-84.5%
neg-sub084.5%
Simplified84.5%
if -9.5999999999999998e131 < t < -74Initial program 67.1%
associate-*l/91.3%
Simplified91.3%
associate-/r/95.6%
Applied egg-rr95.6%
Taylor expanded in x around 0 54.4%
associate-/l*78.7%
Simplified78.7%
if -74 < t < 3.60000000000000008e-34Initial program 92.6%
associate-*l/94.1%
Simplified94.1%
associate-/r/98.2%
Applied egg-rr98.2%
Taylor expanded in t around 0 84.0%
if 3.60000000000000008e-34 < t < 5.2e171Initial program 69.5%
associate-*l/80.2%
Simplified80.2%
Taylor expanded in y around inf 63.0%
div-sub63.0%
Simplified63.0%
Final simplification80.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* (- y x) (/ (- a z) t)))))
(if (<= t -4.4e+131)
t_1
(if (<= t -105.0)
(/ y (/ (- a t) (- z t)))
(if (<= t 3.9e-34) (+ x (/ (- y x) (/ a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + ((y - x) * ((a - z) / t));
double tmp;
if (t <= -4.4e+131) {
tmp = t_1;
} else if (t <= -105.0) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 3.9e-34) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y + ((y - x) * ((a - z) / t))
if (t <= (-4.4d+131)) then
tmp = t_1
else if (t <= (-105.0d0)) then
tmp = y / ((a - t) / (z - t))
else if (t <= 3.9d-34) then
tmp = x + ((y - x) / (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 = y + ((y - x) * ((a - z) / t));
double tmp;
if (t <= -4.4e+131) {
tmp = t_1;
} else if (t <= -105.0) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 3.9e-34) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + ((y - x) * ((a - z) / t)) tmp = 0 if t <= -4.4e+131: tmp = t_1 elif t <= -105.0: tmp = y / ((a - t) / (z - t)) elif t <= 3.9e-34: tmp = x + ((y - x) / (a / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))) tmp = 0.0 if (t <= -4.4e+131) tmp = t_1; elseif (t <= -105.0) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (t <= 3.9e-34) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + ((y - x) * ((a - z) / t)); tmp = 0.0; if (t <= -4.4e+131) tmp = t_1; elseif (t <= -105.0) tmp = y / ((a - t) / (z - t)); elseif (t <= 3.9e-34) tmp = x + ((y - x) / (a / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.4e+131], t$95$1, If[LessEqual[t, -105.0], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e-34], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\mathbf{if}\;t \leq -4.4 \cdot 10^{+131}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -105:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-34}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.3999999999999998e131 or 3.89999999999999991e-34 < t Initial program 48.8%
associate-*l/71.9%
Simplified71.9%
associate-/r/77.8%
add-cube-cbrt76.4%
associate-/l*76.4%
pow276.4%
Applied egg-rr76.4%
Taylor expanded in t around inf 58.4%
associate--l+58.4%
associate-*r/58.4%
associate-*r/58.4%
div-sub58.4%
distribute-lft-out--58.4%
distribute-rgt-out--58.5%
associate-*r/58.5%
distribute-rgt-out--58.4%
mul-1-neg58.4%
distribute-rgt-out--58.5%
unsub-neg58.5%
associate-*r/80.8%
Simplified80.8%
if -4.3999999999999998e131 < t < -105Initial program 67.1%
associate-*l/91.3%
Simplified91.3%
associate-/r/95.6%
Applied egg-rr95.6%
Taylor expanded in x around 0 54.4%
associate-/l*78.7%
Simplified78.7%
if -105 < t < 3.89999999999999991e-34Initial program 92.6%
associate-*l/94.1%
Simplified94.1%
associate-/r/98.2%
Applied egg-rr98.2%
Taylor expanded in t around 0 84.0%
Final simplification82.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.6e+212) (not (<= t 3.1e+124))) (+ y (* (- y x) (/ (- a z) t))) (+ x (* (- z t) (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.6e+212) || !(t <= 3.1e+124)) {
tmp = y + ((y - x) * ((a - z) / t));
} else {
tmp = x + ((z - t) * ((y - x) / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-1.6d+212)) .or. (.not. (t <= 3.1d+124))) then
tmp = y + ((y - x) * ((a - z) / t))
else
tmp = x + ((z - t) * ((y - x) / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.6e+212) || !(t <= 3.1e+124)) {
tmp = y + ((y - x) * ((a - z) / t));
} else {
tmp = x + ((z - t) * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.6e+212) or not (t <= 3.1e+124): tmp = y + ((y - x) * ((a - z) / t)) else: tmp = x + ((z - t) * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.6e+212) || !(t <= 3.1e+124)) tmp = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.6e+212) || ~((t <= 3.1e+124))) tmp = y + ((y - x) * ((a - z) / t)); else tmp = x + ((z - t) * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.6e+212], N[Not[LessEqual[t, 3.1e+124]], $MachinePrecision]], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+212} \lor \neg \left(t \leq 3.1 \cdot 10^{+124}\right):\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if t < -1.5999999999999999e212 or 3.1000000000000002e124 < t Initial program 31.5%
associate-*l/57.1%
Simplified57.1%
associate-/r/66.6%
add-cube-cbrt65.3%
associate-/l*65.4%
pow265.4%
Applied egg-rr65.4%
Taylor expanded in t around inf 67.0%
associate--l+67.0%
associate-*r/67.0%
associate-*r/67.0%
div-sub67.0%
distribute-lft-out--67.0%
distribute-rgt-out--67.0%
associate-*r/67.0%
distribute-rgt-out--67.0%
mul-1-neg67.0%
distribute-rgt-out--67.0%
unsub-neg67.0%
associate-*r/94.0%
Simplified94.0%
if -1.5999999999999999e212 < t < 3.1000000000000002e124Initial program 82.2%
associate-*l/92.2%
Simplified92.2%
Final simplification92.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y (- t a)))))
(if (<= t -1.5e+51)
t_1
(if (<= t -1.35e-72)
(/ y (/ (- a t) z))
(if (<= t -1.5e-275) x (if (<= t 4e-45) (* z (/ y (- a t))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (t - a));
double tmp;
if (t <= -1.5e+51) {
tmp = t_1;
} else if (t <= -1.35e-72) {
tmp = y / ((a - t) / z);
} else if (t <= -1.5e-275) {
tmp = x;
} else if (t <= 4e-45) {
tmp = z * (y / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (y / (t - a))
if (t <= (-1.5d+51)) then
tmp = t_1
else if (t <= (-1.35d-72)) then
tmp = y / ((a - t) / z)
else if (t <= (-1.5d-275)) then
tmp = x
else if (t <= 4d-45) then
tmp = z * (y / (a - t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (t - a));
double tmp;
if (t <= -1.5e+51) {
tmp = t_1;
} else if (t <= -1.35e-72) {
tmp = y / ((a - t) / z);
} else if (t <= -1.5e-275) {
tmp = x;
} else if (t <= 4e-45) {
tmp = z * (y / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (t - a)) tmp = 0 if t <= -1.5e+51: tmp = t_1 elif t <= -1.35e-72: tmp = y / ((a - t) / z) elif t <= -1.5e-275: tmp = x elif t <= 4e-45: tmp = z * (y / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(t - a))) tmp = 0.0 if (t <= -1.5e+51) tmp = t_1; elseif (t <= -1.35e-72) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (t <= -1.5e-275) tmp = x; elseif (t <= 4e-45) tmp = Float64(z * Float64(y / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (t - a)); tmp = 0.0; if (t <= -1.5e+51) tmp = t_1; elseif (t <= -1.35e-72) tmp = y / ((a - t) / z); elseif (t <= -1.5e-275) tmp = x; elseif (t <= 4e-45) tmp = z * (y / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.5e+51], t$95$1, If[LessEqual[t, -1.35e-72], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.5e-275], x, If[LessEqual[t, 4e-45], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{t - a}\\
\mathbf{if}\;t \leq -1.5 \cdot 10^{+51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{-72}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-275}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-45}:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.5e51 or 3.99999999999999994e-45 < t Initial program 51.6%
associate-*l/73.9%
Simplified73.9%
Taylor expanded in z around 0 35.2%
associate-*r/35.2%
mul-1-neg35.2%
distribute-lft-neg-out35.2%
associate-*r/51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in x around 0 33.9%
mul-1-neg33.9%
associate-/l*48.4%
distribute-neg-frac48.4%
Simplified48.4%
frac-2neg48.4%
div-inv48.3%
remove-double-neg48.3%
distribute-neg-frac48.3%
sub-neg48.3%
distribute-neg-in48.3%
remove-double-neg48.3%
Applied egg-rr48.3%
associate-/r/48.8%
associate-*l/48.9%
*-lft-identity48.9%
+-commutative48.9%
unsub-neg48.9%
Simplified48.9%
if -1.5e51 < t < -1.35e-72Initial program 74.3%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in z around -inf 47.6%
Taylor expanded in y around inf 30.4%
associate-/l*50.0%
Simplified50.0%
if -1.35e-72 < t < -1.5e-275Initial program 95.2%
associate-*l/90.8%
Simplified90.8%
Taylor expanded in a around inf 46.7%
if -1.5e-275 < t < 3.99999999999999994e-45Initial program 93.8%
associate-*l/96.0%
Simplified96.0%
Taylor expanded in z around -inf 70.1%
Taylor expanded in y around inf 44.1%
associate-/l*45.9%
Simplified45.9%
associate-/r/47.7%
Applied egg-rr47.7%
Final simplification48.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* x (- z)) (- a t))))
(if (<= x -1.65e+290)
t_1
(if (<= x -1.12e+206)
x
(if (<= x 2.9e+217) (* y (/ (- z t) (- a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x * -z) / (a - t);
double tmp;
if (x <= -1.65e+290) {
tmp = t_1;
} else if (x <= -1.12e+206) {
tmp = x;
} else if (x <= 2.9e+217) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (x * -z) / (a - t)
if (x <= (-1.65d+290)) then
tmp = t_1
else if (x <= (-1.12d+206)) then
tmp = x
else if (x <= 2.9d+217) then
tmp = y * ((z - t) / (a - t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (x * -z) / (a - t);
double tmp;
if (x <= -1.65e+290) {
tmp = t_1;
} else if (x <= -1.12e+206) {
tmp = x;
} else if (x <= 2.9e+217) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x * -z) / (a - t) tmp = 0 if x <= -1.65e+290: tmp = t_1 elif x <= -1.12e+206: tmp = x elif x <= 2.9e+217: tmp = y * ((z - t) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x * Float64(-z)) / Float64(a - t)) tmp = 0.0 if (x <= -1.65e+290) tmp = t_1; elseif (x <= -1.12e+206) tmp = x; elseif (x <= 2.9e+217) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x * -z) / (a - t); tmp = 0.0; if (x <= -1.65e+290) tmp = t_1; elseif (x <= -1.12e+206) tmp = x; elseif (x <= 2.9e+217) tmp = y * ((z - t) / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x * (-z)), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.65e+290], t$95$1, If[LessEqual[x, -1.12e+206], x, If[LessEqual[x, 2.9e+217], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(-z\right)}{a - t}\\
\mathbf{if}\;x \leq -1.65 \cdot 10^{+290}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.12 \cdot 10^{+206}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+217}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.65e290 or 2.89999999999999985e217 < x Initial program 69.6%
associate-*l/78.0%
Simplified78.0%
Taylor expanded in z around -inf 56.1%
Taylor expanded in y around 0 56.1%
associate-*r/56.1%
mul-1-neg56.1%
distribute-rgt-neg-in56.1%
Simplified56.1%
if -1.65e290 < x < -1.11999999999999997e206Initial program 54.5%
associate-*l/84.7%
Simplified84.7%
Taylor expanded in a around inf 57.8%
if -1.11999999999999997e206 < x < 2.89999999999999985e217Initial program 69.7%
associate-*l/83.4%
Simplified83.4%
Taylor expanded in y around inf 64.4%
div-sub64.4%
Simplified64.4%
Final simplification63.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (/ z (/ t (- y x))))))
(if (<= t -1.55e+130)
t_1
(if (<= t -180.0)
(* y (/ (- z t) (- a t)))
(if (<= t 6.5e-36) (+ x (/ (- y x) (/ a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y - (z / (t / (y - x)));
double tmp;
if (t <= -1.55e+130) {
tmp = t_1;
} else if (t <= -180.0) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 6.5e-36) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y - (z / (t / (y - x)))
if (t <= (-1.55d+130)) then
tmp = t_1
else if (t <= (-180.0d0)) then
tmp = y * ((z - t) / (a - t))
else if (t <= 6.5d-36) then
tmp = x + ((y - x) / (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 = y - (z / (t / (y - x)));
double tmp;
if (t <= -1.55e+130) {
tmp = t_1;
} else if (t <= -180.0) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 6.5e-36) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y - (z / (t / (y - x))) tmp = 0 if t <= -1.55e+130: tmp = t_1 elif t <= -180.0: tmp = y * ((z - t) / (a - t)) elif t <= 6.5e-36: tmp = x + ((y - x) / (a / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y - Float64(z / Float64(t / Float64(y - x)))) tmp = 0.0 if (t <= -1.55e+130) tmp = t_1; elseif (t <= -180.0) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 6.5e-36) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y - (z / (t / (y - x))); tmp = 0.0; if (t <= -1.55e+130) tmp = t_1; elseif (t <= -180.0) tmp = y * ((z - t) / (a - t)); elseif (t <= 6.5e-36) tmp = x + ((y - x) / (a / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y - N[(z / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e+130], t$95$1, If[LessEqual[t, -180.0], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-36], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{z}{\frac{t}{y - x}}\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{+130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -180:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-36}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.55e130 or 6.50000000000000012e-36 < t Initial program 48.8%
associate-*l/71.9%
Simplified71.9%
Taylor expanded in t around inf 58.4%
associate--l+58.4%
distribute-lft-out--58.4%
div-sub58.4%
mul-1-neg58.4%
unsub-neg58.4%
distribute-rgt-out--58.5%
Simplified58.5%
Taylor expanded in z around inf 57.8%
associate-/l*72.0%
Simplified72.0%
if -1.55e130 < t < -180Initial program 67.1%
associate-*l/91.3%
Simplified91.3%
Taylor expanded in y around inf 78.7%
div-sub78.7%
Simplified78.7%
if -180 < t < 6.50000000000000012e-36Initial program 92.6%
associate-*l/94.1%
Simplified94.1%
associate-/r/98.2%
Applied egg-rr98.2%
Taylor expanded in t around 0 84.0%
Final simplification77.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (/ z (/ t (- y x))))))
(if (<= t -2.05e+131)
t_1
(if (<= t -210.0)
(/ y (/ (- a t) (- z t)))
(if (<= t 5.7e-36) (+ x (/ (- y x) (/ a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y - (z / (t / (y - x)));
double tmp;
if (t <= -2.05e+131) {
tmp = t_1;
} else if (t <= -210.0) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 5.7e-36) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y - (z / (t / (y - x)))
if (t <= (-2.05d+131)) then
tmp = t_1
else if (t <= (-210.0d0)) then
tmp = y / ((a - t) / (z - t))
else if (t <= 5.7d-36) then
tmp = x + ((y - x) / (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 = y - (z / (t / (y - x)));
double tmp;
if (t <= -2.05e+131) {
tmp = t_1;
} else if (t <= -210.0) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 5.7e-36) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y - (z / (t / (y - x))) tmp = 0 if t <= -2.05e+131: tmp = t_1 elif t <= -210.0: tmp = y / ((a - t) / (z - t)) elif t <= 5.7e-36: tmp = x + ((y - x) / (a / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y - Float64(z / Float64(t / Float64(y - x)))) tmp = 0.0 if (t <= -2.05e+131) tmp = t_1; elseif (t <= -210.0) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (t <= 5.7e-36) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y - (z / (t / (y - x))); tmp = 0.0; if (t <= -2.05e+131) tmp = t_1; elseif (t <= -210.0) tmp = y / ((a - t) / (z - t)); elseif (t <= 5.7e-36) tmp = x + ((y - x) / (a / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y - N[(z / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.05e+131], t$95$1, If[LessEqual[t, -210.0], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.7e-36], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{z}{\frac{t}{y - x}}\\
\mathbf{if}\;t \leq -2.05 \cdot 10^{+131}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -210:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{-36}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.05000000000000004e131 or 5.6999999999999999e-36 < t Initial program 48.8%
associate-*l/71.9%
Simplified71.9%
Taylor expanded in t around inf 58.4%
associate--l+58.4%
distribute-lft-out--58.4%
div-sub58.4%
mul-1-neg58.4%
unsub-neg58.4%
distribute-rgt-out--58.5%
Simplified58.5%
Taylor expanded in z around inf 57.8%
associate-/l*72.0%
Simplified72.0%
if -2.05000000000000004e131 < t < -210Initial program 67.1%
associate-*l/91.3%
Simplified91.3%
associate-/r/95.6%
Applied egg-rr95.6%
Taylor expanded in x around 0 54.4%
associate-/l*78.7%
Simplified78.7%
if -210 < t < 5.6999999999999999e-36Initial program 92.6%
associate-*l/94.1%
Simplified94.1%
associate-/r/98.2%
Applied egg-rr98.2%
Taylor expanded in t around 0 84.0%
Final simplification77.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4.6e-5) (not (<= z 5.8e+71))) (* z (/ (- y x) (- a t))) (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.6e-5) || !(z <= 5.8e+71)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-4.6d-5)) .or. (.not. (z <= 5.8d+71))) then
tmp = z * ((y - x) / (a - t))
else
tmp = y * ((z - t) / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.6e-5) || !(z <= 5.8e+71)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4.6e-5) or not (z <= 5.8e+71): tmp = z * ((y - x) / (a - t)) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4.6e-5) || !(z <= 5.8e+71)) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4.6e-5) || ~((z <= 5.8e+71))) tmp = z * ((y - x) / (a - t)); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.6e-5], N[Not[LessEqual[z, 5.8e+71]], $MachinePrecision]], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.6 \cdot 10^{-5} \lor \neg \left(z \leq 5.8 \cdot 10^{+71}\right):\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if z < -4.6e-5 or 5.80000000000000014e71 < z Initial program 69.8%
associate-*l/87.1%
Simplified87.1%
Taylor expanded in z around inf 72.2%
div-sub72.2%
Simplified72.2%
if -4.6e-5 < z < 5.80000000000000014e71Initial program 68.0%
associate-*l/78.8%
Simplified78.8%
Taylor expanded in y around inf 61.1%
div-sub61.1%
Simplified61.1%
Final simplification66.7%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.08e-101)
y
(if (<= t -2.3e-200)
x
(if (<= t 1.15e-186) (* y (/ z a)) (if (<= t 4.8e-35) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.08e-101) {
tmp = y;
} else if (t <= -2.3e-200) {
tmp = x;
} else if (t <= 1.15e-186) {
tmp = y * (z / a);
} else if (t <= 4.8e-35) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.08d-101)) then
tmp = y
else if (t <= (-2.3d-200)) then
tmp = x
else if (t <= 1.15d-186) then
tmp = y * (z / a)
else if (t <= 4.8d-35) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.08e-101) {
tmp = y;
} else if (t <= -2.3e-200) {
tmp = x;
} else if (t <= 1.15e-186) {
tmp = y * (z / a);
} else if (t <= 4.8e-35) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.08e-101: tmp = y elif t <= -2.3e-200: tmp = x elif t <= 1.15e-186: tmp = y * (z / a) elif t <= 4.8e-35: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.08e-101) tmp = y; elseif (t <= -2.3e-200) tmp = x; elseif (t <= 1.15e-186) tmp = Float64(y * Float64(z / a)); elseif (t <= 4.8e-35) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.08e-101) tmp = y; elseif (t <= -2.3e-200) tmp = x; elseif (t <= 1.15e-186) tmp = y * (z / a); elseif (t <= 4.8e-35) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.08e-101], y, If[LessEqual[t, -2.3e-200], x, If[LessEqual[t, 1.15e-186], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e-35], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.08 \cdot 10^{-101}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{-200}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-186}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-35}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.08e-101 or 4.8000000000000003e-35 < t Initial program 54.3%
associate-*l/76.6%
Simplified76.6%
Taylor expanded in t around inf 41.0%
if -1.08e-101 < t < -2.30000000000000007e-200 or 1.15e-186 < t < 4.8000000000000003e-35Initial program 94.1%
associate-*l/93.5%
Simplified93.5%
Taylor expanded in a around inf 47.3%
if -2.30000000000000007e-200 < t < 1.15e-186Initial program 95.0%
associate-*l/95.1%
Simplified95.1%
Taylor expanded in y around inf 50.7%
div-sub50.7%
Simplified50.7%
Taylor expanded in t around 0 48.1%
Final simplification43.4%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.75e-101)
y
(if (<= t -3.5e-277)
x
(if (<= t 1.15e-188) (* z (/ y a)) (if (<= t 1.6e-35) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.75e-101) {
tmp = y;
} else if (t <= -3.5e-277) {
tmp = x;
} else if (t <= 1.15e-188) {
tmp = z * (y / a);
} else if (t <= 1.6e-35) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.75d-101)) then
tmp = y
else if (t <= (-3.5d-277)) then
tmp = x
else if (t <= 1.15d-188) then
tmp = z * (y / a)
else if (t <= 1.6d-35) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.75e-101) {
tmp = y;
} else if (t <= -3.5e-277) {
tmp = x;
} else if (t <= 1.15e-188) {
tmp = z * (y / a);
} else if (t <= 1.6e-35) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.75e-101: tmp = y elif t <= -3.5e-277: tmp = x elif t <= 1.15e-188: tmp = z * (y / a) elif t <= 1.6e-35: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.75e-101) tmp = y; elseif (t <= -3.5e-277) tmp = x; elseif (t <= 1.15e-188) tmp = Float64(z * Float64(y / a)); elseif (t <= 1.6e-35) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.75e-101) tmp = y; elseif (t <= -3.5e-277) tmp = x; elseif (t <= 1.15e-188) tmp = z * (y / a); elseif (t <= 1.6e-35) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.75e-101], y, If[LessEqual[t, -3.5e-277], x, If[LessEqual[t, 1.15e-188], N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-35], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.75 \cdot 10^{-101}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-277}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-188}:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-35}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.74999999999999986e-101 or 1.5999999999999999e-35 < t Initial program 54.3%
associate-*l/76.6%
Simplified76.6%
Taylor expanded in t around inf 41.0%
if -2.74999999999999986e-101 < t < -3.49999999999999983e-277 or 1.15e-188 < t < 1.5999999999999999e-35Initial program 95.5%
associate-*l/93.8%
Simplified93.8%
Taylor expanded in a around inf 44.1%
if -3.49999999999999983e-277 < t < 1.15e-188Initial program 91.0%
associate-*l/95.5%
Simplified95.5%
Taylor expanded in y around inf 60.7%
div-sub60.7%
Simplified60.7%
Taylor expanded in t around 0 56.1%
Taylor expanded in y around 0 56.1%
associate-*l/60.2%
Simplified60.2%
Final simplification43.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -6e-101) y (if (<= t 1.6e-35) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6e-101) {
tmp = y;
} else if (t <= 1.6e-35) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-6d-101)) then
tmp = y
else if (t <= 1.6d-35) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6e-101) {
tmp = y;
} else if (t <= 1.6e-35) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6e-101: tmp = y elif t <= 1.6e-35: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6e-101) tmp = y; elseif (t <= 1.6e-35) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6e-101) tmp = y; elseif (t <= 1.6e-35) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6e-101], y, If[LessEqual[t, 1.6e-35], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6 \cdot 10^{-101}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-35}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6.0000000000000006e-101 or 1.5999999999999999e-35 < t Initial program 54.3%
associate-*l/76.6%
Simplified76.6%
Taylor expanded in t around inf 41.0%
if -6.0000000000000006e-101 < t < 1.5999999999999999e-35Initial program 94.4%
associate-*l/94.2%
Simplified94.2%
Taylor expanded in a around inf 34.6%
Final simplification38.7%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 68.9%
associate-*l/83.0%
Simplified83.0%
Taylor expanded in a around inf 19.1%
Final simplification19.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2024011
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))