
(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 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + (log(a) * (t + (-1.0d0)))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 98.1%
Final simplification98.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -2.3e+18)
(/ (* x (/ (pow z y) y)) a)
(if (<= y 3.9e+118)
(/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)
(/ (* x (exp (* y (log z)))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.3e+18) {
tmp = (x * (pow(z, y) / y)) / a;
} else if (y <= 3.9e+118) {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * exp((y * log(z)))) / 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.3d+18)) then
tmp = (x * ((z ** y) / y)) / a
else if (y <= 3.9d+118) then
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
else
tmp = (x * exp((y * log(z)))) / 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.3e+18) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} else if (y <= 3.9e+118) {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * Math.exp((y * Math.log(z)))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.3e+18: tmp = (x * (math.pow(z, y) / y)) / a elif y <= 3.9e+118: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y else: tmp = (x * math.exp((y * math.log(z)))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.3e+18) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); elseif (y <= 3.9e+118) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(y * log(z)))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.3e+18) tmp = (x * ((z ^ y) / y)) / a; elseif (y <= 3.9e+118) tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; else tmp = (x * exp((y * log(z)))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.3e+18], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 3.9e+118], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{+118}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{y \cdot \log z}}{y}\\
\end{array}
\end{array}
if y < -2.3e18Initial program 100.0%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified66.7%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6488.5%
Simplified88.5%
if -2.3e18 < y < 3.9e118Initial program 96.8%
Taylor expanded in y around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6491.2%
Simplified91.2%
if 3.9e118 < y Initial program 100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
log-lowering-log.f6489.9%
Simplified89.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.65e-24)
(/ (* x (exp (* y (log z)))) y)
(if (<= y 8.4e+112)
(/ (* x (pow a t)) (* y (* a (exp b))))
(/ (* x (/ (pow z y) y)) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.65e-24) {
tmp = (x * exp((y * log(z)))) / y;
} else if (y <= 8.4e+112) {
tmp = (x * pow(a, t)) / (y * (a * exp(b)));
} else {
tmp = (x * (pow(z, y) / 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.65d-24)) then
tmp = (x * exp((y * log(z)))) / y
else if (y <= 8.4d+112) then
tmp = (x * (a ** t)) / (y * (a * exp(b)))
else
tmp = (x * ((z ** y) / 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.65e-24) {
tmp = (x * Math.exp((y * Math.log(z)))) / y;
} else if (y <= 8.4e+112) {
tmp = (x * Math.pow(a, t)) / (y * (a * Math.exp(b)));
} else {
tmp = (x * (Math.pow(z, y) / y)) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.65e-24: tmp = (x * math.exp((y * math.log(z)))) / y elif y <= 8.4e+112: tmp = (x * math.pow(a, t)) / (y * (a * math.exp(b))) else: tmp = (x * (math.pow(z, y) / y)) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.65e-24) tmp = Float64(Float64(x * exp(Float64(y * log(z)))) / y); elseif (y <= 8.4e+112) tmp = Float64(Float64(x * (a ^ t)) / Float64(y * Float64(a * exp(b)))); else tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.65e-24) tmp = (x * exp((y * log(z)))) / y; elseif (y <= 8.4e+112) tmp = (x * (a ^ t)) / (y * (a * exp(b))); else tmp = (x * ((z ^ y) / y)) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.65e-24], N[(N[(x * N[Exp[N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 8.4e+112], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.65 \cdot 10^{-24}:\\
\;\;\;\;\frac{x \cdot e^{y \cdot \log z}}{y}\\
\mathbf{elif}\;y \leq 8.4 \cdot 10^{+112}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y \cdot \left(a \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\end{array}
\end{array}
if y < -1.64999999999999992e-24Initial program 100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
log-lowering-log.f6483.9%
Simplified83.9%
if -1.64999999999999992e-24 < y < 8.3999999999999996e112Initial program 96.7%
exp-diffN/A
associate-*r/N/A
associate-/l/N/A
/-lowering-/.f64N/A
Simplified76.2%
Taylor expanded in y around 0
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
exp-prodN/A
*-lft-identityN/A
metadata-evalN/A
associate-*r*N/A
exp-prodN/A
associate-*r*N/A
mul-1-negN/A
log-recN/A
prod-expN/A
log-recN/A
mul-1-negN/A
associate-*r*N/A
Simplified72.9%
unpow-prod-upN/A
unpow-1N/A
div-invN/A
/-lowering-/.f64N/A
pow-lowering-pow.f6473.0%
Applied egg-rr73.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6481.0%
Simplified81.0%
if 8.3999999999999996e112 < y Initial program 100.0%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified65.1%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6487.7%
Simplified87.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -11.0)
(/ x (* y (* a (exp b))))
(if (<= b 6e-105)
(/ (/ x (/ y (pow z y))) a)
(if (<= b 4.2e+18) (/ (* x (pow a (+ t -1.0))) y) (/ (/ x (exp b)) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -11.0) {
tmp = x / (y * (a * exp(b)));
} else if (b <= 6e-105) {
tmp = (x / (y / pow(z, y))) / a;
} else if (b <= 4.2e+18) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else {
tmp = (x / 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 <= (-11.0d0)) then
tmp = x / (y * (a * exp(b)))
else if (b <= 6d-105) then
tmp = (x / (y / (z ** y))) / a
else if (b <= 4.2d+18) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else
tmp = (x / 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 <= -11.0) {
tmp = x / (y * (a * Math.exp(b)));
} else if (b <= 6e-105) {
tmp = (x / (y / Math.pow(z, y))) / a;
} else if (b <= 4.2e+18) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else {
tmp = (x / Math.exp(b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -11.0: tmp = x / (y * (a * math.exp(b))) elif b <= 6e-105: tmp = (x / (y / math.pow(z, y))) / a elif b <= 4.2e+18: tmp = (x * math.pow(a, (t + -1.0))) / y else: tmp = (x / math.exp(b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -11.0) tmp = Float64(x / Float64(y * Float64(a * exp(b)))); elseif (b <= 6e-105) tmp = Float64(Float64(x / Float64(y / (z ^ y))) / a); elseif (b <= 4.2e+18) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); else tmp = Float64(Float64(x / exp(b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -11.0) tmp = x / (y * (a * exp(b))); elseif (b <= 6e-105) tmp = (x / (y / (z ^ y))) / a; elseif (b <= 4.2e+18) tmp = (x * (a ^ (t + -1.0))) / y; else tmp = (x / exp(b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -11.0], N[(x / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e-105], N[(N[(x / N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 4.2e+18], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -11:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot e^{b}\right)}\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-105}:\\
\;\;\;\;\frac{\frac{x}{\frac{y}{{z}^{y}}}}{a}\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\end{array}
\end{array}
if b < -11Initial program 99.9%
Taylor expanded in t around 0
associate-/l*N/A
exp-diffN/A
associate-/l/N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
div-expN/A
*-commutativeN/A
exp-to-powN/A
rem-exp-logN/A
associate-/r*N/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
Simplified79.3%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6491.5%
Simplified91.5%
if -11 < b < 6.0000000000000002e-105Initial program 96.5%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified77.3%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6473.7%
Simplified73.7%
/-lowering-/.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6473.7%
Applied egg-rr73.7%
if 6.0000000000000002e-105 < b < 4.2e18Initial program 96.1%
Taylor expanded in y around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6484.6%
Simplified84.6%
Taylor expanded in b around 0
*-commutativeN/A
*-lowering-*.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6482.2%
Simplified82.2%
if 4.2e18 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6480.9%
Simplified80.9%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6480.9%
Applied egg-rr80.9%
Final simplification80.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -10.0)
(/ x (* y (* a (exp b))))
(if (<= b 1.45e-106)
(/ (* x (/ (pow z y) y)) a)
(if (<= b 9e+18) (/ (* x (pow a (+ t -1.0))) y) (/ (/ x (exp b)) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -10.0) {
tmp = x / (y * (a * exp(b)));
} else if (b <= 1.45e-106) {
tmp = (x * (pow(z, y) / y)) / a;
} else if (b <= 9e+18) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else {
tmp = (x / 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 <= (-10.0d0)) then
tmp = x / (y * (a * exp(b)))
else if (b <= 1.45d-106) then
tmp = (x * ((z ** y) / y)) / a
else if (b <= 9d+18) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else
tmp = (x / 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 <= -10.0) {
tmp = x / (y * (a * Math.exp(b)));
} else if (b <= 1.45e-106) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} else if (b <= 9e+18) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else {
tmp = (x / Math.exp(b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -10.0: tmp = x / (y * (a * math.exp(b))) elif b <= 1.45e-106: tmp = (x * (math.pow(z, y) / y)) / a elif b <= 9e+18: tmp = (x * math.pow(a, (t + -1.0))) / y else: tmp = (x / math.exp(b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -10.0) tmp = Float64(x / Float64(y * Float64(a * exp(b)))); elseif (b <= 1.45e-106) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); elseif (b <= 9e+18) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); else tmp = Float64(Float64(x / exp(b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -10.0) tmp = x / (y * (a * exp(b))); elseif (b <= 1.45e-106) tmp = (x * ((z ^ y) / y)) / a; elseif (b <= 9e+18) tmp = (x * (a ^ (t + -1.0))) / y; else tmp = (x / exp(b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -10.0], N[(x / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e-106], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 9e+18], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -10:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot e^{b}\right)}\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-106}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\end{array}
\end{array}
if b < -10Initial program 99.9%
Taylor expanded in t around 0
associate-/l*N/A
exp-diffN/A
associate-/l/N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
div-expN/A
*-commutativeN/A
exp-to-powN/A
rem-exp-logN/A
associate-/r*N/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
Simplified79.3%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6491.5%
Simplified91.5%
if -10 < b < 1.45e-106Initial program 96.5%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified77.3%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6473.7%
Simplified73.7%
if 1.45e-106 < b < 9e18Initial program 96.1%
Taylor expanded in y around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6484.6%
Simplified84.6%
Taylor expanded in b around 0
*-commutativeN/A
*-lowering-*.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6482.2%
Simplified82.2%
if 9e18 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6480.9%
Simplified80.9%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6480.9%
Applied egg-rr80.9%
Final simplification80.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp b)) y)))
(if (<= b -0.0072)
t_1
(if (<= b -6.6e-285)
(/ (* x (* b (* b (* b -0.16666666666666666)))) y)
(if (<= b 0.52) (/ x (* y a)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double tmp;
if (b <= -0.0072) {
tmp = t_1;
} else if (b <= -6.6e-285) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 0.52) {
tmp = x / (y * a);
} 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 / exp(b)) / y
if (b <= (-0.0072d0)) then
tmp = t_1
else if (b <= (-6.6d-285)) then
tmp = (x * (b * (b * (b * (-0.16666666666666666d0))))) / y
else if (b <= 0.52d0) then
tmp = x / (y * a)
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.exp(b)) / y;
double tmp;
if (b <= -0.0072) {
tmp = t_1;
} else if (b <= -6.6e-285) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 0.52) {
tmp = x / (y * a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y tmp = 0 if b <= -0.0072: tmp = t_1 elif b <= -6.6e-285: tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y elif b <= 0.52: tmp = x / (y * a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -0.0072) tmp = t_1; elseif (b <= -6.6e-285) tmp = Float64(Float64(x * Float64(b * Float64(b * Float64(b * -0.16666666666666666)))) / y); elseif (b <= 0.52) tmp = Float64(x / Float64(y * a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; tmp = 0.0; if (b <= -0.0072) tmp = t_1; elseif (b <= -6.6e-285) tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y; elseif (b <= 0.52) tmp = x / (y * a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -0.0072], t$95$1, If[LessEqual[b, -6.6e-285], N[(N[(x * N[(b * N[(b * N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 0.52], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -0.0072:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-285}:\\
\;\;\;\;\frac{x \cdot \left(b \cdot \left(b \cdot \left(b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 0.52:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -0.0071999999999999998 or 0.52000000000000002 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6481.3%
Simplified81.3%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6481.3%
Applied egg-rr81.3%
if -0.0071999999999999998 < b < -6.5999999999999997e-285Initial program 96.3%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6410.5%
Simplified10.5%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6410.5%
Simplified10.5%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
cube-multN/A
unpow2N/A
metadata-evalN/A
associate-*l*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.1%
Simplified42.1%
if -6.5999999999999997e-285 < b < 0.52000000000000002Initial program 95.9%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified80.4%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6477.1%
Simplified77.1%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6443.7%
Simplified43.7%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (* x (/ (pow z y) y)) a))) (if (<= y -120.0) t_1 (if (<= y 4.7e+117) (/ x (* y (* a (exp b)))) 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 tmp;
if (y <= -120.0) {
tmp = t_1;
} else if (y <= 4.7e+117) {
tmp = x / (y * (a * exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((z ** y) / y)) / a
if (y <= (-120.0d0)) then
tmp = t_1
else if (y <= 4.7d+117) then
tmp = x / (y * (a * exp(b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (Math.pow(z, y) / y)) / a;
double tmp;
if (y <= -120.0) {
tmp = t_1;
} else if (y <= 4.7e+117) {
tmp = x / (y * (a * Math.exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / y)) / a tmp = 0 if y <= -120.0: tmp = t_1 elif y <= 4.7e+117: tmp = x / (y * (a * math.exp(b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / y)) / a) tmp = 0.0 if (y <= -120.0) tmp = t_1; elseif (y <= 4.7e+117) tmp = Float64(x / Float64(y * Float64(a * exp(b)))); 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; tmp = 0.0; if (y <= -120.0) tmp = t_1; elseif (y <= 4.7e+117) tmp = x / (y * (a * exp(b))); 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]}, If[LessEqual[y, -120.0], t$95$1, If[LessEqual[y, 4.7e+117], N[(x / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{if}\;y \leq -120:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.7 \cdot 10^{+117}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -120 or 4.70000000000000006e117 < y Initial program 100.0%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified66.1%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6487.6%
Simplified87.6%
if -120 < y < 4.70000000000000006e117Initial program 96.7%
Taylor expanded in t around 0
associate-/l*N/A
exp-diffN/A
associate-/l/N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
div-expN/A
*-commutativeN/A
exp-to-powN/A
rem-exp-logN/A
associate-/r*N/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
Simplified70.2%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6472.7%
Simplified72.7%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* x (/ (pow a t) y)))) (if (<= t -3.2e+89) t_1 (if (<= t 5.2e+41) (/ x (* y (* a (exp b)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (pow(a, t) / y);
double tmp;
if (t <= -3.2e+89) {
tmp = t_1;
} else if (t <= 5.2e+41) {
tmp = x / (y * (a * exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((a ** t) / y)
if (t <= (-3.2d+89)) then
tmp = t_1
else if (t <= 5.2d+41) then
tmp = x / (y * (a * exp(b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (Math.pow(a, t) / y);
double tmp;
if (t <= -3.2e+89) {
tmp = t_1;
} else if (t <= 5.2e+41) {
tmp = x / (y * (a * Math.exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.pow(a, t) / y) tmp = 0 if t <= -3.2e+89: tmp = t_1 elif t <= 5.2e+41: tmp = x / (y * (a * math.exp(b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ t) / y)) tmp = 0.0 if (t <= -3.2e+89) tmp = t_1; elseif (t <= 5.2e+41) tmp = Float64(x / Float64(y * Float64(a * exp(b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * ((a ^ t) / y); tmp = 0.0; if (t <= -3.2e+89) tmp = t_1; elseif (t <= 5.2e+41) tmp = x / (y * (a * exp(b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+89], t$95$1, If[LessEqual[t, 5.2e+41], N[(x / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{t}}{y}\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+41}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.19999999999999987e89 or 5.2000000000000001e41 < t Initial program 100.0%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6480.1%
Simplified80.1%
exp-to-powN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6480.1%
Applied egg-rr80.1%
if -3.19999999999999987e89 < t < 5.2000000000000001e41Initial program 97.1%
Taylor expanded in t around 0
associate-/l*N/A
exp-diffN/A
associate-/l/N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
div-expN/A
*-commutativeN/A
exp-to-powN/A
rem-exp-logN/A
associate-/r*N/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
Simplified77.1%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6468.8%
Simplified68.8%
Final simplification72.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (/ x (exp b)) y))) (if (<= b -11.2) t_1 (if (<= b 8.4e+18) (/ (* x (pow a t)) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double tmp;
if (b <= -11.2) {
tmp = t_1;
} else if (b <= 8.4e+18) {
tmp = (x * pow(a, t)) / 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 / exp(b)) / y
if (b <= (-11.2d0)) then
tmp = t_1
else if (b <= 8.4d+18) then
tmp = (x * (a ** t)) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp(b)) / y;
double tmp;
if (b <= -11.2) {
tmp = t_1;
} else if (b <= 8.4e+18) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y tmp = 0 if b <= -11.2: tmp = t_1 elif b <= 8.4e+18: tmp = (x * math.pow(a, t)) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -11.2) tmp = t_1; elseif (b <= 8.4e+18) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; tmp = 0.0; if (b <= -11.2) tmp = t_1; elseif (b <= 8.4e+18) tmp = (x * (a ^ t)) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -11.2], t$95$1, If[LessEqual[b, 8.4e+18], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -11.2:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.4 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -11.199999999999999 or 8.4e18 < b Initial program 99.9%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6485.3%
Simplified85.3%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6485.3%
Applied egg-rr85.3%
if -11.199999999999999 < b < 8.4e18Initial program 96.4%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6448.5%
Simplified48.5%
exp-to-powN/A
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f6448.5%
Applied egg-rr48.5%
Final simplification65.8%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (/ x (exp b)) y))) (if (<= b -11.2) t_1 (if (<= b 4.3e+18) (* x (/ (pow a t) y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double tmp;
if (b <= -11.2) {
tmp = t_1;
} else if (b <= 4.3e+18) {
tmp = x * (pow(a, t) / 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 / exp(b)) / y
if (b <= (-11.2d0)) then
tmp = t_1
else if (b <= 4.3d+18) then
tmp = x * ((a ** t) / y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp(b)) / y;
double tmp;
if (b <= -11.2) {
tmp = t_1;
} else if (b <= 4.3e+18) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y tmp = 0 if b <= -11.2: tmp = t_1 elif b <= 4.3e+18: tmp = x * (math.pow(a, t) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -11.2) tmp = t_1; elseif (b <= 4.3e+18) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; tmp = 0.0; if (b <= -11.2) tmp = t_1; elseif (b <= 4.3e+18) tmp = x * ((a ^ t) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -11.2], t$95$1, If[LessEqual[b, 4.3e+18], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -11.2:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{+18}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -11.199999999999999 or 4.3e18 < b Initial program 99.9%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6485.3%
Simplified85.3%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6485.3%
Applied egg-rr85.3%
if -11.199999999999999 < b < 4.3e18Initial program 96.4%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6448.5%
Simplified48.5%
exp-to-powN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6447.8%
Applied egg-rr47.8%
Final simplification65.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.75e-283)
(/ (* x (* b (* b (* b -0.16666666666666666)))) y)
(if (<= b 9e+108)
(/ x (* y a))
(/
(/ x (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))
y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.75e-283) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 9e+108) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))) / 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.75d-283)) then
tmp = (x * (b * (b * (b * (-0.16666666666666666d0))))) / y
else if (b <= 9d+108) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))) / 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.75e-283) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 9e+108) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.75e-283: tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y elif b <= 9e+108: tmp = x / (y * a) else: tmp = (x / (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.75e-283) tmp = Float64(Float64(x * Float64(b * Float64(b * Float64(b * -0.16666666666666666)))) / y); elseif (b <= 9e+108) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.75e-283) tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y; elseif (b <= 9e+108) tmp = x / (y * a); else tmp = (x / (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.75e-283], N[(N[(x * N[(b * N[(b * N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 9e+108], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.75 \cdot 10^{-283}:\\
\;\;\;\;\frac{x \cdot \left(b \cdot \left(b \cdot \left(b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+108}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -1.7499999999999999e-283Initial program 98.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6450.1%
Simplified50.1%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6442.7%
Simplified42.7%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
cube-multN/A
unpow2N/A
metadata-evalN/A
associate-*l*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.3%
Simplified58.3%
if -1.7499999999999999e-283 < b < 9e108Initial program 97.1%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified72.2%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6466.2%
Simplified66.2%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6435.0%
Simplified35.0%
if 9e108 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6493.0%
Simplified93.0%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6493.0%
Applied egg-rr93.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.0%
Simplified93.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.5e-284)
(/ (* x (* b (* b (* b -0.16666666666666666)))) y)
(if (<= b 9e+108)
(/ x (* y a))
(/ (/ x (+ 1.0 (* b (+ 1.0 (* b 0.5))))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e-284) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 9e+108) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + (b * (1.0 + (b * 0.5))))) / 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 <= (-2.5d-284)) then
tmp = (x * (b * (b * (b * (-0.16666666666666666d0))))) / y
else if (b <= 9d+108) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))) / 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 <= -2.5e-284) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 9e+108) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + (b * (1.0 + (b * 0.5))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.5e-284: tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y elif b <= 9e+108: tmp = x / (y * a) else: tmp = (x / (1.0 + (b * (1.0 + (b * 0.5))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.5e-284) tmp = Float64(Float64(x * Float64(b * Float64(b * Float64(b * -0.16666666666666666)))) / y); elseif (b <= 9e+108) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.5e-284) tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y; elseif (b <= 9e+108) tmp = x / (y * a); else tmp = (x / (1.0 + (b * (1.0 + (b * 0.5))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.5e-284], N[(N[(x * N[(b * N[(b * N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 9e+108], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-284}:\\
\;\;\;\;\frac{x \cdot \left(b \cdot \left(b \cdot \left(b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+108}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b \cdot \left(1 + b \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -2.49999999999999987e-284Initial program 98.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6450.1%
Simplified50.1%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6442.7%
Simplified42.7%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
cube-multN/A
unpow2N/A
metadata-evalN/A
associate-*l*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.3%
Simplified58.3%
if -2.49999999999999987e-284 < b < 9e108Initial program 97.1%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified72.2%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6466.2%
Simplified66.2%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6435.0%
Simplified35.0%
if 9e108 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6493.0%
Simplified93.0%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6493.0%
Applied egg-rr93.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6486.1%
Simplified86.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.1e-286) (/ (* x (* b (* b (* b -0.16666666666666666)))) y) (if (<= b 1.45e+109) (/ x (* y a)) (/ (/ x (+ 1.0 b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.1e-286) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 1.45e+109) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.1d-286)) then
tmp = (x * (b * (b * (b * (-0.16666666666666666d0))))) / y
else if (b <= 1.45d+109) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + b)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.1e-286) {
tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y;
} else if (b <= 1.45e+109) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.1e-286: tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y elif b <= 1.45e+109: tmp = x / (y * a) else: tmp = (x / (1.0 + b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.1e-286) tmp = Float64(Float64(x * Float64(b * Float64(b * Float64(b * -0.16666666666666666)))) / y); elseif (b <= 1.45e+109) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.1e-286) tmp = (x * (b * (b * (b * -0.16666666666666666)))) / y; elseif (b <= 1.45e+109) tmp = x / (y * a); else tmp = (x / (1.0 + b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.1e-286], N[(N[(x * N[(b * N[(b * N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.45e+109], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{-286}:\\
\;\;\;\;\frac{x \cdot \left(b \cdot \left(b \cdot \left(b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+109}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b}}{y}\\
\end{array}
\end{array}
if b < -2.09999999999999988e-286Initial program 98.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6450.1%
Simplified50.1%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6442.7%
Simplified42.7%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
cube-multN/A
unpow2N/A
metadata-evalN/A
associate-*l*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.3%
Simplified58.3%
if -2.09999999999999988e-286 < b < 1.45e109Initial program 97.1%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified72.2%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6466.2%
Simplified66.2%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6435.0%
Simplified35.0%
if 1.45e109 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6493.0%
Simplified93.0%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6493.0%
Applied egg-rr93.0%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6440.7%
Simplified40.7%
Final simplification46.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.8e-284) (/ (* 0.5 (* x (* b b))) y) (if (<= b 4e+110) (/ x (* y a)) (/ (/ x (+ 1.0 b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.8e-284) {
tmp = (0.5 * (x * (b * b))) / y;
} else if (b <= 4e+110) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4.8d-284)) then
tmp = (0.5d0 * (x * (b * b))) / y
else if (b <= 4d+110) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + b)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.8e-284) {
tmp = (0.5 * (x * (b * b))) / y;
} else if (b <= 4e+110) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.8e-284: tmp = (0.5 * (x * (b * b))) / y elif b <= 4e+110: tmp = x / (y * a) else: tmp = (x / (1.0 + b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.8e-284) tmp = Float64(Float64(0.5 * Float64(x * Float64(b * b))) / y); elseif (b <= 4e+110) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.8e-284) tmp = (0.5 * (x * (b * b))) / y; elseif (b <= 4e+110) tmp = x / (y * a); else tmp = (x / (1.0 + b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.8e-284], N[(N[(0.5 * N[(x * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4e+110], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{-284}:\\
\;\;\;\;\frac{0.5 \cdot \left(x \cdot \left(b \cdot b\right)\right)}{y}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+110}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b}}{y}\\
\end{array}
\end{array}
if b < -4.80000000000000006e-284Initial program 98.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6450.1%
Simplified50.1%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
Simplified33.8%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.1%
Simplified55.1%
if -4.80000000000000006e-284 < b < 4.0000000000000001e110Initial program 97.1%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified72.2%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6466.2%
Simplified66.2%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6435.0%
Simplified35.0%
if 4.0000000000000001e110 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6493.0%
Simplified93.0%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6493.0%
Applied egg-rr93.0%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6440.7%
Simplified40.7%
Final simplification45.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.8e+79) (/ (* x (- 1.0 b)) y) (if (<= b 1.8e+113) (/ x (* y a)) (/ (/ x (+ 1.0 b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e+79) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 1.8e+113) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.8d+79)) then
tmp = (x * (1.0d0 - b)) / y
else if (b <= 1.8d+113) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + b)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e+79) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 1.8e+113) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.8e+79: tmp = (x * (1.0 - b)) / y elif b <= 1.8e+113: tmp = x / (y * a) else: tmp = (x / (1.0 + b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.8e+79) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); elseif (b <= 1.8e+113) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.8e+79) tmp = (x * (1.0 - b)) / y; elseif (b <= 1.8e+113) tmp = x / (y * a); else tmp = (x / (1.0 + b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.8e+79], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.8e+113], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+79}:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b}}{y}\\
\end{array}
\end{array}
if b < -2.8000000000000001e79Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6493.1%
Simplified93.1%
Taylor expanded in b around 0
associate-*r*N/A
neg-mul-1N/A
distribute-rgt1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
unsub-negN/A
--lowering--.f6446.4%
Simplified46.4%
if -2.8000000000000001e79 < b < 1.79999999999999996e113Initial program 97.1%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified72.0%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6464.9%
Simplified64.9%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6434.8%
Simplified34.8%
if 1.79999999999999996e113 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6493.0%
Simplified93.0%
exp-diffN/A
1-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6493.0%
Applied egg-rr93.0%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6440.7%
Simplified40.7%
Final simplification37.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t 5.6e-34) (/ x (* y a)) (* x (* y (/ (/ 1.0 y) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 5.6e-34) {
tmp = x / (y * a);
} else {
tmp = x * (y * ((1.0 / 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 (t <= 5.6d-34) then
tmp = x / (y * a)
else
tmp = x * (y * ((1.0d0 / 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 (t <= 5.6e-34) {
tmp = x / (y * a);
} else {
tmp = x * (y * ((1.0 / y) / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 5.6e-34: tmp = x / (y * a) else: tmp = x * (y * ((1.0 / y) / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 5.6e-34) tmp = Float64(x / Float64(y * a)); else tmp = Float64(x * Float64(y * Float64(Float64(1.0 / y) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 5.6e-34) tmp = x / (y * a); else tmp = x * (y * ((1.0 / y) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 5.6e-34], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(N[(1.0 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5.6 \cdot 10^{-34}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \frac{\frac{1}{y}}{y}\right)\\
\end{array}
\end{array}
if t < 5.59999999999999994e-34Initial program 97.3%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified62.4%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6462.0%
Simplified62.0%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6437.6%
Simplified37.6%
if 5.59999999999999994e-34 < t Initial program 99.9%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6444.7%
Simplified44.7%
Taylor expanded in b around 0
Simplified11.7%
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f6411.7%
Applied egg-rr11.7%
inv-powN/A
metadata-evalN/A
metadata-evalN/A
pow-divN/A
pow-flipN/A
pow2N/A
inv-powN/A
div-invN/A
clear-numN/A
/-rgt-identityN/A
*-lowering-*.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6434.2%
Applied egg-rr34.2%
Final simplification36.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.5e+77) (/ (* x (- 1.0 b)) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e+77) {
tmp = (x * (1.0 - b)) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-6.5d+77)) then
tmp = (x * (1.0d0 - b)) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e+77) {
tmp = (x * (1.0 - b)) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.5e+77: tmp = (x * (1.0 - b)) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.5e+77) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.5e+77) tmp = (x * (1.0 - b)) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e+77], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{+77}:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -6.5e77Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6493.1%
Simplified93.1%
Taylor expanded in b around 0
associate-*r*N/A
neg-mul-1N/A
distribute-rgt1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
unsub-negN/A
--lowering--.f6446.4%
Simplified46.4%
if -6.5e77 < b Initial program 97.7%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified65.0%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6459.9%
Simplified59.9%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6431.9%
Simplified31.9%
Final simplification34.4%
(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.1%
Taylor expanded in b around 0
*-commutativeN/A
associate-/l*N/A
Simplified61.3%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6457.6%
Simplified57.6%
Taylor expanded in y around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6430.5%
Simplified30.5%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 98.1%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6448.0%
Simplified48.0%
Taylor expanded in b around 0
Simplified12.4%
(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 2024191
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))