
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- x y) (- t z)) (- a t)))))
(if (or (<= t_1 -1e-265) (not (<= t_1 0.0)))
(fma (- y x) (/ (- z t) (- a t)) x)
(- y (/ (* (- a z) (- x y)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -1e-265) || !(t_1 <= 0.0)) {
tmp = fma((y - x), ((z - t) / (a - t)), x);
} else {
tmp = y - (((a - z) * (x - y)) / t);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -1e-265) || !(t_1 <= 0.0)) tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); else tmp = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(x - y), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-265], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-265} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(a - z\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))) < -9.99999999999999985e-266 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 69.1%
+-commutative69.1%
associate-/l*88.0%
fma-define87.9%
Simplified87.9%
if -9.99999999999999985e-266 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.9%
+-commutative3.9%
associate-/l*3.9%
fma-define3.9%
Simplified3.9%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
mul-1-neg99.6%
div-sub99.6%
mul-1-neg99.6%
distribute-lft-out--99.6%
associate-*r/99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
Final simplification88.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (* (- y x) (/ -1.0 (- t a))))))
(t_2 (+ x (/ (* (- x y) (- t z)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -5e-205)
t_2
(if (<= t_2 2e-227) (- y (/ (* (- a z) (- x y)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -5e-205) {
tmp = t_2;
} else if (t_2 <= 2e-227) {
tmp = y - (((a - z) * (x - y)) / t);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -5e-205) {
tmp = t_2;
} else if (t_2 <= 2e-227) {
tmp = y - (((a - z) * (x - y)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))) t_2 = x + (((x - y) * (t - z)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -5e-205: tmp = t_2 elif t_2 <= 2e-227: tmp = y - (((a - z) * (x - y)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(-1.0 / Float64(t - a))))) t_2 = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -5e-205) tmp = t_2; elseif (t_2 <= 2e-227) tmp = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))); t_2 = x + (((x - y) * (t - z)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -5e-205) tmp = t_2; elseif (t_2 <= 2e-227) tmp = y - (((a - z) * (x - y)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(-1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(x - y), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-205], t$95$2, If[LessEqual[t$95$2, 2e-227], N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{-1}{t - a}\right)\\
t_2 := x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-205}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-227}:\\
\;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 1.99999999999999989e-227 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 57.6%
div-inv57.6%
*-commutative57.6%
associate-*l*84.7%
Applied egg-rr84.7%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.00000000000000001e-205Initial program 96.4%
if -5.00000000000000001e-205 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999989e-227Initial program 25.0%
+-commutative25.0%
associate-/l*30.5%
fma-define30.6%
Simplified30.6%
Taylor expanded in t around inf 88.5%
associate--l+88.5%
associate-*r/88.5%
associate-*r/88.5%
mul-1-neg88.5%
div-sub88.5%
mul-1-neg88.5%
distribute-lft-out--88.5%
associate-*r/88.5%
mul-1-neg88.5%
unsub-neg88.5%
distribute-rgt-out--88.5%
Simplified88.5%
Final simplification88.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t)))))
(if (<= t -3.1e+187)
t_1
(if (<= t -2.9e+97)
(* x (/ (- z a) t))
(if (<= t 8.5e-33)
(* x (- 1.0 (/ z a)))
(if (<= t 5e+15)
(* y (/ z (- a t)))
(if (<= t 8e+99) (* x (/ z (- t a))) t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double tmp;
if (t <= -3.1e+187) {
tmp = t_1;
} else if (t <= -2.9e+97) {
tmp = x * ((z - a) / t);
} else if (t <= 8.5e-33) {
tmp = x * (1.0 - (z / a));
} else if (t <= 5e+15) {
tmp = y * (z / (a - t));
} else if (t <= 8e+99) {
tmp = x * (z / (t - a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * (1.0d0 - (z / t))
if (t <= (-3.1d+187)) then
tmp = t_1
else if (t <= (-2.9d+97)) then
tmp = x * ((z - a) / t)
else if (t <= 8.5d-33) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 5d+15) then
tmp = y * (z / (a - t))
else if (t <= 8d+99) then
tmp = x * (z / (t - a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double tmp;
if (t <= -3.1e+187) {
tmp = t_1;
} else if (t <= -2.9e+97) {
tmp = x * ((z - a) / t);
} else if (t <= 8.5e-33) {
tmp = x * (1.0 - (z / a));
} else if (t <= 5e+15) {
tmp = y * (z / (a - t));
} else if (t <= 8e+99) {
tmp = x * (z / (t - a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) tmp = 0 if t <= -3.1e+187: tmp = t_1 elif t <= -2.9e+97: tmp = x * ((z - a) / t) elif t <= 8.5e-33: tmp = x * (1.0 - (z / a)) elif t <= 5e+15: tmp = y * (z / (a - t)) elif t <= 8e+99: tmp = x * (z / (t - a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) tmp = 0.0 if (t <= -3.1e+187) tmp = t_1; elseif (t <= -2.9e+97) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= 8.5e-33) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 5e+15) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= 8e+99) tmp = Float64(x * Float64(z / Float64(t - a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); tmp = 0.0; if (t <= -3.1e+187) tmp = t_1; elseif (t <= -2.9e+97) tmp = x * ((z - a) / t); elseif (t <= 8.5e-33) tmp = x * (1.0 - (z / a)); elseif (t <= 5e+15) tmp = y * (z / (a - t)); elseif (t <= 8e+99) tmp = x * (z / (t - a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.1e+187], t$95$1, If[LessEqual[t, -2.9e+97], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-33], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e+15], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+99], N[(x * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{+187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{+97}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-33}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 5 \cdot 10^{+15}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+99}:\\
\;\;\;\;x \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.10000000000000012e187 or 7.9999999999999997e99 < t Initial program 34.7%
+-commutative34.7%
associate-/l*68.0%
fma-define68.0%
Simplified68.0%
Taylor expanded in y around 0 53.3%
+-commutative53.3%
+-commutative53.3%
div-sub53.3%
mul-1-neg53.3%
associate-/l*68.0%
distribute-lft-neg-in68.0%
distribute-rgt-in68.0%
sub-neg68.0%
associate-*l/34.7%
associate-*r/63.4%
fma-define63.5%
Simplified63.5%
Taylor expanded in y around inf 71.6%
div-sub71.6%
Simplified71.6%
Taylor expanded in a around 0 68.0%
mul-1-neg68.0%
div-sub68.0%
sub-neg68.0%
*-inverses68.0%
metadata-eval68.0%
Simplified68.0%
if -3.10000000000000012e187 < t < -2.89999999999999987e97Initial program 21.9%
+-commutative21.9%
associate-/l*56.2%
fma-define56.2%
Simplified56.2%
Taylor expanded in y around 0 15.0%
*-rgt-identity15.0%
mul-1-neg15.0%
associate-/l*41.0%
distribute-rgt-neg-in41.0%
mul-1-neg41.0%
distribute-lft-in41.2%
mul-1-neg41.2%
unsub-neg41.2%
Simplified41.2%
Taylor expanded in t around inf 65.1%
associate-*r/65.1%
mul-1-neg65.1%
sub-neg65.1%
mul-1-neg65.1%
Simplified65.1%
if -2.89999999999999987e97 < t < 8.49999999999999945e-33Initial program 85.1%
+-commutative85.1%
associate-/l*94.3%
fma-define94.2%
Simplified94.2%
Taylor expanded in y around 0 52.7%
*-rgt-identity52.7%
mul-1-neg52.7%
associate-/l*57.3%
distribute-rgt-neg-in57.3%
mul-1-neg57.3%
distribute-lft-in57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
Taylor expanded in t around 0 51.9%
if 8.49999999999999945e-33 < t < 5e15Initial program 81.2%
+-commutative81.2%
associate-/l*87.2%
fma-define87.4%
Simplified87.4%
Taylor expanded in z around inf 67.0%
Taylor expanded in y around inf 54.5%
associate-/l*60.4%
Simplified60.4%
if 5e15 < t < 7.9999999999999997e99Initial program 76.5%
+-commutative76.5%
associate-/l*93.6%
fma-define93.6%
Simplified93.6%
Taylor expanded in z around inf 69.8%
Taylor expanded in y around 0 52.3%
mul-1-neg52.3%
associate-/l*63.7%
Simplified63.7%
Final simplification58.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -6.3e+187)
y
(if (<= t -1.58e+97)
(* x (/ (- z a) t))
(if (<= t 9.5e-33)
(* x (- 1.0 (/ z a)))
(if (<= t 5.5e+16)
(* y (/ z (- a t)))
(if (<= t 8.5e+99) (* x (/ z (- t a))) y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.3e+187) {
tmp = y;
} else if (t <= -1.58e+97) {
tmp = x * ((z - a) / t);
} else if (t <= 9.5e-33) {
tmp = x * (1.0 - (z / a));
} else if (t <= 5.5e+16) {
tmp = y * (z / (a - t));
} else if (t <= 8.5e+99) {
tmp = x * (z / (t - 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 <= (-6.3d+187)) then
tmp = y
else if (t <= (-1.58d+97)) then
tmp = x * ((z - a) / t)
else if (t <= 9.5d-33) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 5.5d+16) then
tmp = y * (z / (a - t))
else if (t <= 8.5d+99) then
tmp = x * (z / (t - 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 <= -6.3e+187) {
tmp = y;
} else if (t <= -1.58e+97) {
tmp = x * ((z - a) / t);
} else if (t <= 9.5e-33) {
tmp = x * (1.0 - (z / a));
} else if (t <= 5.5e+16) {
tmp = y * (z / (a - t));
} else if (t <= 8.5e+99) {
tmp = x * (z / (t - a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.3e+187: tmp = y elif t <= -1.58e+97: tmp = x * ((z - a) / t) elif t <= 9.5e-33: tmp = x * (1.0 - (z / a)) elif t <= 5.5e+16: tmp = y * (z / (a - t)) elif t <= 8.5e+99: tmp = x * (z / (t - a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.3e+187) tmp = y; elseif (t <= -1.58e+97) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= 9.5e-33) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 5.5e+16) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= 8.5e+99) tmp = Float64(x * Float64(z / Float64(t - a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.3e+187) tmp = y; elseif (t <= -1.58e+97) tmp = x * ((z - a) / t); elseif (t <= 9.5e-33) tmp = x * (1.0 - (z / a)); elseif (t <= 5.5e+16) tmp = y * (z / (a - t)); elseif (t <= 8.5e+99) tmp = x * (z / (t - a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.3e+187], y, If[LessEqual[t, -1.58e+97], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-33], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+16], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+99], N[(x * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.3 \cdot 10^{+187}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.58 \cdot 10^{+97}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-33}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+16}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+99}:\\
\;\;\;\;x \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6.30000000000000005e187 or 8.49999999999999984e99 < t Initial program 34.7%
+-commutative34.7%
associate-/l*68.0%
fma-define68.0%
Simplified68.0%
Taylor expanded in y around 0 53.3%
+-commutative53.3%
+-commutative53.3%
div-sub53.3%
mul-1-neg53.3%
associate-/l*68.0%
distribute-lft-neg-in68.0%
distribute-rgt-in68.0%
sub-neg68.0%
associate-*l/34.7%
associate-*r/63.4%
fma-define63.5%
Simplified63.5%
Taylor expanded in t around inf 63.1%
if -6.30000000000000005e187 < t < -1.57999999999999993e97Initial program 21.9%
+-commutative21.9%
associate-/l*56.2%
fma-define56.2%
Simplified56.2%
Taylor expanded in y around 0 15.0%
*-rgt-identity15.0%
mul-1-neg15.0%
associate-/l*41.0%
distribute-rgt-neg-in41.0%
mul-1-neg41.0%
distribute-lft-in41.2%
mul-1-neg41.2%
unsub-neg41.2%
Simplified41.2%
Taylor expanded in t around inf 65.1%
associate-*r/65.1%
mul-1-neg65.1%
sub-neg65.1%
mul-1-neg65.1%
Simplified65.1%
if -1.57999999999999993e97 < t < 9.50000000000000019e-33Initial program 85.1%
+-commutative85.1%
associate-/l*94.3%
fma-define94.2%
Simplified94.2%
Taylor expanded in y around 0 52.7%
*-rgt-identity52.7%
mul-1-neg52.7%
associate-/l*57.3%
distribute-rgt-neg-in57.3%
mul-1-neg57.3%
distribute-lft-in57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
Taylor expanded in t around 0 51.9%
if 9.50000000000000019e-33 < t < 5.5e16Initial program 81.2%
+-commutative81.2%
associate-/l*87.2%
fma-define87.4%
Simplified87.4%
Taylor expanded in z around inf 67.0%
Taylor expanded in y around inf 54.5%
associate-/l*60.4%
Simplified60.4%
if 5.5e16 < t < 8.49999999999999984e99Initial program 76.5%
+-commutative76.5%
associate-/l*93.6%
fma-define93.6%
Simplified93.6%
Taylor expanded in z around inf 69.8%
Taylor expanded in y around 0 52.3%
mul-1-neg52.3%
associate-/l*63.7%
Simplified63.7%
Final simplification57.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.1e+187)
y
(if (<= t 1e-32)
(* x (- 1.0 (/ z a)))
(if (<= t 3.3e+15)
(* y (/ z (- a t)))
(if (<= t 8.2e+99) (* x (/ z (- t a))) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.1e+187) {
tmp = y;
} else if (t <= 1e-32) {
tmp = x * (1.0 - (z / a));
} else if (t <= 3.3e+15) {
tmp = y * (z / (a - t));
} else if (t <= 8.2e+99) {
tmp = x * (z / (t - 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.1d+187)) then
tmp = y
else if (t <= 1d-32) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 3.3d+15) then
tmp = y * (z / (a - t))
else if (t <= 8.2d+99) then
tmp = x * (z / (t - 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.1e+187) {
tmp = y;
} else if (t <= 1e-32) {
tmp = x * (1.0 - (z / a));
} else if (t <= 3.3e+15) {
tmp = y * (z / (a - t));
} else if (t <= 8.2e+99) {
tmp = x * (z / (t - a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.1e+187: tmp = y elif t <= 1e-32: tmp = x * (1.0 - (z / a)) elif t <= 3.3e+15: tmp = y * (z / (a - t)) elif t <= 8.2e+99: tmp = x * (z / (t - a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.1e+187) tmp = y; elseif (t <= 1e-32) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 3.3e+15) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= 8.2e+99) tmp = Float64(x * Float64(z / Float64(t - a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.1e+187) tmp = y; elseif (t <= 1e-32) tmp = x * (1.0 - (z / a)); elseif (t <= 3.3e+15) tmp = y * (z / (a - t)); elseif (t <= 8.2e+99) tmp = x * (z / (t - a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.1e+187], y, If[LessEqual[t, 1e-32], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e+15], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e+99], N[(x * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{+187}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 10^{-32}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{+15}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+99}:\\
\;\;\;\;x \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.10000000000000012e187 or 8.19999999999999959e99 < t Initial program 34.7%
+-commutative34.7%
associate-/l*68.0%
fma-define68.0%
Simplified68.0%
Taylor expanded in y around 0 53.3%
+-commutative53.3%
+-commutative53.3%
div-sub53.3%
mul-1-neg53.3%
associate-/l*68.0%
distribute-lft-neg-in68.0%
distribute-rgt-in68.0%
sub-neg68.0%
associate-*l/34.7%
associate-*r/63.4%
fma-define63.5%
Simplified63.5%
Taylor expanded in t around inf 63.1%
if -3.10000000000000012e187 < t < 1.00000000000000006e-32Initial program 79.1%
+-commutative79.1%
associate-/l*90.7%
fma-define90.7%
Simplified90.7%
Taylor expanded in y around 0 49.2%
*-rgt-identity49.2%
mul-1-neg49.2%
associate-/l*55.8%
distribute-rgt-neg-in55.8%
mul-1-neg55.8%
distribute-lft-in55.7%
mul-1-neg55.7%
unsub-neg55.7%
Simplified55.7%
Taylor expanded in t around 0 48.8%
if 1.00000000000000006e-32 < t < 3.3e15Initial program 81.2%
+-commutative81.2%
associate-/l*87.2%
fma-define87.4%
Simplified87.4%
Taylor expanded in z around inf 67.0%
Taylor expanded in y around inf 54.5%
associate-/l*60.4%
Simplified60.4%
if 3.3e15 < t < 8.19999999999999959e99Initial program 76.5%
+-commutative76.5%
associate-/l*93.6%
fma-define93.6%
Simplified93.6%
Taylor expanded in z around inf 69.8%
Taylor expanded in y around 0 52.3%
mul-1-neg52.3%
associate-/l*63.7%
Simplified63.7%
Final simplification54.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (/ (* (- a z) (- x y)) t))))
(if (<= t -9.6e+94)
t_1
(if (<= t -9.4e-147)
(+ x (* (- z t) (/ y (- a t))))
(if (<= t 1e+75) (+ x (* z (/ (- x y) (- t a)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y - (((a - z) * (x - y)) / t);
double tmp;
if (t <= -9.6e+94) {
tmp = t_1;
} else if (t <= -9.4e-147) {
tmp = x + ((z - t) * (y / (a - t)));
} else if (t <= 1e+75) {
tmp = x + (z * ((x - y) / (t - a)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y - (((a - z) * (x - y)) / t)
if (t <= (-9.6d+94)) then
tmp = t_1
else if (t <= (-9.4d-147)) then
tmp = x + ((z - t) * (y / (a - t)))
else if (t <= 1d+75) then
tmp = x + (z * ((x - y) / (t - a)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y - (((a - z) * (x - y)) / t);
double tmp;
if (t <= -9.6e+94) {
tmp = t_1;
} else if (t <= -9.4e-147) {
tmp = x + ((z - t) * (y / (a - t)));
} else if (t <= 1e+75) {
tmp = x + (z * ((x - y) / (t - a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y - (((a - z) * (x - y)) / t) tmp = 0 if t <= -9.6e+94: tmp = t_1 elif t <= -9.4e-147: tmp = x + ((z - t) * (y / (a - t))) elif t <= 1e+75: tmp = x + (z * ((x - y) / (t - a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)) tmp = 0.0 if (t <= -9.6e+94) tmp = t_1; elseif (t <= -9.4e-147) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))); elseif (t <= 1e+75) tmp = Float64(x + Float64(z * Float64(Float64(x - y) / Float64(t - a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y - (((a - z) * (x - y)) / t); tmp = 0.0; if (t <= -9.6e+94) tmp = t_1; elseif (t <= -9.4e-147) tmp = x + ((z - t) * (y / (a - t))); elseif (t <= 1e+75) tmp = x + (z * ((x - y) / (t - a))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.6e+94], t$95$1, If[LessEqual[t, -9.4e-147], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+75], N[(x + N[(z * N[(N[(x - y), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\
\mathbf{if}\;t \leq -9.6 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9.4 \cdot 10^{-147}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 10^{+75}:\\
\;\;\;\;x + z \cdot \frac{x - y}{t - a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.5999999999999993e94 or 9.99999999999999927e74 < t Initial program 34.4%
+-commutative34.4%
associate-/l*66.9%
fma-define66.9%
Simplified66.9%
Taylor expanded in t around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
associate-*r/70.1%
mul-1-neg70.1%
div-sub70.1%
mul-1-neg70.1%
distribute-lft-out--70.1%
associate-*r/70.1%
mul-1-neg70.1%
unsub-neg70.1%
distribute-rgt-out--70.3%
Simplified70.3%
if -9.5999999999999993e94 < t < -9.39999999999999978e-147Initial program 76.1%
Taylor expanded in y around inf 74.0%
*-commutative74.0%
*-lft-identity74.0%
times-frac78.7%
/-rgt-identity78.7%
Simplified78.7%
if -9.39999999999999978e-147 < t < 9.99999999999999927e74Initial program 87.2%
Taylor expanded in z around inf 79.7%
associate-/l*86.9%
Simplified86.9%
Final simplification79.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* a (/ (- y x) t)))))
(if (<= t -2.2e+95)
t_1
(if (<= t -1.15e-146)
(+ x (* (- z t) (/ y (- a t))))
(if (<= t 8.2e+99) (+ x (* z (/ (- x y) (- t a)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + (a * ((y - x) / t));
double tmp;
if (t <= -2.2e+95) {
tmp = t_1;
} else if (t <= -1.15e-146) {
tmp = x + ((z - t) * (y / (a - t)));
} else if (t <= 8.2e+99) {
tmp = x + (z * ((x - y) / (t - a)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y + (a * ((y - x) / t))
if (t <= (-2.2d+95)) then
tmp = t_1
else if (t <= (-1.15d-146)) then
tmp = x + ((z - t) * (y / (a - t)))
else if (t <= 8.2d+99) then
tmp = x + (z * ((x - y) / (t - a)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y + (a * ((y - x) / t));
double tmp;
if (t <= -2.2e+95) {
tmp = t_1;
} else if (t <= -1.15e-146) {
tmp = x + ((z - t) * (y / (a - t)));
} else if (t <= 8.2e+99) {
tmp = x + (z * ((x - y) / (t - a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + (a * ((y - x) / t)) tmp = 0 if t <= -2.2e+95: tmp = t_1 elif t <= -1.15e-146: tmp = x + ((z - t) * (y / (a - t))) elif t <= 8.2e+99: tmp = x + (z * ((x - y) / (t - a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(a * Float64(Float64(y - x) / t))) tmp = 0.0 if (t <= -2.2e+95) tmp = t_1; elseif (t <= -1.15e-146) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))); elseif (t <= 8.2e+99) tmp = Float64(x + Float64(z * Float64(Float64(x - y) / Float64(t - a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + (a * ((y - x) / t)); tmp = 0.0; if (t <= -2.2e+95) tmp = t_1; elseif (t <= -1.15e-146) tmp = x + ((z - t) * (y / (a - t))); elseif (t <= 8.2e+99) tmp = x + (z * ((x - y) / (t - a))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.2e+95], t$95$1, If[LessEqual[t, -1.15e-146], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e+99], N[(x + N[(z * N[(N[(x - y), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + a \cdot \frac{y - x}{t}\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-146}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+99}:\\
\;\;\;\;x + z \cdot \frac{x - y}{t - a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.1999999999999999e95 or 8.19999999999999959e99 < t Initial program 32.5%
+-commutative32.5%
associate-/l*66.5%
fma-define66.5%
Simplified66.5%
Taylor expanded in z around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
Taylor expanded in t around inf 58.2%
Taylor expanded in z around 0 63.6%
associate-/l*66.9%
Simplified66.9%
if -2.1999999999999999e95 < t < -1.15e-146Initial program 76.1%
Taylor expanded in y around inf 74.0%
*-commutative74.0%
*-lft-identity74.0%
times-frac78.7%
/-rgt-identity78.7%
Simplified78.7%
if -1.15e-146 < t < 8.19999999999999959e99Initial program 86.9%
Taylor expanded in z around inf 78.8%
associate-/l*85.8%
Simplified85.8%
Final simplification78.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.7e+185)
y
(if (<= t -1.9e-240)
x
(if (<= t 2.35e-7) (/ y (/ a z)) (if (<= t 8e+99) (* x (/ z t)) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+185) {
tmp = y;
} else if (t <= -1.9e-240) {
tmp = x;
} else if (t <= 2.35e-7) {
tmp = y / (a / z);
} else if (t <= 8e+99) {
tmp = x * (z / t);
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.7d+185)) then
tmp = y
else if (t <= (-1.9d-240)) then
tmp = x
else if (t <= 2.35d-7) then
tmp = y / (a / z)
else if (t <= 8d+99) then
tmp = x * (z / t)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+185) {
tmp = y;
} else if (t <= -1.9e-240) {
tmp = x;
} else if (t <= 2.35e-7) {
tmp = y / (a / z);
} else if (t <= 8e+99) {
tmp = x * (z / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.7e+185: tmp = y elif t <= -1.9e-240: tmp = x elif t <= 2.35e-7: tmp = y / (a / z) elif t <= 8e+99: tmp = x * (z / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.7e+185) tmp = y; elseif (t <= -1.9e-240) tmp = x; elseif (t <= 2.35e-7) tmp = Float64(y / Float64(a / z)); elseif (t <= 8e+99) tmp = Float64(x * Float64(z / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.7e+185) tmp = y; elseif (t <= -1.9e-240) tmp = x; elseif (t <= 2.35e-7) tmp = y / (a / z); elseif (t <= 8e+99) tmp = x * (z / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.7e+185], y, If[LessEqual[t, -1.9e-240], x, If[LessEqual[t, 2.35e-7], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+99], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+185}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-240}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{-7}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+99}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.70000000000000009e185 or 7.9999999999999997e99 < t Initial program 34.3%
+-commutative34.3%
associate-/l*68.4%
fma-define68.4%
Simplified68.4%
Taylor expanded in y around 0 52.6%
+-commutative52.6%
+-commutative52.6%
div-sub52.6%
mul-1-neg52.6%
associate-/l*68.4%
distribute-lft-neg-in68.4%
distribute-rgt-in68.4%
sub-neg68.4%
associate-*l/34.3%
associate-*r/63.9%
fma-define64.0%
Simplified64.0%
Taylor expanded in t around inf 62.3%
if -1.70000000000000009e185 < t < -1.89999999999999994e-240Initial program 70.9%
+-commutative70.9%
associate-/l*85.5%
fma-define85.5%
Simplified85.5%
Taylor expanded in a around inf 32.4%
if -1.89999999999999994e-240 < t < 2.35e-7Initial program 86.8%
+-commutative86.8%
associate-/l*94.7%
fma-define94.6%
Simplified94.6%
Taylor expanded in y around 0 85.9%
+-commutative85.9%
+-commutative85.9%
div-sub85.9%
mul-1-neg85.9%
associate-/l*87.9%
distribute-lft-neg-in87.9%
distribute-rgt-in94.7%
sub-neg94.7%
associate-*l/86.8%
associate-*r/93.6%
fma-define93.5%
Simplified93.5%
Taylor expanded in y around inf 45.3%
div-sub45.3%
Simplified45.3%
clear-num45.2%
un-div-inv46.1%
Applied egg-rr46.1%
Taylor expanded in t around 0 40.6%
if 2.35e-7 < t < 7.9999999999999997e99Initial program 77.1%
+-commutative77.1%
associate-/l*90.1%
fma-define90.2%
Simplified90.2%
Taylor expanded in y around 0 45.0%
*-rgt-identity45.0%
mul-1-neg45.0%
associate-/l*53.5%
distribute-rgt-neg-in53.5%
mul-1-neg53.5%
distribute-lft-in53.7%
mul-1-neg53.7%
unsub-neg53.7%
Simplified53.7%
Taylor expanded in a around 0 41.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.7e+185)
y
(if (<= t -9.2e-241)
x
(if (<= t 7e-7) (* y (/ z a)) (if (<= t 8.2e+99) (* x (/ z t)) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+185) {
tmp = y;
} else if (t <= -9.2e-241) {
tmp = x;
} else if (t <= 7e-7) {
tmp = y * (z / a);
} else if (t <= 8.2e+99) {
tmp = x * (z / t);
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.7d+185)) then
tmp = y
else if (t <= (-9.2d-241)) then
tmp = x
else if (t <= 7d-7) then
tmp = y * (z / a)
else if (t <= 8.2d+99) then
tmp = x * (z / t)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+185) {
tmp = y;
} else if (t <= -9.2e-241) {
tmp = x;
} else if (t <= 7e-7) {
tmp = y * (z / a);
} else if (t <= 8.2e+99) {
tmp = x * (z / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.7e+185: tmp = y elif t <= -9.2e-241: tmp = x elif t <= 7e-7: tmp = y * (z / a) elif t <= 8.2e+99: tmp = x * (z / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.7e+185) tmp = y; elseif (t <= -9.2e-241) tmp = x; elseif (t <= 7e-7) tmp = Float64(y * Float64(z / a)); elseif (t <= 8.2e+99) tmp = Float64(x * Float64(z / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.7e+185) tmp = y; elseif (t <= -9.2e-241) tmp = x; elseif (t <= 7e-7) tmp = y * (z / a); elseif (t <= 8.2e+99) tmp = x * (z / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.7e+185], y, If[LessEqual[t, -9.2e-241], x, If[LessEqual[t, 7e-7], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e+99], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+185}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -9.2 \cdot 10^{-241}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-7}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+99}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.70000000000000009e185 or 8.19999999999999959e99 < t Initial program 34.3%
+-commutative34.3%
associate-/l*68.4%
fma-define68.4%
Simplified68.4%
Taylor expanded in y around 0 52.6%
+-commutative52.6%
+-commutative52.6%
div-sub52.6%
mul-1-neg52.6%
associate-/l*68.4%
distribute-lft-neg-in68.4%
distribute-rgt-in68.4%
sub-neg68.4%
associate-*l/34.3%
associate-*r/63.9%
fma-define64.0%
Simplified64.0%
Taylor expanded in t around inf 62.3%
if -1.70000000000000009e185 < t < -9.1999999999999997e-241Initial program 70.9%
+-commutative70.9%
associate-/l*85.5%
fma-define85.5%
Simplified85.5%
Taylor expanded in a around inf 32.4%
if -9.1999999999999997e-241 < t < 6.99999999999999968e-7Initial program 86.8%
+-commutative86.8%
associate-/l*94.7%
fma-define94.6%
Simplified94.6%
Taylor expanded in y around 0 85.9%
+-commutative85.9%
+-commutative85.9%
div-sub85.9%
mul-1-neg85.9%
associate-/l*87.9%
distribute-lft-neg-in87.9%
distribute-rgt-in94.7%
sub-neg94.7%
associate-*l/86.8%
associate-*r/93.6%
fma-define93.5%
Simplified93.5%
Taylor expanded in y around inf 45.3%
div-sub45.3%
Simplified45.3%
Taylor expanded in t around 0 40.0%
if 6.99999999999999968e-7 < t < 8.19999999999999959e99Initial program 77.1%
+-commutative77.1%
associate-/l*90.1%
fma-define90.2%
Simplified90.2%
Taylor expanded in y around 0 45.0%
*-rgt-identity45.0%
mul-1-neg45.0%
associate-/l*53.5%
distribute-rgt-neg-in53.5%
mul-1-neg53.5%
distribute-lft-in53.7%
mul-1-neg53.7%
unsub-neg53.7%
Simplified53.7%
Taylor expanded in a around 0 41.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.15e-146)
(* y (/ (- z t) (- a t)))
(if (<= t 2.9e-43)
(+ x (* z (/ (- y x) a)))
(if (<= t 8.5e+99) (/ z (/ (- a t) (- y x))) (+ y (* a (/ (- y x) t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.15e-146) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 2.9e-43) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8.5e+99) {
tmp = z / ((a - t) / (y - x));
} else {
tmp = y + (a * ((y - x) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.15d-146)) then
tmp = y * ((z - t) / (a - t))
else if (t <= 2.9d-43) then
tmp = x + (z * ((y - x) / a))
else if (t <= 8.5d+99) then
tmp = z / ((a - t) / (y - x))
else
tmp = y + (a * ((y - x) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.15e-146) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 2.9e-43) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8.5e+99) {
tmp = z / ((a - t) / (y - x));
} else {
tmp = y + (a * ((y - x) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.15e-146: tmp = y * ((z - t) / (a - t)) elif t <= 2.9e-43: tmp = x + (z * ((y - x) / a)) elif t <= 8.5e+99: tmp = z / ((a - t) / (y - x)) else: tmp = y + (a * ((y - x) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.15e-146) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 2.9e-43) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 8.5e+99) tmp = Float64(z / Float64(Float64(a - t) / Float64(y - x))); else tmp = Float64(y + Float64(a * Float64(Float64(y - x) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.15e-146) tmp = y * ((z - t) / (a - t)); elseif (t <= 2.9e-43) tmp = x + (z * ((y - x) / a)); elseif (t <= 8.5e+99) tmp = z / ((a - t) / (y - x)); else tmp = y + (a * ((y - x) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.15e-146], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-43], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+99], N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{-146}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-43}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+99}:\\
\;\;\;\;\frac{z}{\frac{a - t}{y - x}}\\
\mathbf{else}:\\
\;\;\;\;y + a \cdot \frac{y - x}{t}\\
\end{array}
\end{array}
if t < -1.15e-146Initial program 50.6%
+-commutative50.6%
associate-/l*76.8%
fma-define76.8%
Simplified76.8%
Taylor expanded in y around 0 63.4%
+-commutative63.4%
+-commutative63.4%
div-sub63.4%
mul-1-neg63.4%
associate-/l*76.7%
distribute-lft-neg-in76.7%
distribute-rgt-in76.8%
sub-neg76.8%
associate-*l/50.6%
associate-*r/72.9%
fma-define73.1%
Simplified73.1%
Taylor expanded in y around inf 58.6%
div-sub58.6%
Simplified58.6%
if -1.15e-146 < t < 2.9000000000000001e-43Initial program 88.9%
Taylor expanded in t around 0 81.1%
associate-/l*85.7%
Simplified85.7%
if 2.9000000000000001e-43 < t < 8.49999999999999984e99Initial program 82.1%
+-commutative82.1%
associate-/l*89.3%
fma-define89.4%
Simplified89.4%
Taylor expanded in z around inf 70.9%
sub-div70.9%
clear-num71.0%
un-div-inv70.9%
Applied egg-rr70.9%
if 8.49999999999999984e99 < t Initial program 38.6%
+-commutative38.6%
associate-/l*69.1%
fma-define69.1%
Simplified69.1%
Taylor expanded in z around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
Taylor expanded in t around inf 62.1%
Taylor expanded in z around 0 62.3%
associate-/l*66.4%
Simplified66.4%
(FPCore (x y z t a)
:precision binary64
(if (<= x -3.2e+144)
(* x (- 1.0 (/ z a)))
(if (<= x 1.7e-20)
(* y (/ (- z t) (- a t)))
(if (<= x 1.9e+55) (+ x (* y (/ (- z t) a))) (* x (/ (- z a) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -3.2e+144) {
tmp = x * (1.0 - (z / a));
} else if (x <= 1.7e-20) {
tmp = y * ((z - t) / (a - t));
} else if (x <= 1.9e+55) {
tmp = x + (y * ((z - t) / a));
} else {
tmp = x * ((z - 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 (x <= (-3.2d+144)) then
tmp = x * (1.0d0 - (z / a))
else if (x <= 1.7d-20) then
tmp = y * ((z - t) / (a - t))
else if (x <= 1.9d+55) then
tmp = x + (y * ((z - t) / a))
else
tmp = x * ((z - 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 (x <= -3.2e+144) {
tmp = x * (1.0 - (z / a));
} else if (x <= 1.7e-20) {
tmp = y * ((z - t) / (a - t));
} else if (x <= 1.9e+55) {
tmp = x + (y * ((z - t) / a));
} else {
tmp = x * ((z - a) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -3.2e+144: tmp = x * (1.0 - (z / a)) elif x <= 1.7e-20: tmp = y * ((z - t) / (a - t)) elif x <= 1.9e+55: tmp = x + (y * ((z - t) / a)) else: tmp = x * ((z - a) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -3.2e+144) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (x <= 1.7e-20) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (x <= 1.9e+55) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); else tmp = Float64(x * Float64(Float64(z - a) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -3.2e+144) tmp = x * (1.0 - (z / a)); elseif (x <= 1.7e-20) tmp = y * ((z - t) / (a - t)); elseif (x <= 1.9e+55) tmp = x + (y * ((z - t) / a)); else tmp = x * ((z - a) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -3.2e+144], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e-20], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+55], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+144}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-20}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+55}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\end{array}
\end{array}
if x < -3.2000000000000001e144Initial program 70.9%
+-commutative70.9%
associate-/l*90.8%
fma-define90.9%
Simplified90.9%
Taylor expanded in y around 0 63.6%
*-rgt-identity63.6%
mul-1-neg63.6%
associate-/l*77.5%
distribute-rgt-neg-in77.5%
mul-1-neg77.5%
distribute-lft-in77.6%
mul-1-neg77.6%
unsub-neg77.6%
Simplified77.6%
Taylor expanded in t around 0 61.1%
if -3.2000000000000001e144 < x < 1.6999999999999999e-20Initial program 72.5%
+-commutative72.5%
associate-/l*90.4%
fma-define90.3%
Simplified90.3%
Taylor expanded in y around 0 83.4%
+-commutative83.4%
+-commutative83.4%
div-sub83.4%
mul-1-neg83.4%
associate-/l*87.8%
distribute-lft-neg-in87.8%
distribute-rgt-in90.4%
sub-neg90.4%
associate-*l/72.5%
associate-*r/88.3%
fma-define88.3%
Simplified88.3%
Taylor expanded in y around inf 69.9%
div-sub69.9%
Simplified69.9%
if 1.6999999999999999e-20 < x < 1.9e55Initial program 99.9%
Taylor expanded in a around inf 75.6%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in y around inf 73.5%
if 1.9e55 < x Initial program 37.2%
+-commutative37.2%
associate-/l*59.5%
fma-define59.5%
Simplified59.5%
Taylor expanded in y around 0 33.7%
*-rgt-identity33.7%
mul-1-neg33.7%
associate-/l*47.7%
distribute-rgt-neg-in47.7%
mul-1-neg47.7%
distribute-lft-in47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
Taylor expanded in t around inf 53.5%
associate-*r/53.5%
mul-1-neg53.5%
sub-neg53.5%
mul-1-neg53.5%
Simplified53.5%
Final simplification65.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.9e+95)
(- y (/ (* (- a z) (- x y)) t))
(if (<= t 8e+196)
(+ x (/ (* (- x y) (- t z)) (- a t)))
(+ y (* a (/ (- y x) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e+95) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t <= 8e+196) {
tmp = x + (((x - y) * (t - z)) / (a - t));
} else {
tmp = y + (a * ((y - x) / 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.9d+95)) then
tmp = y - (((a - z) * (x - y)) / t)
else if (t <= 8d+196) then
tmp = x + (((x - y) * (t - z)) / (a - t))
else
tmp = y + (a * ((y - x) / 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.9e+95) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t <= 8e+196) {
tmp = x + (((x - y) * (t - z)) / (a - t));
} else {
tmp = y + (a * ((y - x) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e+95: tmp = y - (((a - z) * (x - y)) / t) elif t <= 8e+196: tmp = x + (((x - y) * (t - z)) / (a - t)) else: tmp = y + (a * ((y - x) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e+95) tmp = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)); elseif (t <= 8e+196) tmp = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))); else tmp = Float64(y + Float64(a * Float64(Float64(y - x) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e+95) tmp = y - (((a - z) * (x - y)) / t); elseif (t <= 8e+196) tmp = x + (((x - y) * (t - z)) / (a - t)); else tmp = y + (a * ((y - x) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e+95], N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+196], N[(x + N[(N[(N[(x - y), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+95}:\\
\;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+196}:\\
\;\;\;\;x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + a \cdot \frac{y - x}{t}\\
\end{array}
\end{array}
if t < -1.9e95Initial program 24.5%
+-commutative24.5%
associate-/l*63.2%
fma-define63.2%
Simplified63.2%
Taylor expanded in t around inf 70.3%
associate--l+70.3%
associate-*r/70.3%
associate-*r/70.3%
mul-1-neg70.3%
div-sub70.3%
mul-1-neg70.3%
distribute-lft-out--70.3%
associate-*r/70.3%
mul-1-neg70.3%
unsub-neg70.3%
distribute-rgt-out--70.6%
Simplified70.6%
if -1.9e95 < t < 7.9999999999999996e196Initial program 82.8%
if 7.9999999999999996e196 < t Initial program 20.1%
+-commutative20.1%
associate-/l*62.7%
fma-define62.7%
Simplified62.7%
Taylor expanded in z around inf 38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
Simplified38.4%
Taylor expanded in t around inf 61.2%
Taylor expanded in z around 0 69.7%
associate-/l*75.9%
Simplified75.9%
Final simplification80.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.45e+95) (not (<= t 8e+99))) (+ y (* a (/ (- y x) t))) (+ x (* z (/ (- x y) (- t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.45e+95) || !(t <= 8e+99)) {
tmp = y + (a * ((y - x) / t));
} else {
tmp = x + (z * ((x - y) / (t - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.45d+95)) .or. (.not. (t <= 8d+99))) then
tmp = y + (a * ((y - x) / t))
else
tmp = x + (z * ((x - y) / (t - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.45e+95) || !(t <= 8e+99)) {
tmp = y + (a * ((y - x) / t));
} else {
tmp = x + (z * ((x - y) / (t - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.45e+95) or not (t <= 8e+99): tmp = y + (a * ((y - x) / t)) else: tmp = x + (z * ((x - y) / (t - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.45e+95) || !(t <= 8e+99)) tmp = Float64(y + Float64(a * Float64(Float64(y - x) / t))); else tmp = Float64(x + Float64(z * Float64(Float64(x - y) / Float64(t - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.45e+95) || ~((t <= 8e+99))) tmp = y + (a * ((y - x) / t)); else tmp = x + (z * ((x - y) / (t - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.45e+95], N[Not[LessEqual[t, 8e+99]], $MachinePrecision]], N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(N[(x - y), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.45 \cdot 10^{+95} \lor \neg \left(t \leq 8 \cdot 10^{+99}\right):\\
\;\;\;\;y + a \cdot \frac{y - x}{t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{x - y}{t - a}\\
\end{array}
\end{array}
if t < -2.4499999999999999e95 or 7.9999999999999997e99 < t Initial program 32.5%
+-commutative32.5%
associate-/l*66.5%
fma-define66.5%
Simplified66.5%
Taylor expanded in z around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
Taylor expanded in t around inf 58.2%
Taylor expanded in z around 0 63.6%
associate-/l*66.9%
Simplified66.9%
if -2.4499999999999999e95 < t < 7.9999999999999997e99Initial program 84.3%
Taylor expanded in z around inf 72.4%
associate-/l*81.2%
Simplified81.2%
Final simplification76.2%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.7e+185) y (if (<= t 2.15e-145) x (if (<= t 8.2e+99) (* x (/ z t)) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+185) {
tmp = y;
} else if (t <= 2.15e-145) {
tmp = x;
} else if (t <= 8.2e+99) {
tmp = x * (z / t);
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.7d+185)) then
tmp = y
else if (t <= 2.15d-145) then
tmp = x
else if (t <= 8.2d+99) then
tmp = x * (z / t)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+185) {
tmp = y;
} else if (t <= 2.15e-145) {
tmp = x;
} else if (t <= 8.2e+99) {
tmp = x * (z / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.7e+185: tmp = y elif t <= 2.15e-145: tmp = x elif t <= 8.2e+99: tmp = x * (z / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.7e+185) tmp = y; elseif (t <= 2.15e-145) tmp = x; elseif (t <= 8.2e+99) tmp = Float64(x * Float64(z / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.7e+185) tmp = y; elseif (t <= 2.15e-145) tmp = x; elseif (t <= 8.2e+99) tmp = x * (z / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.7e+185], y, If[LessEqual[t, 2.15e-145], x, If[LessEqual[t, 8.2e+99], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+185}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-145}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+99}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.70000000000000009e185 or 8.19999999999999959e99 < t Initial program 34.3%
+-commutative34.3%
associate-/l*68.4%
fma-define68.4%
Simplified68.4%
Taylor expanded in y around 0 52.6%
+-commutative52.6%
+-commutative52.6%
div-sub52.6%
mul-1-neg52.6%
associate-/l*68.4%
distribute-lft-neg-in68.4%
distribute-rgt-in68.4%
sub-neg68.4%
associate-*l/34.3%
associate-*r/63.9%
fma-define64.0%
Simplified64.0%
Taylor expanded in t around inf 62.3%
if -1.70000000000000009e185 < t < 2.15e-145Initial program 78.3%
+-commutative78.3%
associate-/l*90.6%
fma-define90.6%
Simplified90.6%
Taylor expanded in a around inf 31.4%
if 2.15e-145 < t < 8.19999999999999959e99Initial program 81.8%
+-commutative81.8%
associate-/l*90.7%
fma-define90.6%
Simplified90.6%
Taylor expanded in y around 0 50.8%
*-rgt-identity50.8%
mul-1-neg50.8%
associate-/l*53.7%
distribute-rgt-neg-in53.7%
mul-1-neg53.7%
distribute-lft-in53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
Taylor expanded in a around 0 30.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.15e-146) (not (<= t 1.2e-32))) (* y (/ (- z t) (- a t))) (+ x (* z (/ (- y x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.15e-146) || !(t <= 1.2e-32)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-1.15d-146)) .or. (.not. (t <= 1.2d-32))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z * ((y - x) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.15e-146) || !(t <= 1.2e-32)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.15e-146) or not (t <= 1.2e-32): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z * ((y - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.15e-146) || !(t <= 1.2e-32)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.15e-146) || ~((t <= 1.2e-32))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z * ((y - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.15e-146], N[Not[LessEqual[t, 1.2e-32]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{-146} \lor \neg \left(t \leq 1.2 \cdot 10^{-32}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\end{array}
if t < -1.15e-146 or 1.2000000000000001e-32 < t Initial program 52.4%
+-commutative52.4%
associate-/l*77.0%
fma-define77.1%
Simplified77.1%
Taylor expanded in y around 0 64.4%
+-commutative64.4%
+-commutative64.4%
div-sub64.4%
mul-1-neg64.4%
associate-/l*77.0%
distribute-lft-neg-in77.0%
distribute-rgt-in77.0%
sub-neg77.0%
associate-*l/52.4%
associate-*r/73.9%
fma-define74.1%
Simplified74.1%
Taylor expanded in y around inf 60.1%
div-sub60.1%
Simplified60.1%
if -1.15e-146 < t < 1.2000000000000001e-32Initial program 89.6%
Taylor expanded in t around 0 80.2%
associate-/l*84.6%
Simplified84.6%
Final simplification69.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -9.8e-147) (* y (/ (- z t) (- a t))) (if (<= t 9.2e-33) (+ x (* z (/ (- y x) a))) (/ y (/ (- a t) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.8e-147) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 9.2e-33) {
tmp = x + (z * ((y - x) / a));
} 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 <= (-9.8d-147)) then
tmp = y * ((z - t) / (a - t))
else if (t <= 9.2d-33) then
tmp = x + (z * ((y - x) / a))
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 <= -9.8e-147) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 9.2e-33) {
tmp = x + (z * ((y - x) / a));
} else {
tmp = y / ((a - t) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.8e-147: tmp = y * ((z - t) / (a - t)) elif t <= 9.2e-33: tmp = x + (z * ((y - x) / a)) else: tmp = y / ((a - t) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.8e-147) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 9.2e-33) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); 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 <= -9.8e-147) tmp = y * ((z - t) / (a - t)); elseif (t <= 9.2e-33) tmp = x + (z * ((y - x) / a)); else tmp = y / ((a - t) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.8e-147], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e-33], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $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 -9.8 \cdot 10^{-147}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-33}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if t < -9.8000000000000001e-147Initial program 50.6%
+-commutative50.6%
associate-/l*76.8%
fma-define76.8%
Simplified76.8%
Taylor expanded in y around 0 63.4%
+-commutative63.4%
+-commutative63.4%
div-sub63.4%
mul-1-neg63.4%
associate-/l*76.7%
distribute-lft-neg-in76.7%
distribute-rgt-in76.8%
sub-neg76.8%
associate-*l/50.6%
associate-*r/72.9%
fma-define73.1%
Simplified73.1%
Taylor expanded in y around inf 58.6%
div-sub58.6%
Simplified58.6%
if -9.8000000000000001e-147 < t < 9.19999999999999942e-33Initial program 89.6%
Taylor expanded in t around 0 80.2%
associate-/l*84.6%
Simplified84.6%
if 9.19999999999999942e-33 < t Initial program 54.1%
+-commutative54.1%
associate-/l*77.3%
fma-define77.3%
Simplified77.3%
Taylor expanded in y around 0 65.4%
+-commutative65.4%
+-commutative65.4%
div-sub65.3%
mul-1-neg65.3%
associate-/l*77.3%
distribute-lft-neg-in77.3%
distribute-rgt-in77.3%
sub-neg77.3%
associate-*l/54.1%
associate-*r/74.8%
fma-define75.1%
Simplified75.1%
Taylor expanded in y around inf 61.5%
div-sub61.5%
Simplified61.5%
clear-num61.5%
un-div-inv61.5%
Applied egg-rr61.5%
(FPCore (x y z t a) :precision binary64 (if (<= x -2.4e+144) (* x (- 1.0 (/ z a))) (if (<= x 1.9e+26) (* y (/ (- z t) (- a t))) (* x (/ (- z a) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -2.4e+144) {
tmp = x * (1.0 - (z / a));
} else if (x <= 1.9e+26) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * ((z - 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 (x <= (-2.4d+144)) then
tmp = x * (1.0d0 - (z / a))
else if (x <= 1.9d+26) then
tmp = y * ((z - t) / (a - t))
else
tmp = x * ((z - 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 (x <= -2.4e+144) {
tmp = x * (1.0 - (z / a));
} else if (x <= 1.9e+26) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * ((z - a) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -2.4e+144: tmp = x * (1.0 - (z / a)) elif x <= 1.9e+26: tmp = y * ((z - t) / (a - t)) else: tmp = x * ((z - a) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -2.4e+144) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (x <= 1.9e+26) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x * Float64(Float64(z - a) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -2.4e+144) tmp = x * (1.0 - (z / a)); elseif (x <= 1.9e+26) tmp = y * ((z - t) / (a - t)); else tmp = x * ((z - a) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -2.4e+144], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+26], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{+144}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+26}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\end{array}
\end{array}
if x < -2.4000000000000001e144Initial program 70.9%
+-commutative70.9%
associate-/l*90.8%
fma-define90.9%
Simplified90.9%
Taylor expanded in y around 0 63.6%
*-rgt-identity63.6%
mul-1-neg63.6%
associate-/l*77.5%
distribute-rgt-neg-in77.5%
mul-1-neg77.5%
distribute-lft-in77.6%
mul-1-neg77.6%
unsub-neg77.6%
Simplified77.6%
Taylor expanded in t around 0 61.1%
if -2.4000000000000001e144 < x < 1.9000000000000001e26Initial program 74.6%
+-commutative74.6%
associate-/l*91.1%
fma-define91.1%
Simplified91.1%
Taylor expanded in y around 0 84.7%
+-commutative84.7%
+-commutative84.7%
div-sub84.7%
mul-1-neg84.7%
associate-/l*88.7%
distribute-lft-neg-in88.7%
distribute-rgt-in91.1%
sub-neg91.1%
associate-*l/74.6%
associate-*r/88.7%
fma-define88.6%
Simplified88.6%
Taylor expanded in y around inf 68.2%
div-sub68.2%
Simplified68.2%
if 1.9000000000000001e26 < x Initial program 40.3%
+-commutative40.3%
associate-/l*61.5%
fma-define61.5%
Simplified61.5%
Taylor expanded in y around 0 36.9%
*-rgt-identity36.9%
mul-1-neg36.9%
associate-/l*50.2%
distribute-rgt-neg-in50.2%
mul-1-neg50.2%
distribute-lft-in50.3%
mul-1-neg50.3%
unsub-neg50.3%
Simplified50.3%
Taylor expanded in t around inf 52.6%
associate-*r/52.6%
mul-1-neg52.6%
sub-neg52.6%
mul-1-neg52.6%
Simplified52.6%
Final simplification63.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.1e+187) y (if (<= t 8.5e+71) (* x (- 1.0 (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.1e+187) {
tmp = y;
} else if (t <= 8.5e+71) {
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.1d+187)) then
tmp = y
else if (t <= 8.5d+71) 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.1e+187) {
tmp = y;
} else if (t <= 8.5e+71) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.1e+187: tmp = y elif t <= 8.5e+71: tmp = x * (1.0 - (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.1e+187) tmp = y; elseif (t <= 8.5e+71) 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.1e+187) tmp = y; elseif (t <= 8.5e+71) tmp = x * (1.0 - (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.1e+187], y, If[LessEqual[t, 8.5e+71], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{+187}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.10000000000000012e187 or 8.4999999999999996e71 < t Initial program 37.6%
+-commutative37.6%
associate-/l*68.8%
fma-define68.8%
Simplified68.8%
Taylor expanded in y around 0 55.0%
+-commutative55.0%
+-commutative55.0%
div-sub55.0%
mul-1-neg55.0%
associate-/l*68.8%
distribute-lft-neg-in68.8%
distribute-rgt-in68.8%
sub-neg68.8%
associate-*l/37.6%
associate-*r/64.5%
fma-define64.7%
Simplified64.7%
Taylor expanded in t around inf 60.6%
if -3.10000000000000012e187 < t < 8.4999999999999996e71Initial program 79.0%
+-commutative79.0%
associate-/l*90.9%
fma-define90.9%
Simplified90.9%
Taylor expanded in y around 0 47.1%
*-rgt-identity47.1%
mul-1-neg47.1%
associate-/l*53.7%
distribute-rgt-neg-in53.7%
mul-1-neg53.7%
distribute-lft-in53.7%
mul-1-neg53.7%
unsub-neg53.7%
Simplified53.7%
Taylor expanded in t around 0 46.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.7e+185) y (if (<= t 2.2e+47) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+185) {
tmp = y;
} else if (t <= 2.2e+47) {
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.7d+185)) then
tmp = y
else if (t <= 2.2d+47) 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.7e+185) {
tmp = y;
} else if (t <= 2.2e+47) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.7e+185: tmp = y elif t <= 2.2e+47: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.7e+185) tmp = y; elseif (t <= 2.2e+47) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.7e+185) tmp = y; elseif (t <= 2.2e+47) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.7e+185], y, If[LessEqual[t, 2.2e+47], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+185}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+47}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.70000000000000009e185 or 2.1999999999999999e47 < t Initial program 37.6%
+-commutative37.6%
associate-/l*69.9%
fma-define69.9%
Simplified69.9%
Taylor expanded in y around 0 54.4%
+-commutative54.4%
+-commutative54.4%
div-sub54.4%
mul-1-neg54.4%
associate-/l*69.9%
distribute-lft-neg-in69.9%
distribute-rgt-in69.9%
sub-neg69.9%
associate-*l/37.6%
associate-*r/65.7%
fma-define65.9%
Simplified65.9%
Taylor expanded in t around inf 58.6%
if -1.70000000000000009e185 < t < 2.1999999999999999e47Initial program 79.7%
+-commutative79.7%
associate-/l*90.8%
fma-define90.8%
Simplified90.8%
Taylor expanded in a around inf 26.4%
(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 66.1%
+-commutative66.1%
associate-/l*84.0%
fma-define84.0%
Simplified84.0%
Taylor expanded in a around inf 19.6%
(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 66.1%
+-commutative66.1%
associate-/l*84.0%
fma-define84.0%
Simplified84.0%
Taylor expanded in y around 0 36.1%
*-rgt-identity36.1%
mul-1-neg36.1%
associate-/l*41.7%
distribute-rgt-neg-in41.7%
mul-1-neg41.7%
distribute-lft-in41.7%
mul-1-neg41.7%
unsub-neg41.7%
Simplified41.7%
Taylor expanded in t around inf 2.6%
Taylor expanded in x around 0 2.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024139
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))