
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_1 -1e-281)
(+ x (/ (- t x) (/ (- a z) (- y z))))
(if (<= t_1 0.0)
(- t (/ (* (- t x) (- y a)) z))
(fma (- t x) (/ (- y z) (- a z)) x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -1e-281) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else if (t_1 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else {
tmp = fma((t - x), ((y - z) / (a - z)), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_1 <= -1e-281) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); elseif (t_1 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); else tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-281], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-281}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1e-281Initial program 68.3%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in y around 0 70.8%
mul-1-neg70.8%
associate-/l*92.7%
distribute-lft-neg-out92.7%
+-commutative92.7%
div-sub92.7%
distribute-rgt-out93.6%
sub-neg93.6%
associate-/r/94.7%
Simplified94.7%
if -1e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.3%
+-commutative4.3%
*-commutative4.3%
associate-/l*4.3%
fma-define4.3%
Simplified4.3%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
Simplified100.0%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 75.0%
+-commutative75.0%
*-commutative75.0%
associate-/l*88.9%
fma-define88.8%
Simplified88.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z)))))
(t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 -1e-281)
t_1
(if (<= t_2 0.0)
(- t (/ (* (- t x) (- y a)) z))
(if (<= t_2 2e+307) t_2 t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -1e-281) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (t_2 <= 2e+307) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
t_2 = x + (((y - z) * (t - x)) / (a - z))
if (t_2 <= (-1d-281)) then
tmp = t_1
else if (t_2 <= 0.0d0) then
tmp = t - (((t - x) * (y - a)) / z)
else if (t_2 <= 2d+307) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -1e-281) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (t_2 <= 2e+307) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) t_2 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_2 <= -1e-281: tmp = t_1 elif t_2 <= 0.0: tmp = t - (((t - x) * (y - a)) / z) elif t_2 <= 2e+307: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= -1e-281) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); elseif (t_2 <= 2e+307) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); t_2 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_2 <= -1e-281) tmp = t_1; elseif (t_2 <= 0.0) tmp = t - (((t - x) * (y - a)) / z); elseif (t_2 <= 2e+307) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-281], t$95$1, If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+307], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1e-281 or 1.99999999999999997e307 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 61.6%
associate-/l*89.4%
Simplified89.4%
if -1e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.3%
+-commutative4.3%
*-commutative4.3%
associate-/l*4.3%
fma-define4.3%
Simplified4.3%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
Simplified100.0%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 1.99999999999999997e307Initial program 94.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -1e-281) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(- t (/ (* (- t x) (- y a)) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -1e-281) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t - (((t - x) * (y - a)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-1d-281)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t - (((t - x) * (y - a)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -1e-281) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t - (((t - x) * (y - a)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -1e-281) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t - (((t - x) * (y - a)) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -1e-281) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -1e-281) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t - (((t - x) * (y - a)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-281], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-281} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1e-281 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 71.6%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in y around 0 73.5%
mul-1-neg73.5%
associate-/l*85.3%
distribute-lft-neg-out85.3%
+-commutative85.3%
div-sub85.3%
distribute-rgt-out87.5%
sub-neg87.5%
associate-/r/91.8%
Simplified91.8%
if -1e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.3%
+-commutative4.3%
*-commutative4.3%
associate-/l*4.3%
fma-define4.3%
Simplified4.3%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
Simplified100.0%
Final simplification92.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -8e+155)
x
(if (<= a -4.4e-41)
(+ x t)
(if (<= a 0.085)
(* t (- 1.0 (/ y z)))
(if (<= a 9.5e+181) (* t (/ (- y z) a)) (* x (+ (/ z a) 1.0)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8e+155) {
tmp = x;
} else if (a <= -4.4e-41) {
tmp = x + t;
} else if (a <= 0.085) {
tmp = t * (1.0 - (y / z));
} else if (a <= 9.5e+181) {
tmp = t * ((y - z) / a);
} else {
tmp = x * ((z / a) + 1.0);
}
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 <= (-8d+155)) then
tmp = x
else if (a <= (-4.4d-41)) then
tmp = x + t
else if (a <= 0.085d0) then
tmp = t * (1.0d0 - (y / z))
else if (a <= 9.5d+181) then
tmp = t * ((y - z) / a)
else
tmp = x * ((z / a) + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8e+155) {
tmp = x;
} else if (a <= -4.4e-41) {
tmp = x + t;
} else if (a <= 0.085) {
tmp = t * (1.0 - (y / z));
} else if (a <= 9.5e+181) {
tmp = t * ((y - z) / a);
} else {
tmp = x * ((z / a) + 1.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8e+155: tmp = x elif a <= -4.4e-41: tmp = x + t elif a <= 0.085: tmp = t * (1.0 - (y / z)) elif a <= 9.5e+181: tmp = t * ((y - z) / a) else: tmp = x * ((z / a) + 1.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8e+155) tmp = x; elseif (a <= -4.4e-41) tmp = Float64(x + t); elseif (a <= 0.085) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (a <= 9.5e+181) tmp = Float64(t * Float64(Float64(y - z) / a)); else tmp = Float64(x * Float64(Float64(z / a) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8e+155) tmp = x; elseif (a <= -4.4e-41) tmp = x + t; elseif (a <= 0.085) tmp = t * (1.0 - (y / z)); elseif (a <= 9.5e+181) tmp = t * ((y - z) / a); else tmp = x * ((z / a) + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8e+155], x, If[LessEqual[a, -4.4e-41], N[(x + t), $MachinePrecision], If[LessEqual[a, 0.085], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+181], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(z / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8 \cdot 10^{+155}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-41}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;a \leq 0.085:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+181}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{z}{a} + 1\right)\\
\end{array}
\end{array}
if a < -8.00000000000000006e155Initial program 74.6%
+-commutative74.6%
*-commutative74.6%
associate-/l*99.7%
fma-define99.8%
Simplified99.8%
Taylor expanded in a around inf 51.8%
if -8.00000000000000006e155 < a < -4.4e-41Initial program 71.8%
associate-/l*81.5%
Simplified81.5%
clear-num81.1%
un-div-inv81.1%
Applied egg-rr81.1%
Taylor expanded in t around inf 61.6%
Taylor expanded in z around inf 37.8%
if -4.4e-41 < a < 0.0850000000000000061Initial program 61.7%
+-commutative61.7%
*-commutative61.7%
associate-/l*78.6%
fma-define78.6%
Simplified78.6%
Taylor expanded in t around inf 71.3%
Taylor expanded in a around 0 63.6%
mul-1-neg63.6%
unsub-neg63.6%
Simplified63.6%
if 0.0850000000000000061 < a < 9.50000000000000032e181Initial program 70.6%
+-commutative70.6%
*-commutative70.6%
associate-/l*90.2%
fma-define90.2%
Simplified90.2%
Taylor expanded in t around inf 50.4%
Taylor expanded in a around inf 37.7%
associate-/l*40.2%
Simplified40.2%
if 9.50000000000000032e181 < a Initial program 62.4%
+-commutative62.4%
*-commutative62.4%
associate-/l*94.5%
fma-define94.5%
Simplified94.5%
Taylor expanded in y around 0 74.0%
mul-1-neg74.0%
associate-/l*84.2%
distribute-lft-neg-out84.2%
+-commutative84.2%
*-commutative84.2%
fma-define84.1%
Simplified84.1%
Taylor expanded in a around inf 73.9%
mul-1-neg73.9%
unsub-neg73.9%
associate-/l*79.0%
Simplified79.0%
Taylor expanded in x around inf 73.2%
sub-neg73.2%
mul-1-neg73.2%
remove-double-neg73.2%
Simplified73.2%
Final simplification54.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -6.4e+153)
x
(if (<= a -4.35e-41)
(+ x t)
(if (<= a 1.65e-6)
(* t (- 1.0 (/ y z)))
(if (<= a 8.2e+183) (* t (/ (- y z) a)) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.4e+153) {
tmp = x;
} else if (a <= -4.35e-41) {
tmp = x + t;
} else if (a <= 1.65e-6) {
tmp = t * (1.0 - (y / z));
} else if (a <= 8.2e+183) {
tmp = t * ((y - z) / 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 <= (-6.4d+153)) then
tmp = x
else if (a <= (-4.35d-41)) then
tmp = x + t
else if (a <= 1.65d-6) then
tmp = t * (1.0d0 - (y / z))
else if (a <= 8.2d+183) then
tmp = t * ((y - z) / 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 <= -6.4e+153) {
tmp = x;
} else if (a <= -4.35e-41) {
tmp = x + t;
} else if (a <= 1.65e-6) {
tmp = t * (1.0 - (y / z));
} else if (a <= 8.2e+183) {
tmp = t * ((y - z) / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.4e+153: tmp = x elif a <= -4.35e-41: tmp = x + t elif a <= 1.65e-6: tmp = t * (1.0 - (y / z)) elif a <= 8.2e+183: tmp = t * ((y - z) / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.4e+153) tmp = x; elseif (a <= -4.35e-41) tmp = Float64(x + t); elseif (a <= 1.65e-6) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (a <= 8.2e+183) tmp = Float64(t * Float64(Float64(y - z) / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.4e+153) tmp = x; elseif (a <= -4.35e-41) tmp = x + t; elseif (a <= 1.65e-6) tmp = t * (1.0 - (y / z)); elseif (a <= 8.2e+183) tmp = t * ((y - z) / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.4e+153], x, If[LessEqual[a, -4.35e-41], N[(x + t), $MachinePrecision], If[LessEqual[a, 1.65e-6], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.2e+183], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.4 \cdot 10^{+153}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -4.35 \cdot 10^{-41}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-6}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{+183}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -6.4000000000000003e153 or 8.20000000000000029e183 < a Initial program 70.0%
+-commutative70.0%
*-commutative70.0%
associate-/l*97.8%
fma-define97.8%
Simplified97.8%
Taylor expanded in a around inf 59.8%
if -6.4000000000000003e153 < a < -4.34999999999999992e-41Initial program 71.8%
associate-/l*81.5%
Simplified81.5%
clear-num81.1%
un-div-inv81.1%
Applied egg-rr81.1%
Taylor expanded in t around inf 61.6%
Taylor expanded in z around inf 37.8%
if -4.34999999999999992e-41 < a < 1.65000000000000008e-6Initial program 61.7%
+-commutative61.7%
*-commutative61.7%
associate-/l*78.6%
fma-define78.6%
Simplified78.6%
Taylor expanded in t around inf 71.3%
Taylor expanded in a around 0 63.6%
mul-1-neg63.6%
unsub-neg63.6%
Simplified63.6%
if 1.65000000000000008e-6 < a < 8.20000000000000029e183Initial program 70.6%
+-commutative70.6%
*-commutative70.6%
associate-/l*90.2%
fma-define90.2%
Simplified90.2%
Taylor expanded in t around inf 50.4%
Taylor expanded in a around inf 37.7%
associate-/l*40.2%
Simplified40.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.5e+254)
(- t (* a (/ x z)))
(if (<= z -9.5e+74)
(- t (/ (* (- t x) (- y a)) z))
(if (<= z 2.6e+79)
(+ x (* y (/ (- t x) (- a z))))
(+ t (* a (/ (- t x) z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.5e+254) {
tmp = t - (a * (x / z));
} else if (z <= -9.5e+74) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (z <= 2.6e+79) {
tmp = x + (y * ((t - x) / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.5d+254)) then
tmp = t - (a * (x / z))
else if (z <= (-9.5d+74)) then
tmp = t - (((t - x) * (y - a)) / z)
else if (z <= 2.6d+79) then
tmp = x + (y * ((t - x) / (a - z)))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.5e+254) {
tmp = t - (a * (x / z));
} else if (z <= -9.5e+74) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (z <= 2.6e+79) {
tmp = x + (y * ((t - x) / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.5e+254: tmp = t - (a * (x / z)) elif z <= -9.5e+74: tmp = t - (((t - x) * (y - a)) / z) elif z <= 2.6e+79: tmp = x + (y * ((t - x) / (a - z))) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.5e+254) tmp = Float64(t - Float64(a * Float64(x / z))); elseif (z <= -9.5e+74) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); elseif (z <= 2.6e+79) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / Float64(a - z)))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.5e+254) tmp = t - (a * (x / z)); elseif (z <= -9.5e+74) tmp = t - (((t - x) * (y - a)) / z); elseif (z <= 2.6e+79) tmp = x + (y * ((t - x) / (a - z))); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.5e+254], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -9.5e+74], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+79], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+254}:\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{+74}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+79}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -1.50000000000000003e254Initial program 29.5%
+-commutative29.5%
*-commutative29.5%
associate-/l*77.8%
fma-define77.8%
Simplified77.8%
Taylor expanded in y around 0 29.5%
mul-1-neg29.5%
associate-/l*47.5%
distribute-lft-neg-out47.5%
+-commutative47.5%
*-commutative47.5%
fma-define47.4%
Simplified47.4%
Taylor expanded in z around inf 55.2%
associate-/l*95.7%
Simplified95.7%
Taylor expanded in t around 0 95.7%
neg-mul-195.7%
Simplified95.7%
if -1.50000000000000003e254 < z < -9.5000000000000006e74Initial program 50.7%
+-commutative50.7%
*-commutative50.7%
associate-/l*79.3%
fma-define79.3%
Simplified79.3%
Taylor expanded in z around inf 69.6%
associate--l+69.6%
associate-*r/69.6%
associate-*r/69.6%
mul-1-neg69.6%
div-sub69.6%
mul-1-neg69.6%
distribute-lft-out--69.6%
associate-*r/69.6%
mul-1-neg69.6%
unsub-neg69.6%
distribute-rgt-out--74.4%
Simplified74.4%
if -9.5000000000000006e74 < z < 2.60000000000000015e79Initial program 86.9%
associate-/l*94.6%
Simplified94.6%
Taylor expanded in y around inf 75.2%
associate-*r/82.8%
Simplified82.8%
if 2.60000000000000015e79 < z Initial program 29.6%
+-commutative29.6%
*-commutative29.6%
associate-/l*60.2%
fma-define60.2%
Simplified60.2%
Taylor expanded in y around 0 25.1%
mul-1-neg25.1%
associate-/l*44.2%
distribute-lft-neg-out44.2%
+-commutative44.2%
*-commutative44.2%
fma-define44.2%
Simplified44.2%
Taylor expanded in z around inf 71.4%
associate-/l*80.6%
Simplified80.6%
Final simplification81.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.5e+74)
(* t (- 1.0 (/ y z)))
(if (<= z 9.5e-115)
(+ x (/ (- t x) (/ a y)))
(if (<= z 1.15e+69)
(+ x (/ y (/ (- a z) t)))
(+ t (* a (/ (- t x) z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.5e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 9.5e-115) {
tmp = x + ((t - x) / (a / y));
} else if (z <= 1.15e+69) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.5d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 9.5d-115) then
tmp = x + ((t - x) / (a / y))
else if (z <= 1.15d+69) then
tmp = x + (y / ((a - z) / t))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.5e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 9.5e-115) {
tmp = x + ((t - x) / (a / y));
} else if (z <= 1.15e+69) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.5e+74: tmp = t * (1.0 - (y / z)) elif z <= 9.5e-115: tmp = x + ((t - x) / (a / y)) elif z <= 1.15e+69: tmp = x + (y / ((a - z) / t)) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.5e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 9.5e-115) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); elseif (z <= 1.15e+69) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / t))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.5e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 9.5e-115) tmp = x + ((t - x) / (a / y)); elseif (z <= 1.15e+69) tmp = x + (y / ((a - z) / t)); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.5e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e-115], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e+69], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-115}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+69}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -3.50000000000000014e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -3.50000000000000014e74 < z < 9.4999999999999996e-115Initial program 89.0%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in y around 0 93.2%
mul-1-neg93.2%
associate-/l*89.8%
distribute-lft-neg-out89.8%
+-commutative89.8%
div-sub89.8%
distribute-rgt-out94.9%
sub-neg94.9%
associate-/r/97.5%
Simplified97.5%
Taylor expanded in z around 0 76.8%
if 9.4999999999999996e-115 < z < 1.15000000000000008e69Initial program 81.6%
associate-/l*93.6%
Simplified93.6%
clear-num93.6%
un-div-inv93.8%
Applied egg-rr93.8%
Taylor expanded in t around inf 75.0%
Taylor expanded in y around inf 64.4%
if 1.15000000000000008e69 < z Initial program 32.2%
+-commutative32.2%
*-commutative32.2%
associate-/l*61.6%
fma-define61.6%
Simplified61.6%
Taylor expanded in y around 0 26.1%
mul-1-neg26.1%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 70.0%
associate-/l*78.8%
Simplified78.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8e+74)
(* t (- 1.0 (/ y z)))
(if (<= z 4.1e-132)
(+ x (/ y (/ a (- t x))))
(if (<= z 3.5e+67) (+ x (/ y (/ (- a z) t))) (+ t (* a (/ (- t x) z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 4.1e-132) {
tmp = x + (y / (a / (t - x)));
} else if (z <= 3.5e+67) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-8d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 4.1d-132) then
tmp = x + (y / (a / (t - x)))
else if (z <= 3.5d+67) then
tmp = x + (y / ((a - z) / t))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 4.1e-132) {
tmp = x + (y / (a / (t - x)));
} else if (z <= 3.5e+67) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8e+74: tmp = t * (1.0 - (y / z)) elif z <= 4.1e-132: tmp = x + (y / (a / (t - x))) elif z <= 3.5e+67: tmp = x + (y / ((a - z) / t)) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 4.1e-132) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (z <= 3.5e+67) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / t))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 4.1e-132) tmp = x + (y / (a / (t - x))); elseif (z <= 3.5e+67) tmp = x + (y / ((a - z) / t)); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.1e-132], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+67], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{-132}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+67}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -7.99999999999999961e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -7.99999999999999961e74 < z < 4.10000000000000007e-132Initial program 88.9%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in z around 0 69.5%
associate-/l*76.6%
Simplified76.6%
clear-num76.5%
un-div-inv76.6%
Applied egg-rr76.6%
if 4.10000000000000007e-132 < z < 3.5e67Initial program 82.0%
associate-/l*93.7%
Simplified93.7%
clear-num93.7%
un-div-inv93.9%
Applied egg-rr93.9%
Taylor expanded in t around inf 75.5%
Taylor expanded in y around inf 63.2%
if 3.5e67 < z Initial program 32.2%
+-commutative32.2%
*-commutative32.2%
associate-/l*61.6%
fma-define61.6%
Simplified61.6%
Taylor expanded in y around 0 26.1%
mul-1-neg26.1%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 70.0%
associate-/l*78.8%
Simplified78.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.12e+74)
(* t (- 1.0 (/ y z)))
(if (<= z 2.6e-132)
(+ x (/ y (/ a (- t x))))
(if (<= z 4.5e+68) (+ x (* y (/ t (- a z)))) (+ t (* a (/ (- t x) z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.12e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 2.6e-132) {
tmp = x + (y / (a / (t - x)));
} else if (z <= 4.5e+68) {
tmp = x + (y * (t / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.12d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 2.6d-132) then
tmp = x + (y / (a / (t - x)))
else if (z <= 4.5d+68) then
tmp = x + (y * (t / (a - z)))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.12e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 2.6e-132) {
tmp = x + (y / (a / (t - x)));
} else if (z <= 4.5e+68) {
tmp = x + (y * (t / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.12e+74: tmp = t * (1.0 - (y / z)) elif z <= 2.6e-132: tmp = x + (y / (a / (t - x))) elif z <= 4.5e+68: tmp = x + (y * (t / (a - z))) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.12e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 2.6e-132) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (z <= 4.5e+68) tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.12e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 2.6e-132) tmp = x + (y / (a / (t - x))); elseif (z <= 4.5e+68) tmp = x + (y * (t / (a - z))); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.12e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e-132], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+68], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.12 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-132}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+68}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -2.11999999999999998e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -2.11999999999999998e74 < z < 2.6000000000000001e-132Initial program 88.9%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in z around 0 69.5%
associate-/l*76.6%
Simplified76.6%
clear-num76.5%
un-div-inv76.6%
Applied egg-rr76.6%
if 2.6000000000000001e-132 < z < 4.5000000000000003e68Initial program 82.0%
associate-/l*93.7%
Simplified93.7%
Taylor expanded in y around inf 67.8%
associate-*r/77.7%
Simplified77.7%
Taylor expanded in t around inf 63.1%
if 4.5000000000000003e68 < z Initial program 32.2%
+-commutative32.2%
*-commutative32.2%
associate-/l*61.6%
fma-define61.6%
Simplified61.6%
Taylor expanded in y around 0 26.1%
mul-1-neg26.1%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 70.0%
associate-/l*78.8%
Simplified78.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.25e+74)
(* t (- 1.0 (/ y z)))
(if (<= z 4.2e-132)
(+ x (* y (/ (- t x) a)))
(if (<= z 1.28e+69)
(+ x (* y (/ t (- a z))))
(+ t (* a (/ (- t x) z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.25e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 4.2e-132) {
tmp = x + (y * ((t - x) / a));
} else if (z <= 1.28e+69) {
tmp = x + (y * (t / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.25d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 4.2d-132) then
tmp = x + (y * ((t - x) / a))
else if (z <= 1.28d+69) then
tmp = x + (y * (t / (a - z)))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.25e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 4.2e-132) {
tmp = x + (y * ((t - x) / a));
} else if (z <= 1.28e+69) {
tmp = x + (y * (t / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.25e+74: tmp = t * (1.0 - (y / z)) elif z <= 4.2e-132: tmp = x + (y * ((t - x) / a)) elif z <= 1.28e+69: tmp = x + (y * (t / (a - z))) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.25e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 4.2e-132) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); elseif (z <= 1.28e+69) tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.25e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 4.2e-132) tmp = x + (y * ((t - x) / a)); elseif (z <= 1.28e+69) tmp = x + (y * (t / (a - z))); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.25e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-132], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.28e+69], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.25 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-132}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 1.28 \cdot 10^{+69}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -2.25e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -2.25e74 < z < 4.2000000000000002e-132Initial program 88.9%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in z around 0 69.5%
associate-/l*76.6%
Simplified76.6%
if 4.2000000000000002e-132 < z < 1.27999999999999998e69Initial program 82.0%
associate-/l*93.7%
Simplified93.7%
Taylor expanded in y around inf 67.8%
associate-*r/77.7%
Simplified77.7%
Taylor expanded in t around inf 63.1%
if 1.27999999999999998e69 < z Initial program 32.2%
+-commutative32.2%
*-commutative32.2%
associate-/l*61.6%
fma-define61.6%
Simplified61.6%
Taylor expanded in y around 0 26.1%
mul-1-neg26.1%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 70.0%
associate-/l*78.8%
Simplified78.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.9e+74)
(* t (- 1.0 (/ y z)))
(if (<= z -2.45e-288)
(+ x (* y (/ t a)))
(if (<= z 8e+80) (* x (- 1.0 (/ y (- a z)))) (- t (* a (/ x z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= -2.45e-288) {
tmp = x + (y * (t / a));
} else if (z <= 8e+80) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.9d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= (-2.45d-288)) then
tmp = x + (y * (t / a))
else if (z <= 8d+80) then
tmp = x * (1.0d0 - (y / (a - z)))
else
tmp = t - (a * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= -2.45e-288) {
tmp = x + (y * (t / a));
} else if (z <= 8e+80) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.9e+74: tmp = t * (1.0 - (y / z)) elif z <= -2.45e-288: tmp = x + (y * (t / a)) elif z <= 8e+80: tmp = x * (1.0 - (y / (a - z))) else: tmp = t - (a * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= -2.45e-288) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (z <= 8e+80) tmp = Float64(x * Float64(1.0 - Float64(y / Float64(a - z)))); else tmp = Float64(t - Float64(a * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.9e+74) tmp = t * (1.0 - (y / z)); elseif (z <= -2.45e-288) tmp = x + (y * (t / a)); elseif (z <= 8e+80) tmp = x * (1.0 - (y / (a - z))); else tmp = t - (a * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.45e-288], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e+80], N[(x * N[(1.0 - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq -2.45 \cdot 10^{-288}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+80}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -1.8999999999999999e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -1.8999999999999999e74 < z < -2.45000000000000013e-288Initial program 88.4%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in z around 0 65.0%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in t around inf 60.2%
if -2.45000000000000013e-288 < z < 8e80Initial program 85.7%
associate-/l*94.1%
Simplified94.1%
Taylor expanded in y around inf 73.4%
associate-*r/82.2%
Simplified82.2%
Taylor expanded in x around inf 59.0%
mul-1-neg59.0%
unsub-neg59.0%
Simplified59.0%
if 8e80 < z Initial program 29.6%
+-commutative29.6%
*-commutative29.6%
associate-/l*60.2%
fma-define60.2%
Simplified60.2%
Taylor expanded in y around 0 25.1%
mul-1-neg25.1%
associate-/l*44.2%
distribute-lft-neg-out44.2%
+-commutative44.2%
*-commutative44.2%
fma-define44.2%
Simplified44.2%
Taylor expanded in z around inf 71.4%
associate-/l*80.6%
Simplified80.6%
Taylor expanded in t around 0 79.1%
neg-mul-179.1%
Simplified79.1%
Final simplification63.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7.6e+253) (not (<= z 8.2e+107))) (- t (* a (/ x z))) (+ x (* (- y z) (/ (- t x) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.6e+253) || !(z <= 8.2e+107)) {
tmp = t - (a * (x / z));
} else {
tmp = x + ((y - z) * ((t - x) / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-7.6d+253)) .or. (.not. (z <= 8.2d+107))) then
tmp = t - (a * (x / z))
else
tmp = x + ((y - z) * ((t - x) / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.6e+253) || !(z <= 8.2e+107)) {
tmp = t - (a * (x / z));
} else {
tmp = x + ((y - z) * ((t - x) / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7.6e+253) or not (z <= 8.2e+107): tmp = t - (a * (x / z)) else: tmp = x + ((y - z) * ((t - x) / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7.6e+253) || !(z <= 8.2e+107)) tmp = Float64(t - Float64(a * Float64(x / z))); else tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7.6e+253) || ~((z <= 8.2e+107))) tmp = t - (a * (x / z)); else tmp = x + ((y - z) * ((t - x) / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7.6e+253], N[Not[LessEqual[z, 8.2e+107]], $MachinePrecision]], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.6 \cdot 10^{+253} \lor \neg \left(z \leq 8.2 \cdot 10^{+107}\right):\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\end{array}
\end{array}
if z < -7.59999999999999978e253 or 8.1999999999999998e107 < z Initial program 26.5%
+-commutative26.5%
*-commutative26.5%
associate-/l*62.6%
fma-define62.6%
Simplified62.6%
Taylor expanded in y around 0 24.3%
mul-1-neg24.3%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.4%
Simplified44.4%
Taylor expanded in z around inf 69.4%
associate-/l*85.5%
Simplified85.5%
Taylor expanded in t around 0 85.8%
neg-mul-185.8%
Simplified85.8%
if -7.59999999999999978e253 < z < 8.1999999999999998e107Initial program 78.9%
associate-/l*90.5%
Simplified90.5%
Final simplification89.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -1e+155) x (if (<= a -4.35e-41) (+ x t) (if (<= a 1.15e+96) (* t (- 1.0 (/ y z))) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1e+155) {
tmp = x;
} else if (a <= -4.35e-41) {
tmp = x + t;
} else if (a <= 1.15e+96) {
tmp = t * (1.0 - (y / z));
} 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 <= (-1d+155)) then
tmp = x
else if (a <= (-4.35d-41)) then
tmp = x + t
else if (a <= 1.15d+96) then
tmp = t * (1.0d0 - (y / z))
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 <= -1e+155) {
tmp = x;
} else if (a <= -4.35e-41) {
tmp = x + t;
} else if (a <= 1.15e+96) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1e+155: tmp = x elif a <= -4.35e-41: tmp = x + t elif a <= 1.15e+96: tmp = t * (1.0 - (y / z)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1e+155) tmp = x; elseif (a <= -4.35e-41) tmp = Float64(x + t); elseif (a <= 1.15e+96) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1e+155) tmp = x; elseif (a <= -4.35e-41) tmp = x + t; elseif (a <= 1.15e+96) tmp = t * (1.0 - (y / z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1e+155], x, If[LessEqual[a, -4.35e-41], N[(x + t), $MachinePrecision], If[LessEqual[a, 1.15e+96], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{+155}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -4.35 \cdot 10^{-41}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+96}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.00000000000000001e155 or 1.15000000000000008e96 < a Initial program 71.7%
+-commutative71.7%
*-commutative71.7%
associate-/l*97.3%
fma-define97.3%
Simplified97.3%
Taylor expanded in a around inf 52.4%
if -1.00000000000000001e155 < a < -4.34999999999999992e-41Initial program 71.8%
associate-/l*81.5%
Simplified81.5%
clear-num81.1%
un-div-inv81.1%
Applied egg-rr81.1%
Taylor expanded in t around inf 61.6%
Taylor expanded in z around inf 37.8%
if -4.34999999999999992e-41 < a < 1.15000000000000008e96Initial program 62.2%
+-commutative62.2%
*-commutative62.2%
associate-/l*79.4%
fma-define79.3%
Simplified79.3%
Taylor expanded in t around inf 67.2%
Taylor expanded in a around 0 57.6%
mul-1-neg57.6%
unsub-neg57.6%
Simplified57.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -5e+95)
t
(if (<= z -1.25e-63)
(+ x t)
(if (<= z -5e-289) (/ t (/ a y)) (if (<= z 7e+65) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5e+95) {
tmp = t;
} else if (z <= -1.25e-63) {
tmp = x + t;
} else if (z <= -5e-289) {
tmp = t / (a / y);
} else if (z <= 7e+65) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-5d+95)) then
tmp = t
else if (z <= (-1.25d-63)) then
tmp = x + t
else if (z <= (-5d-289)) then
tmp = t / (a / y)
else if (z <= 7d+65) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5e+95) {
tmp = t;
} else if (z <= -1.25e-63) {
tmp = x + t;
} else if (z <= -5e-289) {
tmp = t / (a / y);
} else if (z <= 7e+65) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5e+95: tmp = t elif z <= -1.25e-63: tmp = x + t elif z <= -5e-289: tmp = t / (a / y) elif z <= 7e+65: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5e+95) tmp = t; elseif (z <= -1.25e-63) tmp = Float64(x + t); elseif (z <= -5e-289) tmp = Float64(t / Float64(a / y)); elseif (z <= 7e+65) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5e+95) tmp = t; elseif (z <= -1.25e-63) tmp = x + t; elseif (z <= -5e-289) tmp = t / (a / y); elseif (z <= 7e+65) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5e+95], t, If[LessEqual[z, -1.25e-63], N[(x + t), $MachinePrecision], If[LessEqual[z, -5e-289], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+65], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+95}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-63}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-289}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+65}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.00000000000000025e95 or 7.0000000000000002e65 < z Initial program 39.1%
+-commutative39.1%
*-commutative39.1%
associate-/l*69.4%
fma-define69.5%
Simplified69.5%
Taylor expanded in t around inf 66.1%
Taylor expanded in z around inf 55.0%
if -5.00000000000000025e95 < z < -1.25e-63Initial program 81.8%
associate-/l*99.9%
Simplified99.9%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around inf 81.1%
Taylor expanded in z around inf 56.5%
if -1.25e-63 < z < -5.00000000000000029e-289Initial program 88.4%
+-commutative88.4%
*-commutative88.4%
associate-/l*93.6%
fma-define93.6%
Simplified93.6%
Taylor expanded in t around inf 64.2%
Taylor expanded in z around 0 39.9%
associate-/l*45.7%
Simplified45.7%
clear-num45.7%
un-div-inv45.8%
Applied egg-rr45.8%
if -5.00000000000000029e-289 < z < 7.0000000000000002e65Initial program 85.2%
+-commutative85.2%
*-commutative85.2%
associate-/l*96.5%
fma-define96.5%
Simplified96.5%
Taylor expanded in a around inf 38.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.8e+95)
t
(if (<= z -1e-58)
(+ x t)
(if (<= z -5.3e-288) (* t (/ y a)) (if (<= z 9.5e+65) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.8e+95) {
tmp = t;
} else if (z <= -1e-58) {
tmp = x + t;
} else if (z <= -5.3e-288) {
tmp = t * (y / a);
} else if (z <= 9.5e+65) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.8d+95)) then
tmp = t
else if (z <= (-1d-58)) then
tmp = x + t
else if (z <= (-5.3d-288)) then
tmp = t * (y / a)
else if (z <= 9.5d+65) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.8e+95) {
tmp = t;
} else if (z <= -1e-58) {
tmp = x + t;
} else if (z <= -5.3e-288) {
tmp = t * (y / a);
} else if (z <= 9.5e+65) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.8e+95: tmp = t elif z <= -1e-58: tmp = x + t elif z <= -5.3e-288: tmp = t * (y / a) elif z <= 9.5e+65: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.8e+95) tmp = t; elseif (z <= -1e-58) tmp = Float64(x + t); elseif (z <= -5.3e-288) tmp = Float64(t * Float64(y / a)); elseif (z <= 9.5e+65) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.8e+95) tmp = t; elseif (z <= -1e-58) tmp = x + t; elseif (z <= -5.3e-288) tmp = t * (y / a); elseif (z <= 9.5e+65) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.8e+95], t, If[LessEqual[z, -1e-58], N[(x + t), $MachinePrecision], If[LessEqual[z, -5.3e-288], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+65], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{+95}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-58}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -5.3 \cdot 10^{-288}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+65}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.7999999999999999e95 or 9.5000000000000005e65 < z Initial program 39.1%
+-commutative39.1%
*-commutative39.1%
associate-/l*69.4%
fma-define69.5%
Simplified69.5%
Taylor expanded in t around inf 66.1%
Taylor expanded in z around inf 55.0%
if -3.7999999999999999e95 < z < -1e-58Initial program 81.8%
associate-/l*99.9%
Simplified99.9%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around inf 81.1%
Taylor expanded in z around inf 56.5%
if -1e-58 < z < -5.3000000000000004e-288Initial program 88.4%
+-commutative88.4%
*-commutative88.4%
associate-/l*93.6%
fma-define93.6%
Simplified93.6%
Taylor expanded in t around inf 64.2%
Taylor expanded in z around 0 39.9%
associate-/l*45.7%
Simplified45.7%
if -5.3000000000000004e-288 < z < 9.5000000000000005e65Initial program 85.2%
+-commutative85.2%
*-commutative85.2%
associate-/l*96.5%
fma-define96.5%
Simplified96.5%
Taylor expanded in a around inf 38.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.4e+183)
(* t (- 1.0 (/ y z)))
(if (<= z 1.2e+81)
(+ x (* y (/ (- t x) (- a z))))
(+ t (* a (/ (- t x) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.4e+183) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.2e+81) {
tmp = x + (y * ((t - x) / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.4d+183)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 1.2d+81) then
tmp = x + (y * ((t - x) / (a - z)))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.4e+183) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.2e+81) {
tmp = x + (y * ((t - x) / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.4e+183: tmp = t * (1.0 - (y / z)) elif z <= 1.2e+81: tmp = x + (y * ((t - x) / (a - z))) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.4e+183) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 1.2e+81) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / Float64(a - z)))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.4e+183) tmp = t * (1.0 - (y / z)); elseif (z <= 1.2e+81) tmp = x + (y * ((t - x) / (a - z))); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.4e+183], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e+81], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+183}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+81}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -2.4000000000000002e183Initial program 37.3%
+-commutative37.3%
*-commutative37.3%
associate-/l*82.6%
fma-define82.7%
Simplified82.7%
Taylor expanded in t around inf 81.3%
Taylor expanded in a around 0 81.6%
mul-1-neg81.6%
unsub-neg81.6%
Simplified81.6%
if -2.4000000000000002e183 < z < 1.19999999999999995e81Initial program 80.5%
associate-/l*91.4%
Simplified91.4%
Taylor expanded in y around inf 69.3%
associate-*r/77.1%
Simplified77.1%
if 1.19999999999999995e81 < z Initial program 29.6%
+-commutative29.6%
*-commutative29.6%
associate-/l*60.2%
fma-define60.2%
Simplified60.2%
Taylor expanded in y around 0 25.1%
mul-1-neg25.1%
associate-/l*44.2%
distribute-lft-neg-out44.2%
+-commutative44.2%
*-commutative44.2%
fma-define44.2%
Simplified44.2%
Taylor expanded in z around inf 71.4%
associate-/l*80.6%
Simplified80.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.45e+74) (* t (- 1.0 (/ y z))) (if (<= z 1.28e+69) (+ x (* y (/ t (- a z)))) (+ t (* a (/ (- t x) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.45e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.28e+69) {
tmp = x + (y * (t / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.45d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 1.28d+69) then
tmp = x + (y * (t / (a - z)))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.45e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.28e+69) {
tmp = x + (y * (t / (a - z)));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.45e+74: tmp = t * (1.0 - (y / z)) elif z <= 1.28e+69: tmp = x + (y * (t / (a - z))) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.45e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 1.28e+69) tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.45e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 1.28e+69) tmp = x + (y * (t / (a - z))); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.45e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.28e+69], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 1.28 \cdot 10^{+69}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -1.4500000000000001e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -1.4500000000000001e74 < z < 1.27999999999999998e69Initial program 86.7%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in y around inf 75.5%
associate-*r/83.2%
Simplified83.2%
Taylor expanded in t around inf 66.7%
if 1.27999999999999998e69 < z Initial program 32.2%
+-commutative32.2%
*-commutative32.2%
associate-/l*61.6%
fma-define61.6%
Simplified61.6%
Taylor expanded in y around 0 26.1%
mul-1-neg26.1%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 70.0%
associate-/l*78.8%
Simplified78.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.3e+74) (* t (- 1.0 (/ y z))) (if (<= z 1.4e+67) (+ x (* y (/ t a))) (+ t (* a (/ (- t x) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.3e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.4e+67) {
tmp = x + (y * (t / a));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.3d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 1.4d+67) then
tmp = x + (y * (t / a))
else
tmp = t + (a * ((t - x) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.3e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.4e+67) {
tmp = x + (y * (t / a));
} else {
tmp = t + (a * ((t - x) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.3e+74: tmp = t * (1.0 - (y / z)) elif z <= 1.4e+67: tmp = x + (y * (t / a)) else: tmp = t + (a * ((t - x) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.3e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 1.4e+67) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.3e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 1.4e+67) tmp = x + (y * (t / a)); else tmp = t + (a * ((t - x) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.3e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e+67], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+67}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\end{array}
\end{array}
if z < -1.3e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -1.3e74 < z < 1.3999999999999999e67Initial program 86.7%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in z around 0 62.0%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in t around inf 57.2%
if 1.3999999999999999e67 < z Initial program 32.2%
+-commutative32.2%
*-commutative32.2%
associate-/l*61.6%
fma-define61.6%
Simplified61.6%
Taylor expanded in y around 0 26.1%
mul-1-neg26.1%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 70.0%
associate-/l*78.8%
Simplified78.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.25e+74) (not (<= z 2.75e+54))) (* t (- 1.0 (/ y z))) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.25e+74) || !(z <= 2.75e+54)) {
tmp = t * (1.0 - (y / z));
} else {
tmp = 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 ((z <= (-2.25d+74)) .or. (.not. (z <= 2.75d+54))) then
tmp = t * (1.0d0 - (y / z))
else
tmp = 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 ((z <= -2.25e+74) || !(z <= 2.75e+54)) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.25e+74) or not (z <= 2.75e+54): tmp = t * (1.0 - (y / z)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.25e+74) || !(z <= 2.75e+54)) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.25e+74) || ~((z <= 2.75e+54))) tmp = t * (1.0 - (y / z)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.25e+74], N[Not[LessEqual[z, 2.75e+54]], $MachinePrecision]], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.25 \cdot 10^{+74} \lor \neg \left(z \leq 2.75 \cdot 10^{+54}\right):\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if z < -2.25e74 or 2.75000000000000013e54 < z Initial program 40.7%
+-commutative40.7%
*-commutative40.7%
associate-/l*71.1%
fma-define71.1%
Simplified71.1%
Taylor expanded in t around inf 66.3%
Taylor expanded in a around 0 61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
if -2.25e74 < z < 2.75000000000000013e54Initial program 86.4%
associate-/l*94.4%
Simplified94.4%
Taylor expanded in z around 0 61.9%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in t around inf 57.7%
Final simplification59.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.1e-32) (not (<= a 0.00026))) (* x (- 1.0 (/ y a))) (* t (- 1.0 (/ y z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.1e-32) || !(a <= 0.00026)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-3.1d-32)) .or. (.not. (a <= 0.00026d0))) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t * (1.0d0 - (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.1e-32) || !(a <= 0.00026)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.1e-32) or not (a <= 0.00026): tmp = x * (1.0 - (y / a)) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.1e-32) || !(a <= 0.00026)) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.1e-32) || ~((a <= 0.00026))) tmp = x * (1.0 - (y / a)); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.1e-32], N[Not[LessEqual[a, 0.00026]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{-32} \lor \neg \left(a \leq 0.00026\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if a < -3.10000000000000011e-32 or 2.59999999999999977e-4 < a Initial program 70.4%
associate-/l*87.6%
Simplified87.6%
Taylor expanded in z around 0 55.9%
associate-/l*64.7%
Simplified64.7%
Taylor expanded in x around inf 47.2%
mul-1-neg47.2%
unsub-neg47.2%
Simplified47.2%
if -3.10000000000000011e-32 < a < 2.59999999999999977e-4Initial program 62.4%
+-commutative62.4%
*-commutative62.4%
associate-/l*78.9%
fma-define78.9%
Simplified78.9%
Taylor expanded in t around inf 71.0%
Taylor expanded in a around 0 63.4%
mul-1-neg63.4%
unsub-neg63.4%
Simplified63.4%
Final simplification54.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.3e+74) (* t (- 1.0 (/ y z))) (if (<= z 3.8e+66) (+ x (* y (/ t a))) (- t (* a (/ x z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.3e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 3.8e+66) {
tmp = x + (y * (t / a));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.3d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 3.8d+66) then
tmp = x + (y * (t / a))
else
tmp = t - (a * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.3e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 3.8e+66) {
tmp = x + (y * (t / a));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.3e+74: tmp = t * (1.0 - (y / z)) elif z <= 3.8e+66: tmp = x + (y * (t / a)) else: tmp = t - (a * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.3e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 3.8e+66) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(t - Float64(a * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.3e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 3.8e+66) tmp = x + (y * (t / a)); else tmp = t - (a * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.3e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+66], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+66}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -1.3e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -1.3e74 < z < 3.8000000000000002e66Initial program 86.7%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in z around 0 62.0%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in t around inf 57.2%
if 3.8000000000000002e66 < z Initial program 32.2%
+-commutative32.2%
*-commutative32.2%
associate-/l*61.6%
fma-define61.6%
Simplified61.6%
Taylor expanded in y around 0 26.1%
mul-1-neg26.1%
associate-/l*44.4%
distribute-lft-neg-out44.4%
+-commutative44.4%
*-commutative44.4%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 70.0%
associate-/l*78.8%
Simplified78.8%
Taylor expanded in t around 0 76.9%
neg-mul-176.9%
Simplified76.9%
Final simplification61.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.3e+74) (* t (- 1.0 (/ y z))) (if (<= z 1.1e+66) (+ x (* y (/ t a))) (* t (/ z (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.3e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.1e+66) {
tmp = x + (y * (t / a));
} else {
tmp = t * (z / (z - a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.3d+74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 1.1d+66) then
tmp = x + (y * (t / a))
else
tmp = t * (z / (z - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.3e+74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 1.1e+66) {
tmp = x + (y * (t / a));
} else {
tmp = t * (z / (z - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.3e+74: tmp = t * (1.0 - (y / z)) elif z <= 1.1e+66: tmp = x + (y * (t / a)) else: tmp = t * (z / (z - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.3e+74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 1.1e+66) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(t * Float64(z / Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.3e+74) tmp = t * (1.0 - (y / z)); elseif (z <= 1.1e+66) tmp = x + (y * (t / a)); else tmp = t * (z / (z - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.3e+74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+66], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+66}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if z < -1.3e74Initial program 46.0%
+-commutative46.0%
*-commutative46.0%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
Taylor expanded in t around inf 63.6%
Taylor expanded in a around 0 60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if -1.3e74 < z < 1.0999999999999999e66Initial program 86.6%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in z around 0 61.7%
associate-/l*69.1%
Simplified69.1%
Taylor expanded in t around inf 57.6%
if 1.0999999999999999e66 < z Initial program 33.4%
+-commutative33.4%
*-commutative33.4%
associate-/l*62.3%
fma-define62.3%
Simplified62.3%
Taylor expanded in t around inf 69.5%
Taylor expanded in y around 0 65.9%
associate-*r/65.9%
mul-1-neg65.9%
Simplified65.9%
Final simplification59.9%
(FPCore (x y z t a) :precision binary64 (if (<= z 3.8e+107) (+ x (* t (/ (- y z) (- a z)))) (- t (* a (/ x z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= 3.8e+107) {
tmp = x + (t * ((y - z) / (a - z)));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= 3.8d+107) then
tmp = x + (t * ((y - z) / (a - z)))
else
tmp = t - (a * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= 3.8e+107) {
tmp = x + (t * ((y - z) / (a - z)));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= 3.8e+107: tmp = x + (t * ((y - z) / (a - z))) else: tmp = t - (a * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= 3.8e+107) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))); else tmp = Float64(t - Float64(a * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= 3.8e+107) tmp = x + (t * ((y - z) / (a - z))); else tmp = t - (a * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, 3.8e+107], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 3.8 \cdot 10^{+107}:\\
\;\;\;\;x + t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < 3.7999999999999998e107Initial program 76.0%
associate-/l*88.2%
Simplified88.2%
Taylor expanded in t around inf 63.6%
associate-/l*72.5%
Simplified72.5%
if 3.7999999999999998e107 < z Initial program 25.8%
+-commutative25.8%
*-commutative25.8%
associate-/l*58.9%
fma-define58.9%
Simplified58.9%
Taylor expanded in y around 0 23.0%
mul-1-neg23.0%
associate-/l*43.6%
distribute-lft-neg-out43.6%
+-commutative43.6%
*-commutative43.6%
fma-define43.7%
Simplified43.7%
Taylor expanded in z around inf 73.0%
associate-/l*82.9%
Simplified82.9%
Taylor expanded in t around 0 83.3%
neg-mul-183.3%
Simplified83.3%
Final simplification74.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.6e+74) t (if (<= z 6.2e+65) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.6e+74) {
tmp = t;
} else if (z <= 6.2e+65) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.6d+74)) then
tmp = t
else if (z <= 6.2d+65) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.6e+74) {
tmp = t;
} else if (z <= 6.2e+65) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.6e+74: tmp = t elif z <= 6.2e+65: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.6e+74) tmp = t; elseif (z <= 6.2e+65) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.6e+74) tmp = t; elseif (z <= 6.2e+65) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.6e+74], t, If[LessEqual[z, 6.2e+65], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+74}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+65}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.59999999999999997e74 or 6.19999999999999981e65 < z Initial program 39.7%
+-commutative39.7%
*-commutative39.7%
associate-/l*70.6%
fma-define70.6%
Simplified70.6%
Taylor expanded in t around inf 66.6%
Taylor expanded in z around inf 54.8%
if -1.59999999999999997e74 < z < 6.19999999999999981e65Initial program 86.6%
+-commutative86.6%
*-commutative86.6%
associate-/l*95.9%
fma-define95.9%
Simplified95.9%
Taylor expanded in a around inf 33.6%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 66.6%
+-commutative66.6%
*-commutative66.6%
associate-/l*85.1%
fma-define85.1%
Simplified85.1%
Taylor expanded in t around inf 56.3%
Taylor expanded in z around inf 27.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024121
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
(+ x (/ (* (- y z) (- t x)) (- a z))))