
(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 23 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 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -4e-208)
(+ x (* (- y x) (/ (- z t) (- a t))))
(if (<= t_1 0.0)
(+ y (/ (* (- y x) (- a z)) t))
(+ x (/ (- y x) (/ (- a t) (- 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 <= -4e-208) {
tmp = x + ((y - x) * ((z - t) / (a - t)));
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / 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) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if (t_1 <= (-4d-208)) then
tmp = x + ((y - x) * ((z - t) / (a - t)))
else if (t_1 <= 0.0d0) then
tmp = y + (((y - x) * (a - z)) / 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 t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -4e-208) {
tmp = x + ((y - x) * ((z - t) / (a - t)));
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + ((y - x) / ((a - t) / (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 <= -4e-208: tmp = x + ((y - x) * ((z - t) / (a - t))) elif t_1 <= 0.0: tmp = y + (((y - x) * (a - z)) / t) else: tmp = x + ((y - x) / ((a - t) / (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 <= -4e-208) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / Float64(a - t)))); elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / 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) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_1 <= -4e-208) tmp = x + ((y - x) * ((z - t) / (a - t))); elseif (t_1 <= 0.0) tmp = y + (((y - x) * (a - z)) / t); else tmp = x + ((y - x) / ((a - t) / (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[LessEqual[t$95$1, -4e-208], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $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}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{-208}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.0000000000000004e-208Initial program 75.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6489.0%
Applied egg-rr89.0%
if -4.0000000000000004e-208 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.5%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Simplified99.9%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 70.0%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6491.4%
Applied egg-rr91.4%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y x) (/ (- z t) (- a t)))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 -4e-208)
t_1
(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 + ((y - x) * ((z - t) / (a - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -4e-208) {
tmp = t_1;
} 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 + ((y - x) * ((z - t) / (a - t)))
t_2 = x + (((y - x) * (z - t)) / (a - t))
if (t_2 <= (-4d-208)) then
tmp = t_1
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 + ((y - x) * ((z - t) / (a - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -4e-208) {
tmp = t_1;
} 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 + ((y - x) * ((z - t) / (a - t))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -4e-208: tmp = t_1 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(y - x) * Float64(Float64(z - t) / Float64(a - t)))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -4e-208) tmp = t_1; 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 + ((y - x) * ((z - t) / (a - t))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -4e-208) tmp = t_1; 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[(y - x), $MachinePrecision] * N[(N[(z - t), $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, -4e-208], t$95$1, 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(y - x\right) \cdot \frac{z - t}{a - t}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -4 \cdot 10^{-208}:\\
\;\;\;\;t\_1\\
\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))) < -4.0000000000000004e-208 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 72.5%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6490.3%
Applied egg-rr90.3%
if -4.0000000000000004e-208 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.5%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Simplified99.9%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3e+59)
y
(if (<= t -3.75e-165)
(/ y (/ (- a t) z))
(if (<= t -7.4e-295)
x
(if (<= t 9.2e-165)
(/ y (/ a (- z t)))
(if (<= t 1.15e-22) x (if (<= t 2.2e+231) (/ (* y t) (- t a)) y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3e+59) {
tmp = y;
} else if (t <= -3.75e-165) {
tmp = y / ((a - t) / z);
} else if (t <= -7.4e-295) {
tmp = x;
} else if (t <= 9.2e-165) {
tmp = y / (a / (z - t));
} else if (t <= 1.15e-22) {
tmp = x;
} else if (t <= 2.2e+231) {
tmp = (y * t) / (t - a);
} 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 <= (-3d+59)) then
tmp = y
else if (t <= (-3.75d-165)) then
tmp = y / ((a - t) / z)
else if (t <= (-7.4d-295)) then
tmp = x
else if (t <= 9.2d-165) then
tmp = y / (a / (z - t))
else if (t <= 1.15d-22) then
tmp = x
else if (t <= 2.2d+231) then
tmp = (y * t) / (t - a)
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 <= -3e+59) {
tmp = y;
} else if (t <= -3.75e-165) {
tmp = y / ((a - t) / z);
} else if (t <= -7.4e-295) {
tmp = x;
} else if (t <= 9.2e-165) {
tmp = y / (a / (z - t));
} else if (t <= 1.15e-22) {
tmp = x;
} else if (t <= 2.2e+231) {
tmp = (y * t) / (t - a);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3e+59: tmp = y elif t <= -3.75e-165: tmp = y / ((a - t) / z) elif t <= -7.4e-295: tmp = x elif t <= 9.2e-165: tmp = y / (a / (z - t)) elif t <= 1.15e-22: tmp = x elif t <= 2.2e+231: tmp = (y * t) / (t - a) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3e+59) tmp = y; elseif (t <= -3.75e-165) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (t <= -7.4e-295) tmp = x; elseif (t <= 9.2e-165) tmp = Float64(y / Float64(a / Float64(z - t))); elseif (t <= 1.15e-22) tmp = x; elseif (t <= 2.2e+231) tmp = Float64(Float64(y * t) / Float64(t - a)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3e+59) tmp = y; elseif (t <= -3.75e-165) tmp = y / ((a - t) / z); elseif (t <= -7.4e-295) tmp = x; elseif (t <= 9.2e-165) tmp = y / (a / (z - t)); elseif (t <= 1.15e-22) tmp = x; elseif (t <= 2.2e+231) tmp = (y * t) / (t - a); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3e+59], y, If[LessEqual[t, -3.75e-165], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.4e-295], x, If[LessEqual[t, 9.2e-165], N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-22], x, If[LessEqual[t, 2.2e+231], N[(N[(y * t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision], y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{+59}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -3.75 \cdot 10^{-165}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq -7.4 \cdot 10^{-295}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-165}:\\
\;\;\;\;\frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-22}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+231}:\\
\;\;\;\;\frac{y \cdot t}{t - a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3e59 or 2.19999999999999992e231 < t Initial program 36.6%
Taylor expanded in t around inf
Simplified56.6%
if -3e59 < t < -3.7500000000000001e-165Initial program 81.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.2%
Simplified51.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Applied egg-rr56.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6446.9%
Simplified46.9%
if -3.7500000000000001e-165 < t < -7.3999999999999999e-295 or 9.2000000000000002e-165 < t < 1.1499999999999999e-22Initial program 87.2%
Taylor expanded in a around inf
Simplified54.6%
if -7.3999999999999999e-295 < t < 9.2000000000000002e-165Initial program 87.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6458.1%
Simplified58.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.6%
Applied egg-rr70.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6470.6%
Simplified70.6%
if 1.1499999999999999e-22 < t < 2.19999999999999992e231Initial program 59.8%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6445.0%
Simplified45.0%
Taylor expanded in z around 0
mul-1-negN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
--lowering--.f6438.8%
Simplified38.8%
Taylor expanded in a around 0
mul-1-negN/A
sub-negN/A
--lowering--.f6438.8%
Simplified38.8%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.8e+66)
y
(if (<= t -5.5e-165)
(/ y (/ (- a t) z))
(if (<= t -2.25e-297)
x
(if (<= t 4e-166)
(/ y (/ a (- z t)))
(if (<= t 1.5e-24) x (* t (/ y (- t a)))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+66) {
tmp = y;
} else if (t <= -5.5e-165) {
tmp = y / ((a - t) / z);
} else if (t <= -2.25e-297) {
tmp = x;
} else if (t <= 4e-166) {
tmp = y / (a / (z - t));
} else if (t <= 1.5e-24) {
tmp = x;
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.8d+66)) then
tmp = y
else if (t <= (-5.5d-165)) then
tmp = y / ((a - t) / z)
else if (t <= (-2.25d-297)) then
tmp = x
else if (t <= 4d-166) then
tmp = y / (a / (z - t))
else if (t <= 1.5d-24) then
tmp = x
else
tmp = t * (y / (t - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+66) {
tmp = y;
} else if (t <= -5.5e-165) {
tmp = y / ((a - t) / z);
} else if (t <= -2.25e-297) {
tmp = x;
} else if (t <= 4e-166) {
tmp = y / (a / (z - t));
} else if (t <= 1.5e-24) {
tmp = x;
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.8e+66: tmp = y elif t <= -5.5e-165: tmp = y / ((a - t) / z) elif t <= -2.25e-297: tmp = x elif t <= 4e-166: tmp = y / (a / (z - t)) elif t <= 1.5e-24: tmp = x else: tmp = t * (y / (t - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.8e+66) tmp = y; elseif (t <= -5.5e-165) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (t <= -2.25e-297) tmp = x; elseif (t <= 4e-166) tmp = Float64(y / Float64(a / Float64(z - t))); elseif (t <= 1.5e-24) tmp = x; else tmp = Float64(t * Float64(y / Float64(t - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.8e+66) tmp = y; elseif (t <= -5.5e-165) tmp = y / ((a - t) / z); elseif (t <= -2.25e-297) tmp = x; elseif (t <= 4e-166) tmp = y / (a / (z - t)); elseif (t <= 1.5e-24) tmp = x; else tmp = t * (y / (t - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.8e+66], y, If[LessEqual[t, -5.5e-165], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.25e-297], x, If[LessEqual[t, 4e-166], N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e-24], x, N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+66}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{-165}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq -2.25 \cdot 10^{-297}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-166}:\\
\;\;\;\;\frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-24}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{t - a}\\
\end{array}
\end{array}
if t < -2.8000000000000001e66Initial program 43.5%
Taylor expanded in t around inf
Simplified53.1%
if -2.8000000000000001e66 < t < -5.49999999999999969e-165Initial program 81.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.2%
Simplified51.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Applied egg-rr56.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6446.9%
Simplified46.9%
if -5.49999999999999969e-165 < t < -2.24999999999999988e-297 or 4.00000000000000016e-166 < t < 1.49999999999999998e-24Initial program 87.2%
Taylor expanded in a around inf
Simplified54.6%
if -2.24999999999999988e-297 < t < 4.00000000000000016e-166Initial program 87.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6458.1%
Simplified58.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.6%
Applied egg-rr70.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6470.6%
Simplified70.6%
if 1.49999999999999998e-24 < t Initial program 51.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.3%
Simplified41.3%
Taylor expanded in z around 0
mul-1-negN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
--lowering--.f6435.1%
Simplified35.1%
distribute-frac-neg2N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6442.5%
Applied egg-rr42.5%
Final simplification50.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.2e+59)
y
(if (<= t -2e-165)
(/ y (/ (- a t) z))
(if (<= t -1.7e-294)
x
(if (<= t 6.7e-166) (/ y (/ a (- z t))) (if (<= t 1.45e-22) x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.2e+59) {
tmp = y;
} else if (t <= -2e-165) {
tmp = y / ((a - t) / z);
} else if (t <= -1.7e-294) {
tmp = x;
} else if (t <= 6.7e-166) {
tmp = y / (a / (z - t));
} else if (t <= 1.45e-22) {
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 <= (-4.2d+59)) then
tmp = y
else if (t <= (-2d-165)) then
tmp = y / ((a - t) / z)
else if (t <= (-1.7d-294)) then
tmp = x
else if (t <= 6.7d-166) then
tmp = y / (a / (z - t))
else if (t <= 1.45d-22) 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 <= -4.2e+59) {
tmp = y;
} else if (t <= -2e-165) {
tmp = y / ((a - t) / z);
} else if (t <= -1.7e-294) {
tmp = x;
} else if (t <= 6.7e-166) {
tmp = y / (a / (z - t));
} else if (t <= 1.45e-22) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.2e+59: tmp = y elif t <= -2e-165: tmp = y / ((a - t) / z) elif t <= -1.7e-294: tmp = x elif t <= 6.7e-166: tmp = y / (a / (z - t)) elif t <= 1.45e-22: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.2e+59) tmp = y; elseif (t <= -2e-165) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (t <= -1.7e-294) tmp = x; elseif (t <= 6.7e-166) tmp = Float64(y / Float64(a / Float64(z - t))); elseif (t <= 1.45e-22) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.2e+59) tmp = y; elseif (t <= -2e-165) tmp = y / ((a - t) / z); elseif (t <= -1.7e-294) tmp = x; elseif (t <= 6.7e-166) tmp = y / (a / (z - t)); elseif (t <= 1.45e-22) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.2e+59], y, If[LessEqual[t, -2e-165], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.7e-294], x, If[LessEqual[t, 6.7e-166], N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e-22], x, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+59}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-165}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-294}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 6.7 \cdot 10^{-166}:\\
\;\;\;\;\frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-22}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.19999999999999968e59 or 1.4500000000000001e-22 < t Initial program 48.8%
Taylor expanded in t around inf
Simplified42.8%
if -4.19999999999999968e59 < t < -2e-165Initial program 81.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.2%
Simplified51.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Applied egg-rr56.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6446.9%
Simplified46.9%
if -2e-165 < t < -1.69999999999999991e-294 or 6.70000000000000052e-166 < t < 1.4500000000000001e-22Initial program 87.2%
Taylor expanded in a around inf
Simplified54.6%
if -1.69999999999999991e-294 < t < 6.70000000000000052e-166Initial program 87.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6458.1%
Simplified58.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.6%
Applied egg-rr70.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6470.6%
Simplified70.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.3e+58)
y
(if (<= t -2.7e-165)
(* y (/ z (- a t)))
(if (<= t -5.4e-301)
x
(if (<= t 1.9e-165) (/ y (/ a (- z t))) (if (<= t 8.6e-31) x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.3e+58) {
tmp = y;
} else if (t <= -2.7e-165) {
tmp = y * (z / (a - t));
} else if (t <= -5.4e-301) {
tmp = x;
} else if (t <= 1.9e-165) {
tmp = y / (a / (z - t));
} else if (t <= 8.6e-31) {
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 <= (-4.3d+58)) then
tmp = y
else if (t <= (-2.7d-165)) then
tmp = y * (z / (a - t))
else if (t <= (-5.4d-301)) then
tmp = x
else if (t <= 1.9d-165) then
tmp = y / (a / (z - t))
else if (t <= 8.6d-31) 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 <= -4.3e+58) {
tmp = y;
} else if (t <= -2.7e-165) {
tmp = y * (z / (a - t));
} else if (t <= -5.4e-301) {
tmp = x;
} else if (t <= 1.9e-165) {
tmp = y / (a / (z - t));
} else if (t <= 8.6e-31) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.3e+58: tmp = y elif t <= -2.7e-165: tmp = y * (z / (a - t)) elif t <= -5.4e-301: tmp = x elif t <= 1.9e-165: tmp = y / (a / (z - t)) elif t <= 8.6e-31: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.3e+58) tmp = y; elseif (t <= -2.7e-165) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= -5.4e-301) tmp = x; elseif (t <= 1.9e-165) tmp = Float64(y / Float64(a / Float64(z - t))); elseif (t <= 8.6e-31) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.3e+58) tmp = y; elseif (t <= -2.7e-165) tmp = y * (z / (a - t)); elseif (t <= -5.4e-301) tmp = x; elseif (t <= 1.9e-165) tmp = y / (a / (z - t)); elseif (t <= 8.6e-31) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.3e+58], y, If[LessEqual[t, -2.7e-165], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-301], x, If[LessEqual[t, 1.9e-165], N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.6e-31], x, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.3 \cdot 10^{+58}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{-165}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-301}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-165}:\\
\;\;\;\;\frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;t \leq 8.6 \cdot 10^{-31}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.29999999999999991e58 or 8.6e-31 < t Initial program 48.8%
Taylor expanded in t around inf
Simplified42.8%
if -4.29999999999999991e58 < t < -2.6999999999999998e-165Initial program 81.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.2%
Simplified51.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Applied egg-rr56.6%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6446.9%
Simplified46.9%
if -2.6999999999999998e-165 < t < -5.3999999999999999e-301 or 1.90000000000000009e-165 < t < 8.6e-31Initial program 87.2%
Taylor expanded in a around inf
Simplified54.6%
if -5.3999999999999999e-301 < t < 1.90000000000000009e-165Initial program 87.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6458.1%
Simplified58.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.6%
Applied egg-rr70.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6470.6%
Simplified70.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.25e+59)
y
(if (<= t -2.6e-165)
(* y (/ z (- a t)))
(if (<= t -4.7e-301)
x
(if (<= t 1.12e-166) (* y (/ (- z t) a)) (if (<= t 5e-23) x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.25e+59) {
tmp = y;
} else if (t <= -2.6e-165) {
tmp = y * (z / (a - t));
} else if (t <= -4.7e-301) {
tmp = x;
} else if (t <= 1.12e-166) {
tmp = y * ((z - t) / a);
} else if (t <= 5e-23) {
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.25d+59)) then
tmp = y
else if (t <= (-2.6d-165)) then
tmp = y * (z / (a - t))
else if (t <= (-4.7d-301)) then
tmp = x
else if (t <= 1.12d-166) then
tmp = y * ((z - t) / a)
else if (t <= 5d-23) 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.25e+59) {
tmp = y;
} else if (t <= -2.6e-165) {
tmp = y * (z / (a - t));
} else if (t <= -4.7e-301) {
tmp = x;
} else if (t <= 1.12e-166) {
tmp = y * ((z - t) / a);
} else if (t <= 5e-23) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.25e+59: tmp = y elif t <= -2.6e-165: tmp = y * (z / (a - t)) elif t <= -4.7e-301: tmp = x elif t <= 1.12e-166: tmp = y * ((z - t) / a) elif t <= 5e-23: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.25e+59) tmp = y; elseif (t <= -2.6e-165) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= -4.7e-301) tmp = x; elseif (t <= 1.12e-166) tmp = Float64(y * Float64(Float64(z - t) / a)); elseif (t <= 5e-23) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.25e+59) tmp = y; elseif (t <= -2.6e-165) tmp = y * (z / (a - t)); elseif (t <= -4.7e-301) tmp = x; elseif (t <= 1.12e-166) tmp = y * ((z - t) / a); elseif (t <= 5e-23) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.25e+59], y, If[LessEqual[t, -2.6e-165], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.7e-301], x, If[LessEqual[t, 1.12e-166], N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-23], x, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+59}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-165}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq -4.7 \cdot 10^{-301}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{-166}:\\
\;\;\;\;y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-23}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.2499999999999999e59 or 5.0000000000000002e-23 < t Initial program 48.8%
Taylor expanded in t around inf
Simplified42.8%
if -1.2499999999999999e59 < t < -2.60000000000000007e-165Initial program 81.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.2%
Simplified51.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Applied egg-rr56.6%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6446.9%
Simplified46.9%
if -2.60000000000000007e-165 < t < -4.6999999999999997e-301 or 1.11999999999999994e-166 < t < 5.0000000000000002e-23Initial program 87.2%
Taylor expanded in a around inf
Simplified54.6%
if -4.6999999999999997e-301 < t < 1.11999999999999994e-166Initial program 87.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6458.1%
Simplified58.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.6%
Applied egg-rr70.6%
Taylor expanded in a around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6470.4%
Simplified70.4%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1e+65)
y
(if (<= t -2.05e-165)
(* y (/ z (- a t)))
(if (<= t -2.8e-298)
x
(if (<= t 6.3e-220) (/ y (/ a z)) (if (<= t 1.7e-22) x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1e+65) {
tmp = y;
} else if (t <= -2.05e-165) {
tmp = y * (z / (a - t));
} else if (t <= -2.8e-298) {
tmp = x;
} else if (t <= 6.3e-220) {
tmp = y / (a / z);
} else if (t <= 1.7e-22) {
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 <= (-1d+65)) then
tmp = y
else if (t <= (-2.05d-165)) then
tmp = y * (z / (a - t))
else if (t <= (-2.8d-298)) then
tmp = x
else if (t <= 6.3d-220) then
tmp = y / (a / z)
else if (t <= 1.7d-22) 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 <= -1e+65) {
tmp = y;
} else if (t <= -2.05e-165) {
tmp = y * (z / (a - t));
} else if (t <= -2.8e-298) {
tmp = x;
} else if (t <= 6.3e-220) {
tmp = y / (a / z);
} else if (t <= 1.7e-22) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1e+65: tmp = y elif t <= -2.05e-165: tmp = y * (z / (a - t)) elif t <= -2.8e-298: tmp = x elif t <= 6.3e-220: tmp = y / (a / z) elif t <= 1.7e-22: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1e+65) tmp = y; elseif (t <= -2.05e-165) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= -2.8e-298) tmp = x; elseif (t <= 6.3e-220) tmp = Float64(y / Float64(a / z)); elseif (t <= 1.7e-22) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1e+65) tmp = y; elseif (t <= -2.05e-165) tmp = y * (z / (a - t)); elseif (t <= -2.8e-298) tmp = x; elseif (t <= 6.3e-220) tmp = y / (a / z); elseif (t <= 1.7e-22) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1e+65], y, If[LessEqual[t, -2.05e-165], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.8e-298], x, If[LessEqual[t, 6.3e-220], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-22], x, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+65}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-165}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-298}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 6.3 \cdot 10^{-220}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-22}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -9.9999999999999999e64 or 1.6999999999999999e-22 < t Initial program 48.8%
Taylor expanded in t around inf
Simplified42.8%
if -9.9999999999999999e64 < t < -2.0500000000000001e-165Initial program 81.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.2%
Simplified51.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Applied egg-rr56.6%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6446.9%
Simplified46.9%
if -2.0500000000000001e-165 < t < -2.79999999999999992e-298 or 6.30000000000000017e-220 < t < 1.6999999999999999e-22Initial program 88.1%
Taylor expanded in a around inf
Simplified54.3%
if -2.79999999999999992e-298 < t < 6.30000000000000017e-220Initial program 84.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6459.5%
Simplified59.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6474.6%
Applied egg-rr74.6%
Taylor expanded in t around 0
/-lowering-/.f6469.4%
Simplified69.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ y (/ a z))))
(if (<= t -1.9e+17)
y
(if (<= t -2.8e-165)
t_1
(if (<= t -2.8e-294)
x
(if (<= t 2.55e-220) t_1 (if (<= t 1.12e-26) x y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y / (a / z);
double tmp;
if (t <= -1.9e+17) {
tmp = y;
} else if (t <= -2.8e-165) {
tmp = t_1;
} else if (t <= -2.8e-294) {
tmp = x;
} else if (t <= 2.55e-220) {
tmp = t_1;
} else if (t <= 1.12e-26) {
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) :: t_1
real(8) :: tmp
t_1 = y / (a / z)
if (t <= (-1.9d+17)) then
tmp = y
else if (t <= (-2.8d-165)) then
tmp = t_1
else if (t <= (-2.8d-294)) then
tmp = x
else if (t <= 2.55d-220) then
tmp = t_1
else if (t <= 1.12d-26) 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 t_1 = y / (a / z);
double tmp;
if (t <= -1.9e+17) {
tmp = y;
} else if (t <= -2.8e-165) {
tmp = t_1;
} else if (t <= -2.8e-294) {
tmp = x;
} else if (t <= 2.55e-220) {
tmp = t_1;
} else if (t <= 1.12e-26) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y / (a / z) tmp = 0 if t <= -1.9e+17: tmp = y elif t <= -2.8e-165: tmp = t_1 elif t <= -2.8e-294: tmp = x elif t <= 2.55e-220: tmp = t_1 elif t <= 1.12e-26: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(y / Float64(a / z)) tmp = 0.0 if (t <= -1.9e+17) tmp = y; elseif (t <= -2.8e-165) tmp = t_1; elseif (t <= -2.8e-294) tmp = x; elseif (t <= 2.55e-220) tmp = t_1; elseif (t <= 1.12e-26) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y / (a / z); tmp = 0.0; if (t <= -1.9e+17) tmp = y; elseif (t <= -2.8e-165) tmp = t_1; elseif (t <= -2.8e-294) tmp = x; elseif (t <= 2.55e-220) tmp = t_1; elseif (t <= 1.12e-26) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.9e+17], y, If[LessEqual[t, -2.8e-165], t$95$1, If[LessEqual[t, -2.8e-294], x, If[LessEqual[t, 2.55e-220], t$95$1, If[LessEqual[t, 1.12e-26], x, y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;t \leq -1.9 \cdot 10^{+17}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-294}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.55 \cdot 10^{-220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.9e17 or 1.12e-26 < t Initial program 50.1%
Taylor expanded in t around inf
Simplified41.0%
if -1.9e17 < t < -2.7999999999999999e-165 or -2.79999999999999991e-294 < t < 2.55e-220Initial program 84.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6455.9%
Simplified55.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6463.7%
Applied egg-rr63.7%
Taylor expanded in t around 0
/-lowering-/.f6451.4%
Simplified51.4%
if -2.7999999999999999e-165 < t < -2.79999999999999991e-294 or 2.55e-220 < t < 1.12e-26Initial program 88.1%
Taylor expanded in a around inf
Simplified54.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z a))))
(if (<= t -4.8e+23)
y
(if (<= t -3.2e-165)
t_1
(if (<= t -1e-295)
x
(if (<= t 7.5e-220) t_1 (if (<= t 1.35e-22) x y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / a);
double tmp;
if (t <= -4.8e+23) {
tmp = y;
} else if (t <= -3.2e-165) {
tmp = t_1;
} else if (t <= -1e-295) {
tmp = x;
} else if (t <= 7.5e-220) {
tmp = t_1;
} else if (t <= 1.35e-22) {
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) :: t_1
real(8) :: tmp
t_1 = y * (z / a)
if (t <= (-4.8d+23)) then
tmp = y
else if (t <= (-3.2d-165)) then
tmp = t_1
else if (t <= (-1d-295)) then
tmp = x
else if (t <= 7.5d-220) then
tmp = t_1
else if (t <= 1.35d-22) 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 t_1 = y * (z / a);
double tmp;
if (t <= -4.8e+23) {
tmp = y;
} else if (t <= -3.2e-165) {
tmp = t_1;
} else if (t <= -1e-295) {
tmp = x;
} else if (t <= 7.5e-220) {
tmp = t_1;
} else if (t <= 1.35e-22) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / a) tmp = 0 if t <= -4.8e+23: tmp = y elif t <= -3.2e-165: tmp = t_1 elif t <= -1e-295: tmp = x elif t <= 7.5e-220: tmp = t_1 elif t <= 1.35e-22: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / a)) tmp = 0.0 if (t <= -4.8e+23) tmp = y; elseif (t <= -3.2e-165) tmp = t_1; elseif (t <= -1e-295) tmp = x; elseif (t <= 7.5e-220) tmp = t_1; elseif (t <= 1.35e-22) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / a); tmp = 0.0; if (t <= -4.8e+23) tmp = y; elseif (t <= -3.2e-165) tmp = t_1; elseif (t <= -1e-295) tmp = x; elseif (t <= 7.5e-220) tmp = t_1; elseif (t <= 1.35e-22) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+23], y, If[LessEqual[t, -3.2e-165], t$95$1, If[LessEqual[t, -1e-295], x, If[LessEqual[t, 7.5e-220], t$95$1, If[LessEqual[t, 1.35e-22], x, y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+23}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-295}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-22}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.8e23 or 1.3500000000000001e-22 < t Initial program 50.1%
Taylor expanded in t around inf
Simplified41.0%
if -4.8e23 < t < -3.20000000000000013e-165 or -1.00000000000000006e-295 < t < 7.5000000000000002e-220Initial program 84.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6455.9%
Simplified55.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6463.6%
Applied egg-rr63.6%
Taylor expanded in t around 0
/-lowering-/.f6451.2%
Simplified51.2%
if -3.20000000000000013e-165 < t < -1.00000000000000006e-295 or 7.5000000000000002e-220 < t < 1.3500000000000001e-22Initial program 88.1%
Taylor expanded in a around inf
Simplified54.3%
Final simplification46.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) (- a t))))))
(if (<= a -5.4e-145)
t_1
(if (<= a 1.75e-142) (+ 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 tmp;
if (a <= -5.4e-145) {
tmp = t_1;
} else if (a <= 1.75e-142) {
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) :: tmp
t_1 = x + ((z - t) * ((y - x) / (a - t)))
if (a <= (-5.4d-145)) then
tmp = t_1
else if (a <= 1.75d-142) 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 tmp;
if (a <= -5.4e-145) {
tmp = t_1;
} else if (a <= 1.75e-142) {
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))) tmp = 0 if a <= -5.4e-145: tmp = t_1 elif a <= 1.75e-142: 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)))) tmp = 0.0 if (a <= -5.4e-145) tmp = t_1; elseif (a <= 1.75e-142) 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))); tmp = 0.0; if (a <= -5.4e-145) tmp = t_1; elseif (a <= 1.75e-142) 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]}, If[LessEqual[a, -5.4e-145], t$95$1, If[LessEqual[a, 1.75e-142], 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}\\
\mathbf{if}\;a \leq -5.4 \cdot 10^{-145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-142}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.4000000000000001e-145 or 1.75000000000000007e-142 < a Initial program 67.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6486.3%
Applied egg-rr86.3%
if -5.4000000000000001e-145 < a < 1.75000000000000007e-142Initial program 64.5%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6484.0%
Simplified84.0%
Final simplification85.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ a (- z t))))))
(if (<= a -72000.0)
t_1
(if (<= a 6.5e+60) (+ y (/ (* (- y x) (- a z)) t)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -72000.0) {
tmp = t_1;
} else if (a <= 6.5e+60) {
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) :: tmp
t_1 = x + ((y - x) / (a / (z - t)))
if (a <= (-72000.0d0)) then
tmp = t_1
else if (a <= 6.5d+60) 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 + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -72000.0) {
tmp = t_1;
} else if (a <= 6.5e+60) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) / (a / (z - t))) tmp = 0 if a <= -72000.0: tmp = t_1 elif a <= 6.5e+60: 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(y - x) / Float64(a / Float64(z - t)))) tmp = 0.0 if (a <= -72000.0) tmp = t_1; elseif (a <= 6.5e+60) 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 + ((y - x) / (a / (z - t))); tmp = 0.0; if (a <= -72000.0) tmp = t_1; elseif (a <= 6.5e+60) 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[(y - x), $MachinePrecision] / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -72000.0], t$95$1, If[LessEqual[a, 6.5e+60], 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 + \frac{y - x}{\frac{a}{z - t}}\\
\mathbf{if}\;a \leq -72000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{+60}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -72000 or 6.49999999999999931e60 < a Initial program 67.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6493.5%
Applied egg-rr93.5%
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6493.0%
Applied egg-rr93.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6481.8%
Simplified81.8%
if -72000 < a < 6.49999999999999931e60Initial program 66.2%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6475.6%
Simplified75.6%
Final simplification78.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ a (- z t))))))
(if (<= a -1e-64)
t_1
(if (<= a 4e+60) (+ x (* (- y x) (/ (- t z) t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -1e-64) {
tmp = t_1;
} else if (a <= 4e+60) {
tmp = x + ((y - x) * ((t - 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) :: tmp
t_1 = x + ((y - x) / (a / (z - t)))
if (a <= (-1d-64)) then
tmp = t_1
else if (a <= 4d+60) then
tmp = x + ((y - x) * ((t - 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 + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -1e-64) {
tmp = t_1;
} else if (a <= 4e+60) {
tmp = x + ((y - x) * ((t - z) / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) / (a / (z - t))) tmp = 0 if a <= -1e-64: tmp = t_1 elif a <= 4e+60: tmp = x + ((y - x) * ((t - z) / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - x) / Float64(a / Float64(z - t)))) tmp = 0.0 if (a <= -1e-64) tmp = t_1; elseif (a <= 4e+60) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(t - z) / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - x) / (a / (z - t))); tmp = 0.0; if (a <= -1e-64) tmp = t_1; elseif (a <= 4e+60) tmp = x + ((y - x) * ((t - 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[(y - x), $MachinePrecision] / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1e-64], t$95$1, If[LessEqual[a, 4e+60], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{\frac{a}{z - t}}\\
\mathbf{if}\;a \leq -1 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+60}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{t - z}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.99999999999999965e-65 or 3.9999999999999998e60 < a Initial program 68.3%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6492.6%
Applied egg-rr92.6%
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6492.2%
Applied egg-rr92.2%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6479.0%
Simplified79.0%
if -9.99999999999999965e-65 < a < 3.9999999999999998e60Initial program 65.5%
Taylor expanded in a around 0
+-lowering-+.f64N/A
associate-/l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6462.9%
Simplified62.9%
Final simplification70.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) a)))))
(if (<= a -8e-67)
t_1
(if (<= a 4.9e+60) (+ x (* (- y x) (/ (- t 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));
double tmp;
if (a <= -8e-67) {
tmp = t_1;
} else if (a <= 4.9e+60) {
tmp = x + ((y - x) * ((t - 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) :: tmp
t_1 = x + ((z - t) * ((y - x) / a))
if (a <= (-8d-67)) then
tmp = t_1
else if (a <= 4.9d+60) then
tmp = x + ((y - x) * ((t - 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));
double tmp;
if (a <= -8e-67) {
tmp = t_1;
} else if (a <= 4.9e+60) {
tmp = x + ((y - x) * ((t - z) / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((y - x) / a)) tmp = 0 if a <= -8e-67: tmp = t_1 elif a <= 4.9e+60: tmp = x + ((y - x) * ((t - 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) / a))) tmp = 0.0 if (a <= -8e-67) tmp = t_1; elseif (a <= 4.9e+60) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(t - 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)); tmp = 0.0; if (a <= -8e-67) tmp = t_1; elseif (a <= 4.9e+60) tmp = x + ((y - x) * ((t - 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] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8e-67], t$95$1, If[LessEqual[a, 4.9e+60], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a}\\
\mathbf{if}\;a \leq -8 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{+60}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{t - z}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.99999999999999954e-67 or 4.9000000000000003e60 < a Initial program 68.3%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6477.8%
Simplified77.8%
if -7.99999999999999954e-67 < a < 4.9000000000000003e60Initial program 65.5%
Taylor expanded in a around 0
+-lowering-+.f64N/A
associate-/l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6462.9%
Simplified62.9%
Final simplification69.9%
(FPCore (x y z t a)
:precision binary64
(if (<= y -3.9e+14)
(/ y (/ (- a t) (- z t)))
(if (<= y 2.5e-30)
(* x (+ (/ (- z t) (- t a)) 1.0))
(* y (/ (- z t) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -3.9e+14) {
tmp = y / ((a - t) / (z - t));
} else if (y <= 2.5e-30) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} 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 (y <= (-3.9d+14)) then
tmp = y / ((a - t) / (z - t))
else if (y <= 2.5d-30) then
tmp = x * (((z - t) / (t - a)) + 1.0d0)
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 (y <= -3.9e+14) {
tmp = y / ((a - t) / (z - t));
} else if (y <= 2.5e-30) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -3.9e+14: tmp = y / ((a - t) / (z - t)) elif y <= 2.5e-30: tmp = x * (((z - t) / (t - a)) + 1.0) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -3.9e+14) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (y <= 2.5e-30) tmp = Float64(x * Float64(Float64(Float64(z - t) / Float64(t - a)) + 1.0)); 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 (y <= -3.9e+14) tmp = y / ((a - t) / (z - t)); elseif (y <= 2.5e-30) tmp = x * (((z - t) / (t - a)) + 1.0); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -3.9e+14], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e-30], N[(x * N[(N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.9 \cdot 10^{+14}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-30}:\\
\;\;\;\;x \cdot \left(\frac{z - t}{t - a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if y < -3.9e14Initial program 67.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6459.4%
Simplified59.4%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.7%
Applied egg-rr80.7%
if -3.9e14 < y < 2.49999999999999986e-30Initial program 73.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6462.0%
Simplified62.0%
if 2.49999999999999986e-30 < y Initial program 56.3%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6440.8%
Simplified40.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6469.9%
Applied egg-rr69.9%
Final simplification69.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.1e+36) (* y (/ (- z t) (- a t))) (if (<= t 4.8e-27) (+ x (* (- y x) (/ z a))) (/ y (/ (- a t) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.1e+36) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 4.8e-27) {
tmp = x + ((y - x) * (z / a));
} else {
tmp = 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+36)) then
tmp = y * ((z - t) / (a - t))
else if (t <= 4.8d-27) then
tmp = x + ((y - x) * (z / a))
else
tmp = 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+36) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 4.8e-27) {
tmp = x + ((y - x) * (z / a));
} else {
tmp = y / ((a - t) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.1e+36: tmp = y * ((z - t) / (a - t)) elif t <= 4.8e-27: tmp = x + ((y - x) * (z / a)) else: tmp = y / ((a - t) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.1e+36) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 4.8e-27) tmp = Float64(x + Float64(Float64(y - x) * Float64(z / a))); else tmp = Float64(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+36) tmp = y * ((z - t) / (a - t)); elseif (t <= 4.8e-27) tmp = x + ((y - x) * (z / a)); else tmp = y / ((a - t) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.1e+36], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e-27], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+36}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-27}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if t < -2.10000000000000004e36Initial program 45.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6432.4%
Simplified32.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.7%
Applied egg-rr67.7%
if -2.10000000000000004e36 < t < 4.80000000000000004e-27Initial program 85.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6492.5%
Applied egg-rr92.5%
Taylor expanded in t around 0
/-lowering-/.f6473.7%
Simplified73.7%
if 4.80000000000000004e-27 < t Initial program 51.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.3%
Simplified41.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6458.8%
Applied egg-rr58.8%
Final simplification67.6%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* y (/ (- z t) (- a t))))) (if (<= t -4.5e+35) t_1 (if (<= t 3e-25) (+ x (* (- y x) (/ z a))) t_1))))
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.5e+35) {
tmp = t_1;
} else if (t <= 3e-25) {
tmp = x + ((y - x) * (z / a));
} 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) / (a - t))
if (t <= (-4.5d+35)) then
tmp = t_1
else if (t <= 3d-25) then
tmp = x + ((y - x) * (z / a))
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) / (a - t));
double tmp;
if (t <= -4.5e+35) {
tmp = t_1;
} else if (t <= 3e-25) {
tmp = x + ((y - x) * (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -4.5e+35: tmp = t_1 elif t <= 3e-25: tmp = x + ((y - x) * (z / a)) else: tmp = t_1 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.5e+35) tmp = t_1; elseif (t <= 3e-25) tmp = Float64(x + Float64(Float64(y - x) * Float64(z / a))); else tmp = t_1; 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.5e+35) tmp = t_1; elseif (t <= 3e-25) tmp = x + ((y - x) * (z / a)); else tmp = t_1; 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.5e+35], t$95$1, If[LessEqual[t, 3e-25], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-25}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.4999999999999997e35 or 2.9999999999999998e-25 < t Initial program 49.3%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6438.1%
Simplified38.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6461.9%
Applied egg-rr61.9%
if -4.4999999999999997e35 < t < 2.9999999999999998e-25Initial program 85.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6492.5%
Applied egg-rr92.5%
Taylor expanded in t around 0
/-lowering-/.f6473.7%
Simplified73.7%
Final simplification67.6%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (* (- z t) (/ y a))))) (if (<= a -300000.0) t_1 (if (<= a 6e+57) (* y (/ (- z t) (- a t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * (y / a));
double tmp;
if (a <= -300000.0) {
tmp = t_1;
} else if (a <= 6e+57) {
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 - t) * (y / a))
if (a <= (-300000.0d0)) then
tmp = t_1
else if (a <= 6d+57) 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 - t) * (y / a));
double tmp;
if (a <= -300000.0) {
tmp = t_1;
} else if (a <= 6e+57) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * (y / a)) tmp = 0 if a <= -300000.0: tmp = t_1 elif a <= 6e+57: tmp = y * ((z - t) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - t) * Float64(y / a))) tmp = 0.0 if (a <= -300000.0) tmp = t_1; elseif (a <= 6e+57) 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 - t) * (y / a)); tmp = 0.0; if (a <= -300000.0) tmp = t_1; elseif (a <= 6e+57) 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[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -300000.0], t$95$1, If[LessEqual[a, 6e+57], 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 + \left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -300000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+57}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3e5 or 5.9999999999999999e57 < a Initial program 67.0%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6479.1%
Simplified79.1%
Taylor expanded in y around inf
/-lowering-/.f6474.0%
Simplified74.0%
if -3e5 < a < 5.9999999999999999e57Initial program 66.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6447.7%
Simplified47.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6460.5%
Applied egg-rr60.5%
Final simplification66.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -6.2e+180) x (if (<= a 6e+178) (* y (/ (- z t) (- a t))) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.2e+180) {
tmp = x;
} else if (a <= 6e+178) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-6.2d+180)) then
tmp = x
else if (a <= 6d+178) then
tmp = y * ((z - t) / (a - t))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.2e+180) {
tmp = x;
} else if (a <= 6e+178) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.2e+180: tmp = x elif a <= 6e+178: tmp = y * ((z - t) / (a - t)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.2e+180) tmp = x; elseif (a <= 6e+178) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.2e+180) tmp = x; elseif (a <= 6e+178) tmp = y * ((z - t) / (a - t)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.2e+180], x, If[LessEqual[a, 6e+178], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.2 \cdot 10^{+180}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+178}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -6.19999999999999997e180 or 6.00000000000000031e178 < a Initial program 62.4%
Taylor expanded in a around inf
Simplified59.9%
if -6.19999999999999997e180 < a < 6.00000000000000031e178Initial program 68.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6445.1%
Simplified45.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6458.7%
Applied egg-rr58.7%
Final simplification59.0%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* (- z t) (/ y (- a t))))) (if (<= y -7.5e-87) t_1 (if (<= y 7.5e-32) x t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) * (y / (a - t));
double tmp;
if (y <= -7.5e-87) {
tmp = t_1;
} else if (y <= 7.5e-32) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (z - t) * (y / (a - t))
if (y <= (-7.5d-87)) then
tmp = t_1
else if (y <= 7.5d-32) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) * (y / (a - t));
double tmp;
if (y <= -7.5e-87) {
tmp = t_1;
} else if (y <= 7.5e-32) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z - t) * (y / (a - t)) tmp = 0 if y <= -7.5e-87: tmp = t_1 elif y <= 7.5e-32: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z - t) * Float64(y / Float64(a - t))) tmp = 0.0 if (y <= -7.5e-87) tmp = t_1; elseif (y <= 7.5e-32) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (z - t) * (y / (a - t)); tmp = 0.0; if (y <= -7.5e-87) tmp = t_1; elseif (y <= 7.5e-32) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e-87], t$95$1, If[LessEqual[y, 7.5e-32], x, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{-87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-32}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.5000000000000002e-87 or 7.49999999999999953e-32 < y Initial program 62.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6447.0%
Simplified47.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6468.1%
Applied egg-rr68.1%
if -7.5000000000000002e-87 < y < 7.49999999999999953e-32Initial program 74.7%
Taylor expanded in a around inf
Simplified35.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -100000.0) x (if (<= a 4.5e+58) (* y (- 1.0 (/ z t))) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -100000.0) {
tmp = x;
} else if (a <= 4.5e+58) {
tmp = y * (1.0 - (z / t));
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-100000.0d0)) then
tmp = x
else if (a <= 4.5d+58) then
tmp = y * (1.0d0 - (z / t))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -100000.0) {
tmp = x;
} else if (a <= 4.5e+58) {
tmp = y * (1.0 - (z / t));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -100000.0: tmp = x elif a <= 4.5e+58: tmp = y * (1.0 - (z / t)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -100000.0) tmp = x; elseif (a <= 4.5e+58) tmp = Float64(y * Float64(1.0 - Float64(z / t))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -100000.0) tmp = x; elseif (a <= 4.5e+58) tmp = y * (1.0 - (z / t)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -100000.0], x, If[LessEqual[a, 4.5e+58], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -100000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{+58}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1e5 or 4.4999999999999998e58 < a Initial program 67.0%
Taylor expanded in a around inf
Simplified48.0%
if -1e5 < a < 4.4999999999999998e58Initial program 66.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6447.7%
Simplified47.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6460.5%
Applied egg-rr60.5%
Taylor expanded in a around 0
mul-1-negN/A
associate-/l*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
div-subN/A
*-inversesN/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
/-lowering-/.f6452.4%
Simplified52.4%
Final simplification50.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -78000.0) x (if (<= a 1.8e+57) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -78000.0) {
tmp = x;
} else if (a <= 1.8e+57) {
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 <= (-78000.0d0)) then
tmp = x
else if (a <= 1.8d+57) 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 <= -78000.0) {
tmp = x;
} else if (a <= 1.8e+57) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -78000.0: tmp = x elif a <= 1.8e+57: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -78000.0) tmp = x; elseif (a <= 1.8e+57) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -78000.0) tmp = x; elseif (a <= 1.8e+57) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -78000.0], x, If[LessEqual[a, 1.8e+57], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -78000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+57}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -78000 or 1.8000000000000001e57 < a Initial program 67.0%
Taylor expanded in a around inf
Simplified48.0%
if -78000 < a < 1.8000000000000001e57Initial program 66.7%
Taylor expanded in t around inf
Simplified35.9%
(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 66.8%
Taylor expanded in a around inf
Simplified24.2%
(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 2024138
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))