
(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 99.1%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= (+ t -1.0) -1.05)
(/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)
(if (<= (+ t -1.0) 5e+79)
(/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)
(/ (* x (pow a t)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t + -1.0) <= -1.05) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else if ((t + -1.0) <= 5e+79) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * 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 ((t + (-1.0d0)) <= (-1.05d0)) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else if ((t + (-1.0d0)) <= 5d+79) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * (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 ((t + -1.0) <= -1.05) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else if ((t + -1.0) <= 5e+79) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.pow(a, t)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t + -1.0) <= -1.05: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y elif (t + -1.0) <= 5e+79: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.pow(a, t)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(t + -1.0) <= -1.05) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); elseif (Float64(t + -1.0) <= 5e+79) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * (a ^ t)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t + -1.0) <= -1.05) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; elseif ((t + -1.0) <= 5e+79) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * (a ^ t)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t + -1.0), $MachinePrecision], -1.05], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[N[(t + -1.0), $MachinePrecision], 5e+79], 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[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -1.05:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{elif}\;t + -1 \leq 5 \cdot 10^{+79}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -1.05000000000000004Initial program 99.8%
Taylor expanded in y around 0 91.2%
if -1.05000000000000004 < (-.f64 t #s(literal 1 binary64)) < 5e79Initial program 98.5%
Taylor expanded in t around 0 98.5%
+-commutative98.5%
mul-1-neg98.5%
unsub-neg98.5%
Simplified98.5%
if 5e79 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
Taylor expanded in y around 0 94.0%
Taylor expanded in b around 0 94.0%
exp-prod94.0%
remove-double-neg94.0%
log-rec94.0%
mul-1-neg94.0%
exp-prod94.0%
associate-*r*94.0%
associate-*r*94.0%
exp-prod94.0%
mul-1-neg94.0%
log-rec94.0%
remove-double-neg94.0%
rem-exp-log94.0%
sub-neg94.0%
metadata-eval94.0%
+-commutative94.0%
Simplified94.0%
Taylor expanded in t around inf 94.0%
Final simplification96.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5.6e+59) (not (<= y 1.7e+162))) (/ (* 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 <= -5.6e+59) || !(y <= 1.7e+162)) {
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 <= (-5.6d+59)) .or. (.not. (y <= 1.7d+162))) 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 <= -5.6e+59) || !(y <= 1.7e+162)) {
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 <= -5.6e+59) or not (y <= 1.7e+162): 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 <= -5.6e+59) || !(y <= 1.7e+162)) 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 <= -5.6e+59) || ~((y <= 1.7e+162))) 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, -5.6e+59], N[Not[LessEqual[y, 1.7e+162]], $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 -5.6 \cdot 10^{+59} \lor \neg \left(y \leq 1.7 \cdot 10^{+162}\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 < -5.5999999999999996e59 or 1.70000000000000001e162 < y Initial program 100.0%
Taylor expanded in t around 0 96.6%
+-commutative96.6%
mul-1-neg96.6%
unsub-neg96.6%
Simplified96.6%
Taylor expanded in b around 0 93.2%
div-exp93.2%
*-commutative93.2%
exp-to-pow93.2%
rem-exp-log93.2%
Simplified93.2%
if -5.5999999999999996e59 < y < 1.70000000000000001e162Initial program 98.6%
Taylor expanded in y around 0 90.0%
Final simplification91.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -9.5e+32) (not (<= y 485.0))) (/ (* x (/ (pow z y) a)) y) (/ (* x (/ (pow a t) (* y (exp b)))) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.5e+32) || !(y <= 485.0)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * (pow(a, t) / (y * exp(b)))) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-9.5d+32)) .or. (.not. (y <= 485.0d0))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * ((a ** t) / (y * exp(b)))) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.5e+32) || !(y <= 485.0)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * (Math.pow(a, t) / (y * Math.exp(b)))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -9.5e+32) or not (y <= 485.0): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * (math.pow(a, t) / (y * math.exp(b)))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -9.5e+32) || !(y <= 485.0)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * Float64((a ^ t) / Float64(y * exp(b)))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -9.5e+32) || ~((y <= 485.0))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * ((a ^ t) / (y * exp(b)))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9.5e+32], N[Not[LessEqual[y, 485.0]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+32} \lor \neg \left(y \leq 485\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{y \cdot e^{b}}}{a}\\
\end{array}
\end{array}
if y < -9.50000000000000006e32 or 485 < y Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around 0 84.0%
div-exp84.0%
*-commutative84.0%
exp-to-pow84.0%
rem-exp-log84.0%
Simplified84.0%
if -9.50000000000000006e32 < y < 485Initial program 98.2%
associate-/l*97.6%
associate--l+97.6%
exp-sum95.2%
associate-/l*95.2%
*-commutative95.2%
exp-to-pow95.2%
exp-diff85.0%
*-commutative85.0%
exp-to-pow85.8%
sub-neg85.8%
metadata-eval85.8%
Simplified85.8%
associate-/l/85.8%
unpow-prod-up85.8%
associate-/l*84.3%
unpow-184.3%
Applied egg-rr84.3%
associate-/r*84.3%
associate-*r/84.3%
*-rgt-identity84.3%
associate-*r*78.8%
Simplified78.8%
Taylor expanded in y around 0 85.7%
*-un-lft-identity85.7%
times-frac88.0%
Applied egg-rr88.0%
associate-*l/88.0%
*-lft-identity88.0%
associate-/l*88.0%
Simplified88.0%
Final simplification86.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow a t))))
(if (<= t -0.059)
(/ t_1 (* y a))
(if (<= t 1.18e-5) (* x (/ (pow z y) (* a (* y (exp b))))) (/ t_1 y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * pow(a, t);
double tmp;
if (t <= -0.059) {
tmp = t_1 / (y * a);
} else if (t <= 1.18e-5) {
tmp = x * (pow(z, y) / (a * (y * exp(b))));
} else {
tmp = t_1 / 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) :: t_1
real(8) :: tmp
t_1 = x * (a ** t)
if (t <= (-0.059d0)) then
tmp = t_1 / (y * a)
else if (t <= 1.18d-5) then
tmp = x * ((z ** y) / (a * (y * exp(b))))
else
tmp = t_1 / y
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);
double tmp;
if (t <= -0.059) {
tmp = t_1 / (y * a);
} else if (t <= 1.18e-5) {
tmp = x * (Math.pow(z, y) / (a * (y * Math.exp(b))));
} else {
tmp = t_1 / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.pow(a, t) tmp = 0 if t <= -0.059: tmp = t_1 / (y * a) elif t <= 1.18e-5: tmp = x * (math.pow(z, y) / (a * (y * math.exp(b)))) else: tmp = t_1 / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * (a ^ t)) tmp = 0.0 if (t <= -0.059) tmp = Float64(t_1 / Float64(y * a)); elseif (t <= 1.18e-5) tmp = Float64(x * Float64((z ^ y) / Float64(a * Float64(y * exp(b))))); else tmp = Float64(t_1 / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (a ^ t); tmp = 0.0; if (t <= -0.059) tmp = t_1 / (y * a); elseif (t <= 1.18e-5) tmp = x * ((z ^ y) / (a * (y * exp(b)))); else tmp = t_1 / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -0.059], N[(t$95$1 / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e-5], N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {a}^{t}\\
\mathbf{if}\;t \leq -0.059:\\
\;\;\;\;\frac{t\_1}{y \cdot a}\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{y}\\
\end{array}
\end{array}
if t < -0.058999999999999997Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum68.3%
associate-/l*68.3%
*-commutative68.3%
exp-to-pow68.3%
exp-diff54.2%
*-commutative54.2%
exp-to-pow54.2%
sub-neg54.2%
metadata-eval54.2%
Simplified54.2%
associate-/l/54.2%
unpow-prod-up54.3%
associate-/l*54.3%
unpow-154.3%
Applied egg-rr54.3%
associate-/r*54.3%
associate-*r/54.3%
*-rgt-identity54.3%
associate-*r*54.3%
Simplified54.3%
Taylor expanded in y around 0 66.8%
Taylor expanded in b around 0 74.1%
*-commutative74.1%
Simplified74.1%
if -0.058999999999999997 < t < 1.18000000000000005e-5Initial program 98.4%
associate-/l*97.8%
associate--l+97.8%
exp-sum88.9%
associate-/l*84.4%
*-commutative84.4%
exp-to-pow84.4%
exp-diff84.4%
*-commutative84.4%
exp-to-pow85.2%
sub-neg85.2%
metadata-eval85.2%
Simplified85.2%
Taylor expanded in t around 0 85.3%
if 1.18000000000000005e-5 < t Initial program 100.0%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around 0 89.2%
exp-prod89.2%
remove-double-neg89.2%
log-rec89.2%
mul-1-neg89.2%
exp-prod89.2%
associate-*r*89.2%
associate-*r*89.2%
exp-prod89.2%
mul-1-neg89.2%
log-rec89.2%
remove-double-neg89.2%
rem-exp-log89.2%
sub-neg89.2%
metadata-eval89.2%
+-commutative89.2%
Simplified89.2%
Taylor expanded in t around inf 89.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))) (t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -1.46e+59)
t_2
(if (<= y -1.6e-71)
(/ x (* a t_1))
(if (<= y -1e-136)
(/ (* x (pow a t)) (* y a))
(if (<= y 13.2) (/ (/ x t_1) a) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -1.46e+59) {
tmp = t_2;
} else if (y <= -1.6e-71) {
tmp = x / (a * t_1);
} else if (y <= -1e-136) {
tmp = (x * pow(a, t)) / (y * a);
} else if (y <= 13.2) {
tmp = (x / t_1) / a;
} 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 = y * exp(b)
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-1.46d+59)) then
tmp = t_2
else if (y <= (-1.6d-71)) then
tmp = x / (a * t_1)
else if (y <= (-1d-136)) then
tmp = (x * (a ** t)) / (y * a)
else if (y <= 13.2d0) then
tmp = (x / t_1) / a
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 = y * Math.exp(b);
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -1.46e+59) {
tmp = t_2;
} else if (y <= -1.6e-71) {
tmp = x / (a * t_1);
} else if (y <= -1e-136) {
tmp = (x * Math.pow(a, t)) / (y * a);
} else if (y <= 13.2) {
tmp = (x / t_1) / a;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -1.46e+59: tmp = t_2 elif y <= -1.6e-71: tmp = x / (a * t_1) elif y <= -1e-136: tmp = (x * math.pow(a, t)) / (y * a) elif y <= 13.2: tmp = (x / t_1) / a else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -1.46e+59) tmp = t_2; elseif (y <= -1.6e-71) tmp = Float64(x / Float64(a * t_1)); elseif (y <= -1e-136) tmp = Float64(Float64(x * (a ^ t)) / Float64(y * a)); elseif (y <= 13.2) tmp = Float64(Float64(x / t_1) / a); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -1.46e+59) tmp = t_2; elseif (y <= -1.6e-71) tmp = x / (a * t_1); elseif (y <= -1e-136) tmp = (x * (a ^ t)) / (y * a); elseif (y <= 13.2) tmp = (x / t_1) / a; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.46e+59], t$95$2, If[LessEqual[y, -1.6e-71], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1e-136], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 13.2], N[(N[(x / t$95$1), $MachinePrecision] / a), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -1.46 \cdot 10^{+59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-71}:\\
\;\;\;\;\frac{x}{a \cdot t\_1}\\
\mathbf{elif}\;y \leq -1 \cdot 10^{-136}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y \cdot a}\\
\mathbf{elif}\;y \leq 13.2:\\
\;\;\;\;\frac{\frac{x}{t\_1}}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.45999999999999992e59 or 13.199999999999999 < y Initial program 100.0%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 85.4%
div-exp85.4%
*-commutative85.4%
exp-to-pow85.4%
rem-exp-log85.4%
Simplified85.4%
if -1.45999999999999992e59 < y < -1.5999999999999999e-71Initial program 98.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum78.2%
associate-/l*78.2%
*-commutative78.2%
exp-to-pow78.2%
exp-diff67.8%
*-commutative67.8%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in t around 0 76.0%
Taylor expanded in y around 0 76.4%
if -1.5999999999999999e-71 < y < -1e-136Initial program 99.4%
associate-/l*99.4%
associate--l+99.4%
exp-sum99.4%
associate-/l*99.4%
*-commutative99.4%
exp-to-pow99.4%
exp-diff53.9%
*-commutative53.9%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
Simplified54.5%
associate-/l/54.5%
unpow-prod-up54.5%
associate-/l*54.5%
unpow-154.5%
Applied egg-rr54.5%
associate-/r*54.5%
associate-*r/54.5%
*-rgt-identity54.5%
associate-*r*54.5%
Simplified54.5%
Taylor expanded in y around 0 54.5%
Taylor expanded in b around 0 100.0%
*-commutative100.0%
Simplified100.0%
if -1e-136 < y < 13.199999999999999Initial program 98.0%
associate-/l*97.2%
associate--l+97.2%
exp-sum97.2%
associate-/l*97.2%
*-commutative97.2%
exp-to-pow97.2%
exp-diff91.9%
*-commutative91.9%
exp-to-pow92.6%
sub-neg92.6%
metadata-eval92.6%
Simplified92.6%
associate-/l/92.6%
unpow-prod-up92.7%
associate-/l*90.6%
unpow-190.6%
Applied egg-rr90.6%
associate-/r*90.6%
associate-*r/90.6%
*-rgt-identity90.6%
associate-*r*83.3%
Simplified83.3%
Taylor expanded in y around 0 90.4%
*-un-lft-identity90.4%
times-frac93.4%
Applied egg-rr93.4%
associate-*l/93.4%
*-lft-identity93.4%
associate-/l*93.4%
Simplified93.4%
Taylor expanded in t around 0 81.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))) (t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -1.62e+59)
t_2
(if (<= y -9.2e-74)
(/ x (* a t_1))
(if (<= y -4.7e-136)
(/ (* x (pow a t)) y)
(if (<= y 3.2) (/ (/ x t_1) a) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -1.62e+59) {
tmp = t_2;
} else if (y <= -9.2e-74) {
tmp = x / (a * t_1);
} else if (y <= -4.7e-136) {
tmp = (x * pow(a, t)) / y;
} else if (y <= 3.2) {
tmp = (x / t_1) / a;
} 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 = y * exp(b)
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-1.62d+59)) then
tmp = t_2
else if (y <= (-9.2d-74)) then
tmp = x / (a * t_1)
else if (y <= (-4.7d-136)) then
tmp = (x * (a ** t)) / y
else if (y <= 3.2d0) then
tmp = (x / t_1) / a
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 = y * Math.exp(b);
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -1.62e+59) {
tmp = t_2;
} else if (y <= -9.2e-74) {
tmp = x / (a * t_1);
} else if (y <= -4.7e-136) {
tmp = (x * Math.pow(a, t)) / y;
} else if (y <= 3.2) {
tmp = (x / t_1) / a;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -1.62e+59: tmp = t_2 elif y <= -9.2e-74: tmp = x / (a * t_1) elif y <= -4.7e-136: tmp = (x * math.pow(a, t)) / y elif y <= 3.2: tmp = (x / t_1) / a else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -1.62e+59) tmp = t_2; elseif (y <= -9.2e-74) tmp = Float64(x / Float64(a * t_1)); elseif (y <= -4.7e-136) tmp = Float64(Float64(x * (a ^ t)) / y); elseif (y <= 3.2) tmp = Float64(Float64(x / t_1) / a); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -1.62e+59) tmp = t_2; elseif (y <= -9.2e-74) tmp = x / (a * t_1); elseif (y <= -4.7e-136) tmp = (x * (a ^ t)) / y; elseif (y <= 3.2) tmp = (x / t_1) / a; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.62e+59], t$95$2, If[LessEqual[y, -9.2e-74], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.7e-136], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 3.2], N[(N[(x / t$95$1), $MachinePrecision] / a), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -1.62 \cdot 10^{+59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{a \cdot t\_1}\\
\mathbf{elif}\;y \leq -4.7 \cdot 10^{-136}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{elif}\;y \leq 3.2:\\
\;\;\;\;\frac{\frac{x}{t\_1}}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.6200000000000001e59 or 3.2000000000000002 < y Initial program 100.0%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 85.4%
div-exp85.4%
*-commutative85.4%
exp-to-pow85.4%
rem-exp-log85.4%
Simplified85.4%
if -1.6200000000000001e59 < y < -9.19999999999999922e-74Initial program 98.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum78.2%
associate-/l*78.2%
*-commutative78.2%
exp-to-pow78.2%
exp-diff67.8%
*-commutative67.8%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in t around 0 76.0%
Taylor expanded in y around 0 76.4%
if -9.19999999999999922e-74 < y < -4.70000000000000022e-136Initial program 99.4%
Taylor expanded in y around 0 99.4%
Taylor expanded in b around 0 99.4%
exp-prod99.4%
remove-double-neg99.4%
log-rec99.4%
mul-1-neg99.4%
exp-prod99.4%
associate-*r*99.4%
associate-*r*99.4%
exp-prod99.4%
mul-1-neg99.4%
log-rec99.4%
remove-double-neg99.4%
rem-exp-log99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in t around inf 91.5%
if -4.70000000000000022e-136 < y < 3.2000000000000002Initial program 98.0%
associate-/l*97.2%
associate--l+97.2%
exp-sum97.2%
associate-/l*97.2%
*-commutative97.2%
exp-to-pow97.2%
exp-diff91.9%
*-commutative91.9%
exp-to-pow92.6%
sub-neg92.6%
metadata-eval92.6%
Simplified92.6%
associate-/l/92.6%
unpow-prod-up92.7%
associate-/l*90.6%
unpow-190.6%
Applied egg-rr90.6%
associate-/r*90.6%
associate-*r/90.6%
*-rgt-identity90.6%
associate-*r*83.3%
Simplified83.3%
Taylor expanded in y around 0 90.4%
*-un-lft-identity90.4%
times-frac93.4%
Applied egg-rr93.4%
associate-*l/93.4%
*-lft-identity93.4%
associate-/l*93.4%
Simplified93.4%
Taylor expanded in t around 0 81.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -34000.0) (/ (* x (exp (- b))) y) (if (<= b 2.7e-11) (* (/ x a) (/ (pow z y) y)) (/ (/ x (* y (exp b))) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -34000.0) {
tmp = (x * exp(-b)) / y;
} else if (b <= 2.7e-11) {
tmp = (x / a) * (pow(z, y) / y);
} else {
tmp = (x / (y * exp(b))) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-34000.0d0)) then
tmp = (x * exp(-b)) / y
else if (b <= 2.7d-11) then
tmp = (x / a) * ((z ** y) / y)
else
tmp = (x / (y * exp(b))) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -34000.0) {
tmp = (x * Math.exp(-b)) / y;
} else if (b <= 2.7e-11) {
tmp = (x / a) * (Math.pow(z, y) / y);
} else {
tmp = (x / (y * Math.exp(b))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -34000.0: tmp = (x * math.exp(-b)) / y elif b <= 2.7e-11: tmp = (x / a) * (math.pow(z, y) / y) else: tmp = (x / (y * math.exp(b))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -34000.0) tmp = Float64(Float64(x * exp(Float64(-b))) / y); elseif (b <= 2.7e-11) tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); else tmp = Float64(Float64(x / Float64(y * exp(b))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -34000.0) tmp = (x * exp(-b)) / y; elseif (b <= 2.7e-11) tmp = (x / a) * ((z ^ y) / y); else tmp = (x / (y * exp(b))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -34000.0], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.7e-11], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -34000:\\
\;\;\;\;\frac{x \cdot e^{-b}}{y}\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-11}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y \cdot e^{b}}}{a}\\
\end{array}
\end{array}
if b < -34000Initial program 100.0%
Taylor expanded in t around 0 88.3%
+-commutative88.3%
mul-1-neg88.3%
unsub-neg88.3%
Simplified88.3%
Taylor expanded in b around inf 78.3%
neg-mul-178.3%
Simplified78.3%
if -34000 < b < 2.70000000000000005e-11Initial program 98.3%
Taylor expanded in t around 0 78.3%
+-commutative78.3%
mul-1-neg78.3%
unsub-neg78.3%
Simplified78.3%
Taylor expanded in b around 0 78.2%
associate-/l*79.1%
div-exp79.1%
*-commutative79.1%
exp-to-pow79.1%
rem-exp-log79.9%
associate-/r*73.0%
associate-/l*73.0%
times-frac77.4%
Simplified77.4%
if 2.70000000000000005e-11 < b Initial program 99.8%
associate-/l*98.6%
associate--l+98.6%
exp-sum77.4%
associate-/l*77.4%
*-commutative77.4%
exp-to-pow77.4%
exp-diff65.3%
*-commutative65.3%
exp-to-pow65.3%
sub-neg65.3%
metadata-eval65.3%
Simplified65.3%
associate-/l/65.3%
unpow-prod-up65.3%
associate-/l*65.3%
unpow-165.3%
Applied egg-rr65.3%
associate-/r*65.3%
associate-*r/65.3%
*-rgt-identity65.3%
associate-*r*54.7%
Simplified54.7%
Taylor expanded in y around 0 73.0%
*-un-lft-identity73.0%
times-frac74.4%
Applied egg-rr74.4%
associate-*l/74.4%
*-lft-identity74.4%
associate-/l*74.4%
Simplified74.4%
Taylor expanded in t around 0 80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -60000000000.0) (not (<= t 3.4e-11))) (/ (* x (pow a t)) y) (/ (/ x (* y (exp b))) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -60000000000.0) || !(t <= 3.4e-11)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = (x / (y * exp(b))) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-60000000000.0d0)) .or. (.not. (t <= 3.4d-11))) then
tmp = (x * (a ** t)) / y
else
tmp = (x / (y * exp(b))) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -60000000000.0) || !(t <= 3.4e-11)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = (x / (y * Math.exp(b))) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -60000000000.0) or not (t <= 3.4e-11): tmp = (x * math.pow(a, t)) / y else: tmp = (x / (y * math.exp(b))) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -60000000000.0) || !(t <= 3.4e-11)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(Float64(x / Float64(y * exp(b))) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -60000000000.0) || ~((t <= 3.4e-11))) tmp = (x * (a ^ t)) / y; else tmp = (x / (y * exp(b))) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -60000000000.0], N[Not[LessEqual[t, 3.4e-11]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -60000000000 \lor \neg \left(t \leq 3.4 \cdot 10^{-11}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y \cdot e^{b}}}{a}\\
\end{array}
\end{array}
if t < -6e10 or 3.3999999999999999e-11 < t Initial program 100.0%
Taylor expanded in y around 0 88.5%
Taylor expanded in b around 0 81.1%
exp-prod81.1%
remove-double-neg81.1%
log-rec81.1%
mul-1-neg81.1%
exp-prod81.1%
associate-*r*81.1%
associate-*r*81.1%
exp-prod81.1%
mul-1-neg81.1%
log-rec81.1%
remove-double-neg81.1%
rem-exp-log81.1%
sub-neg81.1%
metadata-eval81.1%
+-commutative81.1%
Simplified81.1%
Taylor expanded in t around inf 81.1%
if -6e10 < t < 3.3999999999999999e-11Initial program 98.3%
associate-/l*97.7%
associate--l+97.7%
exp-sum88.2%
associate-/l*84.5%
*-commutative84.5%
exp-to-pow84.5%
exp-diff84.5%
*-commutative84.5%
exp-to-pow85.3%
sub-neg85.3%
metadata-eval85.3%
Simplified85.3%
associate-/l/85.3%
unpow-prod-up85.3%
associate-/l*85.3%
unpow-185.3%
Applied egg-rr85.3%
associate-/r*85.3%
associate-*r/85.3%
*-rgt-identity85.3%
associate-*r*80.9%
Simplified80.9%
Taylor expanded in y around 0 69.8%
*-un-lft-identity69.8%
times-frac69.1%
Applied egg-rr69.1%
associate-*l/69.2%
*-lft-identity69.2%
associate-/l*69.2%
Simplified69.2%
Taylor expanded in t around 0 69.9%
Final simplification75.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -20000000.0) (not (<= t 3.4e-11))) (/ (* x (pow a t)) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -20000000.0) || !(t <= 3.4e-11)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-20000000.0d0)) .or. (.not. (t <= 3.4d-11))) then
tmp = (x * (a ** t)) / y
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -20000000.0) || !(t <= 3.4e-11)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -20000000.0) or not (t <= 3.4e-11): tmp = (x * math.pow(a, t)) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -20000000.0) || !(t <= 3.4e-11)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -20000000.0) || ~((t <= 3.4e-11))) tmp = (x * (a ^ t)) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -20000000.0], N[Not[LessEqual[t, 3.4e-11]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -20000000 \lor \neg \left(t \leq 3.4 \cdot 10^{-11}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -2e7 or 3.3999999999999999e-11 < t Initial program 100.0%
Taylor expanded in y around 0 88.5%
Taylor expanded in b around 0 81.1%
exp-prod81.1%
remove-double-neg81.1%
log-rec81.1%
mul-1-neg81.1%
exp-prod81.1%
associate-*r*81.1%
associate-*r*81.1%
exp-prod81.1%
mul-1-neg81.1%
log-rec81.1%
remove-double-neg81.1%
rem-exp-log81.1%
sub-neg81.1%
metadata-eval81.1%
+-commutative81.1%
Simplified81.1%
Taylor expanded in t around inf 81.1%
if -2e7 < t < 3.3999999999999999e-11Initial program 98.3%
associate-/l*97.7%
associate--l+97.7%
exp-sum88.2%
associate-/l*84.5%
*-commutative84.5%
exp-to-pow84.5%
exp-diff84.5%
*-commutative84.5%
exp-to-pow85.3%
sub-neg85.3%
metadata-eval85.3%
Simplified85.3%
Taylor expanded in t around 0 84.7%
Taylor expanded in y around 0 69.9%
Final simplification75.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -65000000000.0) (not (<= t 5.8e+53))) (/ (* x (pow a t)) y) (/ (* x (exp (- b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -65000000000.0) || !(t <= 5.8e+53)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = (x * exp(-b)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-65000000000.0d0)) .or. (.not. (t <= 5.8d+53))) then
tmp = (x * (a ** t)) / y
else
tmp = (x * exp(-b)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -65000000000.0) || !(t <= 5.8e+53)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = (x * Math.exp(-b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -65000000000.0) or not (t <= 5.8e+53): tmp = (x * math.pow(a, t)) / y else: tmp = (x * math.exp(-b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -65000000000.0) || !(t <= 5.8e+53)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(Float64(x * exp(Float64(-b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -65000000000.0) || ~((t <= 5.8e+53))) tmp = (x * (a ^ t)) / y; else tmp = (x * exp(-b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -65000000000.0], N[Not[LessEqual[t, 5.8e+53]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -65000000000 \lor \neg \left(t \leq 5.8 \cdot 10^{+53}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{-b}}{y}\\
\end{array}
\end{array}
if t < -6.5e10 or 5.8000000000000004e53 < t Initial program 100.0%
Taylor expanded in y around 0 90.3%
Taylor expanded in b around 0 83.3%
exp-prod83.3%
remove-double-neg83.3%
log-rec83.3%
mul-1-neg83.3%
exp-prod83.3%
associate-*r*83.3%
associate-*r*83.3%
exp-prod83.3%
mul-1-neg83.3%
log-rec83.3%
remove-double-neg83.3%
rem-exp-log83.3%
sub-neg83.3%
metadata-eval83.3%
+-commutative83.3%
Simplified83.3%
Taylor expanded in t around inf 83.3%
if -6.5e10 < t < 5.8000000000000004e53Initial program 98.4%
Taylor expanded in t around 0 97.8%
+-commutative97.8%
mul-1-neg97.8%
unsub-neg97.8%
Simplified97.8%
Taylor expanded in b around inf 50.3%
neg-mul-150.3%
Simplified50.3%
Final simplification64.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.4e-5) (not (<= b 330.0))) (/ (* x (exp (- b))) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.4e-5) || !(b <= 330.0)) {
tmp = (x * exp(-b)) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-2.4d-5)) .or. (.not. (b <= 330.0d0))) then
tmp = (x * exp(-b)) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.4e-5) || !(b <= 330.0)) {
tmp = (x * Math.exp(-b)) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.4e-5) or not (b <= 330.0): tmp = (x * math.exp(-b)) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.4e-5) || !(b <= 330.0)) tmp = Float64(Float64(x * exp(Float64(-b))) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.4e-5) || ~((b <= 330.0))) tmp = (x * exp(-b)) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.4e-5], N[Not[LessEqual[b, 330.0]], $MachinePrecision]], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{-5} \lor \neg \left(b \leq 330\right):\\
\;\;\;\;\frac{x \cdot e^{-b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -2.4000000000000001e-5 or 330 < b Initial program 100.0%
Taylor expanded in t around 0 89.8%
+-commutative89.8%
mul-1-neg89.8%
unsub-neg89.8%
Simplified89.8%
Taylor expanded in b around inf 78.7%
neg-mul-178.7%
Simplified78.7%
if -2.4000000000000001e-5 < b < 330Initial program 98.2%
Taylor expanded in t around 0 77.5%
+-commutative77.5%
mul-1-neg77.5%
unsub-neg77.5%
Simplified77.5%
Taylor expanded in b around 0 76.8%
associate-/l*77.6%
div-exp77.6%
*-commutative77.6%
exp-to-pow77.6%
rem-exp-log78.4%
associate-/r*73.1%
associate-/l*73.1%
times-frac76.0%
Simplified76.0%
Taylor expanded in y around 0 38.4%
Final simplification58.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.5e+16) (/ (* x (+ 1.0 (* b (+ (* b (+ 0.5 (* b -0.16666666666666666))) -1.0)))) y) (* (/ x a) (/ 1.0 y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e+16) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else {
tmp = (x / a) * (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 (b <= (-2.5d+16)) then
tmp = (x * (1.0d0 + (b * ((b * (0.5d0 + (b * (-0.16666666666666666d0)))) + (-1.0d0))))) / y
else
tmp = (x / a) * (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 (b <= -2.5e+16) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else {
tmp = (x / a) * (1.0 / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.5e+16: tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y else: tmp = (x / a) * (1.0 / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.5e+16) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))) + -1.0)))) / y); else tmp = Float64(Float64(x / a) * Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.5e+16) tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y; else tmp = (x / a) * (1.0 / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.5e+16], N[(N[(x * N[(1.0 + N[(b * N[(N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{+16}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(b \cdot \left(0.5 + b \cdot -0.16666666666666666\right) + -1\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\end{array}
\end{array}
if b < -2.5e16Initial program 100.0%
Taylor expanded in t around 0 89.8%
+-commutative89.8%
mul-1-neg89.8%
unsub-neg89.8%
Simplified89.8%
Taylor expanded in b around inf 77.9%
neg-mul-177.9%
Simplified77.9%
Taylor expanded in b around 0 66.4%
if -2.5e16 < b Initial program 98.8%
Taylor expanded in t around 0 81.6%
+-commutative81.6%
mul-1-neg81.6%
unsub-neg81.6%
Simplified81.6%
Taylor expanded in b around 0 64.4%
associate-/l*64.0%
div-exp64.0%
*-commutative64.0%
exp-to-pow64.0%
rem-exp-log64.5%
associate-/r*58.4%
associate-/l*58.4%
times-frac62.3%
Simplified62.3%
Taylor expanded in y around 0 31.6%
Final simplification39.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.6e+15) (/ (* x (+ 1.0 (* b (+ (* b 0.5) -1.0)))) y) (* (/ x a) (/ 1.0 y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.6e+15) {
tmp = (x * (1.0 + (b * ((b * 0.5) + -1.0)))) / y;
} else {
tmp = (x / a) * (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 (b <= (-3.6d+15)) then
tmp = (x * (1.0d0 + (b * ((b * 0.5d0) + (-1.0d0))))) / y
else
tmp = (x / a) * (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 (b <= -3.6e+15) {
tmp = (x * (1.0 + (b * ((b * 0.5) + -1.0)))) / y;
} else {
tmp = (x / a) * (1.0 / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.6e+15: tmp = (x * (1.0 + (b * ((b * 0.5) + -1.0)))) / y else: tmp = (x / a) * (1.0 / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.6e+15) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(Float64(b * 0.5) + -1.0)))) / y); else tmp = Float64(Float64(x / a) * Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.6e+15) tmp = (x * (1.0 + (b * ((b * 0.5) + -1.0)))) / y; else tmp = (x / a) * (1.0 / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.6e+15], N[(N[(x * N[(1.0 + N[(b * N[(N[(b * 0.5), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+15}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(b \cdot 0.5 + -1\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\end{array}
\end{array}
if b < -3.6e15Initial program 100.0%
Taylor expanded in t around 0 89.8%
+-commutative89.8%
mul-1-neg89.8%
unsub-neg89.8%
Simplified89.8%
Taylor expanded in b around inf 77.9%
neg-mul-177.9%
Simplified77.9%
Taylor expanded in b around 0 53.5%
if -3.6e15 < b Initial program 98.8%
Taylor expanded in t around 0 81.6%
+-commutative81.6%
mul-1-neg81.6%
unsub-neg81.6%
Simplified81.6%
Taylor expanded in b around 0 64.4%
associate-/l*64.0%
div-exp64.0%
*-commutative64.0%
exp-to-pow64.0%
rem-exp-log64.5%
associate-/r*58.4%
associate-/l*58.4%
times-frac62.3%
Simplified62.3%
Taylor expanded in y around 0 31.6%
Final simplification36.6%
(FPCore (x y z t a b) :precision binary64 (if (<= x 4.8e+141) (* (/ x a) (/ 1.0 y)) (/ (* b (- (/ x b) x)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 4.8e+141) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = (b * ((x / b) - x)) / 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 (x <= 4.8d+141) then
tmp = (x / a) * (1.0d0 / y)
else
tmp = (b * ((x / b) - x)) / 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 (x <= 4.8e+141) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = (b * ((x / b) - x)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 4.8e+141: tmp = (x / a) * (1.0 / y) else: tmp = (b * ((x / b) - x)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 4.8e+141) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); else tmp = Float64(Float64(b * Float64(Float64(x / b) - x)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 4.8e+141) tmp = (x / a) * (1.0 / y); else tmp = (b * ((x / b) - x)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 4.8e+141], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(x / b), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.8 \cdot 10^{+141}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{b} - x\right)}{y}\\
\end{array}
\end{array}
if x < 4.79999999999999995e141Initial program 99.0%
Taylor expanded in t around 0 83.0%
+-commutative83.0%
mul-1-neg83.0%
unsub-neg83.0%
Simplified83.0%
Taylor expanded in b around 0 62.3%
associate-/l*61.9%
div-exp61.9%
*-commutative61.9%
exp-to-pow61.9%
rem-exp-log62.3%
associate-/r*56.4%
associate-/l*56.4%
times-frac60.4%
Simplified60.4%
Taylor expanded in y around 0 30.6%
if 4.79999999999999995e141 < x Initial program 99.7%
Taylor expanded in t around 0 86.7%
+-commutative86.7%
mul-1-neg86.7%
unsub-neg86.7%
Simplified86.7%
Taylor expanded in b around inf 49.2%
neg-mul-149.2%
Simplified49.2%
Taylor expanded in b around 0 21.9%
*-lft-identity21.9%
associate-*r*21.9%
distribute-rgt-out21.9%
mul-1-neg21.9%
unsub-neg21.9%
Simplified21.9%
Taylor expanded in b around inf 32.2%
neg-mul-132.2%
+-commutative32.2%
unsub-neg32.2%
Simplified32.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.4e+81) (* x (/ b (- y))) (* (/ x a) (/ 1.0 y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.4e+81) {
tmp = x * (b / -y);
} else {
tmp = (x / a) * (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 (b <= (-6.4d+81)) then
tmp = x * (b / -y)
else
tmp = (x / a) * (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 (b <= -6.4e+81) {
tmp = x * (b / -y);
} else {
tmp = (x / a) * (1.0 / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.4e+81: tmp = x * (b / -y) else: tmp = (x / a) * (1.0 / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.4e+81) tmp = Float64(x * Float64(b / Float64(-y))); else tmp = Float64(Float64(x / a) * Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.4e+81) tmp = x * (b / -y); else tmp = (x / a) * (1.0 / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.4e+81], N[(x * N[(b / (-y)), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.4 \cdot 10^{+81}:\\
\;\;\;\;x \cdot \frac{b}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\end{array}
\end{array}
if b < -6.4e81Initial program 100.0%
Taylor expanded in t around 0 91.3%
+-commutative91.3%
mul-1-neg91.3%
unsub-neg91.3%
Simplified91.3%
Taylor expanded in b around inf 80.3%
neg-mul-180.3%
Simplified80.3%
Taylor expanded in b around 0 35.6%
*-lft-identity35.6%
associate-*r*35.6%
distribute-rgt-out35.6%
mul-1-neg35.6%
unsub-neg35.6%
Simplified35.6%
Taylor expanded in b around inf 35.6%
*-commutative35.6%
associate-*r/35.6%
neg-mul-135.6%
distribute-lft-neg-in35.6%
associate-/l*39.8%
Simplified39.8%
if -6.4e81 < b Initial program 98.9%
Taylor expanded in t around 0 81.8%
+-commutative81.8%
mul-1-neg81.8%
unsub-neg81.8%
Simplified81.8%
Taylor expanded in b around 0 64.3%
associate-/l*63.4%
div-exp63.4%
*-commutative63.4%
exp-to-pow63.4%
rem-exp-log63.9%
associate-/r*57.8%
associate-/l*57.8%
times-frac62.4%
Simplified62.4%
Taylor expanded in y around 0 31.7%
Final simplification33.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.9e+88) (* x (/ b (- y))) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.9e+88) {
tmp = x * (b / -y);
} 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 (b <= (-2.9d+88)) then
tmp = x * (b / -y)
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 (b <= -2.9e+88) {
tmp = x * (b / -y);
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.9e+88: tmp = x * (b / -y) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.9e+88) tmp = Float64(x * Float64(b / Float64(-y))); 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 (b <= -2.9e+88) tmp = x * (b / -y); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.9e+88], N[(x * N[(b / (-y)), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{+88}:\\
\;\;\;\;x \cdot \frac{b}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -2.9e88Initial program 100.0%
Taylor expanded in t around 0 91.3%
+-commutative91.3%
mul-1-neg91.3%
unsub-neg91.3%
Simplified91.3%
Taylor expanded in b around inf 80.3%
neg-mul-180.3%
Simplified80.3%
Taylor expanded in b around 0 35.6%
*-lft-identity35.6%
associate-*r*35.6%
distribute-rgt-out35.6%
mul-1-neg35.6%
unsub-neg35.6%
Simplified35.6%
Taylor expanded in b around inf 35.6%
*-commutative35.6%
associate-*r/35.6%
neg-mul-135.6%
distribute-lft-neg-in35.6%
associate-/l*39.8%
Simplified39.8%
if -2.9e88 < b Initial program 98.9%
Taylor expanded in y around 0 75.8%
Taylor expanded in b around 0 60.1%
exp-prod60.1%
remove-double-neg60.1%
log-rec60.1%
mul-1-neg60.1%
exp-prod60.1%
associate-*r*60.1%
associate-*r*60.1%
exp-prod60.1%
mul-1-neg60.1%
log-rec60.1%
remove-double-neg60.1%
rem-exp-log60.5%
sub-neg60.5%
metadata-eval60.5%
+-commutative60.5%
Simplified60.5%
Taylor expanded in t around 0 31.7%
Final simplification33.1%
(FPCore (x y z t a b) :precision binary64 (if (<= a 5.5e+189) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5.5e+189) {
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 <= 5.5d+189) 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 <= 5.5e+189) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 5.5e+189: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 5.5e+189) 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 <= 5.5e+189) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5.5e+189], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5.5 \cdot 10^{+189}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 5.5e189Initial program 99.4%
Taylor expanded in y around 0 79.9%
Taylor expanded in b around 0 58.5%
exp-prod58.5%
remove-double-neg58.5%
log-rec58.5%
mul-1-neg58.5%
exp-prod58.5%
associate-*r*58.5%
associate-*r*58.5%
exp-prod58.5%
mul-1-neg58.5%
log-rec58.5%
remove-double-neg58.5%
rem-exp-log58.8%
sub-neg58.8%
metadata-eval58.8%
+-commutative58.8%
Simplified58.8%
Taylor expanded in t around 0 32.0%
if 5.5e189 < a Initial program 97.4%
Taylor expanded in t around 0 73.4%
+-commutative73.4%
mul-1-neg73.4%
unsub-neg73.4%
Simplified73.4%
Taylor expanded in b around 0 44.0%
associate-/l*46.1%
div-exp46.1%
*-commutative46.1%
exp-to-pow46.1%
rem-exp-log46.4%
associate-/r*31.4%
associate-/l*31.4%
times-frac41.5%
Simplified41.5%
Taylor expanded in y around 0 31.8%
Final simplification31.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 99.1%
Taylor expanded in t around 0 83.5%
+-commutative83.5%
mul-1-neg83.5%
unsub-neg83.5%
Simplified83.5%
Taylor expanded in b around 0 61.5%
associate-/l*61.1%
div-exp61.1%
*-commutative61.1%
exp-to-pow61.1%
rem-exp-log61.6%
associate-/r*54.9%
associate-/l*54.9%
times-frac59.5%
Simplified59.5%
Taylor expanded in y around 0 29.8%
Final simplification29.8%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 99.1%
Taylor expanded in t around 0 83.5%
+-commutative83.5%
mul-1-neg83.5%
unsub-neg83.5%
Simplified83.5%
Taylor expanded in b around inf 46.5%
neg-mul-146.5%
Simplified46.5%
Taylor expanded in b around 0 15.8%
(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 2024141
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))