
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ x (/ y (exp (- (fma y (log z) (* (log a) (+ t -1.0))) b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y / exp((fma(y, log(z), (log(a) * (t + -1.0))) - b)));
}
function code(x, y, z, t, a, b) return Float64(x / Float64(y / exp(Float64(fma(y, log(z), Float64(log(a) * Float64(t + -1.0))) - b)))) end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y / N[Exp[N[(N[(y * N[Log[z], $MachinePrecision] + N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{y}{e^{\mathsf{fma}\left(y, \log z, \log a \cdot \left(t + -1\right)\right) - b}}}
\end{array}
Initial program 97.9%
associate-/l*98.3%
fma-def98.3%
sub-neg98.3%
metadata-eval98.3%
Simplified98.3%
Final simplification98.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -1e+94) (not (<= (+ t -1.0) 20000.0))) (/ x (/ y (exp (- (* (log a) (+ t -1.0)) b)))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+94) || !((t + -1.0) <= 20000.0)) {
tmp = x / (y / exp(((log(a) * (t + -1.0)) - b)));
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-1d+94)) .or. (.not. ((t + (-1.0d0)) <= 20000.0d0))) then
tmp = x / (y / exp(((log(a) * (t + (-1.0d0))) - b)))
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+94) || !((t + -1.0) <= 20000.0)) {
tmp = x / (y / Math.exp(((Math.log(a) * (t + -1.0)) - b)));
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -1e+94) or not ((t + -1.0) <= 20000.0): tmp = x / (y / math.exp(((math.log(a) * (t + -1.0)) - b))) else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -1e+94) || !(Float64(t + -1.0) <= 20000.0)) tmp = Float64(x / Float64(y / exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b)))); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -1e+94) || ~(((t + -1.0) <= 20000.0))) tmp = x / (y / exp(((log(a) * (t + -1.0)) - b))); else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -1e+94], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 20000.0]], $MachinePrecision]], N[(x / N[(y / N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -1 \cdot 10^{+94} \lor \neg \left(t + -1 \leq 20000\right):\\
\;\;\;\;\frac{x}{\frac{y}{e^{\log a \cdot \left(t + -1\right) - b}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t 1) < -1e94 or 2e4 < (-.f64 t 1) Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 93.1%
if -1e94 < (-.f64 t 1) < 2e4Initial program 96.2%
Taylor expanded in t around 0 95.5%
+-commutative95.5%
mul-1-neg95.5%
unsub-neg95.5%
Simplified95.5%
Final simplification94.4%
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = (x * exp((((y * log(z)) + (log(a) * (t + (-1.0d0)))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 97.9%
Final simplification97.9%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= y -3.6e+111)
(not (or (<= y 1.1e+69) (and (not (<= y 9e+224)) (<= y 1.25e+267)))))
(/ (* x (/ (pow z y) a)) y)
(/ x (/ y (exp (- (* (log a) (+ t -1.0)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.6e+111) || !((y <= 1.1e+69) || (!(y <= 9e+224) && (y <= 1.25e+267)))) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x / (y / exp(((log(a) * (t + -1.0)) - b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((y <= (-3.6d+111)) .or. (.not. (y <= 1.1d+69) .or. (.not. (y <= 9d+224)) .and. (y <= 1.25d+267))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x / (y / exp(((log(a) * (t + (-1.0d0))) - b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.6e+111) || !((y <= 1.1e+69) || (!(y <= 9e+224) && (y <= 1.25e+267)))) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x / (y / Math.exp(((Math.log(a) * (t + -1.0)) - b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.6e+111) or not ((y <= 1.1e+69) or (not (y <= 9e+224) and (y <= 1.25e+267))): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x / (y / math.exp(((math.log(a) * (t + -1.0)) - b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.6e+111) || !((y <= 1.1e+69) || (!(y <= 9e+224) && (y <= 1.25e+267)))) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x / Float64(y / exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.6e+111) || ~(((y <= 1.1e+69) || (~((y <= 9e+224)) && (y <= 1.25e+267))))) tmp = (x * ((z ^ y) / a)) / y; else tmp = x / (y / exp(((log(a) * (t + -1.0)) - b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.6e+111], N[Not[Or[LessEqual[y, 1.1e+69], And[N[Not[LessEqual[y, 9e+224]], $MachinePrecision], LessEqual[y, 1.25e+267]]]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y / N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{+111} \lor \neg \left(y \leq 1.1 \cdot 10^{+69} \lor \neg \left(y \leq 9 \cdot 10^{+224}\right) \land y \leq 1.25 \cdot 10^{+267}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{e^{\log a \cdot \left(t + -1\right) - b}}}\\
\end{array}
\end{array}
if y < -3.6000000000000002e111 or 1.1000000000000001e69 < y < 8.9999999999999995e224 or 1.25e267 < y Initial program 100.0%
Taylor expanded in t around 0 94.9%
+-commutative94.9%
mul-1-neg94.9%
unsub-neg94.9%
Simplified94.9%
Taylor expanded in b around 0 89.8%
div-exp89.8%
*-commutative89.8%
exp-to-pow89.8%
rem-exp-log89.8%
Simplified89.8%
if -3.6000000000000002e111 < y < 1.1000000000000001e69 or 8.9999999999999995e224 < y < 1.25e267Initial program 97.0%
associate-/l*97.5%
fma-def97.5%
sub-neg97.5%
metadata-eval97.5%
Simplified97.5%
Taylor expanded in y around 0 94.0%
Final simplification92.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (pow a t) a)) (t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -3.3e+111)
t_2
(if (<= y 5.4e+64)
(/ x (/ y (/ t_1 (exp b))))
(if (or (<= y 9e+224) (not (<= y 1.25e+267))) t_2 (/ x (/ y t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, t) / a;
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -3.3e+111) {
tmp = t_2;
} else if (y <= 5.4e+64) {
tmp = x / (y / (t_1 / exp(b)));
} else if ((y <= 9e+224) || !(y <= 1.25e+267)) {
tmp = t_2;
} else {
tmp = x / (y / t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a ** t) / a
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-3.3d+111)) then
tmp = t_2
else if (y <= 5.4d+64) then
tmp = x / (y / (t_1 / exp(b)))
else if ((y <= 9d+224) .or. (.not. (y <= 1.25d+267))) then
tmp = t_2
else
tmp = x / (y / t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, t) / a;
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -3.3e+111) {
tmp = t_2;
} else if (y <= 5.4e+64) {
tmp = x / (y / (t_1 / Math.exp(b)));
} else if ((y <= 9e+224) || !(y <= 1.25e+267)) {
tmp = t_2;
} else {
tmp = x / (y / t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, t) / a t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -3.3e+111: tmp = t_2 elif y <= 5.4e+64: tmp = x / (y / (t_1 / math.exp(b))) elif (y <= 9e+224) or not (y <= 1.25e+267): tmp = t_2 else: tmp = x / (y / t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64((a ^ t) / a) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -3.3e+111) tmp = t_2; elseif (y <= 5.4e+64) tmp = Float64(x / Float64(y / Float64(t_1 / exp(b)))); elseif ((y <= 9e+224) || !(y <= 1.25e+267)) tmp = t_2; else tmp = Float64(x / Float64(y / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a ^ t) / a; t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -3.3e+111) tmp = t_2; elseif (y <= 5.4e+64) tmp = x / (y / (t_1 / exp(b))); elseif ((y <= 9e+224) || ~((y <= 1.25e+267))) tmp = t_2; else tmp = x / (y / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.3e+111], t$95$2, If[LessEqual[y, 5.4e+64], N[(x / N[(y / N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 9e+224], N[Not[LessEqual[y, 1.25e+267]], $MachinePrecision]], t$95$2, N[(x / N[(y / t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{a}^{t}}{a}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.3 \cdot 10^{+111}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{+64}:\\
\;\;\;\;\frac{x}{\frac{y}{\frac{t_1}{e^{b}}}}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+224} \lor \neg \left(y \leq 1.25 \cdot 10^{+267}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{t_1}}\\
\end{array}
\end{array}
if y < -3.3000000000000001e111 or 5.3999999999999999e64 < y < 8.9999999999999995e224 or 1.25e267 < y Initial program 100.0%
Taylor expanded in t around 0 94.9%
+-commutative94.9%
mul-1-neg94.9%
unsub-neg94.9%
Simplified94.9%
Taylor expanded in b around 0 89.8%
div-exp89.8%
*-commutative89.8%
exp-to-pow89.8%
rem-exp-log89.8%
Simplified89.8%
if -3.3000000000000001e111 < y < 5.3999999999999999e64Initial program 96.8%
associate-/l*97.3%
fma-def97.3%
sub-neg97.3%
metadata-eval97.3%
Simplified97.3%
Taylor expanded in y around 0 93.5%
div-exp86.3%
exp-to-pow87.1%
sub-neg87.1%
metadata-eval87.1%
Simplified87.1%
unpow-prod-up87.1%
*-un-lft-identity87.1%
times-frac87.1%
unpow-187.1%
Applied egg-rr87.1%
/-rgt-identity87.1%
associate-*r/87.1%
associate-*r/87.1%
*-rgt-identity87.1%
Simplified87.1%
if 8.9999999999999995e224 < y < 1.25e267Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 100.0%
div-exp78.6%
exp-to-pow78.6%
sub-neg78.6%
metadata-eval78.6%
Simplified78.6%
unpow-prod-up78.6%
*-un-lft-identity78.6%
times-frac78.6%
unpow-178.6%
Applied egg-rr78.6%
/-rgt-identity78.6%
associate-*r/78.6%
associate-*r/78.6%
*-rgt-identity78.6%
Simplified78.6%
Taylor expanded in b around 0 79.3%
Final simplification87.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))))
(if (<= b -140000000.0)
(/ x t_1)
(if (<= b 9.8e-112)
(/ x (/ y (/ (pow a t) a)))
(if (<= b 3.7e+98) (/ (* x (/ (pow z y) a)) y) (/ x (* a t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double tmp;
if (b <= -140000000.0) {
tmp = x / t_1;
} else if (b <= 9.8e-112) {
tmp = x / (y / (pow(a, t) / a));
} else if (b <= 3.7e+98) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x / (a * t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * exp(b)
if (b <= (-140000000.0d0)) then
tmp = x / t_1
else if (b <= 9.8d-112) then
tmp = x / (y / ((a ** t) / a))
else if (b <= 3.7d+98) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x / (a * t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * Math.exp(b);
double tmp;
if (b <= -140000000.0) {
tmp = x / t_1;
} else if (b <= 9.8e-112) {
tmp = x / (y / (Math.pow(a, t) / a));
} else if (b <= 3.7e+98) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x / (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) tmp = 0 if b <= -140000000.0: tmp = x / t_1 elif b <= 9.8e-112: tmp = x / (y / (math.pow(a, t) / a)) elif b <= 3.7e+98: tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x / (a * t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) tmp = 0.0 if (b <= -140000000.0) tmp = Float64(x / t_1); elseif (b <= 9.8e-112) tmp = Float64(x / Float64(y / Float64((a ^ t) / a))); elseif (b <= 3.7e+98) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x / Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); tmp = 0.0; if (b <= -140000000.0) tmp = x / t_1; elseif (b <= 9.8e-112) tmp = x / (y / ((a ^ t) / a)); elseif (b <= 3.7e+98) tmp = (x * ((z ^ y) / a)) / y; else tmp = x / (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -140000000.0], N[(x / t$95$1), $MachinePrecision], If[LessEqual[b, 9.8e-112], N[(x / N[(y / N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e+98], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
\mathbf{if}\;b \leq -140000000:\\
\;\;\;\;\frac{x}{t_1}\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{-112}:\\
\;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+98}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot t_1}\\
\end{array}
\end{array}
if b < -1.4e8Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 86.8%
neg-mul-186.8%
Simplified86.8%
expm1-log1p-u86.8%
expm1-udef39.0%
div-inv39.0%
rec-exp39.0%
add-sqr-sqrt39.0%
sqrt-unprod39.0%
sqr-neg39.0%
sqrt-prod0.0%
add-sqr-sqrt3.6%
add-sqr-sqrt3.6%
sqrt-unprod3.6%
sqr-neg3.6%
sqrt-prod0.0%
add-sqr-sqrt39.0%
Applied egg-rr39.0%
expm1-def86.8%
expm1-log1p86.8%
Simplified86.8%
if -1.4e8 < b < 9.7999999999999996e-112Initial program 96.6%
associate-/l*96.6%
fma-def96.6%
sub-neg96.6%
metadata-eval96.6%
Simplified96.6%
Taylor expanded in y around 0 77.0%
div-exp76.2%
exp-to-pow77.1%
sub-neg77.1%
metadata-eval77.1%
Simplified77.1%
unpow-prod-up77.2%
*-un-lft-identity77.2%
times-frac77.2%
unpow-177.2%
Applied egg-rr77.2%
/-rgt-identity77.2%
associate-*r/77.2%
associate-*r/77.2%
*-rgt-identity77.2%
Simplified77.2%
Taylor expanded in b around 0 78.8%
if 9.7999999999999996e-112 < b < 3.6999999999999999e98Initial program 95.7%
Taylor expanded in t around 0 81.9%
+-commutative81.9%
mul-1-neg81.9%
unsub-neg81.9%
Simplified81.9%
Taylor expanded in b around 0 71.4%
div-exp71.4%
*-commutative71.4%
exp-to-pow71.4%
rem-exp-log72.1%
Simplified72.1%
if 3.6999999999999999e98 < b Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 92.4%
div-exp77.0%
exp-to-pow77.0%
sub-neg77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in t around 0 84.9%
Final simplification81.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))))
(if (<= b -190000000.0)
(/ x t_1)
(if (<= b 4.4e+80) (/ x (/ y (/ (pow a t) a))) (/ x (* a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double tmp;
if (b <= -190000000.0) {
tmp = x / t_1;
} else if (b <= 4.4e+80) {
tmp = x / (y / (pow(a, t) / a));
} else {
tmp = x / (a * t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * exp(b)
if (b <= (-190000000.0d0)) then
tmp = x / t_1
else if (b <= 4.4d+80) then
tmp = x / (y / ((a ** t) / a))
else
tmp = x / (a * t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * Math.exp(b);
double tmp;
if (b <= -190000000.0) {
tmp = x / t_1;
} else if (b <= 4.4e+80) {
tmp = x / (y / (Math.pow(a, t) / a));
} else {
tmp = x / (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) tmp = 0 if b <= -190000000.0: tmp = x / t_1 elif b <= 4.4e+80: tmp = x / (y / (math.pow(a, t) / a)) else: tmp = x / (a * t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) tmp = 0.0 if (b <= -190000000.0) tmp = Float64(x / t_1); elseif (b <= 4.4e+80) tmp = Float64(x / Float64(y / Float64((a ^ t) / a))); else tmp = Float64(x / Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); tmp = 0.0; if (b <= -190000000.0) tmp = x / t_1; elseif (b <= 4.4e+80) tmp = x / (y / ((a ^ t) / a)); else tmp = x / (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -190000000.0], N[(x / t$95$1), $MachinePrecision], If[LessEqual[b, 4.4e+80], N[(x / N[(y / N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
\mathbf{if}\;b \leq -190000000:\\
\;\;\;\;\frac{x}{t_1}\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+80}:\\
\;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot t_1}\\
\end{array}
\end{array}
if b < -1.9e8Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 86.8%
neg-mul-186.8%
Simplified86.8%
expm1-log1p-u86.8%
expm1-udef39.0%
div-inv39.0%
rec-exp39.0%
add-sqr-sqrt39.0%
sqrt-unprod39.0%
sqr-neg39.0%
sqrt-prod0.0%
add-sqr-sqrt3.6%
add-sqr-sqrt3.6%
sqrt-unprod3.6%
sqr-neg3.6%
sqrt-prod0.0%
add-sqr-sqrt39.0%
Applied egg-rr39.0%
expm1-def86.8%
expm1-log1p86.8%
Simplified86.8%
if -1.9e8 < b < 4.40000000000000005e80Initial program 96.3%
associate-/l*96.9%
fma-def96.9%
sub-neg96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in y around 0 73.2%
div-exp70.5%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
unpow-prod-up71.5%
*-un-lft-identity71.5%
times-frac71.5%
unpow-171.5%
Applied egg-rr71.5%
/-rgt-identity71.5%
associate-*r/71.5%
associate-*r/71.5%
*-rgt-identity71.5%
Simplified71.5%
Taylor expanded in b around 0 72.9%
if 4.40000000000000005e80 < b Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 90.8%
div-exp76.9%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in t around 0 84.0%
Final simplification78.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.1e+35) (not (<= t 0.0085))) (/ x (/ y (pow a t))) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.1e+35) || !(t <= 0.0085)) {
tmp = x / (y / pow(a, t));
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((t <= (-3.1d+35)) .or. (.not. (t <= 0.0085d0))) then
tmp = x / (y / (a ** t))
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.1e+35) || !(t <= 0.0085)) {
tmp = x / (y / Math.pow(a, t));
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.1e+35) or not (t <= 0.0085): tmp = x / (y / math.pow(a, t)) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.1e+35) || !(t <= 0.0085)) tmp = Float64(x / Float64(y / (a ^ t))); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.1e+35) || ~((t <= 0.0085))) tmp = x / (y / (a ^ t)); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.1e+35], N[Not[LessEqual[t, 0.0085]], $MachinePrecision]], N[(x / N[(y / N[Power[a, t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{+35} \lor \neg \left(t \leq 0.0085\right):\\
\;\;\;\;\frac{x}{\frac{y}{{a}^{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -3.09999999999999987e35 or 0.0085000000000000006 < t Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in t around inf 81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around 0 81.4%
if -3.09999999999999987e35 < t < 0.0085000000000000006Initial program 95.7%
associate-/l*96.4%
fma-def96.4%
sub-neg96.4%
metadata-eval96.4%
Simplified96.4%
Taylor expanded in y around 0 71.6%
div-exp70.9%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in t around 0 72.0%
Final simplification76.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -235000000.0) (not (<= b 1.3e+80))) (/ x (* y (exp b))) (/ x (/ y (pow a t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -235000000.0) || !(b <= 1.3e+80)) {
tmp = x / (y * exp(b));
} else {
tmp = x / (y / pow(a, t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((b <= (-235000000.0d0)) .or. (.not. (b <= 1.3d+80))) then
tmp = x / (y * exp(b))
else
tmp = x / (y / (a ** t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -235000000.0) || !(b <= 1.3e+80)) {
tmp = x / (y * Math.exp(b));
} else {
tmp = x / (y / Math.pow(a, t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -235000000.0) or not (b <= 1.3e+80): tmp = x / (y * math.exp(b)) else: tmp = x / (y / math.pow(a, t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -235000000.0) || !(b <= 1.3e+80)) tmp = Float64(x / Float64(y * exp(b))); else tmp = Float64(x / Float64(y / (a ^ t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -235000000.0) || ~((b <= 1.3e+80))) tmp = x / (y * exp(b)); else tmp = x / (y / (a ^ t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -235000000.0], N[Not[LessEqual[b, 1.3e+80]], $MachinePrecision]], N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y / N[Power[a, t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -235000000 \lor \neg \left(b \leq 1.3 \cdot 10^{+80}\right):\\
\;\;\;\;\frac{x}{y \cdot e^{b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{{a}^{t}}}\\
\end{array}
\end{array}
if b < -2.35e8 or 1.29999999999999991e80 < b Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 85.7%
neg-mul-185.7%
Simplified85.7%
expm1-log1p-u70.2%
expm1-udef41.1%
div-inv41.1%
rec-exp41.1%
add-sqr-sqrt23.8%
sqrt-unprod28.8%
sqr-neg28.8%
sqrt-prod5.1%
add-sqr-sqrt7.2%
add-sqr-sqrt2.2%
sqrt-unprod19.5%
sqr-neg19.5%
sqrt-prod17.3%
add-sqr-sqrt41.1%
Applied egg-rr41.1%
expm1-def70.2%
expm1-log1p85.7%
Simplified85.7%
if -2.35e8 < b < 1.29999999999999991e80Initial program 96.3%
associate-/l*96.9%
fma-def96.9%
sub-neg96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in t around inf 58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in y around 0 58.0%
Final simplification69.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -16500000000000.0) (not (<= b 3.1))) (/ x (* y (exp b))) (* x (/ 1.0 (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -16500000000000.0) || !(b <= 3.1)) {
tmp = x / (y * exp(b));
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((b <= (-16500000000000.0d0)) .or. (.not. (b <= 3.1d0))) then
tmp = x / (y * exp(b))
else
tmp = x * (1.0d0 / (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -16500000000000.0) || !(b <= 3.1)) {
tmp = x / (y * Math.exp(b));
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -16500000000000.0) or not (b <= 3.1): tmp = x / (y * math.exp(b)) else: tmp = x * (1.0 / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -16500000000000.0) || !(b <= 3.1)) tmp = Float64(x / Float64(y * exp(b))); else tmp = Float64(x * Float64(1.0 / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -16500000000000.0) || ~((b <= 3.1))) tmp = x / (y * exp(b)); else tmp = x * (1.0 / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -16500000000000.0], N[Not[LessEqual[b, 3.1]], $MachinePrecision]], N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -16500000000000 \lor \neg \left(b \leq 3.1\right):\\
\;\;\;\;\frac{x}{y \cdot e^{b}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\end{array}
\end{array}
if b < -1.65e13 or 3.10000000000000009 < b Initial program 99.2%
associate-/l*99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 80.8%
neg-mul-180.8%
Simplified80.8%
expm1-log1p-u66.3%
expm1-udef39.2%
div-inv39.2%
rec-exp39.2%
add-sqr-sqrt21.3%
sqrt-unprod28.6%
sqr-neg28.6%
sqrt-prod7.3%
add-sqr-sqrt8.5%
add-sqr-sqrt1.2%
sqrt-unprod19.1%
sqr-neg19.1%
sqrt-prod17.9%
add-sqr-sqrt39.2%
Applied egg-rr39.2%
expm1-def66.3%
expm1-log1p80.8%
Simplified80.8%
if -1.65e13 < b < 3.10000000000000009Initial program 96.8%
associate-/l*96.9%
fma-def96.9%
sub-neg96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in y around 0 74.6%
div-exp73.8%
exp-to-pow74.8%
sub-neg74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in t around 0 41.3%
Taylor expanded in b around 0 42.7%
*-commutative42.7%
Simplified42.7%
div-inv42.7%
Applied egg-rr42.7%
Final simplification60.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -4.8e+184)
(- (/ x y) (/ (* x b) y))
(if (<= b -1e+118)
(/ (- b) (* a (/ y x)))
(if (<= b -130000000.0)
(* (/ x y) (/ (- b) a))
(if (<= b -2.9e-128)
(/ (/ x a) y)
(if (<= b 4.2e+105) (* x (/ 1.0 (* y a))) (/ x (* y (+ b 1.0)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.8e+184) {
tmp = (x / y) - ((x * b) / y);
} else if (b <= -1e+118) {
tmp = -b / (a * (y / x));
} else if (b <= -130000000.0) {
tmp = (x / y) * (-b / a);
} else if (b <= -2.9e-128) {
tmp = (x / a) / y;
} else if (b <= 4.2e+105) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (b + 1.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (b <= (-4.8d+184)) then
tmp = (x / y) - ((x * b) / y)
else if (b <= (-1d+118)) then
tmp = -b / (a * (y / x))
else if (b <= (-130000000.0d0)) then
tmp = (x / y) * (-b / a)
else if (b <= (-2.9d-128)) then
tmp = (x / a) / y
else if (b <= 4.2d+105) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (y * (b + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.8e+184) {
tmp = (x / y) - ((x * b) / y);
} else if (b <= -1e+118) {
tmp = -b / (a * (y / x));
} else if (b <= -130000000.0) {
tmp = (x / y) * (-b / a);
} else if (b <= -2.9e-128) {
tmp = (x / a) / y;
} else if (b <= 4.2e+105) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (b + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.8e+184: tmp = (x / y) - ((x * b) / y) elif b <= -1e+118: tmp = -b / (a * (y / x)) elif b <= -130000000.0: tmp = (x / y) * (-b / a) elif b <= -2.9e-128: tmp = (x / a) / y elif b <= 4.2e+105: tmp = x * (1.0 / (y * a)) else: tmp = x / (y * (b + 1.0)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.8e+184) tmp = Float64(Float64(x / y) - Float64(Float64(x * b) / y)); elseif (b <= -1e+118) tmp = Float64(Float64(-b) / Float64(a * Float64(y / x))); elseif (b <= -130000000.0) tmp = Float64(Float64(x / y) * Float64(Float64(-b) / a)); elseif (b <= -2.9e-128) tmp = Float64(Float64(x / a) / y); elseif (b <= 4.2e+105) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(y * Float64(b + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.8e+184) tmp = (x / y) - ((x * b) / y); elseif (b <= -1e+118) tmp = -b / (a * (y / x)); elseif (b <= -130000000.0) tmp = (x / y) * (-b / a); elseif (b <= -2.9e-128) tmp = (x / a) / y; elseif (b <= 4.2e+105) tmp = x * (1.0 / (y * a)); else tmp = x / (y * (b + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.8e+184], N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e+118], N[((-b) / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -130000000.0], N[(N[(x / y), $MachinePrecision] * N[((-b) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.9e-128], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4.2e+105], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+184}:\\
\;\;\;\;\frac{x}{y} - \frac{x \cdot b}{y}\\
\mathbf{elif}\;b \leq -1 \cdot 10^{+118}:\\
\;\;\;\;\frac{-b}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -130000000:\\
\;\;\;\;\frac{x}{y} \cdot \frac{-b}{a}\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(b + 1\right)}\\
\end{array}
\end{array}
if b < -4.79999999999999993e184Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 96.1%
neg-mul-196.1%
Simplified96.1%
Taylor expanded in b around 0 0.8%
+-commutative0.8%
mul-1-neg0.8%
unsub-neg0.8%
*-commutative0.8%
distribute-rgt-out0.8%
metadata-eval0.8%
Simplified0.8%
Taylor expanded in b around 0 61.3%
+-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
if -4.79999999999999993e184 < b < -9.99999999999999967e117Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 86.6%
div-exp77.5%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
Simplified77.5%
Taylor expanded in t around 0 86.6%
Taylor expanded in b around 0 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
associate-/r*43.6%
associate-/r*43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in b around inf 43.6%
mul-1-neg43.6%
associate-/l*39.6%
*-commutative39.6%
associate-/l*35.4%
associate-/r/48.0%
Simplified48.0%
if -9.99999999999999967e117 < b < -1.3e8Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 85.2%
div-exp70.2%
exp-to-pow70.2%
sub-neg70.2%
metadata-eval70.2%
Simplified70.2%
Taylor expanded in t around 0 75.4%
Taylor expanded in b around 0 32.5%
+-commutative32.5%
mul-1-neg32.5%
unsub-neg32.5%
associate-/r*32.5%
associate-/r*37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in b around inf 32.5%
mul-1-neg32.5%
*-commutative32.5%
*-commutative32.5%
times-frac46.6%
distribute-rgt-neg-in46.6%
*-rgt-identity46.6%
associate-*r/46.6%
rem-exp-log46.6%
log-rec46.6%
distribute-lft-neg-in46.6%
log-rec46.6%
rem-exp-log46.6%
associate-*r/46.6%
*-rgt-identity46.6%
Simplified46.6%
if -1.3e8 < b < -2.9e-128Initial program 99.3%
associate-/l*93.4%
fma-def93.4%
sub-neg93.4%
metadata-eval93.4%
Simplified93.4%
Taylor expanded in y around 0 69.8%
div-exp66.4%
exp-to-pow66.5%
sub-neg66.5%
metadata-eval66.5%
Simplified66.5%
Taylor expanded in t around 0 36.7%
Taylor expanded in b around 0 43.5%
associate-/r*55.5%
Simplified55.5%
if -2.9e-128 < b < 4.2000000000000002e105Initial program 95.8%
associate-/l*97.9%
fma-def97.9%
sub-neg97.9%
metadata-eval97.9%
Simplified97.9%
Taylor expanded in y around 0 74.7%
div-exp72.4%
exp-to-pow73.4%
sub-neg73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in t around 0 43.2%
Taylor expanded in b around 0 38.5%
*-commutative38.5%
Simplified38.5%
div-inv38.5%
Applied egg-rr38.5%
if 4.2000000000000002e105 < b Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 83.6%
neg-mul-183.6%
Simplified83.6%
Taylor expanded in b around 0 39.7%
distribute-rgt1-in39.7%
Simplified39.7%
Final simplification44.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.7e+183)
(- (/ x y) (/ (* x b) y))
(if (<= b -1.95e+117)
(/ (- b) (* a (/ y x)))
(if (<= b -150000000.0)
(* (/ x y) (/ (- b) a))
(if (<= b -2.45e-129) (/ (/ x a) y) (/ x (* a (+ y (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.7e+183) {
tmp = (x / y) - ((x * b) / y);
} else if (b <= -1.95e+117) {
tmp = -b / (a * (y / x));
} else if (b <= -150000000.0) {
tmp = (x / y) * (-b / a);
} else if (b <= -2.45e-129) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (b <= (-2.7d+183)) then
tmp = (x / y) - ((x * b) / y)
else if (b <= (-1.95d+117)) then
tmp = -b / (a * (y / x))
else if (b <= (-150000000.0d0)) then
tmp = (x / y) * (-b / a)
else if (b <= (-2.45d-129)) then
tmp = (x / a) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.7e+183) {
tmp = (x / y) - ((x * b) / y);
} else if (b <= -1.95e+117) {
tmp = -b / (a * (y / x));
} else if (b <= -150000000.0) {
tmp = (x / y) * (-b / a);
} else if (b <= -2.45e-129) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.7e+183: tmp = (x / y) - ((x * b) / y) elif b <= -1.95e+117: tmp = -b / (a * (y / x)) elif b <= -150000000.0: tmp = (x / y) * (-b / a) elif b <= -2.45e-129: tmp = (x / a) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.7e+183) tmp = Float64(Float64(x / y) - Float64(Float64(x * b) / y)); elseif (b <= -1.95e+117) tmp = Float64(Float64(-b) / Float64(a * Float64(y / x))); elseif (b <= -150000000.0) tmp = Float64(Float64(x / y) * Float64(Float64(-b) / a)); elseif (b <= -2.45e-129) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.7e+183) tmp = (x / y) - ((x * b) / y); elseif (b <= -1.95e+117) tmp = -b / (a * (y / x)); elseif (b <= -150000000.0) tmp = (x / y) * (-b / a); elseif (b <= -2.45e-129) tmp = (x / a) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.7e+183], N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.95e+117], N[((-b) / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -150000000.0], N[(N[(x / y), $MachinePrecision] * N[((-b) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.45e-129], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.7 \cdot 10^{+183}:\\
\;\;\;\;\frac{x}{y} - \frac{x \cdot b}{y}\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{+117}:\\
\;\;\;\;\frac{-b}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -150000000:\\
\;\;\;\;\frac{x}{y} \cdot \frac{-b}{a}\\
\mathbf{elif}\;b \leq -2.45 \cdot 10^{-129}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.69999999999999982e183Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 96.1%
neg-mul-196.1%
Simplified96.1%
Taylor expanded in b around 0 0.8%
+-commutative0.8%
mul-1-neg0.8%
unsub-neg0.8%
*-commutative0.8%
distribute-rgt-out0.8%
metadata-eval0.8%
Simplified0.8%
Taylor expanded in b around 0 61.3%
+-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
if -2.69999999999999982e183 < b < -1.94999999999999995e117Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 86.6%
div-exp77.5%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
Simplified77.5%
Taylor expanded in t around 0 86.6%
Taylor expanded in b around 0 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
associate-/r*43.6%
associate-/r*43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in b around inf 43.6%
mul-1-neg43.6%
associate-/l*39.6%
*-commutative39.6%
associate-/l*35.4%
associate-/r/48.0%
Simplified48.0%
if -1.94999999999999995e117 < b < -1.5e8Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 85.2%
div-exp70.2%
exp-to-pow70.2%
sub-neg70.2%
metadata-eval70.2%
Simplified70.2%
Taylor expanded in t around 0 75.4%
Taylor expanded in b around 0 32.5%
+-commutative32.5%
mul-1-neg32.5%
unsub-neg32.5%
associate-/r*32.5%
associate-/r*37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in b around inf 32.5%
mul-1-neg32.5%
*-commutative32.5%
*-commutative32.5%
times-frac46.6%
distribute-rgt-neg-in46.6%
*-rgt-identity46.6%
associate-*r/46.6%
rem-exp-log46.6%
log-rec46.6%
distribute-lft-neg-in46.6%
log-rec46.6%
rem-exp-log46.6%
associate-*r/46.6%
*-rgt-identity46.6%
Simplified46.6%
if -1.5e8 < b < -2.45000000000000001e-129Initial program 99.3%
associate-/l*93.4%
fma-def93.4%
sub-neg93.4%
metadata-eval93.4%
Simplified93.4%
Taylor expanded in y around 0 69.8%
div-exp66.4%
exp-to-pow66.5%
sub-neg66.5%
metadata-eval66.5%
Simplified66.5%
Taylor expanded in t around 0 36.7%
Taylor expanded in b around 0 43.5%
associate-/r*55.5%
Simplified55.5%
if -2.45000000000000001e-129 < b Initial program 96.8%
associate-/l*98.4%
fma-def98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around 0 78.5%
div-exp73.0%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in t around 0 52.3%
Taylor expanded in b around 0 39.7%
Final simplification44.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ x y) (/ (- b) a))))
(if (<= b -190000000.0)
t_1
(if (<= b -2.6e-87)
(/ (/ x a) y)
(if (<= b -9e-128)
t_1
(if (<= b 7.2e+104) (* x (/ 1.0 (* y a))) (/ x (* y (+ b 1.0)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) * (-b / a);
double tmp;
if (b <= -190000000.0) {
tmp = t_1;
} else if (b <= -2.6e-87) {
tmp = (x / a) / y;
} else if (b <= -9e-128) {
tmp = t_1;
} else if (b <= 7.2e+104) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (b + 1.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / y) * (-b / a)
if (b <= (-190000000.0d0)) then
tmp = t_1
else if (b <= (-2.6d-87)) then
tmp = (x / a) / y
else if (b <= (-9d-128)) then
tmp = t_1
else if (b <= 7.2d+104) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (y * (b + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) * (-b / a);
double tmp;
if (b <= -190000000.0) {
tmp = t_1;
} else if (b <= -2.6e-87) {
tmp = (x / a) / y;
} else if (b <= -9e-128) {
tmp = t_1;
} else if (b <= 7.2e+104) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (b + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / y) * (-b / a) tmp = 0 if b <= -190000000.0: tmp = t_1 elif b <= -2.6e-87: tmp = (x / a) / y elif b <= -9e-128: tmp = t_1 elif b <= 7.2e+104: tmp = x * (1.0 / (y * a)) else: tmp = x / (y * (b + 1.0)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / y) * Float64(Float64(-b) / a)) tmp = 0.0 if (b <= -190000000.0) tmp = t_1; elseif (b <= -2.6e-87) tmp = Float64(Float64(x / a) / y); elseif (b <= -9e-128) tmp = t_1; elseif (b <= 7.2e+104) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(y * Float64(b + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / y) * (-b / a); tmp = 0.0; if (b <= -190000000.0) tmp = t_1; elseif (b <= -2.6e-87) tmp = (x / a) / y; elseif (b <= -9e-128) tmp = t_1; elseif (b <= 7.2e+104) tmp = x * (1.0 / (y * a)); else tmp = x / (y * (b + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] * N[((-b) / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -190000000.0], t$95$1, If[LessEqual[b, -2.6e-87], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -9e-128], t$95$1, If[LessEqual[b, 7.2e+104], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} \cdot \frac{-b}{a}\\
\mathbf{if}\;b \leq -190000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-87}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq -9 \cdot 10^{-128}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(b + 1\right)}\\
\end{array}
\end{array}
if b < -1.9e8 or -2.60000000000000002e-87 < b < -8.9999999999999998e-128Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 85.4%
div-exp70.6%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in t around 0 80.2%
Taylor expanded in b around 0 39.0%
+-commutative39.0%
mul-1-neg39.0%
unsub-neg39.0%
associate-/r*39.0%
associate-/r*48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in b around inf 40.3%
mul-1-neg40.3%
*-commutative40.3%
*-commutative40.3%
times-frac45.1%
distribute-rgt-neg-in45.1%
*-rgt-identity45.1%
associate-*r/45.1%
rem-exp-log45.1%
log-rec45.1%
distribute-lft-neg-in45.1%
log-rec45.1%
rem-exp-log45.1%
associate-*r/45.1%
*-rgt-identity45.1%
Simplified45.1%
if -1.9e8 < b < -2.60000000000000002e-87Initial program 99.5%
associate-/l*95.5%
fma-def95.5%
sub-neg95.5%
metadata-eval95.5%
Simplified95.5%
Taylor expanded in y around 0 86.1%
div-exp81.3%
exp-to-pow81.5%
sub-neg81.5%
metadata-eval81.5%
Simplified81.5%
Taylor expanded in t around 0 44.6%
Taylor expanded in b around 0 54.0%
associate-/r*66.1%
Simplified66.1%
if -8.9999999999999998e-128 < b < 7.20000000000000001e104Initial program 95.8%
associate-/l*97.2%
fma-def97.2%
sub-neg97.2%
metadata-eval97.2%
Simplified97.2%
Taylor expanded in y around 0 74.1%
div-exp71.8%
exp-to-pow72.8%
sub-neg72.8%
metadata-eval72.8%
Simplified72.8%
Taylor expanded in t around 0 42.8%
Taylor expanded in b around 0 38.2%
*-commutative38.2%
Simplified38.2%
div-inv38.3%
Applied egg-rr38.3%
if 7.20000000000000001e104 < b Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 83.6%
neg-mul-183.6%
Simplified83.6%
Taylor expanded in b around 0 39.7%
distribute-rgt1-in39.7%
Simplified39.7%
Final simplification42.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.5e-129) (- (/ (/ x a) y) (/ (/ (* x b) a) y)) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.5e-129) {
tmp = ((x / a) / y) - (((x * b) / a) / y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (b <= (-3.5d-129)) then
tmp = ((x / a) / y) - (((x * b) / a) / y)
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.5e-129) {
tmp = ((x / a) / y) - (((x * b) / a) / y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.5e-129: tmp = ((x / a) / y) - (((x * b) / a) / y) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.5e-129) tmp = Float64(Float64(Float64(x / a) / y) - Float64(Float64(Float64(x * b) / a) / y)); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.5e-129) tmp = ((x / a) / y) - (((x * b) / a) / y); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.5e-129], N[(N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision] - N[(N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{-129}:\\
\;\;\;\;\frac{\frac{x}{a}}{y} - \frac{\frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.4999999999999997e-129Initial program 99.8%
associate-/l*98.0%
fma-def98.0%
sub-neg98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 84.7%
div-exp72.2%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in t around 0 71.6%
Taylor expanded in b around 0 41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
associate-/r*42.6%
associate-/r*52.1%
*-commutative52.1%
Simplified52.1%
if -3.4999999999999997e-129 < b Initial program 96.8%
associate-/l*98.4%
fma-def98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around 0 78.5%
div-exp73.0%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in t around 0 52.3%
Taylor expanded in b around 0 39.7%
Final simplification44.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.9e-128) (/ (- b) (* a (/ y x))) (if (<= b 8e+104) (* x (/ 1.0 (* y a))) (/ x (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.9e-128) {
tmp = -b / (a * (y / x));
} else if (b <= 8e+104) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (b + 1.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (b <= (-2.9d-128)) then
tmp = -b / (a * (y / x))
else if (b <= 8d+104) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (y * (b + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.9e-128) {
tmp = -b / (a * (y / x));
} else if (b <= 8e+104) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (b + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.9e-128: tmp = -b / (a * (y / x)) elif b <= 8e+104: tmp = x * (1.0 / (y * a)) else: tmp = x / (y * (b + 1.0)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.9e-128) tmp = Float64(Float64(-b) / Float64(a * Float64(y / x))); elseif (b <= 8e+104) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(y * Float64(b + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.9e-128) tmp = -b / (a * (y / x)); elseif (b <= 8e+104) tmp = x * (1.0 / (y * a)); else tmp = x / (y * (b + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.9e-128], N[((-b) / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e+104], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{-128}:\\
\;\;\;\;\frac{-b}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq 8 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(b + 1\right)}\\
\end{array}
\end{array}
if b < -2.9e-128Initial program 99.8%
associate-/l*98.0%
fma-def98.0%
sub-neg98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 84.7%
div-exp72.2%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in t around 0 71.6%
Taylor expanded in b around 0 41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
associate-/r*42.6%
associate-/r*52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in b around inf 41.9%
mul-1-neg41.9%
associate-/l*41.0%
*-commutative41.0%
associate-/l*42.1%
associate-/r/44.0%
Simplified44.0%
if -2.9e-128 < b < 8e104Initial program 95.8%
associate-/l*97.9%
fma-def97.9%
sub-neg97.9%
metadata-eval97.9%
Simplified97.9%
Taylor expanded in y around 0 74.7%
div-exp72.4%
exp-to-pow73.4%
sub-neg73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in t around 0 43.2%
Taylor expanded in b around 0 38.5%
*-commutative38.5%
Simplified38.5%
div-inv38.5%
Applied egg-rr38.5%
if 8e104 < b Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 83.6%
neg-mul-183.6%
Simplified83.6%
Taylor expanded in b around 0 39.7%
distribute-rgt1-in39.7%
Simplified39.7%
Final simplification40.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.0024) (/ x (/ y (- (/ 1.0 a) (/ b a)))) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.0024) {
tmp = x / (y / ((1.0 / a) - (b / a)));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (b <= (-0.0024d0)) then
tmp = x / (y / ((1.0d0 / a) - (b / a)))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.0024) {
tmp = x / (y / ((1.0 / a) - (b / a)));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.0024: tmp = x / (y / ((1.0 / a) - (b / a))) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.0024) tmp = Float64(x / Float64(y / Float64(Float64(1.0 / a) - Float64(b / a)))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.0024) tmp = x / (y / ((1.0 / a) - (b / a))); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.0024], N[(x / N[(y / N[(N[(1.0 / a), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.0024:\\
\;\;\;\;\frac{x}{\frac{y}{\frac{1}{a} - \frac{b}{a}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -0.00239999999999999979Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 90.2%
Taylor expanded in t around 0 84.5%
associate-/l*84.5%
mul-1-neg84.5%
Simplified84.5%
Taylor expanded in b around 0 53.3%
mul-1-neg53.3%
unsub-neg53.3%
log-rec53.3%
rem-exp-log53.3%
log-rec53.3%
rem-exp-log53.3%
associate-*r/53.3%
*-rgt-identity53.3%
Simplified53.3%
if -0.00239999999999999979 < b Initial program 97.1%
associate-/l*97.6%
fma-def97.6%
sub-neg97.6%
metadata-eval97.6%
Simplified97.6%
Taylor expanded in y around 0 77.4%
div-exp72.6%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in t around 0 50.1%
Taylor expanded in b around 0 39.3%
Final simplification43.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.65e-128) (/ (- (/ x a) (/ x (/ a b))) y) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e-128) {
tmp = ((x / a) - (x / (a / b))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (b <= (-1.65d-128)) then
tmp = ((x / a) - (x / (a / b))) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e-128) {
tmp = ((x / a) - (x / (a / b))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.65e-128: tmp = ((x / a) - (x / (a / b))) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.65e-128) tmp = Float64(Float64(Float64(x / a) - Float64(x / Float64(a / b))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.65e-128) tmp = ((x / a) - (x / (a / b))) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e-128], N[(N[(N[(x / a), $MachinePrecision] - N[(x / N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x}{\frac{a}{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.65e-128Initial program 99.8%
associate-/l*98.0%
fma-def98.0%
sub-neg98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 84.7%
div-exp72.2%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in t around 0 71.6%
Taylor expanded in b around 0 41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
associate-/r*42.6%
associate-/r*52.1%
*-commutative52.1%
Simplified52.1%
sub-div52.1%
associate-/l*49.2%
Applied egg-rr49.2%
if -1.65e-128 < b Initial program 96.8%
associate-/l*98.4%
fma-def98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around 0 78.5%
div-exp73.0%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in t around 0 52.3%
Taylor expanded in b around 0 39.7%
Final simplification43.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.4e-130) (/ (- (/ x y) (/ (* x b) y)) a) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.4e-130) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (b <= (-6.4d-130)) then
tmp = ((x / y) - ((x * b) / y)) / a
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.4e-130) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.4e-130: tmp = ((x / y) - ((x * b) / y)) / a else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.4e-130) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.4e-130) tmp = ((x / y) - ((x * b) / y)) / a; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.4e-130], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.4 \cdot 10^{-130}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.3999999999999999e-130Initial program 99.8%
associate-/l*98.0%
fma-def98.0%
sub-neg98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 84.7%
div-exp72.2%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in t around 0 71.6%
Taylor expanded in b around 0 41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
associate-/r*42.6%
associate-/r*52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in a around 0 51.3%
if -6.3999999999999999e-130 < b Initial program 96.8%
associate-/l*98.4%
fma-def98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around 0 78.5%
div-exp73.0%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in t around 0 52.3%
Taylor expanded in b around 0 39.7%
Final simplification44.0%
(FPCore (x y z t a b) :precision binary64 (if (<= z 1.3e-82) (* x (/ 1.0 (* y a))) (/ (/ x y) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1.3e-82) {
tmp = x * (1.0 / (y * a));
} else {
tmp = (x / y) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (z <= 1.3d-82) then
tmp = x * (1.0d0 / (y * a))
else
tmp = (x / y) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1.3e-82) {
tmp = x * (1.0 / (y * a));
} else {
tmp = (x / y) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= 1.3e-82: tmp = x * (1.0 / (y * a)) else: tmp = (x / y) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 1.3e-82) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(Float64(x / y) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= 1.3e-82) tmp = x * (1.0 / (y * a)); else tmp = (x / y) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 1.3e-82], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.3 \cdot 10^{-82}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\end{array}
\end{array}
if z < 1.3e-82Initial program 98.3%
associate-/l*99.2%
fma-def99.2%
sub-neg99.2%
metadata-eval99.2%
Simplified99.2%
Taylor expanded in y around 0 87.2%
div-exp71.7%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 66.1%
Taylor expanded in b around 0 35.8%
*-commutative35.8%
Simplified35.8%
div-inv35.8%
Applied egg-rr35.8%
if 1.3e-82 < z Initial program 97.7%
associate-/l*97.7%
fma-def97.7%
sub-neg97.7%
metadata-eval97.7%
Simplified97.7%
Taylor expanded in y around 0 77.4%
div-exp73.3%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in t around 0 56.0%
Taylor expanded in b around 0 31.9%
*-commutative31.9%
Simplified31.9%
Taylor expanded in x around 0 31.9%
*-commutative31.9%
associate-/r*37.8%
Simplified37.8%
Final simplification37.1%
(FPCore (x y z t a b) :precision binary64 (if (<= z 1.3e-82) (* x (/ 1.0 (* y a))) (/ 1.0 (* a (/ y x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1.3e-82) {
tmp = x * (1.0 / (y * a));
} else {
tmp = 1.0 / (a * (y / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (z <= 1.3d-82) then
tmp = x * (1.0d0 / (y * a))
else
tmp = 1.0d0 / (a * (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1.3e-82) {
tmp = x * (1.0 / (y * a));
} else {
tmp = 1.0 / (a * (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= 1.3e-82: tmp = x * (1.0 / (y * a)) else: tmp = 1.0 / (a * (y / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 1.3e-82) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(1.0 / Float64(a * Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= 1.3e-82) tmp = x * (1.0 / (y * a)); else tmp = 1.0 / (a * (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 1.3e-82], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.3 \cdot 10^{-82}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\end{array}
\end{array}
if z < 1.3e-82Initial program 98.3%
associate-/l*99.2%
fma-def99.2%
sub-neg99.2%
metadata-eval99.2%
Simplified99.2%
Taylor expanded in y around 0 87.2%
div-exp71.7%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 66.1%
Taylor expanded in b around 0 35.8%
*-commutative35.8%
Simplified35.8%
div-inv35.8%
Applied egg-rr35.8%
if 1.3e-82 < z Initial program 97.7%
associate-/l*97.7%
fma-def97.7%
sub-neg97.7%
metadata-eval97.7%
Simplified97.7%
Taylor expanded in y around 0 77.4%
div-exp73.3%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in t around 0 56.0%
Taylor expanded in b around 0 31.9%
*-commutative31.9%
Simplified31.9%
clear-num31.8%
inv-pow31.8%
Applied egg-rr31.8%
unpow-131.8%
associate-/l*33.4%
associate-/r/37.9%
Simplified37.9%
Final simplification37.2%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.35e+139) (/ x y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.35e+139) {
tmp = x / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (y <= (-1.35d+139)) then
tmp = x / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.35e+139) {
tmp = x / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.35e+139: tmp = x / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.35e+139) tmp = Float64(x / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.35e+139) tmp = x / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.35e+139], N[(x / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+139}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if y < -1.3499999999999999e139Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 49.4%
neg-mul-149.4%
Simplified49.4%
Taylor expanded in b around 0 41.4%
if -1.3499999999999999e139 < y Initial program 97.6%
associate-/l*98.0%
fma-def98.0%
sub-neg98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 84.2%
div-exp76.6%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around 0 61.8%
Taylor expanded in b around 0 34.1%
*-commutative34.1%
Simplified34.1%
Final simplification35.0%
(FPCore (x y z t a b) :precision binary64 (if (<= z 1.4e-82) (/ x (* y a)) (/ (/ x y) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1.4e-82) {
tmp = x / (y * a);
} else {
tmp = (x / y) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (z <= 1.4d-82) then
tmp = x / (y * a)
else
tmp = (x / y) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1.4e-82) {
tmp = x / (y * a);
} else {
tmp = (x / y) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= 1.4e-82: tmp = x / (y * a) else: tmp = (x / y) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 1.4e-82) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / y) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= 1.4e-82) tmp = x / (y * a); else tmp = (x / y) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 1.4e-82], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.4 \cdot 10^{-82}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\end{array}
\end{array}
if z < 1.40000000000000012e-82Initial program 98.3%
associate-/l*99.2%
fma-def99.2%
sub-neg99.2%
metadata-eval99.2%
Simplified99.2%
Taylor expanded in y around 0 87.2%
div-exp71.7%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 66.1%
Taylor expanded in b around 0 35.8%
*-commutative35.8%
Simplified35.8%
if 1.40000000000000012e-82 < z Initial program 97.7%
associate-/l*97.7%
fma-def97.7%
sub-neg97.7%
metadata-eval97.7%
Simplified97.7%
Taylor expanded in y around 0 77.4%
div-exp73.3%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in t around 0 56.0%
Taylor expanded in b around 0 31.9%
*-commutative31.9%
Simplified31.9%
Taylor expanded in x around 0 31.9%
*-commutative31.9%
associate-/r*37.8%
Simplified37.8%
Final simplification37.1%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 97.9%
associate-/l*98.3%
fma-def98.3%
sub-neg98.3%
metadata-eval98.3%
Simplified98.3%
Taylor expanded in b around inf 48.3%
neg-mul-148.3%
Simplified48.3%
Taylor expanded in b around 0 18.8%
Final simplification18.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2024019
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))