
(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 26 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)) (- (* (log a) t) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((log(a) * t) - 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)) + ((log(a) * t) - 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)) + ((Math.log(a) * t) - Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((math.log(a) * t) - 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(log(a) * t) - log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((log(a) * t) - 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[(N[Log[a], $MachinePrecision] * t), $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(\log a \cdot t - \log a\right)\right) - b}}{y}
\end{array}
Initial program 97.4%
sub-neg97.4%
metadata-eval97.4%
*-commutative97.4%
distribute-lft-in97.4%
Applied egg-rr97.4%
Final simplification97.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -1e+216) (not (<= (+ t -1.0) 400000000.0))) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+216) || !((t + -1.0) <= 400000000.0)) {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-1d+216)) .or. (.not. ((t + (-1.0d0)) <= 400000000.0d0))) then
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+216) || !((t + -1.0) <= 400000000.0)) {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -1e+216) or not ((t + -1.0) <= 400000000.0): tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -1e+216) || !(Float64(t + -1.0) <= 400000000.0)) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -1e+216) || ~(((t + -1.0) <= 400000000.0))) tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -1e+216], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 400000000.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -1 \cdot 10^{+216} \lor \neg \left(t + -1 \leq 400000000\right):\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -1e216 or 4e8 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
Taylor expanded in y around 0 98.8%
if -1e216 < (-.f64 t #s(literal 1 binary64)) < 4e8Initial program 96.2%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Final simplification95.2%
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + (log(a) * (t + (-1.0d0)))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 97.4%
Final simplification97.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.38e-14) (not (<= b 5500000000000.0))) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y) (/ (* (* x (pow z y)) (/ (pow a t) a)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.38e-14) || !(b <= 5500000000000.0)) {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = ((x * pow(z, y)) * (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.38d-14)) .or. (.not. (b <= 5500000000000.0d0))) then
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
else
tmp = ((x * (z ** y)) * ((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.38e-14) || !(b <= 5500000000000.0)) {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = ((x * Math.pow(z, y)) * (Math.pow(a, t) / a)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.38e-14) or not (b <= 5500000000000.0): tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y else: tmp = ((x * math.pow(z, y)) * (math.pow(a, t) / a)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.38e-14) || !(b <= 5500000000000.0)) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); else tmp = Float64(Float64(Float64(x * (z ^ y)) * 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.38e-14) || ~((b <= 5500000000000.0))) tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; else tmp = ((x * (z ^ y)) * ((a ^ t) / a)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.38e-14], N[Not[LessEqual[b, 5500000000000.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.38 \cdot 10^{-14} \lor \neg \left(b \leq 5500000000000\right):\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x \cdot {z}^{y}\right) \cdot \frac{{a}^{t}}{a}}{y}\\
\end{array}
\end{array}
if b < -1.38000000000000002e-14 or 5.5e12 < b Initial program 99.8%
Taylor expanded in y around 0 91.2%
if -1.38000000000000002e-14 < b < 5.5e12Initial program 94.7%
associate-/l*96.0%
associate--l+96.0%
exp-sum90.1%
associate-/l*88.4%
*-commutative88.4%
exp-to-pow88.4%
exp-diff87.6%
*-commutative87.6%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in b around 0 89.4%
*-commutative89.4%
exp-to-pow90.6%
sub-neg90.6%
metadata-eval90.6%
associate-*l*90.6%
Simplified90.6%
unpow-prod-up90.7%
unpow-190.7%
Applied egg-rr90.7%
associate-*r/90.7%
*-rgt-identity90.7%
Simplified90.7%
Final simplification91.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5.7e+229) (not (<= y 6e+139))) (* x (/ (/ (pow z y) a) y)) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -5.7e+229) || !(y <= 6e+139)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - 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 <= (-5.7d+229)) .or. (.not. (y <= 6d+139))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - 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 <= -5.7e+229) || !(y <= 6e+139)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -5.7e+229) or not (y <= 6e+139): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -5.7e+229) || !(y <= 6e+139)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -5.7e+229) || ~((y <= 6e+139))) tmp = x * (((z ^ y) / a) / y); else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -5.7e+229], N[Not[LessEqual[y, 6e+139]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.7 \cdot 10^{+229} \lor \neg \left(y \leq 6 \cdot 10^{+139}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -5.69999999999999947e229 or 5.9999999999999999e139 < y Initial program 100.0%
sub-neg100.0%
metadata-eval100.0%
*-commutative100.0%
distribute-lft-in100.0%
Applied egg-rr100.0%
Taylor expanded in t around 0 96.0%
Simplified61.2%
Taylor expanded in b around 0 69.5%
associate-/r*92.0%
associate-*r/92.0%
associate-*r/92.0%
Simplified92.0%
if -5.69999999999999947e229 < y < 5.9999999999999999e139Initial program 96.8%
Taylor expanded in y around 0 90.7%
Final simplification91.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6e+105) (not (<= y 0.0069))) (* x (/ (/ (pow z y) a) y)) (* x (/ (pow a (+ t -1.0)) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6e+105) || !(y <= 0.0069)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = x * (pow(a, (t + -1.0)) / (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 ((y <= (-6d+105)) .or. (.not. (y <= 0.0069d0))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = x * ((a ** (t + (-1.0d0))) / (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 ((y <= -6e+105) || !(y <= 0.0069)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6e+105) or not (y <= 0.0069): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = x * (math.pow(a, (t + -1.0)) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6e+105) || !(y <= 0.0069)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -6e+105) || ~((y <= 0.0069))) tmp = x * (((z ^ y) / a) / y); else tmp = x * ((a ^ (t + -1.0)) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6e+105], N[Not[LessEqual[y, 0.0069]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+105} \lor \neg \left(y \leq 0.0069\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -6.0000000000000001e105 or 0.0068999999999999999 < y Initial program 100.0%
sub-neg100.0%
metadata-eval100.0%
*-commutative100.0%
distribute-lft-in100.0%
Applied egg-rr100.0%
Taylor expanded in t around 0 93.2%
Simplified60.4%
Taylor expanded in b around 0 68.6%
associate-/r*82.5%
associate-*r/82.5%
associate-*r/82.5%
Simplified82.5%
if -6.0000000000000001e105 < y < 0.0068999999999999999Initial program 95.8%
associate-/l*96.3%
associate--l+96.3%
exp-sum89.8%
associate-/l*89.8%
*-commutative89.8%
exp-to-pow89.8%
exp-diff82.1%
*-commutative82.1%
exp-to-pow83.3%
sub-neg83.3%
metadata-eval83.3%
Simplified83.3%
Taylor expanded in y around 0 81.7%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
associate-*r/85.9%
Simplified85.9%
Final simplification84.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a (+ t -1.0)) y))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -4.8e+86)
t_2
(if (<= b -4.2e-226)
t_1
(if (<= b 1.85e-80)
(/ (/ (* x (pow z y)) a) y)
(if (<= b 5.7e+26) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (pow(a, (t + -1.0)) / y);
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -4.8e+86) {
tmp = t_2;
} else if (b <= -4.2e-226) {
tmp = t_1;
} else if (b <= 1.85e-80) {
tmp = ((x * pow(z, y)) / a) / y;
} else if (b <= 5.7e+26) {
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 = x * ((a ** (t + (-1.0d0))) / y)
t_2 = x / (a * (y * exp(b)))
if (b <= (-4.8d+86)) then
tmp = t_2
else if (b <= (-4.2d-226)) then
tmp = t_1
else if (b <= 1.85d-80) then
tmp = ((x * (z ** y)) / a) / y
else if (b <= 5.7d+26) 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 = x * (Math.pow(a, (t + -1.0)) / y);
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -4.8e+86) {
tmp = t_2;
} else if (b <= -4.2e-226) {
tmp = t_1;
} else if (b <= 1.85e-80) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else if (b <= 5.7e+26) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.pow(a, (t + -1.0)) / y) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -4.8e+86: tmp = t_2 elif b <= -4.2e-226: tmp = t_1 elif b <= 1.85e-80: tmp = ((x * math.pow(z, y)) / a) / y elif b <= 5.7e+26: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -4.8e+86) tmp = t_2; elseif (b <= -4.2e-226) tmp = t_1; elseif (b <= 1.85e-80) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); elseif (b <= 5.7e+26) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * ((a ^ (t + -1.0)) / y); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -4.8e+86) tmp = t_2; elseif (b <= -4.2e-226) tmp = t_1; elseif (b <= 1.85e-80) tmp = ((x * (z ^ y)) / a) / y; elseif (b <= 5.7e+26) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.8e+86], t$95$2, If[LessEqual[b, -4.2e-226], t$95$1, If[LessEqual[b, 1.85e-80], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.7e+26], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{+86}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-226}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{-80}:\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -4.8000000000000001e86 or 5.7000000000000003e26 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff56.6%
*-commutative56.6%
exp-to-pow56.6%
sub-neg56.6%
metadata-eval56.6%
Simplified56.6%
Taylor expanded in y around 0 67.3%
exp-to-pow67.3%
sub-neg67.3%
metadata-eval67.3%
associate-*r/72.6%
Simplified72.6%
Taylor expanded in t around 0 88.7%
if -4.8000000000000001e86 < b < -4.2000000000000003e-226 or 1.85000000000000016e-80 < b < 5.7000000000000003e26Initial program 93.8%
associate-/l*96.6%
associate--l+96.6%
exp-sum85.3%
associate-/l*84.2%
*-commutative84.2%
exp-to-pow84.2%
exp-diff78.6%
*-commutative78.6%
exp-to-pow79.9%
sub-neg79.9%
metadata-eval79.9%
Simplified79.9%
Taylor expanded in y around 0 69.6%
exp-to-pow70.5%
sub-neg70.5%
metadata-eval70.5%
associate-*r/72.4%
Simplified72.4%
Taylor expanded in b around 0 79.3%
if -4.2000000000000003e-226 < b < 1.85000000000000016e-80Initial program 98.1%
associate-/l*95.0%
associate--l+95.0%
exp-sum83.9%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff82.0%
*-commutative82.0%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in b around 0 87.0%
*-commutative87.0%
exp-to-pow88.5%
sub-neg88.5%
metadata-eval88.5%
associate-*l*88.5%
Simplified88.5%
Taylor expanded in t around 0 90.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -3.7e+87)
t_1
(if (<= b -8.8e-159)
(/ (* x (/ (pow a t) a)) y)
(if (<= b 2.5e+34) (* x (/ (/ (pow z y) a) y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double tmp;
if (b <= -3.7e+87) {
tmp = t_1;
} else if (b <= -8.8e-159) {
tmp = (x * (pow(a, t) / a)) / y;
} else if (b <= 2.5e+34) {
tmp = x * ((pow(z, y) / a) / 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 * (y * exp(b)))
if (b <= (-3.7d+87)) then
tmp = t_1
else if (b <= (-8.8d-159)) then
tmp = (x * ((a ** t) / a)) / y
else if (b <= 2.5d+34) then
tmp = x * (((z ** y) / a) / 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 / (a * (y * Math.exp(b)));
double tmp;
if (b <= -3.7e+87) {
tmp = t_1;
} else if (b <= -8.8e-159) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else if (b <= 2.5e+34) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -3.7e+87: tmp = t_1 elif b <= -8.8e-159: tmp = (x * (math.pow(a, t) / a)) / y elif b <= 2.5e+34: tmp = x * ((math.pow(z, y) / a) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -3.7e+87) tmp = t_1; elseif (b <= -8.8e-159) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); elseif (b <= 2.5e+34) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -3.7e+87) tmp = t_1; elseif (b <= -8.8e-159) tmp = (x * ((a ^ t) / a)) / y; elseif (b <= 2.5e+34) tmp = x * (((z ^ y) / a) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e+87], t$95$1, If[LessEqual[b, -8.8e-159], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.5e+34], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-159}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+34}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.70000000000000003e87 or 2.4999999999999999e34 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.7%
associate-/l*75.7%
*-commutative75.7%
exp-to-pow75.7%
exp-diff57.7%
*-commutative57.7%
exp-to-pow57.7%
sub-neg57.7%
metadata-eval57.7%
Simplified57.7%
Taylor expanded in y around 0 68.5%
exp-to-pow68.5%
sub-neg68.5%
metadata-eval68.5%
associate-*r/74.0%
Simplified74.0%
Taylor expanded in t around 0 89.4%
if -3.70000000000000003e87 < b < -8.8e-159Initial program 97.0%
associate-/l*95.4%
associate--l+95.4%
exp-sum83.9%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff74.3%
*-commutative74.3%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in y around 0 74.2%
exp-to-pow75.3%
sub-neg75.3%
metadata-eval75.3%
associate-*r/69.9%
Simplified69.9%
Taylor expanded in b around 0 78.9%
sub-neg78.9%
metadata-eval78.9%
pow-to-exp79.6%
unpow-prod-up79.6%
inv-pow79.6%
Applied egg-rr79.6%
associate-*r/79.6%
*-rgt-identity79.6%
Simplified79.6%
if -8.8e-159 < b < 2.4999999999999999e34Initial program 94.7%
sub-neg94.7%
metadata-eval94.7%
*-commutative94.7%
distribute-lft-in94.7%
Applied egg-rr94.7%
Taylor expanded in t around 0 75.9%
Simplified72.4%
Taylor expanded in b around 0 74.4%
associate-/r*76.7%
associate-*r/76.7%
associate-*r/79.7%
Simplified79.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -1.06e+82)
t_1
(if (<= b -1.25e-230)
(* x (/ (pow a (+ t -1.0)) y))
(if (<= b 7.5e+33) (* x (/ (/ (pow z y) a) y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double tmp;
if (b <= -1.06e+82) {
tmp = t_1;
} else if (b <= -1.25e-230) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else if (b <= 7.5e+33) {
tmp = x * ((pow(z, y) / a) / 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 * (y * exp(b)))
if (b <= (-1.06d+82)) then
tmp = t_1
else if (b <= (-1.25d-230)) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else if (b <= 7.5d+33) then
tmp = x * (((z ** y) / a) / 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 / (a * (y * Math.exp(b)));
double tmp;
if (b <= -1.06e+82) {
tmp = t_1;
} else if (b <= -1.25e-230) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else if (b <= 7.5e+33) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -1.06e+82: tmp = t_1 elif b <= -1.25e-230: tmp = x * (math.pow(a, (t + -1.0)) / y) elif b <= 7.5e+33: tmp = x * ((math.pow(z, y) / a) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -1.06e+82) tmp = t_1; elseif (b <= -1.25e-230) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); elseif (b <= 7.5e+33) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -1.06e+82) tmp = t_1; elseif (b <= -1.25e-230) tmp = x * ((a ^ (t + -1.0)) / y); elseif (b <= 7.5e+33) tmp = x * (((z ^ y) / a) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.06e+82], t$95$1, If[LessEqual[b, -1.25e-230], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e+33], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -1.06 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{-230}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+33}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.06000000000000006e82 or 7.50000000000000046e33 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.7%
associate-/l*75.7%
*-commutative75.7%
exp-to-pow75.7%
exp-diff57.7%
*-commutative57.7%
exp-to-pow57.7%
sub-neg57.7%
metadata-eval57.7%
Simplified57.7%
Taylor expanded in y around 0 68.5%
exp-to-pow68.5%
sub-neg68.5%
metadata-eval68.5%
associate-*r/74.0%
Simplified74.0%
Taylor expanded in t around 0 89.4%
if -1.06000000000000006e82 < b < -1.25000000000000009e-230Initial program 93.7%
associate-/l*96.0%
associate--l+96.0%
exp-sum87.3%
associate-/l*85.8%
*-commutative85.8%
exp-to-pow85.8%
exp-diff80.0%
*-commutative80.0%
exp-to-pow81.3%
sub-neg81.3%
metadata-eval81.3%
Simplified81.3%
Taylor expanded in y around 0 71.0%
exp-to-pow72.0%
sub-neg72.0%
metadata-eval72.0%
associate-*r/73.1%
Simplified73.1%
Taylor expanded in b around 0 78.0%
if -1.25000000000000009e-230 < b < 7.50000000000000046e33Initial program 97.1%
sub-neg97.1%
metadata-eval97.1%
*-commutative97.1%
distribute-lft-in97.1%
Applied egg-rr97.1%
Taylor expanded in t around 0 80.5%
Simplified72.6%
Taylor expanded in b around 0 73.8%
associate-/r*81.4%
associate-*r/81.4%
associate-*r/80.3%
Simplified80.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -5.8e+81) (not (<= b 7.5e+33))) (/ x (* a (* y (exp b)))) (* x (/ (/ (pow z y) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -5.8e+81) || !(b <= 7.5e+33)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * ((pow(z, y) / 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 <= (-5.8d+81)) .or. (.not. (b <= 7.5d+33))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * (((z ** y) / 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 <= -5.8e+81) || !(b <= 7.5e+33)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * ((Math.pow(z, y) / a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -5.8e+81) or not (b <= 7.5e+33): tmp = x / (a * (y * math.exp(b))) else: tmp = x * ((math.pow(z, y) / a) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -5.8e+81) || !(b <= 7.5e+33)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -5.8e+81) || ~((b <= 7.5e+33))) tmp = x / (a * (y * exp(b))); else tmp = x * (((z ^ y) / a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -5.8e+81], N[Not[LessEqual[b, 7.5e+33]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+81} \lor \neg \left(b \leq 7.5 \cdot 10^{+33}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\end{array}
\end{array}
if b < -5.7999999999999999e81 or 7.50000000000000046e33 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.7%
associate-/l*75.7%
*-commutative75.7%
exp-to-pow75.7%
exp-diff57.7%
*-commutative57.7%
exp-to-pow57.7%
sub-neg57.7%
metadata-eval57.7%
Simplified57.7%
Taylor expanded in y around 0 68.5%
exp-to-pow68.5%
sub-neg68.5%
metadata-eval68.5%
associate-*r/74.0%
Simplified74.0%
Taylor expanded in t around 0 89.4%
if -5.7999999999999999e81 < b < 7.50000000000000046e33Initial program 95.5%
sub-neg95.5%
metadata-eval95.5%
*-commutative95.5%
distribute-lft-in95.5%
Applied egg-rr95.5%
Taylor expanded in t around 0 75.3%
Simplified70.8%
Taylor expanded in b around 0 71.0%
associate-/r*75.0%
associate-*r/75.0%
associate-*r/75.9%
Simplified75.9%
Final simplification81.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.75e+70) (not (<= t 4.1e+32))) (/ (* x (pow a t)) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.75e+70) || !(t <= 4.1e+32)) {
tmp = (x * pow(a, t)) / 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 <= (-2.75d+70)) .or. (.not. (t <= 4.1d+32))) then
tmp = (x * (a ** t)) / 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 <= -2.75e+70) || !(t <= 4.1e+32)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.75e+70) or not (t <= 4.1e+32): tmp = (x * math.pow(a, t)) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.75e+70) || !(t <= 4.1e+32)) tmp = Float64(Float64(x * (a ^ t)) / 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 <= -2.75e+70) || ~((t <= 4.1e+32))) tmp = (x * (a ^ t)) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.75e+70], N[Not[LessEqual[t, 4.1e+32]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.75 \cdot 10^{+70} \lor \neg \left(t \leq 4.1 \cdot 10^{+32}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -2.74999999999999993e70 or 4.09999999999999981e32 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.9%
associate-/l*82.9%
*-commutative82.9%
exp-to-pow82.9%
exp-diff64.8%
*-commutative64.8%
exp-to-pow64.8%
sub-neg64.8%
metadata-eval64.8%
Simplified64.8%
Taylor expanded in b around 0 75.3%
*-commutative75.3%
exp-to-pow75.3%
sub-neg75.3%
metadata-eval75.3%
associate-*l*75.3%
Simplified75.3%
Taylor expanded in y around 0 87.8%
Taylor expanded in t around inf 87.8%
if -2.74999999999999993e70 < t < 4.09999999999999981e32Initial program 95.7%
associate-/l*96.2%
associate--l+96.2%
exp-sum79.6%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff73.0%
*-commutative73.0%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in y around 0 63.8%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
associate-*r/68.9%
Simplified68.9%
Taylor expanded in t around 0 72.9%
Final simplification79.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= t -1.5e+23) (not (<= t 3.9e-13)))
(/ (* x (pow a t)) y)
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.5e+23) || !(t <= 3.9e-13)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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.5d+23)) .or. (.not. (t <= 3.9d-13))) then
tmp = (x * (a ** t)) / y
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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.5e+23) || !(t <= 3.9e-13)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.5e+23) or not (t <= 3.9e-13): tmp = (x * math.pow(a, t)) / y else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.5e+23) || !(t <= 3.9e-13)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.5e+23) || ~((t <= 3.9e-13))) tmp = (x * (a ^ t)) / y; else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.5e+23], N[Not[LessEqual[t, 3.9e-13]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{+23} \lor \neg \left(t \leq 3.9 \cdot 10^{-13}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if t < -1.5e23 or 3.90000000000000004e-13 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum81.6%
associate-/l*81.6%
*-commutative81.6%
exp-to-pow81.6%
exp-diff61.6%
*-commutative61.6%
exp-to-pow61.6%
sub-neg61.6%
metadata-eval61.6%
Simplified61.6%
Taylor expanded in b around 0 71.3%
*-commutative71.3%
exp-to-pow71.3%
sub-neg71.3%
metadata-eval71.3%
associate-*l*71.3%
Simplified71.3%
Taylor expanded in y around 0 82.7%
Taylor expanded in t around inf 82.7%
if -1.5e23 < t < 3.90000000000000004e-13Initial program 95.0%
associate-/l*95.6%
associate--l+95.6%
exp-sum80.3%
associate-/l*78.8%
*-commutative78.8%
exp-to-pow78.8%
exp-diff77.3%
*-commutative77.3%
exp-to-pow78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 65.9%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
associate-*r/71.0%
Simplified71.0%
Taylor expanded in t around 0 72.5%
Taylor expanded in b around 0 55.1%
*-commutative55.1%
Simplified55.1%
Final simplification68.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -6.5e-5)
(- t_1 (* b (- t_1 (* b (- t_1 (/ (* x b) (* y a)))))))
(if (<= b 66000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(*
y
(+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -6.5e-5) {
tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a))))));
} else if (b <= 66000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-6.5d-5)) then
tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a))))))
else if (b <= 66000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -6.5e-5) {
tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a))))));
} else if (b <= 66000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -6.5e-5: tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a)))))) elif b <= 66000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -6.5e-5) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))))); elseif (b <= 66000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -6.5e-5) tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a)))))); elseif (b <= 66000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e-5], N[(t$95$1 - N[(b * N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 66000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\right)\\
\mathbf{elif}\;b \leq 66000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -6.49999999999999943e-5Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.5%
sub-neg48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in y around 0 59.0%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
associate-*r/62.2%
Simplified62.2%
Taylor expanded in t around 0 74.7%
Taylor expanded in b around 0 16.9%
Taylor expanded in b around 0 62.4%
if -6.49999999999999943e-5 < b < 66000Initial program 94.6%
associate-/l*95.2%
associate--l+95.2%
exp-sum90.1%
associate-/l*88.4%
*-commutative88.4%
exp-to-pow88.4%
exp-diff87.6%
*-commutative87.6%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around 0 73.2%
exp-to-pow74.5%
sub-neg74.5%
metadata-eval74.5%
associate-*r/73.7%
Simplified73.7%
Taylor expanded in t around 0 48.2%
Taylor expanded in b around 0 48.2%
Taylor expanded in b around inf 44.6%
associate-/l*55.3%
distribute-lft-out58.7%
Simplified58.7%
if 66000 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification63.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.5e-8)
(- (/ x (* y a)) (/ (* b (+ (/ x a) (* b (- (* 0.5 (/ x a)) (/ x a))))) y))
(if (<= b 80000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.5e-8) {
tmp = (x / (y * a)) - ((b * ((x / a) + (b * ((0.5 * (x / a)) - (x / a))))) / y);
} else if (b <= 80000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 <= (-7.5d-8)) then
tmp = (x / (y * a)) - ((b * ((x / a) + (b * ((0.5d0 * (x / a)) - (x / a))))) / y)
else if (b <= 80000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 <= -7.5e-8) {
tmp = (x / (y * a)) - ((b * ((x / a) + (b * ((0.5 * (x / a)) - (x / a))))) / y);
} else if (b <= 80000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.5e-8: tmp = (x / (y * a)) - ((b * ((x / a) + (b * ((0.5 * (x / a)) - (x / a))))) / y) elif b <= 80000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.5e-8) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(b * Float64(Float64(x / a) + Float64(b * Float64(Float64(0.5 * Float64(x / a)) - Float64(x / a))))) / y)); elseif (b <= 80000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.5e-8) tmp = (x / (y * a)) - ((b * ((x / a) + (b * ((0.5 * (x / a)) - (x / a))))) / y); elseif (b <= 80000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.5e-8], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(0.5 * N[(x / a), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 80000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{-8}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{b \cdot \left(\frac{x}{a} + b \cdot \left(0.5 \cdot \frac{x}{a} - \frac{x}{a}\right)\right)}{y}\\
\mathbf{elif}\;b \leq 80000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -7.4999999999999997e-8Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.5%
sub-neg48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in y around 0 59.0%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
associate-*r/62.2%
Simplified62.2%
Taylor expanded in t around 0 74.7%
Taylor expanded in b around 0 40.7%
Taylor expanded in y around 0 56.7%
if -7.4999999999999997e-8 < b < 8e4Initial program 94.6%
associate-/l*95.2%
associate--l+95.2%
exp-sum90.1%
associate-/l*88.4%
*-commutative88.4%
exp-to-pow88.4%
exp-diff87.6%
*-commutative87.6%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around 0 73.2%
exp-to-pow74.5%
sub-neg74.5%
metadata-eval74.5%
associate-*r/73.7%
Simplified73.7%
Taylor expanded in t around 0 48.2%
Taylor expanded in b around 0 48.2%
Taylor expanded in b around inf 44.6%
associate-/l*55.3%
distribute-lft-out58.7%
Simplified58.7%
if 8e4 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification62.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.00019)
(- (/ x (* y a)) (/ (* b (+ (/ x y) (* b (/ (* x -0.5) y)))) a))
(if (<= b 180000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.00019) {
tmp = (x / (y * a)) - ((b * ((x / y) + (b * ((x * -0.5) / y)))) / a);
} else if (b <= 180000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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.00019d0)) then
tmp = (x / (y * a)) - ((b * ((x / y) + (b * ((x * (-0.5d0)) / y)))) / a)
else if (b <= 180000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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.00019) {
tmp = (x / (y * a)) - ((b * ((x / y) + (b * ((x * -0.5) / y)))) / a);
} else if (b <= 180000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.00019: tmp = (x / (y * a)) - ((b * ((x / y) + (b * ((x * -0.5) / y)))) / a) elif b <= 180000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.00019) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(b * Float64(Float64(x / y) + Float64(b * Float64(Float64(x * -0.5) / y)))) / a)); elseif (b <= 180000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.00019) tmp = (x / (y * a)) - ((b * ((x / y) + (b * ((x * -0.5) / y)))) / a); elseif (b <= 180000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.00019], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(x / y), $MachinePrecision] + N[(b * N[(N[(x * -0.5), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 180000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.00019:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{b \cdot \left(\frac{x}{y} + b \cdot \frac{x \cdot -0.5}{y}\right)}{a}\\
\mathbf{elif}\;b \leq 180000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.9000000000000001e-4Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.5%
sub-neg48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in y around 0 59.0%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
associate-*r/62.2%
Simplified62.2%
Taylor expanded in t around 0 74.7%
Taylor expanded in b around 0 40.7%
Taylor expanded in a around 0 48.1%
associate-*r*48.1%
mul-1-neg48.1%
distribute-rgt-out55.6%
metadata-eval55.6%
*-commutative55.6%
associate-*r/55.7%
Simplified55.7%
if -1.9000000000000001e-4 < b < 1.8e5Initial program 94.6%
associate-/l*95.2%
associate--l+95.2%
exp-sum90.1%
associate-/l*88.4%
*-commutative88.4%
exp-to-pow88.4%
exp-diff87.6%
*-commutative87.6%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around 0 73.2%
exp-to-pow74.5%
sub-neg74.5%
metadata-eval74.5%
associate-*r/73.7%
Simplified73.7%
Taylor expanded in t around 0 48.2%
Taylor expanded in b around 0 48.2%
Taylor expanded in b around inf 44.6%
associate-/l*55.3%
distribute-lft-out58.7%
Simplified58.7%
if 1.8e5 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification61.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -0.7)
(+ t_1 (* b (* t_1 (* b 0.5))))
(if (<= b 62000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(*
y
(+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -0.7) {
tmp = t_1 + (b * (t_1 * (b * 0.5)));
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-0.7d0)) then
tmp = t_1 + (b * (t_1 * (b * 0.5d0)))
else if (b <= 62000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -0.7) {
tmp = t_1 + (b * (t_1 * (b * 0.5)));
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -0.7: tmp = t_1 + (b * (t_1 * (b * 0.5))) elif b <= 62000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -0.7) tmp = Float64(t_1 + Float64(b * Float64(t_1 * Float64(b * 0.5)))); elseif (b <= 62000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -0.7) tmp = t_1 + (b * (t_1 * (b * 0.5))); elseif (b <= 62000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.7], N[(t$95$1 + N[(b * N[(t$95$1 * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 62000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -0.7:\\
\;\;\;\;t\_1 + b \cdot \left(t\_1 \cdot \left(b \cdot 0.5\right)\right)\\
\mathbf{elif}\;b \leq 62000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -0.69999999999999996Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum74.6%
associate-/l*74.6%
*-commutative74.6%
exp-to-pow74.6%
exp-diff47.6%
*-commutative47.6%
exp-to-pow47.6%
sub-neg47.6%
metadata-eval47.6%
Simplified47.6%
Taylor expanded in y around 0 57.2%
exp-to-pow57.2%
sub-neg57.2%
metadata-eval57.2%
associate-*r/60.4%
Simplified60.4%
Taylor expanded in t around 0 76.6%
Taylor expanded in b around 0 41.6%
Taylor expanded in b around inf 41.6%
distribute-rgt-out54.3%
metadata-eval54.3%
neg-mul-154.3%
associate-*r*54.3%
associate-*r/51.2%
distribute-rgt-neg-in51.2%
associate-*r/54.3%
metadata-eval54.3%
associate-*r*54.3%
*-commutative54.3%
associate-*l*54.3%
Simplified54.3%
if -0.69999999999999996 < b < 62000Initial program 94.6%
associate-/l*95.2%
associate--l+95.2%
exp-sum89.4%
associate-/l*87.8%
*-commutative87.8%
exp-to-pow87.8%
exp-diff87.0%
*-commutative87.0%
exp-to-pow88.5%
sub-neg88.5%
metadata-eval88.5%
Simplified88.5%
Taylor expanded in y around 0 73.8%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
associate-*r/74.3%
Simplified74.3%
Taylor expanded in t around 0 47.9%
Taylor expanded in b around 0 47.4%
Taylor expanded in b around inf 43.9%
associate-/l*54.3%
distribute-lft-out57.7%
Simplified57.7%
if 62000 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification61.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -0.66)
(+ t_1 (* b (* t_1 (* b 0.5))))
(if (<= b 90000000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -0.66) {
tmp = t_1 + (b * (t_1 * (b * 0.5)));
} else if (b <= 90000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-0.66d0)) then
tmp = t_1 + (b * (t_1 * (b * 0.5d0)))
else if (b <= 90000000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -0.66) {
tmp = t_1 + (b * (t_1 * (b * 0.5)));
} else if (b <= 90000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -0.66: tmp = t_1 + (b * (t_1 * (b * 0.5))) elif b <= 90000000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -0.66) tmp = Float64(t_1 + Float64(b * Float64(t_1 * Float64(b * 0.5)))); elseif (b <= 90000000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -0.66) tmp = t_1 + (b * (t_1 * (b * 0.5))); elseif (b <= 90000000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.66], N[(t$95$1 + N[(b * N[(t$95$1 * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 90000000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -0.66:\\
\;\;\;\;t\_1 + b \cdot \left(t\_1 \cdot \left(b \cdot 0.5\right)\right)\\
\mathbf{elif}\;b \leq 90000000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -0.660000000000000031Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum74.6%
associate-/l*74.6%
*-commutative74.6%
exp-to-pow74.6%
exp-diff47.6%
*-commutative47.6%
exp-to-pow47.6%
sub-neg47.6%
metadata-eval47.6%
Simplified47.6%
Taylor expanded in y around 0 57.2%
exp-to-pow57.2%
sub-neg57.2%
metadata-eval57.2%
associate-*r/60.4%
Simplified60.4%
Taylor expanded in t around 0 76.6%
Taylor expanded in b around 0 41.6%
Taylor expanded in b around inf 41.6%
distribute-rgt-out54.3%
metadata-eval54.3%
neg-mul-154.3%
associate-*r*54.3%
associate-*r/51.2%
distribute-rgt-neg-in51.2%
associate-*r/54.3%
metadata-eval54.3%
associate-*r*54.3%
*-commutative54.3%
associate-*l*54.3%
Simplified54.3%
if -0.660000000000000031 < b < 9e7Initial program 94.6%
associate-/l*95.2%
associate--l+95.2%
exp-sum89.4%
associate-/l*87.8%
*-commutative87.8%
exp-to-pow87.8%
exp-diff87.0%
*-commutative87.0%
exp-to-pow88.5%
sub-neg88.5%
metadata-eval88.5%
Simplified88.5%
Taylor expanded in y around 0 73.8%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
associate-*r/74.3%
Simplified74.3%
Taylor expanded in t around 0 47.9%
Taylor expanded in b around 0 47.4%
Taylor expanded in b around inf 43.9%
associate-/l*54.3%
distribute-lft-out57.7%
Simplified57.7%
if 9e7 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 69.0%
*-commutative69.0%
Simplified69.0%
Final simplification60.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.002)
(- (/ x (* y a)) (/ (* x b) (* y a)))
(if (<= b 270000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.002) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 270000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
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.002d0)) then
tmp = (x / (y * a)) - ((x * b) / (y * a))
else if (b <= 270000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
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.002) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 270000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.002: tmp = (x / (y * a)) - ((x * b) / (y * a)) elif b <= 270000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.002) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x * b) / Float64(y * a))); elseif (b <= 270000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.002) tmp = (x / (y * a)) - ((x * b) / (y * a)); elseif (b <= 270000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.002], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 270000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.002:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq 270000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2e-3Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.5%
sub-neg48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in y around 0 59.0%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
associate-*r/62.2%
Simplified62.2%
Taylor expanded in t around 0 74.7%
Taylor expanded in b around 0 40.7%
Taylor expanded in b around 0 34.7%
mul-1-neg34.7%
*-commutative34.7%
Simplified34.7%
if -2e-3 < b < 2.7e5Initial program 94.6%
associate-/l*95.2%
associate--l+95.2%
exp-sum90.1%
associate-/l*88.4%
*-commutative88.4%
exp-to-pow88.4%
exp-diff87.6%
*-commutative87.6%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around 0 73.2%
exp-to-pow74.5%
sub-neg74.5%
metadata-eval74.5%
associate-*r/73.7%
Simplified73.7%
Taylor expanded in t around 0 48.2%
Taylor expanded in b around 0 48.2%
Taylor expanded in b around inf 44.6%
associate-/l*55.3%
distribute-lft-out58.7%
Simplified58.7%
if 2.7e5 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 69.0%
*-commutative69.0%
Simplified69.0%
Final simplification55.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -15000000.0) (* (/ x (* y a)) (- (- b) -1.0)) (if (<= b -2.5e-146) (/ (/ x a) y) (/ x (* a (* y (+ b 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -15000000.0) {
tmp = (x / (y * a)) * (-b - -1.0);
} else if (b <= -2.5e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-15000000.0d0)) then
tmp = (x / (y * a)) * (-b - (-1.0d0))
else if (b <= (-2.5d-146)) then
tmp = (x / a) / y
else
tmp = x / (a * (y * (b + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -15000000.0) {
tmp = (x / (y * a)) * (-b - -1.0);
} else if (b <= -2.5e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -15000000.0: tmp = (x / (y * a)) * (-b - -1.0) elif b <= -2.5e-146: tmp = (x / a) / y else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -15000000.0) tmp = Float64(Float64(x / Float64(y * a)) * Float64(Float64(-b) - -1.0)); elseif (b <= -2.5e-146) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -15000000.0) tmp = (x / (y * a)) * (-b - -1.0); elseif (b <= -2.5e-146) tmp = (x / a) / y; else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -15000000.0], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[((-b) - -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-146], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -15000000:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(\left(-b\right) - -1\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-146}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -1.5e7Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.4%
associate-/l*75.4%
*-commutative75.4%
exp-to-pow75.4%
exp-diff49.2%
*-commutative49.2%
exp-to-pow49.2%
sub-neg49.2%
metadata-eval49.2%
Simplified49.2%
Taylor expanded in y around 0 57.5%
exp-to-pow57.5%
sub-neg57.5%
metadata-eval57.5%
associate-*r/60.8%
Simplified60.8%
Taylor expanded in t around 0 79.0%
Taylor expanded in b around 0 17.4%
Taylor expanded in b around 0 36.6%
mul-1-neg36.6%
remove-double-neg36.6%
distribute-neg-out36.6%
associate-*r/35.4%
neg-mul-135.4%
distribute-rgt-out35.4%
Simplified35.4%
if -1.5e7 < b < -2.49999999999999979e-146Initial program 95.5%
associate-/l*93.2%
associate--l+93.2%
exp-sum87.5%
associate-/l*84.7%
*-commutative84.7%
exp-to-pow84.7%
exp-diff81.8%
*-commutative81.8%
exp-to-pow83.1%
sub-neg83.1%
metadata-eval83.1%
Simplified83.1%
Taylor expanded in y around 0 87.1%
exp-to-pow88.7%
sub-neg88.7%
metadata-eval88.7%
associate-*r/77.9%
Simplified77.9%
Taylor expanded in t around 0 49.9%
Taylor expanded in b around 0 48.1%
associate-/r*61.0%
Simplified61.0%
if -2.49999999999999979e-146 < b Initial program 96.9%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.8%
*-commutative74.8%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in y around 0 68.1%
exp-to-pow68.7%
sub-neg68.7%
metadata-eval68.7%
associate-*r/73.6%
Simplified73.6%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 41.9%
distribute-lft-out43.1%
distribute-rgt1-in43.1%
Simplified43.1%
Final simplification43.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.3e+26) (* x (/ 1.0 (* y a))) (if (<= b -1.32e-146) (/ (/ x a) y) (/ x (* a (* y (+ b 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.3e+26) {
tmp = x * (1.0 / (y * a));
} else if (b <= -1.32e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.3d+26)) then
tmp = x * (1.0d0 / (y * a))
else if (b <= (-1.32d-146)) then
tmp = (x / a) / y
else
tmp = x / (a * (y * (b + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.3e+26) {
tmp = x * (1.0 / (y * a));
} else if (b <= -1.32e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.3e+26: tmp = x * (1.0 / (y * a)) elif b <= -1.32e-146: tmp = (x / a) / y else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.3e+26) tmp = Float64(x * Float64(1.0 / Float64(y * a))); elseif (b <= -1.32e-146) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.3e+26) tmp = x * (1.0 / (y * a)); elseif (b <= -1.32e-146) tmp = (x / a) / y; else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.3e+26], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.32e-146], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.3 \cdot 10^{+26}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{-146}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -1.30000000000000001e26Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.3%
sub-neg48.3%
metadata-eval48.3%
Simplified48.3%
Taylor expanded in y around 0 57.0%
exp-to-pow57.0%
sub-neg57.0%
metadata-eval57.0%
associate-*r/60.5%
Simplified60.5%
Taylor expanded in t around 0 79.6%
Taylor expanded in b around 0 26.5%
div-inv28.1%
Applied egg-rr28.1%
if -1.30000000000000001e26 < b < -1.31999999999999995e-146Initial program 95.8%
associate-/l*93.8%
associate--l+93.8%
exp-sum88.5%
associate-/l*85.9%
*-commutative85.9%
exp-to-pow85.9%
exp-diff80.6%
*-commutative80.6%
exp-to-pow81.8%
sub-neg81.8%
metadata-eval81.8%
Simplified81.8%
Taylor expanded in y around 0 85.5%
exp-to-pow87.0%
sub-neg87.0%
metadata-eval87.0%
associate-*r/77.0%
Simplified77.0%
Taylor expanded in t around 0 51.3%
Taylor expanded in b around 0 47.3%
associate-/r*59.2%
Simplified59.2%
if -1.31999999999999995e-146 < b Initial program 96.9%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.8%
*-commutative74.8%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in y around 0 68.1%
exp-to-pow68.7%
sub-neg68.7%
metadata-eval68.7%
associate-*r/73.6%
Simplified73.6%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 41.9%
distribute-lft-out43.1%
distribute-rgt1-in43.1%
Simplified43.1%
Final simplification42.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.002) (- (/ x (* y a)) (/ (* x b) (* y a))) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.002) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.002d0)) then
tmp = (x / (y * a)) - ((x * b) / (y * a))
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.002) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.002: tmp = (x / (y * a)) - ((x * b) / (y * a)) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.002) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x * b) / Float64(y * a))); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.002) tmp = (x / (y * a)) - ((x * b) / (y * a)); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.002], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.002:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x \cdot b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -2e-3Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.5%
sub-neg48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in y around 0 59.0%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
associate-*r/62.2%
Simplified62.2%
Taylor expanded in t around 0 74.7%
Taylor expanded in b around 0 40.7%
Taylor expanded in b around 0 34.7%
mul-1-neg34.7%
*-commutative34.7%
Simplified34.7%
if -2e-3 < b Initial program 96.6%
associate-/l*97.0%
associate--l+97.0%
exp-sum83.3%
associate-/l*82.3%
*-commutative82.3%
exp-to-pow82.3%
exp-diff77.0%
*-commutative77.0%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in y around 0 71.3%
exp-to-pow72.1%
sub-neg72.1%
metadata-eval72.1%
associate-*r/74.2%
Simplified74.2%
Taylor expanded in t around 0 62.6%
Taylor expanded in b around 0 45.0%
Taylor expanded in b around inf 51.0%
Final simplification46.8%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (/ x a) y))) (if (<= b -2.6e-146) (- t_1 (* b t_1)) (/ x (* a (* b (+ y (/ y b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) / y;
double tmp;
if (b <= -2.6e-146) {
tmp = t_1 - (b * t_1);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / a) / y
if (b <= (-2.6d-146)) then
tmp = t_1 - (b * t_1)
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) / y;
double tmp;
if (b <= -2.6e-146) {
tmp = t_1 - (b * t_1);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) / y tmp = 0 if b <= -2.6e-146: tmp = t_1 - (b * t_1) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) / y) tmp = 0.0 if (b <= -2.6e-146) tmp = Float64(t_1 - Float64(b * t_1)); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / a) / y; tmp = 0.0; if (b <= -2.6e-146) tmp = t_1 - (b * t_1); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -2.6e-146], N[(t$95$1 - N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a}}{y}\\
\mathbf{if}\;b \leq -2.6 \cdot 10^{-146}:\\
\;\;\;\;t\_1 - b \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -2.59999999999999987e-146Initial program 98.4%
associate-/l*97.5%
associate--l+97.5%
exp-sum79.8%
associate-/l*78.8%
*-commutative78.8%
exp-to-pow78.8%
exp-diff61.1%
*-commutative61.1%
exp-to-pow61.5%
sub-neg61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in y around 0 68.3%
exp-to-pow68.9%
sub-neg68.9%
metadata-eval68.9%
associate-*r/67.0%
Simplified67.0%
Taylor expanded in t around 0 68.4%
Taylor expanded in b around 0 40.9%
+-commutative40.9%
mul-1-neg40.9%
unsub-neg40.9%
associate-/r*43.1%
associate-/l*41.3%
associate-/r*42.2%
Simplified42.2%
if -2.59999999999999987e-146 < b Initial program 96.9%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.8%
*-commutative74.8%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in y around 0 68.1%
exp-to-pow68.7%
sub-neg68.7%
metadata-eval68.7%
associate-*r/73.6%
Simplified73.6%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 43.1%
Taylor expanded in b around inf 49.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -5e-7) (* (/ x (* y a)) (- (- b) -1.0)) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-7) {
tmp = (x / (y * a)) * (-b - -1.0);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-5d-7)) then
tmp = (x / (y * a)) * (-b - (-1.0d0))
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-7) {
tmp = (x / (y * a)) * (-b - -1.0);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5e-7: tmp = (x / (y * a)) * (-b - -1.0) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5e-7) tmp = Float64(Float64(x / Float64(y * a)) * Float64(Float64(-b) - -1.0)); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5e-7) tmp = (x / (y * a)) * (-b - -1.0); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5e-7], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[((-b) - -1.0), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(\left(-b\right) - -1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -4.99999999999999977e-7Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.5%
sub-neg48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in y around 0 59.0%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
associate-*r/62.2%
Simplified62.2%
Taylor expanded in t around 0 74.7%
Taylor expanded in b around 0 16.9%
Taylor expanded in b around 0 34.7%
mul-1-neg34.7%
remove-double-neg34.7%
distribute-neg-out34.7%
associate-*r/33.6%
neg-mul-133.6%
distribute-rgt-out33.6%
Simplified33.6%
if -4.99999999999999977e-7 < b Initial program 96.6%
associate-/l*97.0%
associate--l+97.0%
exp-sum83.3%
associate-/l*82.3%
*-commutative82.3%
exp-to-pow82.3%
exp-diff77.0%
*-commutative77.0%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in y around 0 71.3%
exp-to-pow72.1%
sub-neg72.1%
metadata-eval72.1%
associate-*r/74.2%
Simplified74.2%
Taylor expanded in t around 0 62.6%
Taylor expanded in b around 0 45.0%
Taylor expanded in b around inf 51.0%
Final simplification46.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.4e-9) (* x (/ 1.0 (* y a))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.4e-9) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 4.4d-9) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.4e-9) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.4e-9: tmp = x * (1.0 / (y * a)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.4e-9) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4.4e-9) tmp = x * (1.0 / (y * a)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.4e-9], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.4 \cdot 10^{-9}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.3999999999999997e-9Initial program 96.4%
associate-/l*96.8%
associate--l+96.8%
exp-sum84.1%
associate-/l*83.0%
*-commutative83.0%
exp-to-pow83.0%
exp-diff73.6%
*-commutative73.6%
exp-to-pow74.7%
sub-neg74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in y around 0 68.1%
exp-to-pow69.1%
sub-neg69.1%
metadata-eval69.1%
associate-*r/69.6%
Simplified69.6%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 40.5%
div-inv40.6%
Applied egg-rr40.6%
if 4.3999999999999997e-9 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum73.3%
associate-/l*73.3%
*-commutative73.3%
exp-to-pow73.3%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.0%
sub-neg60.0%
metadata-eval60.0%
Simplified60.0%
Taylor expanded in y around 0 68.1%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
associate-*r/74.8%
Simplified74.8%
Taylor expanded in t around 0 83.0%
Taylor expanded in b around 0 38.2%
Taylor expanded in b around inf 38.2%
*-commutative38.2%
Simplified38.2%
Final simplification39.9%
(FPCore (x y z t a b) :precision binary64 (* x (/ 1.0 (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (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 * (1.0d0 / (y * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (y * a));
}
def code(x, y, z, t, a, b): return x * (1.0 / (y * a))
function code(x, y, z, t, a, b) return Float64(x * Float64(1.0 / Float64(y * a))) end
function tmp = code(x, y, z, t, a, b) tmp = x * (1.0 / (y * a)); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{1}{y \cdot a}
\end{array}
Initial program 97.4%
associate-/l*97.7%
associate--l+97.7%
exp-sum80.9%
associate-/l*80.2%
*-commutative80.2%
exp-to-pow80.2%
exp-diff69.6%
*-commutative69.6%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in y around 0 68.1%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
associate-*r/71.1%
Simplified71.1%
Taylor expanded in t around 0 65.7%
Taylor expanded in b around 0 35.5%
div-inv35.6%
Applied egg-rr35.6%
Final simplification35.6%
(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 97.4%
associate-/l*97.7%
associate--l+97.7%
exp-sum80.9%
associate-/l*80.2%
*-commutative80.2%
exp-to-pow80.2%
exp-diff69.6%
*-commutative69.6%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in y around 0 68.1%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
associate-*r/71.1%
Simplified71.1%
Taylor expanded in t around 0 65.7%
Taylor expanded in b around 0 35.5%
Final simplification35.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 2024137
(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))