
(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 24 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.8%
Final simplification98.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow a t) a)) y)))
(if (<= t -1.9e+86)
t_1
(if (<= t -8.2e-308)
(/ x (* a (/ y (pow z y))))
(if (<= t 8.2e-144)
(/ (/ x (* y (exp b))) a)
(if (<= t 2.7e-112)
(* (/ x a) (/ (pow z y) y))
(if (<= t 1.5e+42) (/ (* x (exp (- (- (log a)) b))) y) 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 <= -1.9e+86) {
tmp = t_1;
} else if (t <= -8.2e-308) {
tmp = x / (a * (y / pow(z, y)));
} else if (t <= 8.2e-144) {
tmp = (x / (y * exp(b))) / a;
} else if (t <= 2.7e-112) {
tmp = (x / a) * (pow(z, y) / y);
} else if (t <= 1.5e+42) {
tmp = (x * exp((-log(a) - b))) / y;
} 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 <= (-1.9d+86)) then
tmp = t_1
else if (t <= (-8.2d-308)) then
tmp = x / (a * (y / (z ** y)))
else if (t <= 8.2d-144) then
tmp = (x / (y * exp(b))) / a
else if (t <= 2.7d-112) then
tmp = (x / a) * ((z ** y) / y)
else if (t <= 1.5d+42) then
tmp = (x * exp((-log(a) - b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (Math.pow(a, t) / a)) / y;
double tmp;
if (t <= -1.9e+86) {
tmp = t_1;
} else if (t <= -8.2e-308) {
tmp = x / (a * (y / Math.pow(z, y)));
} else if (t <= 8.2e-144) {
tmp = (x / (y * Math.exp(b))) / a;
} else if (t <= 2.7e-112) {
tmp = (x / a) * (Math.pow(z, y) / y);
} else if (t <= 1.5e+42) {
tmp = (x * Math.exp((-Math.log(a) - b))) / y;
} 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 <= -1.9e+86: tmp = t_1 elif t <= -8.2e-308: tmp = x / (a * (y / math.pow(z, y))) elif t <= 8.2e-144: tmp = (x / (y * math.exp(b))) / a elif t <= 2.7e-112: tmp = (x / a) * (math.pow(z, y) / y) elif t <= 1.5e+42: tmp = (x * math.exp((-math.log(a) - b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((a ^ t) / a)) / y) tmp = 0.0 if (t <= -1.9e+86) tmp = t_1; elseif (t <= -8.2e-308) tmp = Float64(x / Float64(a * Float64(y / (z ^ y)))); elseif (t <= 8.2e-144) tmp = Float64(Float64(x / Float64(y * exp(b))) / a); elseif (t <= 2.7e-112) tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); elseif (t <= 1.5e+42) tmp = Float64(Float64(x * exp(Float64(Float64(-log(a)) - b))) / y); 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 <= -1.9e+86) tmp = t_1; elseif (t <= -8.2e-308) tmp = x / (a * (y / (z ^ y))); elseif (t <= 8.2e-144) tmp = (x / (y * exp(b))) / a; elseif (t <= 2.7e-112) tmp = (x / a) * ((z ^ y) / y); elseif (t <= 1.5e+42) tmp = (x * exp((-log(a) - b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -1.9e+86], t$95$1, If[LessEqual[t, -8.2e-308], N[(x / N[(a * N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e-144], N[(N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 2.7e-112], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+42], N[(N[(x * N[Exp[N[((-N[Log[a], $MachinePrecision]) - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{if}\;t \leq -1.9 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-308}:\\
\;\;\;\;\frac{x}{a \cdot \frac{y}{{z}^{y}}}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-144}:\\
\;\;\;\;\frac{\frac{x}{y \cdot e^{b}}}{a}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-112}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+42}:\\
\;\;\;\;\frac{x \cdot e^{\left(-\log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.89999999999999989e86 or 1.50000000000000014e42 < t Initial program 100.0%
Taylor expanded in y around 0 93.0%
Taylor expanded in b around 0 89.1%
*-commutative89.1%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
+-commutative89.1%
Simplified89.1%
+-commutative89.1%
unpow-prod-up89.1%
inv-pow89.1%
Applied egg-rr89.1%
associate-*r/89.1%
*-rgt-identity89.1%
Simplified89.1%
if -1.89999999999999989e86 < t < -8.19999999999999965e-308Initial program 97.1%
associate-*l/94.0%
*-commutative94.0%
+-commutative94.0%
associate--l+94.0%
exp-sum84.5%
*-commutative84.5%
exp-to-pow85.0%
sub-neg85.0%
metadata-eval85.0%
exp-diff78.3%
*-commutative78.3%
exp-to-pow78.3%
Simplified78.3%
Taylor expanded in t around 0 80.3%
times-frac75.0%
Simplified75.0%
Taylor expanded in b around 0 61.1%
times-frac63.6%
Simplified63.6%
*-commutative63.6%
clear-num63.6%
frac-times74.6%
*-un-lft-identity74.6%
Applied egg-rr74.6%
if -8.19999999999999965e-308 < t < 8.2e-144Initial program 98.9%
associate-*l/88.4%
*-commutative88.4%
+-commutative88.4%
associate--l+88.4%
exp-sum88.4%
*-commutative88.4%
exp-to-pow89.4%
sub-neg89.4%
metadata-eval89.4%
exp-diff81.5%
*-commutative81.5%
exp-to-pow81.5%
Simplified81.5%
Taylor expanded in t around 0 87.4%
times-frac78.9%
Simplified78.9%
associate-*l/92.0%
Applied egg-rr92.0%
Taylor expanded in y around 0 80.3%
if 8.2e-144 < t < 2.7000000000000001e-112Initial program 99.2%
associate-*l/90.1%
*-commutative90.1%
+-commutative90.1%
associate--l+90.1%
exp-sum90.1%
*-commutative90.1%
exp-to-pow90.8%
sub-neg90.8%
metadata-eval90.8%
exp-diff81.7%
*-commutative81.7%
exp-to-pow81.7%
Simplified81.7%
Taylor expanded in t around 0 90.9%
times-frac90.9%
Simplified90.9%
Taylor expanded in b around 0 100.0%
times-frac100.0%
Simplified100.0%
if 2.7000000000000001e-112 < t < 1.50000000000000014e42Initial program 98.7%
Taylor expanded in y around 0 84.3%
Taylor expanded in t around 0 86.1%
*-commutative86.1%
mul-1-neg86.1%
Simplified86.1%
Final simplification83.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (pow z y) (* y (exp b))) (/ x a)))
(t_2 (/ (* x (/ (pow a t) a)) y)))
(if (<= t -4.75e+95)
t_2
(if (<= t -6.2e-106)
t_1
(if (<= t -6e-289)
(/ x (* a (/ y (pow z y))))
(if (<= t 8.4e+52) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (pow(z, y) / (y * exp(b))) * (x / a);
double t_2 = (x * (pow(a, t) / a)) / y;
double tmp;
if (t <= -4.75e+95) {
tmp = t_2;
} else if (t <= -6.2e-106) {
tmp = t_1;
} else if (t <= -6e-289) {
tmp = x / (a * (y / pow(z, y)));
} else if (t <= 8.4e+52) {
tmp = t_1;
} 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 = ((z ** y) / (y * exp(b))) * (x / a)
t_2 = (x * ((a ** t) / a)) / y
if (t <= (-4.75d+95)) then
tmp = t_2
else if (t <= (-6.2d-106)) then
tmp = t_1
else if (t <= (-6d-289)) then
tmp = x / (a * (y / (z ** y)))
else if (t <= 8.4d+52) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (Math.pow(z, y) / (y * Math.exp(b))) * (x / a);
double t_2 = (x * (Math.pow(a, t) / a)) / y;
double tmp;
if (t <= -4.75e+95) {
tmp = t_2;
} else if (t <= -6.2e-106) {
tmp = t_1;
} else if (t <= -6e-289) {
tmp = x / (a * (y / Math.pow(z, y)));
} else if (t <= 8.4e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.pow(z, y) / (y * math.exp(b))) * (x / a) t_2 = (x * (math.pow(a, t) / a)) / y tmp = 0 if t <= -4.75e+95: tmp = t_2 elif t <= -6.2e-106: tmp = t_1 elif t <= -6e-289: tmp = x / (a * (y / math.pow(z, y))) elif t <= 8.4e+52: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64((z ^ y) / Float64(y * exp(b))) * Float64(x / a)) t_2 = Float64(Float64(x * Float64((a ^ t) / a)) / y) tmp = 0.0 if (t <= -4.75e+95) tmp = t_2; elseif (t <= -6.2e-106) tmp = t_1; elseif (t <= -6e-289) tmp = Float64(x / Float64(a * Float64(y / (z ^ y)))); elseif (t <= 8.4e+52) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((z ^ y) / (y * exp(b))) * (x / a); t_2 = (x * ((a ^ t) / a)) / y; tmp = 0.0; if (t <= -4.75e+95) tmp = t_2; elseif (t <= -6.2e-106) tmp = t_1; elseif (t <= -6e-289) tmp = x / (a * (y / (z ^ y))); elseif (t <= 8.4e+52) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -4.75e+95], t$95$2, If[LessEqual[t, -6.2e-106], t$95$1, If[LessEqual[t, -6e-289], N[(x / N[(a * N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.4e+52], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{z}^{y}}{y \cdot e^{b}} \cdot \frac{x}{a}\\
t_2 := \frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{if}\;t \leq -4.75 \cdot 10^{+95}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-289}:\\
\;\;\;\;\frac{x}{a \cdot \frac{y}{{z}^{y}}}\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -4.7500000000000002e95 or 8.3999999999999999e52 < t Initial program 100.0%
Taylor expanded in y around 0 92.9%
Taylor expanded in b around 0 88.8%
*-commutative88.8%
exp-to-pow88.8%
sub-neg88.8%
metadata-eval88.8%
+-commutative88.8%
Simplified88.8%
+-commutative88.8%
unpow-prod-up88.8%
inv-pow88.8%
Applied egg-rr88.8%
associate-*r/88.8%
*-rgt-identity88.8%
Simplified88.8%
if -4.7500000000000002e95 < t < -6.19999999999999971e-106 or -5.9999999999999996e-289 < t < 8.3999999999999999e52Initial program 99.2%
associate-*l/90.3%
*-commutative90.3%
+-commutative90.3%
associate--l+90.3%
exp-sum79.6%
*-commutative79.6%
exp-to-pow80.2%
sub-neg80.2%
metadata-eval80.2%
exp-diff74.1%
*-commutative74.1%
exp-to-pow74.1%
Simplified74.1%
Taylor expanded in t around 0 83.3%
times-frac82.3%
Simplified82.3%
if -6.19999999999999971e-106 < t < -5.9999999999999996e-289Initial program 92.8%
associate-*l/95.3%
*-commutative95.3%
+-commutative95.3%
associate--l+95.3%
exp-sum95.4%
*-commutative95.4%
exp-to-pow96.3%
sub-neg96.3%
metadata-eval96.3%
exp-diff82.1%
*-commutative82.1%
exp-to-pow82.1%
Simplified82.1%
Taylor expanded in t around 0 82.1%
times-frac61.0%
Simplified61.0%
Taylor expanded in b around 0 76.2%
times-frac71.9%
Simplified71.9%
*-commutative71.9%
clear-num71.9%
frac-times90.5%
*-un-lft-identity90.5%
Applied egg-rr90.5%
Final simplification85.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.45e+179) (not (<= y 2.15e+18))) (/ x (* a (/ y (pow z 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 <= -2.45e+179) || !(y <= 2.15e+18)) {
tmp = x / (a * (y / pow(z, 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 <= (-2.45d+179)) .or. (.not. (y <= 2.15d+18))) then
tmp = x / (a * (y / (z ** 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 <= -2.45e+179) || !(y <= 2.15e+18)) {
tmp = x / (a * (y / Math.pow(z, 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 <= -2.45e+179) or not (y <= 2.15e+18): tmp = x / (a * (y / math.pow(z, 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 <= -2.45e+179) || !(y <= 2.15e+18)) tmp = Float64(x / Float64(a * Float64(y / (z ^ 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 <= -2.45e+179) || ~((y <= 2.15e+18))) tmp = x / (a * (y / (z ^ 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[Or[LessEqual[y, -2.45e+179], N[Not[LessEqual[y, 2.15e+18]], $MachinePrecision]], N[(x / N[(a * N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $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 -2.45 \cdot 10^{+179} \lor \neg \left(y \leq 2.15 \cdot 10^{+18}\right):\\
\;\;\;\;\frac{x}{a \cdot \frac{y}{{z}^{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -2.4499999999999999e179 or 2.15e18 < y Initial program 100.0%
associate-*l/89.5%
*-commutative89.5%
+-commutative89.5%
associate--l+89.5%
exp-sum69.5%
*-commutative69.5%
exp-to-pow69.5%
sub-neg69.5%
metadata-eval69.5%
exp-diff51.6%
*-commutative51.6%
exp-to-pow51.6%
Simplified51.6%
Taylor expanded in t around 0 67.4%
times-frac67.4%
Simplified67.4%
Taylor expanded in b around 0 69.6%
times-frac79.1%
Simplified79.1%
*-commutative79.1%
clear-num79.1%
frac-times87.6%
*-un-lft-identity87.6%
Applied egg-rr87.6%
if -2.4499999999999999e179 < y < 2.15e18Initial program 98.1%
Taylor expanded in y around 0 92.5%
Final simplification90.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1e+94) (not (<= t 1.05e+59))) (/ (* x (/ (pow a t) a)) y) (* (/ (pow z y) (* a (exp b))) (/ x y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1e+94) || !(t <= 1.05e+59)) {
tmp = (x * (pow(a, t) / a)) / y;
} else {
tmp = (pow(z, y) / (a * exp(b))) * (x / 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 <= (-1d+94)) .or. (.not. (t <= 1.05d+59))) then
tmp = (x * ((a ** t) / a)) / y
else
tmp = ((z ** y) / (a * exp(b))) * (x / 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 <= -1e+94) || !(t <= 1.05e+59)) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else {
tmp = (Math.pow(z, y) / (a * Math.exp(b))) * (x / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1e+94) or not (t <= 1.05e+59): tmp = (x * (math.pow(a, t) / a)) / y else: tmp = (math.pow(z, y) / (a * math.exp(b))) * (x / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1e+94) || !(t <= 1.05e+59)) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); else tmp = Float64(Float64((z ^ y) / Float64(a * exp(b))) * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1e+94) || ~((t <= 1.05e+59))) tmp = (x * ((a ^ t) / a)) / y; else tmp = ((z ^ y) / (a * exp(b))) * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1e+94], N[Not[LessEqual[t, 1.05e+59]], $MachinePrecision]], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[Power[z, y], $MachinePrecision] / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+94} \lor \neg \left(t \leq 1.05 \cdot 10^{+59}\right):\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{{z}^{y}}{a \cdot e^{b}} \cdot \frac{x}{y}\\
\end{array}
\end{array}
if t < -1e94 or 1.04999999999999992e59 < t Initial program 100.0%
Taylor expanded in y around 0 92.9%
Taylor expanded in b around 0 88.8%
*-commutative88.8%
exp-to-pow88.8%
sub-neg88.8%
metadata-eval88.8%
+-commutative88.8%
Simplified88.8%
+-commutative88.8%
unpow-prod-up88.8%
inv-pow88.8%
Applied egg-rr88.8%
associate-*r/88.8%
*-rgt-identity88.8%
Simplified88.8%
if -1e94 < t < 1.04999999999999992e59Initial program 98.1%
associate-*l/91.2%
*-commutative91.2%
+-commutative91.2%
associate--l+91.2%
exp-sum82.4%
*-commutative82.4%
exp-to-pow83.0%
sub-neg83.0%
metadata-eval83.0%
exp-diff75.5%
*-commutative75.5%
exp-to-pow75.5%
Simplified75.5%
Taylor expanded in t around 0 81.2%
Final simplification84.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -9.8e+95) (not (<= t 3.4e+47))) (/ (* x (/ (pow a t) a)) y) (/ x (/ a (/ (pow z y) (* y (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -9.8e+95) || !(t <= 3.4e+47)) {
tmp = (x * (pow(a, t) / a)) / y;
} else {
tmp = x / (a / (pow(z, y) / (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 <= (-9.8d+95)) .or. (.not. (t <= 3.4d+47))) then
tmp = (x * ((a ** t) / a)) / y
else
tmp = x / (a / ((z ** y) / (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 <= -9.8e+95) || !(t <= 3.4e+47)) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else {
tmp = x / (a / (Math.pow(z, y) / (y * Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -9.8e+95) or not (t <= 3.4e+47): tmp = (x * (math.pow(a, t) / a)) / y else: tmp = x / (a / (math.pow(z, y) / (y * math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -9.8e+95) || !(t <= 3.4e+47)) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); else tmp = Float64(x / Float64(a / Float64((z ^ y) / Float64(y * exp(b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -9.8e+95) || ~((t <= 3.4e+47))) tmp = (x * ((a ^ t) / a)) / y; else tmp = x / (a / ((z ^ y) / (y * exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -9.8e+95], N[Not[LessEqual[t, 3.4e+47]], $MachinePrecision]], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a / N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.8 \cdot 10^{+95} \lor \neg \left(t \leq 3.4 \cdot 10^{+47}\right):\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{a}{\frac{{z}^{y}}{y \cdot e^{b}}}}\\
\end{array}
\end{array}
if t < -9.7999999999999998e95 or 3.3999999999999998e47 < t Initial program 100.0%
Taylor expanded in y around 0 92.9%
Taylor expanded in b around 0 88.8%
*-commutative88.8%
exp-to-pow88.8%
sub-neg88.8%
metadata-eval88.8%
+-commutative88.8%
Simplified88.8%
+-commutative88.8%
unpow-prod-up88.8%
inv-pow88.8%
Applied egg-rr88.8%
associate-*r/88.8%
*-rgt-identity88.8%
Simplified88.8%
if -9.7999999999999998e95 < t < 3.3999999999999998e47Initial program 98.1%
associate-/l*97.6%
associate--l+97.6%
exp-sum83.7%
associate-/r*83.7%
*-commutative83.7%
exp-to-pow83.7%
exp-diff79.3%
*-commutative79.3%
exp-to-pow79.9%
sub-neg79.9%
metadata-eval79.9%
Simplified79.9%
Taylor expanded in t around 0 83.1%
associate-/l*86.9%
Simplified86.9%
Final simplification87.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.12e+98) (not (<= t 9e+43))) (/ (* x (/ (pow a t) a)) y) (/ (* x (/ (pow z y) (* y (exp b)))) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.12e+98) || !(t <= 9e+43)) {
tmp = (x * (pow(a, t) / a)) / y;
} else {
tmp = (x * (pow(z, y) / (y * exp(b)))) / 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 ((t <= (-1.12d+98)) .or. (.not. (t <= 9d+43))) then
tmp = (x * ((a ** t) / a)) / y
else
tmp = (x * ((z ** y) / (y * exp(b)))) / 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 ((t <= -1.12e+98) || !(t <= 9e+43)) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else {
tmp = (x * (Math.pow(z, y) / (y * Math.exp(b)))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.12e+98) or not (t <= 9e+43): tmp = (x * (math.pow(a, t) / a)) / y else: tmp = (x * (math.pow(z, y) / (y * math.exp(b)))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.12e+98) || !(t <= 9e+43)) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); else tmp = Float64(Float64(x * Float64((z ^ y) / Float64(y * exp(b)))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.12e+98) || ~((t <= 9e+43))) tmp = (x * ((a ^ t) / a)) / y; else tmp = (x * ((z ^ y) / (y * exp(b)))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.12e+98], N[Not[LessEqual[t, 9e+43]], $MachinePrecision]], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.12 \cdot 10^{+98} \lor \neg \left(t \leq 9 \cdot 10^{+43}\right):\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y \cdot e^{b}}}{a}\\
\end{array}
\end{array}
if t < -1.12e98 or 9e43 < t Initial program 100.0%
Taylor expanded in y around 0 92.9%
Taylor expanded in b around 0 88.8%
*-commutative88.8%
exp-to-pow88.8%
sub-neg88.8%
metadata-eval88.8%
+-commutative88.8%
Simplified88.8%
+-commutative88.8%
unpow-prod-up88.8%
inv-pow88.8%
Applied egg-rr88.8%
associate-*r/88.8%
*-rgt-identity88.8%
Simplified88.8%
if -1.12e98 < t < 9e43Initial program 98.1%
associate-*l/91.2%
*-commutative91.2%
+-commutative91.2%
associate--l+91.2%
exp-sum82.4%
*-commutative82.4%
exp-to-pow83.0%
sub-neg83.0%
metadata-eval83.0%
exp-diff75.5%
*-commutative75.5%
exp-to-pow75.5%
Simplified75.5%
Taylor expanded in t around 0 83.1%
times-frac78.6%
Simplified78.6%
associate-*l/87.5%
Applied egg-rr87.5%
Final simplification88.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4.6e+68) (not (<= y 195000000.0))) (/ x (* a (/ y (pow z y)))) (/ (/ x (* y (exp b))) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.6e+68) || !(y <= 195000000.0)) {
tmp = x / (a * (y / pow(z, y)));
} else {
tmp = (x / (y * exp(b))) / 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 <= (-4.6d+68)) .or. (.not. (y <= 195000000.0d0))) then
tmp = x / (a * (y / (z ** y)))
else
tmp = (x / (y * exp(b))) / 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 <= -4.6e+68) || !(y <= 195000000.0)) {
tmp = x / (a * (y / Math.pow(z, y)));
} else {
tmp = (x / (y * Math.exp(b))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4.6e+68) or not (y <= 195000000.0): tmp = x / (a * (y / math.pow(z, y))) else: tmp = (x / (y * math.exp(b))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4.6e+68) || !(y <= 195000000.0)) tmp = Float64(x / Float64(a * Float64(y / (z ^ y)))); else tmp = Float64(Float64(x / Float64(y * exp(b))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -4.6e+68) || ~((y <= 195000000.0))) tmp = x / (a * (y / (z ^ y))); else tmp = (x / (y * exp(b))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4.6e+68], N[Not[LessEqual[y, 195000000.0]], $MachinePrecision]], N[(x / N[(a * N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.6 \cdot 10^{+68} \lor \neg \left(y \leq 195000000\right):\\
\;\;\;\;\frac{x}{a \cdot \frac{y}{{z}^{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y \cdot e^{b}}}{a}\\
\end{array}
\end{array}
if y < -4.6e68 or 1.95e8 < y Initial program 100.0%
associate-*l/88.0%
*-commutative88.0%
+-commutative88.0%
associate--l+88.0%
exp-sum65.8%
*-commutative65.8%
exp-to-pow65.8%
sub-neg65.8%
metadata-eval65.8%
exp-diff49.6%
*-commutative49.6%
exp-to-pow49.6%
Simplified49.6%
Taylor expanded in t around 0 64.2%
times-frac63.4%
Simplified63.4%
Taylor expanded in b around 0 66.9%
times-frac74.6%
Simplified74.6%
*-commutative74.6%
clear-num74.6%
frac-times82.3%
*-un-lft-identity82.3%
Applied egg-rr82.3%
if -4.6e68 < y < 1.95e8Initial program 97.8%
associate-*l/92.1%
*-commutative92.1%
+-commutative92.1%
associate--l+92.1%
exp-sum81.3%
*-commutative81.3%
exp-to-pow82.0%
sub-neg82.0%
metadata-eval82.0%
exp-diff81.3%
*-commutative81.3%
exp-to-pow81.3%
Simplified81.3%
Taylor expanded in t around 0 71.3%
times-frac68.2%
Simplified68.2%
associate-*l/74.0%
Applied egg-rr74.0%
Taylor expanded in y around 0 74.4%
Final simplification78.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.35e+25) (not (<= b 1.65e-19))) (/ (/ x (exp b)) y) (/ (* x (/ (pow a t) a)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.35e+25) || !(b <= 1.65e-19)) {
tmp = (x / exp(b)) / y;
} else {
tmp = (x * (pow(a, t) / a)) / 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 ((b <= (-1.35d+25)) .or. (.not. (b <= 1.65d-19))) then
tmp = (x / exp(b)) / y
else
tmp = (x * ((a ** t) / a)) / 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 ((b <= -1.35e+25) || !(b <= 1.65e-19)) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = (x * (Math.pow(a, t) / a)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.35e+25) or not (b <= 1.65e-19): tmp = (x / math.exp(b)) / y else: tmp = (x * (math.pow(a, t) / a)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.35e+25) || !(b <= 1.65e-19)) tmp = Float64(Float64(x / exp(b)) / y); else tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.35e+25) || ~((b <= 1.65e-19))) tmp = (x / exp(b)) / y; else tmp = (x * ((a ^ t) / a)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.35e+25], N[Not[LessEqual[b, 1.65e-19]], $MachinePrecision]], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.35 \cdot 10^{+25} \lor \neg \left(b \leq 1.65 \cdot 10^{-19}\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\end{array}
\end{array}
if b < -1.35e25 or 1.6499999999999999e-19 < b Initial program 100.0%
Taylor expanded in y around 0 90.5%
Taylor expanded in b around inf 85.7%
neg-mul-185.7%
Simplified85.7%
exp-neg85.7%
un-div-inv85.7%
Applied egg-rr85.7%
if -1.35e25 < b < 1.6499999999999999e-19Initial program 97.7%
Taylor expanded in y around 0 72.4%
Taylor expanded in b around 0 71.6%
*-commutative71.6%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
+-commutative72.3%
unpow-prod-up72.3%
inv-pow72.3%
Applied egg-rr72.3%
associate-*r/72.3%
*-rgt-identity72.3%
Simplified72.3%
Final simplification78.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.0053) (/ (/ x (* y (exp b))) a) (if (<= b 9.8) (* (/ x a) (/ (pow z y) y)) (* x (/ (/ a (exp b)) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.0053) {
tmp = (x / (y * exp(b))) / a;
} else if (b <= 9.8) {
tmp = (x / a) * (pow(z, y) / y);
} else {
tmp = x * ((a / exp(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 (b <= (-0.0053d0)) then
tmp = (x / (y * exp(b))) / a
else if (b <= 9.8d0) then
tmp = (x / a) * ((z ** y) / y)
else
tmp = x * ((a / exp(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 (b <= -0.0053) {
tmp = (x / (y * Math.exp(b))) / a;
} else if (b <= 9.8) {
tmp = (x / a) * (Math.pow(z, y) / y);
} else {
tmp = x * ((a / Math.exp(b)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.0053: tmp = (x / (y * math.exp(b))) / a elif b <= 9.8: tmp = (x / a) * (math.pow(z, y) / y) else: tmp = x * ((a / math.exp(b)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.0053) tmp = Float64(Float64(x / Float64(y * exp(b))) / a); elseif (b <= 9.8) tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); else tmp = Float64(x * Float64(Float64(a / exp(b)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.0053) tmp = (x / (y * exp(b))) / a; elseif (b <= 9.8) tmp = (x / a) * ((z ^ y) / y); else tmp = x * ((a / exp(b)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.0053], N[(N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 9.8], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(a / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.0053:\\
\;\;\;\;\frac{\frac{x}{y \cdot e^{b}}}{a}\\
\mathbf{elif}\;b \leq 9.8:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{a}{e^{b}}}{y}\\
\end{array}
\end{array}
if b < -0.00530000000000000002Initial program 98.7%
associate-*l/85.9%
*-commutative85.9%
+-commutative85.9%
associate--l+85.9%
exp-sum69.3%
*-commutative69.3%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
exp-diff55.6%
*-commutative55.6%
exp-to-pow55.6%
Simplified55.6%
Taylor expanded in t around 0 75.1%
times-frac65.5%
Simplified65.5%
associate-*l/75.1%
Applied egg-rr75.1%
Taylor expanded in y around 0 83.6%
if -0.00530000000000000002 < b < 9.8000000000000007Initial program 98.3%
associate-*l/92.2%
*-commutative92.2%
+-commutative92.2%
associate--l+92.2%
exp-sum74.7%
*-commutative74.7%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff75.4%
*-commutative75.4%
exp-to-pow75.4%
Simplified75.4%
Taylor expanded in t around 0 61.2%
times-frac67.2%
Simplified67.2%
Taylor expanded in b around 0 61.2%
times-frac67.2%
Simplified67.2%
if 9.8000000000000007 < b Initial program 100.0%
Taylor expanded in y around 0 89.8%
Taylor expanded in t around 0 84.7%
*-commutative84.7%
mul-1-neg84.7%
Simplified84.7%
associate-/l*77.8%
associate-/r/84.7%
exp-diff84.7%
add-sqr-sqrt36.3%
sqrt-unprod84.7%
sqr-neg84.7%
sqrt-unprod48.4%
add-sqr-sqrt84.8%
add-exp-log84.8%
Applied egg-rr84.8%
Final simplification75.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.7e-18) (/ (/ x (exp b)) y) (if (<= b 3.8e-72) (* (/ x a) (/ 1.0 y)) (* x (/ (/ a (exp b)) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.7e-18) {
tmp = (x / exp(b)) / y;
} else if (b <= 3.8e-72) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x * ((a / exp(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 (b <= (-1.7d-18)) then
tmp = (x / exp(b)) / y
else if (b <= 3.8d-72) then
tmp = (x / a) * (1.0d0 / y)
else
tmp = x * ((a / exp(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 (b <= -1.7e-18) {
tmp = (x / Math.exp(b)) / y;
} else if (b <= 3.8e-72) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x * ((a / Math.exp(b)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.7e-18: tmp = (x / math.exp(b)) / y elif b <= 3.8e-72: tmp = (x / a) * (1.0 / y) else: tmp = x * ((a / math.exp(b)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.7e-18) tmp = Float64(Float64(x / exp(b)) / y); elseif (b <= 3.8e-72) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); else tmp = Float64(x * Float64(Float64(a / exp(b)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.7e-18) tmp = (x / exp(b)) / y; elseif (b <= 3.8e-72) tmp = (x / a) * (1.0 / y); else tmp = x * ((a / exp(b)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.7e-18], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.8e-72], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(a / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.7 \cdot 10^{-18}:\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-72}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{a}{e^{b}}}{y}\\
\end{array}
\end{array}
if b < -1.70000000000000001e-18Initial program 98.7%
Taylor expanded in y around 0 89.7%
Taylor expanded in b around inf 79.3%
neg-mul-179.3%
Simplified79.3%
exp-neg79.3%
un-div-inv79.3%
Applied egg-rr79.3%
if -1.70000000000000001e-18 < b < 3.80000000000000002e-72Initial program 98.1%
associate-*l/92.9%
*-commutative92.9%
+-commutative92.9%
associate--l+92.9%
exp-sum75.8%
*-commutative75.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
exp-diff76.6%
*-commutative76.6%
exp-to-pow76.6%
Simplified76.6%
Taylor expanded in t around 0 62.9%
times-frac69.0%
Simplified69.0%
Taylor expanded in b around 0 62.9%
times-frac69.0%
Simplified69.0%
Taylor expanded in y around 0 45.1%
if 3.80000000000000002e-72 < b Initial program 100.0%
Taylor expanded in y around 0 88.6%
Taylor expanded in t around 0 77.3%
*-commutative77.3%
mul-1-neg77.3%
Simplified77.3%
associate-/l*70.3%
associate-/r/76.1%
exp-diff76.1%
add-sqr-sqrt30.6%
sqrt-unprod76.6%
sqr-neg76.6%
sqrt-unprod46.0%
add-sqr-sqrt77.8%
add-exp-log77.8%
Applied egg-rr77.8%
Final simplification64.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.7e-18) (not (<= b 1.65e-19))) (/ (/ x (exp b)) y) (* (/ x a) (/ 1.0 y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.7e-18) || !(b <= 1.65e-19)) {
tmp = (x / exp(b)) / y;
} else {
tmp = (x / a) * (1.0 / 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 ((b <= (-1.7d-18)) .or. (.not. (b <= 1.65d-19))) then
tmp = (x / exp(b)) / y
else
tmp = (x / a) * (1.0d0 / 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 ((b <= -1.7e-18) || !(b <= 1.65e-19)) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = (x / a) * (1.0 / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.7e-18) or not (b <= 1.65e-19): tmp = (x / math.exp(b)) / y else: tmp = (x / a) * (1.0 / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.7e-18) || !(b <= 1.65e-19)) tmp = Float64(Float64(x / exp(b)) / y); else tmp = Float64(Float64(x / a) * Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.7e-18) || ~((b <= 1.65e-19))) tmp = (x / exp(b)) / y; else tmp = (x / a) * (1.0 / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.7e-18], N[Not[LessEqual[b, 1.65e-19]], $MachinePrecision]], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.7 \cdot 10^{-18} \lor \neg \left(b \leq 1.65 \cdot 10^{-19}\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\end{array}
\end{array}
if b < -1.70000000000000001e-18 or 1.6499999999999999e-19 < b Initial program 99.3%
Taylor expanded in y around 0 89.1%
Taylor expanded in b around inf 81.8%
neg-mul-181.8%
Simplified81.8%
exp-neg81.8%
un-div-inv81.8%
Applied egg-rr81.8%
if -1.70000000000000001e-18 < b < 1.6499999999999999e-19Initial program 98.3%
associate-*l/92.7%
*-commutative92.7%
+-commutative92.7%
associate--l+92.7%
exp-sum75.3%
*-commutative75.3%
exp-to-pow76.0%
sub-neg76.0%
metadata-eval76.0%
exp-diff76.0%
*-commutative76.0%
exp-to-pow76.0%
Simplified76.0%
Taylor expanded in t around 0 61.3%
times-frac67.5%
Simplified67.5%
Taylor expanded in b around 0 61.3%
times-frac67.5%
Simplified67.5%
Taylor expanded in y around 0 44.1%
Final simplification64.0%
(FPCore (x y z t a b) :precision binary64 (if (<= t 1.25e-6) (/ (/ x (* y (exp b))) a) (/ (/ a (/ (exp b) x)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 1.25e-6) {
tmp = (x / (y * exp(b))) / a;
} else {
tmp = (a / (exp(b) / x)) / 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.25d-6) then
tmp = (x / (y * exp(b))) / a
else
tmp = (a / (exp(b) / x)) / 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.25e-6) {
tmp = (x / (y * Math.exp(b))) / a;
} else {
tmp = (a / (Math.exp(b) / x)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 1.25e-6: tmp = (x / (y * math.exp(b))) / a else: tmp = (a / (math.exp(b) / x)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 1.25e-6) tmp = Float64(Float64(x / Float64(y * exp(b))) / a); else tmp = Float64(Float64(a / Float64(exp(b) / x)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 1.25e-6) tmp = (x / (y * exp(b))) / a; else tmp = (a / (exp(b) / x)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 1.25e-6], N[(N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(a / N[(N[Exp[b], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.25 \cdot 10^{-6}:\\
\;\;\;\;\frac{\frac{x}{y \cdot e^{b}}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{a}{\frac{e^{b}}{x}}}{y}\\
\end{array}
\end{array}
if t < 1.2500000000000001e-6Initial program 98.4%
associate-*l/90.9%
*-commutative90.9%
+-commutative90.9%
associate--l+90.9%
exp-sum82.9%
*-commutative82.9%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
exp-diff76.5%
*-commutative76.5%
exp-to-pow76.5%
Simplified76.5%
Taylor expanded in t around 0 77.4%
times-frac75.0%
Simplified75.0%
associate-*l/81.1%
Applied egg-rr81.1%
Taylor expanded in y around 0 67.5%
if 1.2500000000000001e-6 < t Initial program 100.0%
Taylor expanded in y around 0 88.6%
Taylor expanded in t around 0 48.0%
*-commutative48.0%
mul-1-neg48.0%
Simplified48.0%
expm1-log1p-u28.8%
expm1-udef36.9%
Applied egg-rr36.7%
expm1-def32.9%
expm1-log1p56.6%
associate-/l*59.5%
Simplified59.5%
Final simplification65.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.65e+139) (/ (- x (* x b)) y) (if (<= b 2.2e+81) (* (/ x a) (/ 1.0 y)) (/ (/ x (+ y (* y b))) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e+139) {
tmp = (x - (x * b)) / y;
} else if (b <= 2.2e+81) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = (x / (y + (y * b))) / 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.65d+139)) then
tmp = (x - (x * b)) / y
else if (b <= 2.2d+81) then
tmp = (x / a) * (1.0d0 / y)
else
tmp = (x / (y + (y * b))) / 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.65e+139) {
tmp = (x - (x * b)) / y;
} else if (b <= 2.2e+81) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = (x / (y + (y * b))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.65e+139: tmp = (x - (x * b)) / y elif b <= 2.2e+81: tmp = (x / a) * (1.0 / y) else: tmp = (x / (y + (y * b))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.65e+139) tmp = Float64(Float64(x - Float64(x * b)) / y); elseif (b <= 2.2e+81) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); else tmp = Float64(Float64(x / Float64(y + Float64(y * b))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.65e+139) tmp = (x - (x * b)) / y; elseif (b <= 2.2e+81) tmp = (x / a) * (1.0 / y); else tmp = (x / (y + (y * b))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e+139], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.2e+81], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{+139}:\\
\;\;\;\;\frac{x - x \cdot b}{y}\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+81}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y + y \cdot b}}{a}\\
\end{array}
\end{array}
if b < -1.6500000000000001e139Initial program 100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in b around inf 90.2%
neg-mul-190.2%
Simplified90.2%
Taylor expanded in b around 0 39.7%
associate-*r*39.7%
mul-1-neg39.7%
Simplified39.7%
if -1.6500000000000001e139 < b < 2.19999999999999987e81Initial program 98.2%
associate-*l/93.6%
*-commutative93.6%
+-commutative93.6%
associate--l+93.6%
exp-sum77.8%
*-commutative77.8%
exp-to-pow78.4%
sub-neg78.4%
metadata-eval78.4%
exp-diff73.1%
*-commutative73.1%
exp-to-pow73.1%
Simplified73.1%
Taylor expanded in t around 0 63.9%
times-frac66.0%
Simplified66.0%
Taylor expanded in b around 0 57.9%
times-frac64.5%
Simplified64.5%
Taylor expanded in y around 0 40.5%
if 2.19999999999999987e81 < b Initial program 100.0%
associate-*l/88.9%
*-commutative88.9%
+-commutative88.9%
associate--l+88.9%
exp-sum77.8%
*-commutative77.8%
exp-to-pow77.8%
sub-neg77.8%
metadata-eval77.8%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.0%
Simplified60.0%
Taylor expanded in t around 0 75.6%
times-frac66.7%
Simplified66.7%
associate-*l/75.6%
Applied egg-rr75.6%
Taylor expanded in y around 0 86.9%
Taylor expanded in b around 0 53.2%
Final simplification42.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.4e+53) (/ (* x (- (/ 1.0 a) (/ b a))) y) (/ (/ x (+ y (* y b))) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.4e+53) {
tmp = (x * ((1.0 / a) - (b / a))) / y;
} else {
tmp = (x / (y + (y * b))) / 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 <= 2.4d+53) then
tmp = (x * ((1.0d0 / a) - (b / a))) / y
else
tmp = (x / (y + (y * b))) / 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 <= 2.4e+53) {
tmp = (x * ((1.0 / a) - (b / a))) / y;
} else {
tmp = (x / (y + (y * b))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.4e+53: tmp = (x * ((1.0 / a) - (b / a))) / y else: tmp = (x / (y + (y * b))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.4e+53) tmp = Float64(Float64(x * Float64(Float64(1.0 / a) - Float64(b / a))) / y); else tmp = Float64(Float64(x / Float64(y + Float64(y * b))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.4e+53) tmp = (x * ((1.0 / a) - (b / a))) / y; else tmp = (x / (y + (y * b))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.4e+53], N[(N[(x * N[(N[(1.0 / a), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.4 \cdot 10^{+53}:\\
\;\;\;\;\frac{x \cdot \left(\frac{1}{a} - \frac{b}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y + y \cdot b}}{a}\\
\end{array}
\end{array}
if b < 2.4e53Initial program 98.5%
Taylor expanded in y around 0 78.8%
Taylor expanded in t around 0 58.0%
*-commutative58.0%
mul-1-neg58.0%
Simplified58.0%
Taylor expanded in b around 0 42.5%
mul-1-neg42.5%
unsub-neg42.5%
log-rec42.5%
rem-exp-log42.9%
log-rec42.9%
rem-exp-log42.9%
associate-*r/42.9%
*-rgt-identity42.9%
Simplified42.9%
if 2.4e53 < b Initial program 100.0%
associate-*l/90.2%
*-commutative90.2%
+-commutative90.2%
associate--l+90.2%
exp-sum78.4%
*-commutative78.4%
exp-to-pow78.4%
sub-neg78.4%
metadata-eval78.4%
exp-diff58.8%
*-commutative58.8%
exp-to-pow58.8%
Simplified58.8%
Taylor expanded in t around 0 72.6%
times-frac64.8%
Simplified64.8%
associate-*l/72.6%
Applied egg-rr72.6%
Taylor expanded in y around 0 84.6%
Taylor expanded in b around 0 47.3%
Final simplification43.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.3e+79) (/ (* (/ x a) (- 1.0 b)) y) (/ (/ x (+ y (* y b))) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.3e+79) {
tmp = ((x / a) * (1.0 - b)) / y;
} else {
tmp = (x / (y + (y * b))) / 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 <= 2.3d+79) then
tmp = ((x / a) * (1.0d0 - b)) / y
else
tmp = (x / (y + (y * b))) / 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 <= 2.3e+79) {
tmp = ((x / a) * (1.0 - b)) / y;
} else {
tmp = (x / (y + (y * b))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.3e+79: tmp = ((x / a) * (1.0 - b)) / y else: tmp = (x / (y + (y * b))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.3e+79) tmp = Float64(Float64(Float64(x / a) * Float64(1.0 - b)) / y); else tmp = Float64(Float64(x / Float64(y + Float64(y * b))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.3e+79) tmp = ((x / a) * (1.0 - b)) / y; else tmp = (x / (y + (y * b))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.3e+79], N[(N[(N[(x / a), $MachinePrecision] * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.3 \cdot 10^{+79}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(1 - b\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y + y \cdot b}}{a}\\
\end{array}
\end{array}
if b < 2.3e79Initial program 98.5%
Taylor expanded in y around 0 78.5%
Taylor expanded in t around 0 58.2%
*-commutative58.2%
mul-1-neg58.2%
Simplified58.2%
Taylor expanded in b around 0 38.0%
associate-*r*38.0%
neg-mul-138.0%
distribute-lft1-in41.3%
log-rec41.3%
rem-exp-log41.7%
associate-*r/41.7%
*-rgt-identity41.7%
Simplified41.7%
if 2.3e79 < b Initial program 100.0%
associate-*l/88.9%
*-commutative88.9%
+-commutative88.9%
associate--l+88.9%
exp-sum77.8%
*-commutative77.8%
exp-to-pow77.8%
sub-neg77.8%
metadata-eval77.8%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.0%
Simplified60.0%
Taylor expanded in t around 0 75.6%
times-frac66.7%
Simplified66.7%
associate-*l/75.6%
Applied egg-rr75.6%
Taylor expanded in y around 0 86.9%
Taylor expanded in b around 0 53.2%
Final simplification43.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t 1.9e+43) (* (/ x a) (/ 1.0 y)) (/ x (/ y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 1.9e+43) {
tmp = (x / a) * (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 (t <= 1.9d+43) then
tmp = (x / a) * (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 (t <= 1.9e+43) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 1.9e+43: tmp = (x / a) * (1.0 / y) else: tmp = x / (y / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 1.9e+43) tmp = Float64(Float64(x / a) * 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 (t <= 1.9e+43) tmp = (x / a) * (1.0 / y); else tmp = x / (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 1.9e+43], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.9 \cdot 10^{+43}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{a}}\\
\end{array}
\end{array}
if t < 1.90000000000000004e43Initial program 98.5%
associate-*l/90.6%
*-commutative90.6%
+-commutative90.6%
associate--l+90.6%
exp-sum79.6%
*-commutative79.6%
exp-to-pow80.1%
sub-neg80.1%
metadata-eval80.1%
exp-diff73.1%
*-commutative73.1%
exp-to-pow73.1%
Simplified73.1%
Taylor expanded in t around 0 77.4%
times-frac74.8%
Simplified74.8%
Taylor expanded in b around 0 58.5%
times-frac61.1%
Simplified61.1%
Taylor expanded in y around 0 38.4%
if 1.90000000000000004e43 < t Initial program 100.0%
associate-*l/89.1%
*-commutative89.1%
+-commutative89.1%
associate--l+89.1%
exp-sum54.5%
*-commutative54.5%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
exp-diff43.6%
*-commutative43.6%
exp-to-pow43.6%
Simplified43.6%
Taylor expanded in t around 0 33.8%
times-frac33.9%
Simplified33.9%
Taylor expanded in b around 0 32.2%
times-frac41.3%
Simplified41.3%
Taylor expanded in y around 0 11.9%
un-div-inv11.9%
div-inv11.9%
associate-/l*11.9%
rem-exp-log11.9%
neg-log11.9%
add-sqr-sqrt7.2%
sqrt-unprod18.1%
sqr-neg18.1%
sqrt-unprod10.9%
add-sqr-sqrt35.3%
add-exp-log35.3%
Applied egg-rr35.3%
Final simplification37.8%
(FPCore (x y z t a b) :precision binary64 (if (<= t 8.5e-7) (/ x (* y a)) (* x (/ a y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 8.5e-7) {
tmp = x / (y * a);
} else {
tmp = x * (a / 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 <= 8.5d-7) then
tmp = x / (y * a)
else
tmp = x * (a / 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 <= 8.5e-7) {
tmp = x / (y * a);
} else {
tmp = x * (a / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 8.5e-7: tmp = x / (y * a) else: tmp = x * (a / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 8.5e-7) tmp = Float64(x / Float64(y * a)); else tmp = Float64(x * Float64(a / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 8.5e-7) tmp = x / (y * a); else tmp = x * (a / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 8.5e-7], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8.5 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{a}{y}\\
\end{array}
\end{array}
if t < 8.50000000000000014e-7Initial program 98.4%
associate-*l/90.9%
*-commutative90.9%
+-commutative90.9%
associate--l+90.9%
exp-sum82.9%
*-commutative82.9%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
exp-diff76.5%
*-commutative76.5%
exp-to-pow76.5%
Simplified76.5%
Taylor expanded in t around 0 77.4%
times-frac75.0%
Simplified75.0%
Taylor expanded in b around 0 59.0%
times-frac62.4%
Simplified62.4%
Taylor expanded in y around 0 38.7%
*-commutative38.7%
Simplified38.7%
if 8.50000000000000014e-7 < t Initial program 100.0%
associate-*l/88.4%
*-commutative88.4%
+-commutative88.4%
associate--l+88.4%
exp-sum50.7%
*-commutative50.7%
exp-to-pow50.7%
sub-neg50.7%
metadata-eval50.7%
exp-diff40.6%
*-commutative40.6%
exp-to-pow40.6%
Simplified40.6%
Taylor expanded in t around 0 42.9%
times-frac41.5%
Simplified41.5%
Taylor expanded in b around 0 36.1%
times-frac41.9%
Simplified41.9%
Taylor expanded in y around 0 14.3%
expm1-log1p-u10.8%
expm1-udef28.6%
associate-*l/28.5%
div-inv28.5%
div-inv28.5%
rem-exp-log28.5%
neg-log28.5%
add-sqr-sqrt19.2%
sqrt-unprod30.0%
sqr-neg30.0%
sqrt-unprod10.8%
add-sqr-sqrt35.7%
add-exp-log35.7%
Applied egg-rr35.7%
expm1-def24.7%
expm1-log1p28.4%
*-commutative28.4%
*-rgt-identity28.4%
associate-*r/28.4%
associate-*l*31.7%
*-commutative31.7%
associate-*l*30.3%
associate-*r/30.3%
*-rgt-identity30.3%
Simplified30.3%
Final simplification36.5%
(FPCore (x y z t a b) :precision binary64 (if (<= t 7e-7) (/ x (* y a)) (/ x (/ y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 7e-7) {
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 (t <= 7d-7) 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 (t <= 7e-7) {
tmp = x / (y * a);
} else {
tmp = x / (y / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 7e-7: tmp = x / (y * a) else: tmp = x / (y / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 7e-7) tmp = Float64(x / Float64(y * a)); 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 (t <= 7e-7) tmp = x / (y * a); else tmp = x / (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 7e-7], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{a}}\\
\end{array}
\end{array}
if t < 6.99999999999999968e-7Initial program 98.4%
associate-*l/90.9%
*-commutative90.9%
+-commutative90.9%
associate--l+90.9%
exp-sum82.9%
*-commutative82.9%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
exp-diff76.5%
*-commutative76.5%
exp-to-pow76.5%
Simplified76.5%
Taylor expanded in t around 0 77.4%
times-frac75.0%
Simplified75.0%
Taylor expanded in b around 0 59.0%
times-frac62.4%
Simplified62.4%
Taylor expanded in y around 0 38.7%
*-commutative38.7%
Simplified38.7%
if 6.99999999999999968e-7 < t Initial program 100.0%
associate-*l/88.4%
*-commutative88.4%
+-commutative88.4%
associate--l+88.4%
exp-sum50.7%
*-commutative50.7%
exp-to-pow50.7%
sub-neg50.7%
metadata-eval50.7%
exp-diff40.6%
*-commutative40.6%
exp-to-pow40.6%
Simplified40.6%
Taylor expanded in t around 0 42.9%
times-frac41.5%
Simplified41.5%
Taylor expanded in b around 0 36.1%
times-frac41.9%
Simplified41.9%
Taylor expanded in y around 0 14.3%
un-div-inv14.3%
div-inv14.3%
associate-/l*12.9%
rem-exp-log12.9%
neg-log12.9%
add-sqr-sqrt5.9%
sqrt-unprod17.9%
sqr-neg17.9%
sqrt-unprod12.0%
add-sqr-sqrt31.7%
add-exp-log31.7%
Applied egg-rr31.7%
Final simplification36.8%
(FPCore (x y z t a b) :precision binary64 (if (<= t 1.25e-6) (/ x (* y a)) (/ (* x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 1.25e-6) {
tmp = x / (y * a);
} else {
tmp = (x * a) / 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.25d-6) then
tmp = x / (y * a)
else
tmp = (x * a) / 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.25e-6) {
tmp = x / (y * a);
} else {
tmp = (x * a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 1.25e-6: tmp = x / (y * a) else: tmp = (x * a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 1.25e-6) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x * a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 1.25e-6) tmp = x / (y * a); else tmp = (x * a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 1.25e-6], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.25 \cdot 10^{-6}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot a}{y}\\
\end{array}
\end{array}
if t < 1.2500000000000001e-6Initial program 98.4%
associate-*l/90.9%
*-commutative90.9%
+-commutative90.9%
associate--l+90.9%
exp-sum82.9%
*-commutative82.9%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
exp-diff76.5%
*-commutative76.5%
exp-to-pow76.5%
Simplified76.5%
Taylor expanded in t around 0 77.4%
times-frac75.0%
Simplified75.0%
Taylor expanded in b around 0 59.0%
times-frac62.4%
Simplified62.4%
Taylor expanded in y around 0 38.7%
*-commutative38.7%
Simplified38.7%
if 1.2500000000000001e-6 < t Initial program 100.0%
associate-*l/88.4%
*-commutative88.4%
+-commutative88.4%
associate--l+88.4%
exp-sum50.7%
*-commutative50.7%
exp-to-pow50.7%
sub-neg50.7%
metadata-eval50.7%
exp-diff40.6%
*-commutative40.6%
exp-to-pow40.6%
Simplified40.6%
Taylor expanded in t around 0 42.9%
times-frac41.5%
Simplified41.5%
Taylor expanded in b around 0 36.1%
times-frac41.9%
Simplified41.9%
Taylor expanded in y around 0 14.3%
un-div-inv14.3%
clear-num14.3%
associate-/r/14.3%
rem-exp-log14.3%
neg-log14.3%
add-sqr-sqrt8.7%
sqrt-unprod24.8%
sqr-neg24.8%
sqrt-unprod16.1%
add-sqr-sqrt31.7%
add-exp-log31.7%
Applied egg-rr31.7%
Final simplification36.8%
(FPCore (x y z t a b) :precision binary64 (if (<= t 2.26e+46) (/ (/ x a) y) (/ x (/ y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 2.26e+46) {
tmp = (x / a) / 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 (t <= 2.26d+46) then
tmp = (x / a) / 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 (t <= 2.26e+46) {
tmp = (x / a) / y;
} else {
tmp = x / (y / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 2.26e+46: tmp = (x / a) / y else: tmp = x / (y / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 2.26e+46) tmp = Float64(Float64(x / a) / 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 (t <= 2.26e+46) tmp = (x / a) / y; else tmp = x / (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 2.26e+46], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.26 \cdot 10^{+46}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{a}}\\
\end{array}
\end{array}
if t < 2.2599999999999999e46Initial program 98.5%
Taylor expanded in y around 0 77.9%
Taylor expanded in b around 0 54.4%
*-commutative54.4%
exp-to-pow54.8%
sub-neg54.8%
metadata-eval54.8%
+-commutative54.8%
Simplified54.8%
Taylor expanded in t around 0 38.4%
if 2.2599999999999999e46 < t Initial program 100.0%
associate-*l/89.1%
*-commutative89.1%
+-commutative89.1%
associate--l+89.1%
exp-sum54.5%
*-commutative54.5%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
exp-diff43.6%
*-commutative43.6%
exp-to-pow43.6%
Simplified43.6%
Taylor expanded in t around 0 33.8%
times-frac33.9%
Simplified33.9%
Taylor expanded in b around 0 32.2%
times-frac41.3%
Simplified41.3%
Taylor expanded in y around 0 11.9%
un-div-inv11.9%
div-inv11.9%
associate-/l*11.9%
rem-exp-log11.9%
neg-log11.9%
add-sqr-sqrt7.2%
sqrt-unprod18.1%
sqr-neg18.1%
sqrt-unprod10.9%
add-sqr-sqrt35.3%
add-exp-log35.3%
Applied egg-rr35.3%
Final simplification37.7%
(FPCore (x y z t a b) :precision binary64 (* a (/ x y)))
double code(double x, double y, double z, double t, double a, double b) {
return a * (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 = a * (x / y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a * (x / y);
}
def code(x, y, z, t, a, b): return a * (x / y)
function code(x, y, z, t, a, b) return Float64(a * Float64(x / y)) end
function tmp = code(x, y, z, t, a, b) tmp = a * (x / y); end
code[x_, y_, z_, t_, a_, b_] := N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \frac{x}{y}
\end{array}
Initial program 98.8%
associate-*l/90.2%
*-commutative90.2%
+-commutative90.2%
associate--l+90.2%
exp-sum74.2%
*-commutative74.2%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
exp-diff66.8%
*-commutative66.8%
exp-to-pow66.8%
Simplified66.8%
Taylor expanded in t around 0 68.1%
times-frac66.0%
Simplified66.0%
Taylor expanded in b around 0 52.8%
times-frac56.9%
Simplified56.9%
Taylor expanded in y around 0 32.7%
expm1-log1p-u22.3%
expm1-udef34.8%
associate-*l/33.5%
div-inv33.5%
div-inv33.5%
rem-exp-log33.5%
neg-log33.5%
add-sqr-sqrt11.7%
sqrt-unprod24.3%
sqr-neg24.3%
sqrt-unprod12.6%
add-sqr-sqrt28.7%
add-exp-log28.7%
Applied egg-rr28.7%
expm1-def17.6%
expm1-log1p21.4%
*-commutative21.4%
Simplified21.4%
Final simplification21.4%
(FPCore (x y z t a b) :precision binary64 (* x (/ a y)))
double code(double x, double y, double z, double t, double a, double b) {
return x * (a / 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 * (a / y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * (a / y);
}
def code(x, y, z, t, a, b): return x * (a / y)
function code(x, y, z, t, a, b) return Float64(x * Float64(a / y)) end
function tmp = code(x, y, z, t, a, b) tmp = x * (a / y); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{a}{y}
\end{array}
Initial program 98.8%
associate-*l/90.2%
*-commutative90.2%
+-commutative90.2%
associate--l+90.2%
exp-sum74.2%
*-commutative74.2%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
exp-diff66.8%
*-commutative66.8%
exp-to-pow66.8%
Simplified66.8%
Taylor expanded in t around 0 68.1%
times-frac66.0%
Simplified66.0%
Taylor expanded in b around 0 52.8%
times-frac56.9%
Simplified56.9%
Taylor expanded in y around 0 32.7%
expm1-log1p-u22.3%
expm1-udef34.8%
associate-*l/33.5%
div-inv33.5%
div-inv33.5%
rem-exp-log33.5%
neg-log33.5%
add-sqr-sqrt11.7%
sqrt-unprod24.3%
sqr-neg24.3%
sqrt-unprod12.6%
add-sqr-sqrt28.7%
add-exp-log28.7%
Applied egg-rr28.7%
expm1-def17.6%
expm1-log1p21.4%
*-commutative21.4%
*-rgt-identity21.4%
associate-*r/21.4%
associate-*l*21.9%
*-commutative21.9%
associate-*l*21.5%
associate-*r/21.5%
*-rgt-identity21.5%
Simplified21.5%
Final simplification21.5%
(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.8%
Taylor expanded in y around 0 81.1%
Taylor expanded in b around inf 52.3%
neg-mul-152.3%
Simplified52.3%
Taylor expanded in b around 0 16.0%
Final simplification16.0%
(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 2024024
(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))