
(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 24 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.3%
Final simplification98.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -9.5e+26) (not (<= t 5.9e+84))) (/ (* 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 <= -9.5e+26) || !(t <= 5.9e+84)) {
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 <= (-9.5d+26)) .or. (.not. (t <= 5.9d+84))) 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 <= -9.5e+26) || !(t <= 5.9e+84)) {
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 <= -9.5e+26) or not (t <= 5.9e+84): 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 ((t <= -9.5e+26) || !(t <= 5.9e+84)) 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 <= -9.5e+26) || ~((t <= 5.9e+84))) 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[t, -9.5e+26], N[Not[LessEqual[t, 5.9e+84]], $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 \leq -9.5 \cdot 10^{+26} \lor \neg \left(t \leq 5.9 \cdot 10^{+84}\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 t < -9.50000000000000054e26 or 5.89999999999999984e84 < t Initial program 100.0%
Taylor expanded in y around 0 93.9%
if -9.50000000000000054e26 < t < 5.89999999999999984e84Initial program 96.9%
Taylor expanded in t around 0 95.2%
+-commutative95.2%
mul-1-neg95.2%
unsub-neg95.2%
Simplified95.2%
Final simplification94.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5.4e+132) (not (<= y 5.8e+57))) (/ (/ (* 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.4e+132) || !(y <= 5.8e+57)) {
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.4d+132)) .or. (.not. (y <= 5.8d+57))) 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.4e+132) || !(y <= 5.8e+57)) {
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.4e+132) or not (y <= 5.8e+57): 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.4e+132) || !(y <= 5.8e+57)) tmp = Float64(Float64(Float64(x * (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.4e+132) || ~((y <= 5.8e+57))) 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.4e+132], N[Not[LessEqual[y, 5.8e+57]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $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.4 \cdot 10^{+132} \lor \neg \left(y \leq 5.8 \cdot 10^{+57}\right):\\
\;\;\;\;\frac{\frac{x \cdot {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.3999999999999999e132 or 5.8000000000000003e57 < y Initial program 100.0%
Taylor expanded in b around 0 94.2%
exp-sum73.0%
*-commutative73.0%
exp-to-pow73.0%
exp-to-pow73.0%
sub-neg73.0%
metadata-eval73.0%
Simplified73.0%
Taylor expanded in t around 0 88.4%
if -5.3999999999999999e132 < y < 5.8000000000000003e57Initial program 97.4%
Taylor expanded in y around 0 91.3%
Final simplification90.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.4) (not (<= y 36000.0))) (/ (/ (* x (pow z y)) a) y) (/ (* x (/ (/ (pow a t) a) (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.4) || !(y <= 36000.0)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = (x * ((pow(a, t) / a) / exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.4d0)) .or. (.not. (y <= 36000.0d0))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = (x * (((a ** t) / a) / exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.4) || !(y <= 36000.0)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = (x * ((Math.pow(a, t) / a) / Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.4) or not (y <= 36000.0): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = (x * ((math.pow(a, t) / a) / math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.4) || !(y <= 36000.0)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(Float64(x * Float64(Float64((a ^ t) / a) / exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.4) || ~((y <= 36000.0))) tmp = ((x * (z ^ y)) / a) / y; else tmp = (x * (((a ^ t) / a) / exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.4], N[Not[LessEqual[y, 36000.0]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \lor \neg \left(y \leq 36000\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{\frac{{a}^{t}}{a}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -1.3999999999999999 or 36000 < y Initial program 99.9%
Taylor expanded in b around 0 90.0%
exp-sum69.1%
*-commutative69.1%
exp-to-pow69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in t around 0 80.3%
if -1.3999999999999999 < y < 36000Initial program 96.9%
Taylor expanded in y around 0 96.8%
div-exp85.0%
exp-to-pow85.9%
sub-neg85.9%
metadata-eval85.9%
Simplified85.9%
unpow-prod-up85.9%
unpow-185.9%
Applied egg-rr85.9%
associate-*r/85.9%
*-rgt-identity85.9%
Simplified85.9%
Final simplification83.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow a (+ t -1.0))) y)))
(if (<= t -5.5e+24)
t_1
(if (<= t 4.1e-162)
(* (/ x a) (/ (pow z y) (* y (exp b))))
(if (<= t 7.8e-105)
(/ (/ (* x (pow z y)) a) y)
(if (<= t 1.65e+28) (/ (/ x (* a (exp b))) y) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(a, (t + -1.0))) / y;
double tmp;
if (t <= -5.5e+24) {
tmp = t_1;
} else if (t <= 4.1e-162) {
tmp = (x / a) * (pow(z, y) / (y * exp(b)));
} else if (t <= 7.8e-105) {
tmp = ((x * pow(z, y)) / a) / y;
} else if (t <= 1.65e+28) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * (a ** (t + (-1.0d0)))) / y
if (t <= (-5.5d+24)) then
tmp = t_1
else if (t <= 4.1d-162) then
tmp = (x / a) * ((z ** y) / (y * exp(b)))
else if (t <= 7.8d-105) then
tmp = ((x * (z ** y)) / a) / y
else if (t <= 1.65d+28) then
tmp = (x / (a * exp(b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * Math.pow(a, (t + -1.0))) / y;
double tmp;
if (t <= -5.5e+24) {
tmp = t_1;
} else if (t <= 4.1e-162) {
tmp = (x / a) * (Math.pow(z, y) / (y * Math.exp(b)));
} else if (t <= 7.8e-105) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else if (t <= 1.65e+28) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(a, (t + -1.0))) / y tmp = 0 if t <= -5.5e+24: tmp = t_1 elif t <= 4.1e-162: tmp = (x / a) * (math.pow(z, y) / (y * math.exp(b))) elif t <= 7.8e-105: tmp = ((x * math.pow(z, y)) / a) / y elif t <= 1.65e+28: tmp = (x / (a * math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) tmp = 0.0 if (t <= -5.5e+24) tmp = t_1; elseif (t <= 4.1e-162) tmp = Float64(Float64(x / a) * Float64((z ^ y) / Float64(y * exp(b)))); elseif (t <= 7.8e-105) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); elseif (t <= 1.65e+28) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (a ^ (t + -1.0))) / y; tmp = 0.0; if (t <= -5.5e+24) tmp = t_1; elseif (t <= 4.1e-162) tmp = (x / a) * ((z ^ y) / (y * exp(b))); elseif (t <= 7.8e-105) tmp = ((x * (z ^ y)) / a) / y; elseif (t <= 1.65e+28) tmp = (x / (a * exp(b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -5.5e+24], t$95$1, If[LessEqual[t, 4.1e-162], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.8e-105], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 1.65e+28], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{-162}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-105}:\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+28}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.5000000000000002e24 or 1.65e28 < t Initial program 100.0%
Taylor expanded in y around 0 92.1%
Taylor expanded in b around 0 86.5%
exp-to-pow86.5%
sub-neg86.5%
metadata-eval86.5%
+-commutative86.5%
Simplified86.5%
if -5.5000000000000002e24 < t < 4.10000000000000019e-162Initial program 96.8%
associate-/l*96.8%
associate--l+96.8%
exp-sum80.9%
associate-/l*80.9%
*-commutative80.9%
exp-to-pow80.9%
exp-diff79.8%
*-commutative79.8%
exp-to-pow81.0%
sub-neg81.0%
metadata-eval81.0%
Simplified81.0%
Taylor expanded in t around 0 84.2%
times-frac78.8%
Simplified78.8%
if 4.10000000000000019e-162 < t < 7.8e-105Initial program 100.0%
Taylor expanded in b around 0 89.1%
exp-sum89.1%
*-commutative89.1%
exp-to-pow89.1%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in t around 0 89.1%
if 7.8e-105 < t < 1.65e28Initial program 93.1%
Taylor expanded in y around 0 87.4%
div-exp87.4%
exp-to-pow88.6%
sub-neg88.6%
metadata-eval88.6%
Simplified88.6%
Taylor expanded in t around 0 90.5%
Final simplification84.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ (* x (pow z y)) a) y))
(t_2 (/ (* x (pow a (+ t -1.0))) y))
(t_3 (/ x (* (exp b) (* y a)))))
(if (<= t -3.9e+24)
t_2
(if (<= t -2.8e-235)
t_1
(if (<= t 1.25e-303)
t_3
(if (<= t 6.5e-237)
t_1
(if (<= t 2.1e-162)
t_3
(if (<= t 3.2e-106)
t_1
(if (<= t 1.82e+28) (/ (/ x (* a (exp b))) y) 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 * pow(a, (t + -1.0))) / y;
double t_3 = x / (exp(b) * (y * a));
double tmp;
if (t <= -3.9e+24) {
tmp = t_2;
} else if (t <= -2.8e-235) {
tmp = t_1;
} else if (t <= 1.25e-303) {
tmp = t_3;
} else if (t <= 6.5e-237) {
tmp = t_1;
} else if (t <= 2.1e-162) {
tmp = t_3;
} else if (t <= 3.2e-106) {
tmp = t_1;
} else if (t <= 1.82e+28) {
tmp = (x / (a * exp(b))) / 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) :: t_3
real(8) :: tmp
t_1 = ((x * (z ** y)) / a) / y
t_2 = (x * (a ** (t + (-1.0d0)))) / y
t_3 = x / (exp(b) * (y * a))
if (t <= (-3.9d+24)) then
tmp = t_2
else if (t <= (-2.8d-235)) then
tmp = t_1
else if (t <= 1.25d-303) then
tmp = t_3
else if (t <= 6.5d-237) then
tmp = t_1
else if (t <= 2.1d-162) then
tmp = t_3
else if (t <= 3.2d-106) then
tmp = t_1
else if (t <= 1.82d+28) then
tmp = (x / (a * exp(b))) / 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 = ((x * Math.pow(z, y)) / a) / y;
double t_2 = (x * Math.pow(a, (t + -1.0))) / y;
double t_3 = x / (Math.exp(b) * (y * a));
double tmp;
if (t <= -3.9e+24) {
tmp = t_2;
} else if (t <= -2.8e-235) {
tmp = t_1;
} else if (t <= 1.25e-303) {
tmp = t_3;
} else if (t <= 6.5e-237) {
tmp = t_1;
} else if (t <= 2.1e-162) {
tmp = t_3;
} else if (t <= 3.2e-106) {
tmp = t_1;
} else if (t <= 1.82e+28) {
tmp = (x / (a * Math.exp(b))) / y;
} 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 * math.pow(a, (t + -1.0))) / y t_3 = x / (math.exp(b) * (y * a)) tmp = 0 if t <= -3.9e+24: tmp = t_2 elif t <= -2.8e-235: tmp = t_1 elif t <= 1.25e-303: tmp = t_3 elif t <= 6.5e-237: tmp = t_1 elif t <= 2.1e-162: tmp = t_3 elif t <= 3.2e-106: tmp = t_1 elif t <= 1.82e+28: tmp = (x / (a * math.exp(b))) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x * (z ^ y)) / a) / y) t_2 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) t_3 = Float64(x / Float64(exp(b) * Float64(y * a))) tmp = 0.0 if (t <= -3.9e+24) tmp = t_2; elseif (t <= -2.8e-235) tmp = t_1; elseif (t <= 1.25e-303) tmp = t_3; elseif (t <= 6.5e-237) tmp = t_1; elseif (t <= 2.1e-162) tmp = t_3; elseif (t <= 3.2e-106) tmp = t_1; elseif (t <= 1.82e+28) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); 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 ^ (t + -1.0))) / y; t_3 = x / (exp(b) * (y * a)); tmp = 0.0; if (t <= -3.9e+24) tmp = t_2; elseif (t <= -2.8e-235) tmp = t_1; elseif (t <= 1.25e-303) tmp = t_3; elseif (t <= 6.5e-237) tmp = t_1; elseif (t <= 2.1e-162) tmp = t_3; elseif (t <= 3.2e-106) tmp = t_1; elseif (t <= 1.82e+28) tmp = (x / (a * exp(b))) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$3 = N[(x / N[(N[Exp[b], $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.9e+24], t$95$2, If[LessEqual[t, -2.8e-235], t$95$1, If[LessEqual[t, 1.25e-303], t$95$3, If[LessEqual[t, 6.5e-237], t$95$1, If[LessEqual[t, 2.1e-162], t$95$3, If[LessEqual[t, 3.2e-106], t$95$1, If[LessEqual[t, 1.82e+28], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
t_2 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
t_3 := \frac{x}{e^{b} \cdot \left(y \cdot a\right)}\\
\mathbf{if}\;t \leq -3.9 \cdot 10^{+24}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-235}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-303}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-162}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.82 \cdot 10^{+28}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -3.8999999999999998e24 or 1.82000000000000001e28 < t Initial program 100.0%
Taylor expanded in y around 0 92.1%
Taylor expanded in b around 0 86.5%
exp-to-pow86.5%
sub-neg86.5%
metadata-eval86.5%
+-commutative86.5%
Simplified86.5%
if -3.8999999999999998e24 < t < -2.79999999999999995e-235 or 1.25e-303 < t < 6.5000000000000001e-237 or 2.1e-162 < t < 3.2e-106Initial program 97.8%
Taylor expanded in b around 0 80.1%
exp-sum77.5%
*-commutative77.5%
exp-to-pow77.5%
exp-to-pow78.4%
sub-neg78.4%
metadata-eval78.4%
Simplified78.4%
Taylor expanded in t around 0 81.0%
if -2.79999999999999995e-235 < t < 1.25e-303 or 6.5000000000000001e-237 < t < 2.1e-162Initial program 96.3%
associate-/l*98.6%
associate--l+98.6%
exp-sum90.0%
associate-/l*90.0%
*-commutative90.0%
exp-to-pow90.0%
exp-diff90.0%
*-commutative90.0%
exp-to-pow91.3%
sub-neg91.3%
metadata-eval91.3%
Simplified91.3%
Taylor expanded in t around 0 91.4%
times-frac80.1%
Simplified80.1%
Taylor expanded in y around 0 89.0%
associate-*r*89.0%
Simplified89.0%
if 3.2e-106 < t < 1.82000000000000001e28Initial program 93.1%
Taylor expanded in y around 0 87.4%
div-exp87.4%
exp-to-pow88.6%
sub-neg88.6%
metadata-eval88.6%
Simplified88.6%
Taylor expanded in t around 0 90.5%
Final simplification85.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.38e+25) (not (<= t 3.2e+28))) (/ (* x (pow a (+ t -1.0))) y) (/ (/ x (* a (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.38e+25) || !(t <= 3.2e+28)) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else {
tmp = (x / (a * exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.38d+25)) .or. (.not. (t <= 3.2d+28))) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else
tmp = (x / (a * exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.38e+25) || !(t <= 3.2e+28)) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else {
tmp = (x / (a * Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.38e+25) or not (t <= 3.2e+28): tmp = (x * math.pow(a, (t + -1.0))) / y else: tmp = (x / (a * math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.38e+25) || !(t <= 3.2e+28)) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); else tmp = Float64(Float64(x / Float64(a * exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.38e+25) || ~((t <= 3.2e+28))) tmp = (x * (a ^ (t + -1.0))) / y; else tmp = (x / (a * exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.38e+25], N[Not[LessEqual[t, 3.2e+28]], $MachinePrecision]], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.38 \cdot 10^{+25} \lor \neg \left(t \leq 3.2 \cdot 10^{+28}\right):\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if t < -1.3800000000000001e25 or 3.2e28 < t Initial program 100.0%
Taylor expanded in y around 0 92.1%
Taylor expanded in b around 0 86.5%
exp-to-pow86.5%
sub-neg86.5%
metadata-eval86.5%
+-commutative86.5%
Simplified86.5%
if -1.3800000000000001e25 < t < 3.2e28Initial program 96.7%
Taylor expanded in y around 0 67.9%
div-exp67.1%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
Simplified68.1%
Taylor expanded in t around 0 69.1%
Final simplification77.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= y -1.75e+218) (not (<= y 4.4e+99)))
(/
(/ x (+ a (* b (+ a (* b (+ (* 0.16666666666666666 (* a b)) (* a 0.5)))))))
y)
(/ x (* (exp b) (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.75e+218) || !(y <= 4.4e+99)) {
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y;
} else {
tmp = x / (exp(b) * (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.75d+218)) .or. (.not. (y <= 4.4d+99))) then
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666d0 * (a * b)) + (a * 0.5d0))))))) / y
else
tmp = x / (exp(b) * (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.75e+218) || !(y <= 4.4e+99)) {
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y;
} else {
tmp = x / (Math.exp(b) * (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.75e+218) or not (y <= 4.4e+99): tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y else: tmp = x / (math.exp(b) * (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.75e+218) || !(y <= 4.4e+99)) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(0.16666666666666666 * Float64(a * b)) + Float64(a * 0.5))))))) / y); else tmp = Float64(x / Float64(exp(b) * Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.75e+218) || ~((y <= 4.4e+99))) tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y; else tmp = x / (exp(b) * (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.75e+218], N[Not[LessEqual[y, 4.4e+99]], $MachinePrecision]], N[(N[(x / N[(a + N[(b * N[(a + N[(b * N[(N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(N[Exp[b], $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{+218} \lor \neg \left(y \leq 4.4 \cdot 10^{+99}\right):\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{e^{b} \cdot \left(y \cdot a\right)}\\
\end{array}
\end{array}
if y < -1.7500000000000001e218 or 4.39999999999999956e99 < y Initial program 100.0%
Taylor expanded in y around 0 59.6%
div-exp50.7%
exp-to-pow50.7%
sub-neg50.7%
metadata-eval50.7%
Simplified50.7%
Taylor expanded in t around 0 48.1%
Taylor expanded in b around 0 49.9%
if -1.7500000000000001e218 < y < 4.39999999999999956e99Initial program 97.7%
associate-/l*97.3%
associate--l+97.3%
exp-sum85.6%
associate-/l*85.6%
*-commutative85.6%
exp-to-pow85.6%
exp-diff74.4%
*-commutative74.4%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 65.7%
times-frac59.8%
Simplified59.8%
Taylor expanded in y around 0 60.3%
associate-*r*57.7%
Simplified57.7%
Final simplification55.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y 4.4e+232) (/ (/ x (* a (exp b))) y) (/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 4.4e+232) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
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 <= 4.4d+232) then
tmp = (x / (a * exp(b))) / y
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
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 <= 4.4e+232) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 4.4e+232: tmp = (x / (a * math.exp(b))) / y else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 4.4e+232) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 4.4e+232) tmp = (x / (a * exp(b))) / y; else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 4.4e+232], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.4 \cdot 10^{+232}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if y < 4.4e232Initial program 98.2%
Taylor expanded in y around 0 82.1%
div-exp70.5%
exp-to-pow71.0%
sub-neg71.0%
metadata-eval71.0%
Simplified71.0%
Taylor expanded in t around 0 59.4%
if 4.4e232 < y Initial program 100.0%
Taylor expanded in y around 0 36.7%
div-exp22.4%
exp-to-pow22.4%
sub-neg22.4%
metadata-eval22.4%
Simplified22.4%
Taylor expanded in t around 0 22.9%
Taylor expanded in b around 0 51.1%
Taylor expanded in a around 0 57.9%
Final simplification59.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.25e+191)
(/ (- (/ x a) (* b (/ (- x (* x (* b 0.5))) a))) y)
(if (<= b -1.92e+130)
(/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5)))))))
(if (<= b -3.5e-206)
(/ 1.0 (* a (/ y x)))
(if (<= b -8.8e-246)
(* (/ b y) (/ x (- a)))
(if (<= b -1.7e-278)
(/ (* b (/ x a)) (- y))
(if (<= b 5.3e-278)
(* b (- (/ x (* a (* y b))) (/ x (* y a))))
(/
(/
x
(+
a
(*
b
(+ a (* b (+ (* 0.16666666666666666 (* a b)) (* a 0.5)))))))
y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.25e+191) {
tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y;
} else if (b <= -1.92e+130) {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
} else if (b <= -3.5e-206) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -8.8e-246) {
tmp = (b / y) * (x / -a);
} else if (b <= -1.7e-278) {
tmp = (b * (x / a)) / -y;
} else if (b <= 5.3e-278) {
tmp = b * ((x / (a * (y * b))) - (x / (y * a)));
} else {
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.25d+191)) then
tmp = ((x / a) - (b * ((x - (x * (b * 0.5d0))) / a))) / y
else if (b <= (-1.92d+130)) then
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
else if (b <= (-3.5d-206)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-8.8d-246)) then
tmp = (b / y) * (x / -a)
else if (b <= (-1.7d-278)) then
tmp = (b * (x / a)) / -y
else if (b <= 5.3d-278) then
tmp = b * ((x / (a * (y * b))) - (x / (y * a)))
else
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666d0 * (a * b)) + (a * 0.5d0))))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.25e+191) {
tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y;
} else if (b <= -1.92e+130) {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
} else if (b <= -3.5e-206) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -8.8e-246) {
tmp = (b / y) * (x / -a);
} else if (b <= -1.7e-278) {
tmp = (b * (x / a)) / -y;
} else if (b <= 5.3e-278) {
tmp = b * ((x / (a * (y * b))) - (x / (y * a)));
} else {
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.25e+191: tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y elif b <= -1.92e+130: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) elif b <= -3.5e-206: tmp = 1.0 / (a * (y / x)) elif b <= -8.8e-246: tmp = (b / y) * (x / -a) elif b <= -1.7e-278: tmp = (b * (x / a)) / -y elif b <= 5.3e-278: tmp = b * ((x / (a * (y * b))) - (x / (y * a))) else: tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.25e+191) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x - Float64(x * Float64(b * 0.5))) / a))) / y); elseif (b <= -1.92e+130) tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))); elseif (b <= -3.5e-206) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -8.8e-246) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); elseif (b <= -1.7e-278) tmp = Float64(Float64(b * Float64(x / a)) / Float64(-y)); elseif (b <= 5.3e-278) tmp = Float64(b * Float64(Float64(x / Float64(a * Float64(y * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(0.16666666666666666 * Float64(a * b)) + Float64(a * 0.5))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.25e+191) tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y; elseif (b <= -1.92e+130) tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); elseif (b <= -3.5e-206) tmp = 1.0 / (a * (y / x)); elseif (b <= -8.8e-246) tmp = (b / y) * (x / -a); elseif (b <= -1.7e-278) tmp = (b * (x / a)) / -y; elseif (b <= 5.3e-278) tmp = b * ((x / (a * (y * b))) - (x / (y * a))); else tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.25e+191], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x - N[(x * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1.92e+130], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e-206], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.8e-246], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-278], N[(N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, 5.3e-278], N[(b * N[(N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(b * N[(a + N[(b * N[(N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \frac{x - x \cdot \left(b \cdot 0.5\right)}{a}}{y}\\
\mathbf{elif}\;b \leq -1.92 \cdot 10^{+130}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-206}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-246}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-278}:\\
\;\;\;\;\frac{b \cdot \frac{x}{a}}{-y}\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-278}:\\
\;\;\;\;b \cdot \left(\frac{x}{a \cdot \left(y \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -1.25000000000000005e191Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 93.0%
Taylor expanded in b around 0 71.7%
Taylor expanded in b around 0 71.7%
Simplified89.6%
if -1.25000000000000005e191 < b < -1.9199999999999999e130Initial program 100.0%
Taylor expanded in y around 0 54.1%
div-exp40.7%
exp-to-pow40.7%
sub-neg40.7%
metadata-eval40.7%
Simplified40.7%
Taylor expanded in t around 0 40.9%
Taylor expanded in b around 0 60.8%
Taylor expanded in a around 0 67.3%
if -1.9199999999999999e130 < b < -3.49999999999999989e-206Initial program 99.1%
associate-/l*96.6%
associate--l+96.6%
exp-sum82.8%
associate-/l*82.8%
*-commutative82.8%
exp-to-pow82.8%
exp-diff69.0%
*-commutative69.0%
exp-to-pow69.3%
sub-neg69.3%
metadata-eval69.3%
Simplified69.3%
Taylor expanded in t around 0 58.9%
times-frac56.0%
Simplified56.0%
Taylor expanded in y around 0 47.3%
associate-*r*44.2%
Simplified44.2%
Taylor expanded in b around 0 35.4%
clear-num35.6%
inv-pow35.6%
Applied egg-rr35.6%
unpow-135.6%
associate-/l*40.1%
Simplified40.1%
if -3.49999999999999989e-206 < b < -8.79999999999999992e-246Initial program 98.7%
Taylor expanded in y around 0 26.6%
div-exp26.6%
exp-to-pow27.8%
sub-neg27.8%
metadata-eval27.8%
Simplified27.8%
Taylor expanded in t around 0 28.3%
Taylor expanded in b around 0 28.3%
+-commutative28.3%
mul-1-neg28.3%
unsub-neg28.3%
associate-/l*28.3%
Simplified28.3%
Taylor expanded in b around inf 58.3%
mul-1-neg58.3%
*-commutative58.3%
times-frac76.1%
distribute-rgt-neg-in76.1%
Simplified76.1%
if -8.79999999999999992e-246 < b < -1.7e-278Initial program 76.7%
Taylor expanded in y around 0 76.7%
div-exp76.7%
exp-to-pow76.7%
sub-neg76.7%
metadata-eval76.7%
Simplified76.7%
Taylor expanded in t around 0 28.0%
Taylor expanded in b around 0 28.0%
+-commutative28.0%
mul-1-neg28.0%
unsub-neg28.0%
associate-/l*28.0%
Simplified28.0%
Taylor expanded in b around inf 27.7%
associate-/l*52.1%
associate-*r*52.1%
neg-mul-152.1%
*-commutative52.1%
Simplified52.1%
if -1.7e-278 < b < 5.3e-278Initial program 99.5%
Taylor expanded in y around 0 69.7%
div-exp69.7%
exp-to-pow70.0%
sub-neg70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in t around 0 50.7%
Taylor expanded in b around 0 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
associate-/l*35.2%
Simplified35.2%
Taylor expanded in b around inf 62.7%
mul-1-neg62.7%
+-commutative62.7%
unsub-neg62.7%
*-commutative62.7%
Simplified62.7%
if 5.3e-278 < b Initial program 97.8%
Taylor expanded in y around 0 83.5%
div-exp72.1%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in t around 0 59.5%
Taylor expanded in b around 0 50.9%
Final simplification54.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- (/ x a) (/ (* b (- x (* b (- x (* x 0.5))))) a)) y)))
(if (<= b -1.25e+191)
t_1
(if (<= b -2.6e+130)
(/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5)))))))
(if (<= b -3.5e+103)
t_1
(if (<= b -1.6e-204)
(/ 1.0 (* a (/ y x)))
(if (<= b -8e-266)
(* (/ b y) (/ x (- a)))
(/
(/
x
(+
a
(*
b
(+ a (* b (+ (* 0.16666666666666666 (* a b)) (* a 0.5)))))))
y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x / a) - ((b * (x - (b * (x - (x * 0.5))))) / a)) / y;
double tmp;
if (b <= -1.25e+191) {
tmp = t_1;
} else if (b <= -2.6e+130) {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
} else if (b <= -3.5e+103) {
tmp = t_1;
} else if (b <= -1.6e-204) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -8e-266) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = ((x / a) - ((b * (x - (b * (x - (x * 0.5d0))))) / a)) / y
if (b <= (-1.25d+191)) then
tmp = t_1
else if (b <= (-2.6d+130)) then
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
else if (b <= (-3.5d+103)) then
tmp = t_1
else if (b <= (-1.6d-204)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-8d-266)) then
tmp = (b / y) * (x / -a)
else
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666d0 * (a * b)) + (a * 0.5d0))))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x / a) - ((b * (x - (b * (x - (x * 0.5))))) / a)) / y;
double tmp;
if (b <= -1.25e+191) {
tmp = t_1;
} else if (b <= -2.6e+130) {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
} else if (b <= -3.5e+103) {
tmp = t_1;
} else if (b <= -1.6e-204) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -8e-266) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x / a) - ((b * (x - (b * (x - (x * 0.5))))) / a)) / y tmp = 0 if b <= -1.25e+191: tmp = t_1 elif b <= -2.6e+130: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) elif b <= -3.5e+103: tmp = t_1 elif b <= -1.6e-204: tmp = 1.0 / (a * (y / x)) elif b <= -8e-266: tmp = (b / y) * (x / -a) else: tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x / a) - Float64(Float64(b * Float64(x - Float64(b * Float64(x - Float64(x * 0.5))))) / a)) / y) tmp = 0.0 if (b <= -1.25e+191) tmp = t_1; elseif (b <= -2.6e+130) tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))); elseif (b <= -3.5e+103) tmp = t_1; elseif (b <= -1.6e-204) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -8e-266) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); else tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(0.16666666666666666 * Float64(a * b)) + Float64(a * 0.5))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x / a) - ((b * (x - (b * (x - (x * 0.5))))) / a)) / y; tmp = 0.0; if (b <= -1.25e+191) tmp = t_1; elseif (b <= -2.6e+130) tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); elseif (b <= -3.5e+103) tmp = t_1; elseif (b <= -1.6e-204) tmp = 1.0 / (a * (y / x)); elseif (b <= -8e-266) tmp = (b / y) * (x / -a); else tmp = (x / (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x / a), $MachinePrecision] - N[(N[(b * N[(x - N[(b * N[(x - N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -1.25e+191], t$95$1, If[LessEqual[b, -2.6e+130], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e+103], t$95$1, If[LessEqual[b, -1.6e-204], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8e-266], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(b * N[(a + N[(b * N[(N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a} - \frac{b \cdot \left(x - b \cdot \left(x - x \cdot 0.5\right)\right)}{a}}{y}\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{+130}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-204}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-266}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -1.25000000000000005e191 or -2.5999999999999998e130 < b < -3.5e103Initial program 100.0%
Taylor expanded in y around 0 94.2%
div-exp79.5%
exp-to-pow79.5%
sub-neg79.5%
metadata-eval79.5%
Simplified79.5%
Taylor expanded in t around 0 94.2%
Taylor expanded in b around 0 68.0%
Taylor expanded in a around 0 91.3%
if -1.25000000000000005e191 < b < -2.5999999999999998e130Initial program 100.0%
Taylor expanded in y around 0 54.1%
div-exp40.7%
exp-to-pow40.7%
sub-neg40.7%
metadata-eval40.7%
Simplified40.7%
Taylor expanded in t around 0 40.9%
Taylor expanded in b around 0 60.8%
Taylor expanded in a around 0 67.3%
if -3.5e103 < b < -1.6e-204Initial program 99.0%
associate-/l*96.3%
associate--l+96.3%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.8%
exp-diff67.5%
*-commutative67.5%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
Simplified67.9%
Taylor expanded in t around 0 56.5%
times-frac54.9%
Simplified54.9%
Taylor expanded in y around 0 42.0%
associate-*r*40.3%
Simplified40.3%
Taylor expanded in b around 0 35.5%
clear-num35.7%
inv-pow35.7%
Applied egg-rr35.7%
unpow-135.7%
associate-/l*42.1%
Simplified42.1%
if -1.6e-204 < b < -7.9999999999999999e-266Initial program 99.0%
Taylor expanded in y around 0 41.3%
div-exp41.3%
exp-to-pow42.3%
sub-neg42.3%
metadata-eval42.3%
Simplified42.3%
Taylor expanded in t around 0 23.2%
Taylor expanded in b around 0 23.2%
+-commutative23.2%
mul-1-neg23.2%
unsub-neg23.2%
associate-/l*23.2%
Simplified23.2%
Taylor expanded in b around inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
times-frac61.6%
distribute-rgt-neg-in61.6%
Simplified61.6%
if -7.9999999999999999e-266 < b Initial program 97.3%
Taylor expanded in y around 0 81.7%
div-exp71.6%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 50.9%
Final simplification55.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5)))))))))
(if (<= b -1.25e+191)
(/ (* x (/ b (- a))) y)
(if (<= b -5.4e+129)
t_1
(if (<= b -1.66e+75)
(/ (* b (/ x a)) (- y))
(if (<= b -2.2e-213)
(/ 1.0 (* a (/ y x)))
(if (<= b -1.15e-238)
(* (/ b y) (/ x (- a)))
(if (<= b 4.5e+20) (/ (/ x (+ a (* a b))) y) t_1))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -5.4e+129) {
tmp = t_1;
} else if (b <= -1.66e+75) {
tmp = (b * (x / a)) / -y;
} else if (b <= -2.2e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.15e-238) {
tmp = (b / y) * (x / -a);
} else if (b <= 4.5e+20) {
tmp = (x / (a + (a * b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
if (b <= (-1.25d+191)) then
tmp = (x * (b / -a)) / y
else if (b <= (-5.4d+129)) then
tmp = t_1
else if (b <= (-1.66d+75)) then
tmp = (b * (x / a)) / -y
else if (b <= (-2.2d-213)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-1.15d-238)) then
tmp = (b / y) * (x / -a)
else if (b <= 4.5d+20) then
tmp = (x / (a + (a * b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -5.4e+129) {
tmp = t_1;
} else if (b <= -1.66e+75) {
tmp = (b * (x / a)) / -y;
} else if (b <= -2.2e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.15e-238) {
tmp = (b / y) * (x / -a);
} else if (b <= 4.5e+20) {
tmp = (x / (a + (a * b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) tmp = 0 if b <= -1.25e+191: tmp = (x * (b / -a)) / y elif b <= -5.4e+129: tmp = t_1 elif b <= -1.66e+75: tmp = (b * (x / a)) / -y elif b <= -2.2e-213: tmp = 1.0 / (a * (y / x)) elif b <= -1.15e-238: tmp = (b / y) * (x / -a) elif b <= 4.5e+20: tmp = (x / (a + (a * b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))) tmp = 0.0 if (b <= -1.25e+191) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); elseif (b <= -5.4e+129) tmp = t_1; elseif (b <= -1.66e+75) tmp = Float64(Float64(b * Float64(x / a)) / Float64(-y)); elseif (b <= -2.2e-213) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -1.15e-238) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); elseif (b <= 4.5e+20) tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); tmp = 0.0; if (b <= -1.25e+191) tmp = (x * (b / -a)) / y; elseif (b <= -5.4e+129) tmp = t_1; elseif (b <= -1.66e+75) tmp = (b * (x / a)) / -y; elseif (b <= -2.2e-213) tmp = 1.0 / (a * (y / x)); elseif (b <= -1.15e-238) tmp = (b / y) * (x / -a); elseif (b <= 4.5e+20) tmp = (x / (a + (a * b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+191], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -5.4e+129], t$95$1, If[LessEqual[b, -1.66e+75], N[(N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, -2.2e-213], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e-238], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e+20], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{elif}\;b \leq -5.4 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.66 \cdot 10^{+75}:\\
\;\;\;\;\frac{b \cdot \frac{x}{a}}{-y}\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-213}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-238}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+20}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.25000000000000005e191Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 93.0%
Taylor expanded in b around 0 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in b around inf 69.0%
associate-*r/69.0%
associate-*r*69.0%
neg-mul-169.0%
associate-*l/69.0%
neg-mul-169.0%
associate-*r/69.0%
*-commutative69.0%
associate-*l*69.0%
mul-1-neg69.0%
Simplified69.0%
if -1.25000000000000005e191 < b < -5.4000000000000002e129 or 4.5e20 < b Initial program 100.0%
Taylor expanded in y around 0 84.3%
div-exp62.9%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
Simplified62.9%
Taylor expanded in t around 0 69.8%
Taylor expanded in b around 0 53.3%
Taylor expanded in a around 0 60.9%
if -5.4000000000000002e129 < b < -1.66e75Initial program 100.0%
Taylor expanded in y around 0 88.4%
div-exp58.9%
exp-to-pow58.9%
sub-neg58.9%
metadata-eval58.9%
Simplified58.9%
Taylor expanded in t around 0 59.5%
Taylor expanded in b around 0 32.1%
+-commutative32.1%
mul-1-neg32.1%
unsub-neg32.1%
associate-/l*43.3%
Simplified43.3%
Taylor expanded in b around inf 32.1%
associate-/l*43.3%
associate-*r*43.3%
neg-mul-143.3%
*-commutative43.3%
Simplified43.3%
if -1.66e75 < b < -2.2000000000000001e-213Initial program 98.8%
associate-/l*95.4%
associate--l+95.4%
exp-sum85.0%
associate-/l*85.0%
*-commutative85.0%
exp-to-pow85.1%
exp-diff76.7%
*-commutative76.7%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around 0 63.0%
times-frac61.1%
Simplified61.1%
Taylor expanded in y around 0 43.1%
associate-*r*43.1%
Simplified43.1%
Taylor expanded in b around 0 34.8%
clear-num35.1%
inv-pow35.1%
Applied egg-rr35.1%
unpow-135.1%
associate-/l*43.0%
Simplified43.0%
if -2.2000000000000001e-213 < b < -1.15000000000000002e-238Initial program 98.6%
Taylor expanded in y around 0 29.7%
div-exp29.7%
exp-to-pow31.1%
sub-neg31.1%
metadata-eval31.1%
Simplified31.1%
Taylor expanded in t around 0 31.7%
Taylor expanded in b around 0 31.7%
+-commutative31.7%
mul-1-neg31.7%
unsub-neg31.7%
associate-/l*31.7%
Simplified31.7%
Taylor expanded in b around inf 52.4%
mul-1-neg52.4%
*-commutative52.4%
times-frac72.6%
distribute-rgt-neg-in72.6%
Simplified72.6%
if -1.15000000000000002e-238 < b < 4.5e20Initial program 95.4%
Taylor expanded in y around 0 73.8%
div-exp73.8%
exp-to-pow74.8%
sub-neg74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in t around 0 42.9%
Taylor expanded in b around 0 40.6%
Final simplification51.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- -1.0 (* b 0.5)))))
(if (<= b -1.25e+191)
(/ (* x (/ b (- a))) y)
(if (<= b -2.4e+130)
(/ x (* a (* y (- 1.0 t_1))))
(if (<= b -1.25e+76)
(/ (* b (/ x a)) (- y))
(if (<= b -8.5e-200)
(/ 1.0 (* a (/ y x)))
(if (<= b -2.75e-266)
(* (/ b y) (/ x (- a)))
(/ (/ x (- a (* a t_1))) y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (-1.0 - (b * 0.5));
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -2.4e+130) {
tmp = x / (a * (y * (1.0 - t_1)));
} else if (b <= -1.25e+76) {
tmp = (b * (x / a)) / -y;
} else if (b <= -8.5e-200) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -2.75e-266) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a - (a * 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 = b * ((-1.0d0) - (b * 0.5d0))
if (b <= (-1.25d+191)) then
tmp = (x * (b / -a)) / y
else if (b <= (-2.4d+130)) then
tmp = x / (a * (y * (1.0d0 - t_1)))
else if (b <= (-1.25d+76)) then
tmp = (b * (x / a)) / -y
else if (b <= (-8.5d-200)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-2.75d-266)) then
tmp = (b / y) * (x / -a)
else
tmp = (x / (a - (a * 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 = b * (-1.0 - (b * 0.5));
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -2.4e+130) {
tmp = x / (a * (y * (1.0 - t_1)));
} else if (b <= -1.25e+76) {
tmp = (b * (x / a)) / -y;
} else if (b <= -8.5e-200) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -2.75e-266) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a - (a * t_1))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (-1.0 - (b * 0.5)) tmp = 0 if b <= -1.25e+191: tmp = (x * (b / -a)) / y elif b <= -2.4e+130: tmp = x / (a * (y * (1.0 - t_1))) elif b <= -1.25e+76: tmp = (b * (x / a)) / -y elif b <= -8.5e-200: tmp = 1.0 / (a * (y / x)) elif b <= -2.75e-266: tmp = (b / y) * (x / -a) else: tmp = (x / (a - (a * t_1))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(-1.0 - Float64(b * 0.5))) tmp = 0.0 if (b <= -1.25e+191) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); elseif (b <= -2.4e+130) tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - t_1)))); elseif (b <= -1.25e+76) tmp = Float64(Float64(b * Float64(x / a)) / Float64(-y)); elseif (b <= -8.5e-200) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -2.75e-266) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); else tmp = Float64(Float64(x / Float64(a - Float64(a * t_1))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (-1.0 - (b * 0.5)); tmp = 0.0; if (b <= -1.25e+191) tmp = (x * (b / -a)) / y; elseif (b <= -2.4e+130) tmp = x / (a * (y * (1.0 - t_1))); elseif (b <= -1.25e+76) tmp = (b * (x / a)) / -y; elseif (b <= -8.5e-200) tmp = 1.0 / (a * (y / x)); elseif (b <= -2.75e-266) tmp = (b / y) * (x / -a); else tmp = (x / (a - (a * t_1))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+191], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -2.4e+130], N[(x / N[(a * N[(y * N[(1.0 - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.25e+76], N[(N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, -8.5e-200], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.75e-266], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a - N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(-1 - b \cdot 0.5\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{+130}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - t\_1\right)\right)}\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{+76}:\\
\;\;\;\;\frac{b \cdot \frac{x}{a}}{-y}\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-200}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -2.75 \cdot 10^{-266}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a - a \cdot t\_1}}{y}\\
\end{array}
\end{array}
if b < -1.25000000000000005e191Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 93.0%
Taylor expanded in b around 0 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in b around inf 69.0%
associate-*r/69.0%
associate-*r*69.0%
neg-mul-169.0%
associate-*l/69.0%
neg-mul-169.0%
associate-*r/69.0%
*-commutative69.0%
associate-*l*69.0%
mul-1-neg69.0%
Simplified69.0%
if -1.25000000000000005e191 < b < -2.40000000000000024e130Initial program 100.0%
Taylor expanded in y around 0 54.1%
div-exp40.7%
exp-to-pow40.7%
sub-neg40.7%
metadata-eval40.7%
Simplified40.7%
Taylor expanded in t around 0 40.9%
Taylor expanded in b around 0 60.8%
Taylor expanded in a around 0 67.3%
if -2.40000000000000024e130 < b < -1.24999999999999998e76Initial program 100.0%
Taylor expanded in y around 0 88.4%
div-exp58.9%
exp-to-pow58.9%
sub-neg58.9%
metadata-eval58.9%
Simplified58.9%
Taylor expanded in t around 0 59.5%
Taylor expanded in b around 0 32.1%
+-commutative32.1%
mul-1-neg32.1%
unsub-neg32.1%
associate-/l*43.3%
Simplified43.3%
Taylor expanded in b around inf 32.1%
associate-/l*43.3%
associate-*r*43.3%
neg-mul-143.3%
*-commutative43.3%
Simplified43.3%
if -1.24999999999999998e76 < b < -8.50000000000000014e-200Initial program 98.8%
associate-/l*95.4%
associate--l+95.4%
exp-sum85.0%
associate-/l*85.0%
*-commutative85.0%
exp-to-pow85.1%
exp-diff76.7%
*-commutative76.7%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around 0 63.0%
times-frac61.1%
Simplified61.1%
Taylor expanded in y around 0 43.1%
associate-*r*43.1%
Simplified43.1%
Taylor expanded in b around 0 34.8%
clear-num35.1%
inv-pow35.1%
Applied egg-rr35.1%
unpow-135.1%
associate-/l*43.0%
Simplified43.0%
if -8.50000000000000014e-200 < b < -2.75000000000000013e-266Initial program 99.0%
Taylor expanded in y around 0 41.3%
div-exp41.3%
exp-to-pow42.3%
sub-neg42.3%
metadata-eval42.3%
Simplified42.3%
Taylor expanded in t around 0 23.2%
Taylor expanded in b around 0 23.2%
+-commutative23.2%
mul-1-neg23.2%
unsub-neg23.2%
associate-/l*23.2%
Simplified23.2%
Taylor expanded in b around inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
times-frac61.6%
distribute-rgt-neg-in61.6%
Simplified61.6%
if -2.75000000000000013e-266 < b Initial program 97.3%
Taylor expanded in y around 0 81.7%
div-exp71.6%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 46.6%
Taylor expanded in a around 0 50.7%
Final simplification52.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- x (* b (+ x (* b (* x -0.5))))) (* y a)))
(t_2 (* b (- -1.0 (* b 0.5)))))
(if (<= b -1.25e+191)
t_1
(if (<= b -1.6e+123)
(/ x (* a (* y (- 1.0 t_2))))
(if (<= b -3.5e+103)
t_1
(if (<= b -5.8e-209)
(/ 1.0 (* a (/ y x)))
(if (<= b -3.2e-266)
(* (/ b y) (/ x (- a)))
(/ (/ x (- a (* a t_2))) y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x - (b * (x + (b * (x * -0.5))))) / (y * a);
double t_2 = b * (-1.0 - (b * 0.5));
double tmp;
if (b <= -1.25e+191) {
tmp = t_1;
} else if (b <= -1.6e+123) {
tmp = x / (a * (y * (1.0 - t_2)));
} else if (b <= -3.5e+103) {
tmp = t_1;
} else if (b <= -5.8e-209) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -3.2e-266) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a - (a * t_2))) / 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) :: t_2
real(8) :: tmp
t_1 = (x - (b * (x + (b * (x * (-0.5d0)))))) / (y * a)
t_2 = b * ((-1.0d0) - (b * 0.5d0))
if (b <= (-1.25d+191)) then
tmp = t_1
else if (b <= (-1.6d+123)) then
tmp = x / (a * (y * (1.0d0 - t_2)))
else if (b <= (-3.5d+103)) then
tmp = t_1
else if (b <= (-5.8d-209)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-3.2d-266)) then
tmp = (b / y) * (x / -a)
else
tmp = (x / (a - (a * t_2))) / 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 - (b * (x + (b * (x * -0.5))))) / (y * a);
double t_2 = b * (-1.0 - (b * 0.5));
double tmp;
if (b <= -1.25e+191) {
tmp = t_1;
} else if (b <= -1.6e+123) {
tmp = x / (a * (y * (1.0 - t_2)));
} else if (b <= -3.5e+103) {
tmp = t_1;
} else if (b <= -5.8e-209) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -3.2e-266) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a - (a * t_2))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x - (b * (x + (b * (x * -0.5))))) / (y * a) t_2 = b * (-1.0 - (b * 0.5)) tmp = 0 if b <= -1.25e+191: tmp = t_1 elif b <= -1.6e+123: tmp = x / (a * (y * (1.0 - t_2))) elif b <= -3.5e+103: tmp = t_1 elif b <= -5.8e-209: tmp = 1.0 / (a * (y / x)) elif b <= -3.2e-266: tmp = (b / y) * (x / -a) else: tmp = (x / (a - (a * t_2))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x - Float64(b * Float64(x + Float64(b * Float64(x * -0.5))))) / Float64(y * a)) t_2 = Float64(b * Float64(-1.0 - Float64(b * 0.5))) tmp = 0.0 if (b <= -1.25e+191) tmp = t_1; elseif (b <= -1.6e+123) tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - t_2)))); elseif (b <= -3.5e+103) tmp = t_1; elseif (b <= -5.8e-209) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -3.2e-266) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); else tmp = Float64(Float64(x / Float64(a - Float64(a * t_2))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x - (b * (x + (b * (x * -0.5))))) / (y * a); t_2 = b * (-1.0 - (b * 0.5)); tmp = 0.0; if (b <= -1.25e+191) tmp = t_1; elseif (b <= -1.6e+123) tmp = x / (a * (y * (1.0 - t_2))); elseif (b <= -3.5e+103) tmp = t_1; elseif (b <= -5.8e-209) tmp = 1.0 / (a * (y / x)); elseif (b <= -3.2e-266) tmp = (b / y) * (x / -a); else tmp = (x / (a - (a * t_2))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x - N[(b * N[(x + N[(b * N[(x * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+191], t$95$1, If[LessEqual[b, -1.6e+123], N[(x / N[(a * N[(y * N[(1.0 - t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e+103], t$95$1, If[LessEqual[b, -5.8e-209], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.2e-266], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a - N[(a * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x - b \cdot \left(x + b \cdot \left(x \cdot -0.5\right)\right)}{y \cdot a}\\
t_2 := b \cdot \left(-1 - b \cdot 0.5\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{+123}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - t\_2\right)\right)}\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-209}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-266}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a - a \cdot t\_2}}{y}\\
\end{array}
\end{array}
if b < -1.25000000000000005e191 or -1.60000000000000002e123 < b < -3.5e103Initial program 100.0%
Taylor expanded in y around 0 94.0%
div-exp78.8%
exp-to-pow78.8%
sub-neg78.8%
metadata-eval78.8%
Simplified78.8%
Taylor expanded in t around 0 94.0%
Taylor expanded in b around 0 70.0%
Taylor expanded in a around 0 76.1%
associate-*r*76.1%
neg-mul-176.1%
distribute-rgt-out76.1%
metadata-eval76.1%
Simplified76.1%
if -1.25000000000000005e191 < b < -1.60000000000000002e123Initial program 100.0%
Taylor expanded in y around 0 56.9%
div-exp44.4%
exp-to-pow44.4%
sub-neg44.4%
metadata-eval44.4%
Simplified44.4%
Taylor expanded in t around 0 44.6%
Taylor expanded in b around 0 57.1%
Taylor expanded in a around 0 63.2%
if -3.5e103 < b < -5.80000000000000052e-209Initial program 99.0%
associate-/l*96.3%
associate--l+96.3%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.8%
exp-diff67.5%
*-commutative67.5%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
Simplified67.9%
Taylor expanded in t around 0 56.5%
times-frac54.9%
Simplified54.9%
Taylor expanded in y around 0 42.0%
associate-*r*40.3%
Simplified40.3%
Taylor expanded in b around 0 35.5%
clear-num35.7%
inv-pow35.7%
Applied egg-rr35.7%
unpow-135.7%
associate-/l*42.1%
Simplified42.1%
if -5.80000000000000052e-209 < b < -3.2e-266Initial program 99.0%
Taylor expanded in y around 0 41.3%
div-exp41.3%
exp-to-pow42.3%
sub-neg42.3%
metadata-eval42.3%
Simplified42.3%
Taylor expanded in t around 0 23.2%
Taylor expanded in b around 0 23.2%
+-commutative23.2%
mul-1-neg23.2%
unsub-neg23.2%
associate-/l*23.2%
Simplified23.2%
Taylor expanded in b around inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
times-frac61.6%
distribute-rgt-neg-in61.6%
Simplified61.6%
if -3.2e-266 < b Initial program 97.3%
Taylor expanded in y around 0 81.7%
div-exp71.6%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 46.6%
Taylor expanded in a around 0 50.7%
Final simplification53.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- -1.0 (* b 0.5)))))
(if (<= b -1.25e+191)
(/ (- (/ x a) (* b (/ (- x (* x (* b 0.5))) a))) y)
(if (<= b -1.25e+129)
(/ x (* a (* y (- 1.0 t_1))))
(if (<= b -2.3e-213)
(/ 1.0 (* a (/ y x)))
(if (<= b -1.45e-269)
(* (/ b y) (/ x (- a)))
(if (<= b 2.8e-301)
(/ (* b (- (/ x (* a b)) (/ x a))) y)
(/ (/ x (- a (* a t_1))) y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (-1.0 - (b * 0.5));
double tmp;
if (b <= -1.25e+191) {
tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y;
} else if (b <= -1.25e+129) {
tmp = x / (a * (y * (1.0 - t_1)));
} else if (b <= -2.3e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.45e-269) {
tmp = (b / y) * (x / -a);
} else if (b <= 2.8e-301) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = (x / (a - (a * 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 = b * ((-1.0d0) - (b * 0.5d0))
if (b <= (-1.25d+191)) then
tmp = ((x / a) - (b * ((x - (x * (b * 0.5d0))) / a))) / y
else if (b <= (-1.25d+129)) then
tmp = x / (a * (y * (1.0d0 - t_1)))
else if (b <= (-2.3d-213)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-1.45d-269)) then
tmp = (b / y) * (x / -a)
else if (b <= 2.8d-301) then
tmp = (b * ((x / (a * b)) - (x / a))) / y
else
tmp = (x / (a - (a * 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 = b * (-1.0 - (b * 0.5));
double tmp;
if (b <= -1.25e+191) {
tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y;
} else if (b <= -1.25e+129) {
tmp = x / (a * (y * (1.0 - t_1)));
} else if (b <= -2.3e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.45e-269) {
tmp = (b / y) * (x / -a);
} else if (b <= 2.8e-301) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = (x / (a - (a * t_1))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (-1.0 - (b * 0.5)) tmp = 0 if b <= -1.25e+191: tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y elif b <= -1.25e+129: tmp = x / (a * (y * (1.0 - t_1))) elif b <= -2.3e-213: tmp = 1.0 / (a * (y / x)) elif b <= -1.45e-269: tmp = (b / y) * (x / -a) elif b <= 2.8e-301: tmp = (b * ((x / (a * b)) - (x / a))) / y else: tmp = (x / (a - (a * t_1))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(-1.0 - Float64(b * 0.5))) tmp = 0.0 if (b <= -1.25e+191) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x - Float64(x * Float64(b * 0.5))) / a))) / y); elseif (b <= -1.25e+129) tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - t_1)))); elseif (b <= -2.3e-213) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -1.45e-269) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); elseif (b <= 2.8e-301) tmp = Float64(Float64(b * Float64(Float64(x / Float64(a * b)) - Float64(x / a))) / y); else tmp = Float64(Float64(x / Float64(a - Float64(a * t_1))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (-1.0 - (b * 0.5)); tmp = 0.0; if (b <= -1.25e+191) tmp = ((x / a) - (b * ((x - (x * (b * 0.5))) / a))) / y; elseif (b <= -1.25e+129) tmp = x / (a * (y * (1.0 - t_1))); elseif (b <= -2.3e-213) tmp = 1.0 / (a * (y / x)); elseif (b <= -1.45e-269) tmp = (b / y) * (x / -a); elseif (b <= 2.8e-301) tmp = (b * ((x / (a * b)) - (x / a))) / y; else tmp = (x / (a - (a * t_1))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+191], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x - N[(x * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1.25e+129], N[(x / N[(a * N[(y * N[(1.0 - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.3e-213], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e-269], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-301], N[(N[(b * N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a - N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(-1 - b \cdot 0.5\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \frac{x - x \cdot \left(b \cdot 0.5\right)}{a}}{y}\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{+129}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - t\_1\right)\right)}\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-213}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-269}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-301}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a - a \cdot t\_1}}{y}\\
\end{array}
\end{array}
if b < -1.25000000000000005e191Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 93.0%
Taylor expanded in b around 0 71.7%
Taylor expanded in b around 0 71.7%
Simplified89.6%
if -1.25000000000000005e191 < b < -1.2500000000000001e129Initial program 100.0%
Taylor expanded in y around 0 54.1%
div-exp40.7%
exp-to-pow40.7%
sub-neg40.7%
metadata-eval40.7%
Simplified40.7%
Taylor expanded in t around 0 40.9%
Taylor expanded in b around 0 60.8%
Taylor expanded in a around 0 67.3%
if -1.2500000000000001e129 < b < -2.30000000000000003e-213Initial program 99.1%
associate-/l*96.6%
associate--l+96.6%
exp-sum82.8%
associate-/l*82.8%
*-commutative82.8%
exp-to-pow82.8%
exp-diff69.0%
*-commutative69.0%
exp-to-pow69.3%
sub-neg69.3%
metadata-eval69.3%
Simplified69.3%
Taylor expanded in t around 0 58.9%
times-frac56.0%
Simplified56.0%
Taylor expanded in y around 0 47.3%
associate-*r*44.2%
Simplified44.2%
Taylor expanded in b around 0 35.4%
clear-num35.6%
inv-pow35.6%
Applied egg-rr35.6%
unpow-135.6%
associate-/l*40.1%
Simplified40.1%
if -2.30000000000000003e-213 < b < -1.45e-269Initial program 99.0%
Taylor expanded in y around 0 41.3%
div-exp41.3%
exp-to-pow42.3%
sub-neg42.3%
metadata-eval42.3%
Simplified42.3%
Taylor expanded in t around 0 23.2%
Taylor expanded in b around 0 23.2%
+-commutative23.2%
mul-1-neg23.2%
unsub-neg23.2%
associate-/l*23.2%
Simplified23.2%
Taylor expanded in b around inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
times-frac61.6%
distribute-rgt-neg-in61.6%
Simplified61.6%
if -1.45e-269 < b < 2.8000000000000001e-301Initial program 87.5%
Taylor expanded in y around 0 63.8%
div-exp63.8%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in t around 0 44.8%
Taylor expanded in b around 0 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
associate-/l*44.8%
Simplified44.8%
Taylor expanded in b around inf 64.8%
if 2.8000000000000001e-301 < b Initial program 97.9%
Taylor expanded in y around 0 82.8%
div-exp72.1%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in t around 0 59.4%
Taylor expanded in b around 0 46.7%
Taylor expanded in a around 0 51.1%
Final simplification54.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (+ y (* y b))))))
(if (<= b -1.25e+191)
(/ (* x (/ b (- a))) y)
(if (<= b -2.3e+158)
t_1
(if (<= b -5.2e+75)
(/ (* b (/ x a)) (- y))
(if (<= b -6e-211)
(/ 1.0 (* a (/ y x)))
(if (<= b -1e-265) (* (/ b y) (/ x (- a))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -2.3e+158) {
tmp = t_1;
} else if (b <= -5.2e+75) {
tmp = (b * (x / a)) / -y;
} else if (b <= -6e-211) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1e-265) {
tmp = (b / y) * (x / -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a * (y + (y * b)))
if (b <= (-1.25d+191)) then
tmp = (x * (b / -a)) / y
else if (b <= (-2.3d+158)) then
tmp = t_1
else if (b <= (-5.2d+75)) then
tmp = (b * (x / a)) / -y
else if (b <= (-6d-211)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-1d-265)) then
tmp = (b / y) * (x / -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -2.3e+158) {
tmp = t_1;
} else if (b <= -5.2e+75) {
tmp = (b * (x / a)) / -y;
} else if (b <= -6e-211) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1e-265) {
tmp = (b / y) * (x / -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y + (y * b))) tmp = 0 if b <= -1.25e+191: tmp = (x * (b / -a)) / y elif b <= -2.3e+158: tmp = t_1 elif b <= -5.2e+75: tmp = (b * (x / a)) / -y elif b <= -6e-211: tmp = 1.0 / (a * (y / x)) elif b <= -1e-265: tmp = (b / y) * (x / -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y + Float64(y * b)))) tmp = 0.0 if (b <= -1.25e+191) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); elseif (b <= -2.3e+158) tmp = t_1; elseif (b <= -5.2e+75) tmp = Float64(Float64(b * Float64(x / a)) / Float64(-y)); elseif (b <= -6e-211) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -1e-265) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y + (y * b))); tmp = 0.0; if (b <= -1.25e+191) tmp = (x * (b / -a)) / y; elseif (b <= -2.3e+158) tmp = t_1; elseif (b <= -5.2e+75) tmp = (b * (x / a)) / -y; elseif (b <= -6e-211) tmp = 1.0 / (a * (y / x)); elseif (b <= -1e-265) tmp = (b / y) * (x / -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+191], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -2.3e+158], t$95$1, If[LessEqual[b, -5.2e+75], N[(N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, -6e-211], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e-265], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{+158}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{+75}:\\
\;\;\;\;\frac{b \cdot \frac{x}{a}}{-y}\\
\mathbf{elif}\;b \leq -6 \cdot 10^{-211}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-265}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.25000000000000005e191Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 93.0%
Taylor expanded in b around 0 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in b around inf 69.0%
associate-*r/69.0%
associate-*r*69.0%
neg-mul-169.0%
associate-*l/69.0%
neg-mul-169.0%
associate-*r/69.0%
*-commutative69.0%
associate-*l*69.0%
mul-1-neg69.0%
Simplified69.0%
if -1.25000000000000005e191 < b < -2.29999999999999986e158 or -9.99999999999999985e-266 < b Initial program 97.5%
associate-/l*98.1%
associate--l+98.1%
exp-sum76.6%
associate-/l*76.0%
*-commutative76.0%
exp-to-pow76.0%
exp-diff66.6%
*-commutative66.6%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in t around 0 59.8%
times-frac53.7%
Simplified53.7%
Taylor expanded in y around 0 53.9%
associate-*r*50.5%
Simplified50.5%
Taylor expanded in b around 0 34.4%
distribute-lft-out36.4%
*-commutative36.4%
Simplified36.4%
if -2.29999999999999986e158 < b < -5.1999999999999997e75Initial program 100.0%
Taylor expanded in y around 0 85.9%
div-exp62.1%
exp-to-pow62.1%
sub-neg62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around 0 62.5%
Taylor expanded in b around 0 35.6%
+-commutative35.6%
mul-1-neg35.6%
unsub-neg35.6%
associate-/l*44.7%
Simplified44.7%
Taylor expanded in b around inf 35.6%
associate-/l*44.7%
associate-*r*44.7%
neg-mul-144.7%
*-commutative44.7%
Simplified44.7%
if -5.1999999999999997e75 < b < -6.00000000000000009e-211Initial program 98.8%
associate-/l*95.4%
associate--l+95.4%
exp-sum85.0%
associate-/l*85.0%
*-commutative85.0%
exp-to-pow85.1%
exp-diff76.7%
*-commutative76.7%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around 0 63.0%
times-frac61.1%
Simplified61.1%
Taylor expanded in y around 0 43.1%
associate-*r*43.1%
Simplified43.1%
Taylor expanded in b around 0 34.8%
clear-num35.1%
inv-pow35.1%
Applied egg-rr35.1%
unpow-135.1%
associate-/l*43.0%
Simplified43.0%
if -6.00000000000000009e-211 < b < -9.99999999999999985e-266Initial program 99.0%
Taylor expanded in y around 0 41.3%
div-exp41.3%
exp-to-pow42.3%
sub-neg42.3%
metadata-eval42.3%
Simplified42.3%
Taylor expanded in t around 0 23.2%
Taylor expanded in b around 0 23.2%
+-commutative23.2%
mul-1-neg23.2%
unsub-neg23.2%
associate-/l*23.2%
Simplified23.2%
Taylor expanded in b around inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
times-frac61.6%
distribute-rgt-neg-in61.6%
Simplified61.6%
Final simplification42.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.25e+191)
(/ (* x (/ b (- a))) y)
(if (<= b -4.1e+157)
(/ x (* a (+ y (* y b))))
(if (<= b -9e+74)
(/ (* b (/ x a)) (- y))
(if (<= b -6e-200)
(/ 1.0 (* a (/ y x)))
(if (<= b -1.1e-265)
(* (/ b y) (/ x (- a)))
(/ (/ x (+ a (* a b))) y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -4.1e+157) {
tmp = x / (a * (y + (y * b)));
} else if (b <= -9e+74) {
tmp = (b * (x / a)) / -y;
} else if (b <= -6e-200) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.1e-265) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a + (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 (b <= (-1.25d+191)) then
tmp = (x * (b / -a)) / y
else if (b <= (-4.1d+157)) then
tmp = x / (a * (y + (y * b)))
else if (b <= (-9d+74)) then
tmp = (b * (x / a)) / -y
else if (b <= (-6d-200)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-1.1d-265)) then
tmp = (b / y) * (x / -a)
else
tmp = (x / (a + (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 (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -4.1e+157) {
tmp = x / (a * (y + (y * b)));
} else if (b <= -9e+74) {
tmp = (b * (x / a)) / -y;
} else if (b <= -6e-200) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.1e-265) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.25e+191: tmp = (x * (b / -a)) / y elif b <= -4.1e+157: tmp = x / (a * (y + (y * b))) elif b <= -9e+74: tmp = (b * (x / a)) / -y elif b <= -6e-200: tmp = 1.0 / (a * (y / x)) elif b <= -1.1e-265: tmp = (b / y) * (x / -a) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.25e+191) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); elseif (b <= -4.1e+157) tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); elseif (b <= -9e+74) tmp = Float64(Float64(b * Float64(x / a)) / Float64(-y)); elseif (b <= -6e-200) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -1.1e-265) tmp = Float64(Float64(b / y) * Float64(x / Float64(-a))); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.25e+191) tmp = (x * (b / -a)) / y; elseif (b <= -4.1e+157) tmp = x / (a * (y + (y * b))); elseif (b <= -9e+74) tmp = (b * (x / a)) / -y; elseif (b <= -6e-200) tmp = 1.0 / (a * (y / x)); elseif (b <= -1.1e-265) tmp = (b / y) * (x / -a); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.25e+191], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -4.1e+157], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9e+74], N[(N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, -6e-200], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.1e-265], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{elif}\;b \leq -4.1 \cdot 10^{+157}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{elif}\;b \leq -9 \cdot 10^{+74}:\\
\;\;\;\;\frac{b \cdot \frac{x}{a}}{-y}\\
\mathbf{elif}\;b \leq -6 \cdot 10^{-200}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-265}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -1.25000000000000005e191Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 93.0%
Taylor expanded in b around 0 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in b around inf 69.0%
associate-*r/69.0%
associate-*r*69.0%
neg-mul-169.0%
associate-*l/69.0%
neg-mul-169.0%
associate-*r/69.0%
*-commutative69.0%
associate-*l*69.0%
mul-1-neg69.0%
Simplified69.0%
if -1.25000000000000005e191 < b < -4.10000000000000016e157Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum36.4%
associate-/l*36.4%
*-commutative36.4%
exp-to-pow36.4%
exp-diff27.3%
*-commutative27.3%
exp-to-pow27.3%
sub-neg27.3%
metadata-eval27.3%
Simplified27.3%
Taylor expanded in t around 0 27.4%
times-frac27.4%
Simplified27.4%
Taylor expanded in y around 0 28.4%
associate-*r*18.9%
Simplified18.9%
Taylor expanded in b around 0 45.7%
distribute-lft-out73.1%
*-commutative73.1%
Simplified73.1%
if -4.10000000000000016e157 < b < -8.9999999999999999e74Initial program 100.0%
Taylor expanded in y around 0 85.9%
div-exp62.1%
exp-to-pow62.1%
sub-neg62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around 0 62.5%
Taylor expanded in b around 0 35.6%
+-commutative35.6%
mul-1-neg35.6%
unsub-neg35.6%
associate-/l*44.7%
Simplified44.7%
Taylor expanded in b around inf 35.6%
associate-/l*44.7%
associate-*r*44.7%
neg-mul-144.7%
*-commutative44.7%
Simplified44.7%
if -8.9999999999999999e74 < b < -5.99999999999999989e-200Initial program 98.8%
associate-/l*95.4%
associate--l+95.4%
exp-sum85.0%
associate-/l*85.0%
*-commutative85.0%
exp-to-pow85.1%
exp-diff76.7%
*-commutative76.7%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around 0 63.0%
times-frac61.1%
Simplified61.1%
Taylor expanded in y around 0 43.1%
associate-*r*43.1%
Simplified43.1%
Taylor expanded in b around 0 34.8%
clear-num35.1%
inv-pow35.1%
Applied egg-rr35.1%
unpow-135.1%
associate-/l*43.0%
Simplified43.0%
if -5.99999999999999989e-200 < b < -1.10000000000000005e-265Initial program 99.0%
Taylor expanded in y around 0 41.3%
div-exp41.3%
exp-to-pow42.3%
sub-neg42.3%
metadata-eval42.3%
Simplified42.3%
Taylor expanded in t around 0 23.2%
Taylor expanded in b around 0 23.2%
+-commutative23.2%
mul-1-neg23.2%
unsub-neg23.2%
associate-/l*23.2%
Simplified23.2%
Taylor expanded in b around inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
times-frac61.6%
distribute-rgt-neg-in61.6%
Simplified61.6%
if -1.10000000000000005e-265 < b Initial program 97.3%
Taylor expanded in y around 0 81.7%
div-exp71.6%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 38.4%
Final simplification45.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.25e+191)
(/ (* x (/ b (- a))) y)
(if (<= b -4.2e+158)
(/ x (* a (+ y (* y b))))
(if (<= b 5.6e-297)
(/ (* b (- (/ x (* a b)) (/ x a))) y)
(/ (/ x (+ a (* a b))) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -4.2e+158) {
tmp = x / (a * (y + (y * b)));
} else if (b <= 5.6e-297) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = (x / (a + (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 (b <= (-1.25d+191)) then
tmp = (x * (b / -a)) / y
else if (b <= (-4.2d+158)) then
tmp = x / (a * (y + (y * b)))
else if (b <= 5.6d-297) then
tmp = (b * ((x / (a * b)) - (x / a))) / y
else
tmp = (x / (a + (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 (b <= -1.25e+191) {
tmp = (x * (b / -a)) / y;
} else if (b <= -4.2e+158) {
tmp = x / (a * (y + (y * b)));
} else if (b <= 5.6e-297) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.25e+191: tmp = (x * (b / -a)) / y elif b <= -4.2e+158: tmp = x / (a * (y + (y * b))) elif b <= 5.6e-297: tmp = (b * ((x / (a * b)) - (x / a))) / y else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.25e+191) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); elseif (b <= -4.2e+158) tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); elseif (b <= 5.6e-297) tmp = Float64(Float64(b * Float64(Float64(x / Float64(a * b)) - Float64(x / a))) / y); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.25e+191) tmp = (x * (b / -a)) / y; elseif (b <= -4.2e+158) tmp = x / (a * (y + (y * b))); elseif (b <= 5.6e-297) tmp = (b * ((x / (a * b)) - (x / a))) / y; else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.25e+191], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -4.2e+158], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e-297], N[(N[(b * N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+191}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{+158}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{-297}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -1.25000000000000005e191Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 93.0%
Taylor expanded in b around 0 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in b around inf 69.0%
associate-*r/69.0%
associate-*r*69.0%
neg-mul-169.0%
associate-*l/69.0%
neg-mul-169.0%
associate-*r/69.0%
*-commutative69.0%
associate-*l*69.0%
mul-1-neg69.0%
Simplified69.0%
if -1.25000000000000005e191 < b < -4.1999999999999998e158Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum36.4%
associate-/l*36.4%
*-commutative36.4%
exp-to-pow36.4%
exp-diff27.3%
*-commutative27.3%
exp-to-pow27.3%
sub-neg27.3%
metadata-eval27.3%
Simplified27.3%
Taylor expanded in t around 0 27.4%
times-frac27.4%
Simplified27.4%
Taylor expanded in y around 0 28.4%
associate-*r*18.9%
Simplified18.9%
Taylor expanded in b around 0 45.7%
distribute-lft-out73.1%
*-commutative73.1%
Simplified73.1%
if -4.1999999999999998e158 < b < 5.59999999999999968e-297Initial program 98.1%
Taylor expanded in y around 0 74.7%
div-exp64.3%
exp-to-pow64.8%
sub-neg64.8%
metadata-eval64.8%
Simplified64.8%
Taylor expanded in t around 0 46.6%
Taylor expanded in b around 0 34.8%
+-commutative34.8%
mul-1-neg34.8%
unsub-neg34.8%
associate-/l*36.9%
Simplified36.9%
Taylor expanded in b around inf 40.6%
if 5.59999999999999968e-297 < b Initial program 97.9%
Taylor expanded in y around 0 82.8%
div-exp72.1%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in t around 0 59.4%
Taylor expanded in b around 0 38.0%
Final simplification43.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (+ y (* y b))))))
(if (<= y -3.6e-13)
t_1
(if (<= y 370000000000.0)
(/ (- x (* x b)) (* y a))
(if (<= y 4.7e+94) (/ (* x (/ b (- a))) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double tmp;
if (y <= -3.6e-13) {
tmp = t_1;
} else if (y <= 370000000000.0) {
tmp = (x - (x * b)) / (y * a);
} else if (y <= 4.7e+94) {
tmp = (x * (b / -a)) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a * (y + (y * b)))
if (y <= (-3.6d-13)) then
tmp = t_1
else if (y <= 370000000000.0d0) then
tmp = (x - (x * b)) / (y * a)
else if (y <= 4.7d+94) then
tmp = (x * (b / -a)) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double tmp;
if (y <= -3.6e-13) {
tmp = t_1;
} else if (y <= 370000000000.0) {
tmp = (x - (x * b)) / (y * a);
} else if (y <= 4.7e+94) {
tmp = (x * (b / -a)) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y + (y * b))) tmp = 0 if y <= -3.6e-13: tmp = t_1 elif y <= 370000000000.0: tmp = (x - (x * b)) / (y * a) elif y <= 4.7e+94: tmp = (x * (b / -a)) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y + Float64(y * b)))) tmp = 0.0 if (y <= -3.6e-13) tmp = t_1; elseif (y <= 370000000000.0) tmp = Float64(Float64(x - Float64(x * b)) / Float64(y * a)); elseif (y <= 4.7e+94) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y + (y * b))); tmp = 0.0; if (y <= -3.6e-13) tmp = t_1; elseif (y <= 370000000000.0) tmp = (x - (x * b)) / (y * a); elseif (y <= 4.7e+94) tmp = (x * (b / -a)) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e-13], t$95$1, If[LessEqual[y, 370000000000.0], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e+94], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 370000000000:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{elif}\;y \leq 4.7 \cdot 10^{+94}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.5999999999999998e-13 or 4.70000000000000017e94 < y Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum58.5%
associate-/l*57.6%
*-commutative57.6%
exp-to-pow57.6%
exp-diff48.9%
*-commutative48.9%
exp-to-pow49.0%
sub-neg49.0%
metadata-eval49.0%
Simplified49.0%
Taylor expanded in t around 0 54.0%
times-frac49.1%
Simplified49.1%
Taylor expanded in y around 0 44.7%
associate-*r*37.9%
Simplified37.9%
Taylor expanded in b around 0 33.4%
distribute-lft-out39.2%
*-commutative39.2%
Simplified39.2%
if -3.5999999999999998e-13 < y < 3.7e11Initial program 96.8%
Taylor expanded in y around 0 95.9%
div-exp83.7%
exp-to-pow84.6%
sub-neg84.6%
metadata-eval84.6%
Simplified84.6%
Taylor expanded in t around 0 68.1%
Taylor expanded in b around 0 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
associate-/l*45.7%
Simplified45.7%
Taylor expanded in a around 0 43.7%
if 3.7e11 < y < 4.70000000000000017e94Initial program 100.0%
Taylor expanded in y around 0 58.8%
div-exp44.5%
exp-to-pow44.5%
sub-neg44.5%
metadata-eval44.5%
Simplified44.5%
Taylor expanded in t around 0 35.7%
Taylor expanded in b around 0 7.7%
+-commutative7.7%
mul-1-neg7.7%
unsub-neg7.7%
associate-/l*7.7%
Simplified7.7%
Taylor expanded in b around inf 30.6%
associate-*r/30.6%
associate-*r*30.6%
neg-mul-130.6%
associate-*l/31.0%
neg-mul-131.0%
associate-*r/31.0%
*-commutative31.0%
associate-*l*31.0%
mul-1-neg31.0%
Simplified31.0%
Final simplification40.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ b y) (/ x (- a)))))
(if (<= b -3.1e+191)
t_1
(if (<= b -8e-213)
(/ 1.0 (* a (/ y x)))
(if (<= b -1.1e-265) t_1 (/ (/ x a) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b / y) * (x / -a);
double tmp;
if (b <= -3.1e+191) {
tmp = t_1;
} else if (b <= -8e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.1e-265) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (b / y) * (x / -a)
if (b <= (-3.1d+191)) then
tmp = t_1
else if (b <= (-8d-213)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-1.1d-265)) then
tmp = t_1
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 t_1 = (b / y) * (x / -a);
double tmp;
if (b <= -3.1e+191) {
tmp = t_1;
} else if (b <= -8e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.1e-265) {
tmp = t_1;
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (b / y) * (x / -a) tmp = 0 if b <= -3.1e+191: tmp = t_1 elif b <= -8e-213: tmp = 1.0 / (a * (y / x)) elif b <= -1.1e-265: tmp = t_1 else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(b / y) * Float64(x / Float64(-a))) tmp = 0.0 if (b <= -3.1e+191) tmp = t_1; elseif (b <= -8e-213) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -1.1e-265) tmp = t_1; else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (b / y) * (x / -a); tmp = 0.0; if (b <= -3.1e+191) tmp = t_1; elseif (b <= -8e-213) tmp = 1.0 / (a * (y / x)); elseif (b <= -1.1e-265) tmp = t_1; else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+191], t$95$1, If[LessEqual[b, -8e-213], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.1e-265], t$95$1, N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+191}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-213}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -3.09999999999999999e191 or -7.9999999999999996e-213 < b < -1.10000000000000005e-265Initial program 99.7%
Taylor expanded in y around 0 79.4%
div-exp66.2%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in t around 0 74.6%
Taylor expanded in b around 0 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
associate-/l*51.9%
Simplified51.9%
Taylor expanded in b around inf 60.5%
mul-1-neg60.5%
*-commutative60.5%
times-frac62.0%
distribute-rgt-neg-in62.0%
Simplified62.0%
if -3.09999999999999999e191 < b < -7.9999999999999996e-213Initial program 99.3%
associate-/l*97.3%
associate--l+97.3%
exp-sum76.0%
associate-/l*76.0%
*-commutative76.0%
exp-to-pow76.0%
exp-diff63.5%
*-commutative63.5%
exp-to-pow63.8%
sub-neg63.8%
metadata-eval63.8%
Simplified63.8%
Taylor expanded in t around 0 55.4%
times-frac53.0%
Simplified53.0%
Taylor expanded in y around 0 46.1%
associate-*r*42.3%
Simplified42.3%
Taylor expanded in b around 0 36.7%
clear-num36.9%
inv-pow36.9%
Applied egg-rr36.9%
unpow-136.9%
associate-/l*40.5%
Simplified40.5%
if -1.10000000000000005e-265 < b Initial program 97.3%
Taylor expanded in y around 0 81.7%
div-exp71.6%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 30.5%
Final simplification38.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -6.5e+103)
(/ (* x (/ b (- a))) y)
(if (<= b -2.3e-213)
(/ 1.0 (* a (/ y x)))
(if (<= b -1.45e-269) (* (/ b y) (/ x (- a))) (/ (/ x a) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e+103) {
tmp = (x * (b / -a)) / y;
} else if (b <= -2.3e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.45e-269) {
tmp = (b / y) * (x / -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 (b <= (-6.5d+103)) then
tmp = (x * (b / -a)) / y
else if (b <= (-2.3d-213)) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= (-1.45d-269)) then
tmp = (b / y) * (x / -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 (b <= -6.5e+103) {
tmp = (x * (b / -a)) / y;
} else if (b <= -2.3e-213) {
tmp = 1.0 / (a * (y / x));
} else if (b <= -1.45e-269) {
tmp = (b / y) * (x / -a);
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.5e+103: tmp = (x * (b / -a)) / y elif b <= -2.3e-213: tmp = 1.0 / (a * (y / x)) elif b <= -1.45e-269: tmp = (b / y) * (x / -a) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.5e+103) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); elseif (b <= -2.3e-213) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= -1.45e-269) tmp = Float64(Float64(b / y) * Float64(x / Float64(-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 (b <= -6.5e+103) tmp = (x * (b / -a)) / y; elseif (b <= -2.3e-213) tmp = 1.0 / (a * (y / x)); elseif (b <= -1.45e-269) tmp = (b / y) * (x / -a); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e+103], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -2.3e-213], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e-269], N[(N[(b / y), $MachinePrecision] * N[(x / (-a)), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{+103}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-213}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-269}:\\
\;\;\;\;\frac{b}{y} \cdot \frac{x}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -6.50000000000000001e103Initial program 100.0%
Taylor expanded in y around 0 81.9%
div-exp67.6%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 77.9%
Taylor expanded in b around 0 54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
associate-/l*50.8%
Simplified50.8%
Taylor expanded in b around inf 54.6%
associate-*r/54.6%
associate-*r*54.6%
neg-mul-154.6%
associate-*l/56.6%
neg-mul-156.6%
associate-*r/56.6%
*-commutative56.6%
associate-*l*56.6%
mul-1-neg56.6%
Simplified56.6%
if -6.50000000000000001e103 < b < -2.30000000000000003e-213Initial program 99.0%
associate-/l*96.3%
associate--l+96.3%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.8%
exp-diff67.5%
*-commutative67.5%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
Simplified67.9%
Taylor expanded in t around 0 56.5%
times-frac54.9%
Simplified54.9%
Taylor expanded in y around 0 42.0%
associate-*r*40.3%
Simplified40.3%
Taylor expanded in b around 0 35.5%
clear-num35.7%
inv-pow35.7%
Applied egg-rr35.7%
unpow-135.7%
associate-/l*42.1%
Simplified42.1%
if -2.30000000000000003e-213 < b < -1.45e-269Initial program 99.0%
Taylor expanded in y around 0 41.3%
div-exp41.3%
exp-to-pow42.3%
sub-neg42.3%
metadata-eval42.3%
Simplified42.3%
Taylor expanded in t around 0 23.2%
Taylor expanded in b around 0 23.2%
+-commutative23.2%
mul-1-neg23.2%
unsub-neg23.2%
associate-/l*23.2%
Simplified23.2%
Taylor expanded in b around inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
times-frac61.6%
distribute-rgt-neg-in61.6%
Simplified61.6%
if -1.45e-269 < b Initial program 97.3%
Taylor expanded in y around 0 81.7%
div-exp71.6%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 30.5%
Final simplification39.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.5e-274) (/ 1.0 (* a (/ y x))) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.5e-274) {
tmp = 1.0 / (a * (y / x));
} 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 <= (-3.5d-274)) then
tmp = 1.0d0 / (a * (y / x))
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 <= -3.5e-274) {
tmp = 1.0 / (a * (y / x));
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.5e-274: tmp = 1.0 / (a * (y / x)) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.5e-274) tmp = Float64(1.0 / Float64(a * Float64(y / x))); 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 <= -3.5e-274) tmp = 1.0 / (a * (y / x)); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.5e-274], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{-274}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -3.49999999999999982e-274Initial program 98.7%
associate-/l*98.0%
associate--l+98.0%
exp-sum75.3%
associate-/l*75.3%
*-commutative75.3%
exp-to-pow75.3%
exp-diff64.4%
*-commutative64.4%
exp-to-pow64.8%
sub-neg64.8%
metadata-eval64.8%
Simplified64.8%
Taylor expanded in t around 0 61.7%
times-frac59.2%
Simplified59.2%
Taylor expanded in y around 0 56.5%
associate-*r*50.6%
Simplified50.6%
Taylor expanded in b around 0 36.4%
clear-num36.5%
inv-pow36.5%
Applied egg-rr36.5%
unpow-136.5%
associate-/l*38.2%
Simplified38.2%
if -3.49999999999999982e-274 < b Initial program 98.0%
Taylor expanded in y around 0 82.3%
div-exp72.1%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in t around 0 59.0%
Taylor expanded in b around 0 30.7%
Final simplification34.2%
(FPCore (x y z t a b) :precision binary64 (if (<= a 1.95e-117) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 1.95e-117) {
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 <= 1.95d-117) 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 <= 1.95e-117) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 1.95e-117: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 1.95e-117) 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 <= 1.95e-117) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 1.95e-117], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.95 \cdot 10^{-117}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 1.94999999999999996e-117Initial program 99.2%
Taylor expanded in y around 0 79.3%
div-exp70.3%
exp-to-pow70.7%
sub-neg70.7%
metadata-eval70.7%
Simplified70.7%
Taylor expanded in t around 0 62.3%
Taylor expanded in b around 0 38.8%
if 1.94999999999999996e-117 < a Initial program 97.9%
associate-/l*99.3%
associate--l+99.3%
exp-sum78.5%
associate-/l*77.9%
*-commutative77.9%
exp-to-pow77.9%
exp-diff66.1%
*-commutative66.1%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
Simplified66.8%
Taylor expanded in t around 0 59.1%
times-frac55.8%
Simplified55.8%
Taylor expanded in y around 0 56.9%
associate-*r*52.3%
Simplified52.3%
Taylor expanded in b around 0 31.9%
Final simplification34.0%
(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.3%
associate-/l*98.0%
associate--l+98.0%
exp-sum77.7%
associate-/l*77.3%
*-commutative77.3%
exp-to-pow77.3%
exp-diff67.1%
*-commutative67.1%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 61.9%
times-frac57.6%
Simplified57.6%
Taylor expanded in y around 0 56.0%
associate-*r*51.7%
Simplified51.7%
Taylor expanded in b around 0 31.5%
Final simplification31.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024084
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(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))