
(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
(let* ((t_1 (- x (/ (* (- z t) (- x y)) (- a t)))))
(if (<= t_1 -5e-300)
(+ x (* (- y x) (* (- z t) (/ 1.0 (- a t)))))
(if (<= t_1 0.0)
(+ y (/ (* (- z a) (- x y)) t))
(+ x (* (- y x) (/ (- z t) (- a t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((z - t) * (x - y)) / (a - t));
double tmp;
if (t_1 <= -5e-300) {
tmp = x + ((y - x) * ((z - t) * (1.0 / (a - t))));
} else if (t_1 <= 0.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else {
tmp = x + ((y - x) * ((z - t) / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (((z - t) * (x - y)) / (a - t))
if (t_1 <= (-5d-300)) then
tmp = x + ((y - x) * ((z - t) * (1.0d0 / (a - t))))
else if (t_1 <= 0.0d0) then
tmp = y + (((z - a) * (x - y)) / t)
else
tmp = x + ((y - x) * ((z - t) / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((z - t) * (x - y)) / (a - t));
double tmp;
if (t_1 <= -5e-300) {
tmp = x + ((y - x) * ((z - t) * (1.0 / (a - t))));
} else if (t_1 <= 0.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else {
tmp = x + ((y - x) * ((z - t) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((z - t) * (x - y)) / (a - t)) tmp = 0 if t_1 <= -5e-300: tmp = x + ((y - x) * ((z - t) * (1.0 / (a - t)))) elif t_1 <= 0.0: tmp = y + (((z - a) * (x - y)) / t) else: tmp = x + ((y - x) * ((z - t) / (a - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(z - t) * Float64(x - y)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -5e-300) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))))); elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(z - a) * Float64(x - y)) / t)); else tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((z - t) * (x - y)) / (a - t)); tmp = 0.0; if (t_1 <= -5e-300) tmp = x + ((y - x) * ((z - t) * (1.0 / (a - t)))); elseif (t_1 <= 0.0) tmp = y + (((z - a) * (x - y)) / t); else tmp = x + ((y - x) * ((z - t) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(z - t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-300], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(z - t\right) \cdot \left(x - y\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-300}:\\
\;\;\;\;x + \left(y - x\right) \cdot \left(\left(z - t\right) \cdot \frac{1}{a - t}\right)\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;y + \frac{\left(z - a\right) \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999996e-300Initial program 75.6%
associate-/l*91.6%
clear-num91.5%
associate-/r/91.6%
clear-num92.0%
Applied egg-rr92.0%
div-inv92.1%
Applied egg-rr92.1%
if -4.99999999999999996e-300 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.6%
associate-*l/4.5%
Simplified4.5%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
associate-*r/99.9%
associate-*r/99.9%
div-sub99.9%
distribute-lft-out--99.9%
mul-1-neg99.9%
distribute-neg-frac99.9%
unsub-neg99.9%
distribute-rgt-out--99.9%
Simplified99.9%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 63.9%
associate-/l*90.5%
clear-num90.4%
associate-/r/90.5%
clear-num90.5%
Applied egg-rr90.5%
Final simplification92.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- z t) (- x y)) (- a t)))))
(if (or (<= t_1 -5e-300) (not (<= t_1 0.0)))
(+ x (* (- y x) (/ (- z t) (- a t))))
(+ y (/ (* (- z a) (- x y)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((z - t) * (x - y)) / (a - t));
double tmp;
if ((t_1 <= -5e-300) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) * ((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) :: t_1
real(8) :: tmp
t_1 = x - (((z - t) * (x - y)) / (a - t))
if ((t_1 <= (-5d-300)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((y - x) * ((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 t_1 = x - (((z - t) * (x - y)) / (a - t));
double tmp;
if ((t_1 <= -5e-300) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) * ((z - t) / (a - t)));
} else {
tmp = y + (((z - a) * (x - y)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((z - t) * (x - y)) / (a - t)) tmp = 0 if (t_1 <= -5e-300) or not (t_1 <= 0.0): tmp = x + ((y - x) * ((z - t) / (a - t))) else: tmp = y + (((z - a) * (x - y)) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(z - t) * Float64(x - y)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -5e-300) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / Float64(a - t)))); else tmp = Float64(y + Float64(Float64(Float64(z - a) * Float64(x - y)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((z - t) * (x - y)) / (a - t)); tmp = 0.0; if ((t_1 <= -5e-300) || ~((t_1 <= 0.0))) tmp = x + ((y - x) * ((z - t) / (a - t))); else tmp = y + (((z - a) * (x - y)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(z - t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-300], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(z - t\right) \cdot \left(x - y\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-300} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(z - a\right) \cdot \left(x - y\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999996e-300 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 69.6%
associate-/l*91.0%
clear-num90.9%
associate-/r/91.0%
clear-num91.2%
Applied egg-rr91.2%
if -4.99999999999999996e-300 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.6%
associate-*l/4.5%
Simplified4.5%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
associate-*r/99.9%
associate-*r/99.9%
div-sub99.9%
distribute-lft-out--99.9%
mul-1-neg99.9%
distribute-neg-frac99.9%
unsub-neg99.9%
distribute-rgt-out--99.9%
Simplified99.9%
Final simplification92.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ t (- t a)))))
(if (<= t -7.2e+78)
t_1
(if (<= t 8.5e-253)
x
(if (<= t 1.15e-237)
(/ y (/ a z))
(if (<= t 5.5e-94)
x
(if (<= t 4.45e-7)
(* (- z t) (/ y a))
(if (<= t 1e+35) (* z (/ x t)) t_1))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (t / (t - a));
double tmp;
if (t <= -7.2e+78) {
tmp = t_1;
} else if (t <= 8.5e-253) {
tmp = x;
} else if (t <= 1.15e-237) {
tmp = y / (a / z);
} else if (t <= 5.5e-94) {
tmp = x;
} else if (t <= 4.45e-7) {
tmp = (z - t) * (y / a);
} else if (t <= 1e+35) {
tmp = z * (x / t);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * (t / (t - a))
if (t <= (-7.2d+78)) then
tmp = t_1
else if (t <= 8.5d-253) then
tmp = x
else if (t <= 1.15d-237) then
tmp = y / (a / z)
else if (t <= 5.5d-94) then
tmp = x
else if (t <= 4.45d-7) then
tmp = (z - t) * (y / a)
else if (t <= 1d+35) then
tmp = z * (x / t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (t / (t - a));
double tmp;
if (t <= -7.2e+78) {
tmp = t_1;
} else if (t <= 8.5e-253) {
tmp = x;
} else if (t <= 1.15e-237) {
tmp = y / (a / z);
} else if (t <= 5.5e-94) {
tmp = x;
} else if (t <= 4.45e-7) {
tmp = (z - t) * (y / a);
} else if (t <= 1e+35) {
tmp = z * (x / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (t / (t - a)) tmp = 0 if t <= -7.2e+78: tmp = t_1 elif t <= 8.5e-253: tmp = x elif t <= 1.15e-237: tmp = y / (a / z) elif t <= 5.5e-94: tmp = x elif t <= 4.45e-7: tmp = (z - t) * (y / a) elif t <= 1e+35: tmp = z * (x / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(t / Float64(t - a))) tmp = 0.0 if (t <= -7.2e+78) tmp = t_1; elseif (t <= 8.5e-253) tmp = x; elseif (t <= 1.15e-237) tmp = Float64(y / Float64(a / z)); elseif (t <= 5.5e-94) tmp = x; elseif (t <= 4.45e-7) tmp = Float64(Float64(z - t) * Float64(y / a)); elseif (t <= 1e+35) tmp = Float64(z * Float64(x / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (t / (t - a)); tmp = 0.0; if (t <= -7.2e+78) tmp = t_1; elseif (t <= 8.5e-253) tmp = x; elseif (t <= 1.15e-237) tmp = y / (a / z); elseif (t <= 5.5e-94) tmp = x; elseif (t <= 4.45e-7) tmp = (z - t) * (y / a); elseif (t <= 1e+35) tmp = z * (x / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+78], t$95$1, If[LessEqual[t, 8.5e-253], x, If[LessEqual[t, 1.15e-237], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-94], x, If[LessEqual[t, 4.45e-7], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+35], N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t}{t - a}\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+78}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-253}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-237}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-94}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 4.45 \cdot 10^{-7}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 10^{+35}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -7.20000000000000039e78 or 9.9999999999999997e34 < t Initial program 34.5%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in z around 0 59.2%
associate-*r/59.2%
neg-mul-159.2%
Simplified59.2%
Taylor expanded in x around 0 41.5%
associate-/l*57.9%
Simplified57.9%
associate-/r/69.9%
Applied egg-rr69.9%
if -7.20000000000000039e78 < t < 8.4999999999999999e-253 or 1.15000000000000006e-237 < t < 5.49999999999999989e-94Initial program 84.8%
associate-*l/89.4%
Simplified89.4%
Taylor expanded in a around inf 42.6%
if 8.4999999999999999e-253 < t < 1.15000000000000006e-237Initial program 100.0%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in x around 0 81.5%
Taylor expanded in a around inf 81.5%
Taylor expanded in z around inf 81.5%
associate-/l*100.0%
Simplified100.0%
if 5.49999999999999989e-94 < t < 4.45e-7Initial program 70.2%
associate-*l/93.3%
Simplified93.3%
Taylor expanded in x around 0 41.1%
Taylor expanded in a around inf 35.1%
expm1-log1p-u21.9%
expm1-udef10.3%
*-commutative10.3%
Applied egg-rr10.3%
expm1-def21.9%
expm1-log1p35.1%
associate-*r/47.0%
Simplified47.0%
if 4.45e-7 < t < 9.9999999999999997e34Initial program 87.1%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in z around -inf 51.3%
Taylor expanded in a around 0 40.8%
associate-*r/40.8%
neg-mul-140.8%
*-commutative40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
Taylor expanded in y around 0 40.0%
associate-/l*40.2%
associate-/r/40.2%
Simplified40.2%
Final simplification54.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- z t) (/ y a))) (t_2 (* y (/ t (- t a)))))
(if (<= t -2.9e+77)
t_2
(if (<= t 2.05e-161)
(+ x (/ t (/ a x)))
(if (<= t 6.75e-122)
t_1
(if (<= t 3.8e-94)
x
(if (<= t 1.7e-6) t_1 (if (<= t 4e+32) (* z (/ x t)) t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) * (y / a);
double t_2 = y * (t / (t - a));
double tmp;
if (t <= -2.9e+77) {
tmp = t_2;
} else if (t <= 2.05e-161) {
tmp = x + (t / (a / x));
} else if (t <= 6.75e-122) {
tmp = t_1;
} else if (t <= 3.8e-94) {
tmp = x;
} else if (t <= 1.7e-6) {
tmp = t_1;
} else if (t <= 4e+32) {
tmp = z * (x / t);
} 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 = (z - t) * (y / a)
t_2 = y * (t / (t - a))
if (t <= (-2.9d+77)) then
tmp = t_2
else if (t <= 2.05d-161) then
tmp = x + (t / (a / x))
else if (t <= 6.75d-122) then
tmp = t_1
else if (t <= 3.8d-94) then
tmp = x
else if (t <= 1.7d-6) then
tmp = t_1
else if (t <= 4d+32) then
tmp = z * (x / t)
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 = (z - t) * (y / a);
double t_2 = y * (t / (t - a));
double tmp;
if (t <= -2.9e+77) {
tmp = t_2;
} else if (t <= 2.05e-161) {
tmp = x + (t / (a / x));
} else if (t <= 6.75e-122) {
tmp = t_1;
} else if (t <= 3.8e-94) {
tmp = x;
} else if (t <= 1.7e-6) {
tmp = t_1;
} else if (t <= 4e+32) {
tmp = z * (x / t);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z - t) * (y / a) t_2 = y * (t / (t - a)) tmp = 0 if t <= -2.9e+77: tmp = t_2 elif t <= 2.05e-161: tmp = x + (t / (a / x)) elif t <= 6.75e-122: tmp = t_1 elif t <= 3.8e-94: tmp = x elif t <= 1.7e-6: tmp = t_1 elif t <= 4e+32: tmp = z * (x / t) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z - t) * Float64(y / a)) t_2 = Float64(y * Float64(t / Float64(t - a))) tmp = 0.0 if (t <= -2.9e+77) tmp = t_2; elseif (t <= 2.05e-161) tmp = Float64(x + Float64(t / Float64(a / x))); elseif (t <= 6.75e-122) tmp = t_1; elseif (t <= 3.8e-94) tmp = x; elseif (t <= 1.7e-6) tmp = t_1; elseif (t <= 4e+32) tmp = Float64(z * Float64(x / t)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (z - t) * (y / a); t_2 = y * (t / (t - a)); tmp = 0.0; if (t <= -2.9e+77) tmp = t_2; elseif (t <= 2.05e-161) tmp = x + (t / (a / x)); elseif (t <= 6.75e-122) tmp = t_1; elseif (t <= 3.8e-94) tmp = x; elseif (t <= 1.7e-6) tmp = t_1; elseif (t <= 4e+32) tmp = z * (x / t); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+77], t$95$2, If[LessEqual[t, 2.05e-161], N[(x + N[(t / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.75e-122], t$95$1, If[LessEqual[t, 3.8e-94], x, If[LessEqual[t, 1.7e-6], t$95$1, If[LessEqual[t, 4e+32], N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z - t\right) \cdot \frac{y}{a}\\
t_2 := y \cdot \frac{t}{t - a}\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+77}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{-161}:\\
\;\;\;\;x + \frac{t}{\frac{a}{x}}\\
\mathbf{elif}\;t \leq 6.75 \cdot 10^{-122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-94}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-6}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+32}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.9000000000000002e77 or 4.00000000000000021e32 < t Initial program 34.5%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in z around 0 59.2%
associate-*r/59.2%
neg-mul-159.2%
Simplified59.2%
Taylor expanded in x around 0 41.5%
associate-/l*57.9%
Simplified57.9%
associate-/r/69.9%
Applied egg-rr69.9%
if -2.9000000000000002e77 < t < 2.0499999999999999e-161Initial program 86.0%
associate-/l*93.5%
Simplified93.5%
Taylor expanded in z around 0 46.2%
associate-*r/46.2%
neg-mul-146.2%
Simplified46.2%
Taylor expanded in a around inf 44.6%
mul-1-neg44.6%
unsub-neg44.6%
associate-/l*50.2%
Simplified50.2%
Taylor expanded in y around 0 40.6%
sub-neg40.6%
mul-1-neg40.6%
remove-double-neg40.6%
associate-/l*44.7%
Simplified44.7%
if 2.0499999999999999e-161 < t < 6.7500000000000005e-122 or 3.79999999999999999e-94 < t < 1.70000000000000003e-6Initial program 77.0%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in x around 0 50.6%
Taylor expanded in a around inf 39.0%
expm1-log1p-u25.3%
expm1-udef14.1%
*-commutative14.1%
Applied egg-rr14.1%
expm1-def25.3%
expm1-log1p39.0%
associate-*r/50.4%
Simplified50.4%
if 6.7500000000000005e-122 < t < 3.79999999999999999e-94Initial program 67.6%
associate-*l/84.3%
Simplified84.3%
Taylor expanded in a around inf 84.0%
if 1.70000000000000003e-6 < t < 4.00000000000000021e32Initial program 87.1%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in z around -inf 51.3%
Taylor expanded in a around 0 40.8%
associate-*r/40.8%
neg-mul-140.8%
*-commutative40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
Taylor expanded in y around 0 40.0%
associate-/l*40.2%
associate-/r/40.2%
Simplified40.2%
Final simplification56.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.25e+152)
(/ y (/ (- a t) (- z t)))
(if (<= t 1.56e+38)
(+ x (* (- z t) (/ (- y x) (- a t))))
(* y (/ (- z t) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.25e+152) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 1.56e+38) {
tmp = x + ((z - t) * ((y - x) / (a - t)));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.25d+152)) then
tmp = y / ((a - t) / (z - t))
else if (t <= 1.56d+38) then
tmp = x + ((z - t) * ((y - x) / (a - t)))
else
tmp = y * ((z - t) / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.25e+152) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 1.56e+38) {
tmp = x + ((z - t) * ((y - x) / (a - t)));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.25e+152: tmp = y / ((a - t) / (z - t)) elif t <= 1.56e+38: tmp = x + ((z - t) * ((y - x) / (a - t))) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.25e+152) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (t <= 1.56e+38) tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / Float64(a - t)))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.25e+152) tmp = y / ((a - t) / (z - t)); elseif (t <= 1.56e+38) tmp = x + ((z - t) * ((y - x) / (a - t))); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.25e+152], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.56e+38], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+152}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{+38}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if t < -1.25e152Initial program 22.3%
associate-/l*56.2%
clear-num56.1%
associate-/r/56.2%
clear-num56.1%
Applied egg-rr56.1%
Taylor expanded in x around 0 46.5%
associate-/l*76.2%
Simplified76.2%
if -1.25e152 < t < 1.5599999999999999e38Initial program 80.7%
associate-*l/90.1%
Simplified90.1%
if 1.5599999999999999e38 < t Initial program 33.5%
associate-/l*70.6%
clear-num70.3%
associate-/r/70.6%
clear-num70.6%
Applied egg-rr70.6%
Taylor expanded in y around inf 80.7%
div-sub80.7%
Simplified80.7%
Final simplification86.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.2e+65)
x
(if (<= a 1.12e+97)
y
(if (<= a 7.5e+233) x (if (<= a 6e+241) (* (- z t) (/ y a)) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e+65) {
tmp = x;
} else if (a <= 1.12e+97) {
tmp = y;
} else if (a <= 7.5e+233) {
tmp = x;
} else if (a <= 6e+241) {
tmp = (z - t) * (y / a);
} 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 <= (-1.2d+65)) then
tmp = x
else if (a <= 1.12d+97) then
tmp = y
else if (a <= 7.5d+233) then
tmp = x
else if (a <= 6d+241) then
tmp = (z - t) * (y / a)
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 <= -1.2e+65) {
tmp = x;
} else if (a <= 1.12e+97) {
tmp = y;
} else if (a <= 7.5e+233) {
tmp = x;
} else if (a <= 6e+241) {
tmp = (z - t) * (y / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.2e+65: tmp = x elif a <= 1.12e+97: tmp = y elif a <= 7.5e+233: tmp = x elif a <= 6e+241: tmp = (z - t) * (y / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.2e+65) tmp = x; elseif (a <= 1.12e+97) tmp = y; elseif (a <= 7.5e+233) tmp = x; elseif (a <= 6e+241) tmp = Float64(Float64(z - t) * Float64(y / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.2e+65) tmp = x; elseif (a <= 1.12e+97) tmp = y; elseif (a <= 7.5e+233) tmp = x; elseif (a <= 6e+241) tmp = (z - t) * (y / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.2e+65], x, If[LessEqual[a, 1.12e+97], y, If[LessEqual[a, 7.5e+233], x, If[LessEqual[a, 6e+241], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{+65}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{+97}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{+233}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+241}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.2000000000000001e65 or 1.12e97 < a < 7.4999999999999997e233 or 6.00000000000000031e241 < a Initial program 64.7%
associate-*l/90.8%
Simplified90.8%
Taylor expanded in a around inf 60.6%
if -1.2000000000000001e65 < a < 1.12e97Initial program 64.9%
associate-*l/72.5%
Simplified72.5%
Taylor expanded in t around inf 41.8%
if 7.4999999999999997e233 < a < 6.00000000000000031e241Initial program 23.9%
associate-*l/99.1%
Simplified99.1%
Taylor expanded in x around 0 23.9%
Taylor expanded in a around inf 23.9%
expm1-log1p-u2.0%
expm1-udef2.0%
*-commutative2.0%
Applied egg-rr2.0%
expm1-def2.0%
expm1-log1p23.9%
associate-*r/98.4%
Simplified98.4%
Final simplification49.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ t (/ a y)))))
(if (<= a -9.5e+58)
t_1
(if (<= a 1e-166)
(+ y (* y (/ a t)))
(if (<= a 2.4e-153)
(/ y (/ (- a t) z))
(if (<= a 6e+44) (+ y (/ a (/ t y))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t / (a / y));
double tmp;
if (a <= -9.5e+58) {
tmp = t_1;
} else if (a <= 1e-166) {
tmp = y + (y * (a / t));
} else if (a <= 2.4e-153) {
tmp = y / ((a - t) / z);
} else if (a <= 6e+44) {
tmp = y + (a / (t / y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (t / (a / y))
if (a <= (-9.5d+58)) then
tmp = t_1
else if (a <= 1d-166) then
tmp = y + (y * (a / t))
else if (a <= 2.4d-153) then
tmp = y / ((a - t) / z)
else if (a <= 6d+44) then
tmp = y + (a / (t / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t / (a / y));
double tmp;
if (a <= -9.5e+58) {
tmp = t_1;
} else if (a <= 1e-166) {
tmp = y + (y * (a / t));
} else if (a <= 2.4e-153) {
tmp = y / ((a - t) / z);
} else if (a <= 6e+44) {
tmp = y + (a / (t / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (t / (a / y)) tmp = 0 if a <= -9.5e+58: tmp = t_1 elif a <= 1e-166: tmp = y + (y * (a / t)) elif a <= 2.4e-153: tmp = y / ((a - t) / z) elif a <= 6e+44: tmp = y + (a / (t / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(t / Float64(a / y))) tmp = 0.0 if (a <= -9.5e+58) tmp = t_1; elseif (a <= 1e-166) tmp = Float64(y + Float64(y * Float64(a / t))); elseif (a <= 2.4e-153) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (a <= 6e+44) tmp = Float64(y + Float64(a / Float64(t / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (t / (a / y)); tmp = 0.0; if (a <= -9.5e+58) tmp = t_1; elseif (a <= 1e-166) tmp = y + (y * (a / t)); elseif (a <= 2.4e-153) tmp = y / ((a - t) / z); elseif (a <= 6e+44) tmp = y + (a / (t / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.5e+58], t$95$1, If[LessEqual[a, 1e-166], N[(y + N[(y * N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e-153], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e+44], N[(y + N[(a / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 10^{-166}:\\
\;\;\;\;y + y \cdot \frac{a}{t}\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-153}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+44}:\\
\;\;\;\;y + \frac{a}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -9.5000000000000002e58 or 5.99999999999999974e44 < a Initial program 64.0%
associate-/l*92.3%
Simplified92.3%
Taylor expanded in z around 0 74.0%
associate-*r/74.0%
neg-mul-174.0%
Simplified74.0%
Taylor expanded in a around inf 55.5%
mul-1-neg55.5%
unsub-neg55.5%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in y around inf 58.9%
associate-/l*65.6%
Simplified65.6%
if -9.5000000000000002e58 < a < 1.00000000000000004e-166Initial program 60.3%
associate-/l*72.5%
Simplified72.5%
Taylor expanded in z around 0 31.5%
associate-*r/31.5%
neg-mul-131.5%
Simplified31.5%
Taylor expanded in a around 0 51.3%
associate-/l*51.0%
Simplified51.0%
Taylor expanded in y around inf 46.0%
distribute-lft-in46.0%
*-rgt-identity46.0%
Simplified46.0%
if 1.00000000000000004e-166 < a < 2.4000000000000002e-153Initial program 99.7%
associate-*l/80.8%
Simplified80.8%
Taylor expanded in x around 0 81.2%
Taylor expanded in z around inf 66.7%
associate-/l*84.8%
Simplified84.8%
if 2.4000000000000002e-153 < a < 5.99999999999999974e44Initial program 68.9%
associate-/l*85.4%
Simplified85.4%
Taylor expanded in z around 0 45.0%
associate-*r/45.0%
neg-mul-145.0%
Simplified45.0%
Taylor expanded in x around 0 25.6%
associate-/l*46.9%
Simplified46.9%
Taylor expanded in t around inf 47.4%
associate-/l*52.4%
Simplified52.4%
Final simplification56.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (/ a (/ t x)))) (t_2 (- x (/ t (/ a y)))))
(if (<= a -9.5e+58)
t_2
(if (<= a 4.5e-166)
t_1
(if (<= a 2.1e-156)
(/ y (/ (- a t) z))
(if (<= a 5.8e+134) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y - (a / (t / x));
double t_2 = x - (t / (a / y));
double tmp;
if (a <= -9.5e+58) {
tmp = t_2;
} else if (a <= 4.5e-166) {
tmp = t_1;
} else if (a <= 2.1e-156) {
tmp = y / ((a - t) / z);
} else if (a <= 5.8e+134) {
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 - (a / (t / x))
t_2 = x - (t / (a / y))
if (a <= (-9.5d+58)) then
tmp = t_2
else if (a <= 4.5d-166) then
tmp = t_1
else if (a <= 2.1d-156) then
tmp = y / ((a - t) / z)
else if (a <= 5.8d+134) 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 - (a / (t / x));
double t_2 = x - (t / (a / y));
double tmp;
if (a <= -9.5e+58) {
tmp = t_2;
} else if (a <= 4.5e-166) {
tmp = t_1;
} else if (a <= 2.1e-156) {
tmp = y / ((a - t) / z);
} else if (a <= 5.8e+134) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y - (a / (t / x)) t_2 = x - (t / (a / y)) tmp = 0 if a <= -9.5e+58: tmp = t_2 elif a <= 4.5e-166: tmp = t_1 elif a <= 2.1e-156: tmp = y / ((a - t) / z) elif a <= 5.8e+134: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y - Float64(a / Float64(t / x))) t_2 = Float64(x - Float64(t / Float64(a / y))) tmp = 0.0 if (a <= -9.5e+58) tmp = t_2; elseif (a <= 4.5e-166) tmp = t_1; elseif (a <= 2.1e-156) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (a <= 5.8e+134) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y - (a / (t / x)); t_2 = x - (t / (a / y)); tmp = 0.0; if (a <= -9.5e+58) tmp = t_2; elseif (a <= 4.5e-166) tmp = t_1; elseif (a <= 2.1e-156) tmp = y / ((a - t) / z); elseif (a <= 5.8e+134) 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[(a / N[(t / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.5e+58], t$95$2, If[LessEqual[a, 4.5e-166], t$95$1, If[LessEqual[a, 2.1e-156], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.8e+134], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{a}{\frac{t}{x}}\\
t_2 := x - \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+58}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-156}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -9.5000000000000002e58 or 5.80000000000000023e134 < a Initial program 63.6%
associate-/l*92.6%
Simplified92.6%
Taylor expanded in z around 0 79.3%
associate-*r/79.3%
neg-mul-179.3%
Simplified79.3%
Taylor expanded in a around inf 62.0%
mul-1-neg62.0%
unsub-neg62.0%
associate-/l*73.6%
Simplified73.6%
Taylor expanded in y around inf 66.2%
associate-/l*73.5%
Simplified73.5%
if -9.5000000000000002e58 < a < 4.4999999999999998e-166 or 2.10000000000000012e-156 < a < 5.80000000000000023e134Initial program 63.1%
associate-/l*78.2%
Simplified78.2%
Taylor expanded in z around 0 37.7%
associate-*r/37.7%
neg-mul-137.7%
Simplified37.7%
Taylor expanded in a around 0 47.0%
associate-/l*49.8%
Simplified49.8%
Taylor expanded in y around 0 47.4%
mul-1-neg47.4%
associate-/l*48.0%
distribute-neg-frac48.0%
Simplified48.0%
if 4.4999999999999998e-166 < a < 2.10000000000000012e-156Initial program 99.7%
associate-*l/80.8%
Simplified80.8%
Taylor expanded in x around 0 81.2%
Taylor expanded in z around inf 66.7%
associate-/l*84.8%
Simplified84.8%
Final simplification57.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.9e-24) (not (<= a 8.8e-38))) (+ x (* (- z t) (/ y (- a t)))) (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.9e-24) || !(a <= 8.8e-38)) {
tmp = x + ((z - t) * (y / (a - t)));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-2.9d-24)) .or. (.not. (a <= 8.8d-38))) then
tmp = x + ((z - t) * (y / (a - t)))
else
tmp = y * ((z - t) / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.9e-24) || !(a <= 8.8e-38)) {
tmp = x + ((z - t) * (y / (a - t)));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.9e-24) or not (a <= 8.8e-38): tmp = x + ((z - t) * (y / (a - t))) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.9e-24) || !(a <= 8.8e-38)) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.9e-24) || ~((a <= 8.8e-38))) tmp = x + ((z - t) * (y / (a - t))); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.9e-24], N[Not[LessEqual[a, 8.8e-38]], $MachinePrecision]], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.9 \cdot 10^{-24} \lor \neg \left(a \leq 8.8 \cdot 10^{-38}\right):\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if a < -2.8999999999999999e-24 or 8.80000000000000029e-38 < a Initial program 65.3%
associate-*l/91.8%
Simplified91.8%
Taylor expanded in y around inf 84.7%
if -2.8999999999999999e-24 < a < 8.80000000000000029e-38Initial program 62.5%
associate-/l*72.9%
clear-num72.7%
associate-/r/72.9%
clear-num72.9%
Applied egg-rr72.9%
Taylor expanded in y around inf 74.2%
div-sub74.2%
Simplified74.2%
Final simplification79.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.7e+79)
(/ y (/ (- a t) (- z t)))
(if (<= t 1.5e+38)
(+ x (/ (- y x) (/ (- a t) z)))
(* y (/ (- z t) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.7e+79) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 1.5e+38) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.7d+79)) then
tmp = y / ((a - t) / (z - t))
else if (t <= 1.5d+38) then
tmp = x + ((y - x) / ((a - t) / z))
else
tmp = y * ((z - t) / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.7e+79) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 1.5e+38) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.7e+79: tmp = y / ((a - t) / (z - t)) elif t <= 1.5e+38: tmp = x + ((y - x) / ((a - t) / z)) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.7e+79) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (t <= 1.5e+38) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.7e+79) tmp = y / ((a - t) / (z - t)); elseif (t <= 1.5e+38) tmp = x + ((y - x) / ((a - t) / z)); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.7e+79], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+38], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{+79}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+38}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if t < -2.7e79Initial program 35.7%
associate-/l*67.8%
clear-num67.7%
associate-/r/67.8%
clear-num67.8%
Applied egg-rr67.8%
Taylor expanded in x around 0 47.3%
associate-/l*74.9%
Simplified74.9%
if -2.7e79 < t < 1.5000000000000001e38Initial program 83.9%
associate-/l*93.2%
Simplified93.2%
Taylor expanded in z around inf 83.8%
if 1.5000000000000001e38 < t Initial program 33.5%
associate-/l*70.6%
clear-num70.3%
associate-/r/70.6%
clear-num70.6%
Applied egg-rr70.6%
Taylor expanded in y around inf 80.7%
div-sub80.7%
Simplified80.7%
Final simplification81.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.5e+107) (not (<= a 1.05e+156))) (- x (/ t (/ a y))) (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.5e+107) || !(a <= 1.05e+156)) {
tmp = x - (t / (a / y));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-4.5d+107)) .or. (.not. (a <= 1.05d+156))) then
tmp = x - (t / (a / y))
else
tmp = y * ((z - t) / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.5e+107) || !(a <= 1.05e+156)) {
tmp = x - (t / (a / y));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.5e+107) or not (a <= 1.05e+156): tmp = x - (t / (a / y)) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.5e+107) || !(a <= 1.05e+156)) tmp = Float64(x - Float64(t / Float64(a / y))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.5e+107) || ~((a <= 1.05e+156))) tmp = x - (t / (a / y)); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.5e+107], N[Not[LessEqual[a, 1.05e+156]], $MachinePrecision]], N[(x - N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.5 \cdot 10^{+107} \lor \neg \left(a \leq 1.05 \cdot 10^{+156}\right):\\
\;\;\;\;x - \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if a < -4.5e107 or 1.04999999999999991e156 < a Initial program 63.6%
associate-/l*94.0%
Simplified94.0%
Taylor expanded in z around 0 81.8%
associate-*r/81.8%
neg-mul-181.8%
Simplified81.8%
Taylor expanded in a around inf 63.1%
mul-1-neg63.1%
unsub-neg63.1%
associate-/l*75.9%
Simplified75.9%
Taylor expanded in y around inf 67.8%
associate-/l*75.8%
Simplified75.8%
if -4.5e107 < a < 1.04999999999999991e156Initial program 64.2%
associate-/l*78.8%
clear-num78.7%
associate-/r/78.8%
clear-num78.8%
Applied egg-rr78.8%
Taylor expanded in y around inf 69.1%
div-sub69.1%
Simplified69.1%
Final simplification71.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.9e+30) (not (<= t 3.2e+34))) (* 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 <= -2.9e+30) || !(t <= 3.2e+34)) {
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 <= (-2.9d+30)) .or. (.not. (t <= 3.2d+34))) 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 <= -2.9e+30) || !(t <= 3.2e+34)) {
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 <= -2.9e+30) or not (t <= 3.2e+34): 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 <= -2.9e+30) || !(t <= 3.2e+34)) 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 <= -2.9e+30) || ~((t <= 3.2e+34))) 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, -2.9e+30], N[Not[LessEqual[t, 3.2e+34]], $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 -2.9 \cdot 10^{+30} \lor \neg \left(t \leq 3.2 \cdot 10^{+34}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\end{array}
\end{array}
if t < -2.8999999999999998e30 or 3.1999999999999998e34 < t Initial program 37.7%
associate-/l*70.3%
clear-num70.1%
associate-/r/70.3%
clear-num70.3%
Applied egg-rr70.3%
Taylor expanded in y around inf 76.7%
div-sub76.7%
Simplified76.7%
if -2.8999999999999998e30 < t < 3.1999999999999998e34Initial program 84.8%
associate-/l*94.1%
clear-num94.1%
associate-/r/94.1%
clear-num94.4%
Applied egg-rr94.4%
Taylor expanded in t around 0 65.2%
associate-/l*73.7%
Simplified73.7%
Final simplification75.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -9.5e+28) (not (<= t 9.2e+30))) (* y (/ (- z t) (- a t))) (+ x (/ (- y x) (/ a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -9.5e+28) || !(t <= 9.2e+30)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-9.5d+28)) .or. (.not. (t <= 9.2d+30))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + ((y - x) / (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -9.5e+28) || !(t <= 9.2e+30)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -9.5e+28) or not (t <= 9.2e+30): tmp = y * ((z - t) / (a - t)) else: tmp = x + ((y - x) / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -9.5e+28) || !(t <= 9.2e+30)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -9.5e+28) || ~((t <= 9.2e+30))) tmp = y * ((z - t) / (a - t)); else tmp = x + ((y - x) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -9.5e+28], N[Not[LessEqual[t, 9.2e+30]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{+28} \lor \neg \left(t \leq 9.2 \cdot 10^{+30}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -9.49999999999999927e28 or 9.2e30 < t Initial program 37.7%
associate-/l*70.3%
clear-num70.1%
associate-/r/70.3%
clear-num70.3%
Applied egg-rr70.3%
Taylor expanded in y around inf 76.7%
div-sub76.7%
Simplified76.7%
if -9.49999999999999927e28 < t < 9.2e30Initial program 84.8%
associate-/l*94.1%
Simplified94.1%
Taylor expanded in t around 0 74.5%
Final simplification75.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.8e+29) (* y (/ (- z t) (- a t))) (if (<= t 5.5e-18) (+ x (/ (- y x) (/ a z))) (/ y (/ (- a t) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+29) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 5.5e-18) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = y / ((a - t) / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-3.8d+29)) then
tmp = y * ((z - t) / (a - t))
else if (t <= 5.5d-18) then
tmp = x + ((y - x) / (a / z))
else
tmp = y / ((a - t) / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+29) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 5.5e-18) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = y / ((a - t) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.8e+29: tmp = y * ((z - t) / (a - t)) elif t <= 5.5e-18: tmp = x + ((y - x) / (a / z)) else: tmp = y / ((a - t) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.8e+29) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 5.5e-18) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); else tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.8e+29) tmp = y * ((z - t) / (a - t)); elseif (t <= 5.5e-18) tmp = x + ((y - x) / (a / z)); else tmp = y / ((a - t) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.8e+29], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-18], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+29}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-18}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if t < -3.79999999999999971e29Initial program 41.9%
associate-/l*70.1%
clear-num70.0%
associate-/r/70.0%
clear-num70.1%
Applied egg-rr70.1%
Taylor expanded in y around inf 72.7%
div-sub72.7%
Simplified72.7%
if -3.79999999999999971e29 < t < 5.5e-18Initial program 84.5%
associate-/l*93.7%
Simplified93.7%
Taylor expanded in t around 0 77.2%
if 5.5e-18 < t Initial program 41.1%
associate-/l*74.6%
clear-num74.4%
associate-/r/74.7%
clear-num74.6%
Applied egg-rr74.6%
Taylor expanded in x around 0 41.6%
associate-/l*74.4%
Simplified74.4%
Final simplification75.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -9.6e+58) (not (<= a 9.5e+105))) (- x (/ t (/ a y))) (/ (- y) (/ t (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9.6e+58) || !(a <= 9.5e+105)) {
tmp = x - (t / (a / y));
} else {
tmp = -y / (t / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-9.6d+58)) .or. (.not. (a <= 9.5d+105))) then
tmp = x - (t / (a / y))
else
tmp = -y / (t / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9.6e+58) || !(a <= 9.5e+105)) {
tmp = x - (t / (a / y));
} else {
tmp = -y / (t / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -9.6e+58) or not (a <= 9.5e+105): tmp = x - (t / (a / y)) else: tmp = -y / (t / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -9.6e+58) || !(a <= 9.5e+105)) tmp = Float64(x - Float64(t / Float64(a / y))); else tmp = Float64(Float64(-y) / Float64(t / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -9.6e+58) || ~((a <= 9.5e+105))) tmp = x - (t / (a / y)); else tmp = -y / (t / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9.6e+58], N[Not[LessEqual[a, 9.5e+105]], $MachinePrecision]], N[(x - N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-y) / N[(t / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.6 \cdot 10^{+58} \lor \neg \left(a \leq 9.5 \cdot 10^{+105}\right):\\
\;\;\;\;x - \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-y}{\frac{t}{z - t}}\\
\end{array}
\end{array}
if a < -9.5999999999999999e58 or 9.4999999999999995e105 < a Initial program 62.9%
associate-/l*93.0%
Simplified93.0%
Taylor expanded in z around 0 77.5%
associate-*r/77.5%
neg-mul-177.5%
Simplified77.5%
Taylor expanded in a around inf 59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*71.1%
Simplified71.1%
Taylor expanded in y around inf 63.3%
associate-/l*71.1%
Simplified71.1%
if -9.5999999999999999e58 < a < 9.4999999999999995e105Initial program 64.7%
associate-*l/72.2%
Simplified72.2%
Taylor expanded in x around 0 52.6%
Taylor expanded in a around 0 40.9%
mul-1-neg40.9%
associate-/l*57.0%
distribute-neg-frac57.0%
Simplified57.0%
Final simplification62.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.05e+59) (not (<= a 7e+46))) (- x (/ t (/ a y))) (+ y (/ a (/ t y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.05e+59) || !(a <= 7e+46)) {
tmp = x - (t / (a / y));
} else {
tmp = y + (a / (t / 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 <= (-1.05d+59)) .or. (.not. (a <= 7d+46))) then
tmp = x - (t / (a / y))
else
tmp = y + (a / (t / 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 <= -1.05e+59) || !(a <= 7e+46)) {
tmp = x - (t / (a / y));
} else {
tmp = y + (a / (t / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.05e+59) or not (a <= 7e+46): tmp = x - (t / (a / y)) else: tmp = y + (a / (t / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.05e+59) || !(a <= 7e+46)) tmp = Float64(x - Float64(t / Float64(a / y))); else tmp = Float64(y + Float64(a / Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.05e+59) || ~((a <= 7e+46))) tmp = x - (t / (a / y)); else tmp = y + (a / (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.05e+59], N[Not[LessEqual[a, 7e+46]], $MachinePrecision]], N[(x - N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(a / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.05 \cdot 10^{+59} \lor \neg \left(a \leq 7 \cdot 10^{+46}\right):\\
\;\;\;\;x - \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{a}{\frac{t}{y}}\\
\end{array}
\end{array}
if a < -1.04999999999999992e59 or 6.9999999999999997e46 < a Initial program 64.0%
associate-/l*92.3%
Simplified92.3%
Taylor expanded in z around 0 74.0%
associate-*r/74.0%
neg-mul-174.0%
Simplified74.0%
Taylor expanded in a around inf 55.5%
mul-1-neg55.5%
unsub-neg55.5%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in y around inf 58.9%
associate-/l*65.6%
Simplified65.6%
if -1.04999999999999992e59 < a < 6.9999999999999997e46Initial program 64.0%
associate-/l*77.0%
Simplified77.0%
Taylor expanded in z around 0 34.4%
associate-*r/34.4%
neg-mul-134.4%
Simplified34.4%
Taylor expanded in x around 0 31.0%
associate-/l*38.7%
Simplified38.7%
Taylor expanded in t around inf 45.5%
associate-/l*46.0%
Simplified46.0%
Final simplification54.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -5.7e+63) x (if (<= a 5.8e+96) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.7e+63) {
tmp = x;
} else if (a <= 5.8e+96) {
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 <= (-5.7d+63)) then
tmp = x
else if (a <= 5.8d+96) 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 <= -5.7e+63) {
tmp = x;
} else if (a <= 5.8e+96) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5.7e+63: tmp = x elif a <= 5.8e+96: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.7e+63) tmp = x; elseif (a <= 5.8e+96) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5.7e+63) tmp = x; elseif (a <= 5.8e+96) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.7e+63], x, If[LessEqual[a, 5.8e+96], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.7 \cdot 10^{+63}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{+96}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -5.7000000000000002e63 or 5.79999999999999955e96 < a Initial program 62.6%
associate-*l/91.3%
Simplified91.3%
Taylor expanded in a around inf 57.6%
if -5.7000000000000002e63 < a < 5.79999999999999955e96Initial program 64.9%
associate-*l/72.5%
Simplified72.5%
Taylor expanded in t around inf 41.8%
Final simplification47.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 64.0%
associate-*l/79.6%
Simplified79.6%
Taylor expanded in a around inf 28.1%
Final simplification28.1%
(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 2023290
(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))))