
(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 20 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 (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}
Initial program 98.7%
Final simplification98.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))))
(if (<= b -1.5e+37)
(/ x t_1)
(if (<= b 6.8e+16)
(* x (/ (* (pow z y) (/ (pow a t) 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 <= -1.5e+37) {
tmp = x / t_1;
} else if (b <= 6.8e+16) {
tmp = x * ((pow(z, y) * (pow(a, t) / 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 <= (-1.5d+37)) then
tmp = x / t_1
else if (b <= 6.8d+16) then
tmp = x * (((z ** y) * ((a ** t) / 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 <= -1.5e+37) {
tmp = x / t_1;
} else if (b <= 6.8e+16) {
tmp = x * ((Math.pow(z, y) * (Math.pow(a, t) / 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 <= -1.5e+37: tmp = x / t_1 elif b <= 6.8e+16: tmp = x * ((math.pow(z, y) * (math.pow(a, t) / 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 <= -1.5e+37) tmp = Float64(x / t_1); elseif (b <= 6.8e+16) tmp = Float64(x * Float64(Float64((z ^ y) * Float64((a ^ t) / 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 <= -1.5e+37) tmp = x / t_1; elseif (b <= 6.8e+16) tmp = x * (((z ^ y) * ((a ^ t) / 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, -1.5e+37], N[(x / t$95$1), $MachinePrecision], If[LessEqual[b, 6.8e+16], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $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 -1.5 \cdot 10^{+37}:\\
\;\;\;\;\frac{x}{t\_1}\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \frac{{z}^{y} \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot t\_1}\\
\end{array}
\end{array}
if b < -1.50000000000000011e37Initial program 100.0%
*-commutative100.0%
associate-/l*88.1%
associate--l+88.1%
fma-define88.1%
sub-neg88.1%
metadata-eval88.1%
Simplified88.1%
Taylor expanded in b around inf 69.8%
neg-mul-169.8%
Simplified69.8%
exp-neg69.8%
frac-times78.3%
*-un-lft-identity78.3%
*-commutative78.3%
Applied egg-rr78.3%
if -1.50000000000000011e37 < b < 6.8e16Initial program 97.6%
associate-/l*98.3%
associate--l+98.3%
exp-sum85.6%
associate-/l*84.8%
*-commutative84.8%
exp-to-pow84.8%
exp-diff82.0%
*-commutative82.0%
exp-to-pow82.9%
sub-neg82.9%
metadata-eval82.9%
Simplified82.9%
Taylor expanded in b around 0 86.2%
associate-/l*87.0%
*-commutative87.0%
exp-to-pow87.8%
sub-neg87.8%
metadata-eval87.8%
Simplified87.8%
unpow-prod-up87.9%
unpow-187.9%
Applied egg-rr87.9%
associate-*r/87.9%
*-rgt-identity87.9%
Simplified87.9%
if 6.8e16 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum71.4%
associate-/l*71.4%
*-commutative71.4%
exp-to-pow71.4%
exp-diff58.9%
*-commutative58.9%
exp-to-pow58.9%
sub-neg58.9%
metadata-eval58.9%
Simplified58.9%
Taylor expanded in t around 0 64.4%
Taylor expanded in y around 0 87.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.5e+24) (not (<= t 0.52))) (* x (/ (/ (pow a t) a) y)) (* x (/ (pow z y) (* a (* y (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.5e+24) || !(t <= 0.52)) {
tmp = x * ((pow(a, t) / a) / y);
} else {
tmp = x * (pow(z, y) / (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 <= (-2.5d+24)) .or. (.not. (t <= 0.52d0))) then
tmp = x * (((a ** t) / a) / y)
else
tmp = x * ((z ** y) / (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 <= -2.5e+24) || !(t <= 0.52)) {
tmp = x * ((Math.pow(a, t) / a) / y);
} else {
tmp = x * (Math.pow(z, y) / (a * (y * Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.5e+24) or not (t <= 0.52): tmp = x * ((math.pow(a, t) / a) / y) else: tmp = x * (math.pow(z, y) / (a * (y * math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.5e+24) || !(t <= 0.52)) tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); else tmp = Float64(x * Float64((z ^ y) / 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 <= -2.5e+24) || ~((t <= 0.52))) tmp = x * (((a ^ t) / a) / y); else tmp = x * ((z ^ y) / (a * (y * exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.5e+24], N[Not[LessEqual[t, 0.52]], $MachinePrecision]], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+24} \lor \neg \left(t \leq 0.52\right):\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -2.50000000000000023e24 or 0.52000000000000002 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum78.6%
associate-/l*78.6%
*-commutative78.6%
exp-to-pow78.6%
exp-diff62.9%
*-commutative62.9%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
Simplified62.9%
Taylor expanded in b around 0 74.4%
associate-/l*74.4%
*-commutative74.4%
exp-to-pow74.4%
sub-neg74.4%
metadata-eval74.4%
Simplified74.4%
unpow-prod-up74.4%
unpow-174.4%
Applied egg-rr74.4%
associate-*r/74.4%
*-rgt-identity74.4%
Simplified74.4%
Taylor expanded in y around 0 87.3%
if -2.50000000000000023e24 < t < 0.52000000000000002Initial program 97.1%
associate-/l*98.0%
associate--l+98.0%
exp-sum81.6%
associate-/l*80.7%
*-commutative80.7%
exp-to-pow80.7%
exp-diff79.9%
*-commutative79.9%
exp-to-pow80.9%
sub-neg80.9%
metadata-eval80.9%
Simplified80.9%
Taylor expanded in t around 0 81.8%
Final simplification84.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y -3e+219) (* x (/ (/ (pow z y) a) y)) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3e+219) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (x * exp((((t + -1.0) * 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 (y <= (-3d+219)) then
tmp = x * (((z ** y) / a) / y)
else
tmp = (x * exp((((t + (-1.0d0)) * 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 (y <= -3e+219) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3e+219: tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3e+219) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3e+219) tmp = x * (((z ^ y) / a) / y); else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3e+219], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+219}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -2.9999999999999997e219Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum66.7%
associate-/l*66.7%
*-commutative66.7%
exp-to-pow66.7%
exp-diff66.7%
*-commutative66.7%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
Simplified66.7%
Taylor expanded in b around 0 94.4%
associate-/l*94.4%
*-commutative94.4%
exp-to-pow94.4%
sub-neg94.4%
metadata-eval94.4%
Simplified94.4%
Taylor expanded in t around 0 100.0%
if -2.9999999999999997e219 < y Initial program 98.6%
*-commutative98.6%
associate-/l*91.4%
associate--l+91.4%
fma-define91.4%
sub-neg91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in y around 0 89.0%
Final simplification89.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow a t) a) y))))
(if (<= t -5.5e+25)
t_1
(if (<= t -4e-149)
(/ (/ x (/ a (pow z y))) y)
(if (<= t 3.9e-75) (/ x (* a (* y (exp b)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(a, t) / a) / y);
double tmp;
if (t <= -5.5e+25) {
tmp = t_1;
} else if (t <= -4e-149) {
tmp = (x / (a / pow(z, y))) / y;
} else if (t <= 3.9e-75) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = 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 = x * (((a ** t) / a) / y)
if (t <= (-5.5d+25)) then
tmp = t_1
else if (t <= (-4d-149)) then
tmp = (x / (a / (z ** y))) / y
else if (t <= 3.9d-75) then
tmp = x / (a * (y * exp(b)))
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 b) {
double t_1 = x * ((Math.pow(a, t) / a) / y);
double tmp;
if (t <= -5.5e+25) {
tmp = t_1;
} else if (t <= -4e-149) {
tmp = (x / (a / Math.pow(z, y))) / y;
} else if (t <= 3.9e-75) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(a, t) / a) / y) tmp = 0 if t <= -5.5e+25: tmp = t_1 elif t <= -4e-149: tmp = (x / (a / math.pow(z, y))) / y elif t <= 3.9e-75: tmp = x / (a * (y * math.exp(b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((a ^ t) / a) / y)) tmp = 0.0 if (t <= -5.5e+25) tmp = t_1; elseif (t <= -4e-149) tmp = Float64(Float64(x / Float64(a / (z ^ y))) / y); elseif (t <= 3.9e-75) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((a ^ t) / a) / y); tmp = 0.0; if (t <= -5.5e+25) tmp = t_1; elseif (t <= -4e-149) tmp = (x / (a / (z ^ y))) / y; elseif (t <= 3.9e-75) tmp = x / (a * (y * exp(b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.5e+25], t$95$1, If[LessEqual[t, -4e-149], N[(N[(x / N[(a / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 3.9e-75], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4 \cdot 10^{-149}:\\
\;\;\;\;\frac{\frac{x}{\frac{a}{{z}^{y}}}}{y}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-75}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.50000000000000018e25 or 3.9000000000000001e-75 < t Initial program 99.8%
associate-/l*99.2%
associate--l+99.2%
exp-sum78.7%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff64.1%
*-commutative64.1%
exp-to-pow64.2%
sub-neg64.2%
metadata-eval64.2%
Simplified64.2%
Taylor expanded in b around 0 75.4%
associate-/l*75.5%
*-commutative75.5%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
unpow-prod-up75.7%
unpow-175.7%
Applied egg-rr75.7%
associate-*r/75.7%
*-rgt-identity75.7%
Simplified75.7%
Taylor expanded in y around 0 86.4%
if -5.50000000000000018e25 < t < -3.99999999999999992e-149Initial program 99.2%
associate-/l*99.2%
associate--l+99.2%
exp-sum80.0%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff76.1%
*-commutative76.1%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
Simplified76.6%
Taylor expanded in b around 0 69.1%
associate-/l*69.1%
*-commutative69.1%
exp-to-pow69.6%
sub-neg69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in t around 0 72.2%
associate-*r/72.2%
clear-num72.2%
un-div-inv72.2%
Applied egg-rr72.2%
if -3.99999999999999992e-149 < t < 3.9000000000000001e-75Initial program 96.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum82.3%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff81.0%
*-commutative81.0%
exp-to-pow82.2%
sub-neg82.2%
metadata-eval82.2%
Simplified82.2%
Taylor expanded in t around 0 82.2%
Taylor expanded in y around 0 85.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow a t) a) y))))
(if (<= t -750000.0)
t_1
(if (<= t -1.35e-150)
(* x (/ (/ (pow z y) a) y))
(if (<= t 3.9e-75) (/ x (* a (* y (exp b)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(a, t) / a) / y);
double tmp;
if (t <= -750000.0) {
tmp = t_1;
} else if (t <= -1.35e-150) {
tmp = x * ((pow(z, y) / a) / y);
} else if (t <= 3.9e-75) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = 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 = x * (((a ** t) / a) / y)
if (t <= (-750000.0d0)) then
tmp = t_1
else if (t <= (-1.35d-150)) then
tmp = x * (((z ** y) / a) / y)
else if (t <= 3.9d-75) then
tmp = x / (a * (y * exp(b)))
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 b) {
double t_1 = x * ((Math.pow(a, t) / a) / y);
double tmp;
if (t <= -750000.0) {
tmp = t_1;
} else if (t <= -1.35e-150) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else if (t <= 3.9e-75) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(a, t) / a) / y) tmp = 0 if t <= -750000.0: tmp = t_1 elif t <= -1.35e-150: tmp = x * ((math.pow(z, y) / a) / y) elif t <= 3.9e-75: tmp = x / (a * (y * math.exp(b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((a ^ t) / a) / y)) tmp = 0.0 if (t <= -750000.0) tmp = t_1; elseif (t <= -1.35e-150) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); elseif (t <= 3.9e-75) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((a ^ t) / a) / y); tmp = 0.0; if (t <= -750000.0) tmp = t_1; elseif (t <= -1.35e-150) tmp = x * (((z ^ y) / a) / y); elseif (t <= 3.9e-75) tmp = x / (a * (y * exp(b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -750000.0], t$95$1, If[LessEqual[t, -1.35e-150], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e-75], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{if}\;t \leq -750000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{-150}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-75}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.5e5 or 3.9000000000000001e-75 < t Initial program 99.8%
associate-/l*99.3%
associate--l+99.3%
exp-sum78.3%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff63.3%
*-commutative63.3%
exp-to-pow63.4%
sub-neg63.4%
metadata-eval63.4%
Simplified63.4%
Taylor expanded in b around 0 74.5%
associate-/l*74.5%
*-commutative74.5%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
Simplified74.6%
unpow-prod-up74.7%
unpow-174.7%
Applied egg-rr74.7%
associate-*r/74.7%
*-rgt-identity74.7%
Simplified74.7%
Taylor expanded in y around 0 85.3%
if -7.5e5 < t < -1.3500000000000001e-150Initial program 99.1%
associate-/l*99.1%
associate--l+99.1%
exp-sum82.5%
associate-/l*82.5%
*-commutative82.5%
exp-to-pow82.5%
exp-diff82.5%
*-commutative82.5%
exp-to-pow83.0%
sub-neg83.0%
metadata-eval83.0%
Simplified83.0%
Taylor expanded in b around 0 74.7%
associate-/l*74.7%
*-commutative74.7%
exp-to-pow75.3%
sub-neg75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in t around 0 78.1%
if -1.3500000000000001e-150 < t < 3.9000000000000001e-75Initial program 96.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum82.3%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff81.0%
*-commutative81.0%
exp-to-pow82.2%
sub-neg82.2%
metadata-eval82.2%
Simplified82.2%
Taylor expanded in t around 0 82.2%
Taylor expanded in y around 0 85.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7.2e+83) (not (<= t 3.9e-75))) (* x (/ (/ (pow a t) a) y)) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.2e+83) || !(t <= 3.9e-75)) {
tmp = x * ((pow(a, t) / a) / y);
} 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 <= (-7.2d+83)) .or. (.not. (t <= 3.9d-75))) then
tmp = x * (((a ** t) / a) / y)
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 <= -7.2e+83) || !(t <= 3.9e-75)) {
tmp = x * ((Math.pow(a, t) / a) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -7.2e+83) or not (t <= 3.9e-75): tmp = x * ((math.pow(a, t) / a) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7.2e+83) || !(t <= 3.9e-75)) tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); 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 <= -7.2e+83) || ~((t <= 3.9e-75))) tmp = x * (((a ^ t) / a) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7.2e+83], N[Not[LessEqual[t, 3.9e-75]], $MachinePrecision]], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $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 -7.2 \cdot 10^{+83} \lor \neg \left(t \leq 3.9 \cdot 10^{-75}\right):\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -7.1999999999999995e83 or 3.9000000000000001e-75 < t Initial program 99.8%
associate-/l*99.2%
associate--l+99.2%
exp-sum78.2%
associate-/l*78.2%
*-commutative78.2%
exp-to-pow78.2%
exp-diff63.7%
*-commutative63.7%
exp-to-pow63.7%
sub-neg63.7%
metadata-eval63.7%
Simplified63.7%
Taylor expanded in b around 0 75.3%
associate-/l*75.4%
*-commutative75.4%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
Simplified75.4%
unpow-prod-up75.5%
unpow-175.5%
Applied egg-rr75.5%
associate-*r/75.5%
*-rgt-identity75.5%
Simplified75.5%
Taylor expanded in y around 0 87.3%
if -7.1999999999999995e83 < t < 3.9000000000000001e-75Initial program 97.4%
associate-/l*99.0%
associate--l+99.0%
exp-sum82.0%
associate-/l*81.2%
*-commutative81.2%
exp-to-pow81.2%
exp-diff78.6%
*-commutative78.6%
exp-to-pow79.6%
sub-neg79.6%
metadata-eval79.6%
Simplified79.6%
Taylor expanded in t around 0 81.8%
Taylor expanded in y around 0 77.5%
Final simplification82.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.35e+30) (not (<= b 4.4e+25))) (/ x (* y (exp b))) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.35e+30) || !(b <= 4.4e+25)) {
tmp = x / (y * exp(b));
} 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 ((b <= (-1.35d+30)) .or. (.not. (b <= 4.4d+25))) then
tmp = x / (y * exp(b))
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 ((b <= -1.35e+30) || !(b <= 4.4e+25)) {
tmp = x / (y * Math.exp(b));
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.35e+30) or not (b <= 4.4e+25): tmp = x / (y * math.exp(b)) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.35e+30) || !(b <= 4.4e+25)) tmp = Float64(x / Float64(y * exp(b))); 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 ((b <= -1.35e+30) || ~((b <= 4.4e+25))) tmp = x / (y * exp(b)); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.35e+30], N[Not[LessEqual[b, 4.4e+25]], $MachinePrecision]], N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.35 \cdot 10^{+30} \lor \neg \left(b \leq 4.4 \cdot 10^{+25}\right):\\
\;\;\;\;\frac{x}{y \cdot e^{b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -1.3499999999999999e30 or 4.4000000000000001e25 < b Initial program 100.0%
*-commutative100.0%
associate-/l*89.5%
associate--l+89.5%
fma-define89.5%
sub-neg89.5%
metadata-eval89.5%
Simplified89.5%
Taylor expanded in b around inf 75.7%
neg-mul-175.7%
Simplified75.7%
exp-neg75.7%
frac-times83.6%
*-un-lft-identity83.6%
*-commutative83.6%
Applied egg-rr83.6%
if -1.3499999999999999e30 < b < 4.4000000000000001e25Initial program 97.6%
associate-/l*98.3%
associate--l+98.3%
exp-sum84.9%
associate-/l*84.2%
*-commutative84.2%
exp-to-pow84.2%
exp-diff81.4%
*-commutative81.4%
exp-to-pow82.3%
sub-neg82.3%
metadata-eval82.3%
Simplified82.3%
Taylor expanded in b around 0 85.6%
associate-/l*86.4%
*-commutative86.4%
exp-to-pow87.2%
sub-neg87.2%
metadata-eval87.2%
Simplified87.2%
Taylor expanded in t around 0 66.9%
Taylor expanded in y around 0 38.8%
Final simplification58.8%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
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 / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.7%
associate-/l*99.1%
associate--l+99.1%
exp-sum79.9%
associate-/l*79.5%
*-commutative79.5%
exp-to-pow79.5%
exp-diff70.6%
*-commutative70.6%
exp-to-pow71.0%
sub-neg71.0%
metadata-eval71.0%
Simplified71.0%
Taylor expanded in t around 0 63.3%
Taylor expanded in y around 0 58.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -8.5e+30)
(*
x
(+
(/ 1.0 y)
(*
b
(+
(* b (+ (* -0.16666666666666666 (/ b y)) (* 0.5 (/ 1.0 y))))
(/ -1.0 y)))))
(/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.5e+30) {
tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / 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 (b <= (-8.5d+30)) then
tmp = x * ((1.0d0 / y) + (b * ((b * (((-0.16666666666666666d0) * (b / y)) + (0.5d0 * (1.0d0 / y)))) + ((-1.0d0) / 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 (b <= -8.5e+30) {
tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y))));
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.5e+30: tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y)))) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8.5e+30) tmp = Float64(x * Float64(Float64(1.0 / y) + Float64(b * Float64(Float64(b * Float64(Float64(-0.16666666666666666 * Float64(b / y)) + Float64(0.5 * Float64(1.0 / y)))) + Float64(-1.0 / 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 (b <= -8.5e+30) tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y)))); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.5e+30], N[(x * N[(N[(1.0 / y), $MachinePrecision] + N[(b * N[(N[(b * N[(N[(-0.16666666666666666 * N[(b / y), $MachinePrecision]), $MachinePrecision] + N[(0.5 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{+30}:\\
\;\;\;\;x \cdot \left(\frac{1}{y} + b \cdot \left(b \cdot \left(-0.16666666666666666 \cdot \frac{b}{y} + 0.5 \cdot \frac{1}{y}\right) + \frac{-1}{y}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -8.4999999999999995e30Initial program 100.0%
*-commutative100.0%
associate-/l*88.1%
associate--l+88.1%
fma-define88.1%
sub-neg88.1%
metadata-eval88.1%
Simplified88.1%
Taylor expanded in b around inf 69.8%
neg-mul-169.8%
Simplified69.8%
Taylor expanded in b around 0 59.1%
Taylor expanded in x around 0 71.8%
if -8.4999999999999995e30 < b Initial program 98.3%
associate-/l*98.8%
associate--l+98.8%
exp-sum81.5%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff75.4%
*-commutative75.4%
exp-to-pow76.1%
sub-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in b around 0 75.7%
associate-/l*76.2%
*-commutative76.2%
exp-to-pow76.8%
sub-neg76.8%
metadata-eval76.8%
Simplified76.8%
Taylor expanded in t around 0 59.3%
Taylor expanded in y around 0 34.7%
Final simplification43.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.55e+35) (/ (* x (+ 1.0 (* b (+ (* b (+ 0.5 (* b -0.16666666666666666))) -1.0)))) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.55e+35) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / 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 (b <= (-1.55d+35)) then
tmp = (x * (1.0d0 + (b * ((b * (0.5d0 + (b * (-0.16666666666666666d0)))) + (-1.0d0))))) / 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 (b <= -1.55e+35) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.55e+35: tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.55e+35) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))) + -1.0)))) / 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 (b <= -1.55e+35) tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.55e+35], N[(N[(x * N[(1.0 + N[(b * N[(N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.55 \cdot 10^{+35}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(b \cdot \left(0.5 + b \cdot -0.16666666666666666\right) + -1\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -1.54999999999999993e35Initial program 100.0%
*-commutative100.0%
associate-/l*88.1%
associate--l+88.1%
fma-define88.1%
sub-neg88.1%
metadata-eval88.1%
Simplified88.1%
Taylor expanded in b around inf 69.8%
neg-mul-169.8%
Simplified69.8%
Taylor expanded in b around 0 60.2%
Taylor expanded in x around 0 67.0%
if -1.54999999999999993e35 < b Initial program 98.3%
associate-/l*98.8%
associate--l+98.8%
exp-sum81.5%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff75.4%
*-commutative75.4%
exp-to-pow76.1%
sub-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in b around 0 75.7%
associate-/l*76.2%
*-commutative76.2%
exp-to-pow76.8%
sub-neg76.8%
metadata-eval76.8%
Simplified76.8%
Taylor expanded in t around 0 59.3%
Taylor expanded in y around 0 34.7%
Final simplification42.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -9.5e+85) (/ (* x (+ 1.0 (* b (+ 1.0 (* b 0.5))))) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9.5e+85) {
tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / 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 (b <= (-9.5d+85)) then
tmp = (x * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))) / 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 (b <= -9.5e+85) {
tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9.5e+85: tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9.5e+85) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))) / 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 (b <= -9.5e+85) tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9.5e+85], N[(N[(x * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+85}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -9.49999999999999945e85Initial program 100.0%
*-commutative100.0%
associate-/l*86.0%
associate--l+86.0%
fma-define86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in b around inf 68.3%
neg-mul-168.3%
Simplified68.3%
associate-*r/78.3%
add-sqr-sqrt78.3%
sqrt-unprod78.3%
sqr-neg78.3%
sqrt-unprod0.0%
add-sqr-sqrt23.2%
Applied egg-rr23.2%
Taylor expanded in b around 0 72.6%
*-commutative72.6%
Simplified72.6%
if -9.49999999999999945e85 < b Initial program 98.3%
associate-/l*98.8%
associate--l+98.8%
exp-sum81.9%
associate-/l*81.4%
*-commutative81.4%
exp-to-pow81.4%
exp-diff75.5%
*-commutative75.5%
exp-to-pow76.1%
sub-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in b around 0 74.9%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow76.4%
sub-neg76.4%
metadata-eval76.4%
Simplified76.4%
Taylor expanded in t around 0 57.8%
Taylor expanded in y around 0 33.8%
Final simplification41.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -5.4e+82) (* (+ 1.0 (* b (+ (* b 0.5) -1.0))) (/ x y)) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.4e+82) {
tmp = (1.0 + (b * ((b * 0.5) + -1.0))) * (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 (b <= (-5.4d+82)) then
tmp = (1.0d0 + (b * ((b * 0.5d0) + (-1.0d0)))) * (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 (b <= -5.4e+82) {
tmp = (1.0 + (b * ((b * 0.5) + -1.0))) * (x / y);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.4e+82: tmp = (1.0 + (b * ((b * 0.5) + -1.0))) * (x / y) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.4e+82) tmp = Float64(Float64(1.0 + Float64(b * Float64(Float64(b * 0.5) + -1.0))) * 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 (b <= -5.4e+82) tmp = (1.0 + (b * ((b * 0.5) + -1.0))) * (x / y); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.4e+82], N[(N[(1.0 + N[(b * N[(N[(b * 0.5), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.4 \cdot 10^{+82}:\\
\;\;\;\;\left(1 + b \cdot \left(b \cdot 0.5 + -1\right)\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -5.3999999999999999e82Initial program 100.0%
*-commutative100.0%
associate-/l*86.3%
associate--l+86.3%
fma-define86.3%
sub-neg86.3%
metadata-eval86.3%
Simplified86.3%
Taylor expanded in b around inf 67.0%
neg-mul-167.0%
Simplified67.0%
Taylor expanded in b around 0 65.3%
if -5.3999999999999999e82 < b Initial program 98.3%
associate-/l*98.8%
associate--l+98.8%
exp-sum82.3%
associate-/l*81.8%
*-commutative81.8%
exp-to-pow81.8%
exp-diff75.9%
*-commutative75.9%
exp-to-pow76.5%
sub-neg76.5%
metadata-eval76.5%
Simplified76.5%
Taylor expanded in b around 0 74.7%
associate-/l*75.7%
*-commutative75.7%
exp-to-pow76.3%
sub-neg76.3%
metadata-eval76.3%
Simplified76.3%
Taylor expanded in t around 0 57.6%
Taylor expanded in y around 0 33.9%
Final simplification40.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8e+180) (* x (/ (- 1.0 b) y)) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8e+180) {
tmp = x * ((1.0 - b) / 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 (b <= (-8d+180)) then
tmp = x * ((1.0d0 - b) / 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 (b <= -8e+180) {
tmp = x * ((1.0 - b) / y);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8e+180: tmp = x * ((1.0 - b) / y) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8e+180) tmp = Float64(x * Float64(Float64(1.0 - b) / 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 (b <= -8e+180) tmp = x * ((1.0 - b) / y); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8e+180], N[(x * N[(N[(1.0 - b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8 \cdot 10^{+180}:\\
\;\;\;\;x \cdot \frac{1 - b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -8.0000000000000001e180Initial program 100.0%
*-commutative100.0%
associate-/l*83.3%
associate--l+83.3%
fma-define83.3%
sub-neg83.3%
metadata-eval83.3%
Simplified83.3%
Taylor expanded in b around inf 73.5%
neg-mul-173.5%
Simplified73.5%
Taylor expanded in b around 0 36.3%
neg-mul-136.3%
unsub-neg36.3%
Simplified36.3%
Taylor expanded in b around 0 39.5%
+-commutative39.5%
*-lft-identity39.5%
mul-1-neg39.5%
associate-*r/36.3%
distribute-lft-neg-in36.3%
distribute-rgt-in36.3%
sub-neg36.3%
associate-*l/39.5%
associate-/l*45.6%
Simplified45.6%
if -8.0000000000000001e180 < b Initial program 98.5%
associate-/l*99.0%
associate--l+99.0%
exp-sum82.1%
associate-/l*81.7%
*-commutative81.7%
exp-to-pow81.7%
exp-diff73.3%
*-commutative73.3%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in b around 0 73.7%
associate-/l*74.5%
*-commutative74.5%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 57.3%
Taylor expanded in y around 0 33.7%
Final simplification35.1%
(FPCore (x y z t a b) :precision binary64 (if (<= t 9.6e+56) (* x (/ 1.0 (* y a))) (/ (- (* x b)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 9.6e+56) {
tmp = x * (1.0 / (y * a));
} else {
tmp = -(x * 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 <= 9.6d+56) then
tmp = x * (1.0d0 / (y * a))
else
tmp = -(x * 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 <= 9.6e+56) {
tmp = x * (1.0 / (y * a));
} else {
tmp = -(x * b) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 9.6e+56: tmp = x * (1.0 / (y * a)) else: tmp = -(x * b) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 9.6e+56) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(Float64(-Float64(x * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 9.6e+56) tmp = x * (1.0 / (y * a)); else tmp = -(x * b) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 9.6e+56], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-N[(x * b), $MachinePrecision]) / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 9.6 \cdot 10^{+56}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x \cdot b}{y}\\
\end{array}
\end{array}
if t < 9.60000000000000053e56Initial program 98.1%
associate-/l*98.7%
associate--l+98.7%
exp-sum80.2%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff72.1%
*-commutative72.1%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in b around 0 67.2%
associate-/l*68.9%
*-commutative68.9%
exp-to-pow69.5%
sub-neg69.5%
metadata-eval69.5%
Simplified69.5%
Taylor expanded in t around 0 61.3%
Taylor expanded in y around 0 41.3%
if 9.60000000000000053e56 < t Initial program 100.0%
*-commutative100.0%
associate-/l*84.7%
associate--l+84.7%
fma-define84.7%
sub-neg84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in b around inf 29.7%
neg-mul-129.7%
Simplified29.7%
Taylor expanded in b around 0 11.1%
neg-mul-111.1%
unsub-neg11.1%
Simplified11.1%
Taylor expanded in b around inf 18.1%
Final simplification34.8%
(FPCore (x y z t a b) :precision binary64 (if (<= t 0.88) (/ x (* y a)) (/ (- (* x b)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 0.88) {
tmp = x / (y * a);
} else {
tmp = -(x * 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 <= 0.88d0) then
tmp = x / (y * a)
else
tmp = -(x * 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 <= 0.88) {
tmp = x / (y * a);
} else {
tmp = -(x * b) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 0.88: tmp = x / (y * a) else: tmp = -(x * b) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 0.88) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(-Float64(x * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 0.88) tmp = x / (y * a); else tmp = -(x * b) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 0.88], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[((-N[(x * b), $MachinePrecision]) / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.88:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x \cdot b}{y}\\
\end{array}
\end{array}
if t < 0.880000000000000004Initial program 98.1%
associate-/l*98.7%
associate--l+98.7%
exp-sum80.1%
associate-/l*79.6%
*-commutative79.6%
exp-to-pow79.6%
exp-diff72.3%
*-commutative72.3%
exp-to-pow72.9%
sub-neg72.9%
metadata-eval72.9%
Simplified72.9%
Taylor expanded in b around 0 67.2%
associate-/l*68.9%
*-commutative68.9%
exp-to-pow69.6%
sub-neg69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in t around 0 62.2%
Taylor expanded in y around 0 41.5%
if 0.880000000000000004 < t Initial program 100.0%
*-commutative100.0%
associate-/l*85.9%
associate--l+85.9%
fma-define85.9%
sub-neg85.9%
metadata-eval85.9%
Simplified85.9%
Taylor expanded in b around inf 31.4%
neg-mul-131.4%
Simplified31.4%
Taylor expanded in b around 0 13.0%
neg-mul-113.0%
unsub-neg13.0%
Simplified13.0%
Taylor expanded in b around inf 18.3%
Final simplification34.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -5.5e+192) (* b (/ x (- y))) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.5e+192) {
tmp = b * (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 (b <= (-5.5d+192)) then
tmp = b * (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 (b <= -5.5e+192) {
tmp = b * (x / -y);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.5e+192: tmp = b * (x / -y) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.5e+192) tmp = Float64(b * Float64(x / Float64(-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 (b <= -5.5e+192) tmp = b * (x / -y); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.5e+192], N[(b * N[(x / (-y)), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{+192}:\\
\;\;\;\;b \cdot \frac{x}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -5.49999999999999966e192Initial program 100.0%
*-commutative100.0%
associate-/l*89.3%
associate--l+89.3%
fma-define89.3%
sub-neg89.3%
metadata-eval89.3%
Simplified89.3%
Taylor expanded in b around inf 78.7%
neg-mul-178.7%
Simplified78.7%
Taylor expanded in b around 0 38.8%
neg-mul-138.8%
unsub-neg38.8%
Simplified38.8%
Taylor expanded in b around inf 42.2%
mul-1-neg42.2%
associate-*r/38.8%
*-commutative38.8%
distribute-rgt-neg-in38.8%
Simplified38.8%
if -5.49999999999999966e192 < b Initial program 98.5%
associate-/l*99.0%
associate--l+99.0%
exp-sum81.9%
associate-/l*81.4%
*-commutative81.4%
exp-to-pow81.4%
exp-diff73.1%
*-commutative73.1%
exp-to-pow73.6%
sub-neg73.6%
metadata-eval73.6%
Simplified73.6%
Taylor expanded in b around 0 73.4%
associate-/l*74.3%
*-commutative74.3%
exp-to-pow74.8%
sub-neg74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in t around 0 57.2%
Taylor expanded in y around 0 33.4%
Final simplification34.0%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
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 * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 98.7%
associate-/l*99.1%
associate--l+99.1%
exp-sum79.9%
associate-/l*79.5%
*-commutative79.5%
exp-to-pow79.5%
exp-diff70.6%
*-commutative70.6%
exp-to-pow71.0%
sub-neg71.0%
metadata-eval71.0%
Simplified71.0%
Taylor expanded in b around 0 69.8%
associate-/l*71.0%
*-commutative71.0%
exp-to-pow71.5%
sub-neg71.5%
metadata-eval71.5%
Simplified71.5%
Taylor expanded in t around 0 53.6%
Taylor expanded in y around 0 31.2%
Final simplification31.2%
(FPCore (x y z t a b) :precision binary64 (/ 1.0 (/ y x)))
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y / x);
}
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 = 1.0d0 / (y / x)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y / x);
}
def code(x, y, z, t, a, b): return 1.0 / (y / x)
function code(x, y, z, t, a, b) return Float64(1.0 / Float64(y / x)) end
function tmp = code(x, y, z, t, a, b) tmp = 1.0 / (y / x); end
code[x_, y_, z_, t_, a_, b_] := N[(1.0 / N[(y / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{y}{x}}
\end{array}
Initial program 98.7%
*-commutative98.7%
associate-/l*90.5%
associate--l+90.5%
fma-define90.5%
sub-neg90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in b around inf 44.0%
neg-mul-144.0%
Simplified44.0%
Taylor expanded in b around 0 15.5%
clear-num16.1%
inv-pow16.1%
Applied egg-rr16.1%
unpow-116.1%
Simplified16.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 98.7%
*-commutative98.7%
associate-/l*90.5%
associate--l+90.5%
fma-define90.5%
sub-neg90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in b around inf 44.0%
neg-mul-144.0%
Simplified44.0%
Taylor expanded in b around 0 15.5%
(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 2024180
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))