
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z)))))
(t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -5e-288)
t_2
(if (<= t_2 0.0)
(- t (/ (* (- t x) (- y a)) z))
(if (<= t_2 2e+305) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -5e-288) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (t_2 <= 2e+305) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -5e-288) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (t_2 <= 2e+305) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) t_2 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -5e-288: tmp = t_2 elif t_2 <= 0.0: tmp = t - (((t - x) * (y - a)) / z) elif t_2 <= 2e+305: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -5e-288) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); elseif (t_2 <= 2e+305) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); t_2 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -5e-288) tmp = t_2; elseif (t_2 <= 0.0) tmp = t - (((t - x) * (y - a)) / z); elseif (t_2 <= 2e+305) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-288], t$95$2, If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+305], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-288}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+305}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0 or 1.9999999999999999e305 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 35.2%
associate-/l*79.3%
Simplified79.3%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000011e-288 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 1.9999999999999999e305Initial program 97.6%
if -5.00000000000000011e-288 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 5.1%
associate-/l*4.8%
Simplified4.8%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub99.9%
mul-1-neg99.9%
distribute-lft-out--99.9%
associate-*r/99.9%
mul-1-neg99.9%
unsub-neg99.9%
distribute-rgt-out--99.9%
Simplified99.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_1 -5e-288)
(+ x (/ (- t x) (/ (- a z) (- y z))))
(if (<= t_1 0.0)
(+ (+ t (/ (* y (- x t)) z)) (/ (* (- t x) a) z))
(fma (- t x) (/ (- y z) (- a z)) x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -5e-288) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else if (t_1 <= 0.0) {
tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z);
} else {
tmp = fma((t - x), ((y - z) / (a - z)), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_1 <= -5e-288) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); elseif (t_1 <= 0.0) tmp = Float64(Float64(t + Float64(Float64(y * Float64(x - t)) / z)) + Float64(Float64(Float64(t - x) * a) / z)); else tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-288], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-288}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\left(t + \frac{y \cdot \left(x - t\right)}{z}\right) + \frac{\left(t - x\right) \cdot a}{z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000011e-288Initial program 72.5%
associate-/l*82.2%
Simplified82.2%
*-commutative82.2%
associate-*l/72.5%
associate-*r/88.8%
clear-num88.7%
un-div-inv89.0%
Applied egg-rr89.0%
if -5.00000000000000011e-288 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 5.1%
associate-/l*4.8%
Simplified4.8%
Taylor expanded in z around inf 100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
mul-1-neg100.0%
Simplified100.0%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 71.1%
+-commutative71.1%
*-commutative71.1%
associate-/l*89.9%
fma-define89.9%
Simplified89.9%
Final simplification90.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -5e-288) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ (+ t (/ (* y (- x t)) z)) (/ (* (- t x) a) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-288) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-5d-288)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-288) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -5e-288) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -5e-288) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(Float64(t + Float64(Float64(y * Float64(x - t)) / z)) + Float64(Float64(Float64(t - x) * a) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -5e-288) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-288], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-288} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;\left(t + \frac{y \cdot \left(x - t\right)}{z}\right) + \frac{\left(t - x\right) \cdot a}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000011e-288 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 71.8%
associate-/l*83.6%
Simplified83.6%
*-commutative83.6%
associate-*l/71.8%
associate-*r/89.4%
clear-num89.3%
un-div-inv89.4%
Applied egg-rr89.4%
if -5.00000000000000011e-288 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 5.1%
associate-/l*4.8%
Simplified4.8%
Taylor expanded in z around inf 100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification90.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -5e-288) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(- t (/ (* (- t x) (- y a)) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-288) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t - (((t - x) * (y - a)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-5d-288)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t - (((t - x) * (y - a)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-288) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t - (((t - x) * (y - a)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -5e-288) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t - (((t - x) * (y - a)) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -5e-288) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -5e-288) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t - (((t - x) * (y - a)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-288], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-288} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000011e-288 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 71.8%
associate-/l*83.6%
Simplified83.6%
*-commutative83.6%
associate-*l/71.8%
associate-*r/89.4%
clear-num89.3%
un-div-inv89.4%
Applied egg-rr89.4%
if -5.00000000000000011e-288 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 5.1%
associate-/l*4.8%
Simplified4.8%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub99.9%
mul-1-neg99.9%
distribute-lft-out--99.9%
associate-*r/99.9%
mul-1-neg99.9%
unsub-neg99.9%
distribute-rgt-out--99.9%
Simplified99.9%
Final simplification90.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))))
(if (<= a -7e-124)
t_1
(if (<= a -4.3e-225)
(* t (- 1.0 (/ y z)))
(if (<= a 4.1e-16)
(* y (/ (- x t) z))
(if (<= a 75000000.0) (/ t (- 1.0 (/ a z))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (a <= -7e-124) {
tmp = t_1;
} else if (a <= -4.3e-225) {
tmp = t * (1.0 - (y / z));
} else if (a <= 4.1e-16) {
tmp = y * ((x - t) / z);
} else if (a <= 75000000.0) {
tmp = t / (1.0 - (a / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (t * (y / a))
if (a <= (-7d-124)) then
tmp = t_1
else if (a <= (-4.3d-225)) then
tmp = t * (1.0d0 - (y / z))
else if (a <= 4.1d-16) then
tmp = y * ((x - t) / z)
else if (a <= 75000000.0d0) then
tmp = t / (1.0d0 - (a / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (a <= -7e-124) {
tmp = t_1;
} else if (a <= -4.3e-225) {
tmp = t * (1.0 - (y / z));
} else if (a <= 4.1e-16) {
tmp = y * ((x - t) / z);
} else if (a <= 75000000.0) {
tmp = t / (1.0 - (a / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) tmp = 0 if a <= -7e-124: tmp = t_1 elif a <= -4.3e-225: tmp = t * (1.0 - (y / z)) elif a <= 4.1e-16: tmp = y * ((x - t) / z) elif a <= 75000000.0: tmp = t / (1.0 - (a / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -7e-124) tmp = t_1; elseif (a <= -4.3e-225) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (a <= 4.1e-16) tmp = Float64(y * Float64(Float64(x - t) / z)); elseif (a <= 75000000.0) tmp = Float64(t / Float64(1.0 - Float64(a / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); tmp = 0.0; if (a <= -7e-124) tmp = t_1; elseif (a <= -4.3e-225) tmp = t * (1.0 - (y / z)); elseif (a <= 4.1e-16) tmp = y * ((x - t) / z); elseif (a <= 75000000.0) tmp = t / (1.0 - (a / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7e-124], t$95$1, If[LessEqual[a, -4.3e-225], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.1e-16], N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 75000000.0], N[(t / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -7 \cdot 10^{-124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.3 \cdot 10^{-225}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{-16}:\\
\;\;\;\;y \cdot \frac{x - t}{z}\\
\mathbf{elif}\;a \leq 75000000:\\
\;\;\;\;\frac{t}{1 - \frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.9999999999999997e-124 or 7.5e7 < a Initial program 66.6%
associate-/l*82.6%
Simplified82.6%
Taylor expanded in z around 0 56.4%
associate-/l*67.4%
Simplified67.4%
Taylor expanded in t around inf 55.8%
associate-/l*62.6%
Simplified62.6%
if -6.9999999999999997e-124 < a < -4.29999999999999979e-225Initial program 70.8%
associate-/l*76.7%
Simplified76.7%
Taylor expanded in a around 0 52.9%
mul-1-neg52.9%
unsub-neg52.9%
associate-/l*69.6%
div-sub69.9%
sub-neg69.9%
*-inverses69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in t around inf 61.2%
if -4.29999999999999979e-225 < a < 4.10000000000000006e-16Initial program 66.7%
associate-/l*69.4%
Simplified69.4%
Taylor expanded in a around 0 56.3%
mul-1-neg56.3%
unsub-neg56.3%
associate-/l*65.5%
div-sub65.5%
sub-neg65.5%
*-inverses65.5%
metadata-eval65.5%
Simplified65.5%
Taylor expanded in y around -inf 52.3%
mul-1-neg52.3%
associate-/l*58.1%
Simplified58.1%
if 4.10000000000000006e-16 < a < 7.5e7Initial program 76.9%
associate-/l*76.4%
Simplified76.4%
*-commutative76.4%
associate-*l/76.9%
associate-*r/77.1%
clear-num77.1%
un-div-inv77.1%
Applied egg-rr77.1%
div-sub77.1%
Applied egg-rr77.1%
Taylor expanded in y around 0 65.2%
associate--l+65.2%
div-sub65.2%
mul-1-neg65.2%
unsub-neg65.2%
Simplified65.2%
Taylor expanded in x around 0 75.2%
Final simplification61.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- t x) (- a z)))))
(if (<= y -0.017)
t_1
(if (<= y -2.05e-107)
(* t (/ (- y z) (- a z)))
(if (<= y 1.45e-31) (- x (/ (* z t) a)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -0.017) {
tmp = t_1;
} else if (y <= -2.05e-107) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 1.45e-31) {
tmp = x - ((z * t) / 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 * ((t - x) / (a - z))
if (y <= (-0.017d0)) then
tmp = t_1
else if (y <= (-2.05d-107)) then
tmp = t * ((y - z) / (a - z))
else if (y <= 1.45d-31) then
tmp = x - ((z * t) / 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 * ((t - x) / (a - z));
double tmp;
if (y <= -0.017) {
tmp = t_1;
} else if (y <= -2.05e-107) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 1.45e-31) {
tmp = x - ((z * t) / a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / (a - z)) tmp = 0 if y <= -0.017: tmp = t_1 elif y <= -2.05e-107: tmp = t * ((y - z) / (a - z)) elif y <= 1.45e-31: tmp = x - ((z * t) / a) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (y <= -0.017) tmp = t_1; elseif (y <= -2.05e-107) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (y <= 1.45e-31) tmp = Float64(x - Float64(Float64(z * t) / a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / (a - z)); tmp = 0.0; if (y <= -0.017) tmp = t_1; elseif (y <= -2.05e-107) tmp = t * ((y - z) / (a - z)); elseif (y <= 1.45e-31) tmp = x - ((z * t) / a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.017], t$95$1, If[LessEqual[y, -2.05e-107], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e-31], N[(x - N[(N[(z * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;y \leq -0.017:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-107}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-31}:\\
\;\;\;\;x - \frac{z \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -0.017000000000000001 or 1.45e-31 < y Initial program 62.4%
associate-/l*83.4%
Simplified83.4%
Taylor expanded in y around inf 70.2%
div-sub71.6%
Simplified71.6%
if -0.017000000000000001 < y < -2.05e-107Initial program 69.2%
associate-/l*67.5%
Simplified67.5%
Taylor expanded in x around 0 53.7%
associate-/l*64.1%
Simplified64.1%
if -2.05e-107 < y < 1.45e-31Initial program 74.3%
associate-/l*73.9%
Simplified73.9%
Taylor expanded in a around inf 57.2%
associate-/l*59.4%
Simplified59.4%
Taylor expanded in t around inf 56.3%
Taylor expanded in y around 0 55.1%
associate-*r/55.1%
mul-1-neg55.1%
distribute-rgt-neg-out55.1%
Simplified55.1%
Final simplification64.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* x (/ y a)))))
(if (<= x -3.6e+25)
t_1
(if (<= x -3.3e-82)
(+ x (* y (/ t a)))
(if (<= x 1.25e+60) (* t (/ (- y z) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (x * (y / a));
double tmp;
if (x <= -3.6e+25) {
tmp = t_1;
} else if (x <= -3.3e-82) {
tmp = x + (y * (t / a));
} else if (x <= 1.25e+60) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (x * (y / a))
if (x <= (-3.6d+25)) then
tmp = t_1
else if (x <= (-3.3d-82)) then
tmp = x + (y * (t / a))
else if (x <= 1.25d+60) then
tmp = t * ((y - z) / (a - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (x * (y / a));
double tmp;
if (x <= -3.6e+25) {
tmp = t_1;
} else if (x <= -3.3e-82) {
tmp = x + (y * (t / a));
} else if (x <= 1.25e+60) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (x * (y / a)) tmp = 0 if x <= -3.6e+25: tmp = t_1 elif x <= -3.3e-82: tmp = x + (y * (t / a)) elif x <= 1.25e+60: tmp = t * ((y - z) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(x * Float64(y / a))) tmp = 0.0 if (x <= -3.6e+25) tmp = t_1; elseif (x <= -3.3e-82) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (x <= 1.25e+60) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (x * (y / a)); tmp = 0.0; if (x <= -3.6e+25) tmp = t_1; elseif (x <= -3.3e-82) tmp = x + (y * (t / a)); elseif (x <= 1.25e+60) tmp = t * ((y - z) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.6e+25], t$95$1, If[LessEqual[x, -3.3e-82], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+60], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - x \cdot \frac{y}{a}\\
\mathbf{if}\;x \leq -3.6 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.3 \cdot 10^{-82}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+60}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.60000000000000015e25 or 1.24999999999999994e60 < x Initial program 53.7%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in z around 0 46.5%
associate-/l*56.8%
Simplified56.8%
Taylor expanded in t around 0 40.5%
mul-1-neg40.5%
associate-/l*50.8%
distribute-rgt-neg-in50.8%
distribute-frac-neg250.8%
Simplified50.8%
if -3.60000000000000015e25 < x < -3.30000000000000022e-82Initial program 83.0%
associate-/l*89.8%
Simplified89.8%
Taylor expanded in z around 0 51.7%
associate-/l*61.7%
Simplified61.7%
Taylor expanded in t around inf 58.2%
if -3.30000000000000022e-82 < x < 1.24999999999999994e60Initial program 75.1%
associate-/l*82.1%
Simplified82.1%
Taylor expanded in x around 0 61.0%
associate-/l*76.2%
Simplified76.2%
Final simplification64.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.6e+123) (not (<= z 4.7e+168))) (- t (* y (/ (- t x) z))) (+ x (* (- y z) (/ (- t x) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.6e+123) || !(z <= 4.7e+168)) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = x + ((y - z) * ((t - x) / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.6d+123)) .or. (.not. (z <= 4.7d+168))) then
tmp = t - (y * ((t - x) / z))
else
tmp = x + ((y - z) * ((t - x) / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.6e+123) || !(z <= 4.7e+168)) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = x + ((y - z) * ((t - x) / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.6e+123) or not (z <= 4.7e+168): tmp = t - (y * ((t - x) / z)) else: tmp = x + ((y - z) * ((t - x) / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.6e+123) || !(z <= 4.7e+168)) tmp = Float64(t - Float64(y * Float64(Float64(t - x) / z))); else tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.6e+123) || ~((z <= 4.7e+168))) tmp = t - (y * ((t - x) / z)); else tmp = x + ((y - z) * ((t - x) / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.6e+123], N[Not[LessEqual[z, 4.7e+168]], $MachinePrecision]], N[(t - N[(y * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+123} \lor \neg \left(z \leq 4.7 \cdot 10^{+168}\right):\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\end{array}
\end{array}
if z < -1.60000000000000002e123 or 4.69999999999999961e168 < z Initial program 28.3%
associate-/l*51.8%
Simplified51.8%
Taylor expanded in z around inf 63.0%
associate-*r/63.0%
associate-*r*63.0%
mul-1-neg63.0%
mul-1-neg63.0%
Simplified63.0%
Taylor expanded in a around 0 61.6%
mul-1-neg61.6%
associate-*r/77.0%
sub-neg77.0%
Simplified77.0%
if -1.60000000000000002e123 < z < 4.69999999999999961e168Initial program 82.9%
associate-/l*88.9%
Simplified88.9%
Final simplification85.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.3e+93)
t
(if (<= z 8e-296)
x
(if (<= z 5.3e-55) (* t (/ y a)) (if (<= z 2e+97) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.3e+93) {
tmp = t;
} else if (z <= 8e-296) {
tmp = x;
} else if (z <= 5.3e-55) {
tmp = t * (y / a);
} else if (z <= 2e+97) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.3d+93)) then
tmp = t
else if (z <= 8d-296) then
tmp = x
else if (z <= 5.3d-55) then
tmp = t * (y / a)
else if (z <= 2d+97) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.3e+93) {
tmp = t;
} else if (z <= 8e-296) {
tmp = x;
} else if (z <= 5.3e-55) {
tmp = t * (y / a);
} else if (z <= 2e+97) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.3e+93: tmp = t elif z <= 8e-296: tmp = x elif z <= 5.3e-55: tmp = t * (y / a) elif z <= 2e+97: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.3e+93) tmp = t; elseif (z <= 8e-296) tmp = x; elseif (z <= 5.3e-55) tmp = Float64(t * Float64(y / a)); elseif (z <= 2e+97) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.3e+93) tmp = t; elseif (z <= 8e-296) tmp = x; elseif (z <= 5.3e-55) tmp = t * (y / a); elseif (z <= 2e+97) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.3e+93], t, If[LessEqual[z, 8e-296], x, If[LessEqual[z, 5.3e-55], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+97], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+93}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-296}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-55}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+97}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.3000000000000002e93 or 2.0000000000000001e97 < z Initial program 32.9%
associate-/l*56.7%
Simplified56.7%
Taylor expanded in z around inf 47.9%
if -2.3000000000000002e93 < z < 8e-296 or 5.3000000000000003e-55 < z < 2.0000000000000001e97Initial program 83.6%
associate-/l*88.5%
Simplified88.5%
Taylor expanded in a around inf 37.5%
if 8e-296 < z < 5.3000000000000003e-55Initial program 88.8%
associate-/l*92.0%
Simplified92.0%
Taylor expanded in x around 0 48.2%
associate-/l*55.1%
Simplified55.1%
Taylor expanded in z around 0 34.0%
associate-/l*41.9%
Simplified41.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -8.5e+116) (not (<= z 4.5e+64))) (- t (* y (/ (- t x) z))) (+ x (* (- t x) (/ (- y z) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -8.5e+116) || !(z <= 4.5e+64)) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = x + ((t - x) * ((y - z) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-8.5d+116)) .or. (.not. (z <= 4.5d+64))) then
tmp = t - (y * ((t - x) / z))
else
tmp = x + ((t - x) * ((y - z) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -8.5e+116) || !(z <= 4.5e+64)) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = x + ((t - x) * ((y - z) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -8.5e+116) or not (z <= 4.5e+64): tmp = t - (y * ((t - x) / z)) else: tmp = x + ((t - x) * ((y - z) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -8.5e+116) || !(z <= 4.5e+64)) tmp = Float64(t - Float64(y * Float64(Float64(t - x) / z))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -8.5e+116) || ~((z <= 4.5e+64))) tmp = t - (y * ((t - x) / z)); else tmp = x + ((t - x) * ((y - z) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -8.5e+116], N[Not[LessEqual[z, 4.5e+64]], $MachinePrecision]], N[(t - N[(y * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+116} \lor \neg \left(z \leq 4.5 \cdot 10^{+64}\right):\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\end{array}
\end{array}
if z < -8.5000000000000002e116 or 4.49999999999999973e64 < z Initial program 35.5%
associate-/l*57.6%
Simplified57.6%
Taylor expanded in z around inf 63.5%
associate-*r/63.5%
associate-*r*63.5%
mul-1-neg63.5%
mul-1-neg63.5%
Simplified63.5%
Taylor expanded in a around 0 60.1%
mul-1-neg60.1%
associate-*r/73.7%
sub-neg73.7%
Simplified73.7%
if -8.5000000000000002e116 < z < 4.49999999999999973e64Initial program 84.6%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in a around inf 66.1%
associate-/l*77.5%
Simplified77.5%
Final simplification76.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4.15e+43) (not (<= z 2.1e+65))) (- t (* y (/ (- t x) z))) (+ x (* y (/ (- t x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.15e+43) || !(z <= 2.1e+65)) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = x + (y * ((t - x) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-4.15d+43)) .or. (.not. (z <= 2.1d+65))) then
tmp = t - (y * ((t - x) / z))
else
tmp = x + (y * ((t - x) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.15e+43) || !(z <= 2.1e+65)) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = x + (y * ((t - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4.15e+43) or not (z <= 2.1e+65): tmp = t - (y * ((t - x) / z)) else: tmp = x + (y * ((t - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4.15e+43) || !(z <= 2.1e+65)) tmp = Float64(t - Float64(y * Float64(Float64(t - x) / z))); else tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4.15e+43) || ~((z <= 2.1e+65))) tmp = t - (y * ((t - x) / z)); else tmp = x + (y * ((t - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.15e+43], N[Not[LessEqual[z, 2.1e+65]], $MachinePrecision]], N[(t - N[(y * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.15 \cdot 10^{+43} \lor \neg \left(z \leq 2.1 \cdot 10^{+65}\right):\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if z < -4.14999999999999979e43 or 2.09999999999999991e65 < z Initial program 41.3%
associate-/l*61.9%
Simplified61.9%
Taylor expanded in z around inf 61.3%
associate-*r/61.3%
associate-*r*61.3%
mul-1-neg61.3%
mul-1-neg61.3%
Simplified61.3%
Taylor expanded in a around 0 58.5%
mul-1-neg58.5%
associate-*r/70.2%
sub-neg70.2%
Simplified70.2%
if -4.14999999999999979e43 < z < 2.09999999999999991e65Initial program 85.1%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in z around 0 63.1%
associate-/l*72.3%
Simplified72.3%
Final simplification71.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7.5e+23) (not (<= z 2e+71))) (* t (/ (- y z) (- a z))) (+ x (* y (/ (- t x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.5e+23) || !(z <= 2e+71)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y * ((t - x) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-7.5d+23)) .or. (.not. (z <= 2d+71))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x + (y * ((t - x) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.5e+23) || !(z <= 2e+71)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y * ((t - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7.5e+23) or not (z <= 2e+71): tmp = t * ((y - z) / (a - z)) else: tmp = x + (y * ((t - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7.5e+23) || !(z <= 2e+71)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7.5e+23) || ~((z <= 2e+71))) tmp = t * ((y - z) / (a - z)); else tmp = x + (y * ((t - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7.5e+23], N[Not[LessEqual[z, 2e+71]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+23} \lor \neg \left(z \leq 2 \cdot 10^{+71}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if z < -7.49999999999999987e23 or 2.0000000000000001e71 < z Initial program 41.9%
associate-/l*61.4%
Simplified61.4%
Taylor expanded in x around 0 42.4%
associate-/l*63.0%
Simplified63.0%
if -7.49999999999999987e23 < z < 2.0000000000000001e71Initial program 85.1%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around 0 63.5%
associate-/l*73.4%
Simplified73.4%
Final simplification69.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -7e-124) (not (<= a 105000.0))) (+ x (* t (/ y a))) (* t (- 1.0 (/ y z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -7e-124) || !(a <= 105000.0)) {
tmp = x + (t * (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-7d-124)) .or. (.not. (a <= 105000.0d0))) then
tmp = x + (t * (y / a))
else
tmp = t * (1.0d0 - (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -7e-124) || !(a <= 105000.0)) {
tmp = x + (t * (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -7e-124) or not (a <= 105000.0): tmp = x + (t * (y / a)) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -7e-124) || !(a <= 105000.0)) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -7e-124) || ~((a <= 105000.0))) tmp = x + (t * (y / a)); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -7e-124], N[Not[LessEqual[a, 105000.0]], $MachinePrecision]], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7 \cdot 10^{-124} \lor \neg \left(a \leq 105000\right):\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if a < -6.9999999999999997e-124 or 105000 < a Initial program 66.8%
associate-/l*82.7%
Simplified82.7%
Taylor expanded in z around 0 56.0%
associate-/l*67.0%
Simplified67.0%
Taylor expanded in t around inf 55.5%
associate-/l*62.3%
Simplified62.3%
if -6.9999999999999997e-124 < a < 105000Initial program 68.2%
associate-/l*71.6%
Simplified71.6%
Taylor expanded in a around 0 53.7%
mul-1-neg53.7%
unsub-neg53.7%
associate-/l*64.2%
div-sub64.3%
sub-neg64.3%
*-inverses64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in t around inf 53.3%
Final simplification58.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -5.2e-85) x (if (<= a 6.5e+92) (* t (- 1.0 (/ y z))) (* t (/ (- y z) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.2e-85) {
tmp = x;
} else if (a <= 6.5e+92) {
tmp = t * (1.0 - (y / z));
} else {
tmp = t * ((y - z) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-5.2d-85)) then
tmp = x
else if (a <= 6.5d+92) then
tmp = t * (1.0d0 - (y / z))
else
tmp = t * ((y - z) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.2e-85) {
tmp = x;
} else if (a <= 6.5e+92) {
tmp = t * (1.0 - (y / z));
} else {
tmp = t * ((y - z) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5.2e-85: tmp = x elif a <= 6.5e+92: tmp = t * (1.0 - (y / z)) else: tmp = t * ((y - z) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.2e-85) tmp = x; elseif (a <= 6.5e+92) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = Float64(t * Float64(Float64(y - z) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5.2e-85) tmp = x; elseif (a <= 6.5e+92) tmp = t * (1.0 - (y / z)); else tmp = t * ((y - z) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.2e-85], x, If[LessEqual[a, 6.5e+92], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.2 \cdot 10^{-85}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{+92}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\end{array}
\end{array}
if a < -5.20000000000000023e-85Initial program 65.9%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in a around inf 47.6%
if -5.20000000000000023e-85 < a < 6.49999999999999999e92Initial program 67.9%
associate-/l*72.2%
Simplified72.2%
Taylor expanded in a around 0 46.6%
mul-1-neg46.6%
unsub-neg46.6%
associate-/l*53.7%
div-sub53.8%
sub-neg53.8%
*-inverses53.8%
metadata-eval53.8%
Simplified53.8%
Taylor expanded in t around inf 48.3%
if 6.49999999999999999e92 < a Initial program 68.0%
associate-/l*90.8%
Simplified90.8%
Taylor expanded in x around 0 39.1%
associate-/l*54.8%
Simplified54.8%
Taylor expanded in a around inf 48.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -5.2e-85) x (if (<= a 1.02e+97) (* t (- 1.0 (/ y z))) (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.2e-85) {
tmp = x;
} else if (a <= 1.02e+97) {
tmp = t * (1.0 - (y / z));
} else {
tmp = t * (y / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-5.2d-85)) then
tmp = x
else if (a <= 1.02d+97) then
tmp = t * (1.0d0 - (y / z))
else
tmp = t * (y / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.2e-85) {
tmp = x;
} else if (a <= 1.02e+97) {
tmp = t * (1.0 - (y / z));
} else {
tmp = t * (y / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5.2e-85: tmp = x elif a <= 1.02e+97: tmp = t * (1.0 - (y / z)) else: tmp = t * (y / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.2e-85) tmp = x; elseif (a <= 1.02e+97) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = Float64(t * Float64(y / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5.2e-85) tmp = x; elseif (a <= 1.02e+97) tmp = t * (1.0 - (y / z)); else tmp = t * (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.2e-85], x, If[LessEqual[a, 1.02e+97], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.2 \cdot 10^{-85}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{+97}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if a < -5.20000000000000023e-85Initial program 65.9%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in a around inf 47.6%
if -5.20000000000000023e-85 < a < 1.02000000000000003e97Initial program 67.9%
associate-/l*72.2%
Simplified72.2%
Taylor expanded in a around 0 46.6%
mul-1-neg46.6%
unsub-neg46.6%
associate-/l*53.7%
div-sub53.8%
sub-neg53.8%
*-inverses53.8%
metadata-eval53.8%
Simplified53.8%
Taylor expanded in t around inf 48.3%
if 1.02000000000000003e97 < a Initial program 68.0%
associate-/l*90.8%
Simplified90.8%
Taylor expanded in x around 0 39.1%
associate-/l*54.8%
Simplified54.8%
Taylor expanded in z around 0 27.8%
associate-/l*39.0%
Simplified39.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.65e+100) t (if (<= z 1.6e+102) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e+100) {
tmp = t;
} else if (z <= 1.6e+102) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.65d+100)) then
tmp = t
else if (z <= 1.6d+102) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e+100) {
tmp = t;
} else if (z <= 1.6e+102) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.65e+100: tmp = t elif z <= 1.6e+102: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.65e+100) tmp = t; elseif (z <= 1.6e+102) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.65e+100) tmp = t; elseif (z <= 1.6e+102) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.65e+100], t, If[LessEqual[z, 1.6e+102], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{+100}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.6500000000000001e100 or 1.6e102 < z Initial program 32.9%
associate-/l*56.7%
Simplified56.7%
Taylor expanded in z around inf 47.9%
if -1.6500000000000001e100 < z < 1.6e102Initial program 85.4%
associate-/l*89.7%
Simplified89.7%
Taylor expanded in a around inf 33.9%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 67.3%
associate-/l*78.3%
Simplified78.3%
Taylor expanded in z around inf 21.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024107
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))