
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (- y x))))
(if (or (<= t -3.25e+171) (not (<= t 4.5e+108)))
(+ y (fma -1.0 (/ z t_1) (/ a t_1)))
(+ x (/ (/ (- z t) (- a t)) (/ 1.0 (- y x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (y - x);
double tmp;
if ((t <= -3.25e+171) || !(t <= 4.5e+108)) {
tmp = y + fma(-1.0, (z / t_1), (a / t_1));
} else {
tmp = x + (((z - t) / (a - t)) / (1.0 / (y - x)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(t / Float64(y - x)) tmp = 0.0 if ((t <= -3.25e+171) || !(t <= 4.5e+108)) tmp = Float64(y + fma(-1.0, Float64(z / t_1), Float64(a / t_1))); else tmp = Float64(x + Float64(Float64(Float64(z - t) / Float64(a - t)) / Float64(1.0 / Float64(y - x)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t, -3.25e+171], N[Not[LessEqual[t, 4.5e+108]], $MachinePrecision]], N[(y + N[(-1.0 * N[(z / t$95$1), $MachinePrecision] + N[(a / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{y - x}\\
\mathbf{if}\;t \leq -3.25 \cdot 10^{+171} \lor \neg \left(t \leq 4.5 \cdot 10^{+108}\right):\\
\;\;\;\;y + \mathsf{fma}\left(-1, \frac{z}{t_1}, \frac{a}{t_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}\\
\end{array}
\end{array}
if t < -3.25e171 or 4.5e108 < t Initial program 32.3%
+-commutative32.3%
associate-*l/58.2%
fma-def58.3%
Simplified58.3%
Taylor expanded in t around inf 64.5%
fma-def64.5%
associate-/l*78.4%
associate-/l*92.9%
Simplified92.9%
if -3.25e171 < t < 4.5e108Initial program 82.7%
associate-*l/90.6%
Simplified90.6%
*-commutative90.6%
clear-num90.5%
un-div-inv90.6%
div-inv90.6%
associate-/r*93.9%
Applied egg-rr93.9%
Final simplification93.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) (- a t)))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 -1e+307)
t_1
(if (<= t_2 -5e-292)
t_2
(if (<= t_2 0.0) (+ y (/ (* (- y x) (- a z)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) / (a - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -1e+307) {
tmp = t_1;
} else if (t_2 <= -5e-292) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / 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) :: t_2
real(8) :: tmp
t_1 = x + ((z - t) * ((y - x) / (a - t)))
t_2 = x + (((y - x) * (z - t)) / (a - t))
if (t_2 <= (-1d+307)) then
tmp = t_1
else if (t_2 <= (-5d-292)) then
tmp = t_2
else if (t_2 <= 0.0d0) then
tmp = y + (((y - x) * (a - z)) / 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 - t) * ((y - x) / (a - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -1e+307) {
tmp = t_1;
} else if (t_2 <= -5e-292) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((y - x) / (a - t))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -1e+307: tmp = t_1 elif t_2 <= -5e-292: tmp = t_2 elif t_2 <= 0.0: tmp = y + (((y - x) * (a - z)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -1e+307) tmp = t_1; elseif (t_2 <= -5e-292) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - t) * ((y - x) / (a - t))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -1e+307) tmp = t_1; elseif (t_2 <= -5e-292) tmp = t_2; elseif (t_2 <= 0.0) tmp = y + (((y - x) * (a - z)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+307], t$95$1, If[LessEqual[t$95$2, -5e-292], t$95$2, If[LessEqual[t$95$2, 0.0], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -1 \cdot 10^{+307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -5 \cdot 10^{-292}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.99999999999999986e306 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 63.3%
associate-*l/87.8%
Simplified87.8%
if -9.99999999999999986e306 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999981e-292Initial program 97.4%
if -4.99999999999999981e-292 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.2%
associate-*l/3.8%
Simplified3.8%
associate-/r/4.2%
Applied egg-rr4.2%
Taylor expanded in t around -inf 99.6%
mul-1-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (or (<= t_1 -5e-292) (not (<= t_1 0.0)))
(+ x (/ (- y x) (/ (- a t) (- z t))))
(- y (+ (/ (* a (- x y)) t) (* (- y x) (/ z t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -5e-292) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y - (((a * (x - y)) / t) + ((y - x) * (z / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if ((t_1 <= (-5d-292)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else
tmp = y - (((a * (x - y)) / t) + ((y - x) * (z / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -5e-292) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y - (((a * (x - y)) / t) + ((y - x) * (z / t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if (t_1 <= -5e-292) or not (t_1 <= 0.0): tmp = x + ((y - x) / ((a - t) / (z - t))) else: tmp = y - (((a * (x - y)) / t) + ((y - x) * (z / t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -5e-292) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y - Float64(Float64(Float64(a * Float64(x - y)) / t) + Float64(Float64(y - x) * Float64(z / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if ((t_1 <= -5e-292) || ~((t_1 <= 0.0))) tmp = x + ((y - x) / ((a - t) / (z - t))); else tmp = y - (((a * (x - y)) / t) + ((y - x) * (z / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-292], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(a * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-292} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y - \left(\frac{a \cdot \left(x - y\right)}{t} + \left(y - x\right) \cdot \frac{z}{t}\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999981e-292 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 73.7%
associate-*l/87.4%
Simplified87.4%
associate-/r/91.8%
Applied egg-rr91.8%
if -4.99999999999999981e-292 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.2%
associate-*l/3.8%
Simplified3.8%
clear-num4.0%
inv-pow4.0%
metadata-eval4.0%
sqr-pow2.2%
metadata-eval2.2%
metadata-eval2.2%
metadata-eval2.2%
metadata-eval2.2%
Applied egg-rr2.2%
pow-sqr4.0%
metadata-eval4.0%
unpow-14.0%
Simplified4.0%
clear-num3.8%
associate-/r/4.2%
clear-num4.5%
Applied egg-rr4.5%
div-inv4.5%
Applied egg-rr4.5%
Taylor expanded in t around inf 99.7%
associate--l+99.7%
mul-1-neg99.7%
associate-/l*99.7%
distribute-frac-neg99.7%
associate-/r/99.8%
*-commutative99.8%
associate-*r/99.8%
associate-*r*99.8%
neg-mul-199.8%
Simplified99.8%
Final simplification92.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (or (<= t_1 -5e-292) (not (<= t_1 0.0)))
(+ x (/ (- y x) (/ (- a t) (- z t))))
(+ y (/ (* (- y x) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -5e-292) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if ((t_1 <= (-5d-292)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else
tmp = y + (((y - x) * (a - z)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -5e-292) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if (t_1 <= -5e-292) or not (t_1 <= 0.0): tmp = x + ((y - x) / ((a - t) / (z - t))) else: tmp = y + (((y - x) * (a - z)) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -5e-292) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if ((t_1 <= -5e-292) || ~((t_1 <= 0.0))) tmp = x + ((y - x) / ((a - t) / (z - t))); else tmp = y + (((y - x) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-292], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-292} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999981e-292 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 73.7%
associate-*l/87.4%
Simplified87.4%
associate-/r/91.8%
Applied egg-rr91.8%
if -4.99999999999999981e-292 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.2%
associate-*l/3.8%
Simplified3.8%
associate-/r/4.2%
Applied egg-rr4.2%
Taylor expanded in t around -inf 99.6%
mul-1-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
Final simplification92.3%
(FPCore (x y z t a)
:precision binary64
(if (<= y -2.05e+48)
(+ x (/ (/ (- z t) (- a t)) (/ 1.0 (- y x))))
(if (<= y 6.6e+28)
(+
(* x (- (+ 1.0 (/ t (- a t))) (/ z (- a t))))
(/ (* y (- z t)) (- a t)))
(+ x (/ (- y x) (/ (- a t) (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.05e+48) {
tmp = x + (((z - t) / (a - t)) / (1.0 / (y - x)));
} else if (y <= 6.6e+28) {
tmp = (x * ((1.0 + (t / (a - t))) - (z / (a - t)))) + ((y * (z - t)) / (a - t));
} else {
tmp = x + ((y - x) / ((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 (y <= (-2.05d+48)) then
tmp = x + (((z - t) / (a - t)) / (1.0d0 / (y - x)))
else if (y <= 6.6d+28) then
tmp = (x * ((1.0d0 + (t / (a - t))) - (z / (a - t)))) + ((y * (z - t)) / (a - t))
else
tmp = x + ((y - x) / ((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 (y <= -2.05e+48) {
tmp = x + (((z - t) / (a - t)) / (1.0 / (y - x)));
} else if (y <= 6.6e+28) {
tmp = (x * ((1.0 + (t / (a - t))) - (z / (a - t)))) + ((y * (z - t)) / (a - t));
} else {
tmp = x + ((y - x) / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -2.05e+48: tmp = x + (((z - t) / (a - t)) / (1.0 / (y - x))) elif y <= 6.6e+28: tmp = (x * ((1.0 + (t / (a - t))) - (z / (a - t)))) + ((y * (z - t)) / (a - t)) else: tmp = x + ((y - x) / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2.05e+48) tmp = Float64(x + Float64(Float64(Float64(z - t) / Float64(a - t)) / Float64(1.0 / Float64(y - x)))); elseif (y <= 6.6e+28) tmp = Float64(Float64(x * Float64(Float64(1.0 + Float64(t / Float64(a - t))) - Float64(z / Float64(a - t)))) + Float64(Float64(y * Float64(z - t)) / Float64(a - t))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -2.05e+48) tmp = x + (((z - t) / (a - t)) / (1.0 / (y - x))); elseif (y <= 6.6e+28) tmp = (x * ((1.0 + (t / (a - t))) - (z / (a - t)))) + ((y * (z - t)) / (a - t)); else tmp = x + ((y - x) / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2.05e+48], N[(x + N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.6e+28], N[(N[(x * N[(N[(1.0 + N[(t / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.05 \cdot 10^{+48}:\\
\;\;\;\;x + \frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{+28}:\\
\;\;\;\;x \cdot \left(\left(1 + \frac{t}{a - t}\right) - \frac{z}{a - t}\right) + \frac{y \cdot \left(z - t\right)}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if y < -2.0500000000000001e48Initial program 58.7%
associate-*l/89.8%
Simplified89.8%
*-commutative89.8%
clear-num89.7%
un-div-inv89.7%
div-inv89.8%
associate-/r*92.6%
Applied egg-rr92.6%
if -2.0500000000000001e48 < y < 6.6e28Initial program 75.3%
associate-*l/74.0%
Simplified74.0%
Taylor expanded in x around -inf 93.1%
if 6.6e28 < y Initial program 64.2%
associate-*l/91.9%
Simplified91.9%
associate-/r/93.4%
Applied egg-rr93.4%
Final simplification93.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (- x (/ x (/ a z)))))
(if (<= a -9e+212)
t_2
(if (<= a -1.75e+92)
t_1
(if (<= a -22000000000000.0)
t_2
(if (<= a -9.2e-107)
t_1
(if (<= a -2.1e-118)
(/ x (/ (- t a) z))
(if (<= a -9e-205)
t_1
(if (<= a -5.4e-259)
(* (/ z t) (- x y))
(if (<= a 8.8e+122) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x - (x / (a / z));
double tmp;
if (a <= -9e+212) {
tmp = t_2;
} else if (a <= -1.75e+92) {
tmp = t_1;
} else if (a <= -22000000000000.0) {
tmp = t_2;
} else if (a <= -9.2e-107) {
tmp = t_1;
} else if (a <= -2.1e-118) {
tmp = x / ((t - a) / z);
} else if (a <= -9e-205) {
tmp = t_1;
} else if (a <= -5.4e-259) {
tmp = (z / t) * (x - y);
} else if (a <= 8.8e+122) {
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 = y * ((z - t) / (a - t))
t_2 = x - (x / (a / z))
if (a <= (-9d+212)) then
tmp = t_2
else if (a <= (-1.75d+92)) then
tmp = t_1
else if (a <= (-22000000000000.0d0)) then
tmp = t_2
else if (a <= (-9.2d-107)) then
tmp = t_1
else if (a <= (-2.1d-118)) then
tmp = x / ((t - a) / z)
else if (a <= (-9d-205)) then
tmp = t_1
else if (a <= (-5.4d-259)) then
tmp = (z / t) * (x - y)
else if (a <= 8.8d+122) 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 = y * ((z - t) / (a - t));
double t_2 = x - (x / (a / z));
double tmp;
if (a <= -9e+212) {
tmp = t_2;
} else if (a <= -1.75e+92) {
tmp = t_1;
} else if (a <= -22000000000000.0) {
tmp = t_2;
} else if (a <= -9.2e-107) {
tmp = t_1;
} else if (a <= -2.1e-118) {
tmp = x / ((t - a) / z);
} else if (a <= -9e-205) {
tmp = t_1;
} else if (a <= -5.4e-259) {
tmp = (z / t) * (x - y);
} else if (a <= 8.8e+122) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x - (x / (a / z)) tmp = 0 if a <= -9e+212: tmp = t_2 elif a <= -1.75e+92: tmp = t_1 elif a <= -22000000000000.0: tmp = t_2 elif a <= -9.2e-107: tmp = t_1 elif a <= -2.1e-118: tmp = x / ((t - a) / z) elif a <= -9e-205: tmp = t_1 elif a <= -5.4e-259: tmp = (z / t) * (x - y) elif a <= 8.8e+122: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x - Float64(x / Float64(a / z))) tmp = 0.0 if (a <= -9e+212) tmp = t_2; elseif (a <= -1.75e+92) tmp = t_1; elseif (a <= -22000000000000.0) tmp = t_2; elseif (a <= -9.2e-107) tmp = t_1; elseif (a <= -2.1e-118) tmp = Float64(x / Float64(Float64(t - a) / z)); elseif (a <= -9e-205) tmp = t_1; elseif (a <= -5.4e-259) tmp = Float64(Float64(z / t) * Float64(x - y)); elseif (a <= 8.8e+122) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x - (x / (a / z)); tmp = 0.0; if (a <= -9e+212) tmp = t_2; elseif (a <= -1.75e+92) tmp = t_1; elseif (a <= -22000000000000.0) tmp = t_2; elseif (a <= -9.2e-107) tmp = t_1; elseif (a <= -2.1e-118) tmp = x / ((t - a) / z); elseif (a <= -9e-205) tmp = t_1; elseif (a <= -5.4e-259) tmp = (z / t) * (x - y); elseif (a <= 8.8e+122) tmp = t_1; else tmp = t_2; 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]}, Block[{t$95$2 = N[(x - N[(x / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9e+212], t$95$2, If[LessEqual[a, -1.75e+92], t$95$1, If[LessEqual[a, -22000000000000.0], t$95$2, If[LessEqual[a, -9.2e-107], t$95$1, If[LessEqual[a, -2.1e-118], N[(x / N[(N[(t - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9e-205], t$95$1, If[LessEqual[a, -5.4e-259], N[(N[(z / t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.8e+122], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x - \frac{x}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -9 \cdot 10^{+212}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{+92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -22000000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-107}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-118}:\\
\;\;\;\;\frac{x}{\frac{t - a}{z}}\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-205}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -5.4 \cdot 10^{-259}:\\
\;\;\;\;\frac{z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -9.0000000000000003e212 or -1.74999999999999993e92 < a < -2.2e13 or 8.7999999999999997e122 < a Initial program 72.8%
associate-*l/88.0%
Simplified88.0%
clear-num88.0%
inv-pow88.0%
metadata-eval88.0%
sqr-pow44.9%
metadata-eval44.9%
metadata-eval44.9%
metadata-eval44.9%
metadata-eval44.9%
Applied egg-rr44.9%
pow-sqr88.0%
metadata-eval88.0%
unpow-188.0%
Simplified88.0%
Taylor expanded in y around 0 72.3%
associate-*r/72.3%
neg-mul-172.3%
Simplified72.3%
Taylor expanded in t around 0 57.6%
mul-1-neg57.6%
associate-/l*68.7%
Simplified68.7%
if -9.0000000000000003e212 < a < -1.74999999999999993e92 or -2.2e13 < a < -9.20000000000000014e-107 or -2.1e-118 < a < -8.99999999999999912e-205 or -5.39999999999999968e-259 < a < 8.7999999999999997e122Initial program 67.6%
associate-*l/82.1%
Simplified82.1%
Taylor expanded in x around 0 51.7%
associate-*r/69.3%
Simplified69.3%
if -9.20000000000000014e-107 < a < -2.1e-118Initial program 61.5%
associate-*l/42.8%
Simplified42.8%
clear-num42.8%
inv-pow42.8%
metadata-eval42.8%
sqr-pow21.7%
metadata-eval21.7%
metadata-eval21.7%
metadata-eval21.7%
metadata-eval21.7%
Applied egg-rr21.7%
pow-sqr42.8%
metadata-eval42.8%
unpow-142.8%
Simplified42.8%
Taylor expanded in y around 0 42.8%
associate-*r/42.8%
neg-mul-142.8%
Simplified42.8%
Taylor expanded in z around inf 88.7%
associate-/l*88.8%
Simplified88.8%
if -8.99999999999999912e-205 < a < -5.39999999999999968e-259Initial program 68.4%
associate-*l/58.3%
Simplified58.3%
Taylor expanded in z around -inf 86.1%
associate-/l*88.5%
associate-/r/99.6%
Applied egg-rr99.6%
Taylor expanded in a around 0 92.6%
associate-*r/92.6%
mul-1-neg92.6%
Simplified92.6%
Final simplification70.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- y x) (/ z a))))
(if (<= a -3.7e+165)
x
(if (<= a -5.3e+65)
t_1
(if (<= a -5500000000000.0)
x
(if (<= a -1.6e-146)
t_1
(if (<= a -4.6e-204)
y
(if (<= a -2.45e-291)
(/ x (/ (- t a) z))
(if (<= a 8.8e+61) y (if (<= a 4.4e+145) t_1 x))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (z / a);
double tmp;
if (a <= -3.7e+165) {
tmp = x;
} else if (a <= -5.3e+65) {
tmp = t_1;
} else if (a <= -5500000000000.0) {
tmp = x;
} else if (a <= -1.6e-146) {
tmp = t_1;
} else if (a <= -4.6e-204) {
tmp = y;
} else if (a <= -2.45e-291) {
tmp = x / ((t - a) / z);
} else if (a <= 8.8e+61) {
tmp = y;
} else if (a <= 4.4e+145) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (y - x) * (z / a)
if (a <= (-3.7d+165)) then
tmp = x
else if (a <= (-5.3d+65)) then
tmp = t_1
else if (a <= (-5500000000000.0d0)) then
tmp = x
else if (a <= (-1.6d-146)) then
tmp = t_1
else if (a <= (-4.6d-204)) then
tmp = y
else if (a <= (-2.45d-291)) then
tmp = x / ((t - a) / z)
else if (a <= 8.8d+61) then
tmp = y
else if (a <= 4.4d+145) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (z / a);
double tmp;
if (a <= -3.7e+165) {
tmp = x;
} else if (a <= -5.3e+65) {
tmp = t_1;
} else if (a <= -5500000000000.0) {
tmp = x;
} else if (a <= -1.6e-146) {
tmp = t_1;
} else if (a <= -4.6e-204) {
tmp = y;
} else if (a <= -2.45e-291) {
tmp = x / ((t - a) / z);
} else if (a <= 8.8e+61) {
tmp = y;
} else if (a <= 4.4e+145) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) * (z / a) tmp = 0 if a <= -3.7e+165: tmp = x elif a <= -5.3e+65: tmp = t_1 elif a <= -5500000000000.0: tmp = x elif a <= -1.6e-146: tmp = t_1 elif a <= -4.6e-204: tmp = y elif a <= -2.45e-291: tmp = x / ((t - a) / z) elif a <= 8.8e+61: tmp = y elif a <= 4.4e+145: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) * Float64(z / a)) tmp = 0.0 if (a <= -3.7e+165) tmp = x; elseif (a <= -5.3e+65) tmp = t_1; elseif (a <= -5500000000000.0) tmp = x; elseif (a <= -1.6e-146) tmp = t_1; elseif (a <= -4.6e-204) tmp = y; elseif (a <= -2.45e-291) tmp = Float64(x / Float64(Float64(t - a) / z)); elseif (a <= 8.8e+61) tmp = y; elseif (a <= 4.4e+145) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - x) * (z / a); tmp = 0.0; if (a <= -3.7e+165) tmp = x; elseif (a <= -5.3e+65) tmp = t_1; elseif (a <= -5500000000000.0) tmp = x; elseif (a <= -1.6e-146) tmp = t_1; elseif (a <= -4.6e-204) tmp = y; elseif (a <= -2.45e-291) tmp = x / ((t - a) / z); elseif (a <= 8.8e+61) tmp = y; elseif (a <= 4.4e+145) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.7e+165], x, If[LessEqual[a, -5.3e+65], t$95$1, If[LessEqual[a, -5500000000000.0], x, If[LessEqual[a, -1.6e-146], t$95$1, If[LessEqual[a, -4.6e-204], y, If[LessEqual[a, -2.45e-291], N[(x / N[(N[(t - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.8e+61], y, If[LessEqual[a, 4.4e+145], t$95$1, x]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -3.7 \cdot 10^{+165}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -5.3 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -5500000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-146}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-204}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-291}:\\
\;\;\;\;\frac{x}{\frac{t - a}{z}}\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{+61}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+145}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.70000000000000006e165 or -5.30000000000000022e65 < a < -5.5e12 or 4.40000000000000017e145 < a Initial program 68.2%
associate-*l/87.5%
Simplified87.5%
Taylor expanded in a around inf 60.5%
if -3.70000000000000006e165 < a < -5.30000000000000022e65 or -5.5e12 < a < -1.6e-146 or 8.8000000000000001e61 < a < 4.40000000000000017e145Initial program 75.9%
associate-*l/88.4%
Simplified88.4%
Taylor expanded in z around -inf 56.0%
associate-/l*60.9%
associate-/r/63.5%
Applied egg-rr63.5%
div-inv63.5%
*-commutative63.5%
Applied egg-rr63.5%
Taylor expanded in a around inf 51.1%
if -1.6e-146 < a < -4.5999999999999998e-204 or -2.44999999999999997e-291 < a < 8.8000000000000001e61Initial program 64.2%
associate-*l/75.2%
Simplified75.2%
Taylor expanded in t around inf 54.7%
if -4.5999999999999998e-204 < a < -2.44999999999999997e-291Initial program 67.8%
associate-*l/64.7%
Simplified64.7%
clear-num64.8%
inv-pow64.8%
metadata-eval64.8%
sqr-pow25.7%
metadata-eval25.7%
metadata-eval25.7%
metadata-eval25.7%
metadata-eval25.7%
Applied egg-rr25.7%
pow-sqr64.8%
metadata-eval64.8%
unpow-164.8%
Simplified64.8%
Taylor expanded in y around 0 31.4%
associate-*r/31.4%
neg-mul-131.4%
Simplified31.4%
Taylor expanded in z around inf 57.2%
associate-/l*68.0%
Simplified68.0%
Final simplification56.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- y x) (/ z a))))
(if (<= a -1.45e+168)
x
(if (<= a -6.8e+65)
t_1
(if (<= a -15000000000000.0)
x
(if (<= a -5.2e-144)
t_1
(if (<= a -1e-291)
(/ x (/ t z))
(if (<= a 3.6e+51) y (if (<= a 2.7e+149) t_1 x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (z / a);
double tmp;
if (a <= -1.45e+168) {
tmp = x;
} else if (a <= -6.8e+65) {
tmp = t_1;
} else if (a <= -15000000000000.0) {
tmp = x;
} else if (a <= -5.2e-144) {
tmp = t_1;
} else if (a <= -1e-291) {
tmp = x / (t / z);
} else if (a <= 3.6e+51) {
tmp = y;
} else if (a <= 2.7e+149) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (y - x) * (z / a)
if (a <= (-1.45d+168)) then
tmp = x
else if (a <= (-6.8d+65)) then
tmp = t_1
else if (a <= (-15000000000000.0d0)) then
tmp = x
else if (a <= (-5.2d-144)) then
tmp = t_1
else if (a <= (-1d-291)) then
tmp = x / (t / z)
else if (a <= 3.6d+51) then
tmp = y
else if (a <= 2.7d+149) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (z / a);
double tmp;
if (a <= -1.45e+168) {
tmp = x;
} else if (a <= -6.8e+65) {
tmp = t_1;
} else if (a <= -15000000000000.0) {
tmp = x;
} else if (a <= -5.2e-144) {
tmp = t_1;
} else if (a <= -1e-291) {
tmp = x / (t / z);
} else if (a <= 3.6e+51) {
tmp = y;
} else if (a <= 2.7e+149) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) * (z / a) tmp = 0 if a <= -1.45e+168: tmp = x elif a <= -6.8e+65: tmp = t_1 elif a <= -15000000000000.0: tmp = x elif a <= -5.2e-144: tmp = t_1 elif a <= -1e-291: tmp = x / (t / z) elif a <= 3.6e+51: tmp = y elif a <= 2.7e+149: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) * Float64(z / a)) tmp = 0.0 if (a <= -1.45e+168) tmp = x; elseif (a <= -6.8e+65) tmp = t_1; elseif (a <= -15000000000000.0) tmp = x; elseif (a <= -5.2e-144) tmp = t_1; elseif (a <= -1e-291) tmp = Float64(x / Float64(t / z)); elseif (a <= 3.6e+51) tmp = y; elseif (a <= 2.7e+149) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - x) * (z / a); tmp = 0.0; if (a <= -1.45e+168) tmp = x; elseif (a <= -6.8e+65) tmp = t_1; elseif (a <= -15000000000000.0) tmp = x; elseif (a <= -5.2e-144) tmp = t_1; elseif (a <= -1e-291) tmp = x / (t / z); elseif (a <= 3.6e+51) tmp = y; elseif (a <= 2.7e+149) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.45e+168], x, If[LessEqual[a, -6.8e+65], t$95$1, If[LessEqual[a, -15000000000000.0], x, If[LessEqual[a, -5.2e-144], t$95$1, If[LessEqual[a, -1e-291], N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.6e+51], y, If[LessEqual[a, 2.7e+149], t$95$1, x]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -1.45 \cdot 10^{+168}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -15000000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-144}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-291}:\\
\;\;\;\;\frac{x}{\frac{t}{z}}\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{+51}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+149}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.45e168 or -6.7999999999999999e65 < a < -1.5e13 or 2.7000000000000001e149 < a Initial program 68.2%
associate-*l/87.5%
Simplified87.5%
Taylor expanded in a around inf 60.5%
if -1.45e168 < a < -6.7999999999999999e65 or -1.5e13 < a < -5.2000000000000002e-144 or 3.60000000000000011e51 < a < 2.7000000000000001e149Initial program 75.9%
associate-*l/88.4%
Simplified88.4%
Taylor expanded in z around -inf 56.0%
associate-/l*60.9%
associate-/r/63.5%
Applied egg-rr63.5%
div-inv63.5%
*-commutative63.5%
Applied egg-rr63.5%
Taylor expanded in a around inf 51.1%
if -5.2000000000000002e-144 < a < -9.99999999999999962e-292Initial program 66.9%
associate-*l/70.3%
Simplified70.3%
Taylor expanded in z around -inf 64.2%
associate-/l*70.6%
associate-/r/72.5%
Applied egg-rr72.5%
Taylor expanded in a around 0 64.1%
associate-*r/64.1%
mul-1-neg64.1%
Simplified64.1%
Taylor expanded in y around 0 41.3%
associate-/l*56.0%
Simplified56.0%
if -9.99999999999999962e-292 < a < 3.60000000000000011e51Initial program 64.0%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in t around inf 54.0%
Final simplification55.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- y x) (/ z a))))
(if (<= a -3.65e+165)
x
(if (<= a -8e+65)
t_1
(if (<= a -100000000000.0)
x
(if (<= a -5.6e-144)
t_1
(if (<= a 1e-261)
(* (/ z t) (- x y))
(if (<= a 1.3e+51) y (if (<= a 2.1e+147) t_1 x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (z / a);
double tmp;
if (a <= -3.65e+165) {
tmp = x;
} else if (a <= -8e+65) {
tmp = t_1;
} else if (a <= -100000000000.0) {
tmp = x;
} else if (a <= -5.6e-144) {
tmp = t_1;
} else if (a <= 1e-261) {
tmp = (z / t) * (x - y);
} else if (a <= 1.3e+51) {
tmp = y;
} else if (a <= 2.1e+147) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (y - x) * (z / a)
if (a <= (-3.65d+165)) then
tmp = x
else if (a <= (-8d+65)) then
tmp = t_1
else if (a <= (-100000000000.0d0)) then
tmp = x
else if (a <= (-5.6d-144)) then
tmp = t_1
else if (a <= 1d-261) then
tmp = (z / t) * (x - y)
else if (a <= 1.3d+51) then
tmp = y
else if (a <= 2.1d+147) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (z / a);
double tmp;
if (a <= -3.65e+165) {
tmp = x;
} else if (a <= -8e+65) {
tmp = t_1;
} else if (a <= -100000000000.0) {
tmp = x;
} else if (a <= -5.6e-144) {
tmp = t_1;
} else if (a <= 1e-261) {
tmp = (z / t) * (x - y);
} else if (a <= 1.3e+51) {
tmp = y;
} else if (a <= 2.1e+147) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) * (z / a) tmp = 0 if a <= -3.65e+165: tmp = x elif a <= -8e+65: tmp = t_1 elif a <= -100000000000.0: tmp = x elif a <= -5.6e-144: tmp = t_1 elif a <= 1e-261: tmp = (z / t) * (x - y) elif a <= 1.3e+51: tmp = y elif a <= 2.1e+147: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) * Float64(z / a)) tmp = 0.0 if (a <= -3.65e+165) tmp = x; elseif (a <= -8e+65) tmp = t_1; elseif (a <= -100000000000.0) tmp = x; elseif (a <= -5.6e-144) tmp = t_1; elseif (a <= 1e-261) tmp = Float64(Float64(z / t) * Float64(x - y)); elseif (a <= 1.3e+51) tmp = y; elseif (a <= 2.1e+147) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - x) * (z / a); tmp = 0.0; if (a <= -3.65e+165) tmp = x; elseif (a <= -8e+65) tmp = t_1; elseif (a <= -100000000000.0) tmp = x; elseif (a <= -5.6e-144) tmp = t_1; elseif (a <= 1e-261) tmp = (z / t) * (x - y); elseif (a <= 1.3e+51) tmp = y; elseif (a <= 2.1e+147) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.65e+165], x, If[LessEqual[a, -8e+65], t$95$1, If[LessEqual[a, -100000000000.0], x, If[LessEqual[a, -5.6e-144], t$95$1, If[LessEqual[a, 1e-261], N[(N[(z / t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e+51], y, If[LessEqual[a, 2.1e+147], t$95$1, x]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -3.65 \cdot 10^{+165}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -8 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -100000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -5.6 \cdot 10^{-144}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 10^{-261}:\\
\;\;\;\;\frac{z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+51}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+147}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.6500000000000001e165 or -7.9999999999999999e65 < a < -1e11 or 2.10000000000000006e147 < a Initial program 68.2%
associate-*l/87.5%
Simplified87.5%
Taylor expanded in a around inf 60.5%
if -3.6500000000000001e165 < a < -7.9999999999999999e65 or -1e11 < a < -5.59999999999999995e-144 or 1.3000000000000001e51 < a < 2.10000000000000006e147Initial program 75.9%
associate-*l/88.4%
Simplified88.4%
Taylor expanded in z around -inf 56.0%
associate-/l*60.9%
associate-/r/63.5%
Applied egg-rr63.5%
div-inv63.5%
*-commutative63.5%
Applied egg-rr63.5%
Taylor expanded in a around inf 51.1%
if -5.59999999999999995e-144 < a < 9.99999999999999984e-262Initial program 67.8%
associate-*l/72.6%
Simplified72.6%
Taylor expanded in z around -inf 61.4%
associate-/l*66.5%
associate-/r/70.0%
Applied egg-rr70.0%
Taylor expanded in a around 0 63.4%
associate-*r/63.4%
mul-1-neg63.4%
Simplified63.4%
if 9.99999999999999984e-262 < a < 1.3000000000000001e51Initial program 62.8%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in t around inf 55.8%
Final simplification57.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (- x (/ x (/ a z)))))
(if (<= a -2e+214)
t_2
(if (<= a -3.45e+84)
t_1
(if (<= a -22000000000000.0)
t_2
(if (<= a -2.15e-291)
(* z (/ (- y x) (- a t)))
(if (<= a 7.6e+122) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x - (x / (a / z));
double tmp;
if (a <= -2e+214) {
tmp = t_2;
} else if (a <= -3.45e+84) {
tmp = t_1;
} else if (a <= -22000000000000.0) {
tmp = t_2;
} else if (a <= -2.15e-291) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 7.6e+122) {
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 = y * ((z - t) / (a - t))
t_2 = x - (x / (a / z))
if (a <= (-2d+214)) then
tmp = t_2
else if (a <= (-3.45d+84)) then
tmp = t_1
else if (a <= (-22000000000000.0d0)) then
tmp = t_2
else if (a <= (-2.15d-291)) then
tmp = z * ((y - x) / (a - t))
else if (a <= 7.6d+122) 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 = y * ((z - t) / (a - t));
double t_2 = x - (x / (a / z));
double tmp;
if (a <= -2e+214) {
tmp = t_2;
} else if (a <= -3.45e+84) {
tmp = t_1;
} else if (a <= -22000000000000.0) {
tmp = t_2;
} else if (a <= -2.15e-291) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 7.6e+122) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x - (x / (a / z)) tmp = 0 if a <= -2e+214: tmp = t_2 elif a <= -3.45e+84: tmp = t_1 elif a <= -22000000000000.0: tmp = t_2 elif a <= -2.15e-291: tmp = z * ((y - x) / (a - t)) elif a <= 7.6e+122: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x - Float64(x / Float64(a / z))) tmp = 0.0 if (a <= -2e+214) tmp = t_2; elseif (a <= -3.45e+84) tmp = t_1; elseif (a <= -22000000000000.0) tmp = t_2; elseif (a <= -2.15e-291) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 7.6e+122) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x - (x / (a / z)); tmp = 0.0; if (a <= -2e+214) tmp = t_2; elseif (a <= -3.45e+84) tmp = t_1; elseif (a <= -22000000000000.0) tmp = t_2; elseif (a <= -2.15e-291) tmp = z * ((y - x) / (a - t)); elseif (a <= 7.6e+122) tmp = t_1; else tmp = t_2; 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]}, Block[{t$95$2 = N[(x - N[(x / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2e+214], t$95$2, If[LessEqual[a, -3.45e+84], t$95$1, If[LessEqual[a, -22000000000000.0], t$95$2, If[LessEqual[a, -2.15e-291], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.6e+122], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x - \frac{x}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -2 \cdot 10^{+214}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.45 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -22000000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.15 \cdot 10^{-291}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.9999999999999999e214 or -3.4499999999999998e84 < a < -2.2e13 or 7.5999999999999996e122 < a Initial program 72.8%
associate-*l/88.0%
Simplified88.0%
clear-num88.0%
inv-pow88.0%
metadata-eval88.0%
sqr-pow44.9%
metadata-eval44.9%
metadata-eval44.9%
metadata-eval44.9%
metadata-eval44.9%
Applied egg-rr44.9%
pow-sqr88.0%
metadata-eval88.0%
unpow-188.0%
Simplified88.0%
Taylor expanded in y around 0 72.3%
associate-*r/72.3%
neg-mul-172.3%
Simplified72.3%
Taylor expanded in t around 0 57.6%
mul-1-neg57.6%
associate-/l*68.7%
Simplified68.7%
if -1.9999999999999999e214 < a < -3.4499999999999998e84 or -2.15000000000000018e-291 < a < 7.5999999999999996e122Initial program 65.4%
associate-*l/82.4%
Simplified82.4%
Taylor expanded in x around 0 49.4%
associate-*r/69.3%
Simplified69.3%
if -2.2e13 < a < -2.15000000000000018e-291Initial program 70.7%
associate-*l/73.8%
Simplified73.8%
Taylor expanded in z around inf 70.3%
div-sub70.3%
Simplified70.3%
Final simplification69.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (- x (/ x (/ a z)))))
(if (<= a -1.28e+213)
t_2
(if (<= a -1.1e+89)
t_1
(if (<= a -21000000000000.0)
t_2
(if (<= a -2.8e-291)
(* (- y x) (/ z (- a t)))
(if (<= a 5.6e+122) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x - (x / (a / z));
double tmp;
if (a <= -1.28e+213) {
tmp = t_2;
} else if (a <= -1.1e+89) {
tmp = t_1;
} else if (a <= -21000000000000.0) {
tmp = t_2;
} else if (a <= -2.8e-291) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 5.6e+122) {
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 = y * ((z - t) / (a - t))
t_2 = x - (x / (a / z))
if (a <= (-1.28d+213)) then
tmp = t_2
else if (a <= (-1.1d+89)) then
tmp = t_1
else if (a <= (-21000000000000.0d0)) then
tmp = t_2
else if (a <= (-2.8d-291)) then
tmp = (y - x) * (z / (a - t))
else if (a <= 5.6d+122) 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 = y * ((z - t) / (a - t));
double t_2 = x - (x / (a / z));
double tmp;
if (a <= -1.28e+213) {
tmp = t_2;
} else if (a <= -1.1e+89) {
tmp = t_1;
} else if (a <= -21000000000000.0) {
tmp = t_2;
} else if (a <= -2.8e-291) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 5.6e+122) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x - (x / (a / z)) tmp = 0 if a <= -1.28e+213: tmp = t_2 elif a <= -1.1e+89: tmp = t_1 elif a <= -21000000000000.0: tmp = t_2 elif a <= -2.8e-291: tmp = (y - x) * (z / (a - t)) elif a <= 5.6e+122: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x - Float64(x / Float64(a / z))) tmp = 0.0 if (a <= -1.28e+213) tmp = t_2; elseif (a <= -1.1e+89) tmp = t_1; elseif (a <= -21000000000000.0) tmp = t_2; elseif (a <= -2.8e-291) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 5.6e+122) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x - (x / (a / z)); tmp = 0.0; if (a <= -1.28e+213) tmp = t_2; elseif (a <= -1.1e+89) tmp = t_1; elseif (a <= -21000000000000.0) tmp = t_2; elseif (a <= -2.8e-291) tmp = (y - x) * (z / (a - t)); elseif (a <= 5.6e+122) tmp = t_1; else tmp = t_2; 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]}, Block[{t$95$2 = N[(x - N[(x / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.28e+213], t$95$2, If[LessEqual[a, -1.1e+89], t$95$1, If[LessEqual[a, -21000000000000.0], t$95$2, If[LessEqual[a, -2.8e-291], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.6e+122], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x - \frac{x}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -1.28 \cdot 10^{+213}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{+89}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -21000000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.8 \cdot 10^{-291}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.2799999999999999e213 or -1.1e89 < a < -2.1e13 or 5.5999999999999999e122 < a Initial program 72.8%
associate-*l/88.0%
Simplified88.0%
clear-num88.0%
inv-pow88.0%
metadata-eval88.0%
sqr-pow44.9%
metadata-eval44.9%
metadata-eval44.9%
metadata-eval44.9%
metadata-eval44.9%
Applied egg-rr44.9%
pow-sqr88.0%
metadata-eval88.0%
unpow-188.0%
Simplified88.0%
Taylor expanded in y around 0 72.3%
associate-*r/72.3%
neg-mul-172.3%
Simplified72.3%
Taylor expanded in t around 0 57.6%
mul-1-neg57.6%
associate-/l*68.7%
Simplified68.7%
if -1.2799999999999999e213 < a < -1.1e89 or -2.8e-291 < a < 5.5999999999999999e122Initial program 65.4%
associate-*l/82.4%
Simplified82.4%
Taylor expanded in x around 0 49.4%
associate-*r/69.3%
Simplified69.3%
if -2.1e13 < a < -2.8e-291Initial program 70.7%
associate-*l/73.8%
Simplified73.8%
Taylor expanded in z around -inf 67.4%
associate-/l*70.7%
associate-/r/73.0%
Applied egg-rr73.0%
Final simplification70.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.56e+157)
(* y (/ (- z t) (- a t)))
(if (<= t -8.5e+19)
(+ x (* (- z t) (/ y (- a t))))
(if (<= t 6.1e+26)
(+ x (/ (- y x) (/ (- a t) z)))
(+ y (/ (* (- y x) (- a z)) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.56e+157) {
tmp = y * ((z - t) / (a - t));
} else if (t <= -8.5e+19) {
tmp = x + ((z - t) * (y / (a - t)));
} else if (t <= 6.1e+26) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.56d+157)) then
tmp = y * ((z - t) / (a - t))
else if (t <= (-8.5d+19)) then
tmp = x + ((z - t) * (y / (a - t)))
else if (t <= 6.1d+26) then
tmp = x + ((y - x) / ((a - t) / z))
else
tmp = y + (((y - x) * (a - z)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.56e+157) {
tmp = y * ((z - t) / (a - t));
} else if (t <= -8.5e+19) {
tmp = x + ((z - t) * (y / (a - t)));
} else if (t <= 6.1e+26) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.56e+157: tmp = y * ((z - t) / (a - t)) elif t <= -8.5e+19: tmp = x + ((z - t) * (y / (a - t))) elif t <= 6.1e+26: tmp = x + ((y - x) / ((a - t) / z)) else: tmp = y + (((y - x) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.56e+157) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= -8.5e+19) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))); elseif (t <= 6.1e+26) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); else tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.56e+157) tmp = y * ((z - t) / (a - t)); elseif (t <= -8.5e+19) tmp = x + ((z - t) * (y / (a - t))); elseif (t <= 6.1e+26) tmp = x + ((y - x) / ((a - t) / z)); else tmp = y + (((y - x) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.56e+157], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.5e+19], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.1e+26], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.56 \cdot 10^{+157}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{+19}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 6.1 \cdot 10^{+26}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if t < -2.56000000000000002e157Initial program 20.5%
associate-*l/54.5%
Simplified54.5%
Taylor expanded in x around 0 37.1%
associate-*r/74.0%
Simplified74.0%
if -2.56000000000000002e157 < t < -8.5e19Initial program 65.3%
associate-*l/89.4%
Simplified89.4%
Taylor expanded in y around inf 81.1%
if -8.5e19 < t < 6.1000000000000003e26Initial program 89.9%
associate-*l/93.1%
Simplified93.1%
associate-/r/97.6%
Applied egg-rr97.6%
Taylor expanded in z around inf 86.4%
if 6.1000000000000003e26 < t Initial program 49.4%
associate-*l/67.4%
Simplified67.4%
associate-/r/73.2%
Applied egg-rr73.2%
Taylor expanded in t around -inf 63.8%
mul-1-neg63.8%
distribute-rgt-out--67.0%
Simplified67.0%
Final simplification79.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ y (- a t)))))
(if (<= a -3.5e+165)
x
(if (<= a -6e+115)
t_1
(if (<= a -1500000000000.0)
x
(if (<= a -3.8e-154)
t_1
(if (<= a -1.12e-291) (/ x (/ t z)) (if (<= a 2.2e+75) y x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * (y / (a - t));
double tmp;
if (a <= -3.5e+165) {
tmp = x;
} else if (a <= -6e+115) {
tmp = t_1;
} else if (a <= -1500000000000.0) {
tmp = x;
} else if (a <= -3.8e-154) {
tmp = t_1;
} else if (a <= -1.12e-291) {
tmp = x / (t / z);
} else if (a <= 2.2e+75) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = z * (y / (a - t))
if (a <= (-3.5d+165)) then
tmp = x
else if (a <= (-6d+115)) then
tmp = t_1
else if (a <= (-1500000000000.0d0)) then
tmp = x
else if (a <= (-3.8d-154)) then
tmp = t_1
else if (a <= (-1.12d-291)) then
tmp = x / (t / z)
else if (a <= 2.2d+75) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = z * (y / (a - t));
double tmp;
if (a <= -3.5e+165) {
tmp = x;
} else if (a <= -6e+115) {
tmp = t_1;
} else if (a <= -1500000000000.0) {
tmp = x;
} else if (a <= -3.8e-154) {
tmp = t_1;
} else if (a <= -1.12e-291) {
tmp = x / (t / z);
} else if (a <= 2.2e+75) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * (y / (a - t)) tmp = 0 if a <= -3.5e+165: tmp = x elif a <= -6e+115: tmp = t_1 elif a <= -1500000000000.0: tmp = x elif a <= -3.8e-154: tmp = t_1 elif a <= -1.12e-291: tmp = x / (t / z) elif a <= 2.2e+75: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(y / Float64(a - t))) tmp = 0.0 if (a <= -3.5e+165) tmp = x; elseif (a <= -6e+115) tmp = t_1; elseif (a <= -1500000000000.0) tmp = x; elseif (a <= -3.8e-154) tmp = t_1; elseif (a <= -1.12e-291) tmp = Float64(x / Float64(t / z)); elseif (a <= 2.2e+75) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * (y / (a - t)); tmp = 0.0; if (a <= -3.5e+165) tmp = x; elseif (a <= -6e+115) tmp = t_1; elseif (a <= -1500000000000.0) tmp = x; elseif (a <= -3.8e-154) tmp = t_1; elseif (a <= -1.12e-291) tmp = x / (t / z); elseif (a <= 2.2e+75) tmp = y; else tmp = x; 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]}, If[LessEqual[a, -3.5e+165], x, If[LessEqual[a, -6e+115], t$95$1, If[LessEqual[a, -1500000000000.0], x, If[LessEqual[a, -3.8e-154], t$95$1, If[LessEqual[a, -1.12e-291], N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e+75], y, x]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y}{a - t}\\
\mathbf{if}\;a \leq -3.5 \cdot 10^{+165}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -6 \cdot 10^{+115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1500000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.12 \cdot 10^{-291}:\\
\;\;\;\;\frac{x}{\frac{t}{z}}\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.49999999999999996e165 or -6.0000000000000001e115 < a < -1.5e12 or 2.20000000000000012e75 < a Initial program 70.5%
associate-*l/89.6%
Simplified89.6%
Taylor expanded in a around inf 54.0%
if -3.49999999999999996e165 < a < -6.0000000000000001e115 or -1.5e12 < a < -3.8000000000000001e-154Initial program 72.1%
associate-*l/82.0%
Simplified82.0%
Taylor expanded in z around -inf 61.3%
Taylor expanded in y around inf 33.8%
associate-/l*41.5%
associate-/r/39.6%
Simplified39.6%
if -3.8000000000000001e-154 < a < -1.1200000000000001e-291Initial program 70.8%
associate-*l/71.5%
Simplified71.5%
Taylor expanded in z around -inf 67.7%
associate-/l*74.5%
associate-/r/76.5%
Applied egg-rr76.5%
Taylor expanded in a around 0 67.5%
associate-*r/67.5%
mul-1-neg67.5%
Simplified67.5%
Taylor expanded in y around 0 43.6%
associate-/l*59.1%
Simplified59.1%
if -1.1200000000000001e-291 < a < 2.20000000000000012e75Initial program 64.6%
associate-*l/75.9%
Simplified75.9%
Taylor expanded in t around inf 51.3%
Final simplification51.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ z (/ a (- y x))))))
(if (<= a -2100000000.0)
t_1
(if (<= a -7e-292)
(* (- y x) (/ z (- a t)))
(if (<= a 7.2e+56) (* 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 / (y - x)));
double tmp;
if (a <= -2100000000.0) {
tmp = t_1;
} else if (a <= -7e-292) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 7.2e+56) {
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 / (y - x)))
if (a <= (-2100000000.0d0)) then
tmp = t_1
else if (a <= (-7d-292)) then
tmp = (y - x) * (z / (a - t))
else if (a <= 7.2d+56) 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 / (y - x)));
double tmp;
if (a <= -2100000000.0) {
tmp = t_1;
} else if (a <= -7e-292) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 7.2e+56) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (z / (a / (y - x))) tmp = 0 if a <= -2100000000.0: tmp = t_1 elif a <= -7e-292: tmp = (y - x) * (z / (a - t)) elif a <= 7.2e+56: tmp = y * ((z - t) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(z / Float64(a / Float64(y - x)))) tmp = 0.0 if (a <= -2100000000.0) tmp = t_1; elseif (a <= -7e-292) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 7.2e+56) 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 / (y - x))); tmp = 0.0; if (a <= -2100000000.0) tmp = t_1; elseif (a <= -7e-292) tmp = (y - x) * (z / (a - t)); elseif (a <= 7.2e+56) 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[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2100000000.0], t$95$1, If[LessEqual[a, -7e-292], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+56], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{if}\;a \leq -2100000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-292}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+56}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.1e9 or 7.19999999999999996e56 < a Initial program 71.3%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in t around 0 59.3%
associate-/l*70.2%
Simplified70.2%
if -2.1e9 < a < -6.9999999999999999e-292Initial program 70.7%
associate-*l/73.8%
Simplified73.8%
Taylor expanded in z around -inf 67.4%
associate-/l*70.7%
associate-/r/73.0%
Applied egg-rr73.0%
if -6.9999999999999999e-292 < a < 7.19999999999999996e56Initial program 64.0%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in x around 0 52.6%
associate-*r/68.8%
Simplified68.8%
Final simplification70.6%
(FPCore (x y z t a)
:precision binary64
(if (<= a -20000000000000.0)
(+ x (/ z (/ a (- y x))))
(if (<= a -2e-291)
(* (- y x) (/ z (- a t)))
(if (<= a 2.9e+66) (* y (/ (- z t) (- a t))) (+ x (/ (- y x) (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -20000000000000.0) {
tmp = x + (z / (a / (y - x)));
} else if (a <= -2e-291) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 2.9e+66) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-20000000000000.0d0)) then
tmp = x + (z / (a / (y - x)))
else if (a <= (-2d-291)) then
tmp = (y - x) * (z / (a - t))
else if (a <= 2.9d+66) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + ((y - x) / (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -20000000000000.0) {
tmp = x + (z / (a / (y - x)));
} else if (a <= -2e-291) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 2.9e+66) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -20000000000000.0: tmp = x + (z / (a / (y - x))) elif a <= -2e-291: tmp = (y - x) * (z / (a - t)) elif a <= 2.9e+66: tmp = y * ((z - t) / (a - t)) else: tmp = x + ((y - x) / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -20000000000000.0) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); elseif (a <= -2e-291) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 2.9e+66) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -20000000000000.0) tmp = x + (z / (a / (y - x))); elseif (a <= -2e-291) tmp = (y - x) * (z / (a - t)); elseif (a <= 2.9e+66) tmp = y * ((z - t) / (a - t)); else tmp = x + ((y - x) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -20000000000000.0], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2e-291], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+66], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -20000000000000:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-291}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+66}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -2e13Initial program 68.8%
associate-*l/91.5%
Simplified91.5%
Taylor expanded in t around 0 56.8%
associate-/l*67.6%
Simplified67.6%
if -2e13 < a < -1.99999999999999992e-291Initial program 70.7%
associate-*l/73.8%
Simplified73.8%
Taylor expanded in z around -inf 67.4%
associate-/l*70.7%
associate-/r/73.0%
Applied egg-rr73.0%
if -1.99999999999999992e-291 < a < 2.89999999999999986e66Initial program 64.4%
associate-*l/74.9%
Simplified74.9%
Taylor expanded in x around 0 53.2%
associate-*r/69.3%
Simplified69.3%
if 2.89999999999999986e66 < a Initial program 73.7%
associate-*l/90.2%
Simplified90.2%
associate-/r/97.3%
Applied egg-rr97.3%
Taylor expanded in t around 0 76.4%
Final simplification71.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -2.2e+102) (not (<= x 1.1e+131))) (* x (+ 1.0 (/ (- z t) (- t a)))) (+ x (* (- z t) (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -2.2e+102) || !(x <= 1.1e+131)) {
tmp = x * (1.0 + ((z - t) / (t - a)));
} else {
tmp = x + ((z - t) * (y / (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 ((x <= (-2.2d+102)) .or. (.not. (x <= 1.1d+131))) then
tmp = x * (1.0d0 + ((z - t) / (t - a)))
else
tmp = x + ((z - t) * (y / (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 ((x <= -2.2e+102) || !(x <= 1.1e+131)) {
tmp = x * (1.0 + ((z - t) / (t - a)));
} else {
tmp = x + ((z - t) * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -2.2e+102) or not (x <= 1.1e+131): tmp = x * (1.0 + ((z - t) / (t - a))) else: tmp = x + ((z - t) * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -2.2e+102) || !(x <= 1.1e+131)) tmp = Float64(x * Float64(1.0 + Float64(Float64(z - t) / Float64(t - a)))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -2.2e+102) || ~((x <= 1.1e+131))) tmp = x * (1.0 + ((z - t) / (t - a))); else tmp = x + ((z - t) * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -2.2e+102], N[Not[LessEqual[x, 1.1e+131]], $MachinePrecision]], N[(x * N[(1.0 + N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+102} \lor \neg \left(x \leq 1.1 \cdot 10^{+131}\right):\\
\;\;\;\;x \cdot \left(1 + \frac{z - t}{t - a}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if x < -2.20000000000000007e102 or 1.0999999999999999e131 < x Initial program 55.7%
associate-*l/73.3%
Simplified73.3%
clear-num73.5%
inv-pow73.5%
metadata-eval73.5%
sqr-pow33.5%
metadata-eval33.5%
metadata-eval33.5%
metadata-eval33.5%
metadata-eval33.5%
Applied egg-rr33.5%
pow-sqr73.5%
metadata-eval73.5%
unpow-173.5%
Simplified73.5%
Taylor expanded in y around 0 66.7%
associate-*r/66.7%
neg-mul-166.7%
Simplified66.7%
Taylor expanded in x around 0 71.1%
associate--l+71.1%
div-sub71.1%
Simplified71.1%
if -2.20000000000000007e102 < x < 1.0999999999999999e131Initial program 74.4%
associate-*l/85.2%
Simplified85.2%
Taylor expanded in y around inf 77.3%
Final simplification75.5%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.55e+105)
(* x (+ 1.0 (/ (- z t) (- t a))))
(if (<= x 1250000.0)
(+ x (* (- z t) (/ y (- a t))))
(+ x (/ (- y x) (/ (- a t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.55e+105) {
tmp = x * (1.0 + ((z - t) / (t - a)));
} else if (x <= 1250000.0) {
tmp = x + ((z - t) * (y / (a - t)));
} else {
tmp = x + ((y - x) / ((a - t) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-1.55d+105)) then
tmp = x * (1.0d0 + ((z - t) / (t - a)))
else if (x <= 1250000.0d0) then
tmp = x + ((z - t) * (y / (a - t)))
else
tmp = x + ((y - x) / ((a - t) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.55e+105) {
tmp = x * (1.0 + ((z - t) / (t - a)));
} else if (x <= 1250000.0) {
tmp = x + ((z - t) * (y / (a - t)));
} else {
tmp = x + ((y - x) / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.55e+105: tmp = x * (1.0 + ((z - t) / (t - a))) elif x <= 1250000.0: tmp = x + ((z - t) * (y / (a - t))) else: tmp = x + ((y - x) / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.55e+105) tmp = Float64(x * Float64(1.0 + Float64(Float64(z - t) / Float64(t - a)))); elseif (x <= 1250000.0) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.55e+105) tmp = x * (1.0 + ((z - t) / (t - a))); elseif (x <= 1250000.0) tmp = x + ((z - t) * (y / (a - t))); else tmp = x + ((y - x) / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.55e+105], N[(x * N[(1.0 + N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1250000.0], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.55 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \left(1 + \frac{z - t}{t - a}\right)\\
\mathbf{elif}\;x \leq 1250000:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if x < -1.55000000000000002e105Initial program 50.5%
associate-*l/69.0%
Simplified69.0%
clear-num69.3%
inv-pow69.3%
metadata-eval69.3%
sqr-pow24.2%
metadata-eval24.2%
metadata-eval24.2%
metadata-eval24.2%
metadata-eval24.2%
Applied egg-rr24.2%
pow-sqr69.3%
metadata-eval69.3%
unpow-169.3%
Simplified69.3%
Taylor expanded in y around 0 66.6%
associate-*r/66.6%
neg-mul-166.6%
Simplified66.6%
Taylor expanded in x around 0 72.9%
associate--l+72.9%
div-sub72.9%
Simplified72.9%
if -1.55000000000000002e105 < x < 1.25e6Initial program 76.0%
associate-*l/86.9%
Simplified86.9%
Taylor expanded in y around inf 81.0%
if 1.25e6 < x Initial program 64.6%
associate-*l/78.2%
Simplified78.2%
associate-/r/80.8%
Applied egg-rr80.8%
Taylor expanded in z around inf 69.2%
Final simplification76.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -5.3e+165)
x
(if (<= a -1.12e+116)
(* z (/ y a))
(if (<= a -5.5e-16)
x
(if (<= a -2.15e-291) (/ x (/ t z)) (if (<= a 7e+75) y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.3e+165) {
tmp = x;
} else if (a <= -1.12e+116) {
tmp = z * (y / a);
} else if (a <= -5.5e-16) {
tmp = x;
} else if (a <= -2.15e-291) {
tmp = x / (t / z);
} else if (a <= 7e+75) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-5.3d+165)) then
tmp = x
else if (a <= (-1.12d+116)) then
tmp = z * (y / a)
else if (a <= (-5.5d-16)) then
tmp = x
else if (a <= (-2.15d-291)) then
tmp = x / (t / z)
else if (a <= 7d+75) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.3e+165) {
tmp = x;
} else if (a <= -1.12e+116) {
tmp = z * (y / a);
} else if (a <= -5.5e-16) {
tmp = x;
} else if (a <= -2.15e-291) {
tmp = x / (t / z);
} else if (a <= 7e+75) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5.3e+165: tmp = x elif a <= -1.12e+116: tmp = z * (y / a) elif a <= -5.5e-16: tmp = x elif a <= -2.15e-291: tmp = x / (t / z) elif a <= 7e+75: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.3e+165) tmp = x; elseif (a <= -1.12e+116) tmp = Float64(z * Float64(y / a)); elseif (a <= -5.5e-16) tmp = x; elseif (a <= -2.15e-291) tmp = Float64(x / Float64(t / z)); elseif (a <= 7e+75) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5.3e+165) tmp = x; elseif (a <= -1.12e+116) tmp = z * (y / a); elseif (a <= -5.5e-16) tmp = x; elseif (a <= -2.15e-291) tmp = x / (t / z); elseif (a <= 7e+75) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.3e+165], x, If[LessEqual[a, -1.12e+116], N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.5e-16], x, If[LessEqual[a, -2.15e-291], N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+75], y, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.3 \cdot 10^{+165}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.12 \cdot 10^{+116}:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-16}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.15 \cdot 10^{-291}:\\
\;\;\;\;\frac{x}{\frac{t}{z}}\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -5.3000000000000001e165 or -1.12e116 < a < -5.49999999999999964e-16 or 6.9999999999999997e75 < a Initial program 70.1%
associate-*l/89.8%
Simplified89.8%
Taylor expanded in a around inf 53.0%
if -5.3000000000000001e165 < a < -1.12e116Initial program 76.3%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in z around -inf 43.7%
Taylor expanded in y around inf 35.7%
associate-/l*50.9%
associate-/r/51.4%
Simplified51.4%
Taylor expanded in a around inf 51.2%
if -5.49999999999999964e-16 < a < -2.15000000000000018e-291Initial program 71.2%
associate-*l/73.1%
Simplified73.1%
Taylor expanded in z around -inf 67.8%
associate-/l*71.2%
associate-/r/73.6%
Applied egg-rr73.6%
Taylor expanded in a around 0 52.5%
associate-*r/52.5%
mul-1-neg52.5%
Simplified52.5%
Taylor expanded in y around 0 34.6%
associate-/l*42.3%
Simplified42.3%
if -2.15000000000000018e-291 < a < 6.9999999999999997e75Initial program 64.6%
associate-*l/75.9%
Simplified75.9%
Taylor expanded in t around inf 51.3%
Final simplification49.6%
(FPCore (x y z t a) :precision binary64 (+ x (* (- z t) (/ (- y x) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + ((z - t) * ((y - x) / (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 + ((z - t) * ((y - x) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((z - t) * ((y - x) / (a - t)));
}
def code(x, y, z, t, a): return x + ((z - t) * ((y - x) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((z - t) * ((y - x) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(z - t\right) \cdot \frac{y - x}{a - t}
\end{array}
Initial program 69.1%
associate-*l/81.9%
Simplified81.9%
Final simplification81.9%
(FPCore (x y z t a) :precision binary64 (if (<= t -6.9e+99) y (if (<= t 4.2e+89) (- x (/ x (/ a z))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.9e+99) {
tmp = y;
} else if (t <= 4.2e+89) {
tmp = x - (x / (a / z));
} 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 <= (-6.9d+99)) then
tmp = y
else if (t <= 4.2d+89) then
tmp = x - (x / (a / z))
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 <= -6.9e+99) {
tmp = y;
} else if (t <= 4.2e+89) {
tmp = x - (x / (a / z));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.9e+99: tmp = y elif t <= 4.2e+89: tmp = x - (x / (a / z)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.9e+99) tmp = y; elseif (t <= 4.2e+89) tmp = Float64(x - Float64(x / Float64(a / z))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.9e+99) tmp = y; elseif (t <= 4.2e+89) tmp = x - (x / (a / z)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.9e+99], y, If[LessEqual[t, 4.2e+89], N[(x - N[(x / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.9 \cdot 10^{+99}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+89}:\\
\;\;\;\;x - \frac{x}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6.9000000000000001e99 or 4.19999999999999972e89 < t Initial program 36.5%
associate-*l/63.6%
Simplified63.6%
Taylor expanded in t around inf 57.2%
if -6.9000000000000001e99 < t < 4.19999999999999972e89Initial program 86.8%
associate-*l/91.8%
Simplified91.8%
clear-num91.7%
inv-pow91.7%
metadata-eval91.7%
sqr-pow41.9%
metadata-eval41.9%
metadata-eval41.9%
metadata-eval41.9%
metadata-eval41.9%
Applied egg-rr41.9%
pow-sqr91.7%
metadata-eval91.7%
unpow-191.7%
Simplified91.7%
Taylor expanded in y around 0 56.1%
associate-*r/56.1%
neg-mul-156.1%
Simplified56.1%
Taylor expanded in t around 0 43.7%
mul-1-neg43.7%
associate-/l*50.7%
Simplified50.7%
Final simplification53.0%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.32e+168)
x
(if (<= a -7e+115)
(* z (/ y a))
(if (<= a -100000000000.0) x (if (<= a 2.7e+77) y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.32e+168) {
tmp = x;
} else if (a <= -7e+115) {
tmp = z * (y / a);
} else if (a <= -100000000000.0) {
tmp = x;
} else if (a <= 2.7e+77) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.32d+168)) then
tmp = x
else if (a <= (-7d+115)) then
tmp = z * (y / a)
else if (a <= (-100000000000.0d0)) then
tmp = x
else if (a <= 2.7d+77) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.32e+168) {
tmp = x;
} else if (a <= -7e+115) {
tmp = z * (y / a);
} else if (a <= -100000000000.0) {
tmp = x;
} else if (a <= 2.7e+77) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.32e+168: tmp = x elif a <= -7e+115: tmp = z * (y / a) elif a <= -100000000000.0: tmp = x elif a <= 2.7e+77: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.32e+168) tmp = x; elseif (a <= -7e+115) tmp = Float64(z * Float64(y / a)); elseif (a <= -100000000000.0) tmp = x; elseif (a <= 2.7e+77) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.32e+168) tmp = x; elseif (a <= -7e+115) tmp = z * (y / a); elseif (a <= -100000000000.0) tmp = x; elseif (a <= 2.7e+77) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.32e+168], x, If[LessEqual[a, -7e+115], N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -100000000000.0], x, If[LessEqual[a, 2.7e+77], y, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.32 \cdot 10^{+168}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -7 \cdot 10^{+115}:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -100000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+77}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.32000000000000007e168 or -7.00000000000000011e115 < a < -1e11 or 2.6999999999999998e77 < a Initial program 70.5%
associate-*l/89.6%
Simplified89.6%
Taylor expanded in a around inf 54.0%
if -1.32000000000000007e168 < a < -7.00000000000000011e115Initial program 76.3%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in z around -inf 43.7%
Taylor expanded in y around inf 35.7%
associate-/l*50.9%
associate-/r/51.4%
Simplified51.4%
Taylor expanded in a around inf 51.2%
if -1e11 < a < 2.6999999999999998e77Initial program 67.6%
associate-*l/74.9%
Simplified74.9%
Taylor expanded in t around inf 37.8%
Final simplification44.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -50000000000.0) x (if (<= a 6e+75) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -50000000000.0) {
tmp = x;
} else if (a <= 6e+75) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-50000000000.0d0)) then
tmp = x
else if (a <= 6d+75) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -50000000000.0) {
tmp = x;
} else if (a <= 6e+75) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -50000000000.0: tmp = x elif a <= 6e+75: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -50000000000.0) tmp = x; elseif (a <= 6e+75) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -50000000000.0) tmp = x; elseif (a <= 6e+75) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -50000000000.0], x, If[LessEqual[a, 6e+75], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -50000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -5e10 or 6e75 < a Initial program 71.1%
associate-*l/90.7%
Simplified90.7%
Taylor expanded in a around inf 49.5%
if -5e10 < a < 6e75Initial program 67.6%
associate-*l/74.9%
Simplified74.9%
Taylor expanded in t around inf 37.8%
Final simplification43.0%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
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 = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 69.1%
associate-*l/81.9%
Simplified81.9%
clear-num81.8%
inv-pow81.8%
metadata-eval81.8%
sqr-pow38.6%
metadata-eval38.6%
metadata-eval38.6%
metadata-eval38.6%
metadata-eval38.6%
Applied egg-rr38.6%
pow-sqr81.8%
metadata-eval81.8%
unpow-181.8%
Simplified81.8%
Taylor expanded in y around 0 42.1%
associate-*r/42.1%
neg-mul-142.1%
Simplified42.1%
Taylor expanded in t around inf 2.8%
distribute-rgt1-in2.8%
metadata-eval2.8%
div02.8%
associate-/r/2.7%
div02.8%
Simplified2.8%
Final simplification2.8%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 69.1%
associate-*l/81.9%
Simplified81.9%
Taylor expanded in a around inf 25.1%
Final simplification25.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 2023297
(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))))