
(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 18 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
(if (<= t -6.2e+80)
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t 5.5e+156)
(fma (/ (- z t) (- a t)) (- y x) x)
(- y (* x (/ (- a z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.2e+80) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 5.5e+156) {
tmp = fma(((z - t) / (a - t)), (y - x), x);
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.2e+80) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t <= 5.5e+156) tmp = fma(Float64(Float64(z - t) / Float64(a - t)), Float64(y - x), x); else tmp = Float64(y - Float64(x * Float64(Float64(a - z) / t))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.2e+80], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+156], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(y - N[(x * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.2 \cdot 10^{+80}:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+156}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;y - x \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < -6.19999999999999976e80Initial program 28.2%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*91.2%
Simplified91.2%
associate-/r/91.3%
Applied egg-rr91.3%
if -6.19999999999999976e80 < t < 5.5000000000000003e156Initial program 88.3%
+-commutative88.3%
*-commutative88.3%
associate-/l*93.0%
associate-/r/95.2%
fma-def95.2%
Simplified95.2%
if 5.5000000000000003e156 < t Initial program 35.1%
associate-*l/44.5%
Simplified44.5%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*96.7%
Simplified96.7%
Taylor expanded in y around 0 84.7%
mul-1-neg84.7%
associate-*r/97.0%
distribute-rgt-neg-in97.0%
Simplified97.0%
Final simplification94.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z a))))
(if (<= t -8e+77)
y
(if (<= t 2.6e-275)
x
(if (<= t 1.25e-225)
t_1
(if (<= t 1.42e-113)
x
(if (<= t 0.00026) t_1 (if (<= t 1.52e+77) x y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / a);
double tmp;
if (t <= -8e+77) {
tmp = y;
} else if (t <= 2.6e-275) {
tmp = x;
} else if (t <= 1.25e-225) {
tmp = t_1;
} else if (t <= 1.42e-113) {
tmp = x;
} else if (t <= 0.00026) {
tmp = t_1;
} else if (t <= 1.52e+77) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * (z / a)
if (t <= (-8d+77)) then
tmp = y
else if (t <= 2.6d-275) then
tmp = x
else if (t <= 1.25d-225) then
tmp = t_1
else if (t <= 1.42d-113) then
tmp = x
else if (t <= 0.00026d0) then
tmp = t_1
else if (t <= 1.52d+77) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / a);
double tmp;
if (t <= -8e+77) {
tmp = y;
} else if (t <= 2.6e-275) {
tmp = x;
} else if (t <= 1.25e-225) {
tmp = t_1;
} else if (t <= 1.42e-113) {
tmp = x;
} else if (t <= 0.00026) {
tmp = t_1;
} else if (t <= 1.52e+77) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / a) tmp = 0 if t <= -8e+77: tmp = y elif t <= 2.6e-275: tmp = x elif t <= 1.25e-225: tmp = t_1 elif t <= 1.42e-113: tmp = x elif t <= 0.00026: tmp = t_1 elif t <= 1.52e+77: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / a)) tmp = 0.0 if (t <= -8e+77) tmp = y; elseif (t <= 2.6e-275) tmp = x; elseif (t <= 1.25e-225) tmp = t_1; elseif (t <= 1.42e-113) tmp = x; elseif (t <= 0.00026) tmp = t_1; elseif (t <= 1.52e+77) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / a); tmp = 0.0; if (t <= -8e+77) tmp = y; elseif (t <= 2.6e-275) tmp = x; elseif (t <= 1.25e-225) tmp = t_1; elseif (t <= 1.42e-113) tmp = x; elseif (t <= 0.00026) tmp = t_1; elseif (t <= 1.52e+77) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8e+77], y, If[LessEqual[t, 2.6e-275], x, If[LessEqual[t, 1.25e-225], t$95$1, If[LessEqual[t, 1.42e-113], x, If[LessEqual[t, 0.00026], t$95$1, If[LessEqual[t, 1.52e+77], x, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -8 \cdot 10^{+77}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-275}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-225}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{-113}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 0.00026:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.52 \cdot 10^{+77}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.99999999999999986e77 or 1.5200000000000001e77 < t Initial program 42.3%
associate-*l/60.6%
Simplified60.6%
Taylor expanded in t around inf 61.4%
if -7.99999999999999986e77 < t < 2.59999999999999992e-275 or 1.25e-225 < t < 1.4199999999999999e-113 or 2.59999999999999977e-4 < t < 1.5200000000000001e77Initial program 87.6%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in a around inf 39.1%
if 2.59999999999999992e-275 < t < 1.25e-225 or 1.4199999999999999e-113 < t < 2.59999999999999977e-4Initial program 95.0%
associate-*l/95.0%
Simplified95.0%
Taylor expanded in t around 0 61.7%
Taylor expanded in y around inf 52.5%
associate-/l*55.0%
Simplified55.0%
Taylor expanded in x around 0 39.7%
associate-*r/42.1%
Simplified42.1%
Final simplification47.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (/ (- y x) (/ t z)))))
(if (<= t -1.25e+79)
t_1
(if (<= t 7.6e-91)
(+ x (/ z (/ a (- y x))))
(if (<= t 0.00045)
(* y (/ (- z t) (- a t)))
(if (<= t 1.02e+14) (* x (- 1.0 (/ z a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y - ((y - x) / (t / z));
double tmp;
if (t <= -1.25e+79) {
tmp = t_1;
} else if (t <= 7.6e-91) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 0.00045) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 1.02e+14) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y - ((y - x) / (t / z))
if (t <= (-1.25d+79)) then
tmp = t_1
else if (t <= 7.6d-91) then
tmp = x + (z / (a / (y - x)))
else if (t <= 0.00045d0) then
tmp = y * ((z - t) / (a - t))
else if (t <= 1.02d+14) then
tmp = x * (1.0d0 - (z / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y - ((y - x) / (t / z));
double tmp;
if (t <= -1.25e+79) {
tmp = t_1;
} else if (t <= 7.6e-91) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 0.00045) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 1.02e+14) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y - ((y - x) / (t / z)) tmp = 0 if t <= -1.25e+79: tmp = t_1 elif t <= 7.6e-91: tmp = x + (z / (a / (y - x))) elif t <= 0.00045: tmp = y * ((z - t) / (a - t)) elif t <= 1.02e+14: tmp = x * (1.0 - (z / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y - Float64(Float64(y - x) / Float64(t / z))) tmp = 0.0 if (t <= -1.25e+79) tmp = t_1; elseif (t <= 7.6e-91) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); elseif (t <= 0.00045) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 1.02e+14) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y - ((y - x) / (t / z)); tmp = 0.0; if (t <= -1.25e+79) tmp = t_1; elseif (t <= 7.6e-91) tmp = x + (z / (a / (y - x))); elseif (t <= 0.00045) tmp = y * ((z - t) / (a - t)); elseif (t <= 1.02e+14) tmp = x * (1.0 - (z / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y - N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+79], t$95$1, If[LessEqual[t, 7.6e-91], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00045], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+14], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{y - x}{\frac{t}{z}}\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-91}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;t \leq 0.00045:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+14}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.25e79 or 1.02e14 < t Initial program 43.5%
associate-*l/64.1%
Simplified64.1%
Taylor expanded in t around inf 70.2%
associate--l+70.2%
associate-*r/70.2%
associate-*r/70.2%
div-sub70.2%
distribute-lft-out--70.2%
associate-*r/70.2%
mul-1-neg70.2%
unsub-neg70.2%
distribute-rgt-out--70.2%
associate-/l*86.7%
Simplified86.7%
Taylor expanded in z around inf 77.9%
if -1.25e79 < t < 7.59999999999999957e-91Initial program 92.4%
associate-*l/93.2%
Simplified93.2%
Taylor expanded in t around 0 72.7%
associate-/l*75.6%
Simplified75.6%
if 7.59999999999999957e-91 < t < 4.4999999999999999e-4Initial program 94.8%
associate-*l/89.9%
Simplified89.9%
associate-/r/94.9%
Applied egg-rr94.9%
Taylor expanded in y around inf 74.2%
div-sub74.2%
Simplified74.2%
if 4.4999999999999999e-4 < t < 1.02e14Initial program 81.7%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in t around 0 62.7%
Taylor expanded in x around inf 81.2%
mul-1-neg81.2%
unsub-neg81.2%
Simplified81.2%
Final simplification76.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.25e+79)
(- y (/ (- y x) (/ t z)))
(if (<= t 8.5e-91)
(+ x (/ z (/ a (- y x))))
(if (<= t 8.2e-5)
(* y (/ (- z t) (- a t)))
(if (<= t 1.7e+15) (* x (- 1.0 (/ z a))) (- y (* x (/ (- a z) t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.25e+79) {
tmp = y - ((y - x) / (t / z));
} else if (t <= 8.5e-91) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 8.2e-5) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 1.7e+15) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.25d+79)) then
tmp = y - ((y - x) / (t / z))
else if (t <= 8.5d-91) then
tmp = x + (z / (a / (y - x)))
else if (t <= 8.2d-5) then
tmp = y * ((z - t) / (a - t))
else if (t <= 1.7d+15) then
tmp = x * (1.0d0 - (z / a))
else
tmp = y - (x * ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.25e+79) {
tmp = y - ((y - x) / (t / z));
} else if (t <= 8.5e-91) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 8.2e-5) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 1.7e+15) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.25e+79: tmp = y - ((y - x) / (t / z)) elif t <= 8.5e-91: tmp = x + (z / (a / (y - x))) elif t <= 8.2e-5: tmp = y * ((z - t) / (a - t)) elif t <= 1.7e+15: tmp = x * (1.0 - (z / a)) else: tmp = y - (x * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.25e+79) tmp = Float64(y - Float64(Float64(y - x) / Float64(t / z))); elseif (t <= 8.5e-91) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); elseif (t <= 8.2e-5) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 1.7e+15) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = Float64(y - Float64(x * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.25e+79) tmp = y - ((y - x) / (t / z)); elseif (t <= 8.5e-91) tmp = x + (z / (a / (y - x))); elseif (t <= 8.2e-5) tmp = y * ((z - t) / (a - t)); elseif (t <= 1.7e+15) tmp = x * (1.0 - (z / a)); else tmp = y - (x * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.25e+79], N[(y - N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-91], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e-5], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+15], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(x * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+79}:\\
\;\;\;\;y - \frac{y - x}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-91}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-5}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+15}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y - x \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < -1.25e79Initial program 28.2%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*91.2%
Simplified91.2%
Taylor expanded in z around inf 84.0%
if -1.25e79 < t < 8.49999999999999985e-91Initial program 92.4%
associate-*l/93.2%
Simplified93.2%
Taylor expanded in t around 0 72.7%
associate-/l*75.6%
Simplified75.6%
if 8.49999999999999985e-91 < t < 8.20000000000000009e-5Initial program 94.8%
associate-*l/89.9%
Simplified89.9%
associate-/r/94.9%
Applied egg-rr94.9%
Taylor expanded in y around inf 74.2%
div-sub74.2%
Simplified74.2%
if 8.20000000000000009e-5 < t < 1.7e15Initial program 81.7%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in t around 0 62.7%
Taylor expanded in x around inf 81.2%
mul-1-neg81.2%
unsub-neg81.2%
Simplified81.2%
if 1.7e15 < t Initial program 52.0%
associate-*l/68.4%
Simplified68.4%
Taylor expanded in t around inf 69.1%
associate--l+69.1%
associate-*r/69.1%
associate-*r/69.1%
div-sub69.1%
distribute-lft-out--69.1%
associate-*r/69.1%
mul-1-neg69.1%
unsub-neg69.1%
distribute-rgt-out--69.1%
associate-/l*84.2%
Simplified84.2%
Taylor expanded in y around 0 73.7%
mul-1-neg73.7%
associate-*r/80.1%
distribute-rgt-neg-in80.1%
Simplified80.1%
Final simplification77.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ a z)))))
(if (<= t -9.6e+92)
y
(if (<= t -6.4e-99)
t_1
(if (<= t -2.35e-262)
(* x (- 1.0 (/ z a)))
(if (<= t 6e+108) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (t <= -9.6e+92) {
tmp = y;
} else if (t <= -6.4e-99) {
tmp = t_1;
} else if (t <= -2.35e-262) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6e+108) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y / (a / z))
if (t <= (-9.6d+92)) then
tmp = y
else if (t <= (-6.4d-99)) then
tmp = t_1
else if (t <= (-2.35d-262)) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 6d+108) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / z));
double tmp;
if (t <= -9.6e+92) {
tmp = y;
} else if (t <= -6.4e-99) {
tmp = t_1;
} else if (t <= -2.35e-262) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6e+108) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (a / z)) tmp = 0 if t <= -9.6e+92: tmp = y elif t <= -6.4e-99: tmp = t_1 elif t <= -2.35e-262: tmp = x * (1.0 - (z / a)) elif t <= 6e+108: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (t <= -9.6e+92) tmp = y; elseif (t <= -6.4e-99) tmp = t_1; elseif (t <= -2.35e-262) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 6e+108) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (a / z)); tmp = 0.0; if (t <= -9.6e+92) tmp = y; elseif (t <= -6.4e-99) tmp = t_1; elseif (t <= -2.35e-262) tmp = x * (1.0 - (z / a)); elseif (t <= 6e+108) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.6e+92], y, If[LessEqual[t, -6.4e-99], t$95$1, If[LessEqual[t, -2.35e-262], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+108], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;t \leq -9.6 \cdot 10^{+92}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.35 \cdot 10^{-262}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+108}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -9.60000000000000018e92 or 5.99999999999999968e108 < t Initial program 38.4%
associate-*l/58.6%
Simplified58.6%
Taylor expanded in t around inf 65.7%
if -9.60000000000000018e92 < t < -6.4000000000000001e-99 or -2.3499999999999999e-262 < t < 5.99999999999999968e108Initial program 86.0%
associate-*l/92.2%
Simplified92.2%
Taylor expanded in t around 0 62.9%
Taylor expanded in y around inf 55.5%
associate-/l*59.0%
Simplified59.0%
if -6.4000000000000001e-99 < t < -2.3499999999999999e-262Initial program 97.5%
associate-*l/91.5%
Simplified91.5%
Taylor expanded in t around 0 76.2%
Taylor expanded in x around inf 63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
Final simplification61.7%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.4e+86)
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t 1.05e+157)
(+ x (* (- z t) (/ (- y x) (- a t))))
(- y (* x (/ (- a z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.4e+86) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 1.05e+157) {
tmp = x + ((z - t) * ((y - x) / (a - t)));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.4d+86)) then
tmp = y + (((y - x) / t) * (a - z))
else if (t <= 1.05d+157) then
tmp = x + ((z - t) * ((y - x) / (a - t)))
else
tmp = y - (x * ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.4e+86) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 1.05e+157) {
tmp = x + ((z - t) * ((y - x) / (a - t)));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.4e+86: tmp = y + (((y - x) / t) * (a - z)) elif t <= 1.05e+157: tmp = x + ((z - t) * ((y - x) / (a - t))) else: tmp = y - (x * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.4e+86) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t <= 1.05e+157) tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))); else tmp = Float64(y - Float64(x * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.4e+86) tmp = y + (((y - x) / t) * (a - z)); elseif (t <= 1.05e+157) tmp = x + ((z - t) * ((y - x) / (a - t))); else tmp = y - (x * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.4e+86], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+157], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(x * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+86}:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+157}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y - x \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < -2.4e86Initial program 28.2%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*91.2%
Simplified91.2%
associate-/r/91.3%
Applied egg-rr91.3%
if -2.4e86 < t < 1.05e157Initial program 88.3%
associate-*l/92.8%
Simplified92.8%
if 1.05e157 < t Initial program 35.1%
associate-*l/44.5%
Simplified44.5%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*96.7%
Simplified96.7%
Taylor expanded in y around 0 84.7%
mul-1-neg84.7%
associate-*r/97.0%
distribute-rgt-neg-in97.0%
Simplified97.0%
Final simplification93.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.2e+84)
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t 1.05e+157)
(+ x (/ (- y x) (/ (- a t) (- z t))))
(- y (* x (/ (- a z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.2e+84) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 1.05e+157) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.2d+84)) then
tmp = y + (((y - x) / t) * (a - z))
else if (t <= 1.05d+157) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else
tmp = y - (x * ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.2e+84) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 1.05e+157) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.2e+84: tmp = y + (((y - x) / t) * (a - z)) elif t <= 1.05e+157: tmp = x + ((y - x) / ((a - t) / (z - t))) else: tmp = y - (x * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.2e+84) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t <= 1.05e+157) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y - Float64(x * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.2e+84) tmp = y + (((y - x) / t) * (a - z)); elseif (t <= 1.05e+157) tmp = x + ((y - x) / ((a - t) / (z - t))); else tmp = y - (x * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.2e+84], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+157], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(x * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{+84}:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+157}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y - x \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < -1.2e84Initial program 28.2%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*91.2%
Simplified91.2%
associate-/r/91.3%
Applied egg-rr91.3%
if -1.2e84 < t < 1.05e157Initial program 88.3%
associate-*l/92.8%
Simplified92.8%
associate-/r/94.7%
Applied egg-rr94.7%
if 1.05e157 < t Initial program 35.1%
associate-*l/44.5%
Simplified44.5%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*96.7%
Simplified96.7%
Taylor expanded in y around 0 84.7%
mul-1-neg84.7%
associate-*r/97.0%
distribute-rgt-neg-in97.0%
Simplified97.0%
Final simplification94.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.05e+118) (not (<= t 6.3e+108))) (- y (* x (/ (- a z) t))) (+ x (/ (- y x) (/ (- a t) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.05e+118) || !(t <= 6.3e+108)) {
tmp = y - (x * ((a - z) / t));
} else {
tmp = x + ((y - x) / ((a - t) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-1.05d+118)) .or. (.not. (t <= 6.3d+108))) then
tmp = y - (x * ((a - z) / t))
else
tmp = x + ((y - x) / ((a - t) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.05e+118) || !(t <= 6.3e+108)) {
tmp = y - (x * ((a - z) / t));
} else {
tmp = x + ((y - x) / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.05e+118) or not (t <= 6.3e+108): tmp = y - (x * ((a - z) / t)) else: tmp = x + ((y - x) / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.05e+118) || !(t <= 6.3e+108)) tmp = Float64(y - Float64(x * Float64(Float64(a - z) / t))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.05e+118) || ~((t <= 6.3e+108))) tmp = y - (x * ((a - z) / t)); else tmp = x + ((y - x) / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.05e+118], N[Not[LessEqual[t, 6.3e+108]], $MachinePrecision]], N[(y - N[(x * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{+118} \lor \neg \left(t \leq 6.3 \cdot 10^{+108}\right):\\
\;\;\;\;y - x \cdot \frac{a - z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if t < -1.05e118 or 6.3e108 < t Initial program 35.9%
associate-*l/56.9%
Simplified56.9%
Taylor expanded in t around inf 73.9%
associate--l+73.9%
associate-*r/73.9%
associate-*r/73.9%
div-sub73.9%
distribute-lft-out--73.9%
associate-*r/73.9%
mul-1-neg73.9%
unsub-neg73.9%
distribute-rgt-out--73.9%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in y around 0 80.6%
mul-1-neg80.6%
associate-*r/91.2%
distribute-rgt-neg-in91.2%
Simplified91.2%
if -1.05e118 < t < 6.3e108Initial program 89.0%
associate-*l/92.2%
Simplified92.2%
associate-/r/94.1%
Applied egg-rr94.1%
Taylor expanded in z around inf 81.4%
Final simplification84.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -5.8e+82)
(- y (/ (- y x) (/ t z)))
(if (<= t 1.7e+18)
(+ x (/ (- y x) (/ a (- z t))))
(- y (* x (/ (- a z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.8e+82) {
tmp = y - ((y - x) / (t / z));
} else if (t <= 1.7e+18) {
tmp = x + ((y - x) / (a / (z - t)));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-5.8d+82)) then
tmp = y - ((y - x) / (t / z))
else if (t <= 1.7d+18) then
tmp = x + ((y - x) / (a / (z - t)))
else
tmp = y - (x * ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.8e+82) {
tmp = y - ((y - x) / (t / z));
} else if (t <= 1.7e+18) {
tmp = x + ((y - x) / (a / (z - t)));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.8e+82: tmp = y - ((y - x) / (t / z)) elif t <= 1.7e+18: tmp = x + ((y - x) / (a / (z - t))) else: tmp = y - (x * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.8e+82) tmp = Float64(y - Float64(Float64(y - x) / Float64(t / z))); elseif (t <= 1.7e+18) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / Float64(z - t)))); else tmp = Float64(y - Float64(x * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.8e+82) tmp = y - ((y - x) / (t / z)); elseif (t <= 1.7e+18) tmp = x + ((y - x) / (a / (z - t))); else tmp = y - (x * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.8e+82], N[(y - N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+18], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(x * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{+82}:\\
\;\;\;\;y - \frac{y - x}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+18}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y - x \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < -5.8000000000000003e82Initial program 28.2%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*91.2%
Simplified91.2%
Taylor expanded in z around inf 84.0%
if -5.8000000000000003e82 < t < 1.7e18Initial program 92.4%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in a around inf 74.2%
associate-/l*77.4%
Simplified77.4%
if 1.7e18 < t Initial program 52.0%
associate-*l/68.4%
Simplified68.4%
Taylor expanded in t around inf 69.1%
associate--l+69.1%
associate-*r/69.1%
associate-*r/69.1%
div-sub69.1%
distribute-lft-out--69.1%
associate-*r/69.1%
mul-1-neg69.1%
unsub-neg69.1%
distribute-rgt-out--69.1%
associate-/l*84.2%
Simplified84.2%
Taylor expanded in y around 0 73.7%
mul-1-neg73.7%
associate-*r/80.1%
distribute-rgt-neg-in80.1%
Simplified80.1%
Final simplification79.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.04e+80)
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t 2.3e+108)
(+ x (/ (- y x) (/ (- a t) z)))
(- y (* x (/ (- a z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.04e+80) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 2.3e+108) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.04d+80)) then
tmp = y + (((y - x) / t) * (a - z))
else if (t <= 2.3d+108) then
tmp = x + ((y - x) / ((a - t) / z))
else
tmp = y - (x * ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.04e+80) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 2.3e+108) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y - (x * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.04e+80: tmp = y + (((y - x) / t) * (a - z)) elif t <= 2.3e+108: tmp = x + ((y - x) / ((a - t) / z)) else: tmp = y - (x * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.04e+80) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t <= 2.3e+108) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); else tmp = Float64(y - Float64(x * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.04e+80) tmp = y + (((y - x) / t) * (a - z)); elseif (t <= 2.3e+108) tmp = x + ((y - x) / ((a - t) / z)); else tmp = y - (x * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.04e+80], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e+108], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(x * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.04 \cdot 10^{+80}:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+108}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{else}:\\
\;\;\;\;y - x \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < -1.04000000000000006e80Initial program 28.2%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*91.2%
Simplified91.2%
associate-/r/91.3%
Applied egg-rr91.3%
if -1.04000000000000006e80 < t < 2.2999999999999999e108Initial program 89.6%
associate-*l/92.8%
Simplified92.8%
associate-/r/94.8%
Applied egg-rr94.8%
Taylor expanded in z around inf 81.8%
if 2.2999999999999999e108 < t Initial program 46.8%
associate-*l/59.6%
Simplified59.6%
Taylor expanded in t around inf 76.4%
associate--l+76.4%
associate-*r/76.4%
associate-*r/76.4%
div-sub76.4%
distribute-lft-out--76.4%
associate-*r/76.4%
mul-1-neg76.4%
unsub-neg76.4%
distribute-rgt-out--76.4%
associate-/l*95.5%
Simplified95.5%
Taylor expanded in y around 0 83.0%
mul-1-neg83.0%
associate-*r/92.0%
distribute-rgt-neg-in92.0%
Simplified92.0%
Final simplification84.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.6e+79)
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t 5.2e+108)
(+ x (/ (- y x) (/ (- a t) z)))
(+ y (/ (- x y) (/ t (- z a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.6e+79) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 5.2e+108) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y + ((x - y) / (t / (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 (t <= (-3.6d+79)) then
tmp = y + (((y - x) / t) * (a - z))
else if (t <= 5.2d+108) then
tmp = x + ((y - x) / ((a - t) / z))
else
tmp = y + ((x - y) / (t / (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 (t <= -3.6e+79) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t <= 5.2e+108) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y + ((x - y) / (t / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.6e+79: tmp = y + (((y - x) / t) * (a - z)) elif t <= 5.2e+108: tmp = x + ((y - x) / ((a - t) / z)) else: tmp = y + ((x - y) / (t / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.6e+79) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t <= 5.2e+108) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); else tmp = Float64(y + Float64(Float64(x - y) / Float64(t / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.6e+79) tmp = y + (((y - x) / t) * (a - z)); elseif (t <= 5.2e+108) tmp = x + ((y - x) / ((a - t) / z)); else tmp = y + ((x - y) / (t / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.6e+79], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+108], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+79}:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+108}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\end{array}
\end{array}
if t < -3.5999999999999999e79Initial program 28.2%
associate-*l/56.3%
Simplified56.3%
Taylor expanded in t around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
associate-*r/72.1%
div-sub72.1%
distribute-lft-out--72.1%
associate-*r/72.1%
mul-1-neg72.1%
unsub-neg72.1%
distribute-rgt-out--72.1%
associate-/l*91.2%
Simplified91.2%
associate-/r/91.3%
Applied egg-rr91.3%
if -3.5999999999999999e79 < t < 5.2000000000000005e108Initial program 89.6%
associate-*l/92.8%
Simplified92.8%
associate-/r/94.8%
Applied egg-rr94.8%
Taylor expanded in z around inf 81.8%
if 5.2000000000000005e108 < t Initial program 46.8%
associate-*l/59.6%
Simplified59.6%
Taylor expanded in t around inf 76.4%
associate--l+76.4%
associate-*r/76.4%
associate-*r/76.4%
div-sub76.4%
distribute-lft-out--76.4%
associate-*r/76.4%
mul-1-neg76.4%
unsub-neg76.4%
distribute-rgt-out--76.4%
associate-/l*95.5%
Simplified95.5%
Final simplification85.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.52e-40) (not (<= y 7.2e-88))) (* y (/ (- z t) (- a t))) (* x (- 1.0 (/ z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.52e-40) || !(y <= 7.2e-88)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (1.0 - (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 ((y <= (-1.52d-40)) .or. (.not. (y <= 7.2d-88))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x * (1.0d0 - (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 ((y <= -1.52e-40) || !(y <= 7.2e-88)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.52e-40) or not (y <= 7.2e-88): tmp = y * ((z - t) / (a - t)) else: tmp = x * (1.0 - (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.52e-40) || !(y <= 7.2e-88)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x * Float64(1.0 - Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.52e-40) || ~((y <= 7.2e-88))) tmp = y * ((z - t) / (a - t)); else tmp = x * (1.0 - (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.52e-40], N[Not[LessEqual[y, 7.2e-88]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.52 \cdot 10^{-40} \lor \neg \left(y \leq 7.2 \cdot 10^{-88}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\end{array}
\end{array}
if y < -1.51999999999999992e-40 or 7.1999999999999999e-88 < y Initial program 73.5%
associate-*l/89.0%
Simplified89.0%
associate-/r/90.7%
Applied egg-rr90.7%
Taylor expanded in y around inf 71.1%
div-sub71.1%
Simplified71.1%
if -1.51999999999999992e-40 < y < 7.1999999999999999e-88Initial program 73.9%
associate-*l/70.7%
Simplified70.7%
Taylor expanded in t around 0 52.3%
Taylor expanded in x around inf 52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Final simplification64.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.6e+79) (not (<= t 9.5e-91))) (* y (/ (- z t) (- a t))) (+ x (/ z (/ a (- y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.6e+79) || !(t <= 9.5e-91)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z / (a / (y - 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 ((t <= (-1.6d+79)) .or. (.not. (t <= 9.5d-91))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z / (a / (y - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.6e+79) || !(t <= 9.5e-91)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z / (a / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.6e+79) or not (t <= 9.5e-91): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z / (a / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.6e+79) || !(t <= 9.5e-91)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.6e+79) || ~((t <= 9.5e-91))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z / (a / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.6e+79], N[Not[LessEqual[t, 9.5e-91]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+79} \lor \neg \left(t \leq 9.5 \cdot 10^{-91}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\end{array}
\end{array}
if t < -1.60000000000000001e79 or 9.5e-91 < t Initial program 53.0%
associate-*l/69.6%
Simplified69.6%
associate-/r/74.4%
Applied egg-rr74.4%
Taylor expanded in y around inf 67.1%
div-sub67.1%
Simplified67.1%
if -1.60000000000000001e79 < t < 9.5e-91Initial program 92.4%
associate-*l/93.2%
Simplified93.2%
Taylor expanded in t around 0 72.7%
associate-/l*75.6%
Simplified75.6%
Final simplification71.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.58e+78) y (if (<= t 2.4e+87) (* x (+ (/ t a) 1.0)) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.58e+78) {
tmp = y;
} else if (t <= 2.4e+87) {
tmp = x * ((t / a) + 1.0);
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.58d+78)) then
tmp = y
else if (t <= 2.4d+87) then
tmp = x * ((t / a) + 1.0d0)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.58e+78) {
tmp = y;
} else if (t <= 2.4e+87) {
tmp = x * ((t / a) + 1.0);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.58e+78: tmp = y elif t <= 2.4e+87: tmp = x * ((t / a) + 1.0) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.58e+78) tmp = y; elseif (t <= 2.4e+87) tmp = Float64(x * Float64(Float64(t / a) + 1.0)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.58e+78) tmp = y; elseif (t <= 2.4e+87) tmp = x * ((t / a) + 1.0); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.58e+78], y, If[LessEqual[t, 2.4e+87], N[(x * N[(N[(t / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.58 \cdot 10^{+78}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{+87}:\\
\;\;\;\;x \cdot \left(\frac{t}{a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.58000000000000004e78 or 2.39999999999999981e87 < t Initial program 41.6%
associate-*l/60.1%
Simplified60.1%
Taylor expanded in t around inf 62.1%
if -1.58000000000000004e78 < t < 2.39999999999999981e87Initial program 89.3%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in z around 0 43.3%
mul-1-neg43.3%
unsub-neg43.3%
Simplified43.3%
Taylor expanded in a around inf 41.1%
mul-1-neg41.1%
unsub-neg41.1%
Simplified41.1%
Taylor expanded in x around inf 35.6%
sub-neg35.6%
mul-1-neg35.6%
remove-double-neg35.6%
Simplified35.6%
Final simplification44.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.35e+78) y (if (<= t 9.5e+108) (* x (- 1.0 (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.35e+78) {
tmp = y;
} else if (t <= 9.5e+108) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-3.35d+78)) then
tmp = y
else if (t <= 9.5d+108) then
tmp = x * (1.0d0 - (z / a))
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.35e+78) {
tmp = y;
} else if (t <= 9.5e+108) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.35e+78: tmp = y elif t <= 9.5e+108: tmp = x * (1.0 - (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.35e+78) tmp = y; elseif (t <= 9.5e+108) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.35e+78) tmp = y; elseif (t <= 9.5e+108) tmp = x * (1.0 - (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.35e+78], y, If[LessEqual[t, 9.5e+108], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.35 \cdot 10^{+78}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+108}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.34999999999999983e78 or 9.50000000000000097e108 < t Initial program 39.4%
associate-*l/58.7%
Simplified58.7%
Taylor expanded in t around inf 63.0%
if -3.34999999999999983e78 < t < 9.50000000000000097e108Initial program 89.5%
associate-*l/92.8%
Simplified92.8%
Taylor expanded in t around 0 66.5%
Taylor expanded in x around inf 53.5%
mul-1-neg53.5%
unsub-neg53.5%
Simplified53.5%
Final simplification56.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.1e+77) y (if (<= t 9.4e+76) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.1e+77) {
tmp = y;
} else if (t <= 9.4e+76) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.1d+77)) then
tmp = y
else if (t <= 9.4d+76) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.1e+77) {
tmp = y;
} else if (t <= 9.4e+76) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.1e+77: tmp = y elif t <= 9.4e+76: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.1e+77) tmp = y; elseif (t <= 9.4e+76) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.1e+77) tmp = y; elseif (t <= 9.4e+76) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.1e+77], y, If[LessEqual[t, 9.4e+76], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+77}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 9.4 \cdot 10^{+76}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.1e77 or 9.4000000000000006e76 < t Initial program 42.3%
associate-*l/60.6%
Simplified60.6%
Taylor expanded in t around inf 61.4%
if -1.1e77 < t < 9.4000000000000006e76Initial program 89.3%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in a around inf 33.8%
Final simplification43.0%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 73.7%
associate-*l/82.0%
Simplified82.0%
Taylor expanded in z around 0 38.5%
mul-1-neg38.5%
unsub-neg38.5%
Simplified38.5%
Taylor expanded in y around 0 24.1%
sub-neg24.1%
mul-1-neg24.1%
remove-double-neg24.1%
associate-/l*26.1%
Simplified26.1%
Taylor expanded in t around inf 2.8%
distribute-rgt1-in2.8%
metadata-eval2.8%
mul0-lft2.8%
Simplified2.8%
Final simplification2.8%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 73.7%
associate-*l/82.0%
Simplified82.0%
Taylor expanded in a around inf 24.8%
Final simplification24.8%
(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 2024019
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))