
(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 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.4%
Final simplification98.4%
(FPCore (x y z t a b) :precision binary64 (if (<= y 1.02e+207) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (* (/ 1.0 y) (* x (* (pow z y) (/ (pow a (+ t -1.0)) (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 1.02e+207) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (1.0 / y) * (x * (pow(z, y) * (pow(a, (t + -1.0)) / 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 <= 1.02d+207) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (1.0d0 / y) * (x * ((z ** y) * ((a ** (t + (-1.0d0))) / 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 <= 1.02e+207) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (1.0 / y) * (x * (Math.pow(z, y) * (Math.pow(a, (t + -1.0)) / Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 1.02e+207: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (1.0 / y) * (x * (math.pow(z, y) * (math.pow(a, (t + -1.0)) / math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 1.02e+207) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(1.0 / y) * Float64(x * Float64((z ^ y) * Float64((a ^ Float64(t + -1.0)) / exp(b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 1.02e+207) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (1.0 / y) * (x * ((z ^ y) * ((a ^ (t + -1.0)) / exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 1.02e+207], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(1.0 / y), $MachinePrecision] * N[(x * N[(N[Power[z, y], $MachinePrecision] * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.02 \cdot 10^{+207}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y} \cdot \left(x \cdot \left({z}^{y} \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}\right)\right)\\
\end{array}
\end{array}
if y < 1.0200000000000001e207Initial program 98.3%
Taylor expanded in y around 0 86.9%
if 1.0200000000000001e207 < y Initial program 100.0%
clear-num100.0%
associate-/r/100.0%
exp-diff76.0%
exp-sum68.0%
*-commutative68.0%
pow-to-exp68.0%
sub-neg68.0%
metadata-eval68.0%
*-commutative68.0%
pow-to-exp68.0%
associate-*r/68.0%
Applied egg-rr68.0%
Final simplification85.0%
(FPCore (x y z t a b) :precision binary64 (if (<= y 2.1e+206) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (* x (* (pow z y) (/ (/ (pow a (+ t -1.0)) (exp b)) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 2.1e+206) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = x * (pow(z, y) * ((pow(a, (t + -1.0)) / exp(b)) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= 2.1d+206) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = x * ((z ** y) * (((a ** (t + (-1.0d0))) / exp(b)) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 2.1e+206) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = x * (Math.pow(z, y) * ((Math.pow(a, (t + -1.0)) / Math.exp(b)) / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 2.1e+206: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = x * (math.pow(z, y) * ((math.pow(a, (t + -1.0)) / math.exp(b)) / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 2.1e+206) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(x * Float64((z ^ y) * Float64(Float64((a ^ Float64(t + -1.0)) / exp(b)) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 2.1e+206) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = x * ((z ^ y) * (((a ^ (t + -1.0)) / exp(b)) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 2.1e+206], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[z, y], $MachinePrecision] * N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.1 \cdot 10^{+206}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)\\
\end{array}
\end{array}
if y < 2.09999999999999987e206Initial program 98.3%
Taylor expanded in y around 0 86.9%
if 2.09999999999999987e206 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum68.0%
associate-/l*68.0%
*-commutative68.0%
exp-to-pow68.0%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
Final simplification85.0%
(FPCore (x y z t a b) :precision binary64 (if (<= y 1.1e+207) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (* x (* (pow z y) (/ (pow a t) (* (exp b) (* y a)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 1.1e+207) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = x * (pow(z, y) * (pow(a, t) / (exp(b) * (y * a))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= 1.1d+207) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = x * ((z ** y) * ((a ** t) / (exp(b) * (y * a))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 1.1e+207) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = x * (Math.pow(z, y) * (Math.pow(a, t) / (Math.exp(b) * (y * a))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 1.1e+207: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = x * (math.pow(z, y) * (math.pow(a, t) / (math.exp(b) * (y * a)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 1.1e+207) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(x * Float64((z ^ y) * Float64((a ^ t) / Float64(exp(b) * Float64(y * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 1.1e+207) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = x * ((z ^ y) * ((a ^ t) / (exp(b) * (y * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 1.1e+207], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[z, y], $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / N[(N[Exp[b], $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.1 \cdot 10^{+207}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left({z}^{y} \cdot \frac{{a}^{t}}{e^{b} \cdot \left(y \cdot a\right)}\right)\\
\end{array}
\end{array}
if y < 1.10000000000000004e207Initial program 98.3%
Taylor expanded in y around 0 86.9%
if 1.10000000000000004e207 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum68.0%
associate-/l*68.0%
*-commutative68.0%
exp-to-pow68.0%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
associate-/l/68.0%
unpow-prod-up68.0%
associate-/l*68.0%
unpow-168.0%
Applied egg-rr68.0%
associate-/r*68.0%
associate-*r/68.0%
*-rgt-identity68.0%
associate-*r*68.0%
Simplified68.0%
Final simplification85.0%
(FPCore (x y z t a b) :precision binary64 (if (<= y 1.1e+207) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* (pow a (+ t -1.0)) (/ (pow z y) (exp b))) (/ y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 1.1e+207) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (pow(a, (t + -1.0)) * (pow(z, y) / exp(b))) / (y / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= 1.1d+207) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = ((a ** (t + (-1.0d0))) * ((z ** y) / exp(b))) / (y / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 1.1e+207) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (Math.pow(a, (t + -1.0)) * (Math.pow(z, y) / Math.exp(b))) / (y / x);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 1.1e+207: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (math.pow(a, (t + -1.0)) * (math.pow(z, y) / math.exp(b))) / (y / x) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 1.1e+207) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64((a ^ Float64(t + -1.0)) * Float64((z ^ y) / exp(b))) / Float64(y / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 1.1e+207) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = ((a ^ (t + -1.0)) * ((z ^ y) / exp(b))) / (y / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 1.1e+207], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.1 \cdot 10^{+207}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{{a}^{\left(t + -1\right)} \cdot \frac{{z}^{y}}{e^{b}}}{\frac{y}{x}}\\
\end{array}
\end{array}
if y < 1.10000000000000004e207Initial program 98.3%
Taylor expanded in y around 0 86.9%
if 1.10000000000000004e207 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum68.0%
associate-/l*68.0%
*-commutative68.0%
exp-to-pow68.0%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
Applied egg-rr64.0%
distribute-frac-neg264.0%
distribute-neg-frac64.0%
metadata-eval64.0%
associate-/r/64.0%
associate-*l/64.0%
*-lft-identity64.0%
associate-*r/64.0%
associate-*l/64.0%
Simplified64.0%
Final simplification84.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y 5.7e+47) (/ (* x (exp (- (* (+ t -1.0) (log a)) 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 (y <= 5.7e+47) {
tmp = (x * exp((((t + -1.0) * log(a)) - 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 (y <= 5.7d+47) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - 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 (y <= 5.7e+47) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - 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 y <= 5.7e+47: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - 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 (y <= 5.7e+47) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - 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 (y <= 5.7e+47) tmp = (x * exp((((t + -1.0) * log(a)) - 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[LessEqual[y, 5.7e+47], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $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}\;y \leq 5.7 \cdot 10^{+47}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if y < 5.6999999999999997e47Initial program 98.1%
Taylor expanded in y around 0 89.2%
if 5.6999999999999997e47 < y Initial program 100.0%
Taylor expanded in t around 0 89.5%
+-commutative89.5%
mul-1-neg89.5%
unsub-neg89.5%
Simplified89.5%
Final simplification89.3%
(FPCore (x y z t a b) :precision binary64 (if (<= (+ t -1.0) -0.5) (/ (* x (/ 1.0 (* a (exp b)))) y) (/ (* x (exp (* (+ t -1.0) (log a)))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t + -1.0) <= -0.5) {
tmp = (x * (1.0 / (a * exp(b)))) / y;
} else {
tmp = (x * exp(((t + -1.0) * log(a)))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t + (-1.0d0)) <= (-0.5d0)) then
tmp = (x * (1.0d0 / (a * exp(b)))) / y
else
tmp = (x * exp(((t + (-1.0d0)) * log(a)))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t + -1.0) <= -0.5) {
tmp = (x * (1.0 / (a * Math.exp(b)))) / y;
} else {
tmp = (x * Math.exp(((t + -1.0) * Math.log(a)))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t + -1.0) <= -0.5: tmp = (x * (1.0 / (a * math.exp(b)))) / y else: tmp = (x * math.exp(((t + -1.0) * math.log(a)))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(t + -1.0) <= -0.5) tmp = Float64(Float64(x * Float64(1.0 / Float64(a * exp(b)))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(t + -1.0) * log(a)))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t + -1.0) <= -0.5) tmp = (x * (1.0 / (a * exp(b)))) / y; else tmp = (x * exp(((t + -1.0) * log(a)))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t + -1.0), $MachinePrecision], -0.5], N[(N[(x * N[(1.0 / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -0.5:\\
\;\;\;\;\frac{x \cdot \frac{1}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -0.5Initial program 97.9%
Taylor expanded in y around 0 81.6%
Taylor expanded in t around 0 70.7%
sub-neg70.7%
neg-mul-170.7%
distribute-neg-in70.7%
+-commutative70.7%
exp-neg70.7%
+-commutative70.7%
exp-sum70.7%
rem-exp-log71.3%
Simplified71.3%
if -0.5 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
Taylor expanded in y around 0 86.9%
Taylor expanded in b around 0 83.6%
Final simplification74.2%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2e+167) (/ (* x (/ (pow z y) a)) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2e+167) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-2d+167)) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2e+167) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2e+167: tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2e+167) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2e+167) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2e+167], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+167}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -2.0000000000000001e167Initial program 100.0%
Taylor expanded in t around 0 92.7%
+-commutative92.7%
mul-1-neg92.7%
unsub-neg92.7%
Simplified92.7%
Taylor expanded in b around 0 92.7%
div-exp92.7%
*-commutative92.7%
exp-to-pow92.7%
rem-exp-log92.7%
Simplified92.7%
if -2.0000000000000001e167 < y Initial program 98.2%
Taylor expanded in y around 0 85.1%
Final simplification85.9%
(FPCore (x y z t a b) :precision binary64 (if (<= y 1.5e+206) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* (pow a (+ t -1.0)) (* x (pow z y))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 1.5e+206) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (pow(a, (t + -1.0)) * (x * pow(z, y))) / 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 <= 1.5d+206) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = ((a ** (t + (-1.0d0))) * (x * (z ** y))) / 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 <= 1.5e+206) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (Math.pow(a, (t + -1.0)) * (x * Math.pow(z, y))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 1.5e+206: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (math.pow(a, (t + -1.0)) * (x * math.pow(z, y))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 1.5e+206) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64((a ^ Float64(t + -1.0)) * Float64(x * (z ^ y))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 1.5e+206) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = ((a ^ (t + -1.0)) * (x * (z ^ y))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 1.5e+206], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] * N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.5 \cdot 10^{+206}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{{a}^{\left(t + -1\right)} \cdot \left(x \cdot {z}^{y}\right)}{y}\\
\end{array}
\end{array}
if y < 1.5000000000000001e206Initial program 98.3%
Taylor expanded in y around 0 86.9%
if 1.5000000000000001e206 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum68.0%
associate-/l*68.0%
*-commutative68.0%
exp-to-pow68.0%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in b around 0 84.0%
*-commutative84.0%
exp-to-pow84.0%
sub-neg84.0%
metadata-eval84.0%
associate-*l*84.0%
Simplified84.0%
Final simplification86.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y -3.5e+18) (/ (* x (/ (pow z y) a)) y) (* x (/ (/ (/ (pow a t) a) y) (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.5e+18) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x * (((pow(a, t) / 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 (y <= (-3.5d+18)) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x * ((((a ** t) / 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 (y <= -3.5e+18) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x * (((Math.pow(a, t) / a) / y) / Math.exp(b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.5e+18: tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x * (((math.pow(a, t) / a) / y) / math.exp(b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.5e+18) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x * Float64(Float64(Float64((a ^ t) / a) / y) / exp(b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.5e+18) tmp = (x * ((z ^ y) / a)) / y; else tmp = x * ((((a ^ t) / a) / y) / exp(b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.5e+18], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{\frac{{a}^{t}}{a}}{y}}{e^{b}}\\
\end{array}
\end{array}
if y < -3.5e18Initial program 100.0%
Taylor expanded in t around 0 91.4%
+-commutative91.4%
mul-1-neg91.4%
unsub-neg91.4%
Simplified91.4%
Taylor expanded in b around 0 81.0%
div-exp81.0%
*-commutative81.0%
exp-to-pow81.0%
rem-exp-log81.0%
Simplified81.0%
if -3.5e18 < y Initial program 98.0%
associate-/l*98.3%
associate--l+98.3%
exp-sum86.8%
associate-/l*86.8%
*-commutative86.8%
exp-to-pow86.8%
exp-diff77.2%
*-commutative77.2%
exp-to-pow77.8%
sub-neg77.8%
metadata-eval77.8%
Simplified77.8%
Taylor expanded in y around 0 72.1%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
associate-*r/77.0%
associate-/r*72.5%
Simplified72.5%
unpow-prod-up72.6%
unpow-172.6%
Applied egg-rr72.6%
associate-*r/72.6%
*-rgt-identity72.6%
Simplified72.6%
Final simplification74.5%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.12e+15) (/ (* 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 <= -1.12e+15) {
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 <= (-1.12d+15)) 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 <= -1.12e+15) {
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 <= -1.12e+15: 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 <= -1.12e+15) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x * Float64(Float64((a ^ Float64(t + -1.0)) / y) / exp(b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.12e+15) 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[LessEqual[y, -1.12e+15], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+15}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}\\
\end{array}
\end{array}
if y < -1.12e15Initial program 100.0%
Taylor expanded in t around 0 91.4%
+-commutative91.4%
mul-1-neg91.4%
unsub-neg91.4%
Simplified91.4%
Taylor expanded in b around 0 81.0%
div-exp81.0%
*-commutative81.0%
exp-to-pow81.0%
rem-exp-log81.0%
Simplified81.0%
if -1.12e15 < y Initial program 98.0%
associate-/l*98.3%
associate--l+98.3%
exp-sum86.8%
associate-/l*86.8%
*-commutative86.8%
exp-to-pow86.8%
exp-diff77.2%
*-commutative77.2%
exp-to-pow77.8%
sub-neg77.8%
metadata-eval77.8%
Simplified77.8%
Taylor expanded in y around 0 72.1%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
associate-*r/77.0%
associate-/r*72.5%
Simplified72.5%
Final simplification74.4%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.9e+18) (/ (* x (/ (pow z y) a)) y) (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.9e+18) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * (pow(a, (t + -1.0)) / exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-2.9d+18)) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * ((a ** (t + (-1.0d0))) / exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.9e+18) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.9e+18: tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.9e+18) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.9e+18) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * ((a ^ (t + -1.0)) / exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.9e+18], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -2.9e18Initial program 100.0%
Taylor expanded in t around 0 91.4%
+-commutative91.4%
mul-1-neg91.4%
unsub-neg91.4%
Simplified91.4%
Taylor expanded in b around 0 81.0%
div-exp81.0%
*-commutative81.0%
exp-to-pow81.0%
rem-exp-log81.0%
Simplified81.0%
if -2.9e18 < y Initial program 98.0%
Taylor expanded in y around 0 86.7%
div-exp76.1%
exp-to-pow76.7%
sub-neg76.7%
metadata-eval76.7%
Simplified76.7%
Final simplification77.7%
(FPCore (x y z t a b) :precision binary64 (if (<= y 5.8e+197) (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y) (/ (* x (pow z y)) (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 5.8e+197) {
tmp = (x * (pow(a, (t + -1.0)) / exp(b))) / y;
} else {
tmp = (x * pow(z, y)) / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= 5.8d+197) then
tmp = (x * ((a ** (t + (-1.0d0))) / exp(b))) / y
else
tmp = (x * (z ** y)) / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 5.8e+197) {
tmp = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
} else {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 5.8e+197: tmp = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y else: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 5.8e+197) tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y); else tmp = Float64(Float64(x * (z ^ y)) / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 5.8e+197) tmp = (x * ((a ^ (t + -1.0)) / exp(b))) / y; else tmp = (x * (z ^ y)) / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 5.8e+197], N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.8 \cdot 10^{+197}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if y < 5.80000000000000005e197Initial program 98.2%
Taylor expanded in y around 0 87.5%
div-exp74.7%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
if 5.80000000000000005e197 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum65.5%
associate-/l*65.5%
*-commutative65.5%
exp-to-pow65.5%
exp-diff65.5%
*-commutative65.5%
exp-to-pow65.5%
sub-neg65.5%
metadata-eval65.5%
Simplified65.5%
Taylor expanded in t around 0 72.4%
Final simplification74.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.9e-72) (* x (/ (pow a (+ t -1.0)) y)) (/ (* x (/ 1.0 (* a (exp b)))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.9e-72) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else {
tmp = (x * (1.0 / (a * exp(b)))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.9d-72) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else
tmp = (x * (1.0d0 / (a * exp(b)))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.9e-72) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else {
tmp = (x * (1.0 / (a * Math.exp(b)))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.9e-72: tmp = x * (math.pow(a, (t + -1.0)) / y) else: tmp = (x * (1.0 / (a * math.exp(b)))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.9e-72) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); else tmp = Float64(Float64(x * Float64(1.0 / Float64(a * exp(b)))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.9e-72) tmp = x * ((a ^ (t + -1.0)) / y); else tmp = (x * (1.0 / (a * exp(b)))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.9e-72], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(1.0 / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.9 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if b < 1.90000000000000001e-72Initial program 98.3%
associate-/l*98.8%
associate--l+98.8%
exp-sum82.1%
associate-/l*82.1%
*-commutative82.1%
exp-to-pow82.1%
exp-diff73.2%
*-commutative73.2%
exp-to-pow73.7%
sub-neg73.7%
metadata-eval73.7%
Simplified73.7%
Taylor expanded in y around 0 66.0%
exp-to-pow66.5%
sub-neg66.5%
metadata-eval66.5%
associate-*r/70.9%
associate-/r*69.8%
Simplified69.8%
Taylor expanded in b around 0 63.7%
Simplified64.3%
if 1.90000000000000001e-72 < b Initial program 98.8%
Taylor expanded in y around 0 87.2%
Taylor expanded in t around 0 80.8%
sub-neg80.8%
neg-mul-180.8%
distribute-neg-in80.8%
+-commutative80.8%
exp-neg80.8%
+-commutative80.8%
exp-sum80.7%
rem-exp-log81.0%
Simplified81.0%
Final simplification69.2%
(FPCore (x y z t a b) :precision binary64 (if (<= t 4.8) (/ x (* a (* y (exp b)))) (* x (/ (pow a t) (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 4.8) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * (pow(a, t) / (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= 4.8d0) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * ((a ** t) / (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 4.8) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * (Math.pow(a, t) / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 4.8: tmp = x / (a * (y * math.exp(b))) else: tmp = x * (math.pow(a, t) / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 4.8) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 4.8) tmp = x / (a * (y * exp(b))); else tmp = x * ((a ^ t) / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 4.8], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.8:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\end{array}
\end{array}
if t < 4.79999999999999982Initial program 97.9%
associate-/l*98.3%
associate--l+98.3%
exp-sum82.5%
associate-/l*82.5%
*-commutative82.5%
exp-to-pow82.5%
exp-diff75.3%
*-commutative75.3%
exp-to-pow75.9%
sub-neg75.9%
metadata-eval75.9%
Simplified75.9%
Taylor expanded in y around 0 66.3%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
associate-*r/72.3%
associate-/r*67.2%
Simplified67.2%
Taylor expanded in t around 0 71.1%
if 4.79999999999999982 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum80.0%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff65.0%
*-commutative65.0%
exp-to-pow65.0%
sub-neg65.0%
metadata-eval65.0%
Simplified65.0%
Taylor expanded in y around 0 70.2%
exp-to-pow70.2%
sub-neg70.2%
metadata-eval70.2%
associate-*r/70.2%
associate-/r*70.2%
Simplified70.2%
unpow-prod-up70.2%
unpow-170.2%
Applied egg-rr70.2%
associate-*r/70.2%
*-rgt-identity70.2%
Simplified70.2%
Taylor expanded in b around 0 65.2%
Final simplification69.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t 0.9) (/ x (* a (* y (exp b)))) (* x (/ (pow a (+ t -1.0)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 0.9) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * (pow(a, (t + -1.0)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= 0.9d0) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * ((a ** (t + (-1.0d0))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 0.9) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 0.9: tmp = x / (a * (y * math.exp(b))) else: tmp = x * (math.pow(a, (t + -1.0)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 0.9) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 0.9) tmp = x / (a * (y * exp(b))); else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 0.9], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.9:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if t < 0.900000000000000022Initial program 97.9%
associate-/l*98.3%
associate--l+98.3%
exp-sum82.5%
associate-/l*82.5%
*-commutative82.5%
exp-to-pow82.5%
exp-diff75.3%
*-commutative75.3%
exp-to-pow75.9%
sub-neg75.9%
metadata-eval75.9%
Simplified75.9%
Taylor expanded in y around 0 66.3%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
associate-*r/72.3%
associate-/r*67.2%
Simplified67.2%
Taylor expanded in t around 0 71.1%
if 0.900000000000000022 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum80.0%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff65.0%
*-commutative65.0%
exp-to-pow65.0%
sub-neg65.0%
metadata-eval65.0%
Simplified65.0%
Taylor expanded in y around 0 70.2%
exp-to-pow70.2%
sub-neg70.2%
metadata-eval70.2%
associate-*r/70.2%
associate-/r*70.2%
Simplified70.2%
Taylor expanded in b around 0 83.6%
Simplified83.6%
Final simplification74.1%
(FPCore (x y z t a b) :precision binary64 (if (<= y 6.1e+137) (/ x (* a (* y (exp b)))) (* (/ x a) (/ (pow z y) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 6.1e+137) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x / a) * (pow(z, y) / 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 <= 6.1d+137) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x / a) * ((z ** y) / 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 <= 6.1e+137) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x / a) * (Math.pow(z, y) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 6.1e+137: tmp = x / (a * (y * math.exp(b))) else: tmp = (x / a) * (math.pow(z, y) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 6.1e+137) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 6.1e+137) tmp = x / (a * (y * exp(b))); else tmp = (x / a) * ((z ^ y) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 6.1e+137], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.1 \cdot 10^{+137}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\end{array}
\end{array}
if y < 6.10000000000000004e137Initial program 98.2%
associate-/l*98.5%
associate--l+98.5%
exp-sum85.2%
associate-/l*85.2%
*-commutative85.2%
exp-to-pow85.2%
exp-diff75.6%
*-commutative75.6%
exp-to-pow76.2%
sub-neg76.2%
metadata-eval76.2%
Simplified76.2%
Taylor expanded in y around 0 71.1%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/76.4%
associate-/r*72.3%
Simplified72.3%
Taylor expanded in t around 0 64.8%
if 6.10000000000000004e137 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum62.2%
associate-/l*62.2%
*-commutative62.2%
exp-to-pow62.2%
exp-diff56.8%
*-commutative56.8%
exp-to-pow56.8%
sub-neg56.8%
metadata-eval56.8%
Simplified56.8%
Taylor expanded in t around 0 62.2%
Taylor expanded in b around 0 83.8%
times-frac89.3%
Simplified89.3%
Final simplification68.3%
(FPCore (x y z t a b) :precision binary64 (if (<= y 5.8e+60) (/ 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 (y <= 5.8e+60) {
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 (y <= 5.8d+60) 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 (y <= 5.8e+60) {
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 y <= 5.8e+60: 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 (y <= 5.8e+60) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 5.8e+60) 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[LessEqual[y, 5.8e+60], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.8 \cdot 10^{+60}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\end{array}
\end{array}
if y < 5.79999999999999999e60Initial program 98.1%
associate-/l*98.4%
associate--l+98.4%
exp-sum86.6%
associate-/l*86.6%
*-commutative86.6%
exp-to-pow86.6%
exp-diff76.6%
*-commutative76.6%
exp-to-pow77.1%
sub-neg77.1%
metadata-eval77.1%
Simplified77.1%
Taylor expanded in y around 0 72.7%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
associate-*r/77.9%
associate-/r*73.6%
Simplified73.6%
Taylor expanded in t around 0 65.8%
if 5.79999999999999999e60 < y Initial program 100.0%
Taylor expanded in t around 0 89.1%
+-commutative89.1%
mul-1-neg89.1%
unsub-neg89.1%
Simplified89.1%
Taylor expanded in b around 0 86.9%
div-exp86.9%
*-commutative86.9%
exp-to-pow86.9%
rem-exp-log86.9%
Simplified86.9%
Final simplification69.5%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum81.9%
associate-/l*81.9%
*-commutative81.9%
exp-to-pow81.9%
exp-diff72.9%
*-commutative72.9%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in y around 0 67.2%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/71.8%
associate-/r*67.9%
Simplified67.9%
Taylor expanded in t around 0 61.5%
Final simplification61.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b 1.8e-293)
(/ (* (/ x y) (+ b -1.0)) (- a))
(/
x
(*
a
(+ y (* b (+ y (* b (+ (* 0.16666666666666666 (* y b)) (* y 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.8e-293) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 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 <= 1.8d-293) then
tmp = ((x / y) * (b + (-1.0d0))) / -a
else
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666d0 * (y * b)) + (y * 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 <= 1.8e-293) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.8e-293: tmp = ((x / y) * (b + -1.0)) / -a else: tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.8e-293) tmp = Float64(Float64(Float64(x / y) * Float64(b + -1.0)) / Float64(-a)); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(0.16666666666666666 * Float64(y * b)) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.8e-293) tmp = ((x / y) * (b + -1.0)) / -a; else tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.8e-293], N[(N[(N[(x / y), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-a)), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(0.16666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.8 \cdot 10^{-293}:\\
\;\;\;\;\frac{\frac{x}{y} \cdot \left(b + -1\right)}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(0.16666666666666666 \cdot \left(y \cdot b\right) + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < 1.79999999999999993e-293Initial program 98.5%
associate-/l*98.8%
associate--l+98.8%
exp-sum78.4%
associate-/l*78.4%
*-commutative78.4%
exp-to-pow78.4%
exp-diff66.7%
*-commutative66.7%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in y around 0 60.3%
exp-to-pow60.7%
sub-neg60.7%
metadata-eval60.7%
associate-*r/65.4%
associate-/r*63.9%
Simplified63.9%
Taylor expanded in t around 0 55.8%
Taylor expanded in b around 0 31.3%
Taylor expanded in a around -inf 34.5%
mul-1-neg34.5%
distribute-neg-frac234.5%
+-commutative34.5%
associate-/l*36.6%
distribute-rgt-out36.6%
Simplified36.6%
if 1.79999999999999993e-293 < b Initial program 98.4%
associate-/l*98.6%
associate--l+98.6%
exp-sum86.0%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
exp-diff80.1%
*-commutative80.1%
exp-to-pow80.6%
sub-neg80.6%
metadata-eval80.6%
Simplified80.6%
Taylor expanded in y around 0 75.1%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
associate-*r/79.1%
associate-/r*72.4%
Simplified72.4%
Taylor expanded in t around 0 68.0%
Taylor expanded in b around 0 56.8%
Final simplification46.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b 1.55e-293)
(/ (* (/ x y) (+ b -1.0)) (- a))
(/
x
(* a (+ y (* b (+ y (* b (* y (+ 0.5 (* b 0.16666666666666666)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.55e-293) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (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 <= 1.55d-293) then
tmp = ((x / y) * (b + (-1.0d0))) / -a
else
tmp = x / (a * (y + (b * (y + (b * (y * (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 <= 1.55e-293) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.55e-293: tmp = ((x / y) * (b + -1.0)) / -a else: tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.55e-293) tmp = Float64(Float64(Float64(x / y) * Float64(b + -1.0)) / Float64(-a)); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(y * 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 <= 1.55e-293) tmp = ((x / y) * (b + -1.0)) / -a; else tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.55e-293], N[(N[(N[(x / y), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-a)), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(y * 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 1.55 \cdot 10^{-293}:\\
\;\;\;\;\frac{\frac{x}{y} \cdot \left(b + -1\right)}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(y \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < 1.54999999999999991e-293Initial program 98.5%
associate-/l*98.8%
associate--l+98.8%
exp-sum78.4%
associate-/l*78.4%
*-commutative78.4%
exp-to-pow78.4%
exp-diff66.7%
*-commutative66.7%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in y around 0 60.3%
exp-to-pow60.7%
sub-neg60.7%
metadata-eval60.7%
associate-*r/65.4%
associate-/r*63.9%
Simplified63.9%
Taylor expanded in t around 0 55.8%
Taylor expanded in b around 0 31.3%
Taylor expanded in a around -inf 34.5%
mul-1-neg34.5%
distribute-neg-frac234.5%
+-commutative34.5%
associate-/l*36.6%
distribute-rgt-out36.6%
Simplified36.6%
if 1.54999999999999991e-293 < b Initial program 98.4%
associate-/l*98.6%
associate--l+98.6%
exp-sum86.0%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
exp-diff80.1%
*-commutative80.1%
exp-to-pow80.6%
sub-neg80.6%
metadata-eval80.6%
Simplified80.6%
Taylor expanded in y around 0 75.1%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
associate-*r/79.1%
associate-/r*72.4%
Simplified72.4%
Taylor expanded in t around 0 68.0%
Taylor expanded in b around 0 56.8%
associate-*r*56.8%
distribute-rgt-out56.8%
Simplified56.8%
Final simplification46.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.8e-169)
(/ (* (/ x y) (+ b -1.0)) (- a))
(/
(/ x a)
(+ y (* b (+ y (* b (* y (+ 0.5 (* b 0.16666666666666666))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e-169) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = (x / a) / (y + (b * (y + (b * (y * (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 <= (-2.8d-169)) then
tmp = ((x / y) * (b + (-1.0d0))) / -a
else
tmp = (x / a) / (y + (b * (y + (b * (y * (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 <= -2.8e-169) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = (x / a) / (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.8e-169: tmp = ((x / y) * (b + -1.0)) / -a else: tmp = (x / a) / (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.8e-169) tmp = Float64(Float64(Float64(x / y) * Float64(b + -1.0)) / Float64(-a)); else tmp = Float64(Float64(x / a) / Float64(y + Float64(b * Float64(y + Float64(b * Float64(y * 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 <= -2.8e-169) tmp = ((x / y) * (b + -1.0)) / -a; else tmp = (x / a) / (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.8e-169], N[(N[(N[(x / y), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-a)), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / N[(y + N[(b * N[(y + N[(b * N[(y * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{-169}:\\
\;\;\;\;\frac{\frac{x}{y} \cdot \left(b + -1\right)}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y + b \cdot \left(y + b \cdot \left(y \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.79999999999999988e-169Initial program 99.7%
associate-/l*98.9%
associate--l+98.9%
exp-sum77.3%
associate-/l*77.3%
*-commutative77.3%
exp-to-pow77.3%
exp-diff61.6%
*-commutative61.6%
exp-to-pow61.7%
sub-neg61.7%
metadata-eval61.7%
Simplified61.7%
Taylor expanded in y around 0 54.1%
exp-to-pow54.3%
sub-neg54.3%
metadata-eval54.3%
associate-*r/60.2%
associate-/r*58.3%
Simplified58.3%
Taylor expanded in t around 0 61.6%
Taylor expanded in b around 0 28.6%
Taylor expanded in a around -inf 31.9%
mul-1-neg31.9%
distribute-neg-frac231.9%
+-commutative31.9%
associate-/l*34.7%
distribute-rgt-out34.7%
Simplified34.7%
if -2.79999999999999988e-169 < b Initial program 97.6%
associate-/l*98.6%
associate--l+98.6%
exp-sum84.9%
associate-/l*84.9%
*-commutative84.9%
exp-to-pow84.9%
exp-diff80.4%
*-commutative80.4%
exp-to-pow81.1%
sub-neg81.1%
metadata-eval81.1%
Simplified81.1%
Taylor expanded in y around 0 75.8%
exp-to-pow76.4%
sub-neg76.4%
metadata-eval76.4%
associate-*r/79.4%
associate-/r*74.2%
Simplified74.2%
unpow-prod-up74.3%
unpow-174.3%
Applied egg-rr74.3%
associate-*r/74.3%
*-rgt-identity74.3%
Simplified74.3%
Taylor expanded in t around 0 61.4%
associate-/r*58.4%
Simplified58.4%
Taylor expanded in b around 0 51.6%
associate-*r*52.8%
distribute-rgt-out52.8%
Simplified51.6%
Final simplification44.9%
(FPCore (x y z t a b) :precision binary64 (/ x (* y (+ a (* b (+ a (* b (+ (* 0.16666666666666666 (* a b)) (* a 0.5)))))))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5)))))));
}
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 + (b * (a + (b * ((0.16666666666666666d0 * (a * b)) + (a * 0.5d0)))))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5)))))));
}
def code(x, y, z, t, a, b): return x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5)))))))
function code(x, y, z, t, a, b) return Float64(x / Float64(y * Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(0.16666666666666666 * Float64(a * b)) + Float64(a * 0.5)))))))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * N[(a + N[(b * N[(a + N[(b * N[(N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot \left(a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)\right)}
\end{array}
Initial program 98.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum81.9%
associate-/l*81.9%
*-commutative81.9%
exp-to-pow81.9%
exp-diff72.9%
*-commutative72.9%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in y around 0 67.2%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/71.8%
associate-/r*67.9%
Simplified67.9%
Taylor expanded in t around 0 61.5%
Taylor expanded in b around 0 39.3%
Taylor expanded in y around 0 41.7%
Final simplification41.7%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (+ y (* b (* y (+ 1.0 (* b 0.5))))))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y + (b * (y * (1.0 + (b * 0.5))))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y + (b * (y * (1.0d0 + (b * 0.5d0))))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y + (b * (y * (1.0 + (b * 0.5))))));
}
def code(x, y, z, t, a, b): return x / (a * (y + (b * (y * (1.0 + (b * 0.5))))))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y + Float64(b * Float64(y * Float64(1.0 + Float64(b * 0.5))))))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y + (b * (y * (1.0 + (b * 0.5)))))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y + N[(b * N[(y * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y + b \cdot \left(y \cdot \left(1 + b \cdot 0.5\right)\right)\right)}
\end{array}
Initial program 98.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum81.9%
associate-/l*81.9%
*-commutative81.9%
exp-to-pow81.9%
exp-diff72.9%
*-commutative72.9%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in y around 0 67.2%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/71.8%
associate-/r*67.9%
Simplified67.9%
Taylor expanded in t around 0 61.5%
Taylor expanded in b around 0 39.4%
associate-*r*39.4%
distribute-rgt1-in39.4%
Simplified39.4%
Final simplification39.4%
(FPCore (x y z t a b) :precision binary64 (/ 1.0 (* a (/ y x))))
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (a * (y / x));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = 1.0d0 / (a * (y / x))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (a * (y / x));
}
def code(x, y, z, t, a, b): return 1.0 / (a * (y / x))
function code(x, y, z, t, a, b) return Float64(1.0 / Float64(a * Float64(y / x))) end
function tmp = code(x, y, z, t, a, b) tmp = 1.0 / (a * (y / x)); end
code[x_, y_, z_, t_, a_, b_] := N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{a \cdot \frac{y}{x}}
\end{array}
Initial program 98.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum81.9%
associate-/l*81.9%
*-commutative81.9%
exp-to-pow81.9%
exp-diff72.9%
*-commutative72.9%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in y around 0 67.2%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/71.8%
associate-/r*67.9%
Simplified67.9%
Taylor expanded in t around 0 61.5%
Taylor expanded in b around 0 32.6%
clear-num32.7%
inv-pow32.7%
Applied egg-rr32.7%
unpow-132.7%
associate-/l*35.6%
Simplified35.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 98.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum81.9%
associate-/l*81.9%
*-commutative81.9%
exp-to-pow81.9%
exp-diff72.9%
*-commutative72.9%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in y around 0 67.2%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/71.8%
associate-/r*67.9%
Simplified67.9%
Taylor expanded in t around 0 61.5%
Taylor expanded in b around 0 32.6%
Final simplification32.6%
(FPCore (x y z t a b) :precision binary64 (/ (/ x a) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x / a) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
def code(x, y, z, t, a, b): return (x / a) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / a) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / a) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a}}{y}
\end{array}
Initial program 98.4%
Taylor expanded in t around 0 78.9%
+-commutative78.9%
mul-1-neg78.9%
unsub-neg78.9%
Simplified78.9%
Taylor expanded in b around 0 55.1%
div-exp55.1%
*-commutative55.1%
exp-to-pow55.1%
rem-exp-log55.5%
Simplified55.5%
Taylor expanded in y around 0 33.9%
Final simplification33.9%
(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 2024066
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))