
(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 21 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.9%
Final simplification98.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.05e+32) (not (<= y 2.4e+19))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) 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 <= -1.05e+32) || !(y <= 2.4e+19)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / 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 <= (-1.05d+32)) .or. (.not. (y <= 2.4d+19))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / 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 <= -1.05e+32) || !(y <= 2.4e+19)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / 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 <= -1.05e+32) or not (y <= 2.4e+19): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / 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 <= -1.05e+32) || !(y <= 2.4e+19)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / 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 <= -1.05e+32) || ~((y <= 2.4e+19))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.05e+32], N[Not[LessEqual[y, 2.4e+19]], $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], 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 -1.05 \cdot 10^{+32} \lor \neg \left(y \leq 2.4 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.05e32 or 2.4e19 < y Initial program 100.0%
Taylor expanded in t around 0 96.0%
+-commutative96.0%
mul-1-neg96.0%
unsub-neg96.0%
Simplified96.0%
if -1.05e32 < y < 2.4e19Initial program 97.9%
Taylor expanded in y around 0 97.5%
Final simplification96.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= t -1.4e+73)
(and (not (<= t 0.19)) (or (<= t 3.1e+60) (not (<= t 1.1e+161)))))
(/ (* x (/ (pow a t) a)) y)
(/ (* x (/ (/ (pow z y) y) (exp b))) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.4e+73) || (!(t <= 0.19) && ((t <= 3.1e+60) || !(t <= 1.1e+161)))) {
tmp = (x * (pow(a, t) / a)) / y;
} else {
tmp = (x * ((pow(z, y) / y) / exp(b))) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.4d+73)) .or. (.not. (t <= 0.19d0)) .and. (t <= 3.1d+60) .or. (.not. (t <= 1.1d+161))) then
tmp = (x * ((a ** t) / a)) / y
else
tmp = (x * (((z ** y) / y) / exp(b))) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.4e+73) || (!(t <= 0.19) && ((t <= 3.1e+60) || !(t <= 1.1e+161)))) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else {
tmp = (x * ((Math.pow(z, y) / y) / Math.exp(b))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.4e+73) or (not (t <= 0.19) and ((t <= 3.1e+60) or not (t <= 1.1e+161))): tmp = (x * (math.pow(a, t) / a)) / y else: tmp = (x * ((math.pow(z, y) / y) / math.exp(b))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.4e+73) || (!(t <= 0.19) && ((t <= 3.1e+60) || !(t <= 1.1e+161)))) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); else tmp = Float64(Float64(x * Float64(Float64((z ^ y) / y) / exp(b))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.4e+73) || (~((t <= 0.19)) && ((t <= 3.1e+60) || ~((t <= 1.1e+161))))) tmp = (x * ((a ^ t) / a)) / y; else tmp = (x * (((z ^ y) / y) / exp(b))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.4e+73], And[N[Not[LessEqual[t, 0.19]], $MachinePrecision], Or[LessEqual[t, 3.1e+60], N[Not[LessEqual[t, 1.1e+161]], $MachinePrecision]]]], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+73} \lor \neg \left(t \leq 0.19\right) \land \left(t \leq 3.1 \cdot 10^{+60} \lor \neg \left(t \leq 1.1 \cdot 10^{+161}\right)\right):\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\
\end{array}
\end{array}
if t < -1.40000000000000004e73 or 0.19 < t < 3.1000000000000001e60 or 1.1e161 < t Initial program 100.0%
Taylor expanded in y around 0 93.8%
exp-diff66.7%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
Simplified66.7%
Taylor expanded in b around 0 82.6%
Simplified82.6%
+-commutative82.6%
unpow-prod-up82.6%
inv-pow82.6%
Applied egg-rr82.6%
associate-*r/82.6%
*-rgt-identity82.6%
Simplified82.6%
if -1.40000000000000004e73 < t < 0.19 or 3.1000000000000001e60 < t < 1.1e161Initial program 98.3%
associate-*l/88.8%
*-commutative88.8%
exp-diff76.3%
exp-sum69.4%
*-commutative69.4%
exp-to-pow69.4%
*-commutative69.4%
exp-to-pow70.5%
sub-neg70.5%
metadata-eval70.5%
Simplified70.5%
Taylor expanded in t around 0 78.8%
times-frac78.6%
Simplified78.6%
associate-*l/86.1%
associate-/r*86.1%
Applied egg-rr86.1%
Final simplification84.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y))
(t_2 (/ (* x (/ (pow z y) y)) a)))
(if (<= y -1.9e+31)
t_2
(if (<= y -5.4e-227)
t_1
(if (<= y 3.2e-169)
(/ (* x (/ (pow a t) a)) y)
(if (<= y 6e+16) 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)) / exp(b))) / y;
double t_2 = (x * (pow(z, y) / y)) / a;
double tmp;
if (y <= -1.9e+31) {
tmp = t_2;
} else if (y <= -5.4e-227) {
tmp = t_1;
} else if (y <= 3.2e-169) {
tmp = (x * (pow(a, t) / a)) / y;
} else if (y <= 6e+16) {
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))) / exp(b))) / y
t_2 = (x * ((z ** y) / y)) / a
if (y <= (-1.9d+31)) then
tmp = t_2
else if (y <= (-5.4d-227)) then
tmp = t_1
else if (y <= 3.2d-169) then
tmp = (x * ((a ** t) / a)) / y
else if (y <= 6d+16) 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)) / Math.exp(b))) / y;
double t_2 = (x * (Math.pow(z, y) / y)) / a;
double tmp;
if (y <= -1.9e+31) {
tmp = t_2;
} else if (y <= -5.4e-227) {
tmp = t_1;
} else if (y <= 3.2e-169) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else if (y <= 6e+16) {
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)) / math.exp(b))) / y t_2 = (x * (math.pow(z, y) / y)) / a tmp = 0 if y <= -1.9e+31: tmp = t_2 elif y <= -5.4e-227: tmp = t_1 elif y <= 3.2e-169: tmp = (x * (math.pow(a, t) / a)) / y elif y <= 6e+16: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y) t_2 = Float64(Float64(x * Float64((z ^ y) / y)) / a) tmp = 0.0 if (y <= -1.9e+31) tmp = t_2; elseif (y <= -5.4e-227) tmp = t_1; elseif (y <= 3.2e-169) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); elseif (y <= 6e+16) 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)) / exp(b))) / y; t_2 = (x * ((z ^ y) / y)) / a; tmp = 0.0; if (y <= -1.9e+31) tmp = t_2; elseif (y <= -5.4e-227) tmp = t_1; elseif (y <= 3.2e-169) tmp = (x * ((a ^ t) / a)) / y; elseif (y <= 6e+16) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[y, -1.9e+31], t$95$2, If[LessEqual[y, -5.4e-227], t$95$1, If[LessEqual[y, 3.2e-169], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 6e+16], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+31}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5.4 \cdot 10^{-227}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-169}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.9000000000000001e31 or 6e16 < y Initial program 100.0%
associate-*l/88.8%
*-commutative88.8%
exp-diff68.8%
exp-sum51.2%
*-commutative51.2%
exp-to-pow51.2%
*-commutative51.2%
exp-to-pow51.2%
sub-neg51.2%
metadata-eval51.2%
Simplified51.2%
Taylor expanded in t around 0 63.2%
times-frac66.5%
Simplified66.5%
associate-*l/72.1%
associate-/r*72.1%
Applied egg-rr72.1%
Taylor expanded in b around 0 84.3%
associate-*r/84.3%
Simplified84.3%
if -1.9000000000000001e31 < y < -5.3999999999999999e-227 or 3.19999999999999995e-169 < y < 6e16Initial program 98.2%
Taylor expanded in y around 0 97.6%
exp-diff91.5%
exp-to-pow92.9%
sub-neg92.9%
metadata-eval92.9%
Simplified92.9%
if -5.3999999999999999e-227 < y < 3.19999999999999995e-169Initial program 97.3%
Taylor expanded in y around 0 97.3%
exp-diff72.3%
exp-to-pow73.0%
sub-neg73.0%
metadata-eval73.0%
Simplified73.0%
Taylor expanded in b around 0 81.0%
Simplified81.6%
+-commutative81.6%
unpow-prod-up81.6%
inv-pow81.6%
Applied egg-rr81.6%
associate-*r/81.6%
*-rgt-identity81.6%
Simplified81.6%
Final simplification86.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.1e+174) (not (<= b 5.8e+29))) (/ x (* a (* y (exp b)))) (/ x (/ y (* (pow z y) (pow a (+ t -1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.1e+174) || !(b <= 5.8e+29)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x / (y / (pow(z, y) * pow(a, (t + -1.0))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-2.1d+174)) .or. (.not. (b <= 5.8d+29))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x / (y / ((z ** y) * (a ** (t + (-1.0d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.1e+174) || !(b <= 5.8e+29)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x / (y / (Math.pow(z, y) * Math.pow(a, (t + -1.0))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.1e+174) or not (b <= 5.8e+29): tmp = x / (a * (y * math.exp(b))) else: tmp = x / (y / (math.pow(z, y) * math.pow(a, (t + -1.0)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.1e+174) || !(b <= 5.8e+29)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x / Float64(y / Float64((z ^ y) * (a ^ Float64(t + -1.0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.1e+174) || ~((b <= 5.8e+29))) tmp = x / (a * (y * exp(b))); else tmp = x / (y / ((z ^ y) * (a ^ (t + -1.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.1e+174], N[Not[LessEqual[b, 5.8e+29]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y / N[(N[Power[z, y], $MachinePrecision] * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+174} \lor \neg \left(b \leq 5.8 \cdot 10^{+29}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{{z}^{y} \cdot {a}^{\left(t + -1\right)}}}\\
\end{array}
\end{array}
if b < -2.10000000000000017e174 or 5.7999999999999999e29 < b Initial program 100.0%
associate-*l/89.6%
*-commutative89.6%
exp-diff59.4%
exp-sum49.0%
*-commutative49.0%
exp-to-pow49.0%
*-commutative49.0%
exp-to-pow49.0%
sub-neg49.0%
metadata-eval49.0%
Simplified49.0%
Taylor expanded in t around 0 67.8%
times-frac61.5%
Simplified61.5%
Taylor expanded in y around 0 85.6%
if -2.10000000000000017e174 < b < 5.7999999999999999e29Initial program 98.3%
associate-*l/90.0%
*-commutative90.0%
exp-diff83.2%
exp-sum73.8%
*-commutative73.8%
exp-to-pow73.8%
*-commutative73.8%
exp-to-pow74.9%
sub-neg74.9%
metadata-eval74.9%
Simplified74.9%
Taylor expanded in b around 0 84.0%
associate-/l*82.4%
*-commutative82.4%
exp-to-pow83.2%
sub-neg83.2%
metadata-eval83.2%
Simplified83.2%
Final simplification84.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6.6e+62) (not (<= y 1.15e+44))) (/ (* x (/ (pow z y) y)) a) (/ (* 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 <= -6.6e+62) || !(y <= 1.15e+44)) {
tmp = (x * (pow(z, y) / y)) / a;
} 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 <= (-6.6d+62)) .or. (.not. (y <= 1.15d+44))) then
tmp = (x * ((z ** y) / y)) / a
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 <= -6.6e+62) || !(y <= 1.15e+44)) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} 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 <= -6.6e+62) or not (y <= 1.15e+44): tmp = (x * (math.pow(z, y) / y)) / a 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 <= -6.6e+62) || !(y <= 1.15e+44)) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); 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 <= -6.6e+62) || ~((y <= 1.15e+44))) tmp = (x * ((z ^ y) / y)) / a; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.6e+62], N[Not[LessEqual[y, 1.15e+44]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $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 -6.6 \cdot 10^{+62} \lor \neg \left(y \leq 1.15 \cdot 10^{+44}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -6.6e62 or 1.15000000000000002e44 < y Initial program 100.0%
associate-*l/88.1%
*-commutative88.1%
exp-diff71.6%
exp-sum53.2%
*-commutative53.2%
exp-to-pow53.2%
*-commutative53.2%
exp-to-pow53.2%
sub-neg53.2%
metadata-eval53.2%
Simplified53.2%
Taylor expanded in t around 0 67.9%
times-frac71.6%
Simplified71.6%
associate-*l/77.1%
associate-/r*77.1%
Applied egg-rr77.1%
Taylor expanded in b around 0 90.1%
associate-*r/90.1%
Simplified90.1%
if -6.6e62 < y < 1.15000000000000002e44Initial program 98.1%
Taylor expanded in y around 0 95.1%
Final simplification93.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) y)) a)) (t_2 (/ (* x (/ (pow a t) a)) y)))
(if (<= y -1.6e+59)
t_1
(if (<= y -9e-155)
(/ (/ x (* a (exp b))) y)
(if (<= y 2.2e-162)
t_2
(if (<= y 1.1e-74)
(/ x (* a (* y (exp b))))
(if (<= y 96000.0) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / y)) / a;
double t_2 = (x * (pow(a, t) / a)) / y;
double tmp;
if (y <= -1.6e+59) {
tmp = t_1;
} else if (y <= -9e-155) {
tmp = (x / (a * exp(b))) / y;
} else if (y <= 2.2e-162) {
tmp = t_2;
} else if (y <= 1.1e-74) {
tmp = x / (a * (y * exp(b)));
} else if (y <= 96000.0) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (x * ((z ** y) / y)) / a
t_2 = (x * ((a ** t) / a)) / y
if (y <= (-1.6d+59)) then
tmp = t_1
else if (y <= (-9d-155)) then
tmp = (x / (a * exp(b))) / y
else if (y <= 2.2d-162) then
tmp = t_2
else if (y <= 1.1d-74) then
tmp = x / (a * (y * exp(b)))
else if (y <= 96000.0d0) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (Math.pow(z, y) / y)) / a;
double t_2 = (x * (Math.pow(a, t) / a)) / y;
double tmp;
if (y <= -1.6e+59) {
tmp = t_1;
} else if (y <= -9e-155) {
tmp = (x / (a * Math.exp(b))) / y;
} else if (y <= 2.2e-162) {
tmp = t_2;
} else if (y <= 1.1e-74) {
tmp = x / (a * (y * Math.exp(b)));
} else if (y <= 96000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / y)) / a t_2 = (x * (math.pow(a, t) / a)) / y tmp = 0 if y <= -1.6e+59: tmp = t_1 elif y <= -9e-155: tmp = (x / (a * math.exp(b))) / y elif y <= 2.2e-162: tmp = t_2 elif y <= 1.1e-74: tmp = x / (a * (y * math.exp(b))) elif y <= 96000.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / y)) / a) t_2 = Float64(Float64(x * Float64((a ^ t) / a)) / y) tmp = 0.0 if (y <= -1.6e+59) tmp = t_1; elseif (y <= -9e-155) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); elseif (y <= 2.2e-162) tmp = t_2; elseif (y <= 1.1e-74) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (y <= 96000.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / y)) / a; t_2 = (x * ((a ^ t) / a)) / y; tmp = 0.0; if (y <= -1.6e+59) tmp = t_1; elseif (y <= -9e-155) tmp = (x / (a * exp(b))) / y; elseif (y <= 2.2e-162) tmp = t_2; elseif (y <= 1.1e-74) tmp = x / (a * (y * exp(b))); elseif (y <= 96000.0) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.6e+59], t$95$1, If[LessEqual[y, -9e-155], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 2.2e-162], t$95$2, If[LessEqual[y, 1.1e-74], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 96000.0], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
t_2 := \frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{if}\;y \leq -1.6 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-155}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-162}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;y \leq 96000:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.59999999999999991e59 or 96000 < y Initial program 100.0%
associate-*l/89.2%
*-commutative89.2%
exp-diff70.8%
exp-sum53.3%
*-commutative53.3%
exp-to-pow53.3%
*-commutative53.3%
exp-to-pow53.3%
sub-neg53.3%
metadata-eval53.3%
Simplified53.3%
Taylor expanded in t around 0 66.7%
times-frac70.0%
Simplified70.0%
associate-*l/75.0%
associate-/r*75.0%
Applied egg-rr75.0%
Taylor expanded in b around 0 87.7%
associate-*r/87.7%
Simplified87.7%
if -1.59999999999999991e59 < y < -9.0000000000000007e-155Initial program 98.3%
Taylor expanded in t around 0 85.0%
+-commutative85.0%
mul-1-neg85.0%
unsub-neg85.0%
Simplified85.0%
Taylor expanded in y around 0 79.8%
exp-neg79.8%
associate-*r/79.8%
*-rgt-identity79.8%
+-commutative79.8%
exp-sum79.8%
rem-exp-log81.2%
Simplified81.2%
if -9.0000000000000007e-155 < y < 2.1999999999999999e-162 or 1.10000000000000005e-74 < y < 96000Initial program 97.8%
Taylor expanded in y around 0 97.1%
exp-diff81.6%
exp-to-pow82.5%
sub-neg82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in b around 0 80.8%
Simplified81.5%
+-commutative81.5%
unpow-prod-up81.5%
inv-pow81.5%
Applied egg-rr81.5%
associate-*r/81.5%
*-rgt-identity81.5%
Simplified81.5%
if 2.1999999999999999e-162 < y < 1.10000000000000005e-74Initial program 98.5%
associate-*l/84.2%
*-commutative84.2%
exp-diff77.1%
exp-sum77.1%
*-commutative77.1%
exp-to-pow77.1%
*-commutative77.1%
exp-to-pow78.6%
sub-neg78.6%
metadata-eval78.6%
Simplified78.6%
Taylor expanded in t around 0 86.0%
times-frac71.9%
Simplified71.9%
Taylor expanded in y around 0 86.0%
Final simplification84.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -0.00069)
t_1
(if (<= b 5.4e-263)
(/ (* x (/ (pow a t) a)) y)
(if (<= b 6.8e+28) (* (/ (pow z y) a) (/ x 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 <= -0.00069) {
tmp = t_1;
} else if (b <= 5.4e-263) {
tmp = (x * (pow(a, t) / a)) / y;
} else if (b <= 6.8e+28) {
tmp = (pow(z, y) / a) * (x / 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 <= (-0.00069d0)) then
tmp = t_1
else if (b <= 5.4d-263) then
tmp = (x * ((a ** t) / a)) / y
else if (b <= 6.8d+28) then
tmp = ((z ** y) / a) * (x / 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 <= -0.00069) {
tmp = t_1;
} else if (b <= 5.4e-263) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else if (b <= 6.8e+28) {
tmp = (Math.pow(z, y) / a) * (x / 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 <= -0.00069: tmp = t_1 elif b <= 5.4e-263: tmp = (x * (math.pow(a, t) / a)) / y elif b <= 6.8e+28: tmp = (math.pow(z, y) / a) * (x / 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 <= -0.00069) tmp = t_1; elseif (b <= 5.4e-263) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); elseif (b <= 6.8e+28) tmp = Float64(Float64((z ^ y) / a) * Float64(x / 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 <= -0.00069) tmp = t_1; elseif (b <= 5.4e-263) tmp = (x * ((a ^ t) / a)) / y; elseif (b <= 6.8e+28) tmp = ((z ^ y) / a) * (x / 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, -0.00069], t$95$1, If[LessEqual[b, 5.4e-263], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 6.8e+28], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / 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 -0.00069:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{-263}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{+28}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -6.89999999999999967e-4 or 6.8e28 < b Initial program 100.0%
associate-*l/86.7%
*-commutative86.7%
exp-diff56.3%
exp-sum47.7%
*-commutative47.7%
exp-to-pow47.7%
*-commutative47.7%
exp-to-pow47.7%
sub-neg47.7%
metadata-eval47.7%
Simplified47.7%
Taylor expanded in t around 0 65.7%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 80.8%
if -6.89999999999999967e-4 < b < 5.40000000000000007e-263Initial program 98.6%
Taylor expanded in y around 0 73.8%
exp-diff73.7%
exp-to-pow74.9%
sub-neg74.9%
metadata-eval74.9%
Simplified74.9%
Taylor expanded in b around 0 73.7%
Simplified74.7%
+-commutative74.7%
unpow-prod-up74.9%
inv-pow74.9%
Applied egg-rr74.9%
associate-*r/74.9%
*-rgt-identity74.9%
Simplified74.9%
if 5.40000000000000007e-263 < b < 6.8e28Initial program 96.6%
Taylor expanded in t around 0 80.3%
+-commutative80.3%
mul-1-neg80.3%
unsub-neg80.3%
Simplified80.3%
Taylor expanded in b around 0 82.4%
div-exp82.4%
*-commutative82.4%
exp-to-pow82.4%
rem-exp-log83.7%
associate-*r/83.7%
associate-/r*69.3%
*-commutative69.3%
times-frac81.5%
Simplified81.5%
Final simplification79.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -135.0) (not (<= b 5.8e+29))) (/ x (* a (* y (exp b)))) (* (/ (pow z y) y) (/ x a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -135.0) || !(b <= 5.8e+29)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (pow(z, y) / y) * (x / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-135.0d0)) .or. (.not. (b <= 5.8d+29))) then
tmp = x / (a * (y * exp(b)))
else
tmp = ((z ** y) / y) * (x / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -135.0) || !(b <= 5.8e+29)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (Math.pow(z, y) / y) * (x / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -135.0) or not (b <= 5.8e+29): tmp = x / (a * (y * math.exp(b))) else: tmp = (math.pow(z, y) / y) * (x / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -135.0) || !(b <= 5.8e+29)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64((z ^ y) / y) * Float64(x / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -135.0) || ~((b <= 5.8e+29))) tmp = x / (a * (y * exp(b))); else tmp = ((z ^ y) / y) * (x / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -135.0], N[Not[LessEqual[b, 5.8e+29]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -135 \lor \neg \left(b \leq 5.8 \cdot 10^{+29}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{z}^{y}}{y} \cdot \frac{x}{a}\\
\end{array}
\end{array}
if b < -135 or 5.7999999999999999e29 < b Initial program 100.0%
associate-*l/86.6%
*-commutative86.6%
exp-diff55.9%
exp-sum48.0%
*-commutative48.0%
exp-to-pow48.0%
*-commutative48.0%
exp-to-pow48.0%
sub-neg48.0%
metadata-eval48.0%
Simplified48.0%
Taylor expanded in t around 0 65.5%
times-frac59.9%
Simplified59.9%
Taylor expanded in y around 0 81.4%
if -135 < b < 5.7999999999999999e29Initial program 97.9%
associate-*l/93.1%
*-commutative93.1%
exp-diff92.3%
exp-sum80.7%
*-commutative80.7%
exp-to-pow80.7%
*-commutative80.7%
exp-to-pow82.0%
sub-neg82.0%
metadata-eval82.0%
Simplified82.0%
Taylor expanded in t around 0 65.5%
times-frac71.7%
Simplified71.7%
Taylor expanded in b around 0 72.4%
Final simplification76.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y 2e-288) (/ (/ x (* a (exp b))) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 2e-288) {
tmp = (x / (a * exp(b))) / 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 (y <= 2d-288) then
tmp = (x / (a * exp(b))) / 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 (y <= 2e-288) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 2e-288: tmp = (x / (a * math.exp(b))) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 2e-288) tmp = Float64(Float64(x / Float64(a * exp(b))) / 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 (y <= 2e-288) tmp = (x / (a * exp(b))) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 2e-288], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $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}\;y \leq 2 \cdot 10^{-288}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if y < 2.00000000000000012e-288Initial program 99.1%
Taylor expanded in t around 0 85.0%
+-commutative85.0%
mul-1-neg85.0%
unsub-neg85.0%
Simplified85.0%
Taylor expanded in y around 0 66.4%
exp-neg66.4%
associate-*r/66.4%
*-rgt-identity66.4%
+-commutative66.4%
exp-sum66.4%
rem-exp-log67.2%
Simplified67.2%
if 2.00000000000000012e-288 < y Initial program 98.7%
associate-*l/88.1%
*-commutative88.1%
exp-diff76.0%
exp-sum65.5%
*-commutative65.5%
exp-to-pow65.5%
*-commutative65.5%
exp-to-pow66.1%
sub-neg66.1%
metadata-eval66.1%
Simplified66.1%
Taylor expanded in t around 0 70.5%
times-frac65.8%
Simplified65.8%
Taylor expanded in y around 0 57.0%
Final simplification62.2%
(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.9%
associate-*l/89.9%
*-commutative89.9%
exp-diff74.2%
exp-sum64.5%
*-commutative64.5%
exp-to-pow64.5%
*-commutative64.5%
exp-to-pow65.1%
sub-neg65.1%
metadata-eval65.1%
Simplified65.1%
Taylor expanded in t around 0 65.5%
times-frac65.9%
Simplified65.9%
Taylor expanded in y around 0 60.3%
Final simplification60.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ 1.0 (* y (/ a x)))) (t_2 (/ (* b (- x)) (* y a))))
(if (<= b -1.25e-7)
t_2
(if (<= b -6.5e-213)
t_1
(if (<= b -2e-253)
t_2
(if (<= b 2.8e-180) t_1 (/ x (* a (+ y (* y b))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 / (y * (a / x));
double t_2 = (b * -x) / (y * a);
double tmp;
if (b <= -1.25e-7) {
tmp = t_2;
} else if (b <= -6.5e-213) {
tmp = t_1;
} else if (b <= -2e-253) {
tmp = t_2;
} else if (b <= 2.8e-180) {
tmp = t_1;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 1.0d0 / (y * (a / x))
t_2 = (b * -x) / (y * a)
if (b <= (-1.25d-7)) then
tmp = t_2
else if (b <= (-6.5d-213)) then
tmp = t_1
else if (b <= (-2d-253)) then
tmp = t_2
else if (b <= 2.8d-180) then
tmp = t_1
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 / (y * (a / x));
double t_2 = (b * -x) / (y * a);
double tmp;
if (b <= -1.25e-7) {
tmp = t_2;
} else if (b <= -6.5e-213) {
tmp = t_1;
} else if (b <= -2e-253) {
tmp = t_2;
} else if (b <= 2.8e-180) {
tmp = t_1;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 / (y * (a / x)) t_2 = (b * -x) / (y * a) tmp = 0 if b <= -1.25e-7: tmp = t_2 elif b <= -6.5e-213: tmp = t_1 elif b <= -2e-253: tmp = t_2 elif b <= 2.8e-180: tmp = t_1 else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 / Float64(y * Float64(a / x))) t_2 = Float64(Float64(b * Float64(-x)) / Float64(y * a)) tmp = 0.0 if (b <= -1.25e-7) tmp = t_2; elseif (b <= -6.5e-213) tmp = t_1; elseif (b <= -2e-253) tmp = t_2; elseif (b <= 2.8e-180) tmp = t_1; else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 / (y * (a / x)); t_2 = (b * -x) / (y * a); tmp = 0.0; if (b <= -1.25e-7) tmp = t_2; elseif (b <= -6.5e-213) tmp = t_1; elseif (b <= -2e-253) tmp = t_2; elseif (b <= 2.8e-180) tmp = t_1; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * (-x)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e-7], t$95$2, If[LessEqual[b, -6.5e-213], t$95$1, If[LessEqual[b, -2e-253], t$95$2, If[LessEqual[b, 2.8e-180], t$95$1, N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{1}{y \cdot \frac{a}{x}}\\
t_2 := \frac{b \cdot \left(-x\right)}{y \cdot a}\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{-7}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-213}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-253}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-180}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.24999999999999994e-7 or -6.5e-213 < b < -2.0000000000000001e-253Initial program 100.0%
associate-*l/87.5%
*-commutative87.5%
exp-diff63.8%
exp-sum52.5%
*-commutative52.5%
exp-to-pow52.5%
*-commutative52.5%
exp-to-pow52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in t around 0 66.4%
times-frac65.2%
Simplified65.2%
Taylor expanded in y around 0 73.2%
Taylor expanded in b around 0 52.8%
Taylor expanded in b around inf 58.7%
if -1.24999999999999994e-7 < b < -6.5e-213 or -2.0000000000000001e-253 < b < 2.79999999999999997e-180Initial program 98.3%
associate-*l/91.3%
*-commutative91.3%
exp-diff91.3%
exp-sum83.2%
*-commutative83.2%
exp-to-pow83.2%
*-commutative83.2%
exp-to-pow84.7%
sub-neg84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in t around 0 66.6%
times-frac72.3%
Simplified72.3%
Taylor expanded in b around 0 72.2%
Taylor expanded in y around 0 44.0%
clear-num45.1%
frac-times45.6%
metadata-eval45.6%
Applied egg-rr45.6%
if 2.79999999999999997e-180 < b Initial program 98.6%
associate-*l/90.6%
*-commutative90.6%
exp-diff67.3%
exp-sum57.3%
*-commutative57.3%
exp-to-pow57.3%
*-commutative57.3%
exp-to-pow57.7%
sub-neg57.7%
metadata-eval57.7%
Simplified57.7%
Taylor expanded in t around 0 63.6%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 68.6%
Taylor expanded in b around 0 44.1%
Final simplification49.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ 1.0 (* y (/ a x)))) (t_2 (/ (* b (- x)) (* y a))))
(if (<= b -9.8e-8)
t_2
(if (<= b -8e-217)
t_1
(if (<= b -2.35e-253)
t_2
(if (<= b 6.2e-9) t_1 (/ x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 / (y * (a / x));
double t_2 = (b * -x) / (y * a);
double tmp;
if (b <= -9.8e-8) {
tmp = t_2;
} else if (b <= -8e-217) {
tmp = t_1;
} else if (b <= -2.35e-253) {
tmp = t_2;
} else if (b <= 6.2e-9) {
tmp = t_1;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 1.0d0 / (y * (a / x))
t_2 = (b * -x) / (y * a)
if (b <= (-9.8d-8)) then
tmp = t_2
else if (b <= (-8d-217)) then
tmp = t_1
else if (b <= (-2.35d-253)) then
tmp = t_2
else if (b <= 6.2d-9) then
tmp = t_1
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 t_1 = 1.0 / (y * (a / x));
double t_2 = (b * -x) / (y * a);
double tmp;
if (b <= -9.8e-8) {
tmp = t_2;
} else if (b <= -8e-217) {
tmp = t_1;
} else if (b <= -2.35e-253) {
tmp = t_2;
} else if (b <= 6.2e-9) {
tmp = t_1;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 / (y * (a / x)) t_2 = (b * -x) / (y * a) tmp = 0 if b <= -9.8e-8: tmp = t_2 elif b <= -8e-217: tmp = t_1 elif b <= -2.35e-253: tmp = t_2 elif b <= 6.2e-9: tmp = t_1 else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 / Float64(y * Float64(a / x))) t_2 = Float64(Float64(b * Float64(-x)) / Float64(y * a)) tmp = 0.0 if (b <= -9.8e-8) tmp = t_2; elseif (b <= -8e-217) tmp = t_1; elseif (b <= -2.35e-253) tmp = t_2; elseif (b <= 6.2e-9) tmp = t_1; else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 / (y * (a / x)); t_2 = (b * -x) / (y * a); tmp = 0.0; if (b <= -9.8e-8) tmp = t_2; elseif (b <= -8e-217) tmp = t_1; elseif (b <= -2.35e-253) tmp = t_2; elseif (b <= 6.2e-9) tmp = t_1; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * (-x)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.8e-8], t$95$2, If[LessEqual[b, -8e-217], t$95$1, If[LessEqual[b, -2.35e-253], t$95$2, If[LessEqual[b, 6.2e-9], t$95$1, N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{1}{y \cdot \frac{a}{x}}\\
t_2 := \frac{b \cdot \left(-x\right)}{y \cdot a}\\
\mathbf{if}\;b \leq -9.8 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.35 \cdot 10^{-253}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{-9}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -9.8000000000000004e-8 or -8.00000000000000066e-217 < b < -2.34999999999999991e-253Initial program 100.0%
associate-*l/87.5%
*-commutative87.5%
exp-diff63.8%
exp-sum52.5%
*-commutative52.5%
exp-to-pow52.5%
*-commutative52.5%
exp-to-pow52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in t around 0 66.4%
times-frac65.2%
Simplified65.2%
Taylor expanded in y around 0 73.2%
Taylor expanded in b around 0 52.8%
Taylor expanded in b around inf 58.7%
if -9.8000000000000004e-8 < b < -8.00000000000000066e-217 or -2.34999999999999991e-253 < b < 6.2000000000000001e-9Initial program 97.6%
associate-*l/92.1%
*-commutative92.1%
exp-diff92.1%
exp-sum83.3%
*-commutative83.3%
exp-to-pow83.3%
*-commutative83.3%
exp-to-pow84.7%
sub-neg84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in t around 0 65.0%
times-frac72.0%
Simplified72.0%
Taylor expanded in b around 0 71.9%
Taylor expanded in y around 0 43.0%
clear-num43.8%
frac-times44.1%
metadata-eval44.1%
Applied egg-rr44.1%
if 6.2000000000000001e-9 < b Initial program 100.0%
associate-*l/88.9%
*-commutative88.9%
exp-diff55.6%
exp-sum46.0%
*-commutative46.0%
exp-to-pow46.0%
*-commutative46.0%
exp-to-pow46.0%
sub-neg46.0%
metadata-eval46.0%
Simplified46.0%
Taylor expanded in t around 0 65.2%
times-frac55.6%
Simplified55.6%
Taylor expanded in y around 0 78.1%
Taylor expanded in b around 0 43.2%
Taylor expanded in b around inf 43.2%
Final simplification48.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.8e-216)
(/ (- (/ x y) (/ (* x b) y)) a)
(if (<= b -1.12e-253)
(/ (* b (- x)) (* y a))
(if (<= b 1.4e-182) (/ 1.0 (* y (/ a x))) (/ x (* a (+ y (* y b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.8e-216) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= -1.12e-253) {
tmp = (b * -x) / (y * a);
} else if (b <= 1.4e-182) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-7.8d-216)) then
tmp = ((x / y) - ((x * b) / y)) / a
else if (b <= (-1.12d-253)) then
tmp = (b * -x) / (y * a)
else if (b <= 1.4d-182) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.8e-216) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= -1.12e-253) {
tmp = (b * -x) / (y * a);
} else if (b <= 1.4e-182) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.8e-216: tmp = ((x / y) - ((x * b) / y)) / a elif b <= -1.12e-253: tmp = (b * -x) / (y * a) elif b <= 1.4e-182: tmp = 1.0 / (y * (a / x)) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.8e-216) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); elseif (b <= -1.12e-253) tmp = Float64(Float64(b * Float64(-x)) / Float64(y * a)); elseif (b <= 1.4e-182) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.8e-216) tmp = ((x / y) - ((x * b) / y)) / a; elseif (b <= -1.12e-253) tmp = (b * -x) / (y * a); elseif (b <= 1.4e-182) tmp = 1.0 / (y * (a / x)); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.8e-216], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -1.12e-253], N[(N[(b * (-x)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e-182], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.8 \cdot 10^{-216}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{elif}\;b \leq -1.12 \cdot 10^{-253}:\\
\;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-182}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -7.8000000000000002e-216Initial program 99.2%
associate-*l/88.1%
*-commutative88.1%
exp-diff71.9%
exp-sum61.6%
*-commutative61.6%
exp-to-pow61.6%
*-commutative61.6%
exp-to-pow62.2%
sub-neg62.2%
metadata-eval62.2%
Simplified62.2%
Taylor expanded in t around 0 65.8%
times-frac66.8%
Simplified66.8%
Taylor expanded in y around 0 64.3%
Taylor expanded in b around 0 49.4%
Taylor expanded in a around 0 51.1%
if -7.8000000000000002e-216 < b < -1.11999999999999993e-253Initial program 100.0%
associate-*l/100.0%
*-commutative100.0%
exp-diff100.0%
exp-sum72.7%
*-commutative72.7%
exp-to-pow72.7%
*-commutative72.7%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in t around 0 64.0%
times-frac73.2%
Simplified73.2%
Taylor expanded in y around 0 21.6%
Taylor expanded in b around 0 21.6%
Taylor expanded in b around inf 64.9%
if -1.11999999999999993e-253 < b < 1.39999999999999997e-182Initial program 98.5%
associate-*l/90.6%
*-commutative90.6%
exp-diff90.6%
exp-sum88.0%
*-commutative88.0%
exp-to-pow88.0%
*-commutative88.0%
exp-to-pow89.4%
sub-neg89.4%
metadata-eval89.4%
Simplified89.4%
Taylor expanded in t around 0 69.3%
times-frac74.3%
Simplified74.3%
Taylor expanded in b around 0 74.3%
Taylor expanded in y around 0 44.6%
clear-num47.1%
frac-times47.2%
metadata-eval47.2%
Applied egg-rr47.2%
if 1.39999999999999997e-182 < b Initial program 98.6%
associate-*l/90.6%
*-commutative90.6%
exp-diff67.3%
exp-sum57.3%
*-commutative57.3%
exp-to-pow57.3%
*-commutative57.3%
exp-to-pow57.7%
sub-neg57.7%
metadata-eval57.7%
Simplified57.7%
Taylor expanded in t around 0 63.6%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 68.6%
Taylor expanded in b around 0 44.1%
Final simplification48.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.08e+195) (* (/ b a) (/ (- x) y)) (if (<= b 2.7e-11) (/ 1.0 (/ a (/ x y))) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.08e+195) {
tmp = (b / a) * (-x / y);
} else if (b <= 2.7e-11) {
tmp = 1.0 / (a / (x / y));
} 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 <= (-1.08d+195)) then
tmp = (b / a) * (-x / y)
else if (b <= 2.7d-11) then
tmp = 1.0d0 / (a / (x / y))
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 <= -1.08e+195) {
tmp = (b / a) * (-x / y);
} else if (b <= 2.7e-11) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.08e+195: tmp = (b / a) * (-x / y) elif b <= 2.7e-11: tmp = 1.0 / (a / (x / y)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.08e+195) tmp = Float64(Float64(b / a) * Float64(Float64(-x) / y)); elseif (b <= 2.7e-11) tmp = Float64(1.0 / Float64(a / Float64(x / y))); 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 <= -1.08e+195) tmp = (b / a) * (-x / y); elseif (b <= 2.7e-11) tmp = 1.0 / (a / (x / y)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.08e+195], N[(N[(b / a), $MachinePrecision] * N[((-x) / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e-11], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.08 \cdot 10^{+195}:\\
\;\;\;\;\frac{b}{a} \cdot \frac{-x}{y}\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-11}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.0800000000000001e195Initial program 100.0%
associate-*l/93.5%
*-commutative93.5%
exp-diff74.2%
exp-sum61.3%
*-commutative61.3%
exp-to-pow61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in t around 0 77.4%
times-frac77.4%
Simplified77.4%
Taylor expanded in y around 0 100.0%
Taylor expanded in b around 0 84.5%
Taylor expanded in b around inf 84.5%
mul-1-neg84.5%
times-frac69.4%
distribute-lft-neg-out69.4%
*-commutative69.4%
distribute-neg-frac69.4%
Simplified69.4%
if -1.0800000000000001e195 < b < 2.70000000000000005e-11Initial program 98.3%
associate-*l/89.5%
*-commutative89.5%
exp-diff81.5%
exp-sum72.3%
*-commutative72.3%
exp-to-pow72.3%
*-commutative72.3%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in t around 0 63.3%
times-frac67.6%
Simplified67.6%
Taylor expanded in b around 0 67.7%
Taylor expanded in y around 0 37.5%
associate-*l/38.6%
div-inv38.6%
clear-num38.9%
Applied egg-rr38.9%
if 2.70000000000000005e-11 < b Initial program 100.0%
associate-*l/88.9%
*-commutative88.9%
exp-diff55.6%
exp-sum46.0%
*-commutative46.0%
exp-to-pow46.0%
*-commutative46.0%
exp-to-pow46.0%
sub-neg46.0%
metadata-eval46.0%
Simplified46.0%
Taylor expanded in t around 0 65.2%
times-frac55.6%
Simplified55.6%
Taylor expanded in y around 0 78.1%
Taylor expanded in b around 0 43.2%
Taylor expanded in b around inf 43.2%
Final simplification43.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2e-88) (* (/ x y) (/ 1.0 a)) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2e-88) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 2d-88) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2e-88) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2e-88: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2e-88) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2e-88) tmp = (x / y) * (1.0 / a); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2e-88], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2 \cdot 10^{-88}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < 1.99999999999999987e-88Initial program 98.6%
associate-*l/89.5%
*-commutative89.5%
exp-diff78.8%
exp-sum68.6%
*-commutative68.6%
exp-to-pow68.6%
*-commutative68.6%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 65.8%
times-frac68.7%
Simplified68.7%
Taylor expanded in y around 0 54.7%
Taylor expanded in b around 0 32.5%
*-commutative32.5%
Simplified32.5%
associate-/r*38.3%
div-inv38.3%
Applied egg-rr38.3%
if 1.99999999999999987e-88 < b Initial program 99.6%
associate-*l/90.7%
*-commutative90.7%
exp-diff64.1%
exp-sum55.3%
*-commutative55.3%
exp-to-pow55.3%
*-commutative55.3%
exp-to-pow55.7%
sub-neg55.7%
metadata-eval55.7%
Simplified55.7%
Taylor expanded in t around 0 64.8%
times-frac59.6%
Simplified59.6%
Taylor expanded in y around 0 72.8%
Taylor expanded in b around 0 31.2%
*-commutative31.2%
Simplified31.2%
Final simplification36.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.5e-73) (/ 1.0 (/ a (/ x y))) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.5e-73) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 4.5d-73) then
tmp = 1.0d0 / (a / (x / y))
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.5e-73) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.5e-73: tmp = 1.0 / (a / (x / y)) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.5e-73) tmp = Float64(1.0 / Float64(a / Float64(x / y))); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4.5e-73) tmp = 1.0 / (a / (x / y)); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.5e-73], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.5 \cdot 10^{-73}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < 4.5e-73Initial program 98.6%
associate-*l/89.5%
*-commutative89.5%
exp-diff78.8%
exp-sum68.6%
*-commutative68.6%
exp-to-pow68.6%
*-commutative68.6%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 65.8%
times-frac68.7%
Simplified68.7%
Taylor expanded in b around 0 61.8%
Taylor expanded in y around 0 35.7%
associate-*l/38.3%
div-inv38.3%
clear-num38.6%
Applied egg-rr38.6%
if 4.5e-73 < b Initial program 99.6%
associate-*l/90.7%
*-commutative90.7%
exp-diff64.1%
exp-sum55.3%
*-commutative55.3%
exp-to-pow55.3%
*-commutative55.3%
exp-to-pow55.7%
sub-neg55.7%
metadata-eval55.7%
Simplified55.7%
Taylor expanded in t around 0 64.8%
times-frac59.6%
Simplified59.6%
Taylor expanded in y around 0 72.8%
Taylor expanded in b around 0 31.2%
*-commutative31.2%
Simplified31.2%
Final simplification36.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.6e-9) (/ 1.0 (/ a (/ x y))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.6e-9) {
tmp = 1.0 / (a / (x / y));
} 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.6d-9) then
tmp = 1.0d0 / (a / (x / y))
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.6e-9) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.6e-9: tmp = 1.0 / (a / (x / y)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.6e-9) tmp = Float64(1.0 / Float64(a / Float64(x / y))); 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.6e-9) tmp = 1.0 / (a / (x / y)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.6e-9], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.6 \cdot 10^{-9}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.5999999999999998e-9Initial program 98.6%
associate-*l/90.2%
*-commutative90.2%
exp-diff80.3%
exp-sum70.5%
*-commutative70.5%
exp-to-pow70.5%
*-commutative70.5%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in t around 0 65.6%
times-frac69.2%
Simplified69.2%
Taylor expanded in b around 0 62.9%
Taylor expanded in y around 0 36.6%
associate-*l/38.5%
div-inv38.5%
clear-num38.8%
Applied egg-rr38.8%
if 4.5999999999999998e-9 < b Initial program 100.0%
associate-*l/88.9%
*-commutative88.9%
exp-diff55.6%
exp-sum46.0%
*-commutative46.0%
exp-to-pow46.0%
*-commutative46.0%
exp-to-pow46.0%
sub-neg46.0%
metadata-eval46.0%
Simplified46.0%
Taylor expanded in t around 0 65.2%
times-frac55.6%
Simplified55.6%
Taylor expanded in y around 0 78.1%
Taylor expanded in b around 0 43.2%
Taylor expanded in b around inf 43.2%
Final simplification39.9%
(FPCore (x y z t a b) :precision binary64 (if (<= y 7.2e-285) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 7.2e-285) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= 7.2d-285) then
tmp = (x / a) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 7.2e-285) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 7.2e-285: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 7.2e-285) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 7.2e-285) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 7.2e-285], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7.2 \cdot 10^{-285}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if y < 7.20000000000000008e-285Initial program 99.2%
associate-*l/91.6%
*-commutative91.6%
exp-diff72.8%
exp-sum63.8%
*-commutative63.8%
exp-to-pow63.8%
*-commutative63.8%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in t around 0 61.1%
times-frac66.2%
Simplified66.2%
Taylor expanded in y around 0 63.7%
Taylor expanded in b around 0 31.0%
associate-/r*36.9%
Simplified36.9%
if 7.20000000000000008e-285 < y Initial program 98.7%
associate-*l/88.0%
*-commutative88.0%
exp-diff75.8%
exp-sum65.2%
*-commutative65.2%
exp-to-pow65.2%
*-commutative65.2%
exp-to-pow65.8%
sub-neg65.8%
metadata-eval65.8%
Simplified65.8%
Taylor expanded in t around 0 70.2%
times-frac65.5%
Simplified65.5%
Taylor expanded in y around 0 56.6%
Taylor expanded in b around 0 33.3%
*-commutative33.3%
Simplified33.3%
Final simplification35.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b 7.5e-76) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 7.5e-76) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 7.5d-76) then
tmp = (x / y) / a
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 7.5e-76) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 7.5e-76: tmp = (x / y) / a else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 7.5e-76) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 7.5e-76) tmp = (x / y) / a; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 7.5e-76], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.5 \cdot 10^{-76}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < 7.4999999999999997e-76Initial program 98.6%
associate-*l/89.5%
*-commutative89.5%
exp-diff78.8%
exp-sum68.6%
*-commutative68.6%
exp-to-pow68.6%
*-commutative68.6%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 65.8%
times-frac68.7%
Simplified68.7%
associate-*l/71.4%
associate-/r*71.4%
Applied egg-rr71.4%
Taylor expanded in b around 0 68.3%
associate-*r/68.3%
Simplified68.3%
Taylor expanded in y around 0 38.3%
if 7.4999999999999997e-76 < b Initial program 99.6%
associate-*l/90.7%
*-commutative90.7%
exp-diff64.1%
exp-sum55.3%
*-commutative55.3%
exp-to-pow55.3%
*-commutative55.3%
exp-to-pow55.7%
sub-neg55.7%
metadata-eval55.7%
Simplified55.7%
Taylor expanded in t around 0 64.8%
times-frac59.6%
Simplified59.6%
Taylor expanded in y around 0 72.8%
Taylor expanded in b around 0 31.2%
*-commutative31.2%
Simplified31.2%
Final simplification36.1%
(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.9%
associate-*l/89.9%
*-commutative89.9%
exp-diff74.2%
exp-sum64.5%
*-commutative64.5%
exp-to-pow64.5%
*-commutative64.5%
exp-to-pow65.1%
sub-neg65.1%
metadata-eval65.1%
Simplified65.1%
Taylor expanded in t around 0 65.5%
times-frac65.9%
Simplified65.9%
Taylor expanded in y around 0 60.3%
Taylor expanded in b around 0 32.1%
*-commutative32.1%
Simplified32.1%
Final simplification32.1%
(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 2023320
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))