
(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 25 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.0%
Final simplification98.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.4e+59) (not (<= y 1.35e+26))) (/ (* 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 <= -3.4e+59) || !(y <= 1.35e+26)) {
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 <= (-3.4d+59)) .or. (.not. (y <= 1.35d+26))) 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 <= -3.4e+59) || !(y <= 1.35e+26)) {
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 <= -3.4e+59) or not (y <= 1.35e+26): 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 <= -3.4e+59) || !(y <= 1.35e+26)) 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 <= -3.4e+59) || ~((y <= 1.35e+26))) 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, -3.4e+59], N[Not[LessEqual[y, 1.35e+26]], $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 -3.4 \cdot 10^{+59} \lor \neg \left(y \leq 1.35 \cdot 10^{+26}\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 < -3.40000000000000006e59 or 1.35e26 < y Initial program 100.0%
Taylor expanded in t around 0 94.9%
mul-1-neg94.9%
Simplified94.9%
if -3.40000000000000006e59 < y < 1.35e26Initial program 96.4%
Taylor expanded in y around 0 95.7%
Final simplification95.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (/ (pow a t) a) y) (exp b))))
(t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -3.5e+59)
t_2
(if (<= y -2.9e-181)
t_1
(if (<= y -3.3e-289)
(* x (/ 1.0 (* a (* y (exp b)))))
(if (<= y 6.2e+36) 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) / a) / y) / exp(b));
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -3.5e+59) {
tmp = t_2;
} else if (y <= -2.9e-181) {
tmp = t_1;
} else if (y <= -3.3e-289) {
tmp = x * (1.0 / (a * (y * exp(b))));
} else if (y <= 6.2e+36) {
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) / a) / y) / exp(b))
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-3.5d+59)) then
tmp = t_2
else if (y <= (-2.9d-181)) then
tmp = t_1
else if (y <= (-3.3d-289)) then
tmp = x * (1.0d0 / (a * (y * exp(b))))
else if (y <= 6.2d+36) 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) / a) / y) / Math.exp(b));
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -3.5e+59) {
tmp = t_2;
} else if (y <= -2.9e-181) {
tmp = t_1;
} else if (y <= -3.3e-289) {
tmp = x * (1.0 / (a * (y * Math.exp(b))));
} else if (y <= 6.2e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (((math.pow(a, t) / a) / y) / math.exp(b)) t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -3.5e+59: tmp = t_2 elif y <= -2.9e-181: tmp = t_1 elif y <= -3.3e-289: tmp = x * (1.0 / (a * (y * math.exp(b)))) elif y <= 6.2e+36: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64(Float64((a ^ t) / a) / y) / exp(b))) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -3.5e+59) tmp = t_2; elseif (y <= -2.9e-181) tmp = t_1; elseif (y <= -3.3e-289) tmp = Float64(x * Float64(1.0 / Float64(a * Float64(y * exp(b))))); elseif (y <= 6.2e+36) 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) / a) / y) / exp(b)); t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -3.5e+59) tmp = t_2; elseif (y <= -2.9e-181) tmp = t_1; elseif (y <= -3.3e-289) tmp = x * (1.0 / (a * (y * exp(b)))); elseif (y <= 6.2e+36) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.5e+59], t$95$2, If[LessEqual[y, -2.9e-181], t$95$1, If[LessEqual[y, -3.3e-289], N[(x * N[(1.0 / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e+36], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{\frac{{a}^{t}}{a}}{y}}{e^{b}}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+59}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-181}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3.3 \cdot 10^{-289}:\\
\;\;\;\;x \cdot \frac{1}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+36}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -3.5e59 or 6.1999999999999999e36 < y Initial program 100.0%
Taylor expanded in t around 0 94.7%
mul-1-neg94.7%
Simplified94.7%
Taylor expanded in b around 0 84.0%
exp-diff84.0%
*-commutative84.0%
exp-to-pow84.0%
rem-exp-log84.0%
Simplified84.0%
if -3.5e59 < y < -2.8999999999999998e-181 or -3.29999999999999997e-289 < y < 6.1999999999999999e36Initial program 96.0%
associate-*r/98.0%
sub-neg98.0%
exp-sum85.5%
associate-/l*85.5%
associate-/r/83.9%
exp-neg83.9%
associate-*r/83.9%
Simplified80.8%
Taylor expanded in y around 0 86.6%
if -2.8999999999999998e-181 < y < -3.29999999999999997e-289Initial program 98.4%
associate-*r/98.4%
sub-neg98.4%
exp-sum82.5%
associate-/l*82.5%
associate-/r/70.5%
exp-neg70.5%
associate-*r/70.5%
Simplified71.9%
Taylor expanded in y around 0 71.9%
Taylor expanded in t around 0 96.1%
Final simplification86.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -8.4e+61) (not (<= y 8.5e+136))) (/ (* x (/ (pow z y) a)) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -8.4e+61) || !(y <= 8.5e+136)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-8.4d+61)) .or. (.not. (y <= 8.5d+136))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -8.4e+61) || !(y <= 8.5e+136)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -8.4e+61) or not (y <= 8.5e+136): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -8.4e+61) || !(y <= 8.5e+136)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -8.4e+61) || ~((y <= 8.5e+136))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -8.4e+61], N[Not[LessEqual[y, 8.5e+136]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.4 \cdot 10^{+61} \lor \neg \left(y \leq 8.5 \cdot 10^{+136}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -8.4000000000000004e61 or 8.49999999999999966e136 < y Initial program 100.0%
Taylor expanded in t around 0 95.7%
mul-1-neg95.7%
Simplified95.7%
Taylor expanded in b around 0 88.2%
exp-diff88.2%
*-commutative88.2%
exp-to-pow88.2%
rem-exp-log88.2%
Simplified88.2%
if -8.4000000000000004e61 < y < 8.49999999999999966e136Initial program 96.9%
Taylor expanded in y around 0 93.9%
Final simplification91.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.8e+59) (not (<= y 6.5e+35))) (/ (* x (/ (pow z y) a)) y) (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.8e+59) || !(y <= 6.5e+35)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * (pow(a, (t + -1.0)) / exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-3.8d+59)) .or. (.not. (y <= 6.5d+35))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * ((a ** (t + (-1.0d0))) / exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.8e+59) || !(y <= 6.5e+35)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.8e+59) or not (y <= 6.5e+35): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.8e+59) || !(y <= 6.5e+35)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.8e+59) || ~((y <= 6.5e+35))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * ((a ^ (t + -1.0)) / exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.8e+59], N[Not[LessEqual[y, 6.5e+35]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+59} \lor \neg \left(y \leq 6.5 \cdot 10^{+35}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -3.8000000000000001e59 or 6.5000000000000003e35 < y Initial program 100.0%
Taylor expanded in t around 0 94.7%
mul-1-neg94.7%
Simplified94.7%
Taylor expanded in b around 0 84.0%
exp-diff84.0%
*-commutative84.0%
exp-to-pow84.0%
rem-exp-log84.0%
Simplified84.0%
if -3.8000000000000001e59 < y < 6.5000000000000003e35Initial program 96.5%
Taylor expanded in y around 0 95.8%
exp-diff84.8%
*-commutative84.8%
exp-to-pow85.6%
sub-neg85.6%
metadata-eval85.6%
Simplified85.6%
Final simplification84.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ 1.0 (* a (* y (exp b))))))
(t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -3.4e+59)
t_2
(if (<= y 3.9e-249)
t_1
(if (<= y 2.6e-146)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= y 1.4e+49) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (1.0 / (a * (y * exp(b))));
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -3.4e+59) {
tmp = t_2;
} else if (y <= 3.9e-249) {
tmp = t_1;
} else if (y <= 2.6e-146) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (y <= 1.4e+49) {
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 * (1.0d0 / (a * (y * exp(b))))
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-3.4d+59)) then
tmp = t_2
else if (y <= 3.9d-249) then
tmp = t_1
else if (y <= 2.6d-146) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (y <= 1.4d+49) 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 * (1.0 / (a * (y * Math.exp(b))));
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -3.4e+59) {
tmp = t_2;
} else if (y <= 3.9e-249) {
tmp = t_1;
} else if (y <= 2.6e-146) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (y <= 1.4e+49) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (1.0 / (a * (y * math.exp(b)))) t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -3.4e+59: tmp = t_2 elif y <= 3.9e-249: tmp = t_1 elif y <= 2.6e-146: tmp = (x * math.pow(a, (t + -1.0))) / y elif y <= 1.4e+49: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(1.0 / Float64(a * Float64(y * exp(b))))) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -3.4e+59) tmp = t_2; elseif (y <= 3.9e-249) tmp = t_1; elseif (y <= 2.6e-146) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (y <= 1.4e+49) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (1.0 / (a * (y * exp(b)))); t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -3.4e+59) tmp = t_2; elseif (y <= 3.9e-249) tmp = t_1; elseif (y <= 2.6e-146) tmp = (x * (a ^ (t + -1.0))) / y; elseif (y <= 1.4e+49) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(1.0 / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.4e+59], t$95$2, If[LessEqual[y, 3.9e-249], t$95$1, If[LessEqual[y, 2.6e-146], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.4e+49], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{1}{a \cdot \left(y \cdot e^{b}\right)}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+59}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-249}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-146}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -3.40000000000000006e59 or 1.3999999999999999e49 < y Initial program 100.0%
Taylor expanded in t around 0 94.6%
mul-1-neg94.6%
Simplified94.6%
Taylor expanded in b around 0 84.6%
exp-diff84.6%
*-commutative84.6%
exp-to-pow84.6%
rem-exp-log84.6%
Simplified84.6%
if -3.40000000000000006e59 < y < 3.8999999999999999e-249 or 2.59999999999999987e-146 < y < 1.3999999999999999e49Initial program 96.8%
associate-*r/98.6%
sub-neg98.6%
exp-sum82.9%
associate-/l*82.9%
associate-/r/79.0%
exp-neg79.0%
associate-*r/79.0%
Simplified76.3%
Taylor expanded in y around 0 81.8%
Taylor expanded in t around 0 82.6%
if 3.8999999999999999e-249 < y < 2.59999999999999987e-146Initial program 94.6%
Taylor expanded in y around 0 94.6%
Taylor expanded in b around 0 80.6%
Final simplification83.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -3.2e+59)
t_1
(if (<= y 4.8e-249)
(/ (/ x (* a (exp b))) y)
(if (<= y 7.5e-148)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= y 1e+49) (/ (/ (/ x (exp b)) a) y) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -3.2e+59) {
tmp = t_1;
} else if (y <= 4.8e-249) {
tmp = (x / (a * exp(b))) / y;
} else if (y <= 7.5e-148) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (y <= 1e+49) {
tmp = ((x / exp(b)) / a) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((z ** y) / a)) / y
if (y <= (-3.2d+59)) then
tmp = t_1
else if (y <= 4.8d-249) then
tmp = (x / (a * exp(b))) / y
else if (y <= 7.5d-148) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (y <= 1d+49) then
tmp = ((x / exp(b)) / a) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -3.2e+59) {
tmp = t_1;
} else if (y <= 4.8e-249) {
tmp = (x / (a * Math.exp(b))) / y;
} else if (y <= 7.5e-148) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (y <= 1e+49) {
tmp = ((x / Math.exp(b)) / a) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -3.2e+59: tmp = t_1 elif y <= 4.8e-249: tmp = (x / (a * math.exp(b))) / y elif y <= 7.5e-148: tmp = (x * math.pow(a, (t + -1.0))) / y elif y <= 1e+49: tmp = ((x / math.exp(b)) / a) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -3.2e+59) tmp = t_1; elseif (y <= 4.8e-249) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); elseif (y <= 7.5e-148) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (y <= 1e+49) tmp = Float64(Float64(Float64(x / exp(b)) / a) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -3.2e+59) tmp = t_1; elseif (y <= 4.8e-249) tmp = (x / (a * exp(b))) / y; elseif (y <= 7.5e-148) tmp = (x * (a ^ (t + -1.0))) / y; elseif (y <= 1e+49) tmp = ((x / exp(b)) / a) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.2e+59], t$95$1, If[LessEqual[y, 4.8e-249], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 7.5e-148], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1e+49], N[(N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-249}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-148}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;y \leq 10^{+49}:\\
\;\;\;\;\frac{\frac{\frac{x}{e^{b}}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.19999999999999982e59 or 9.99999999999999946e48 < y Initial program 100.0%
Taylor expanded in t around 0 94.6%
mul-1-neg94.6%
Simplified94.6%
Taylor expanded in b around 0 84.6%
exp-diff84.6%
*-commutative84.6%
exp-to-pow84.6%
rem-exp-log84.6%
Simplified84.6%
if -3.19999999999999982e59 < y < 4.80000000000000026e-249Initial program 96.8%
Taylor expanded in t around 0 78.5%
mul-1-neg78.5%
Simplified78.5%
Taylor expanded in y around 0 77.4%
exp-neg77.4%
associate-*l/77.5%
*-lft-identity77.5%
exp-sum77.5%
rem-exp-log78.5%
*-commutative78.5%
*-commutative78.5%
associate-/r*78.4%
Simplified78.4%
Taylor expanded in x around 0 78.5%
if 4.80000000000000026e-249 < y < 7.5000000000000005e-148Initial program 94.6%
Taylor expanded in y around 0 94.6%
Taylor expanded in b around 0 80.6%
if 7.5000000000000005e-148 < y < 9.99999999999999946e48Initial program 96.8%
Taylor expanded in t around 0 89.2%
mul-1-neg89.2%
Simplified89.2%
Taylor expanded in y around 0 84.5%
exp-neg84.5%
associate-*l/84.5%
*-lft-identity84.5%
exp-sum84.6%
rem-exp-log85.2%
*-commutative85.2%
*-commutative85.2%
associate-/r*85.2%
Simplified85.2%
Final simplification82.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.2e+59) (not (<= y 1.35e+49))) (/ (* x (/ (pow z y) a)) y) (/ (/ x (* a (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.2e+59) || !(y <= 1.35e+49)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x / (a * exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-3.2d+59)) .or. (.not. (y <= 1.35d+49))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x / (a * exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.2e+59) || !(y <= 1.35e+49)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x / (a * Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.2e+59) or not (y <= 1.35e+49): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x / (a * math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.2e+59) || !(y <= 1.35e+49)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x / Float64(a * exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.2e+59) || ~((y <= 1.35e+49))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x / (a * exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.2e+59], N[Not[LessEqual[y, 1.35e+49]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+59} \lor \neg \left(y \leq 1.35 \cdot 10^{+49}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if y < -3.19999999999999982e59 or 1.35000000000000005e49 < y Initial program 100.0%
Taylor expanded in t around 0 94.6%
mul-1-neg94.6%
Simplified94.6%
Taylor expanded in b around 0 84.6%
exp-diff84.6%
*-commutative84.6%
exp-to-pow84.6%
rem-exp-log84.6%
Simplified84.6%
if -3.19999999999999982e59 < y < 1.35000000000000005e49Initial program 96.5%
Taylor expanded in t around 0 77.1%
mul-1-neg77.1%
Simplified77.1%
Taylor expanded in y around 0 75.1%
exp-neg75.1%
associate-*l/75.1%
*-lft-identity75.1%
exp-sum75.1%
rem-exp-log76.0%
*-commutative76.0%
*-commutative76.0%
associate-/r*76.0%
Simplified76.0%
Taylor expanded in x around 0 76.0%
Final simplification79.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.0029) (/ (/ (/ x (exp b)) a) y) (if (<= b 3e+31) (* (/ (pow z y) a) (/ x y)) (/ (/ x (* a (exp b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.0029) {
tmp = ((x / exp(b)) / a) / y;
} else if (b <= 3e+31) {
tmp = (pow(z, y) / a) * (x / y);
} else {
tmp = (x / (a * exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.0029d0)) then
tmp = ((x / exp(b)) / a) / y
else if (b <= 3d+31) then
tmp = ((z ** y) / a) * (x / y)
else
tmp = (x / (a * exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.0029) {
tmp = ((x / Math.exp(b)) / a) / y;
} else if (b <= 3e+31) {
tmp = (Math.pow(z, y) / a) * (x / y);
} else {
tmp = (x / (a * Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.0029: tmp = ((x / math.exp(b)) / a) / y elif b <= 3e+31: tmp = (math.pow(z, y) / a) * (x / y) else: tmp = (x / (a * math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.0029) tmp = Float64(Float64(Float64(x / exp(b)) / a) / y); elseif (b <= 3e+31) tmp = Float64(Float64((z ^ y) / a) * Float64(x / y)); else tmp = Float64(Float64(x / Float64(a * exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.0029) tmp = ((x / exp(b)) / a) / y; elseif (b <= 3e+31) tmp = ((z ^ y) / a) * (x / y); else tmp = (x / (a * exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.0029], N[(N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3e+31], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.0029:\\
\;\;\;\;\frac{\frac{\frac{x}{e^{b}}}{a}}{y}\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+31}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if b < -0.0029Initial program 99.8%
Taylor expanded in t around 0 96.7%
mul-1-neg96.7%
Simplified96.7%
Taylor expanded in y around 0 89.6%
exp-neg89.6%
associate-*l/89.6%
*-lft-identity89.6%
exp-sum89.6%
rem-exp-log89.6%
*-commutative89.6%
*-commutative89.6%
associate-/r*89.7%
Simplified89.7%
if -0.0029 < b < 2.99999999999999989e31Initial program 95.9%
Taylor expanded in t around 0 70.0%
mul-1-neg70.0%
Simplified70.0%
Taylor expanded in b around 0 68.7%
exp-diff68.7%
*-commutative68.7%
exp-to-pow68.7%
rem-exp-log69.7%
associate-*r/63.5%
Simplified63.5%
if 2.99999999999999989e31 < b Initial program 100.0%
Taylor expanded in t around 0 98.5%
mul-1-neg98.5%
Simplified98.5%
Taylor expanded in y around 0 80.6%
exp-neg80.6%
associate-*l/80.6%
*-lft-identity80.6%
exp-sum80.6%
rem-exp-log80.6%
*-commutative80.6%
*-commutative80.6%
associate-/r*80.6%
Simplified80.6%
Taylor expanded in x around 0 80.6%
Final simplification75.0%
(FPCore (x y z t a b) :precision binary64 (/ x (* (exp b) (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (exp(b) * (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 / (exp(b) * (y * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (Math.exp(b) * (y * a));
}
def code(x, y, z, t, a, b): return x / (math.exp(b) * (y * a))
function code(x, y, z, t, a, b) return Float64(x / Float64(exp(b) * Float64(y * a))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (exp(b) * (y * a)); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(N[Exp[b], $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{e^{b} \cdot \left(y \cdot a\right)}
\end{array}
Initial program 98.0%
Taylor expanded in t around 0 84.5%
mul-1-neg84.5%
Simplified84.5%
Taylor expanded in y around 0 59.5%
exp-neg59.5%
associate-*l/59.5%
*-lft-identity59.5%
exp-sum59.5%
rem-exp-log60.0%
*-commutative60.0%
associate-/r*61.0%
*-commutative61.0%
associate-*r*55.5%
*-commutative55.5%
Simplified55.5%
Final simplification55.5%
(FPCore (x y z t a b) :precision binary64 (/ (/ x (* a (exp b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / (a * exp(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 / (a * exp(b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / (a * Math.exp(b))) / y;
}
def code(x, y, z, t, a, b): return (x / (a * math.exp(b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / Float64(a * exp(b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / (a * exp(b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a \cdot e^{b}}}{y}
\end{array}
Initial program 98.0%
Taylor expanded in t around 0 84.5%
mul-1-neg84.5%
Simplified84.5%
Taylor expanded in y around 0 59.5%
exp-neg59.5%
associate-*l/59.5%
*-lft-identity59.5%
exp-sum59.5%
rem-exp-log60.0%
*-commutative60.0%
*-commutative60.0%
associate-/r*60.0%
Simplified60.0%
Taylor expanded in x around 0 60.0%
Final simplification60.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x y) a)))
(if (<= b -1.2e-110)
(- t_1 (+ (* (/ b y) (/ x a)) (* (* b b) (* t_1 -0.5))))
(* x (/ 1.0 (* y (+ a (* a b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) / a;
double tmp;
if (b <= -1.2e-110) {
tmp = t_1 - (((b / y) * (x / a)) + ((b * b) * (t_1 * -0.5)));
} else {
tmp = x * (1.0 / (y * (a + (a * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / y) / a
if (b <= (-1.2d-110)) then
tmp = t_1 - (((b / y) * (x / a)) + ((b * b) * (t_1 * (-0.5d0))))
else
tmp = x * (1.0d0 / (y * (a + (a * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) / a;
double tmp;
if (b <= -1.2e-110) {
tmp = t_1 - (((b / y) * (x / a)) + ((b * b) * (t_1 * -0.5)));
} else {
tmp = x * (1.0 / (y * (a + (a * b))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / y) / a tmp = 0 if b <= -1.2e-110: tmp = t_1 - (((b / y) * (x / a)) + ((b * b) * (t_1 * -0.5))) else: tmp = x * (1.0 / (y * (a + (a * b)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / y) / a) tmp = 0.0 if (b <= -1.2e-110) tmp = Float64(t_1 - Float64(Float64(Float64(b / y) * Float64(x / a)) + Float64(Float64(b * b) * Float64(t_1 * -0.5)))); else tmp = Float64(x * Float64(1.0 / Float64(y * Float64(a + Float64(a * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / y) / a; tmp = 0.0; if (b <= -1.2e-110) tmp = t_1 - (((b / y) * (x / a)) + ((b * b) * (t_1 * -0.5))); else tmp = x * (1.0 / (y * (a + (a * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[b, -1.2e-110], N[(t$95$1 - N[(N[(N[(b / y), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision] + N[(N[(b * b), $MachinePrecision] * N[(t$95$1 * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{y}}{a}\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{-110}:\\
\;\;\;\;t_1 - \left(\frac{b}{y} \cdot \frac{x}{a} + \left(b \cdot b\right) \cdot \left(t_1 \cdot -0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.20000000000000003e-110Initial program 99.6%
Taylor expanded in t around 0 93.2%
mul-1-neg93.2%
Simplified93.2%
Taylor expanded in y around 0 71.5%
exp-neg71.5%
associate-*l/71.5%
*-lft-identity71.5%
exp-sum71.5%
rem-exp-log71.8%
*-commutative71.8%
associate-/r*70.7%
*-commutative70.7%
associate-*r*63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in b around 0 34.0%
associate-/l/34.0%
distribute-lft-out34.0%
times-frac33.0%
*-commutative33.0%
unpow233.0%
distribute-rgt-out47.9%
*-commutative47.9%
metadata-eval47.9%
*-commutative47.9%
associate-/r*52.2%
Simplified52.2%
if -1.20000000000000003e-110 < b Initial program 97.1%
Taylor expanded in t around 0 79.5%
mul-1-neg79.5%
Simplified79.5%
Taylor expanded in y around 0 52.5%
exp-neg52.5%
associate-*l/52.5%
*-lft-identity52.5%
exp-sum52.5%
rem-exp-log53.1%
*-commutative53.1%
associate-/r*55.3%
*-commutative55.3%
associate-*r*51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in b around 0 36.0%
div-inv36.5%
distribute-lft-out36.5%
*-commutative36.5%
Applied egg-rr36.5%
Final simplification42.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -5e-12) (+ (- (/ x (* y a)) (* x (/ b (* y a)))) (* (/ x a) (/ (* b b) y))) (* x (/ 1.0 (* y (+ a (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-12) {
tmp = ((x / (y * a)) - (x * (b / (y * a)))) + ((x / a) * ((b * b) / y));
} else {
tmp = x * (1.0 / (y * (a + (a * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-5d-12)) then
tmp = ((x / (y * a)) - (x * (b / (y * a)))) + ((x / a) * ((b * b) / y))
else
tmp = x * (1.0d0 / (y * (a + (a * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-12) {
tmp = ((x / (y * a)) - (x * (b / (y * a)))) + ((x / a) * ((b * b) / y));
} else {
tmp = x * (1.0 / (y * (a + (a * b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5e-12: tmp = ((x / (y * a)) - (x * (b / (y * a)))) + ((x / a) * ((b * b) / y)) else: tmp = x * (1.0 / (y * (a + (a * b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5e-12) tmp = Float64(Float64(Float64(x / Float64(y * a)) - Float64(x * Float64(b / Float64(y * a)))) + Float64(Float64(x / a) * Float64(Float64(b * b) / y))); else tmp = Float64(x * Float64(1.0 / Float64(y * Float64(a + Float64(a * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5e-12) tmp = ((x / (y * a)) - (x * (b / (y * a)))) + ((x / a) * ((b * b) / y)); else tmp = x * (1.0 / (y * (a + (a * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5e-12], N[(N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(b / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x / a), $MachinePrecision] * N[(N[(b * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-12}:\\
\;\;\;\;\left(\frac{x}{y \cdot a} - x \cdot \frac{b}{y \cdot a}\right) + \frac{x}{a} \cdot \frac{b \cdot b}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.9999999999999997e-12Initial program 99.8%
Taylor expanded in t around 0 96.7%
mul-1-neg96.7%
Simplified96.7%
Taylor expanded in y around 0 89.6%
exp-neg89.6%
associate-*l/89.6%
*-lft-identity89.6%
exp-sum89.6%
rem-exp-log89.6%
*-commutative89.6%
associate-/r*89.6%
*-commutative89.6%
associate-*r*79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in b around 0 4.5%
Taylor expanded in b around 0 61.2%
+-commutative61.2%
associate-/r*62.5%
times-frac58.2%
neg-mul-158.2%
sub-neg58.2%
*-commutative58.2%
times-frac62.5%
associate-*r/62.5%
associate-/l/61.2%
*-commutative61.2%
*-commutative61.2%
times-frac64.1%
unpow264.1%
Simplified64.1%
if -4.9999999999999997e-12 < b Initial program 97.3%
Taylor expanded in t around 0 80.0%
mul-1-neg80.0%
Simplified80.0%
Taylor expanded in y around 0 48.4%
exp-neg48.4%
associate-*l/48.4%
*-lft-identity48.4%
exp-sum48.4%
rem-exp-log49.0%
*-commutative49.0%
associate-/r*50.4%
*-commutative50.4%
associate-*r*46.6%
*-commutative46.6%
Simplified46.6%
Taylor expanded in b around 0 33.1%
div-inv33.6%
distribute-lft-out34.1%
*-commutative34.1%
Applied egg-rr34.1%
Final simplification42.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.5e-77) (+ (* (/ (/ x a) y) (- 1.0 b)) (* (* b b) (* x (/ 0.5 (* y a))))) (* x (/ 1.0 (* y (+ a (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.5e-77) {
tmp = (((x / a) / y) * (1.0 - b)) + ((b * b) * (x * (0.5 / (y * a))));
} else {
tmp = x * (1.0 / (y * (a + (a * 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 <= (-3.5d-77)) then
tmp = (((x / a) / y) * (1.0d0 - b)) + ((b * b) * (x * (0.5d0 / (y * a))))
else
tmp = x * (1.0d0 / (y * (a + (a * 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 <= -3.5e-77) {
tmp = (((x / a) / y) * (1.0 - b)) + ((b * b) * (x * (0.5 / (y * a))));
} else {
tmp = x * (1.0 / (y * (a + (a * b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.5e-77: tmp = (((x / a) / y) * (1.0 - b)) + ((b * b) * (x * (0.5 / (y * a)))) else: tmp = x * (1.0 / (y * (a + (a * b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.5e-77) tmp = Float64(Float64(Float64(Float64(x / a) / y) * Float64(1.0 - b)) + Float64(Float64(b * b) * Float64(x * Float64(0.5 / Float64(y * a))))); else tmp = Float64(x * Float64(1.0 / Float64(y * Float64(a + Float64(a * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.5e-77) tmp = (((x / a) / y) * (1.0 - b)) + ((b * b) * (x * (0.5 / (y * a)))); else tmp = x * (1.0 / (y * (a + (a * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.5e-77], N[(N[(N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision] * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] + N[(N[(b * b), $MachinePrecision] * N[(x * N[(0.5 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{-77}:\\
\;\;\;\;\frac{\frac{x}{a}}{y} \cdot \left(1 - b\right) + \left(b \cdot b\right) \cdot \left(x \cdot \frac{0.5}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.50000000000000013e-77Initial program 99.6%
Taylor expanded in t around 0 94.9%
mul-1-neg94.9%
Simplified94.9%
Taylor expanded in y around 0 76.9%
exp-neg76.9%
associate-*l/76.9%
*-lft-identity76.9%
exp-sum76.9%
rem-exp-log77.1%
*-commutative77.1%
*-commutative77.1%
associate-/r*77.1%
Simplified77.1%
Taylor expanded in b around 0 35.9%
associate-+r+35.9%
associate-/r*38.0%
times-frac33.6%
neg-mul-133.6%
sub-neg33.6%
*-lft-identity33.6%
associate-*l/35.9%
associate-*r/37.0%
distribute-rgt-out--37.0%
mul-1-neg37.0%
*-commutative37.0%
distribute-rgt-out53.3%
associate-/r*55.7%
distribute-rgt-out37.0%
Simplified53.3%
if -3.50000000000000013e-77 < b Initial program 97.2%
Taylor expanded in t around 0 79.3%
mul-1-neg79.3%
Simplified79.3%
Taylor expanded in y around 0 50.7%
exp-neg50.7%
associate-*l/50.7%
*-lft-identity50.7%
exp-sum50.7%
rem-exp-log51.3%
*-commutative51.3%
associate-/r*53.4%
*-commutative53.4%
associate-*r*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in b around 0 34.9%
div-inv35.5%
distribute-lft-out35.5%
*-commutative35.5%
Applied egg-rr35.5%
Final simplification41.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -4.5e+202)
(/ (- (/ x y) (* x (/ b y))) a)
(if (<= b -1.85e-148)
(/ (* a (- (/ (* x y) y) (* x b))) (* a (* y a)))
(* x (/ 1.0 (* y (+ a (* a b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.5e+202) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= -1.85e-148) {
tmp = (a * (((x * y) / y) - (x * b))) / (a * (y * a));
} else {
tmp = x * (1.0 / (y * (a + (a * 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.5d+202)) then
tmp = ((x / y) - (x * (b / y))) / a
else if (b <= (-1.85d-148)) then
tmp = (a * (((x * y) / y) - (x * b))) / (a * (y * a))
else
tmp = x * (1.0d0 / (y * (a + (a * 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.5e+202) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= -1.85e-148) {
tmp = (a * (((x * y) / y) - (x * b))) / (a * (y * a));
} else {
tmp = x * (1.0 / (y * (a + (a * b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.5e+202: tmp = ((x / y) - (x * (b / y))) / a elif b <= -1.85e-148: tmp = (a * (((x * y) / y) - (x * b))) / (a * (y * a)) else: tmp = x * (1.0 / (y * (a + (a * b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.5e+202) tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a); elseif (b <= -1.85e-148) tmp = Float64(Float64(a * Float64(Float64(Float64(x * y) / y) - Float64(x * b))) / Float64(a * Float64(y * a))); else tmp = Float64(x * Float64(1.0 / Float64(y * Float64(a + Float64(a * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.5e+202) tmp = ((x / y) - (x * (b / y))) / a; elseif (b <= -1.85e-148) tmp = (a * (((x * y) / y) - (x * b))) / (a * (y * a)); else tmp = x * (1.0 / (y * (a + (a * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.5e+202], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -1.85e-148], N[(N[(a * N[(N[(N[(x * y), $MachinePrecision] / y), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.5 \cdot 10^{+202}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\
\mathbf{elif}\;b \leq -1.85 \cdot 10^{-148}:\\
\;\;\;\;\frac{a \cdot \left(\frac{x \cdot y}{y} - x \cdot b\right)}{a \cdot \left(y \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.49999999999999978e202Initial program 100.0%
Taylor expanded in t around 0 95.7%
mul-1-neg95.7%
Simplified95.7%
Taylor expanded in y around 0 95.7%
exp-neg95.7%
associate-*l/95.7%
*-lft-identity95.7%
exp-sum95.7%
rem-exp-log95.7%
*-commutative95.7%
associate-/r*95.7%
*-commutative95.7%
associate-*r*87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in b around 0 66.8%
Taylor expanded in a around 0 78.8%
+-commutative78.8%
mul-1-neg78.8%
unsub-neg78.8%
*-commutative78.8%
associate-*r/87.2%
Simplified87.2%
if -4.49999999999999978e202 < b < -1.85000000000000017e-148Initial program 99.3%
Taylor expanded in t around 0 90.4%
mul-1-neg90.4%
Simplified90.4%
Taylor expanded in y around 0 63.0%
exp-neg63.0%
associate-*l/63.0%
*-lft-identity63.0%
exp-sum63.0%
rem-exp-log63.5%
*-commutative63.5%
associate-/r*62.3%
*-commutative62.3%
associate-*r*55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in b around 0 33.5%
*-commutative33.5%
associate-/r*32.3%
associate-*r/32.3%
frac-add31.2%
*-commutative31.2%
*-commutative31.2%
*-commutative31.2%
Applied egg-rr31.2%
*-commutative31.2%
associate-*l*37.8%
distribute-lft-out37.8%
associate-*r/40.2%
mul-1-neg40.2%
*-commutative40.2%
distribute-rgt-neg-in40.2%
*-commutative40.2%
Simplified40.2%
if -1.85000000000000017e-148 < b Initial program 97.0%
Taylor expanded in t around 0 79.9%
mul-1-neg79.9%
Simplified79.9%
Taylor expanded in y around 0 52.3%
exp-neg52.3%
associate-*l/52.3%
*-lft-identity52.3%
exp-sum52.3%
rem-exp-log52.9%
*-commutative52.9%
associate-/r*55.2%
*-commutative55.2%
associate-*r*50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in b around 0 35.0%
div-inv35.6%
distribute-lft-out35.6%
*-commutative35.6%
Applied egg-rr35.6%
Final simplification41.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -6.2e+202)
(/ (- (/ x y) (* x (/ b y))) a)
(if (<= b -3.9e-235)
(/ (- (/ x a) (* x (/ b a))) y)
(if (<= b 2.6e+73)
(/ 1.0 (/ a (/ x y)))
(* (/ 1.0 y) (/ x (+ a (* a b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.2e+202) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= -3.9e-235) {
tmp = ((x / a) - (x * (b / a))) / y;
} else if (b <= 2.6e+73) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = (1.0 / y) * (x / (a + (a * 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 <= (-6.2d+202)) then
tmp = ((x / y) - (x * (b / y))) / a
else if (b <= (-3.9d-235)) then
tmp = ((x / a) - (x * (b / a))) / y
else if (b <= 2.6d+73) then
tmp = 1.0d0 / (a / (x / y))
else
tmp = (1.0d0 / y) * (x / (a + (a * 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 <= -6.2e+202) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= -3.9e-235) {
tmp = ((x / a) - (x * (b / a))) / y;
} else if (b <= 2.6e+73) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = (1.0 / y) * (x / (a + (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.2e+202: tmp = ((x / y) - (x * (b / y))) / a elif b <= -3.9e-235: tmp = ((x / a) - (x * (b / a))) / y elif b <= 2.6e+73: tmp = 1.0 / (a / (x / y)) else: tmp = (1.0 / y) * (x / (a + (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.2e+202) tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a); elseif (b <= -3.9e-235) tmp = Float64(Float64(Float64(x / a) - Float64(x * Float64(b / a))) / y); elseif (b <= 2.6e+73) tmp = Float64(1.0 / Float64(a / Float64(x / y))); else tmp = Float64(Float64(1.0 / y) * Float64(x / Float64(a + Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.2e+202) tmp = ((x / y) - (x * (b / y))) / a; elseif (b <= -3.9e-235) tmp = ((x / a) - (x * (b / a))) / y; elseif (b <= 2.6e+73) tmp = 1.0 / (a / (x / y)); else tmp = (1.0 / y) * (x / (a + (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.2e+202], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -3.9e-235], N[(N[(N[(x / a), $MachinePrecision] - N[(x * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.6e+73], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / y), $MachinePrecision] * N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.2 \cdot 10^{+202}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{-235}:\\
\;\;\;\;\frac{\frac{x}{a} - x \cdot \frac{b}{a}}{y}\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+73}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y} \cdot \frac{x}{a + a \cdot b}\\
\end{array}
\end{array}
if b < -6.19999999999999983e202Initial program 100.0%
Taylor expanded in t around 0 95.7%
mul-1-neg95.7%
Simplified95.7%
Taylor expanded in y around 0 95.7%
exp-neg95.7%
associate-*l/95.7%
*-lft-identity95.7%
exp-sum95.7%
rem-exp-log95.7%
*-commutative95.7%
associate-/r*95.7%
*-commutative95.7%
associate-*r*87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in b around 0 66.8%
Taylor expanded in a around 0 78.8%
+-commutative78.8%
mul-1-neg78.8%
unsub-neg78.8%
*-commutative78.8%
associate-*r/87.2%
Simplified87.2%
if -6.19999999999999983e202 < b < -3.8999999999999997e-235Initial program 99.2%
Taylor expanded in t around 0 87.0%
mul-1-neg87.0%
Simplified87.0%
Taylor expanded in y around 0 57.9%
exp-neg57.9%
associate-*l/57.9%
*-lft-identity57.9%
exp-sum57.9%
rem-exp-log58.4%
*-commutative58.4%
*-commutative58.4%
associate-/r*58.4%
Simplified58.4%
Taylor expanded in b around 0 35.7%
+-commutative35.7%
mul-1-neg35.7%
unsub-neg35.7%
*-commutative35.7%
associate-*r/36.7%
Simplified36.7%
if -3.8999999999999997e-235 < b < 2.6000000000000001e73Initial program 94.9%
Taylor expanded in t around 0 70.2%
mul-1-neg70.2%
Simplified70.2%
Taylor expanded in y around 0 37.9%
exp-neg37.9%
associate-*l/37.9%
*-lft-identity37.9%
exp-sum37.9%
rem-exp-log38.8%
*-commutative38.8%
associate-/r*41.8%
*-commutative41.8%
associate-*r*40.6%
*-commutative40.6%
Simplified40.6%
Taylor expanded in b around 0 32.1%
clear-num32.0%
inv-pow32.0%
*-commutative32.0%
Applied egg-rr32.0%
unpow-132.0%
associate-/l*35.3%
Simplified35.3%
if 2.6000000000000001e73 < b Initial program 100.0%
Taylor expanded in t around 0 98.2%
mul-1-neg98.2%
Simplified98.2%
Taylor expanded in y around 0 80.7%
exp-neg80.7%
associate-*l/80.7%
*-lft-identity80.7%
exp-sum80.7%
rem-exp-log80.7%
*-commutative80.7%
associate-/r*80.7%
*-commutative80.7%
associate-*r*69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in b around 0 39.5%
*-un-lft-identity39.5%
distribute-lft-out39.5%
times-frac41.2%
*-commutative41.2%
Applied egg-rr41.2%
Final simplification41.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8.2e-78) (/ (/ (- x (* x b)) a) y) (* x (/ 1.0 (* y (+ a (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.2e-78) {
tmp = ((x - (x * b)) / a) / y;
} else {
tmp = x * (1.0 / (y * (a + (a * 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 <= (-8.2d-78)) then
tmp = ((x - (x * b)) / a) / y
else
tmp = x * (1.0d0 / (y * (a + (a * 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 <= -8.2e-78) {
tmp = ((x - (x * b)) / a) / y;
} else {
tmp = x * (1.0 / (y * (a + (a * b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.2e-78: tmp = ((x - (x * b)) / a) / y else: tmp = x * (1.0 / (y * (a + (a * b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8.2e-78) tmp = Float64(Float64(Float64(x - Float64(x * b)) / a) / y); else tmp = Float64(x * Float64(1.0 / Float64(y * Float64(a + Float64(a * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8.2e-78) tmp = ((x - (x * b)) / a) / y; else tmp = x * (1.0 / (y * (a + (a * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.2e-78], N[(N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(1.0 / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.2 \cdot 10^{-78}:\\
\;\;\;\;\frac{\frac{x - x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -8.1999999999999996e-78Initial program 99.6%
Taylor expanded in t around 0 94.9%
mul-1-neg94.9%
Simplified94.9%
Taylor expanded in y around 0 76.9%
exp-neg76.9%
associate-*l/76.9%
*-lft-identity76.9%
exp-sum76.9%
rem-exp-log77.1%
*-commutative77.1%
*-commutative77.1%
associate-/r*77.1%
Simplified77.1%
Taylor expanded in b around 0 46.8%
+-commutative46.8%
mul-1-neg46.8%
*-commutative46.8%
unsub-neg46.8%
Simplified46.8%
if -8.1999999999999996e-78 < b Initial program 97.2%
Taylor expanded in t around 0 79.3%
mul-1-neg79.3%
Simplified79.3%
Taylor expanded in y around 0 50.7%
exp-neg50.7%
associate-*l/50.7%
*-lft-identity50.7%
exp-sum50.7%
rem-exp-log51.3%
*-commutative51.3%
associate-/r*53.4%
*-commutative53.4%
associate-*r*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in b around 0 34.9%
div-inv35.5%
distribute-lft-out35.5%
*-commutative35.5%
Applied egg-rr35.5%
Final simplification39.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.15e-20) (* x (/ (- b) (* y a))) (if (<= b 4e+29) (* x (/ 1.0 (* y a))) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.15e-20) {
tmp = x * (-b / (y * a));
} else if (b <= 4e+29) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (a * 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.15d-20)) then
tmp = x * (-b / (y * a))
else if (b <= 4d+29) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (y * (a * 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.15e-20) {
tmp = x * (-b / (y * a));
} else if (b <= 4e+29) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.15e-20: tmp = x * (-b / (y * a)) elif b <= 4e+29: tmp = x * (1.0 / (y * a)) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.15e-20) tmp = Float64(x * Float64(Float64(-b) / Float64(y * a))); elseif (b <= 4e+29) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.15e-20) tmp = x * (-b / (y * a)); elseif (b <= 4e+29) tmp = x * (1.0 / (y * a)); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.15e-20], N[(x * N[((-b) / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+29], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{-20}:\\
\;\;\;\;x \cdot \frac{-b}{y \cdot a}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+29}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.15e-20Initial program 99.8%
Taylor expanded in t around 0 96.7%
mul-1-neg96.7%
Simplified96.7%
Taylor expanded in y around 0 88.6%
exp-neg88.6%
associate-*l/88.6%
*-lft-identity88.6%
exp-sum88.6%
rem-exp-log88.7%
*-commutative88.7%
associate-/r*88.7%
*-commutative88.7%
associate-*r*78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in b around 0 47.1%
Taylor expanded in b around inf 47.7%
times-frac46.4%
neg-mul-146.4%
*-commutative46.4%
times-frac47.7%
associate-*r/49.2%
distribute-rgt-neg-in49.2%
distribute-frac-neg49.2%
*-commutative49.2%
Simplified49.2%
if -1.15e-20 < b < 3.99999999999999966e29Initial program 95.9%
Taylor expanded in t around 0 69.7%
mul-1-neg69.7%
Simplified69.7%
Taylor expanded in y around 0 30.9%
exp-neg30.9%
associate-*l/30.9%
*-lft-identity30.9%
exp-sum30.9%
rem-exp-log31.9%
*-commutative31.9%
associate-/r*34.0%
*-commutative34.0%
associate-*r*34.0%
*-commutative34.0%
Simplified34.0%
Taylor expanded in b around 0 32.6%
*-commutative32.6%
div-inv33.4%
Applied egg-rr33.4%
if 3.99999999999999966e29 < b Initial program 100.0%
Taylor expanded in t around 0 98.5%
mul-1-neg98.5%
Simplified98.5%
Taylor expanded in y around 0 80.6%
exp-neg80.6%
associate-*l/80.6%
*-lft-identity80.6%
exp-sum80.6%
rem-exp-log80.6%
*-commutative80.6%
associate-/r*80.6%
*-commutative80.6%
associate-*r*70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around 0 35.4%
Taylor expanded in b around inf 32.4%
*-commutative32.4%
associate-*r*35.4%
*-commutative35.4%
Simplified35.4%
Final simplification38.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.6e-20) (* x (/ (- b) (* y a))) (/ x (* y (+ a (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.6e-20) {
tmp = x * (-b / (y * a));
} else {
tmp = x / (y * (a + (a * 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.6d-20)) then
tmp = x * (-b / (y * a))
else
tmp = x / (y * (a + (a * 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.6e-20) {
tmp = x * (-b / (y * a));
} else {
tmp = x / (y * (a + (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.6e-20: tmp = x * (-b / (y * a)) else: tmp = x / (y * (a + (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.6e-20) tmp = Float64(x * Float64(Float64(-b) / Float64(y * a))); else tmp = Float64(x / Float64(y * Float64(a + Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.6e-20) tmp = x * (-b / (y * a)); else tmp = x / (y * (a + (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.6e-20], N[(x * N[((-b) / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.6 \cdot 10^{-20}:\\
\;\;\;\;x \cdot \frac{-b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.59999999999999985e-20Initial program 99.8%
Taylor expanded in t around 0 96.7%
mul-1-neg96.7%
Simplified96.7%
Taylor expanded in y around 0 88.6%
exp-neg88.6%
associate-*l/88.6%
*-lft-identity88.6%
exp-sum88.6%
rem-exp-log88.7%
*-commutative88.7%
associate-/r*88.7%
*-commutative88.7%
associate-*r*78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in b around 0 47.1%
Taylor expanded in b around inf 47.7%
times-frac46.4%
neg-mul-146.4%
*-commutative46.4%
times-frac47.7%
associate-*r/49.2%
distribute-rgt-neg-in49.2%
distribute-frac-neg49.2%
*-commutative49.2%
Simplified49.2%
if -1.59999999999999985e-20 < b Initial program 97.3%
Taylor expanded in t around 0 79.9%
mul-1-neg79.9%
Simplified79.9%
Taylor expanded in y around 0 48.5%
exp-neg48.5%
associate-*l/48.5%
*-lft-identity48.5%
exp-sum48.5%
rem-exp-log49.2%
*-commutative49.2%
associate-/r*50.5%
*-commutative50.5%
associate-*r*46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in b around 0 33.1%
distribute-lft-out33.7%
Simplified33.7%
Final simplification37.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3e-77) (/ (/ (- x (* x b)) a) y) (/ x (* y (+ a (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3e-77) {
tmp = ((x - (x * b)) / a) / y;
} else {
tmp = x / (y * (a + (a * 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 <= (-3d-77)) then
tmp = ((x - (x * b)) / a) / y
else
tmp = x / (y * (a + (a * 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 <= -3e-77) {
tmp = ((x - (x * b)) / a) / y;
} else {
tmp = x / (y * (a + (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3e-77: tmp = ((x - (x * b)) / a) / y else: tmp = x / (y * (a + (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3e-77) tmp = Float64(Float64(Float64(x - Float64(x * b)) / a) / y); else tmp = Float64(x / Float64(y * Float64(a + Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3e-77) tmp = ((x - (x * b)) / a) / y; else tmp = x / (y * (a + (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3e-77], N[(N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{-77}:\\
\;\;\;\;\frac{\frac{x - x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.00000000000000016e-77Initial program 99.6%
Taylor expanded in t around 0 94.9%
mul-1-neg94.9%
Simplified94.9%
Taylor expanded in y around 0 76.9%
exp-neg76.9%
associate-*l/76.9%
*-lft-identity76.9%
exp-sum76.9%
rem-exp-log77.1%
*-commutative77.1%
*-commutative77.1%
associate-/r*77.1%
Simplified77.1%
Taylor expanded in b around 0 46.8%
+-commutative46.8%
mul-1-neg46.8%
*-commutative46.8%
unsub-neg46.8%
Simplified46.8%
if -3.00000000000000016e-77 < b Initial program 97.2%
Taylor expanded in t around 0 79.3%
mul-1-neg79.3%
Simplified79.3%
Taylor expanded in y around 0 50.7%
exp-neg50.7%
associate-*l/50.7%
*-lft-identity50.7%
exp-sum50.7%
rem-exp-log51.3%
*-commutative51.3%
associate-/r*53.4%
*-commutative53.4%
associate-*r*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in b around 0 34.9%
distribute-lft-out34.9%
Simplified34.9%
Final simplification38.9%
(FPCore (x y z t a b) :precision binary64 (if (<= x 2.6e+69) (* (/ 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 (x <= 2.6e+69) {
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 (x <= 2.6d+69) 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 (x <= 2.6e+69) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 2.6e+69: 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 (x <= 2.6e+69) 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 (x <= 2.6e+69) 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[x, 2.6e+69], 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}\;x \leq 2.6 \cdot 10^{+69}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if x < 2.6000000000000002e69Initial program 97.7%
Taylor expanded in t around 0 83.9%
mul-1-neg83.9%
Simplified83.9%
Taylor expanded in y around 0 60.2%
exp-neg60.3%
associate-*l/60.3%
*-lft-identity60.3%
exp-sum60.3%
rem-exp-log60.7%
*-commutative60.7%
associate-/r*61.4%
*-commutative61.4%
associate-*r*57.0%
*-commutative57.0%
Simplified57.0%
Taylor expanded in b around 0 24.5%
*-un-lft-identity24.5%
*-commutative24.5%
times-frac28.3%
Applied egg-rr28.3%
if 2.6000000000000002e69 < x Initial program 99.1%
Taylor expanded in t around 0 86.7%
mul-1-neg86.7%
Simplified86.7%
Taylor expanded in y around 0 56.6%
exp-neg56.6%
associate-*l/56.6%
*-lft-identity56.6%
exp-sum56.6%
rem-exp-log57.4%
*-commutative57.4%
associate-/r*59.2%
*-commutative59.2%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in b around 0 29.1%
Final simplification28.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b 8.2e+102) (* x (/ 1.0 (* y a))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 8.2e+102) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 8.2d+102) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 8.2e+102) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 8.2e+102: tmp = x * (1.0 / (y * a)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 8.2e+102) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 8.2e+102) tmp = x * (1.0 / (y * a)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 8.2e+102], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 8.2 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 8.1999999999999999e102Initial program 97.5%
Taylor expanded in t around 0 81.1%
mul-1-neg81.1%
Simplified81.1%
Taylor expanded in y around 0 53.5%
exp-neg53.5%
associate-*l/53.5%
*-lft-identity53.5%
exp-sum53.5%
rem-exp-log54.1%
*-commutative54.1%
associate-/r*55.4%
*-commutative55.4%
associate-*r*51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in b around 0 29.3%
*-commutative29.3%
div-inv29.8%
Applied egg-rr29.8%
if 8.1999999999999999e102 < b Initial program 100.0%
Taylor expanded in t around 0 98.1%
mul-1-neg98.1%
Simplified98.1%
Taylor expanded in y around 0 83.0%
exp-neg83.0%
associate-*l/83.0%
*-lft-identity83.0%
exp-sum83.0%
rem-exp-log83.0%
*-commutative83.0%
associate-/r*83.0%
*-commutative83.0%
associate-*r*71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around 0 40.4%
Taylor expanded in b around inf 38.5%
Final simplification31.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4e+29) (* x (/ 1.0 (* y a))) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4e+29) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (a * 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 <= 4d+29) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (y * (a * 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 <= 4e+29) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4e+29: tmp = x * (1.0 / (y * a)) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4e+29) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4e+29) tmp = x * (1.0 / (y * a)); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4e+29], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4 \cdot 10^{+29}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.99999999999999966e29Initial program 97.3%
Taylor expanded in t around 0 79.7%
mul-1-neg79.7%
Simplified79.7%
Taylor expanded in y around 0 52.1%
exp-neg52.1%
associate-*l/52.1%
*-lft-identity52.1%
exp-sum52.1%
rem-exp-log52.8%
*-commutative52.8%
associate-/r*54.1%
*-commutative54.1%
associate-*r*50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in b around 0 30.8%
*-commutative30.8%
div-inv31.3%
Applied egg-rr31.3%
if 3.99999999999999966e29 < b Initial program 100.0%
Taylor expanded in t around 0 98.5%
mul-1-neg98.5%
Simplified98.5%
Taylor expanded in y around 0 80.6%
exp-neg80.6%
associate-*l/80.6%
*-lft-identity80.6%
exp-sum80.6%
rem-exp-log80.6%
*-commutative80.6%
associate-/r*80.6%
*-commutative80.6%
associate-*r*70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around 0 35.4%
Taylor expanded in b around inf 32.4%
*-commutative32.4%
associate-*r*35.4%
*-commutative35.4%
Simplified35.4%
Final simplification32.3%
(FPCore (x y z t a b) :precision binary64 (if (<= x 1e+69) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 1e+69) {
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 (x <= 1d+69) 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 (x <= 1e+69) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 1e+69: tmp = (x / y) / a else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 1e+69) 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 (x <= 1e+69) tmp = (x / y) / a; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 1e+69], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 10^{+69}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if x < 1.0000000000000001e69Initial program 97.7%
Taylor expanded in t around 0 83.9%
mul-1-neg83.9%
Simplified83.9%
Taylor expanded in y around 0 60.2%
exp-neg60.3%
associate-*l/60.3%
*-lft-identity60.3%
exp-sum60.3%
rem-exp-log60.7%
*-commutative60.7%
associate-/r*61.4%
*-commutative61.4%
associate-*r*57.0%
*-commutative57.0%
Simplified57.0%
Taylor expanded in b around 0 24.5%
associate-/r*28.3%
Simplified28.3%
if 1.0000000000000001e69 < x Initial program 99.1%
Taylor expanded in t around 0 86.7%
mul-1-neg86.7%
Simplified86.7%
Taylor expanded in y around 0 56.6%
exp-neg56.6%
associate-*l/56.6%
*-lft-identity56.6%
exp-sum56.6%
rem-exp-log57.4%
*-commutative57.4%
associate-/r*59.2%
*-commutative59.2%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in b around 0 29.1%
Final simplification28.5%
(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.0%
Taylor expanded in t around 0 84.5%
mul-1-neg84.5%
Simplified84.5%
Taylor expanded in y around 0 59.5%
exp-neg59.5%
associate-*l/59.5%
*-lft-identity59.5%
exp-sum59.5%
rem-exp-log60.0%
*-commutative60.0%
associate-/r*61.0%
*-commutative61.0%
associate-*r*55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in b around 0 25.5%
Final simplification25.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023171
(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))