
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -2e-268)
(fma (- y x) (/ (- z t) (- a t)) x)
(if (<= t_1 5e-279)
(+ y (* (- z a) (/ x t)))
(+ x (* (- z t) (* (- x y) (/ 1.0 (- t a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -2e-268) {
tmp = fma((y - x), ((z - t) / (a - t)), x);
} else if (t_1 <= 5e-279) {
tmp = y + ((z - a) * (x / t));
} else {
tmp = x + ((z - t) * ((x - y) * (1.0 / (t - a))));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -2e-268) tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); elseif (t_1 <= 5e-279) tmp = Float64(y + Float64(Float64(z - a) * Float64(x / t))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(x - y) * Float64(1.0 / Float64(t - a))))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-268], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$1, 5e-279], N[(y + N[(N[(z - a), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] * N[(1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-268}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-279}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \left(\left(x - y\right) \cdot \frac{1}{t - a}\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999992e-268Initial program 71.9%
+-commutative71.9%
associate-/l*92.2%
fma-define92.3%
Simplified92.3%
if -1.99999999999999992e-268 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.99999999999999969e-279Initial program 7.3%
Taylor expanded in t around inf 98.5%
associate--l+98.5%
distribute-lft-out--98.5%
div-sub98.5%
mul-1-neg98.5%
unsub-neg98.5%
div-sub98.5%
associate-/l*99.6%
associate-/l*99.8%
distribute-rgt-out--99.7%
Simplified99.7%
Taylor expanded in y around 0 99.7%
neg-mul-199.7%
distribute-neg-frac299.7%
Simplified99.7%
if 4.99999999999999969e-279 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 74.4%
div-inv74.3%
*-commutative74.3%
associate-*l*89.2%
Applied egg-rr89.2%
Final simplification91.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (/ (- z a) (/ t (- x y)))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -2e-268)
t_2
(if (<= t_2 5e-279)
(+ y (* (- z a) (/ x t)))
(if (<= t_2 1e+279) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + ((z - a) / (t / (x - y)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -2e-268) {
tmp = t_2;
} else if (t_2 <= 5e-279) {
tmp = y + ((z - a) * (x / t));
} else if (t_2 <= 1e+279) {
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 = y + ((z - a) / (t / (x - y)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -2e-268) {
tmp = t_2;
} else if (t_2 <= 5e-279) {
tmp = y + ((z - a) * (x / t));
} else if (t_2 <= 1e+279) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + ((z - a) / (t / (x - y))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -2e-268: tmp = t_2 elif t_2 <= 5e-279: tmp = y + ((z - a) * (x / t)) elif t_2 <= 1e+279: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(Float64(z - a) / Float64(t / Float64(x - y)))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -2e-268) tmp = t_2; elseif (t_2 <= 5e-279) tmp = Float64(y + Float64(Float64(z - a) * Float64(x / t))); elseif (t_2 <= 1e+279) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + ((z - a) / (t / (x - y))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -2e-268) tmp = t_2; elseif (t_2 <= 5e-279) tmp = y + ((z - a) * (x / t)); elseif (t_2 <= 1e+279) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(N[(z - a), $MachinePrecision] / N[(t / N[(x - y), $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, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -2e-268], t$95$2, If[LessEqual[t$95$2, 5e-279], N[(y + N[(N[(z - a), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+279], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \frac{z - a}{\frac{t}{x - y}}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-268}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-279}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;t\_2 \leq 10^{+279}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 1.00000000000000006e279 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 40.6%
Taylor expanded in t around inf 47.3%
associate--l+47.3%
distribute-lft-out--47.3%
div-sub47.3%
mul-1-neg47.3%
unsub-neg47.3%
div-sub47.3%
associate-/l*58.8%
associate-/l*70.9%
distribute-rgt-out--75.1%
Simplified75.1%
*-commutative75.1%
clear-num75.1%
un-div-inv75.2%
Applied egg-rr75.2%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999992e-268 or 4.99999999999999969e-279 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.00000000000000006e279Initial program 96.8%
if -1.99999999999999992e-268 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.99999999999999969e-279Initial program 7.3%
Taylor expanded in t around inf 98.5%
associate--l+98.5%
distribute-lft-out--98.5%
div-sub98.5%
mul-1-neg98.5%
unsub-neg98.5%
div-sub98.5%
associate-/l*99.6%
associate-/l*99.8%
distribute-rgt-out--99.7%
Simplified99.7%
Taylor expanded in y around 0 99.7%
neg-mul-199.7%
distribute-neg-frac299.7%
Simplified99.7%
Final simplification88.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (* (- x y) (/ 1.0 (- t a))))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -2e-268)
t_2
(if (<= t_2 5e-279) (+ y (* (- z a) (/ x t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((x - y) * (1.0 / (t - a))));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -2e-268) {
tmp = t_2;
} else if (t_2 <= 5e-279) {
tmp = y + ((z - a) * (x / t));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((x - y) * (1.0 / (t - a))));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -2e-268) {
tmp = t_2;
} else if (t_2 <= 5e-279) {
tmp = y + ((z - a) * (x / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((x - y) * (1.0 / (t - a)))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -2e-268: tmp = t_2 elif t_2 <= 5e-279: tmp = y + ((z - a) * (x / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - t) * Float64(Float64(x - y) * Float64(1.0 / Float64(t - a))))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -2e-268) tmp = t_2; elseif (t_2 <= 5e-279) tmp = Float64(y + Float64(Float64(z - a) * Float64(x / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - t) * ((x - y) * (1.0 / (t - a)))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -2e-268) tmp = t_2; elseif (t_2 <= 5e-279) tmp = y + ((z - a) * (x / t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] * N[(1.0 / N[(t - a), $MachinePrecision]), $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, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -2e-268], t$95$2, If[LessEqual[t$95$2, 5e-279], N[(y + N[(N[(z - a), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \left(\left(x - y\right) \cdot \frac{1}{t - a}\right)\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-268}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-279}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 4.99999999999999969e-279 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 64.1%
div-inv64.1%
*-commutative64.1%
associate-*l*88.5%
Applied egg-rr88.5%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999992e-268Initial program 96.1%
if -1.99999999999999992e-268 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.99999999999999969e-279Initial program 7.3%
Taylor expanded in t around inf 98.5%
associate--l+98.5%
distribute-lft-out--98.5%
div-sub98.5%
mul-1-neg98.5%
unsub-neg98.5%
div-sub98.5%
associate-/l*99.6%
associate-/l*99.8%
distribute-rgt-out--99.7%
Simplified99.7%
Taylor expanded in y around 0 99.7%
neg-mul-199.7%
distribute-neg-frac299.7%
Simplified99.7%
Final simplification91.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.5e+25)
(+ x (* z (/ y a)))
(if (<= a 1.1e-181)
(+ y (/ (* x z) t))
(if (<= a 7.5e-129)
(* y (- 1.0 (/ z t)))
(if (<= a 1.4e-51)
(* x (/ (- z a) t))
(if (<= a 2.9e-40) (+ y (* y (/ a t))) (+ x (* y (/ z a)))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e+25) {
tmp = x + (z * (y / a));
} else if (a <= 1.1e-181) {
tmp = y + ((x * z) / t);
} else if (a <= 7.5e-129) {
tmp = y * (1.0 - (z / t));
} else if (a <= 1.4e-51) {
tmp = x * ((z - a) / t);
} else if (a <= 2.9e-40) {
tmp = y + (y * (a / t));
} else {
tmp = 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 (a <= (-1.5d+25)) then
tmp = x + (z * (y / a))
else if (a <= 1.1d-181) then
tmp = y + ((x * z) / t)
else if (a <= 7.5d-129) then
tmp = y * (1.0d0 - (z / t))
else if (a <= 1.4d-51) then
tmp = x * ((z - a) / t)
else if (a <= 2.9d-40) then
tmp = y + (y * (a / t))
else
tmp = 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 (a <= -1.5e+25) {
tmp = x + (z * (y / a));
} else if (a <= 1.1e-181) {
tmp = y + ((x * z) / t);
} else if (a <= 7.5e-129) {
tmp = y * (1.0 - (z / t));
} else if (a <= 1.4e-51) {
tmp = x * ((z - a) / t);
} else if (a <= 2.9e-40) {
tmp = y + (y * (a / t));
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.5e+25: tmp = x + (z * (y / a)) elif a <= 1.1e-181: tmp = y + ((x * z) / t) elif a <= 7.5e-129: tmp = y * (1.0 - (z / t)) elif a <= 1.4e-51: tmp = x * ((z - a) / t) elif a <= 2.9e-40: tmp = y + (y * (a / t)) else: tmp = x + (y * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.5e+25) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (a <= 1.1e-181) tmp = Float64(y + Float64(Float64(x * z) / t)); elseif (a <= 7.5e-129) tmp = Float64(y * Float64(1.0 - Float64(z / t))); elseif (a <= 1.4e-51) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (a <= 2.9e-40) tmp = Float64(y + Float64(y * Float64(a / t))); else tmp = Float64(x + Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.5e+25) tmp = x + (z * (y / a)); elseif (a <= 1.1e-181) tmp = y + ((x * z) / t); elseif (a <= 7.5e-129) tmp = y * (1.0 - (z / t)); elseif (a <= 1.4e-51) tmp = x * ((z - a) / t); elseif (a <= 2.9e-40) tmp = y + (y * (a / t)); else tmp = x + (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.5e+25], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e-181], N[(y + N[(N[(x * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-129], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e-51], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e-40], N[(y + N[(y * N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{+25}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-181}:\\
\;\;\;\;y + \frac{x \cdot z}{t}\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-51}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-40}:\\
\;\;\;\;y + y \cdot \frac{a}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -1.50000000000000003e25Initial program 58.5%
Taylor expanded in t around 0 55.7%
associate-/l*68.4%
Simplified68.4%
Taylor expanded in y around inf 60.4%
if -1.50000000000000003e25 < a < 1.09999999999999999e-181Initial program 71.1%
Taylor expanded in t around inf 68.6%
associate--l+68.6%
distribute-lft-out--68.6%
div-sub68.7%
mul-1-neg68.7%
unsub-neg68.7%
div-sub68.6%
associate-/l*75.5%
associate-/l*73.4%
distribute-rgt-out--75.6%
Simplified75.6%
Taylor expanded in z around inf 64.5%
associate-*r/71.3%
Simplified71.3%
Taylor expanded in y around 0 59.4%
associate-*r/59.4%
neg-mul-159.4%
*-commutative59.4%
Simplified59.4%
if 1.09999999999999999e-181 < a < 7.49999999999999944e-129Initial program 77.0%
Taylor expanded in t around inf 77.2%
associate--l+77.2%
distribute-lft-out--77.2%
div-sub77.2%
mul-1-neg77.2%
unsub-neg77.2%
div-sub77.2%
associate-/l*82.4%
associate-/l*76.6%
distribute-rgt-out--82.7%
Simplified82.7%
Taylor expanded in z around inf 71.2%
associate-*r/76.7%
Simplified76.7%
Taylor expanded in y around inf 76.6%
if 7.49999999999999944e-129 < a < 1.4e-51Initial program 49.1%
Taylor expanded in t around inf 67.3%
associate--l+67.3%
distribute-lft-out--67.3%
div-sub67.3%
mul-1-neg67.3%
unsub-neg67.3%
div-sub67.3%
associate-/l*83.2%
associate-/l*83.2%
distribute-rgt-out--83.2%
Simplified83.2%
Taylor expanded in y around 0 43.1%
associate-/l*66.6%
Simplified66.6%
if 1.4e-51 < a < 2.8999999999999999e-40Initial program 51.4%
Taylor expanded in t around inf 50.3%
associate--l+50.3%
distribute-lft-out--50.3%
div-sub50.3%
mul-1-neg50.3%
unsub-neg50.3%
div-sub50.3%
associate-/l*98.2%
associate-/l*98.2%
distribute-rgt-out--98.2%
Simplified98.2%
Taylor expanded in y around inf 50.3%
associate-/l*98.2%
Simplified98.2%
Taylor expanded in z around 0 98.2%
neg-mul-198.2%
distribute-neg-frac298.2%
Simplified98.2%
if 2.8999999999999999e-40 < a Initial program 72.7%
Taylor expanded in t around 0 59.8%
associate-/l*65.2%
Simplified65.2%
Taylor expanded in y around inf 59.7%
associate-/l*63.9%
Simplified63.9%
Final simplification62.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (* y (/ z a)))))
(if (<= a -2.9e+153)
t_2
(if (<= a -5e-233)
t_1
(if (<= a 6.8e-182) (+ y (/ (* x z) t)) (if (<= a 53000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y * (z / a));
double tmp;
if (a <= -2.9e+153) {
tmp = t_2;
} else if (a <= -5e-233) {
tmp = t_1;
} else if (a <= 6.8e-182) {
tmp = y + ((x * z) / t);
} else if (a <= 53000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + (y * (z / a))
if (a <= (-2.9d+153)) then
tmp = t_2
else if (a <= (-5d-233)) then
tmp = t_1
else if (a <= 6.8d-182) then
tmp = y + ((x * z) / t)
else if (a <= 53000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y * (z / a));
double tmp;
if (a <= -2.9e+153) {
tmp = t_2;
} else if (a <= -5e-233) {
tmp = t_1;
} else if (a <= 6.8e-182) {
tmp = y + ((x * z) / t);
} else if (a <= 53000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (y * (z / a)) tmp = 0 if a <= -2.9e+153: tmp = t_2 elif a <= -5e-233: tmp = t_1 elif a <= 6.8e-182: tmp = y + ((x * z) / t) elif a <= 53000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(y * Float64(z / a))) tmp = 0.0 if (a <= -2.9e+153) tmp = t_2; elseif (a <= -5e-233) tmp = t_1; elseif (a <= 6.8e-182) tmp = Float64(y + Float64(Float64(x * z) / t)); elseif (a <= 53000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (y * (z / a)); tmp = 0.0; if (a <= -2.9e+153) tmp = t_2; elseif (a <= -5e-233) tmp = t_1; elseif (a <= 6.8e-182) tmp = y + ((x * z) / t); elseif (a <= 53000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.9e+153], t$95$2, If[LessEqual[a, -5e-233], t$95$1, If[LessEqual[a, 6.8e-182], N[(y + N[(N[(x * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 53000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + y \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -2.9 \cdot 10^{+153}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-233}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-182}:\\
\;\;\;\;y + \frac{x \cdot z}{t}\\
\mathbf{elif}\;a \leq 53000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.90000000000000002e153 or 53000 < a Initial program 69.3%
Taylor expanded in t around 0 61.4%
associate-/l*69.6%
Simplified69.6%
Taylor expanded in y around inf 63.4%
associate-/l*67.7%
Simplified67.7%
if -2.90000000000000002e153 < a < -5.00000000000000012e-233 or 6.79999999999999979e-182 < a < 53000Initial program 65.1%
div-inv65.0%
*-commutative65.0%
associate-*l*78.1%
Applied egg-rr78.1%
Taylor expanded in x around 0 48.2%
associate-*r/60.9%
Simplified60.9%
if -5.00000000000000012e-233 < a < 6.79999999999999979e-182Initial program 72.6%
Taylor expanded in t around inf 83.8%
associate--l+83.8%
distribute-lft-out--83.8%
div-sub83.8%
mul-1-neg83.8%
unsub-neg83.8%
div-sub83.8%
associate-/l*88.6%
associate-/l*82.8%
distribute-rgt-out--88.5%
Simplified88.5%
Taylor expanded in z around inf 83.6%
associate-*r/88.6%
Simplified88.6%
Taylor expanded in y around 0 80.8%
associate-*r/80.8%
neg-mul-180.8%
*-commutative80.8%
Simplified80.8%
Final simplification66.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (* z (/ (- y x) a)))))
(if (<= a -6.6e+59)
t_2
(if (<= a -5.8e-238)
t_1
(if (<= a 6.8e-182) (+ y (/ (* x z) t)) (if (<= a 40.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (z * ((y - x) / a));
double tmp;
if (a <= -6.6e+59) {
tmp = t_2;
} else if (a <= -5.8e-238) {
tmp = t_1;
} else if (a <= 6.8e-182) {
tmp = y + ((x * z) / t);
} else if (a <= 40.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + (z * ((y - x) / a))
if (a <= (-6.6d+59)) then
tmp = t_2
else if (a <= (-5.8d-238)) then
tmp = t_1
else if (a <= 6.8d-182) then
tmp = y + ((x * z) / t)
else if (a <= 40.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (z * ((y - x) / a));
double tmp;
if (a <= -6.6e+59) {
tmp = t_2;
} else if (a <= -5.8e-238) {
tmp = t_1;
} else if (a <= 6.8e-182) {
tmp = y + ((x * z) / t);
} else if (a <= 40.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (z * ((y - x) / a)) tmp = 0 if a <= -6.6e+59: tmp = t_2 elif a <= -5.8e-238: tmp = t_1 elif a <= 6.8e-182: tmp = y + ((x * z) / t) elif a <= 40.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(z * Float64(Float64(y - x) / a))) tmp = 0.0 if (a <= -6.6e+59) tmp = t_2; elseif (a <= -5.8e-238) tmp = t_1; elseif (a <= 6.8e-182) tmp = Float64(y + Float64(Float64(x * z) / t)); elseif (a <= 40.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (z * ((y - x) / a)); tmp = 0.0; if (a <= -6.6e+59) tmp = t_2; elseif (a <= -5.8e-238) tmp = t_1; elseif (a <= 6.8e-182) tmp = y + ((x * z) / t); elseif (a <= 40.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e+59], t$95$2, If[LessEqual[a, -5.8e-238], t$95$1, If[LessEqual[a, 6.8e-182], N[(y + N[(N[(x * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 40.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + z \cdot \frac{y - x}{a}\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-182}:\\
\;\;\;\;y + \frac{x \cdot z}{t}\\
\mathbf{elif}\;a \leq 40:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.5999999999999999e59 or 40 < a Initial program 65.6%
Taylor expanded in t around 0 59.0%
associate-/l*68.2%
Simplified68.2%
if -6.5999999999999999e59 < a < -5.7999999999999997e-238 or 6.79999999999999979e-182 < a < 40Initial program 68.4%
div-inv68.2%
*-commutative68.2%
associate-*l*79.5%
Applied egg-rr79.5%
Taylor expanded in x around 0 52.9%
associate-*r/64.5%
Simplified64.5%
if -5.7999999999999997e-238 < a < 6.79999999999999979e-182Initial program 72.6%
Taylor expanded in t around inf 83.8%
associate--l+83.8%
distribute-lft-out--83.8%
div-sub83.8%
mul-1-neg83.8%
unsub-neg83.8%
div-sub83.8%
associate-/l*88.6%
associate-/l*82.8%
distribute-rgt-out--88.5%
Simplified88.5%
Taylor expanded in z around inf 83.6%
associate-*r/88.6%
Simplified88.6%
Taylor expanded in y around 0 80.8%
associate-*r/80.8%
neg-mul-180.8%
*-commutative80.8%
Simplified80.8%
Final simplification68.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= a -1.8e+59)
(+ x (* z (/ (- y x) a)))
(if (<= a -7.2e-234)
t_1
(if (<= a 6.5e-182)
(+ y (/ (* x z) t))
(if (<= a 31500.0) t_1 (+ x (/ (* y (- z t)) a))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -1.8e+59) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -7.2e-234) {
tmp = t_1;
} else if (a <= 6.5e-182) {
tmp = y + ((x * z) / t);
} else if (a <= 31500.0) {
tmp = t_1;
} else {
tmp = x + ((y * (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) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (a <= (-1.8d+59)) then
tmp = x + (z * ((y - x) / a))
else if (a <= (-7.2d-234)) then
tmp = t_1
else if (a <= 6.5d-182) then
tmp = y + ((x * z) / t)
else if (a <= 31500.0d0) then
tmp = t_1
else
tmp = x + ((y * (z - t)) / a)
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 (a <= -1.8e+59) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -7.2e-234) {
tmp = t_1;
} else if (a <= 6.5e-182) {
tmp = y + ((x * z) / t);
} else if (a <= 31500.0) {
tmp = t_1;
} else {
tmp = x + ((y * (z - t)) / a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if a <= -1.8e+59: tmp = x + (z * ((y - x) / a)) elif a <= -7.2e-234: tmp = t_1 elif a <= 6.5e-182: tmp = y + ((x * z) / t) elif a <= 31500.0: tmp = t_1 else: tmp = x + ((y * (z - t)) / a) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (a <= -1.8e+59) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (a <= -7.2e-234) tmp = t_1; elseif (a <= 6.5e-182) tmp = Float64(y + Float64(Float64(x * z) / t)); elseif (a <= 31500.0) tmp = t_1; else tmp = Float64(x + Float64(Float64(y * Float64(z - t)) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (a <= -1.8e+59) tmp = x + (z * ((y - x) / a)); elseif (a <= -7.2e-234) tmp = t_1; elseif (a <= 6.5e-182) tmp = y + ((x * z) / t); elseif (a <= 31500.0) tmp = t_1; else tmp = x + ((y * (z - t)) / a); 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[a, -1.8e+59], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.2e-234], t$95$1, If[LessEqual[a, 6.5e-182], N[(y + N[(N[(x * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 31500.0], t$95$1, N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+59}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;a \leq -7.2 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-182}:\\
\;\;\;\;y + \frac{x \cdot z}{t}\\
\mathbf{elif}\;a \leq 31500:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a}\\
\end{array}
\end{array}
if a < -1.7999999999999999e59Initial program 58.5%
Taylor expanded in t around 0 58.7%
associate-/l*71.3%
Simplified71.3%
if -1.7999999999999999e59 < a < -7.1999999999999997e-234 or 6.49999999999999997e-182 < a < 31500Initial program 68.4%
div-inv68.2%
*-commutative68.2%
associate-*l*79.5%
Applied egg-rr79.5%
Taylor expanded in x around 0 52.9%
associate-*r/64.5%
Simplified64.5%
if -7.1999999999999997e-234 < a < 6.49999999999999997e-182Initial program 72.6%
Taylor expanded in t around inf 83.8%
associate--l+83.8%
distribute-lft-out--83.8%
div-sub83.8%
mul-1-neg83.8%
unsub-neg83.8%
div-sub83.8%
associate-/l*88.6%
associate-/l*82.8%
distribute-rgt-out--88.5%
Simplified88.5%
Taylor expanded in z around inf 83.6%
associate-*r/88.6%
Simplified88.6%
Taylor expanded in y around 0 80.8%
associate-*r/80.8%
neg-mul-180.8%
*-commutative80.8%
Simplified80.8%
if 31500 < a Initial program 72.0%
Taylor expanded in y around inf 70.5%
associate-/l*82.6%
Simplified82.6%
Taylor expanded in a around inf 66.7%
Final simplification68.7%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.15e-20)
(+ x (* z (/ (- y x) a)))
(if (<= a -1.9e-71)
(+ y (/ (* (- y x) a) t))
(if (<= a -1.85e-99)
(* x (- 1.0 (/ z a)))
(if (<= a 5e-40)
(+ y (* z (/ (- x y) t)))
(+ x (/ (* y (- z t)) a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.15e-20) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -1.9e-71) {
tmp = y + (((y - x) * a) / t);
} else if (a <= -1.85e-99) {
tmp = x * (1.0 - (z / a));
} else if (a <= 5e-40) {
tmp = y + (z * ((x - y) / t));
} else {
tmp = x + ((y * (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 <= (-1.15d-20)) then
tmp = x + (z * ((y - x) / a))
else if (a <= (-1.9d-71)) then
tmp = y + (((y - x) * a) / t)
else if (a <= (-1.85d-99)) then
tmp = x * (1.0d0 - (z / a))
else if (a <= 5d-40) then
tmp = y + (z * ((x - y) / t))
else
tmp = x + ((y * (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 <= -1.15e-20) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -1.9e-71) {
tmp = y + (((y - x) * a) / t);
} else if (a <= -1.85e-99) {
tmp = x * (1.0 - (z / a));
} else if (a <= 5e-40) {
tmp = y + (z * ((x - y) / t));
} else {
tmp = x + ((y * (z - t)) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.15e-20: tmp = x + (z * ((y - x) / a)) elif a <= -1.9e-71: tmp = y + (((y - x) * a) / t) elif a <= -1.85e-99: tmp = x * (1.0 - (z / a)) elif a <= 5e-40: tmp = y + (z * ((x - y) / t)) else: tmp = x + ((y * (z - t)) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.15e-20) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (a <= -1.9e-71) tmp = Float64(y + Float64(Float64(Float64(y - x) * a) / t)); elseif (a <= -1.85e-99) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (a <= 5e-40) tmp = Float64(y + Float64(z * Float64(Float64(x - y) / t))); else tmp = Float64(x + Float64(Float64(y * Float64(z - t)) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.15e-20) tmp = x + (z * ((y - x) / a)); elseif (a <= -1.9e-71) tmp = y + (((y - x) * a) / t); elseif (a <= -1.85e-99) tmp = x * (1.0 - (z / a)); elseif (a <= 5e-40) tmp = y + (z * ((x - y) / t)); else tmp = x + ((y * (z - t)) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.15e-20], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.9e-71], N[(y + N[(N[(N[(y - x), $MachinePrecision] * a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e-99], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e-40], N[(y + N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.15 \cdot 10^{-20}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-71}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot a}{t}\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-99}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-40}:\\
\;\;\;\;y + z \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a}\\
\end{array}
\end{array}
if a < -1.15e-20Initial program 61.4%
Taylor expanded in t around 0 55.0%
associate-/l*65.7%
Simplified65.7%
if -1.15e-20 < a < -1.89999999999999996e-71Initial program 56.4%
Taylor expanded in t around inf 73.4%
associate--l+73.4%
distribute-lft-out--73.4%
div-sub73.4%
mul-1-neg73.4%
unsub-neg73.4%
div-sub73.4%
associate-/l*73.4%
associate-/l*73.5%
distribute-rgt-out--73.5%
Simplified73.5%
Taylor expanded in z around 0 73.2%
sub-neg73.2%
mul-1-neg73.2%
remove-double-neg73.2%
Simplified73.2%
if -1.89999999999999996e-71 < a < -1.85e-99Initial program 99.2%
Taylor expanded in t around 0 99.2%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in x around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if -1.85e-99 < a < 4.99999999999999965e-40Initial program 69.5%
Taylor expanded in t around inf 74.5%
associate--l+74.5%
distribute-lft-out--74.5%
div-sub74.5%
mul-1-neg74.5%
unsub-neg74.5%
div-sub74.5%
associate-/l*83.8%
associate-/l*80.7%
distribute-rgt-out--83.8%
Simplified83.8%
Taylor expanded in z around inf 69.3%
associate-*r/78.6%
Simplified78.6%
if 4.99999999999999965e-40 < a Initial program 72.7%
Taylor expanded in y around inf 71.4%
associate-/l*84.6%
Simplified84.6%
Taylor expanded in a around inf 68.0%
Final simplification71.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -7.2e-21)
(+ x (* z (/ (- y x) a)))
(if (<= a -1.9e-71)
(+ y (/ (* (- y x) a) t))
(if (<= a -1.85e-99)
(* x (- 1.0 (/ z a)))
(if (<= a 6.8e-40)
(+ y (/ z (/ t (- x y))))
(+ x (/ (* y (- z t)) a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.2e-21) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -1.9e-71) {
tmp = y + (((y - x) * a) / t);
} else if (a <= -1.85e-99) {
tmp = x * (1.0 - (z / a));
} else if (a <= 6.8e-40) {
tmp = y + (z / (t / (x - y)));
} else {
tmp = x + ((y * (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 <= (-7.2d-21)) then
tmp = x + (z * ((y - x) / a))
else if (a <= (-1.9d-71)) then
tmp = y + (((y - x) * a) / t)
else if (a <= (-1.85d-99)) then
tmp = x * (1.0d0 - (z / a))
else if (a <= 6.8d-40) then
tmp = y + (z / (t / (x - y)))
else
tmp = x + ((y * (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 <= -7.2e-21) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -1.9e-71) {
tmp = y + (((y - x) * a) / t);
} else if (a <= -1.85e-99) {
tmp = x * (1.0 - (z / a));
} else if (a <= 6.8e-40) {
tmp = y + (z / (t / (x - y)));
} else {
tmp = x + ((y * (z - t)) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7.2e-21: tmp = x + (z * ((y - x) / a)) elif a <= -1.9e-71: tmp = y + (((y - x) * a) / t) elif a <= -1.85e-99: tmp = x * (1.0 - (z / a)) elif a <= 6.8e-40: tmp = y + (z / (t / (x - y))) else: tmp = x + ((y * (z - t)) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.2e-21) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (a <= -1.9e-71) tmp = Float64(y + Float64(Float64(Float64(y - x) * a) / t)); elseif (a <= -1.85e-99) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (a <= 6.8e-40) tmp = Float64(y + Float64(z / Float64(t / Float64(x - y)))); else tmp = Float64(x + Float64(Float64(y * Float64(z - t)) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7.2e-21) tmp = x + (z * ((y - x) / a)); elseif (a <= -1.9e-71) tmp = y + (((y - x) * a) / t); elseif (a <= -1.85e-99) tmp = x * (1.0 - (z / a)); elseif (a <= 6.8e-40) tmp = y + (z / (t / (x - y))); else tmp = x + ((y * (z - t)) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.2e-21], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.9e-71], N[(y + N[(N[(N[(y - x), $MachinePrecision] * a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e-99], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-40], N[(y + N[(z / N[(t / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{-21}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-71}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot a}{t}\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-99}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-40}:\\
\;\;\;\;y + \frac{z}{\frac{t}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a}\\
\end{array}
\end{array}
if a < -7.19999999999999979e-21Initial program 61.4%
Taylor expanded in t around 0 55.0%
associate-/l*65.7%
Simplified65.7%
if -7.19999999999999979e-21 < a < -1.89999999999999996e-71Initial program 56.4%
Taylor expanded in t around inf 73.4%
associate--l+73.4%
distribute-lft-out--73.4%
div-sub73.4%
mul-1-neg73.4%
unsub-neg73.4%
div-sub73.4%
associate-/l*73.4%
associate-/l*73.5%
distribute-rgt-out--73.5%
Simplified73.5%
Taylor expanded in z around 0 73.2%
sub-neg73.2%
mul-1-neg73.2%
remove-double-neg73.2%
Simplified73.2%
if -1.89999999999999996e-71 < a < -1.85e-99Initial program 99.2%
Taylor expanded in t around 0 99.2%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in x around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if -1.85e-99 < a < 6.79999999999999968e-40Initial program 69.5%
Taylor expanded in t around inf 74.5%
associate--l+74.5%
distribute-lft-out--74.5%
div-sub74.5%
mul-1-neg74.5%
unsub-neg74.5%
div-sub74.5%
associate-/l*83.8%
associate-/l*80.7%
distribute-rgt-out--83.8%
Simplified83.8%
Taylor expanded in z around inf 69.3%
associate-*r/78.6%
Simplified78.6%
clear-num78.7%
un-div-inv78.7%
Applied egg-rr78.7%
if 6.79999999999999968e-40 < a Initial program 72.7%
Taylor expanded in y around inf 71.4%
associate-/l*84.6%
Simplified84.6%
Taylor expanded in a around inf 68.0%
Final simplification72.0%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.5e-15)
(+ x (* z (/ (- y x) a)))
(if (<= a -3.8e-71)
(+ y (* (- z a) (/ x t)))
(if (<= a -1.85e-99)
(* x (- 1.0 (/ z a)))
(if (<= a 6.8e-40)
(+ y (/ z (/ t (- x y))))
(+ x (/ (* y (- z t)) a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e-15) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -3.8e-71) {
tmp = y + ((z - a) * (x / t));
} else if (a <= -1.85e-99) {
tmp = x * (1.0 - (z / a));
} else if (a <= 6.8e-40) {
tmp = y + (z / (t / (x - y)));
} else {
tmp = x + ((y * (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 <= (-1.5d-15)) then
tmp = x + (z * ((y - x) / a))
else if (a <= (-3.8d-71)) then
tmp = y + ((z - a) * (x / t))
else if (a <= (-1.85d-99)) then
tmp = x * (1.0d0 - (z / a))
else if (a <= 6.8d-40) then
tmp = y + (z / (t / (x - y)))
else
tmp = x + ((y * (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 <= -1.5e-15) {
tmp = x + (z * ((y - x) / a));
} else if (a <= -3.8e-71) {
tmp = y + ((z - a) * (x / t));
} else if (a <= -1.85e-99) {
tmp = x * (1.0 - (z / a));
} else if (a <= 6.8e-40) {
tmp = y + (z / (t / (x - y)));
} else {
tmp = x + ((y * (z - t)) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.5e-15: tmp = x + (z * ((y - x) / a)) elif a <= -3.8e-71: tmp = y + ((z - a) * (x / t)) elif a <= -1.85e-99: tmp = x * (1.0 - (z / a)) elif a <= 6.8e-40: tmp = y + (z / (t / (x - y))) else: tmp = x + ((y * (z - t)) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.5e-15) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (a <= -3.8e-71) tmp = Float64(y + Float64(Float64(z - a) * Float64(x / t))); elseif (a <= -1.85e-99) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (a <= 6.8e-40) tmp = Float64(y + Float64(z / Float64(t / Float64(x - y)))); else tmp = Float64(x + Float64(Float64(y * Float64(z - t)) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.5e-15) tmp = x + (z * ((y - x) / a)); elseif (a <= -3.8e-71) tmp = y + ((z - a) * (x / t)); elseif (a <= -1.85e-99) tmp = x * (1.0 - (z / a)); elseif (a <= 6.8e-40) tmp = y + (z / (t / (x - y))); else tmp = x + ((y * (z - t)) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.5e-15], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e-71], N[(y + N[(N[(z - a), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e-99], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-40], N[(y + N[(z / N[(t / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{-15}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-71}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-99}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-40}:\\
\;\;\;\;y + \frac{z}{\frac{t}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a}\\
\end{array}
\end{array}
if a < -1.5e-15Initial program 61.4%
Taylor expanded in t around 0 55.0%
associate-/l*65.7%
Simplified65.7%
if -1.5e-15 < a < -3.79999999999999992e-71Initial program 56.4%
Taylor expanded in t around inf 73.4%
associate--l+73.4%
distribute-lft-out--73.4%
div-sub73.4%
mul-1-neg73.4%
unsub-neg73.4%
div-sub73.4%
associate-/l*73.4%
associate-/l*73.5%
distribute-rgt-out--73.5%
Simplified73.5%
Taylor expanded in y around 0 74.4%
neg-mul-174.4%
distribute-neg-frac274.4%
Simplified74.4%
if -3.79999999999999992e-71 < a < -1.85e-99Initial program 99.2%
Taylor expanded in t around 0 99.2%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in x around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if -1.85e-99 < a < 6.79999999999999968e-40Initial program 69.5%
Taylor expanded in t around inf 74.5%
associate--l+74.5%
distribute-lft-out--74.5%
div-sub74.5%
mul-1-neg74.5%
unsub-neg74.5%
div-sub74.5%
associate-/l*83.8%
associate-/l*80.7%
distribute-rgt-out--83.8%
Simplified83.8%
Taylor expanded in z around inf 69.3%
associate-*r/78.6%
Simplified78.6%
clear-num78.7%
un-div-inv78.7%
Applied egg-rr78.7%
if 6.79999999999999968e-40 < a Initial program 72.7%
Taylor expanded in y around inf 71.4%
associate-/l*84.6%
Simplified84.6%
Taylor expanded in a around inf 68.0%
Final simplification72.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= y -1850.0)
t_1
(if (<= y 3.1e-73)
(* x (+ (/ (- z t) (- t a)) 1.0))
(if (<= y 13600000000.0)
(+ y (* (- z a) (/ x t)))
(if (<= y 8.5e+31) (+ x (* z (/ y a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (y <= -1850.0) {
tmp = t_1;
} else if (y <= 3.1e-73) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} else if (y <= 13600000000.0) {
tmp = y + ((z - a) * (x / t));
} else if (y <= 8.5e+31) {
tmp = x + (z * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (y <= (-1850.0d0)) then
tmp = t_1
else if (y <= 3.1d-73) then
tmp = x * (((z - t) / (t - a)) + 1.0d0)
else if (y <= 13600000000.0d0) then
tmp = y + ((z - a) * (x / t))
else if (y <= 8.5d+31) then
tmp = x + (z * (y / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (y <= -1850.0) {
tmp = t_1;
} else if (y <= 3.1e-73) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} else if (y <= 13600000000.0) {
tmp = y + ((z - a) * (x / t));
} else if (y <= 8.5e+31) {
tmp = x + (z * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if y <= -1850.0: tmp = t_1 elif y <= 3.1e-73: tmp = x * (((z - t) / (t - a)) + 1.0) elif y <= 13600000000.0: tmp = y + ((z - a) * (x / t)) elif y <= 8.5e+31: tmp = x + (z * (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (y <= -1850.0) tmp = t_1; elseif (y <= 3.1e-73) tmp = Float64(x * Float64(Float64(Float64(z - t) / Float64(t - a)) + 1.0)); elseif (y <= 13600000000.0) tmp = Float64(y + Float64(Float64(z - a) * Float64(x / t))); elseif (y <= 8.5e+31) tmp = Float64(x + Float64(z * Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (y <= -1850.0) tmp = t_1; elseif (y <= 3.1e-73) tmp = x * (((z - t) / (t - a)) + 1.0); elseif (y <= 13600000000.0) tmp = y + ((z - a) * (x / t)); elseif (y <= 8.5e+31) tmp = x + (z * (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1850.0], t$95$1, If[LessEqual[y, 3.1e-73], N[(x * N[(N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 13600000000.0], N[(y + N[(N[(z - a), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e+31], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y \leq -1850:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-73}:\\
\;\;\;\;x \cdot \left(\frac{z - t}{t - a} + 1\right)\\
\mathbf{elif}\;y \leq 13600000000:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+31}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1850 or 8.49999999999999947e31 < y Initial program 65.8%
div-inv65.9%
*-commutative65.9%
associate-*l*91.1%
Applied egg-rr91.1%
Taylor expanded in x around 0 56.5%
associate-*r/81.7%
Simplified81.7%
if -1850 < y < 3.09999999999999969e-73Initial program 69.5%
Taylor expanded in x around inf 63.7%
mul-1-neg63.7%
unsub-neg63.7%
Simplified63.7%
if 3.09999999999999969e-73 < y < 1.36e10Initial program 64.6%
Taylor expanded in t around inf 67.5%
associate--l+67.5%
distribute-lft-out--67.5%
div-sub67.5%
mul-1-neg67.5%
unsub-neg67.5%
div-sub67.5%
associate-/l*67.4%
associate-/l*67.7%
distribute-rgt-out--67.7%
Simplified67.7%
Taylor expanded in y around 0 55.5%
neg-mul-155.5%
distribute-neg-frac255.5%
Simplified55.5%
if 1.36e10 < y < 8.49999999999999947e31Initial program 82.0%
Taylor expanded in t around 0 82.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around inf 100.0%
Final simplification72.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -8.8e+74)
(+ x y)
(if (<= t 6.2e-80)
(* x (- 1.0 (/ z a)))
(if (<= t 6.5e+210) (+ x y) (if (<= t 1e+260) (* x (/ (- z a) t)) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8.8e+74) {
tmp = x + y;
} else if (t <= 6.2e-80) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6.5e+210) {
tmp = x + y;
} else if (t <= 1e+260) {
tmp = x * ((z - a) / t);
} 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 <= (-8.8d+74)) then
tmp = x + y
else if (t <= 6.2d-80) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 6.5d+210) then
tmp = x + y
else if (t <= 1d+260) then
tmp = x * ((z - a) / t)
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 <= -8.8e+74) {
tmp = x + y;
} else if (t <= 6.2e-80) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6.5e+210) {
tmp = x + y;
} else if (t <= 1e+260) {
tmp = x * ((z - a) / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -8.8e+74: tmp = x + y elif t <= 6.2e-80: tmp = x * (1.0 - (z / a)) elif t <= 6.5e+210: tmp = x + y elif t <= 1e+260: tmp = x * ((z - a) / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -8.8e+74) tmp = Float64(x + y); elseif (t <= 6.2e-80) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 6.5e+210) tmp = Float64(x + y); elseif (t <= 1e+260) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -8.8e+74) tmp = x + y; elseif (t <= 6.2e-80) tmp = x * (1.0 - (z / a)); elseif (t <= 6.5e+210) tmp = x + y; elseif (t <= 1e+260) tmp = x * ((z - a) / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -8.8e+74], N[(x + y), $MachinePrecision], If[LessEqual[t, 6.2e-80], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e+210], N[(x + y), $MachinePrecision], If[LessEqual[t, 1e+260], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.8 \cdot 10^{+74}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-80}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+210}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 10^{+260}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -8.8000000000000005e74 or 6.20000000000000032e-80 < t < 6.4999999999999996e210Initial program 53.2%
Taylor expanded in y around inf 48.2%
associate-/l*67.3%
Simplified67.3%
Taylor expanded in z around inf 61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
Taylor expanded in t around inf 49.0%
if -8.8000000000000005e74 < t < 6.20000000000000032e-80Initial program 85.5%
Taylor expanded in t around 0 62.2%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in x around inf 47.2%
mul-1-neg47.2%
unsub-neg47.2%
Simplified47.2%
if 6.4999999999999996e210 < t < 1.00000000000000007e260Initial program 41.5%
Taylor expanded in t around inf 44.2%
associate--l+44.2%
distribute-lft-out--44.2%
div-sub44.2%
mul-1-neg44.2%
unsub-neg44.2%
div-sub44.2%
associate-/l*66.2%
associate-/l*82.4%
distribute-rgt-out--82.4%
Simplified82.4%
Taylor expanded in y around 0 32.6%
associate-/l*59.9%
Simplified59.9%
if 1.00000000000000007e260 < t Initial program 4.3%
Taylor expanded in t around inf 91.2%
Final simplification50.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t)))) (t_2 (* x (- 1.0 (/ z a)))))
(if (<= a -1.2e-16)
t_2
(if (<= a 6.4e-279)
t_1
(if (<= a 1.04e-181) (* x (/ z t)) (if (<= a 28000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (a <= -1.2e-16) {
tmp = t_2;
} else if (a <= 6.4e-279) {
tmp = t_1;
} else if (a <= 1.04e-181) {
tmp = x * (z / t);
} else if (a <= 28000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (1.0d0 - (z / t))
t_2 = x * (1.0d0 - (z / a))
if (a <= (-1.2d-16)) then
tmp = t_2
else if (a <= 6.4d-279) then
tmp = t_1
else if (a <= 1.04d-181) then
tmp = x * (z / t)
else if (a <= 28000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (a <= -1.2e-16) {
tmp = t_2;
} else if (a <= 6.4e-279) {
tmp = t_1;
} else if (a <= 1.04e-181) {
tmp = x * (z / t);
} else if (a <= 28000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) t_2 = x * (1.0 - (z / a)) tmp = 0 if a <= -1.2e-16: tmp = t_2 elif a <= 6.4e-279: tmp = t_1 elif a <= 1.04e-181: tmp = x * (z / t) elif a <= 28000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) t_2 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (a <= -1.2e-16) tmp = t_2; elseif (a <= 6.4e-279) tmp = t_1; elseif (a <= 1.04e-181) tmp = Float64(x * Float64(z / t)); elseif (a <= 28000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); t_2 = x * (1.0 - (z / a)); tmp = 0.0; if (a <= -1.2e-16) tmp = t_2; elseif (a <= 6.4e-279) tmp = t_1; elseif (a <= 1.04e-181) tmp = x * (z / t); elseif (a <= 28000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e-16], t$95$2, If[LessEqual[a, 6.4e-279], t$95$1, If[LessEqual[a, 1.04e-181], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 28000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-16}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.04 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 28000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.20000000000000002e-16 or 2.8e7 < a Initial program 66.0%
Taylor expanded in t around 0 56.7%
associate-/l*65.3%
Simplified65.3%
Taylor expanded in x around inf 49.0%
mul-1-neg49.0%
unsub-neg49.0%
Simplified49.0%
if -1.20000000000000002e-16 < a < 6.3999999999999997e-279 or 1.04000000000000002e-181 < a < 2.8e7Initial program 66.8%
Taylor expanded in t around inf 72.2%
associate--l+72.2%
distribute-lft-out--72.2%
div-sub72.2%
mul-1-neg72.2%
unsub-neg72.2%
div-sub72.2%
associate-/l*80.5%
associate-/l*79.6%
distribute-rgt-out--81.6%
Simplified81.6%
Taylor expanded in z around inf 65.3%
associate-*r/73.6%
Simplified73.6%
Taylor expanded in y around inf 56.9%
if 6.3999999999999997e-279 < a < 1.04000000000000002e-181Initial program 84.7%
Taylor expanded in t around inf 69.9%
associate--l+69.9%
distribute-lft-out--69.9%
div-sub69.9%
mul-1-neg69.9%
unsub-neg69.9%
div-sub69.9%
associate-/l*74.0%
associate-/l*68.5%
distribute-rgt-out--73.8%
Simplified73.8%
Taylor expanded in y around 0 52.8%
associate-/l*63.7%
Simplified63.7%
Taylor expanded in z around inf 52.8%
associate-/l*63.8%
Simplified63.8%
Final simplification53.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t)))) (t_2 (+ x (* y (/ z a)))))
(if (<= a -3.7e+24)
t_2
(if (<= a 9.2e-279)
t_1
(if (<= a 7.5e-182) (* x (/ z t)) (if (<= a 3.5e-40) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double t_2 = x + (y * (z / a));
double tmp;
if (a <= -3.7e+24) {
tmp = t_2;
} else if (a <= 9.2e-279) {
tmp = t_1;
} else if (a <= 7.5e-182) {
tmp = x * (z / t);
} else if (a <= 3.5e-40) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (1.0d0 - (z / t))
t_2 = x + (y * (z / a))
if (a <= (-3.7d+24)) then
tmp = t_2
else if (a <= 9.2d-279) then
tmp = t_1
else if (a <= 7.5d-182) then
tmp = x * (z / t)
else if (a <= 3.5d-40) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double t_2 = x + (y * (z / a));
double tmp;
if (a <= -3.7e+24) {
tmp = t_2;
} else if (a <= 9.2e-279) {
tmp = t_1;
} else if (a <= 7.5e-182) {
tmp = x * (z / t);
} else if (a <= 3.5e-40) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) t_2 = x + (y * (z / a)) tmp = 0 if a <= -3.7e+24: tmp = t_2 elif a <= 9.2e-279: tmp = t_1 elif a <= 7.5e-182: tmp = x * (z / t) elif a <= 3.5e-40: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) t_2 = Float64(x + Float64(y * Float64(z / a))) tmp = 0.0 if (a <= -3.7e+24) tmp = t_2; elseif (a <= 9.2e-279) tmp = t_1; elseif (a <= 7.5e-182) tmp = Float64(x * Float64(z / t)); elseif (a <= 3.5e-40) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); t_2 = x + (y * (z / a)); tmp = 0.0; if (a <= -3.7e+24) tmp = t_2; elseif (a <= 9.2e-279) tmp = t_1; elseif (a <= 7.5e-182) tmp = x * (z / t); elseif (a <= 3.5e-40) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.7e+24], t$95$2, If[LessEqual[a, 9.2e-279], t$95$1, If[LessEqual[a, 7.5e-182], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-40], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
t_2 := x + y \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -3.7 \cdot 10^{+24}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-182}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.69999999999999999e24 or 3.5000000000000002e-40 < a Initial program 66.0%
Taylor expanded in t around 0 57.9%
associate-/l*66.7%
Simplified66.7%
Taylor expanded in y around inf 57.0%
associate-/l*62.3%
Simplified62.3%
if -3.69999999999999999e24 < a < 9.1999999999999998e-279 or 7.49999999999999935e-182 < a < 3.5000000000000002e-40Initial program 66.7%
Taylor expanded in t around inf 69.3%
associate--l+69.3%
distribute-lft-out--69.3%
div-sub69.4%
mul-1-neg69.4%
unsub-neg69.4%
div-sub69.3%
associate-/l*78.2%
associate-/l*76.4%
distribute-rgt-out--78.4%
Simplified78.4%
Taylor expanded in z around inf 61.7%
associate-*r/70.5%
Simplified70.5%
Taylor expanded in y around inf 53.5%
if 9.1999999999999998e-279 < a < 7.49999999999999935e-182Initial program 84.7%
Taylor expanded in t around inf 69.9%
associate--l+69.9%
distribute-lft-out--69.9%
div-sub69.9%
mul-1-neg69.9%
unsub-neg69.9%
div-sub69.9%
associate-/l*74.0%
associate-/l*68.5%
distribute-rgt-out--73.8%
Simplified73.8%
Taylor expanded in y around 0 52.8%
associate-/l*63.7%
Simplified63.7%
Taylor expanded in z around inf 52.8%
associate-/l*63.8%
Simplified63.8%
Final simplification58.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t)))))
(if (<= a -3.9e+24)
(+ x (* z (/ y a)))
(if (<= a 3.2e-279)
t_1
(if (<= a 7.5e-182)
(* x (/ z t))
(if (<= a 3.4e-40) t_1 (+ x (* y (/ z a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double tmp;
if (a <= -3.9e+24) {
tmp = x + (z * (y / a));
} else if (a <= 3.2e-279) {
tmp = t_1;
} else if (a <= 7.5e-182) {
tmp = x * (z / t);
} else if (a <= 3.4e-40) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = y * (1.0d0 - (z / t))
if (a <= (-3.9d+24)) then
tmp = x + (z * (y / a))
else if (a <= 3.2d-279) then
tmp = t_1
else if (a <= 7.5d-182) then
tmp = x * (z / t)
else if (a <= 3.4d-40) then
tmp = t_1
else
tmp = 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 t_1 = y * (1.0 - (z / t));
double tmp;
if (a <= -3.9e+24) {
tmp = x + (z * (y / a));
} else if (a <= 3.2e-279) {
tmp = t_1;
} else if (a <= 7.5e-182) {
tmp = x * (z / t);
} else if (a <= 3.4e-40) {
tmp = t_1;
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) tmp = 0 if a <= -3.9e+24: tmp = x + (z * (y / a)) elif a <= 3.2e-279: tmp = t_1 elif a <= 7.5e-182: tmp = x * (z / t) elif a <= 3.4e-40: tmp = t_1 else: tmp = x + (y * (z / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) tmp = 0.0 if (a <= -3.9e+24) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (a <= 3.2e-279) tmp = t_1; elseif (a <= 7.5e-182) tmp = Float64(x * Float64(z / t)); elseif (a <= 3.4e-40) tmp = t_1; else tmp = Float64(x + Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); tmp = 0.0; if (a <= -3.9e+24) tmp = x + (z * (y / a)); elseif (a <= 3.2e-279) tmp = t_1; elseif (a <= 7.5e-182) tmp = x * (z / t); elseif (a <= 3.4e-40) tmp = t_1; else tmp = x + (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.9e+24], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-279], t$95$1, If[LessEqual[a, 7.5e-182], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.4e-40], t$95$1, N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;a \leq -3.9 \cdot 10^{+24}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-182}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -3.8999999999999998e24Initial program 58.5%
Taylor expanded in t around 0 55.7%
associate-/l*68.4%
Simplified68.4%
Taylor expanded in y around inf 60.4%
if -3.8999999999999998e24 < a < 3.1999999999999999e-279 or 7.49999999999999935e-182 < a < 3.39999999999999984e-40Initial program 66.7%
Taylor expanded in t around inf 69.3%
associate--l+69.3%
distribute-lft-out--69.3%
div-sub69.4%
mul-1-neg69.4%
unsub-neg69.4%
div-sub69.3%
associate-/l*78.2%
associate-/l*76.4%
distribute-rgt-out--78.4%
Simplified78.4%
Taylor expanded in z around inf 61.7%
associate-*r/70.5%
Simplified70.5%
Taylor expanded in y around inf 53.5%
if 3.1999999999999999e-279 < a < 7.49999999999999935e-182Initial program 84.7%
Taylor expanded in t around inf 69.9%
associate--l+69.9%
distribute-lft-out--69.9%
div-sub69.9%
mul-1-neg69.9%
unsub-neg69.9%
div-sub69.9%
associate-/l*74.0%
associate-/l*68.5%
distribute-rgt-out--73.8%
Simplified73.8%
Taylor expanded in y around 0 52.8%
associate-/l*63.7%
Simplified63.7%
Taylor expanded in z around inf 52.8%
associate-/l*63.8%
Simplified63.8%
if 3.39999999999999984e-40 < a Initial program 72.7%
Taylor expanded in t around 0 59.8%
associate-/l*65.2%
Simplified65.2%
Taylor expanded in y around inf 59.7%
associate-/l*63.9%
Simplified63.9%
Final simplification58.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ (- z t) (- a t))))))
(if (<= y -1.65e-126)
t_1
(if (<= y -3.4e-214)
(+ y (/ (- z a) (/ t x)))
(if (<= y 7e-81) (* x (+ (/ (- z t) (- t a)) 1.0)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((z - t) / (a - t)));
double tmp;
if (y <= -1.65e-126) {
tmp = t_1;
} else if (y <= -3.4e-214) {
tmp = y + ((z - a) / (t / x));
} else if (y <= 7e-81) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} 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 * ((z - t) / (a - t)))
if (y <= (-1.65d-126)) then
tmp = t_1
else if (y <= (-3.4d-214)) then
tmp = y + ((z - a) / (t / x))
else if (y <= 7d-81) then
tmp = x * (((z - t) / (t - a)) + 1.0d0)
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 * ((z - t) / (a - t)));
double tmp;
if (y <= -1.65e-126) {
tmp = t_1;
} else if (y <= -3.4e-214) {
tmp = y + ((z - a) / (t / x));
} else if (y <= 7e-81) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * ((z - t) / (a - t))) tmp = 0 if y <= -1.65e-126: tmp = t_1 elif y <= -3.4e-214: tmp = y + ((z - a) / (t / x)) elif y <= 7e-81: tmp = x * (((z - t) / (t - a)) + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (y <= -1.65e-126) tmp = t_1; elseif (y <= -3.4e-214) tmp = Float64(y + Float64(Float64(z - a) / Float64(t / x))); elseif (y <= 7e-81) tmp = Float64(x * Float64(Float64(Float64(z - t) / Float64(t - a)) + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * ((z - t) / (a - t))); tmp = 0.0; if (y <= -1.65e-126) tmp = t_1; elseif (y <= -3.4e-214) tmp = y + ((z - a) / (t / x)); elseif (y <= 7e-81) tmp = x * (((z - t) / (t - a)) + 1.0); 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[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.65e-126], t$95$1, If[LessEqual[y, -3.4e-214], N[(y + N[(N[(z - a), $MachinePrecision] / N[(t / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-81], N[(x * N[(N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y \leq -1.65 \cdot 10^{-126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-214}:\\
\;\;\;\;y + \frac{z - a}{\frac{t}{x}}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \left(\frac{z - t}{t - a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.65e-126 or 6.99999999999999973e-81 < y Initial program 68.4%
Taylor expanded in y around inf 63.5%
associate-/l*80.4%
Simplified80.4%
if -1.65e-126 < y < -3.3999999999999999e-214Initial program 63.6%
Taylor expanded in t around inf 69.2%
associate--l+69.2%
distribute-lft-out--69.2%
div-sub69.2%
mul-1-neg69.2%
unsub-neg69.2%
div-sub69.2%
associate-/l*75.1%
associate-/l*68.9%
distribute-rgt-out--75.1%
Simplified75.1%
*-commutative75.1%
clear-num75.0%
un-div-inv75.3%
Applied egg-rr75.3%
Taylor expanded in y around 0 75.4%
associate-*r/75.4%
neg-mul-175.4%
Simplified75.4%
if -3.3999999999999999e-214 < y < 6.99999999999999973e-81Initial program 67.0%
Taylor expanded in x around inf 71.3%
mul-1-neg71.3%
unsub-neg71.3%
Simplified71.3%
Final simplification77.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.8e+72)
(+ x y)
(if (<= t 8e-80)
(* x (- 1.0 (/ z a)))
(if (<= t 4e+212) (+ x y) (if (<= t 5.7e+259) (* x (/ z t)) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+72) {
tmp = x + y;
} else if (t <= 8e-80) {
tmp = x * (1.0 - (z / a));
} else if (t <= 4e+212) {
tmp = x + y;
} else if (t <= 5.7e+259) {
tmp = x * (z / t);
} 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.8d+72)) then
tmp = x + y
else if (t <= 8d-80) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 4d+212) then
tmp = x + y
else if (t <= 5.7d+259) then
tmp = x * (z / t)
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.8e+72) {
tmp = x + y;
} else if (t <= 8e-80) {
tmp = x * (1.0 - (z / a));
} else if (t <= 4e+212) {
tmp = x + y;
} else if (t <= 5.7e+259) {
tmp = x * (z / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.8e+72: tmp = x + y elif t <= 8e-80: tmp = x * (1.0 - (z / a)) elif t <= 4e+212: tmp = x + y elif t <= 5.7e+259: tmp = x * (z / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.8e+72) tmp = Float64(x + y); elseif (t <= 8e-80) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 4e+212) tmp = Float64(x + y); elseif (t <= 5.7e+259) tmp = Float64(x * Float64(z / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.8e+72) tmp = x + y; elseif (t <= 8e-80) tmp = x * (1.0 - (z / a)); elseif (t <= 4e+212) tmp = x + y; elseif (t <= 5.7e+259) tmp = x * (z / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.8e+72], N[(x + y), $MachinePrecision], If[LessEqual[t, 8e-80], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+212], N[(x + y), $MachinePrecision], If[LessEqual[t, 5.7e+259], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+72}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-80}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+212}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{+259}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.80000000000000006e72 or 7.99999999999999969e-80 < t < 3.9999999999999996e212Initial program 53.2%
Taylor expanded in y around inf 48.2%
associate-/l*67.3%
Simplified67.3%
Taylor expanded in z around inf 61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
Taylor expanded in t around inf 49.0%
if -3.80000000000000006e72 < t < 7.99999999999999969e-80Initial program 85.5%
Taylor expanded in t around 0 62.2%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in x around inf 47.2%
mul-1-neg47.2%
unsub-neg47.2%
Simplified47.2%
if 3.9999999999999996e212 < t < 5.7e259Initial program 41.5%
Taylor expanded in t around inf 44.2%
associate--l+44.2%
distribute-lft-out--44.2%
div-sub44.2%
mul-1-neg44.2%
unsub-neg44.2%
div-sub44.2%
associate-/l*66.2%
associate-/l*82.4%
distribute-rgt-out--82.4%
Simplified82.4%
Taylor expanded in y around 0 32.6%
associate-/l*59.9%
Simplified59.9%
Taylor expanded in z around inf 27.2%
associate-/l*50.4%
Simplified50.4%
if 5.7e259 < t Initial program 4.3%
Taylor expanded in t around inf 91.2%
Final simplification49.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.7e-14) (not (<= a 2.5e-43))) (+ x (* y (/ (- z t) (- a t)))) (+ y (* (- z a) (/ (- x y) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.7e-14) || !(a <= 2.5e-43)) {
tmp = x + (y * ((z - t) / (a - t)));
} else {
tmp = y + ((z - a) * ((x - y) / 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 <= (-3.7d-14)) .or. (.not. (a <= 2.5d-43))) then
tmp = x + (y * ((z - t) / (a - t)))
else
tmp = y + ((z - a) * ((x - y) / 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 <= -3.7e-14) || !(a <= 2.5e-43)) {
tmp = x + (y * ((z - t) / (a - t)));
} else {
tmp = y + ((z - a) * ((x - y) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.7e-14) or not (a <= 2.5e-43): tmp = x + (y * ((z - t) / (a - t))) else: tmp = y + ((z - a) * ((x - y) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.7e-14) || !(a <= 2.5e-43)) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))); else tmp = Float64(y + Float64(Float64(z - a) * Float64(Float64(x - y) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.7e-14) || ~((a <= 2.5e-43))) tmp = x + (y * ((z - t) / (a - t))); else tmp = y + ((z - a) * ((x - y) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.7e-14], N[Not[LessEqual[a, 2.5e-43]], $MachinePrecision]], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(z - a), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{-14} \lor \neg \left(a \leq 2.5 \cdot 10^{-43}\right):\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\
\end{array}
\end{array}
if a < -3.70000000000000001e-14 or 2.50000000000000009e-43 < a Initial program 66.4%
Taylor expanded in y around inf 63.6%
associate-/l*77.7%
Simplified77.7%
if -3.70000000000000001e-14 < a < 2.50000000000000009e-43Initial program 69.4%
Taylor expanded in t around inf 72.9%
associate--l+72.9%
distribute-lft-out--72.9%
div-sub72.9%
mul-1-neg72.9%
unsub-neg72.9%
div-sub72.9%
associate-/l*80.3%
associate-/l*77.6%
distribute-rgt-out--80.4%
Simplified80.4%
Final simplification78.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -5.5e-15) (not (<= a 6.8e-48))) (+ x (* y (/ (- z t) (- a t)))) (+ y (/ (- z a) (/ t (- x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.5e-15) || !(a <= 6.8e-48)) {
tmp = x + (y * ((z - t) / (a - t)));
} else {
tmp = y + ((z - a) / (t / (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 ((a <= (-5.5d-15)) .or. (.not. (a <= 6.8d-48))) then
tmp = x + (y * ((z - t) / (a - t)))
else
tmp = y + ((z - a) / (t / (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 ((a <= -5.5e-15) || !(a <= 6.8e-48)) {
tmp = x + (y * ((z - t) / (a - t)));
} else {
tmp = y + ((z - a) / (t / (x - y)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -5.5e-15) or not (a <= 6.8e-48): tmp = x + (y * ((z - t) / (a - t))) else: tmp = y + ((z - a) / (t / (x - y))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -5.5e-15) || !(a <= 6.8e-48)) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))); else tmp = Float64(y + Float64(Float64(z - a) / Float64(t / Float64(x - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -5.5e-15) || ~((a <= 6.8e-48))) tmp = x + (y * ((z - t) / (a - t))); else tmp = y + ((z - a) / (t / (x - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.5e-15], N[Not[LessEqual[a, 6.8e-48]], $MachinePrecision]], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(z - a), $MachinePrecision] / N[(t / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.5 \cdot 10^{-15} \lor \neg \left(a \leq 6.8 \cdot 10^{-48}\right):\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{z - a}{\frac{t}{x - y}}\\
\end{array}
\end{array}
if a < -5.5000000000000002e-15 or 6.80000000000000056e-48 < a Initial program 66.4%
Taylor expanded in y around inf 63.6%
associate-/l*77.7%
Simplified77.7%
if -5.5000000000000002e-15 < a < 6.80000000000000056e-48Initial program 69.4%
Taylor expanded in t around inf 72.9%
associate--l+72.9%
distribute-lft-out--72.9%
div-sub72.9%
mul-1-neg72.9%
unsub-neg72.9%
div-sub72.9%
associate-/l*80.3%
associate-/l*77.6%
distribute-rgt-out--80.4%
Simplified80.4%
*-commutative80.4%
clear-num80.4%
un-div-inv80.5%
Applied egg-rr80.5%
Final simplification78.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.15e+150) (not (<= z 1.45e+107))) (* x (/ z t)) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.15e+150) || !(z <= 1.45e+107)) {
tmp = x * (z / t);
} 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 ((z <= (-1.15d+150)) .or. (.not. (z <= 1.45d+107))) then
tmp = x * (z / t)
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 ((z <= -1.15e+150) || !(z <= 1.45e+107)) {
tmp = x * (z / t);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.15e+150) or not (z <= 1.45e+107): tmp = x * (z / t) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.15e+150) || !(z <= 1.45e+107)) tmp = Float64(x * Float64(z / t)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.15e+150) || ~((z <= 1.45e+107))) tmp = x * (z / t); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.15e+150], N[Not[LessEqual[z, 1.45e+107]], $MachinePrecision]], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+150} \lor \neg \left(z \leq 1.45 \cdot 10^{+107}\right):\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.15000000000000001e150 or 1.44999999999999994e107 < z Initial program 67.0%
Taylor expanded in t around inf 46.1%
associate--l+46.1%
distribute-lft-out--46.1%
div-sub46.1%
mul-1-neg46.1%
unsub-neg46.1%
div-sub46.1%
associate-/l*59.3%
associate-/l*61.4%
distribute-rgt-out--64.0%
Simplified64.0%
Taylor expanded in y around 0 26.4%
associate-/l*40.7%
Simplified40.7%
Taylor expanded in z around inf 26.6%
associate-/l*40.0%
Simplified40.0%
if -1.15000000000000001e150 < z < 1.44999999999999994e107Initial program 68.0%
Taylor expanded in y around inf 60.8%
associate-/l*71.9%
Simplified71.9%
Taylor expanded in z around inf 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
Simplified65.7%
Taylor expanded in t around inf 46.0%
Final simplification44.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.9e+153) x (if (<= a 7500.0) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.9e+153) {
tmp = x;
} else if (a <= 7500.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-2.9d+153)) then
tmp = x
else if (a <= 7500.0d0) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.9e+153) {
tmp = x;
} else if (a <= 7500.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.9e+153: tmp = x elif a <= 7500.0: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.9e+153) tmp = x; elseif (a <= 7500.0) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.9e+153) tmp = x; elseif (a <= 7500.0) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.9e+153], x, If[LessEqual[a, 7500.0], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.9 \cdot 10^{+153}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 7500:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.90000000000000002e153 or 7500 < a Initial program 69.3%
Taylor expanded in a around inf 50.9%
if -2.90000000000000002e153 < a < 7500Initial program 66.7%
Taylor expanded in t around inf 30.5%
Final simplification38.2%
(FPCore (x y z t a) :precision binary64 (+ x y))
double code(double x, double y, double z, double t, double a) {
return x + y;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x + y;
}
def code(x, y, z, t, a): return x + y
function code(x, y, z, t, a) return Float64(x + y) end
function tmp = code(x, y, z, t, a) tmp = x + y; end
code[x_, y_, z_, t_, a_] := N[(x + y), $MachinePrecision]
\begin{array}{l}
\\
x + y
\end{array}
Initial program 67.7%
Taylor expanded in y around inf 56.2%
associate-/l*67.5%
Simplified67.5%
Taylor expanded in z around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
Taylor expanded in t around inf 36.6%
Final simplification36.6%
(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 67.7%
Taylor expanded in a around inf 24.3%
Final simplification24.3%
(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 2024077
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))