
(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 20 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.8%
Final simplification98.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -2e+127) (not (<= (+ t -1.0) -1.0))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -2e+127) || !((t + -1.0) <= -1.0)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-2d+127)) .or. (.not. ((t + (-1.0d0)) <= (-1.0d0)))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -2e+127) || !((t + -1.0) <= -1.0)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -2e+127) or not ((t + -1.0) <= -1.0): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -2e+127) || !(Float64(t + -1.0) <= -1.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -2e+127) || ~(((t + -1.0) <= -1.0))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -2e+127], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], -1.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -2 \cdot 10^{+127} \lor \neg \left(t + -1 \leq -1\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t 1) < -1.99999999999999991e127 or -1 < (-.f64 t 1) Initial program 99.8%
Taylor expanded in y around 0 92.3%
if -1.99999999999999991e127 < (-.f64 t 1) < -1Initial program 98.1%
Taylor expanded in t around 0 96.2%
+-commutative96.2%
mul-1-neg96.2%
unsub-neg96.2%
Simplified96.2%
Final simplification94.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.9e+92) (not (<= y 3.3e+139))) (/ (* 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 <= -1.9e+92) || !(y <= 3.3e+139)) {
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 <= (-1.9d+92)) .or. (.not. (y <= 3.3d+139))) 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 <= -1.9e+92) || !(y <= 3.3e+139)) {
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 <= -1.9e+92) or not (y <= 3.3e+139): 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 <= -1.9e+92) || !(y <= 3.3e+139)) 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 <= -1.9e+92) || ~((y <= 3.3e+139))) 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, -1.9e+92], N[Not[LessEqual[y, 3.3e+139]], $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 -1.9 \cdot 10^{+92} \lor \neg \left(y \leq 3.3 \cdot 10^{+139}\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 < -1.9e92 or 3.3000000000000002e139 < y Initial program 100.0%
Taylor expanded in t around 0 91.1%
+-commutative91.1%
mul-1-neg91.1%
unsub-neg91.1%
Simplified91.1%
Taylor expanded in b around 0 88.5%
div-exp88.5%
*-commutative88.5%
exp-to-pow88.5%
rem-exp-log88.5%
Simplified88.5%
if -1.9e92 < y < 3.3000000000000002e139Initial program 98.2%
Taylor expanded in y around 0 90.2%
Final simplification89.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -6.2e+80)
t_1
(if (<= y 4e-150)
(/ x (* y (/ (exp b) (pow a (+ t -1.0)))))
(if (<= y 2.6e+77) (/ x (* a (* y (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) / a)) / y;
double tmp;
if (y <= -6.2e+80) {
tmp = t_1;
} else if (y <= 4e-150) {
tmp = x / (y * (exp(b) / pow(a, (t + -1.0))));
} else if (y <= 2.6e+77) {
tmp = x / (a * (y * 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) / a)) / y
if (y <= (-6.2d+80)) then
tmp = t_1
else if (y <= 4d-150) then
tmp = x / (y * (exp(b) / (a ** (t + (-1.0d0)))))
else if (y <= 2.6d+77) then
tmp = x / (a * (y * 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) / a)) / y;
double tmp;
if (y <= -6.2e+80) {
tmp = t_1;
} else if (y <= 4e-150) {
tmp = x / (y * (Math.exp(b) / Math.pow(a, (t + -1.0))));
} else if (y <= 2.6e+77) {
tmp = x / (a * (y * Math.exp(b)));
} 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 <= -6.2e+80: tmp = t_1 elif y <= 4e-150: tmp = x / (y * (math.exp(b) / math.pow(a, (t + -1.0)))) elif y <= 2.6e+77: tmp = x / (a * (y * 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) / a)) / y) tmp = 0.0 if (y <= -6.2e+80) tmp = t_1; elseif (y <= 4e-150) tmp = Float64(x / Float64(y * Float64(exp(b) / (a ^ Float64(t + -1.0))))); elseif (y <= 2.6e+77) tmp = Float64(x / Float64(a * Float64(y * 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) / a)) / y; tmp = 0.0; if (y <= -6.2e+80) tmp = t_1; elseif (y <= 4e-150) tmp = x / (y * (exp(b) / (a ^ (t + -1.0)))); elseif (y <= 2.6e+77) tmp = x / (a * (y * 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] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -6.2e+80], t$95$1, If[LessEqual[y, 4e-150], N[(x / N[(y * N[(N[Exp[b], $MachinePrecision] / N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+77], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-150}:\\
\;\;\;\;\frac{x}{y \cdot \frac{e^{b}}{{a}^{\left(t + -1\right)}}}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+77}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -6.19999999999999976e80 or 2.6000000000000002e77 < y Initial program 100.0%
Taylor expanded in t around 0 90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
Simplified90.5%
Taylor expanded in b around 0 85.2%
div-exp85.2%
*-commutative85.2%
exp-to-pow85.2%
rem-exp-log85.2%
Simplified85.2%
if -6.19999999999999976e80 < y < 4.00000000000000003e-150Initial program 97.7%
associate-/l*95.8%
associate--l+95.8%
exp-sum88.8%
associate-/r*88.8%
*-commutative88.8%
exp-to-pow88.8%
exp-diff80.0%
*-commutative80.0%
exp-to-pow80.8%
sub-neg80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 83.6%
exp-to-pow84.4%
sub-neg84.4%
metadata-eval84.4%
associate-*r/84.4%
Simplified84.4%
if 4.00000000000000003e-150 < y < 2.6000000000000002e77Initial program 99.0%
associate-*l/97.3%
*-commutative97.3%
+-commutative97.3%
associate--l+97.3%
exp-sum72.8%
*-commutative72.8%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
exp-diff65.1%
*-commutative65.1%
exp-to-pow65.3%
Simplified65.3%
Taylor expanded in t around 0 75.7%
times-frac69.6%
Simplified69.6%
Taylor expanded in y around 0 78.1%
Final simplification83.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -5.3e+38)
(* (/ x a) (/ (pow a t) y))
(if (<= t 5.2e+40)
(/ x (/ a (/ (pow z y) (* y (exp b)))))
(/ (* x (pow a (+ t -1.0))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.3e+38) {
tmp = (x / a) * (pow(a, t) / y);
} else if (t <= 5.2e+40) {
tmp = x / (a / (pow(z, y) / (y * exp(b))));
} else {
tmp = (x * pow(a, (t + -1.0))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-5.3d+38)) then
tmp = (x / a) * ((a ** t) / y)
else if (t <= 5.2d+40) then
tmp = x / (a / ((z ** y) / (y * exp(b))))
else
tmp = (x * (a ** (t + (-1.0d0)))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.3e+38) {
tmp = (x / a) * (Math.pow(a, t) / y);
} else if (t <= 5.2e+40) {
tmp = x / (a / (Math.pow(z, y) / (y * Math.exp(b))));
} else {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -5.3e+38: tmp = (x / a) * (math.pow(a, t) / y) elif t <= 5.2e+40: tmp = x / (a / (math.pow(z, y) / (y * math.exp(b)))) else: tmp = (x * math.pow(a, (t + -1.0))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -5.3e+38) tmp = Float64(Float64(x / a) * Float64((a ^ t) / y)); elseif (t <= 5.2e+40) tmp = Float64(x / Float64(a / Float64((z ^ y) / Float64(y * exp(b))))); else tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -5.3e+38) tmp = (x / a) * ((a ^ t) / y); elseif (t <= 5.2e+40) tmp = x / (a / ((z ^ y) / (y * exp(b)))); else tmp = (x * (a ^ (t + -1.0))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -5.3e+38], N[(N[(x / a), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+40], N[(x / N[(a / N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.3 \cdot 10^{+38}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+40}:\\
\;\;\;\;\frac{x}{\frac{a}{\frac{{z}^{y}}{y \cdot e^{b}}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if t < -5.30000000000000024e38Initial program 100.0%
Taylor expanded in y around 0 89.6%
div-exp68.6%
exp-to-pow68.6%
sub-neg68.6%
metadata-eval68.6%
Simplified68.6%
unpow-prod-up68.6%
unpow-168.6%
Applied egg-rr68.6%
Taylor expanded in b around 0 84.5%
times-frac84.5%
Simplified84.5%
if -5.30000000000000024e38 < t < 5.2000000000000001e40Initial program 97.7%
associate-/l*96.2%
associate--l+96.2%
exp-sum83.1%
associate-/r*83.1%
*-commutative83.1%
exp-to-pow83.1%
exp-diff81.6%
*-commutative81.6%
exp-to-pow82.7%
sub-neg82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in t around 0 82.3%
associate-/l*83.8%
Simplified83.8%
if 5.2000000000000001e40 < t Initial program 100.0%
Taylor expanded in y around 0 91.9%
Taylor expanded in b around 0 79.0%
*-commutative79.0%
exp-to-pow79.0%
sub-neg79.0%
metadata-eval79.0%
+-commutative79.0%
Simplified79.0%
Final simplification82.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ x a) (/ (pow z y) y))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -6.5e+154)
t_2
(if (<= b -5.4e+94)
t_1
(if (<= b -3200.0)
t_2
(if (<= b -3.5e-51)
t_1
(if (<= b 8.2e-189)
(* (/ x a) (/ (pow a t) y))
(if (<= b 14000000000.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) * (pow(z, y) / y);
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -6.5e+154) {
tmp = t_2;
} else if (b <= -5.4e+94) {
tmp = t_1;
} else if (b <= -3200.0) {
tmp = t_2;
} else if (b <= -3.5e-51) {
tmp = t_1;
} else if (b <= 8.2e-189) {
tmp = (x / a) * (pow(a, t) / y);
} else if (b <= 14000000000.0) {
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) * ((z ** y) / y)
t_2 = x / (a * (y * exp(b)))
if (b <= (-6.5d+154)) then
tmp = t_2
else if (b <= (-5.4d+94)) then
tmp = t_1
else if (b <= (-3200.0d0)) then
tmp = t_2
else if (b <= (-3.5d-51)) then
tmp = t_1
else if (b <= 8.2d-189) then
tmp = (x / a) * ((a ** t) / y)
else if (b <= 14000000000.0d0) 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 / a) * (Math.pow(z, y) / y);
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -6.5e+154) {
tmp = t_2;
} else if (b <= -5.4e+94) {
tmp = t_1;
} else if (b <= -3200.0) {
tmp = t_2;
} else if (b <= -3.5e-51) {
tmp = t_1;
} else if (b <= 8.2e-189) {
tmp = (x / a) * (Math.pow(a, t) / y);
} else if (b <= 14000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) * (math.pow(z, y) / y) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -6.5e+154: tmp = t_2 elif b <= -5.4e+94: tmp = t_1 elif b <= -3200.0: tmp = t_2 elif b <= -3.5e-51: tmp = t_1 elif b <= 8.2e-189: tmp = (x / a) * (math.pow(a, t) / y) elif b <= 14000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) * Float64((z ^ y) / y)) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -6.5e+154) tmp = t_2; elseif (b <= -5.4e+94) tmp = t_1; elseif (b <= -3200.0) tmp = t_2; elseif (b <= -3.5e-51) tmp = t_1; elseif (b <= 8.2e-189) tmp = Float64(Float64(x / a) * Float64((a ^ t) / y)); elseif (b <= 14000000000.0) 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) * ((z ^ y) / y); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -6.5e+154) tmp = t_2; elseif (b <= -5.4e+94) tmp = t_1; elseif (b <= -3200.0) tmp = t_2; elseif (b <= -3.5e-51) tmp = t_1; elseif (b <= 8.2e-189) tmp = (x / a) * ((a ^ t) / y); elseif (b <= 14000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+154], t$95$2, If[LessEqual[b, -5.4e+94], t$95$1, If[LessEqual[b, -3200.0], t$95$2, If[LessEqual[b, -3.5e-51], t$95$1, If[LessEqual[b, 8.2e-189], N[(N[(x / a), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 14000000000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5.4 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3200:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-189}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\
\mathbf{elif}\;b \leq 14000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -6.5000000000000005e154 or -5.4000000000000003e94 < b < -3200 or 1.4e10 < b Initial program 100.0%
associate-*l/84.1%
*-commutative84.1%
+-commutative84.1%
associate--l+84.1%
exp-sum57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
exp-diff44.9%
*-commutative44.9%
exp-to-pow44.9%
Simplified44.9%
Taylor expanded in t around 0 66.5%
times-frac55.2%
Simplified55.2%
Taylor expanded in y around 0 82.5%
if -6.5000000000000005e154 < b < -5.4000000000000003e94 or -3200 < b < -3.4999999999999997e-51 or 8.2000000000000006e-189 < b < 1.4e10Initial program 98.2%
associate-*l/90.3%
*-commutative90.3%
+-commutative90.3%
associate--l+90.3%
exp-sum76.5%
*-commutative76.5%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
exp-diff70.3%
*-commutative70.3%
exp-to-pow70.5%
Simplified70.5%
Taylor expanded in t around 0 69.6%
times-frac70.7%
Simplified70.7%
Taylor expanded in b around 0 76.7%
times-frac79.5%
Simplified79.5%
if -3.4999999999999997e-51 < b < 8.2000000000000006e-189Initial program 97.7%
Taylor expanded in y around 0 81.7%
div-exp81.7%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
Simplified82.8%
unpow-prod-up82.9%
unpow-182.9%
Applied egg-rr82.9%
Taylor expanded in b around 0 74.3%
times-frac74.1%
Simplified74.1%
Final simplification78.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -6.2e+154)
t_2
(if (<= b -5.2e-116)
t_1
(if (<= b 9.8e-191)
(* (/ x a) (/ (pow a t) y))
(if (<= b 1.7e+14) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / a)) / y;
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -5.2e-116) {
tmp = t_1;
} else if (b <= 9.8e-191) {
tmp = (x / a) * (pow(a, t) / y);
} else if (b <= 1.7e+14) {
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 * ((z ** y) / a)) / y
t_2 = x / (a * (y * exp(b)))
if (b <= (-6.2d+154)) then
tmp = t_2
else if (b <= (-5.2d-116)) then
tmp = t_1
else if (b <= 9.8d-191) then
tmp = (x / a) * ((a ** t) / y)
else if (b <= 1.7d+14) 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(z, y) / a)) / y;
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -5.2e-116) {
tmp = t_1;
} else if (b <= 9.8e-191) {
tmp = (x / a) * (Math.pow(a, t) / y);
} else if (b <= 1.7e+14) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -6.2e+154: tmp = t_2 elif b <= -5.2e-116: tmp = t_1 elif b <= 9.8e-191: tmp = (x / a) * (math.pow(a, t) / y) elif b <= 1.7e+14: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -6.2e+154) tmp = t_2; elseif (b <= -5.2e-116) tmp = t_1; elseif (b <= 9.8e-191) tmp = Float64(Float64(x / a) * Float64((a ^ t) / y)); elseif (b <= 1.7e+14) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / a)) / y; t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -6.2e+154) tmp = t_2; elseif (b <= -5.2e-116) tmp = t_1; elseif (b <= 9.8e-191) tmp = (x / a) * ((a ^ t) / y); elseif (b <= 1.7e+14) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e+154], t$95$2, If[LessEqual[b, -5.2e-116], t$95$1, If[LessEqual[b, 9.8e-191], N[(N[(x / a), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+14], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{-191}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -6.2000000000000003e154 or 1.7e14 < b Initial program 100.0%
associate-*l/82.6%
*-commutative82.6%
+-commutative82.6%
associate--l+82.6%
exp-sum55.4%
*-commutative55.4%
exp-to-pow55.4%
sub-neg55.4%
metadata-eval55.4%
exp-diff41.3%
*-commutative41.3%
exp-to-pow41.3%
Simplified41.3%
Taylor expanded in t around 0 65.3%
times-frac53.3%
Simplified53.3%
Taylor expanded in y around 0 84.0%
if -6.2000000000000003e154 < b < -5.2000000000000001e-116 or 9.7999999999999999e-191 < b < 1.7e14Initial program 98.5%
Taylor expanded in t around 0 84.7%
+-commutative84.7%
mul-1-neg84.7%
unsub-neg84.7%
Simplified84.7%
Taylor expanded in b around 0 78.4%
div-exp78.4%
*-commutative78.4%
exp-to-pow78.4%
rem-exp-log79.2%
Simplified79.2%
if -5.2000000000000001e-116 < b < 9.7999999999999999e-191Initial program 97.6%
Taylor expanded in y around 0 83.4%
div-exp83.4%
exp-to-pow84.4%
sub-neg84.4%
metadata-eval84.4%
Simplified84.4%
unpow-prod-up84.5%
unpow-184.5%
Applied egg-rr84.5%
Taylor expanded in b around 0 76.5%
times-frac73.8%
Simplified73.8%
Final simplification79.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -6.2e+154)
t_2
(if (<= b -4.5e-115)
t_1
(if (<= b 3.6e-190)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= b 110000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / a)) / y;
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -4.5e-115) {
tmp = t_1;
} else if (b <= 3.6e-190) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (b <= 110000000000.0) {
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 * ((z ** y) / a)) / y
t_2 = x / (a * (y * exp(b)))
if (b <= (-6.2d+154)) then
tmp = t_2
else if (b <= (-4.5d-115)) then
tmp = t_1
else if (b <= 3.6d-190) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (b <= 110000000000.0d0) 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(z, y) / a)) / y;
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -4.5e-115) {
tmp = t_1;
} else if (b <= 3.6e-190) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (b <= 110000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -6.2e+154: tmp = t_2 elif b <= -4.5e-115: tmp = t_1 elif b <= 3.6e-190: tmp = (x * math.pow(a, (t + -1.0))) / y elif b <= 110000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -6.2e+154) tmp = t_2; elseif (b <= -4.5e-115) tmp = t_1; elseif (b <= 3.6e-190) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (b <= 110000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / a)) / y; t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -6.2e+154) tmp = t_2; elseif (b <= -4.5e-115) tmp = t_1; elseif (b <= 3.6e-190) tmp = (x * (a ^ (t + -1.0))) / y; elseif (b <= 110000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e+154], t$95$2, If[LessEqual[b, -4.5e-115], t$95$1, If[LessEqual[b, 3.6e-190], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 110000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-190}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;b \leq 110000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -6.2000000000000003e154 or 1.1e11 < b Initial program 100.0%
associate-*l/82.6%
*-commutative82.6%
+-commutative82.6%
associate--l+82.6%
exp-sum55.4%
*-commutative55.4%
exp-to-pow55.4%
sub-neg55.4%
metadata-eval55.4%
exp-diff41.3%
*-commutative41.3%
exp-to-pow41.3%
Simplified41.3%
Taylor expanded in t around 0 65.3%
times-frac53.3%
Simplified53.3%
Taylor expanded in y around 0 84.0%
if -6.2000000000000003e154 < b < -4.50000000000000023e-115 or 3.60000000000000007e-190 < b < 1.1e11Initial program 98.5%
Taylor expanded in t around 0 84.7%
+-commutative84.7%
mul-1-neg84.7%
unsub-neg84.7%
Simplified84.7%
Taylor expanded in b around 0 78.4%
div-exp78.4%
*-commutative78.4%
exp-to-pow78.4%
rem-exp-log79.2%
Simplified79.2%
if -4.50000000000000023e-115 < b < 3.60000000000000007e-190Initial program 97.6%
Taylor expanded in y around 0 83.4%
Taylor expanded in b around 0 83.4%
*-commutative83.4%
exp-to-pow84.4%
sub-neg84.4%
metadata-eval84.4%
+-commutative84.4%
Simplified84.4%
Final simplification82.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (/ y (pow z y))) a)) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -6.2e+154)
t_2
(if (<= b -2.3e-49)
t_1
(if (<= b 1.8e-190)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= b 820000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (y / pow(z, y))) / a;
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -2.3e-49) {
tmp = t_1;
} else if (b <= 1.8e-190) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (b <= 820000000000.0) {
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 / (y / (z ** y))) / a
t_2 = x / (a * (y * exp(b)))
if (b <= (-6.2d+154)) then
tmp = t_2
else if (b <= (-2.3d-49)) then
tmp = t_1
else if (b <= 1.8d-190) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (b <= 820000000000.0d0) 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 / (y / Math.pow(z, y))) / a;
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -2.3e-49) {
tmp = t_1;
} else if (b <= 1.8e-190) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (b <= 820000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / (y / math.pow(z, y))) / a t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -6.2e+154: tmp = t_2 elif b <= -2.3e-49: tmp = t_1 elif b <= 1.8e-190: tmp = (x * math.pow(a, (t + -1.0))) / y elif b <= 820000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / Float64(y / (z ^ y))) / a) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -6.2e+154) tmp = t_2; elseif (b <= -2.3e-49) tmp = t_1; elseif (b <= 1.8e-190) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (b <= 820000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / (y / (z ^ y))) / a; t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -6.2e+154) tmp = t_2; elseif (b <= -2.3e-49) tmp = t_1; elseif (b <= 1.8e-190) tmp = (x * (a ^ (t + -1.0))) / y; elseif (b <= 820000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e+154], t$95$2, If[LessEqual[b, -2.3e-49], t$95$1, If[LessEqual[b, 1.8e-190], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 820000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{\frac{y}{{z}^{y}}}}{a}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-190}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;b \leq 820000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -6.2000000000000003e154 or 8.2e11 < b Initial program 100.0%
associate-*l/82.6%
*-commutative82.6%
+-commutative82.6%
associate--l+82.6%
exp-sum55.4%
*-commutative55.4%
exp-to-pow55.4%
sub-neg55.4%
metadata-eval55.4%
exp-diff41.3%
*-commutative41.3%
exp-to-pow41.3%
Simplified41.3%
Taylor expanded in t around 0 65.3%
times-frac53.3%
Simplified53.3%
Taylor expanded in y around 0 84.0%
if -6.2000000000000003e154 < b < -2.2999999999999999e-49 or 1.80000000000000003e-190 < b < 8.2e11Initial program 98.6%
associate-*l/89.7%
*-commutative89.7%
+-commutative89.7%
associate--l+89.7%
exp-sum74.8%
*-commutative74.8%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff68.6%
*-commutative68.6%
exp-to-pow68.8%
Simplified68.8%
Taylor expanded in t around 0 69.4%
times-frac69.0%
Simplified69.0%
Taylor expanded in b around 0 70.0%
times-frac70.8%
Simplified70.8%
associate-*l/80.6%
clear-num80.6%
un-div-inv80.6%
Applied egg-rr80.6%
if -2.2999999999999999e-49 < b < 1.80000000000000003e-190Initial program 97.7%
Taylor expanded in y around 0 82.6%
Taylor expanded in b around 0 82.6%
*-commutative82.6%
exp-to-pow83.7%
sub-neg83.7%
metadata-eval83.7%
+-commutative83.7%
Simplified83.7%
Final simplification82.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (/ y (pow z y))) a)) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -6.2e+154)
t_2
(if (<= b -3e-45)
t_1
(if (<= b 4.3e-190)
(/ (/ (* x (pow a t)) a) y)
(if (<= b 360000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (y / pow(z, y))) / a;
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -3e-45) {
tmp = t_1;
} else if (b <= 4.3e-190) {
tmp = ((x * pow(a, t)) / a) / y;
} else if (b <= 360000000000.0) {
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 / (y / (z ** y))) / a
t_2 = x / (a * (y * exp(b)))
if (b <= (-6.2d+154)) then
tmp = t_2
else if (b <= (-3d-45)) then
tmp = t_1
else if (b <= 4.3d-190) then
tmp = ((x * (a ** t)) / a) / y
else if (b <= 360000000000.0d0) 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 / (y / Math.pow(z, y))) / a;
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -6.2e+154) {
tmp = t_2;
} else if (b <= -3e-45) {
tmp = t_1;
} else if (b <= 4.3e-190) {
tmp = ((x * Math.pow(a, t)) / a) / y;
} else if (b <= 360000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / (y / math.pow(z, y))) / a t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -6.2e+154: tmp = t_2 elif b <= -3e-45: tmp = t_1 elif b <= 4.3e-190: tmp = ((x * math.pow(a, t)) / a) / y elif b <= 360000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / Float64(y / (z ^ y))) / a) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -6.2e+154) tmp = t_2; elseif (b <= -3e-45) tmp = t_1; elseif (b <= 4.3e-190) tmp = Float64(Float64(Float64(x * (a ^ t)) / a) / y); elseif (b <= 360000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / (y / (z ^ y))) / a; t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -6.2e+154) tmp = t_2; elseif (b <= -3e-45) tmp = t_1; elseif (b <= 4.3e-190) tmp = ((x * (a ^ t)) / a) / y; elseif (b <= 360000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e+154], t$95$2, If[LessEqual[b, -3e-45], t$95$1, If[LessEqual[b, 4.3e-190], N[(N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 360000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{\frac{y}{{z}^{y}}}}{a}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{-190}:\\
\;\;\;\;\frac{\frac{x \cdot {a}^{t}}{a}}{y}\\
\mathbf{elif}\;b \leq 360000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -6.2000000000000003e154 or 3.6e11 < b Initial program 100.0%
associate-*l/82.6%
*-commutative82.6%
+-commutative82.6%
associate--l+82.6%
exp-sum55.4%
*-commutative55.4%
exp-to-pow55.4%
sub-neg55.4%
metadata-eval55.4%
exp-diff41.3%
*-commutative41.3%
exp-to-pow41.3%
Simplified41.3%
Taylor expanded in t around 0 65.3%
times-frac53.3%
Simplified53.3%
Taylor expanded in y around 0 84.0%
if -6.2000000000000003e154 < b < -3.00000000000000011e-45 or 4.3e-190 < b < 3.6e11Initial program 98.6%
associate-*l/89.7%
*-commutative89.7%
+-commutative89.7%
associate--l+89.7%
exp-sum74.8%
*-commutative74.8%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff68.6%
*-commutative68.6%
exp-to-pow68.8%
Simplified68.8%
Taylor expanded in t around 0 69.4%
times-frac69.0%
Simplified69.0%
Taylor expanded in b around 0 70.0%
times-frac70.8%
Simplified70.8%
associate-*l/80.6%
clear-num80.6%
un-div-inv80.6%
Applied egg-rr80.6%
if -3.00000000000000011e-45 < b < 4.3e-190Initial program 97.7%
Taylor expanded in y around 0 82.6%
div-exp82.6%
exp-to-pow83.7%
sub-neg83.7%
metadata-eval83.7%
Simplified83.7%
unpow-prod-up83.8%
unpow-183.8%
Applied egg-rr83.8%
Taylor expanded in b around 0 83.8%
Final simplification82.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -0.00016) (not (<= b 7.0))) (/ x (* a (* y (exp b)))) (* (/ x a) (/ (pow a t) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -0.00016) || !(b <= 7.0)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x / a) * (pow(a, t) / 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.00016d0)) .or. (.not. (b <= 7.0d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x / a) * ((a ** t) / 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.00016) || !(b <= 7.0)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x / a) * (Math.pow(a, t) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -0.00016) or not (b <= 7.0): tmp = x / (a * (y * math.exp(b))) else: tmp = (x / a) * (math.pow(a, t) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -0.00016) || !(b <= 7.0)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x / a) * Float64((a ^ t) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -0.00016) || ~((b <= 7.0))) tmp = x / (a * (y * exp(b))); else tmp = (x / a) * ((a ^ t) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -0.00016], N[Not[LessEqual[b, 7.0]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.00016 \lor \neg \left(b \leq 7\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\
\end{array}
\end{array}
if b < -1.60000000000000013e-4 or 7 < b Initial program 99.9%
associate-*l/85.2%
*-commutative85.2%
+-commutative85.2%
associate--l+85.2%
exp-sum58.7%
*-commutative58.7%
exp-to-pow58.7%
sub-neg58.7%
metadata-eval58.7%
exp-diff43.8%
*-commutative43.8%
exp-to-pow43.8%
Simplified43.8%
Taylor expanded in t around 0 64.6%
times-frac55.5%
Simplified55.5%
Taylor expanded in y around 0 78.1%
if -1.60000000000000013e-4 < b < 7Initial program 97.7%
Taylor expanded in y around 0 74.1%
div-exp74.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
unpow-prod-up75.2%
unpow-175.2%
Applied egg-rr75.2%
Taylor expanded in b around 0 67.5%
times-frac68.5%
Simplified68.5%
Final simplification73.0%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.8%
associate-*l/86.0%
*-commutative86.0%
+-commutative86.0%
associate--l+86.0%
exp-sum67.7%
*-commutative67.7%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
exp-diff61.2%
*-commutative61.2%
exp-to-pow61.2%
Simplified61.2%
Taylor expanded in t around 0 65.0%
times-frac61.0%
Simplified61.0%
Taylor expanded in y around 0 59.2%
Final simplification59.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (- b)) (* y a))))
(if (<= b -1.05e-54)
t_1
(if (<= b -3.1e-124)
(/ (/ x a) y)
(if (<= b -1.9e-202) t_1 (/ x (* a (+ y (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * -b) / (y * a);
double tmp;
if (b <= -1.05e-54) {
tmp = t_1;
} else if (b <= -3.1e-124) {
tmp = (x / a) / y;
} else if (b <= -1.9e-202) {
tmp = t_1;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * -b) / (y * a)
if (b <= (-1.05d-54)) then
tmp = t_1
else if (b <= (-3.1d-124)) then
tmp = (x / a) / y
else if (b <= (-1.9d-202)) then
tmp = t_1
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * -b) / (y * a);
double tmp;
if (b <= -1.05e-54) {
tmp = t_1;
} else if (b <= -3.1e-124) {
tmp = (x / a) / y;
} else if (b <= -1.9e-202) {
tmp = t_1;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * -b) / (y * a) tmp = 0 if b <= -1.05e-54: tmp = t_1 elif b <= -3.1e-124: tmp = (x / a) / y elif b <= -1.9e-202: tmp = t_1 else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64(-b)) / Float64(y * a)) tmp = 0.0 if (b <= -1.05e-54) tmp = t_1; elseif (b <= -3.1e-124) tmp = Float64(Float64(x / a) / y); elseif (b <= -1.9e-202) tmp = t_1; else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * -b) / (y * a); tmp = 0.0; if (b <= -1.05e-54) tmp = t_1; elseif (b <= -3.1e-124) tmp = (x / a) / y; elseif (b <= -1.9e-202) tmp = t_1; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e-54], t$95$1, If[LessEqual[b, -3.1e-124], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1.9e-202], t$95$1, N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-124}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-202}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.05e-54 or -3.0999999999999998e-124 < b < -1.90000000000000007e-202Initial program 99.8%
associate-*l/92.4%
*-commutative92.4%
+-commutative92.4%
associate--l+92.4%
exp-sum68.3%
*-commutative68.3%
exp-to-pow68.3%
sub-neg68.3%
metadata-eval68.3%
exp-diff53.1%
*-commutative53.1%
exp-to-pow53.2%
Simplified53.2%
Taylor expanded in t around 0 64.8%
times-frac61.1%
Simplified61.1%
Taylor expanded in y around 0 63.4%
Taylor expanded in b around 0 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
times-frac47.9%
Simplified47.9%
Taylor expanded in b around inf 52.3%
associate-*r/52.3%
*-commutative52.3%
neg-mul-152.3%
distribute-rgt-neg-in52.3%
Simplified52.3%
if -1.05e-54 < b < -3.0999999999999998e-124Initial program 97.4%
Taylor expanded in y around 0 77.9%
Taylor expanded in b around 0 77.9%
*-commutative77.9%
exp-to-pow79.9%
sub-neg79.9%
metadata-eval79.9%
+-commutative79.9%
Simplified79.9%
Taylor expanded in t around 0 50.6%
if -1.90000000000000007e-202 < b Initial program 98.4%
associate-*l/82.5%
*-commutative82.5%
+-commutative82.5%
associate--l+82.5%
exp-sum65.2%
*-commutative65.2%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
exp-diff62.3%
*-commutative62.3%
exp-to-pow62.3%
Simplified62.3%
Taylor expanded in t around 0 66.6%
times-frac60.2%
Simplified60.2%
Taylor expanded in y around 0 60.4%
Taylor expanded in b around 0 38.8%
Final simplification43.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1e-71) (/ (- (* a (/ x a)) (* y (* x (/ b y)))) (* y a)) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1e-71) {
tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1d-71)) then
tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a)
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1e-71) {
tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1e-71: tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1e-71) tmp = Float64(Float64(Float64(a * Float64(x / a)) - Float64(y * Float64(x * Float64(b / y)))) / Float64(y * a)); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1e-71) tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1e-71], N[(N[(N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision] - N[(y * N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{-71}:\\
\;\;\;\;\frac{a \cdot \frac{x}{a} - y \cdot \left(x \cdot \frac{b}{y}\right)}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -9.9999999999999992e-72Initial program 99.9%
associate-*l/96.7%
*-commutative96.7%
+-commutative96.7%
associate--l+96.7%
exp-sum73.3%
*-commutative73.3%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
exp-diff54.5%
*-commutative54.5%
exp-to-pow54.7%
Simplified54.7%
Taylor expanded in t around 0 62.8%
times-frac62.6%
Simplified62.6%
Taylor expanded in y around 0 65.1%
Taylor expanded in b around 0 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
times-frac48.9%
Simplified48.9%
associate-/r*51.9%
associate-*l/47.5%
frac-sub51.9%
*-commutative51.9%
Applied egg-rr51.9%
*-commutative51.9%
associate-*r/51.9%
associate-/l*51.9%
associate-/r/59.3%
Simplified59.3%
if -9.9999999999999992e-72 < b Initial program 98.4%
associate-*l/82.5%
*-commutative82.5%
+-commutative82.5%
associate--l+82.5%
exp-sum65.8%
*-commutative65.8%
exp-to-pow66.6%
sub-neg66.6%
metadata-eval66.6%
exp-diff63.4%
*-commutative63.4%
exp-to-pow63.4%
Simplified63.4%
Taylor expanded in t around 0 65.8%
times-frac60.5%
Simplified60.5%
Taylor expanded in y around 0 57.2%
Taylor expanded in b around 0 38.9%
Final simplification44.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -9.6e-26) (not (<= y 3.6e+42))) (* (- b) (/ x (* y a))) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.6e-26) || !(y <= 3.6e+42)) {
tmp = -b * (x / (y * a));
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-9.6d-26)) .or. (.not. (y <= 3.6d+42))) then
tmp = -b * (x / (y * a))
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.6e-26) || !(y <= 3.6e+42)) {
tmp = -b * (x / (y * a));
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -9.6e-26) or not (y <= 3.6e+42): tmp = -b * (x / (y * a)) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -9.6e-26) || !(y <= 3.6e+42)) tmp = Float64(Float64(-b) * Float64(x / Float64(y * a))); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -9.6e-26) || ~((y <= 3.6e+42))) tmp = -b * (x / (y * a)); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9.6e-26], N[Not[LessEqual[y, 3.6e+42]], $MachinePrecision]], N[((-b) * N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.6 \cdot 10^{-26} \lor \neg \left(y \leq 3.6 \cdot 10^{+42}\right):\\
\;\;\;\;\left(-b\right) \cdot \frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if y < -9.6000000000000004e-26 or 3.6000000000000001e42 < y Initial program 100.0%
associate-*l/88.7%
*-commutative88.7%
+-commutative88.7%
associate--l+88.7%
exp-sum66.9%
*-commutative66.9%
exp-to-pow66.9%
sub-neg66.9%
metadata-eval66.9%
exp-diff53.2%
*-commutative53.2%
exp-to-pow53.2%
Simplified53.2%
Taylor expanded in t around 0 59.8%
times-frac55.8%
Simplified55.8%
Taylor expanded in y around 0 48.4%
Taylor expanded in b around 0 31.9%
+-commutative31.9%
mul-1-neg31.9%
unsub-neg31.9%
times-frac29.0%
Simplified29.0%
Taylor expanded in b around inf 36.9%
associate-*r/36.9%
*-commutative36.9%
neg-mul-136.9%
distribute-frac-neg36.9%
associate-/l*38.6%
associate-*l/34.0%
associate-/l/34.6%
associate-/r/33.9%
associate-/l/35.5%
distribute-rgt-neg-in35.5%
Simplified35.5%
if -9.6000000000000004e-26 < y < 3.6000000000000001e42Initial program 97.6%
Taylor expanded in y around 0 94.7%
Taylor expanded in b around 0 66.0%
*-commutative66.0%
exp-to-pow67.0%
sub-neg67.0%
metadata-eval67.0%
+-commutative67.0%
Simplified67.0%
Taylor expanded in t around 0 39.9%
Final simplification37.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.05e-54) (/ (* x (- b)) (* y a)) (if (<= b -1.22e-85) (/ (/ x a) y) (/ x (/ y (/ 1.0 a))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05e-54) {
tmp = (x * -b) / (y * a);
} else if (b <= -1.22e-85) {
tmp = (x / a) / y;
} else {
tmp = x / (y / (1.0 / 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 <= (-1.05d-54)) then
tmp = (x * -b) / (y * a)
else if (b <= (-1.22d-85)) then
tmp = (x / a) / y
else
tmp = x / (y / (1.0d0 / 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 <= -1.05e-54) {
tmp = (x * -b) / (y * a);
} else if (b <= -1.22e-85) {
tmp = (x / a) / y;
} else {
tmp = x / (y / (1.0 / a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.05e-54: tmp = (x * -b) / (y * a) elif b <= -1.22e-85: tmp = (x / a) / y else: tmp = x / (y / (1.0 / a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.05e-54) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= -1.22e-85) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y / Float64(1.0 / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.05e-54) tmp = (x * -b) / (y * a); elseif (b <= -1.22e-85) tmp = (x / a) / y; else tmp = x / (y / (1.0 / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.05e-54], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.22e-85], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y / N[(1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{-54}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq -1.22 \cdot 10^{-85}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{\frac{1}{a}}}\\
\end{array}
\end{array}
if b < -1.05e-54Initial program 99.9%
associate-*l/96.5%
*-commutative96.5%
+-commutative96.5%
associate--l+96.5%
exp-sum71.5%
*-commutative71.5%
exp-to-pow71.5%
sub-neg71.5%
metadata-eval71.5%
exp-diff51.5%
*-commutative51.5%
exp-to-pow51.6%
Simplified51.6%
Taylor expanded in t around 0 65.0%
times-frac61.7%
Simplified61.7%
Taylor expanded in y around 0 69.1%
Taylor expanded in b around 0 51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
times-frac50.2%
Simplified50.2%
Taylor expanded in b around inf 51.8%
associate-*r/51.8%
*-commutative51.8%
neg-mul-151.8%
distribute-rgt-neg-in51.8%
Simplified51.8%
if -1.05e-54 < b < -1.22000000000000006e-85Initial program 97.4%
Taylor expanded in y around 0 97.4%
Taylor expanded in b around 0 97.4%
*-commutative97.4%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 63.7%
if -1.22000000000000006e-85 < b Initial program 98.5%
associate-*l/82.2%
*-commutative82.2%
+-commutative82.2%
associate--l+82.2%
exp-sum65.2%
*-commutative65.2%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
exp-diff62.7%
*-commutative62.7%
exp-to-pow62.7%
Simplified62.7%
Taylor expanded in t around 0 66.6%
times-frac60.2%
Simplified60.2%
Taylor expanded in b around 0 53.3%
times-frac51.6%
Simplified51.6%
Taylor expanded in y around 0 32.2%
un-div-inv32.2%
div-inv32.2%
associate-/l*34.8%
Applied egg-rr34.8%
Final simplification39.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.2e-89) (/ (- (/ x a) (/ x (/ a b))) y) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e-89) {
tmp = ((x / a) - (x / (a / b))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.2d-89)) then
tmp = ((x / a) - (x / (a / b))) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e-89) {
tmp = ((x / a) - (x / (a / b))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.2e-89: tmp = ((x / a) - (x / (a / b))) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.2e-89) tmp = Float64(Float64(Float64(x / a) - Float64(x / Float64(a / b))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.2e-89) tmp = ((x / a) - (x / (a / b))) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.2e-89], N[(N[(N[(x / a), $MachinePrecision] - N[(x / N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{-89}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x}{\frac{a}{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.19999999999999998e-89Initial program 99.6%
associate-*l/96.6%
*-commutative96.6%
+-commutative96.6%
associate--l+96.6%
exp-sum74.6%
*-commutative74.6%
exp-to-pow74.8%
sub-neg74.8%
metadata-eval74.8%
exp-diff57.2%
*-commutative57.2%
exp-to-pow57.3%
Simplified57.3%
Taylor expanded in t around 0 60.8%
times-frac63.4%
Simplified63.4%
Taylor expanded in y around 0 61.5%
Taylor expanded in b around 0 46.2%
+-commutative46.2%
mul-1-neg46.2%
unsub-neg46.2%
times-frac46.3%
Simplified46.3%
associate-/r*51.9%
associate-*r/49.0%
sub-div49.0%
clear-num49.0%
associate-*l/47.6%
*-un-lft-identity47.6%
Applied egg-rr47.6%
if -3.19999999999999998e-89 < b Initial program 98.5%
associate-*l/82.2%
*-commutative82.2%
+-commutative82.2%
associate--l+82.2%
exp-sum65.2%
*-commutative65.2%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
exp-diff62.7%
*-commutative62.7%
exp-to-pow62.7%
Simplified62.7%
Taylor expanded in t around 0 66.6%
times-frac60.2%
Simplified60.2%
Taylor expanded in y around 0 58.3%
Taylor expanded in b around 0 39.7%
Final simplification41.8%
(FPCore (x y z t a b) :precision binary64 (if (<= a 500000000000.0) (/ 1.0 (* a (/ y x))) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 500000000000.0) {
tmp = 1.0 / (a * (y / x));
} 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 (a <= 500000000000.0d0) then
tmp = 1.0d0 / (a * (y / x))
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 (a <= 500000000000.0) {
tmp = 1.0 / (a * (y / x));
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 500000000000.0: tmp = 1.0 / (a * (y / x)) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 500000000000.0) tmp = Float64(1.0 / Float64(a * Float64(y / x))); 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 (a <= 500000000000.0) tmp = 1.0 / (a * (y / x)); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 500000000000.0], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 500000000000:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 5e11Initial program 99.3%
associate-*l/88.7%
*-commutative88.7%
+-commutative88.7%
associate--l+88.7%
exp-sum70.4%
*-commutative70.4%
exp-to-pow70.9%
sub-neg70.9%
metadata-eval70.9%
exp-diff64.6%
*-commutative64.6%
exp-to-pow64.7%
Simplified64.7%
Taylor expanded in t around 0 71.6%
times-frac63.3%
Simplified63.3%
Taylor expanded in b around 0 57.5%
times-frac52.0%
Simplified52.0%
Taylor expanded in y around 0 30.9%
associate-*l/30.8%
div-inv30.8%
clear-num31.5%
associate-/l/32.0%
Applied egg-rr32.0%
if 5e11 < a Initial program 98.2%
associate-*l/82.7%
*-commutative82.7%
+-commutative82.7%
associate--l+82.7%
exp-sum64.3%
*-commutative64.3%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
exp-diff57.0%
*-commutative57.0%
exp-to-pow57.0%
Simplified57.0%
Taylor expanded in t around 0 56.8%
times-frac58.2%
Simplified58.2%
Taylor expanded in y around 0 59.9%
Taylor expanded in b around 0 39.7%
Final simplification35.4%
(FPCore (x y z t a b) :precision binary64 (if (<= a 2.2e-77) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 2.2e-77) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 2.2d-77) then
tmp = (x / a) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 2.2e-77) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 2.2e-77: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 2.2e-77) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 2.2e-77) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 2.2e-77], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.2 \cdot 10^{-77}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 2.20000000000000007e-77Initial program 99.2%
Taylor expanded in y around 0 84.1%
Taylor expanded in b around 0 59.8%
*-commutative59.8%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
+-commutative60.4%
Simplified60.4%
Taylor expanded in t around 0 32.7%
if 2.20000000000000007e-77 < a Initial program 98.5%
associate-*l/83.8%
*-commutative83.8%
+-commutative83.8%
associate--l+83.8%
exp-sum66.8%
*-commutative66.8%
exp-to-pow67.3%
sub-neg67.3%
metadata-eval67.3%
exp-diff58.5%
*-commutative58.5%
exp-to-pow58.5%
Simplified58.5%
Taylor expanded in t around 0 59.2%
times-frac60.2%
Simplified60.2%
Taylor expanded in y around 0 59.2%
Taylor expanded in b around 0 36.5%
Final simplification34.9%
(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.8%
associate-*l/86.0%
*-commutative86.0%
+-commutative86.0%
associate--l+86.0%
exp-sum67.7%
*-commutative67.7%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
exp-diff61.2%
*-commutative61.2%
exp-to-pow61.2%
Simplified61.2%
Taylor expanded in t around 0 65.0%
times-frac61.0%
Simplified61.0%
Taylor expanded in y around 0 59.2%
Taylor expanded in b around 0 32.6%
Final simplification32.6%
(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 2024021
(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))