
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ (- a t) (- z t)))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 -1e-302)
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) / ((a - t) / (z - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -1e-302) {
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) / ((a - t) / (z - t)))
t_2 = x + (((y - x) * (z - t)) / (a - t))
if (t_2 <= (-1d-302)) 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) / ((a - t) / (z - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -1e-302) {
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) / ((a - t) / (z - t))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -1e-302: 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(a - t) / Float64(z - t)))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -1e-302) 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) / ((a - t) / (z - t))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -1e-302) 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[(a - t), $MachinePrecision] / N[(z - 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-302], 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 + \frac{y - x}{\frac{a - t}{z - t}}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-302}:\\
\;\;\;\;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))) < -9.9999999999999996e-303 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 76.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--.f6488.1%
Applied egg-rr88.1%
if -9.9999999999999996e-303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.3%
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.8%
Simplified99.8%
Final simplification89.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 -1e-302)
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 <= -1e-302) {
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 <= (-1d-302)) 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 <= -1e-302) {
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 <= -1e-302: 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 <= -1e-302) 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 <= -1e-302) 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, -1e-302], 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 -1 \cdot 10^{-302}:\\
\;\;\;\;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))) < -9.9999999999999996e-303 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 76.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6487.9%
Applied egg-rr87.9%
if -9.9999999999999996e-303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.3%
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.8%
Simplified99.8%
Final simplification88.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ a z)))))
(if (<= t -2.6e+135)
y
(if (<= t 1.7e-185)
t_1
(if (<= t 2.2e-56)
(* x (- 1.0 (/ z a)))
(if (<= t 15800000.0)
(/ (* x (- z a)) t)
(if (<= t 1.4e+68) t_1 y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (t <= -2.6e+135) {
tmp = y;
} else if (t <= 1.7e-185) {
tmp = t_1;
} else if (t <= 2.2e-56) {
tmp = x * (1.0 - (z / a));
} else if (t <= 15800000.0) {
tmp = (x * (z - a)) / t;
} else if (t <= 1.4e+68) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y / (a / z))
if (t <= (-2.6d+135)) then
tmp = y
else if (t <= 1.7d-185) then
tmp = t_1
else if (t <= 2.2d-56) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 15800000.0d0) then
tmp = (x * (z - a)) / t
else if (t <= 1.4d+68) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (t <= -2.6e+135) {
tmp = y;
} else if (t <= 1.7e-185) {
tmp = t_1;
} else if (t <= 2.2e-56) {
tmp = x * (1.0 - (z / a));
} else if (t <= 15800000.0) {
tmp = (x * (z - a)) / t;
} else if (t <= 1.4e+68) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (a / z)) tmp = 0 if t <= -2.6e+135: tmp = y elif t <= 1.7e-185: tmp = t_1 elif t <= 2.2e-56: tmp = x * (1.0 - (z / a)) elif t <= 15800000.0: tmp = (x * (z - a)) / t elif t <= 1.4e+68: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (t <= -2.6e+135) tmp = y; elseif (t <= 1.7e-185) tmp = t_1; elseif (t <= 2.2e-56) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 15800000.0) tmp = Float64(Float64(x * Float64(z - a)) / t); elseif (t <= 1.4e+68) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (a / z)); tmp = 0.0; if (t <= -2.6e+135) tmp = y; elseif (t <= 1.7e-185) tmp = t_1; elseif (t <= 2.2e-56) tmp = x * (1.0 - (z / a)); elseif (t <= 15800000.0) tmp = (x * (z - a)) / t; elseif (t <= 1.4e+68) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e+135], y, If[LessEqual[t, 1.7e-185], t$95$1, If[LessEqual[t, 2.2e-56], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 15800000.0], N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 1.4e+68], t$95$1, y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{+135}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-185}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 15800000:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.6e135 or 1.4e68 < t Initial program 37.4%
Taylor expanded in t around inf
Simplified48.3%
if -2.6e135 < t < 1.6999999999999999e-185 or 1.58e7 < t < 1.4e68Initial program 88.1%
associate-/l*N/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 t around 0
/-lowering-/.f6471.6%
Simplified71.6%
Taylor expanded in y around inf
Simplified61.4%
if 1.6999999999999999e-185 < t < 2.20000000000000004e-56Initial program 82.0%
Taylor expanded in t around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6454.1%
Simplified54.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f6450.6%
Simplified50.6%
if 2.20000000000000004e-56 < t < 1.58e7Initial program 66.3%
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--.f6483.1%
Simplified83.1%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6461.8%
Simplified61.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -8.2e+35)
(+ x (/ (- z t) (/ a (- y x))))
(if (<= a -7.5e-67)
(+ x (/ z (/ (- a t) (- y x))))
(if (<= a 4.6e-24)
(+ y (/ (* z (- x y)) t))
(+ x (/ y (/ (- a t) (- z t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.2e+35) {
tmp = x + ((z - t) / (a / (y - x)));
} else if (a <= -7.5e-67) {
tmp = x + (z / ((a - t) / (y - x)));
} else if (a <= 4.6e-24) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-8.2d+35)) then
tmp = x + ((z - t) / (a / (y - x)))
else if (a <= (-7.5d-67)) then
tmp = x + (z / ((a - t) / (y - x)))
else if (a <= 4.6d-24) then
tmp = y + ((z * (x - y)) / t)
else
tmp = x + (y / ((a - t) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.2e+35) {
tmp = x + ((z - t) / (a / (y - x)));
} else if (a <= -7.5e-67) {
tmp = x + (z / ((a - t) / (y - x)));
} else if (a <= 4.6e-24) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.2e+35: tmp = x + ((z - t) / (a / (y - x))) elif a <= -7.5e-67: tmp = x + (z / ((a - t) / (y - x))) elif a <= 4.6e-24: tmp = y + ((z * (x - y)) / t) else: tmp = x + (y / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.2e+35) tmp = Float64(x + Float64(Float64(z - t) / Float64(a / Float64(y - x)))); elseif (a <= -7.5e-67) tmp = Float64(x + Float64(z / Float64(Float64(a - t) / Float64(y - x)))); elseif (a <= 4.6e-24) tmp = Float64(y + Float64(Float64(z * Float64(x - y)) / t)); else tmp = Float64(x + 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 (a <= -8.2e+35) tmp = x + ((z - t) / (a / (y - x))); elseif (a <= -7.5e-67) tmp = x + (z / ((a - t) / (y - x))); elseif (a <= 4.6e-24) tmp = y + ((z * (x - y)) / t); else tmp = x + (y / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.2e+35], N[(x + N[(N[(z - t), $MachinePrecision] / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.5e-67], N[(x + N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.6e-24], N[(y + N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.2 \cdot 10^{+35}:\\
\;\;\;\;x + \frac{z - t}{\frac{a}{y - x}}\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-67}:\\
\;\;\;\;x + \frac{z}{\frac{a - t}{y - x}}\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-24}:\\
\;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if a < -8.1999999999999997e35Initial program 68.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6484.4%
Applied egg-rr84.4%
associate-/r/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6483.0%
Applied egg-rr83.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6476.5%
Simplified76.5%
if -8.1999999999999997e35 < a < -7.5000000000000005e-67Initial program 75.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6479.6%
Applied egg-rr79.6%
associate-/r/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6479.5%
Applied egg-rr79.5%
Taylor expanded in z around inf
Simplified76.1%
if -7.5000000000000005e-67 < a < 4.6000000000000002e-24Initial program 69.7%
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--.f6478.5%
Simplified78.5%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6474.5%
Simplified74.5%
if 4.6000000000000002e-24 < a Initial program 69.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.5%
Applied egg-rr87.5%
Taylor expanded in y around inf
Simplified79.3%
Final simplification76.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ (- a t) (- z t))))))
(if (<= a -6.5e+178)
t_1
(if (<= a -2.35e-67)
(+ x (/ z (/ (- a t) (- y x))))
(if (<= a 7.5e-23) (+ y (/ (* z (- x y)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / ((a - t) / (z - t)));
double tmp;
if (a <= -6.5e+178) {
tmp = t_1;
} else if (a <= -2.35e-67) {
tmp = x + (z / ((a - t) / (y - x)));
} else if (a <= 7.5e-23) {
tmp = y + ((z * (x - y)) / 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 / ((a - t) / (z - t)))
if (a <= (-6.5d+178)) then
tmp = t_1
else if (a <= (-2.35d-67)) then
tmp = x + (z / ((a - t) / (y - x)))
else if (a <= 7.5d-23) then
tmp = y + ((z * (x - y)) / 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 / ((a - t) / (z - t)));
double tmp;
if (a <= -6.5e+178) {
tmp = t_1;
} else if (a <= -2.35e-67) {
tmp = x + (z / ((a - t) / (y - x)));
} else if (a <= 7.5e-23) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / ((a - t) / (z - t))) tmp = 0 if a <= -6.5e+178: tmp = t_1 elif a <= -2.35e-67: tmp = x + (z / ((a - t) / (y - x))) elif a <= 7.5e-23: tmp = y + ((z * (x - y)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) tmp = 0.0 if (a <= -6.5e+178) tmp = t_1; elseif (a <= -2.35e-67) tmp = Float64(x + Float64(z / Float64(Float64(a - t) / Float64(y - x)))); elseif (a <= 7.5e-23) tmp = Float64(y + Float64(Float64(z * Float64(x - y)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / ((a - t) / (z - t))); tmp = 0.0; if (a <= -6.5e+178) tmp = t_1; elseif (a <= -2.35e-67) tmp = x + (z / ((a - t) / (y - x))); elseif (a <= 7.5e-23) tmp = y + ((z * (x - y)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e+178], t$95$1, If[LessEqual[a, -2.35e-67], N[(x + N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-23], N[(y + N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{+178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{-67}:\\
\;\;\;\;x + \frac{z}{\frac{a - t}{y - x}}\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-23}:\\
\;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.5000000000000005e178 or 7.4999999999999998e-23 < a Initial program 69.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6488.7%
Applied egg-rr88.7%
Taylor expanded in y around inf
Simplified81.1%
if -6.5000000000000005e178 < a < -2.35000000000000002e-67Initial program 71.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6479.0%
Applied egg-rr79.0%
associate-/r/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.8%
Applied egg-rr80.8%
Taylor expanded in z around inf
Simplified71.8%
if -2.35000000000000002e-67 < a < 7.4999999999999998e-23Initial program 69.7%
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--.f6478.5%
Simplified78.5%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6474.5%
Simplified74.5%
Final simplification76.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -9.6e+128)
t_1
(if (<= t 6.5e-56)
(+ x (* (- y x) (/ z a)))
(if (<= t 15200000.0) (/ (* x (- z a)) t) 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 <= -9.6e+128) {
tmp = t_1;
} else if (t <= 6.5e-56) {
tmp = x + ((y - x) * (z / a));
} else if (t <= 15200000.0) {
tmp = (x * (z - a)) / t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-9.6d+128)) then
tmp = t_1
else if (t <= 6.5d-56) then
tmp = x + ((y - x) * (z / a))
else if (t <= 15200000.0d0) then
tmp = (x * (z - a)) / t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -9.6e+128) {
tmp = t_1;
} else if (t <= 6.5e-56) {
tmp = x + ((y - x) * (z / a));
} else if (t <= 15200000.0) {
tmp = (x * (z - a)) / t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -9.6e+128: tmp = t_1 elif t <= 6.5e-56: tmp = x + ((y - x) * (z / a)) elif t <= 15200000.0: tmp = (x * (z - a)) / t 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 <= -9.6e+128) tmp = t_1; elseif (t <= 6.5e-56) tmp = Float64(x + Float64(Float64(y - x) * Float64(z / a))); elseif (t <= 15200000.0) tmp = Float64(Float64(x * Float64(z - a)) / t); 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 <= -9.6e+128) tmp = t_1; elseif (t <= 6.5e-56) tmp = x + ((y - x) * (z / a)); elseif (t <= 15200000.0) tmp = (x * (z - a)) / t; 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, -9.6e+128], t$95$1, If[LessEqual[t, 6.5e-56], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 15200000.0], N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -9.6 \cdot 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-56}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 15200000:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.6000000000000007e128 or 1.52e7 < t Initial program 42.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6442.3%
Simplified42.3%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6460.9%
Applied egg-rr60.9%
if -9.6000000000000007e128 < t < 6.4999999999999997e-56Initial program 87.3%
Taylor expanded in t around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6465.4%
Simplified65.4%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6469.7%
Applied egg-rr69.7%
if 6.4999999999999997e-56 < t < 1.52e7Initial program 66.3%
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--.f6483.1%
Simplified83.1%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6461.8%
Simplified61.8%
Final simplification66.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ a z)))))
(if (<= a -1.5e+54)
t_1
(if (<= a 2.5e-207)
(* (- y x) (/ z (- a t)))
(if (<= a 2e-23) (* y (/ (- z t) (- a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (a <= -1.5e+54) {
tmp = t_1;
} else if (a <= 2.5e-207) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 2e-23) {
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 + (y / (a / z))
if (a <= (-1.5d+54)) then
tmp = t_1
else if (a <= 2.5d-207) then
tmp = (y - x) * (z / (a - t))
else if (a <= 2d-23) 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 + (y / (a / z));
double tmp;
if (a <= -1.5e+54) {
tmp = t_1;
} else if (a <= 2.5e-207) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 2e-23) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (a / z)) tmp = 0 if a <= -1.5e+54: tmp = t_1 elif a <= 2.5e-207: tmp = (y - x) * (z / (a - t)) elif a <= 2e-23: tmp = y * ((z - t) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (a <= -1.5e+54) tmp = t_1; elseif (a <= 2.5e-207) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 2e-23) 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 + (y / (a / z)); tmp = 0.0; if (a <= -1.5e+54) tmp = t_1; elseif (a <= 2.5e-207) tmp = (y - x) * (z / (a - t)); elseif (a <= 2e-23) 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[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.5e+54], t$95$1, If[LessEqual[a, 2.5e-207], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e-23], 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{y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -1.5 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-207}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-23}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.4999999999999999e54 or 1.99999999999999992e-23 < a Initial program 70.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6486.0%
Applied egg-rr86.0%
Taylor expanded in t around 0
/-lowering-/.f6466.5%
Simplified66.5%
Taylor expanded in y around inf
Simplified60.9%
if -1.4999999999999999e54 < a < 2.50000000000000007e-207Initial program 68.7%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6464.0%
Simplified64.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6464.0%
Applied egg-rr64.0%
if 2.50000000000000007e-207 < a < 1.99999999999999992e-23Initial program 72.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6460.4%
Simplified60.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6465.5%
Applied egg-rr65.5%
Final simplification62.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.35e-59)
(+ x (/ (- z t) (/ a (- y x))))
(if (<= a 1.4e-23)
(+ y (/ (* (- y x) (- a z)) t))
(+ x (/ y (/ (- a t) (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.35e-59) {
tmp = x + ((z - t) / (a / (y - x)));
} else if (a <= 1.4e-23) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.35d-59)) then
tmp = x + ((z - t) / (a / (y - x)))
else if (a <= 1.4d-23) then
tmp = y + (((y - x) * (a - z)) / t)
else
tmp = x + (y / ((a - t) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.35e-59) {
tmp = x + ((z - t) / (a / (y - x)));
} else if (a <= 1.4e-23) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.35e-59: tmp = x + ((z - t) / (a / (y - x))) elif a <= 1.4e-23: tmp = y + (((y - x) * (a - z)) / t) else: tmp = x + (y / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.35e-59) tmp = Float64(x + Float64(Float64(z - t) / Float64(a / Float64(y - x)))); elseif (a <= 1.4e-23) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = Float64(x + 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 (a <= -1.35e-59) tmp = x + ((z - t) / (a / (y - x))); elseif (a <= 1.4e-23) tmp = y + (((y - x) * (a - z)) / t); else tmp = x + (y / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.35e-59], N[(x + N[(N[(z - t), $MachinePrecision] / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e-23], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.35 \cdot 10^{-59}:\\
\;\;\;\;x + \frac{z - t}{\frac{a}{y - x}}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-23}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if a < -1.3499999999999999e-59Initial program 70.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6483.6%
Applied egg-rr83.6%
associate-/r/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6482.5%
Applied egg-rr82.5%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6472.6%
Simplified72.6%
if -1.3499999999999999e-59 < a < 1.3999999999999999e-23Initial program 69.6%
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--.f6478.2%
Simplified78.2%
if 1.3999999999999999e-23 < a Initial program 69.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.5%
Applied egg-rr87.5%
Taylor expanded in y around inf
Simplified79.3%
Final simplification76.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.55e-59)
(+ x (* (- z t) (/ (- y x) a)))
(if (<= a 2.7e-24)
(+ y (/ (* z (- x y)) t))
(+ x (/ y (/ (- a t) (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.55e-59) {
tmp = x + ((z - t) * ((y - x) / a));
} else if (a <= 2.7e-24) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.55d-59)) then
tmp = x + ((z - t) * ((y - x) / a))
else if (a <= 2.7d-24) then
tmp = y + ((z * (x - y)) / t)
else
tmp = x + (y / ((a - t) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.55e-59) {
tmp = x + ((z - t) * ((y - x) / a));
} else if (a <= 2.7e-24) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.55e-59: tmp = x + ((z - t) * ((y - x) / a)) elif a <= 2.7e-24: tmp = y + ((z * (x - y)) / t) else: tmp = x + (y / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.55e-59) tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / a))); elseif (a <= 2.7e-24) tmp = Float64(y + Float64(Float64(z * Float64(x - y)) / t)); else tmp = Float64(x + 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 (a <= -1.55e-59) tmp = x + ((z - t) * ((y - x) / a)); elseif (a <= 2.7e-24) tmp = y + ((z * (x - y)) / t); else tmp = x + (y / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.55e-59], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e-24], N[(y + N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.55 \cdot 10^{-59}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a}\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-24}:\\
\;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if a < -1.55e-59Initial program 70.5%
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--.f6472.3%
Simplified72.3%
if -1.55e-59 < a < 2.70000000000000007e-24Initial program 69.6%
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--.f6478.2%
Simplified78.2%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6473.5%
Simplified73.5%
if 2.70000000000000007e-24 < a Initial program 69.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.5%
Applied egg-rr87.5%
Taylor expanded in y around inf
Simplified79.3%
Final simplification74.6%
(FPCore (x y z t a)
:precision binary64
(if (<= a -8.5e-61)
(+ x (* (- z t) (/ (- y x) a)))
(if (<= a 3.55e-29)
(+ y (/ (* z (- x y)) t))
(+ x (* (- y x) (/ (- z t) a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e-61) {
tmp = x + ((z - t) * ((y - x) / a));
} else if (a <= 3.55e-29) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + ((y - x) * ((z - 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 (a <= (-8.5d-61)) then
tmp = x + ((z - t) * ((y - x) / a))
else if (a <= 3.55d-29) then
tmp = y + ((z * (x - y)) / t)
else
tmp = x + ((y - x) * ((z - 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 (a <= -8.5e-61) {
tmp = x + ((z - t) * ((y - x) / a));
} else if (a <= 3.55e-29) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + ((y - x) * ((z - t) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.5e-61: tmp = x + ((z - t) * ((y - x) / a)) elif a <= 3.55e-29: tmp = y + ((z * (x - y)) / t) else: tmp = x + ((y - x) * ((z - t) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.5e-61) tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / a))); elseif (a <= 3.55e-29) tmp = Float64(y + Float64(Float64(z * Float64(x - y)) / t)); else tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.5e-61) tmp = x + ((z - t) * ((y - x) / a)); elseif (a <= 3.55e-29) tmp = y + ((z * (x - y)) / t); else tmp = x + ((y - x) * ((z - t) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.5e-61], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.55e-29], N[(y + N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{-61}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a}\\
\mathbf{elif}\;a \leq 3.55 \cdot 10^{-29}:\\
\;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a}\\
\end{array}
\end{array}
if a < -8.50000000000000016e-61Initial program 70.5%
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--.f6472.3%
Simplified72.3%
if -8.50000000000000016e-61 < a < 3.55000000000000002e-29Initial program 69.9%
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--.f6478.7%
Simplified78.7%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6473.9%
Simplified73.9%
if 3.55000000000000002e-29 < a Initial program 69.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--.f6486.5%
Applied egg-rr86.5%
Taylor expanded in a around inf
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6474.3%
Simplified74.3%
Final simplification73.6%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (* (- y x) (/ (- z t) a))))) (if (<= a -6.8e-60) t_1 (if (<= a 7.5e-31) (+ y (/ (* z (- x y)) t)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) * ((z - t) / a));
double tmp;
if (a <= -6.8e-60) {
tmp = t_1;
} else if (a <= 7.5e-31) {
tmp = y + ((z * (x - y)) / 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) * ((z - t) / a))
if (a <= (-6.8d-60)) then
tmp = t_1
else if (a <= 7.5d-31) then
tmp = y + ((z * (x - y)) / 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));
double tmp;
if (a <= -6.8e-60) {
tmp = t_1;
} else if (a <= 7.5e-31) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) * ((z - t) / a)) tmp = 0 if a <= -6.8e-60: tmp = t_1 elif a <= 7.5e-31: tmp = y + ((z * (x - y)) / 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) / a))) tmp = 0.0 if (a <= -6.8e-60) tmp = t_1; elseif (a <= 7.5e-31) tmp = Float64(y + Float64(Float64(z * Float64(x - y)) / 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)); tmp = 0.0; if (a <= -6.8e-60) tmp = t_1; elseif (a <= 7.5e-31) tmp = y + ((z * (x - y)) / 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] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.8e-60], t$95$1, If[LessEqual[a, 7.5e-31], N[(y + N[(N[(z * N[(x - y), $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}\\
\mathbf{if}\;a \leq -6.8 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-31}:\\
\;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.80000000000000013e-60 or 7.49999999999999975e-31 < a Initial program 69.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6485.0%
Applied egg-rr85.0%
Taylor expanded in a around inf
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6472.5%
Simplified72.5%
if -6.80000000000000013e-60 < a < 7.49999999999999975e-31Initial program 69.9%
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--.f6478.7%
Simplified78.7%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6473.9%
Simplified73.9%
Final simplification73.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -7.5e-69) (+ x (/ (- y x) (/ a z))) (if (<= a 2.7e-31) (+ y (/ (* z (- x y)) t)) (+ x (* (- y x) (/ z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.5e-69) {
tmp = x + ((y - x) / (a / z));
} else if (a <= 2.7e-31) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + ((y - x) * (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-7.5d-69)) then
tmp = x + ((y - x) / (a / z))
else if (a <= 2.7d-31) then
tmp = y + ((z * (x - y)) / t)
else
tmp = x + ((y - x) * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.5e-69) {
tmp = x + ((y - x) / (a / z));
} else if (a <= 2.7e-31) {
tmp = y + ((z * (x - y)) / t);
} else {
tmp = x + ((y - x) * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7.5e-69: tmp = x + ((y - x) / (a / z)) elif a <= 2.7e-31: tmp = y + ((z * (x - y)) / t) else: tmp = x + ((y - x) * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.5e-69) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif (a <= 2.7e-31) tmp = Float64(y + Float64(Float64(z * Float64(x - y)) / t)); else tmp = Float64(x + Float64(Float64(y - x) * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7.5e-69) tmp = x + ((y - x) / (a / z)); elseif (a <= 2.7e-31) tmp = y + ((z * (x - y)) / t); else tmp = x + ((y - x) * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.5e-69], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e-31], N[(y + N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.5 \cdot 10^{-69}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-31}:\\
\;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -7.5e-69Initial program 70.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6483.0%
Applied egg-rr83.0%
Taylor expanded in t around 0
/-lowering-/.f6461.9%
Simplified61.9%
if -7.5e-69 < a < 2.70000000000000014e-31Initial program 70.0%
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--.f6479.0%
Simplified79.0%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6475.0%
Simplified75.0%
if 2.70000000000000014e-31 < a Initial program 69.0%
Taylor expanded in t around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6459.1%
Simplified59.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6467.3%
Applied egg-rr67.3%
Final simplification69.0%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (/ y (/ a z))))) (if (<= a -7.8e+49) t_1 (if (<= a 1.6e-22) (* (- y x) (/ z (- a t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (a <= -7.8e+49) {
tmp = t_1;
} else if (a <= 1.6e-22) {
tmp = (y - x) * (z / (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 + (y / (a / z))
if (a <= (-7.8d+49)) then
tmp = t_1
else if (a <= 1.6d-22) then
tmp = (y - x) * (z / (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 + (y / (a / z));
double tmp;
if (a <= -7.8e+49) {
tmp = t_1;
} else if (a <= 1.6e-22) {
tmp = (y - x) * (z / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (a / z)) tmp = 0 if a <= -7.8e+49: tmp = t_1 elif a <= 1.6e-22: tmp = (y - x) * (z / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (a <= -7.8e+49) tmp = t_1; elseif (a <= 1.6e-22) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (a / z)); tmp = 0.0; if (a <= -7.8e+49) tmp = t_1; elseif (a <= 1.6e-22) tmp = (y - x) * (z / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.8e+49], t$95$1, If[LessEqual[a, 1.6e-22], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -7.8 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-22}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.8000000000000002e49 or 1.59999999999999994e-22 < a Initial program 70.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6486.0%
Applied egg-rr86.0%
Taylor expanded in t around 0
/-lowering-/.f6466.5%
Simplified66.5%
Taylor expanded in y around inf
Simplified60.9%
if -7.8000000000000002e49 < a < 1.59999999999999994e-22Initial program 69.6%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6460.2%
Simplified60.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6460.2%
Applied egg-rr60.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ a z)))))
(if (<= a -1.25e-59)
t_1
(if (<= a 2.1e-60) (* z (- (/ x t) (/ y t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (a <= -1.25e-59) {
tmp = t_1;
} else if (a <= 2.1e-60) {
tmp = z * ((x / t) - (y / 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 / (a / z))
if (a <= (-1.25d-59)) then
tmp = t_1
else if (a <= 2.1d-60) then
tmp = z * ((x / t) - (y / 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 / (a / z));
double tmp;
if (a <= -1.25e-59) {
tmp = t_1;
} else if (a <= 2.1e-60) {
tmp = z * ((x / t) - (y / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (a / z)) tmp = 0 if a <= -1.25e-59: tmp = t_1 elif a <= 2.1e-60: tmp = z * ((x / t) - (y / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (a <= -1.25e-59) tmp = t_1; elseif (a <= 2.1e-60) tmp = Float64(z * Float64(Float64(x / t) - Float64(y / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (a / z)); tmp = 0.0; if (a <= -1.25e-59) tmp = t_1; elseif (a <= 2.1e-60) tmp = z * ((x / t) - (y / t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.25e-59], t$95$1, If[LessEqual[a, 2.1e-60], N[(z * N[(N[(x / t), $MachinePrecision] - N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -1.25 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-60}:\\
\;\;\;\;z \cdot \left(\frac{x}{t} - \frac{y}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.25e-59 or 2.09999999999999991e-60 < a Initial program 69.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6484.8%
Applied egg-rr84.8%
Taylor expanded in t around 0
/-lowering-/.f6463.5%
Simplified63.5%
Taylor expanded in y around inf
Simplified54.9%
if -1.25e-59 < a < 2.09999999999999991e-60Initial program 70.3%
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--.f6479.2%
Simplified79.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6451.3%
Simplified51.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.15e+136) (+ y (/ (* (- y x) (- a z)) t)) (+ x (* (- z t) (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.15e+136) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + ((z - t) * ((y - x) / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.15d+136)) then
tmp = y + (((y - x) * (a - z)) / t)
else
tmp = x + ((z - t) * ((y - x) / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.15e+136) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + ((z - t) * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.15e+136: tmp = y + (((y - x) * (a - z)) / t) else: tmp = x + ((z - t) * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.15e+136) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.15e+136) tmp = y + (((y - x) * (a - z)) / t); else tmp = x + ((z - t) * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.15e+136], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{+136}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if t < -1.15e136Initial program 13.4%
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--.f6463.8%
Simplified63.8%
if -1.15e136 < t Initial program 77.9%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6485.0%
Applied egg-rr85.0%
Final simplification82.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.1e+135) y (if (<= t 6.2e+67) (+ x (/ y (/ a z))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.1e+135) {
tmp = y;
} else if (t <= 6.2e+67) {
tmp = x + (y / (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 <= (-3.1d+135)) then
tmp = y
else if (t <= 6.2d+67) then
tmp = x + (y / (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 <= -3.1e+135) {
tmp = y;
} else if (t <= 6.2e+67) {
tmp = x + (y / (a / z));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.1e+135: tmp = y elif t <= 6.2e+67: tmp = x + (y / (a / z)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.1e+135) tmp = y; elseif (t <= 6.2e+67) tmp = Float64(x + Float64(y / Float64(a / z))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.1e+135) tmp = y; elseif (t <= 6.2e+67) tmp = x + (y / (a / z)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.1e+135], y, If[LessEqual[t, 6.2e+67], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{+135}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+67}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.10000000000000022e135 or 6.19999999999999992e67 < t Initial program 37.4%
Taylor expanded in t around inf
Simplified48.3%
if -3.10000000000000022e135 < t < 6.19999999999999992e67Initial program 84.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.7%
Applied egg-rr90.7%
Taylor expanded in t around 0
/-lowering-/.f6465.5%
Simplified65.5%
Taylor expanded in y around inf
Simplified52.7%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.42e+135) y (if (<= t 1.1e+75) (* x (- 1.0 (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.42e+135) {
tmp = y;
} else if (t <= 1.1e+75) {
tmp = x * (1.0 - (z / 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 <= (-1.42d+135)) then
tmp = y
else if (t <= 1.1d+75) then
tmp = x * (1.0d0 - (z / 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 <= -1.42e+135) {
tmp = y;
} else if (t <= 1.1e+75) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.42e+135: tmp = y elif t <= 1.1e+75: tmp = x * (1.0 - (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.42e+135) tmp = y; elseif (t <= 1.1e+75) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.42e+135) tmp = y; elseif (t <= 1.1e+75) tmp = x * (1.0 - (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.42e+135], y, If[LessEqual[t, 1.1e+75], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.42 \cdot 10^{+135}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.41999999999999998e135 or 1.10000000000000006e75 < t Initial program 34.9%
Taylor expanded in t around inf
Simplified48.8%
if -1.41999999999999998e135 < t < 1.10000000000000006e75Initial program 85.1%
Taylor expanded in t around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6460.7%
Simplified60.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f6448.3%
Simplified48.3%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* x (/ z t)))) (if (<= z -3.5e+44) t_1 (if (<= z 2.1e+177) (+ x y) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (z / t);
double tmp;
if (z <= -3.5e+44) {
tmp = t_1;
} else if (z <= 2.1e+177) {
tmp = x + y;
} 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)
if (z <= (-3.5d+44)) then
tmp = t_1
else if (z <= 2.1d+177) then
tmp = x + y
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);
double tmp;
if (z <= -3.5e+44) {
tmp = t_1;
} else if (z <= 2.1e+177) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (z / t) tmp = 0 if z <= -3.5e+44: tmp = t_1 elif z <= 2.1e+177: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(z / t)) tmp = 0.0 if (z <= -3.5e+44) tmp = t_1; elseif (z <= 2.1e+177) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (z / t); tmp = 0.0; if (z <= -3.5e+44) tmp = t_1; elseif (z <= 2.1e+177) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+44], t$95$1, If[LessEqual[z, 2.1e+177], N[(x + y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{z}{t}\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+177}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.4999999999999999e44 or 2.10000000000000013e177 < z Initial program 78.3%
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--.f6457.0%
Simplified57.0%
Taylor expanded in x around -inf
mul-1-negN/A
div-subN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
/-lowering-/.f64N/A
mul-1-negN/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-lowering-+.f64N/A
neg-sub0N/A
--lowering--.f6443.2%
Simplified43.2%
Taylor expanded in a around 0
/-lowering-/.f6441.7%
Simplified41.7%
if -3.4999999999999999e44 < z < 2.10000000000000013e177Initial program 66.2%
Taylor expanded in t around inf
--lowering--.f6420.3%
Simplified20.3%
Taylor expanded in y around inf
Simplified37.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.42e+135) y (if (<= t 7.5e-191) x (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.42e+135) {
tmp = y;
} else if (t <= 7.5e-191) {
tmp = x;
} else {
tmp = x + 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.42d+135)) then
tmp = y
else if (t <= 7.5d-191) then
tmp = x
else
tmp = x + 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.42e+135) {
tmp = y;
} else if (t <= 7.5e-191) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.42e+135: tmp = y elif t <= 7.5e-191: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.42e+135) tmp = y; elseif (t <= 7.5e-191) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.42e+135) tmp = y; elseif (t <= 7.5e-191) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.42e+135], y, If[LessEqual[t, 7.5e-191], x, N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.42 \cdot 10^{+135}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-191}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.41999999999999998e135Initial program 13.4%
Taylor expanded in t around inf
Simplified52.5%
if -1.41999999999999998e135 < t < 7.4999999999999995e-191Initial program 88.6%
Taylor expanded in a around inf
Simplified34.8%
if 7.4999999999999995e-191 < t Initial program 66.4%
Taylor expanded in t around inf
--lowering--.f6423.7%
Simplified23.7%
Taylor expanded in y around inf
Simplified34.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.6e+135) y (if (<= t 6.1e+58) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.6e+135) {
tmp = y;
} else if (t <= 6.1e+58) {
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.6d+135)) then
tmp = y
else if (t <= 6.1d+58) 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.6e+135) {
tmp = y;
} else if (t <= 6.1e+58) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.6e+135: tmp = y elif t <= 6.1e+58: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.6e+135) tmp = y; elseif (t <= 6.1e+58) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.6e+135) tmp = y; elseif (t <= 6.1e+58) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.6e+135], y, If[LessEqual[t, 6.1e+58], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+135}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6.1 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.59999999999999987e135 or 6.1000000000000002e58 < t Initial program 37.4%
Taylor expanded in t around inf
Simplified48.3%
if -1.59999999999999987e135 < t < 6.1000000000000002e58Initial program 84.9%
Taylor expanded in a around inf
Simplified29.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 69.8%
Taylor expanded in a around inf
Simplified23.6%
(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 2024152
(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))))