
(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 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + (log(a) * (t + (-1.0d0)))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 98.3%
Final simplification98.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6.4e+69) (not (<= y 2e+121))) (* x (/ (exp (- (- (* y (log z)) (log a)) b)) y)) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6.4e+69) || !(y <= 2e+121)) {
tmp = x * (exp((((y * log(z)) - log(a)) - b)) / y);
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-6.4d+69)) .or. (.not. (y <= 2d+121))) then
tmp = x * (exp((((y * log(z)) - log(a)) - b)) / y)
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6.4e+69) || !(y <= 2e+121)) {
tmp = x * (Math.exp((((y * Math.log(z)) - Math.log(a)) - b)) / y);
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6.4e+69) or not (y <= 2e+121): tmp = x * (math.exp((((y * math.log(z)) - math.log(a)) - b)) / y) else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6.4e+69) || !(y <= 2e+121)) tmp = Float64(x * Float64(exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b)) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -6.4e+69) || ~((y <= 2e+121))) tmp = x * (exp((((y * log(z)) - log(a)) - b)) / y); else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.4e+69], N[Not[LessEqual[y, 2e+121]], $MachinePrecision]], N[(x * N[(N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.4 \cdot 10^{+69} \lor \neg \left(y \leq 2 \cdot 10^{+121}\right):\\
\;\;\;\;x \cdot \frac{e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -6.3999999999999997e69 or 2.00000000000000007e121 < y Initial program 100.0%
*-commutative100.0%
associate-/l*85.5%
associate--l+85.5%
fma-define85.5%
sub-neg85.5%
metadata-eval85.5%
Simplified85.5%
Taylor expanded in t around 0 96.1%
associate-/l*96.1%
+-commutative96.1%
mul-1-neg96.1%
unsub-neg96.1%
Simplified96.1%
if -6.3999999999999997e69 < y < 2.00000000000000007e121Initial program 97.5%
*-commutative97.5%
associate-/l*86.2%
associate--l+86.2%
fma-define86.2%
sub-neg86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in y around 0 95.1%
Final simplification95.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow a (+ t -1.0)) (exp b)) y))))
(if (<= y -7.5e+16)
(* (exp (* y (log z))) (/ x y))
(if (<= y 6e-209)
t_1
(if (<= y 2.3e-143)
(/ (* x (/ 1.0 (* a (exp b)))) y)
(if (<= y 1.15e+142) t_1 (* (/ x a) (/ (pow z y) y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(a, (t + -1.0)) / exp(b)) / y);
double tmp;
if (y <= -7.5e+16) {
tmp = exp((y * log(z))) * (x / y);
} else if (y <= 6e-209) {
tmp = t_1;
} else if (y <= 2.3e-143) {
tmp = (x * (1.0 / (a * exp(b)))) / y;
} else if (y <= 1.15e+142) {
tmp = t_1;
} else {
tmp = (x / a) * (pow(z, y) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (((a ** (t + (-1.0d0))) / exp(b)) / y)
if (y <= (-7.5d+16)) then
tmp = exp((y * log(z))) * (x / y)
else if (y <= 6d-209) then
tmp = t_1
else if (y <= 2.3d-143) then
tmp = (x * (1.0d0 / (a * exp(b)))) / y
else if (y <= 1.15d+142) then
tmp = t_1
else
tmp = (x / a) * ((z ** y) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(a, (t + -1.0)) / Math.exp(b)) / y);
double tmp;
if (y <= -7.5e+16) {
tmp = Math.exp((y * Math.log(z))) * (x / y);
} else if (y <= 6e-209) {
tmp = t_1;
} else if (y <= 2.3e-143) {
tmp = (x * (1.0 / (a * Math.exp(b)))) / y;
} else if (y <= 1.15e+142) {
tmp = t_1;
} else {
tmp = (x / a) * (Math.pow(z, y) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(a, (t + -1.0)) / math.exp(b)) / y) tmp = 0 if y <= -7.5e+16: tmp = math.exp((y * math.log(z))) * (x / y) elif y <= 6e-209: tmp = t_1 elif y <= 2.3e-143: tmp = (x * (1.0 / (a * math.exp(b)))) / y elif y <= 1.15e+142: tmp = t_1 else: tmp = (x / a) * (math.pow(z, y) / y) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((a ^ Float64(t + -1.0)) / exp(b)) / y)) tmp = 0.0 if (y <= -7.5e+16) tmp = Float64(exp(Float64(y * log(z))) * Float64(x / y)); elseif (y <= 6e-209) tmp = t_1; elseif (y <= 2.3e-143) tmp = Float64(Float64(x * Float64(1.0 / Float64(a * exp(b)))) / y); elseif (y <= 1.15e+142) tmp = t_1; else tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((a ^ (t + -1.0)) / exp(b)) / y); tmp = 0.0; if (y <= -7.5e+16) tmp = exp((y * log(z))) * (x / y); elseif (y <= 6e-209) tmp = t_1; elseif (y <= 2.3e-143) tmp = (x * (1.0 / (a * exp(b)))) / y; elseif (y <= 1.15e+142) tmp = t_1; else tmp = (x / a) * ((z ^ y) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e+16], N[(N[Exp[N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-209], t$95$1, If[LessEqual[y, 2.3e-143], N[(N[(x * N[(1.0 / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.15e+142], t$95$1, N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+16}:\\
\;\;\;\;e^{y \cdot \log z} \cdot \frac{x}{y}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-143}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\end{array}
\end{array}
if y < -7.5e16Initial program 100.0%
*-commutative100.0%
associate-/l*87.5%
associate--l+87.5%
fma-define87.5%
sub-neg87.5%
metadata-eval87.5%
Simplified87.5%
Taylor expanded in y around inf 73.1%
if -7.5e16 < y < 5.9999999999999997e-209 or 2.30000000000000011e-143 < y < 1.15000000000000001e142Initial program 97.4%
*-commutative97.4%
associate-/l*86.4%
associate--l+86.4%
fma-define86.4%
sub-neg86.4%
metadata-eval86.4%
Simplified86.4%
Taylor expanded in y around 0 95.3%
associate-/l*95.2%
div-exp83.3%
exp-to-pow84.0%
sub-neg84.0%
metadata-eval84.0%
Simplified84.0%
if 5.9999999999999997e-209 < y < 2.30000000000000011e-143Initial program 98.6%
*-commutative98.6%
associate-/l*81.0%
associate--l+81.0%
fma-define81.0%
sub-neg81.0%
metadata-eval81.0%
Simplified81.0%
Taylor expanded in y around 0 98.6%
Taylor expanded in t around 0 64.0%
*-commutative64.0%
exp-diff64.0%
mul-1-neg64.0%
log-rec64.0%
rem-exp-log65.3%
associate-/l/65.3%
*-commutative65.3%
Simplified65.3%
if 1.15000000000000001e142 < y Initial program 100.0%
Applied egg-rr59.4%
Taylor expanded in t around 0 68.8%
Taylor expanded in b around 0 87.5%
times-frac93.8%
Simplified93.8%
Final simplification81.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4.2e+223) (not (<= y 1.4e+144))) (* (/ x a) (/ (pow z y) y)) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.2e+223) || !(y <= 1.4e+144)) {
tmp = (x / a) * (pow(z, y) / y);
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-4.2d+223)) .or. (.not. (y <= 1.4d+144))) then
tmp = (x / a) * ((z ** y) / y)
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.2e+223) || !(y <= 1.4e+144)) {
tmp = (x / a) * (Math.pow(z, y) / y);
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4.2e+223) or not (y <= 1.4e+144): tmp = (x / a) * (math.pow(z, y) / y) else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4.2e+223) || !(y <= 1.4e+144)) tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -4.2e+223) || ~((y <= 1.4e+144))) tmp = (x / a) * ((z ^ y) / y); else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4.2e+223], N[Not[LessEqual[y, 1.4e+144]], $MachinePrecision]], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+223} \lor \neg \left(y \leq 1.4 \cdot 10^{+144}\right):\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -4.19999999999999981e223 or 1.40000000000000003e144 < y Initial program 100.0%
Applied egg-rr51.2%
Taylor expanded in t around 0 61.0%
Taylor expanded in b around 0 80.5%
times-frac95.2%
Simplified95.2%
if -4.19999999999999981e223 < y < 1.40000000000000003e144Initial program 97.9%
*-commutative97.9%
associate-/l*85.7%
associate--l+85.7%
fma-define85.7%
sub-neg85.7%
metadata-eval85.7%
Simplified85.7%
Taylor expanded in y around 0 92.3%
Final simplification92.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a (+ t -1.0)) y))))
(if (<= t -9e+70)
t_1
(if (<= t 1.08e-134)
(* x (/ (pow z y) (* a (* y (exp b)))))
(if (<= t 2e+33) (/ (* x (/ 1.0 (* 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 <= -9e+70) {
tmp = t_1;
} else if (t <= 1.08e-134) {
tmp = x * (pow(z, y) / (a * (y * exp(b))));
} else if (t <= 2e+33) {
tmp = (x * (1.0 / (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 <= (-9d+70)) then
tmp = t_1
else if (t <= 1.08d-134) then
tmp = x * ((z ** y) / (a * (y * exp(b))))
else if (t <= 2d+33) then
tmp = (x * (1.0d0 / (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 <= -9e+70) {
tmp = t_1;
} else if (t <= 1.08e-134) {
tmp = x * (Math.pow(z, y) / (a * (y * Math.exp(b))));
} else if (t <= 2e+33) {
tmp = (x * (1.0 / (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 <= -9e+70: tmp = t_1 elif t <= 1.08e-134: tmp = x * (math.pow(z, y) / (a * (y * math.exp(b)))) elif t <= 2e+33: tmp = (x * (1.0 / (a * math.exp(b)))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) tmp = 0.0 if (t <= -9e+70) tmp = t_1; elseif (t <= 1.08e-134) tmp = Float64(x * Float64((z ^ y) / Float64(a * Float64(y * exp(b))))); elseif (t <= 2e+33) tmp = Float64(Float64(x * Float64(1.0 / 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 <= -9e+70) tmp = t_1; elseif (t <= 1.08e-134) tmp = x * ((z ^ y) / (a * (y * exp(b)))); elseif (t <= 2e+33) tmp = (x * (1.0 / (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[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9e+70], t$95$1, If[LessEqual[t, 1.08e-134], N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+33], N[(N[(x * N[(1.0 / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -9 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{-134}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+33}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.9999999999999999e70 or 1.9999999999999999e33 < t Initial program 100.0%
*-commutative100.0%
associate-/l*81.4%
associate--l+81.4%
fma-define81.4%
sub-neg81.4%
metadata-eval81.4%
Simplified81.4%
Taylor expanded in y around 0 90.4%
associate-/l*90.4%
div-exp63.0%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
Simplified63.0%
Taylor expanded in b around 0 78.2%
exp-to-pow78.2%
sub-neg78.2%
metadata-eval78.2%
Simplified78.2%
if -8.9999999999999999e70 < t < 1.07999999999999999e-134Initial program 97.2%
associate-/l*98.9%
associate--l+98.9%
exp-sum88.1%
associate-/l*87.1%
*-commutative87.1%
exp-to-pow87.1%
exp-diff87.1%
*-commutative87.1%
exp-to-pow88.1%
sub-neg88.1%
metadata-eval88.1%
Simplified88.1%
Taylor expanded in t around 0 89.2%
if 1.07999999999999999e-134 < t < 1.9999999999999999e33Initial program 96.0%
*-commutative96.0%
associate-/l*86.3%
associate--l+86.3%
fma-define86.3%
sub-neg86.3%
metadata-eval86.3%
Simplified86.3%
Taylor expanded in y around 0 81.6%
Taylor expanded in t around 0 76.9%
*-commutative76.9%
exp-diff77.0%
mul-1-neg77.0%
log-rec77.0%
rem-exp-log78.5%
associate-/l/78.5%
*-commutative78.5%
Simplified78.5%
Final simplification82.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y (exp b)))))
(if (<= b -9.8e+39)
t_1
(if (<= b 3.4e-271)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(if (<= b 7.5e-8) (/ x (* a (+ y (* b (+ y (* 0.5 (* y b))))))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * exp(b));
double tmp;
if (b <= -9.8e+39) {
tmp = t_1;
} else if (b <= 3.4e-271) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else if (b <= 7.5e-8) {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * exp(b))
if (b <= (-9.8d+39)) then
tmp = t_1
else if (b <= 3.4d-271) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else if (b <= 7.5d-8) then
tmp = x / (a * (y + (b * (y + (0.5d0 * (y * b))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * Math.exp(b));
double tmp;
if (b <= -9.8e+39) {
tmp = t_1;
} else if (b <= 3.4e-271) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else if (b <= 7.5e-8) {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * math.exp(b)) tmp = 0 if b <= -9.8e+39: tmp = t_1 elif b <= 3.4e-271: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) elif b <= 7.5e-8: tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * exp(b))) tmp = 0.0 if (b <= -9.8e+39) tmp = t_1; elseif (b <= 3.4e-271) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); elseif (b <= 7.5e-8) tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(0.5 * Float64(y * b))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * exp(b)); tmp = 0.0; if (b <= -9.8e+39) tmp = t_1; elseif (b <= 3.4e-271) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); elseif (b <= 7.5e-8) tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.8e+39], t$95$1, If[LessEqual[b, 3.4e-271], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e-8], N[(x / N[(a * N[(y + N[(b * N[(y + N[(0.5 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot e^{b}}\\
\mathbf{if}\;b \leq -9.8 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-271}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-8}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + 0.5 \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -9.79999999999999974e39 or 7.4999999999999997e-8 < b Initial program 100.0%
*-commutative100.0%
associate-/l*85.5%
associate--l+85.5%
fma-define85.5%
sub-neg85.5%
metadata-eval85.5%
Simplified85.5%
Taylor expanded in b around inf 69.7%
neg-mul-169.7%
Simplified69.7%
exp-neg69.7%
frac-times82.0%
*-un-lft-identity82.0%
*-commutative82.0%
Applied egg-rr82.0%
if -9.79999999999999974e39 < b < 3.4000000000000001e-271Initial program 97.9%
*-commutative97.9%
associate-/l*87.6%
associate--l+87.6%
fma-define87.6%
sub-neg87.6%
metadata-eval87.6%
Simplified87.6%
Taylor expanded in y around 0 75.4%
Taylor expanded in t around 0 34.2%
*-commutative34.2%
exp-diff34.2%
mul-1-neg34.2%
log-rec34.2%
rem-exp-log34.9%
associate-/l/34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in b around 0 35.0%
+-commutative35.0%
mul-1-neg35.0%
unsub-neg35.0%
associate-/l*35.0%
Simplified35.0%
Taylor expanded in b around inf 44.3%
mul-1-neg44.3%
+-commutative44.3%
unsub-neg44.3%
*-commutative44.3%
*-commutative44.3%
associate-*l*45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
if 3.4000000000000001e-271 < b < 7.4999999999999997e-8Initial program 94.0%
*-commutative94.0%
associate-/l*84.7%
associate--l+84.7%
fma-define84.7%
sub-neg84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in y around 0 74.5%
associate-/l*74.3%
div-exp74.4%
exp-to-pow76.1%
sub-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in t around 0 43.9%
Taylor expanded in b around 0 43.9%
*-commutative43.9%
Simplified43.9%
Final simplification63.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))))
(if (<= b -1.45e+87)
(/ x t_1)
(if (<= b 8e-20) (* x (/ (pow a (+ t -1.0)) y)) (/ x (* a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double tmp;
if (b <= -1.45e+87) {
tmp = x / t_1;
} else if (b <= 8e-20) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else {
tmp = x / (a * 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 = y * exp(b)
if (b <= (-1.45d+87)) then
tmp = x / t_1
else if (b <= 8d-20) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else
tmp = x / (a * 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 = y * Math.exp(b);
double tmp;
if (b <= -1.45e+87) {
tmp = x / t_1;
} else if (b <= 8e-20) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else {
tmp = x / (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) tmp = 0 if b <= -1.45e+87: tmp = x / t_1 elif b <= 8e-20: tmp = x * (math.pow(a, (t + -1.0)) / y) else: tmp = x / (a * t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) tmp = 0.0 if (b <= -1.45e+87) tmp = Float64(x / t_1); elseif (b <= 8e-20) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); else tmp = Float64(x / Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); tmp = 0.0; if (b <= -1.45e+87) tmp = x / t_1; elseif (b <= 8e-20) tmp = x * ((a ^ (t + -1.0)) / y); else tmp = x / (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.45e+87], N[(x / t$95$1), $MachinePrecision], If[LessEqual[b, 8e-20], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
\mathbf{if}\;b \leq -1.45 \cdot 10^{+87}:\\
\;\;\;\;\frac{x}{t\_1}\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-20}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot t\_1}\\
\end{array}
\end{array}
if b < -1.4499999999999999e87Initial program 100.0%
*-commutative100.0%
associate-/l*96.6%
associate--l+96.6%
fma-define96.6%
sub-neg96.6%
metadata-eval96.6%
Simplified96.6%
Taylor expanded in b around inf 82.9%
neg-mul-182.9%
Simplified82.9%
exp-neg82.9%
frac-times84.7%
*-un-lft-identity84.7%
*-commutative84.7%
Applied egg-rr84.7%
if -1.4499999999999999e87 < b < 7.99999999999999956e-20Initial program 96.6%
*-commutative96.6%
associate-/l*86.9%
associate--l+86.9%
fma-define86.9%
sub-neg86.9%
metadata-eval86.9%
Simplified86.9%
Taylor expanded in y around 0 75.5%
associate-/l*74.8%
div-exp70.9%
exp-to-pow71.8%
sub-neg71.8%
metadata-eval71.8%
Simplified71.8%
Taylor expanded in b around 0 72.6%
exp-to-pow73.6%
sub-neg73.6%
metadata-eval73.6%
Simplified73.6%
if 7.99999999999999956e-20 < b Initial program 99.9%
*-commutative99.9%
associate-/l*75.9%
associate--l+75.9%
fma-define75.9%
sub-neg75.9%
metadata-eval75.9%
Simplified75.9%
Taylor expanded in y around 0 88.8%
associate-/l*88.8%
div-exp64.8%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around 0 83.3%
Final simplification78.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))))
(if (<= b -3.9e+86)
(/ x t_1)
(if (<= b 8e-20) (/ (* x (pow a (+ t -1.0))) y) (/ x (* a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double tmp;
if (b <= -3.9e+86) {
tmp = x / t_1;
} else if (b <= 8e-20) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else {
tmp = x / (a * 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 = y * exp(b)
if (b <= (-3.9d+86)) then
tmp = x / t_1
else if (b <= 8d-20) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else
tmp = x / (a * 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 = y * Math.exp(b);
double tmp;
if (b <= -3.9e+86) {
tmp = x / t_1;
} else if (b <= 8e-20) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else {
tmp = x / (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) tmp = 0 if b <= -3.9e+86: tmp = x / t_1 elif b <= 8e-20: tmp = (x * math.pow(a, (t + -1.0))) / y else: tmp = x / (a * t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) tmp = 0.0 if (b <= -3.9e+86) tmp = Float64(x / t_1); elseif (b <= 8e-20) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); else tmp = Float64(x / Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); tmp = 0.0; if (b <= -3.9e+86) tmp = x / t_1; elseif (b <= 8e-20) tmp = (x * (a ^ (t + -1.0))) / y; else tmp = x / (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.9e+86], N[(x / t$95$1), $MachinePrecision], If[LessEqual[b, 8e-20], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
\mathbf{if}\;b \leq -3.9 \cdot 10^{+86}:\\
\;\;\;\;\frac{x}{t\_1}\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-20}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot t\_1}\\
\end{array}
\end{array}
if b < -3.9000000000000002e86Initial program 100.0%
*-commutative100.0%
associate-/l*96.6%
associate--l+96.6%
fma-define96.6%
sub-neg96.6%
metadata-eval96.6%
Simplified96.6%
Taylor expanded in b around inf 82.9%
neg-mul-182.9%
Simplified82.9%
exp-neg82.9%
frac-times84.7%
*-un-lft-identity84.7%
*-commutative84.7%
Applied egg-rr84.7%
if -3.9000000000000002e86 < b < 7.99999999999999956e-20Initial program 96.6%
*-commutative96.6%
associate-/l*86.9%
associate--l+86.9%
fma-define86.9%
sub-neg86.9%
metadata-eval86.9%
Simplified86.9%
Taylor expanded in y around 0 75.5%
Taylor expanded in b around 0 72.6%
exp-to-pow73.6%
sub-neg73.6%
metadata-eval73.6%
+-commutative73.6%
Simplified73.6%
if 7.99999999999999956e-20 < b Initial program 99.9%
*-commutative99.9%
associate-/l*75.9%
associate--l+75.9%
fma-define75.9%
sub-neg75.9%
metadata-eval75.9%
Simplified75.9%
Taylor expanded in y around 0 88.8%
associate-/l*88.8%
div-exp64.8%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around 0 83.3%
Final simplification78.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b))))
(if (<= b -9.8e+39)
(/ x t_1)
(if (<= b 6.5e-274)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/ x (* a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double tmp;
if (b <= -9.8e+39) {
tmp = x / t_1;
} else if (b <= 6.5e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * 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 = y * exp(b)
if (b <= (-9.8d+39)) then
tmp = x / t_1
else if (b <= 6.5d-274) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = x / (a * 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 = y * Math.exp(b);
double tmp;
if (b <= -9.8e+39) {
tmp = x / t_1;
} else if (b <= 6.5e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) tmp = 0 if b <= -9.8e+39: tmp = x / t_1 elif b <= 6.5e-274: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = x / (a * t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) tmp = 0.0 if (b <= -9.8e+39) tmp = Float64(x / t_1); elseif (b <= 6.5e-274) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(x / Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); tmp = 0.0; if (b <= -9.8e+39) tmp = x / t_1; elseif (b <= 6.5e-274) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = x / (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.8e+39], N[(x / t$95$1), $MachinePrecision], If[LessEqual[b, 6.5e-274], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
\mathbf{if}\;b \leq -9.8 \cdot 10^{+39}:\\
\;\;\;\;\frac{x}{t\_1}\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot t\_1}\\
\end{array}
\end{array}
if b < -9.79999999999999974e39Initial program 100.0%
*-commutative100.0%
associate-/l*96.9%
associate--l+96.9%
fma-define96.9%
sub-neg96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in b around inf 79.9%
neg-mul-179.9%
Simplified79.9%
exp-neg79.9%
frac-times81.5%
*-un-lft-identity81.5%
*-commutative81.5%
Applied egg-rr81.5%
if -9.79999999999999974e39 < b < 6.49999999999999959e-274Initial program 97.9%
*-commutative97.9%
associate-/l*87.6%
associate--l+87.6%
fma-define87.6%
sub-neg87.6%
metadata-eval87.6%
Simplified87.6%
Taylor expanded in y around 0 75.4%
Taylor expanded in t around 0 34.2%
*-commutative34.2%
exp-diff34.2%
mul-1-neg34.2%
log-rec34.2%
rem-exp-log34.9%
associate-/l/34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in b around 0 35.0%
+-commutative35.0%
mul-1-neg35.0%
unsub-neg35.0%
associate-/l*35.0%
Simplified35.0%
Taylor expanded in b around inf 44.3%
mul-1-neg44.3%
+-commutative44.3%
unsub-neg44.3%
*-commutative44.3%
*-commutative44.3%
associate-*l*45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
if 6.49999999999999959e-274 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
associate-/l*83.5%
div-exp68.3%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 66.9%
Final simplification63.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5.8e+143)
(+ (/ x y) (* b (- (* b (* -0.16666666666666666 (/ (* x b) y))) (/ x y))))
(if (<= b 7.8e-274)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/
(*
x
(/
1.0
(+ a (* b (+ a (* b (+ (* (* a b) 0.16666666666666666) (* a 0.5))))))))
y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.8e+143) {
tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y)));
} else if (b <= 7.8e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (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 <= (-5.8d+143)) then
tmp = (x / y) + (b * ((b * ((-0.16666666666666666d0) * ((x * b) / y))) - (x / y)))
else if (b <= 7.8d-274) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = (x * (1.0d0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666d0) + (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 <= -5.8e+143) {
tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y)));
} else if (b <= 7.8e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (a * 0.5)))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.8e+143: tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y))) elif b <= 7.8e-274: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (a * 0.5)))))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.8e+143) tmp = Float64(Float64(x / y) + Float64(b * Float64(Float64(b * Float64(-0.16666666666666666 * Float64(Float64(x * b) / y))) - Float64(x / y)))); elseif (b <= 7.8e-274) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(Float64(x * Float64(1.0 / Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(Float64(a * b) * 0.16666666666666666) + Float64(a * 0.5)))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5.8e+143) tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y))); elseif (b <= 7.8e-274) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (a * 0.5)))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.8e+143], N[(N[(x / y), $MachinePrecision] + N[(b * N[(N[(b * N[(-0.16666666666666666 * N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.8e-274], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(1.0 / N[(a + N[(b * N[(a + N[(b * N[(N[(N[(a * b), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+143}:\\
\;\;\;\;\frac{x}{y} + b \cdot \left(b \cdot \left(-0.16666666666666666 \cdot \frac{x \cdot b}{y}\right) - \frac{x}{y}\right)\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a + b \cdot \left(a + b \cdot \left(\left(a \cdot b\right) \cdot 0.16666666666666666 + a \cdot 0.5\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -5.7999999999999996e143Initial program 100.0%
*-commutative100.0%
associate-/l*95.0%
associate--l+95.0%
fma-define95.0%
sub-neg95.0%
metadata-eval95.0%
Simplified95.0%
Taylor expanded in b around inf 85.2%
neg-mul-185.2%
Simplified85.2%
Taylor expanded in b around 0 85.3%
Taylor expanded in b around inf 85.3%
if -5.7999999999999996e143 < b < 7.79999999999999971e-274Initial program 98.3%
*-commutative98.3%
associate-/l*90.5%
associate--l+90.5%
fma-define90.5%
sub-neg90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in y around 0 78.2%
Taylor expanded in t around 0 42.8%
*-commutative42.8%
exp-diff42.8%
mul-1-neg42.8%
log-rec42.8%
rem-exp-log43.3%
associate-/l/43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in b around 0 33.2%
+-commutative33.2%
mul-1-neg33.2%
unsub-neg33.2%
associate-/l*33.2%
Simplified33.2%
Taylor expanded in b around inf 41.3%
mul-1-neg41.3%
+-commutative41.3%
unsub-neg41.3%
*-commutative41.3%
*-commutative41.3%
associate-*l*42.2%
*-commutative42.2%
*-commutative42.2%
Simplified42.2%
if 7.79999999999999971e-274 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
Taylor expanded in t around 0 64.6%
*-commutative64.6%
exp-diff64.6%
mul-1-neg64.6%
log-rec64.6%
rem-exp-log65.3%
associate-/l/65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in b around 0 61.0%
Final simplification57.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.45e+40)
(*
x
(+
(/ 1.0 y)
(*
b
(+
(* b (+ (* -0.16666666666666666 (/ b y)) (* 0.5 (/ 1.0 y))))
(/ -1.0 y)))))
(if (<= b 7.6e-273)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/
(*
x
(/
1.0
(+ a (* b (+ a (* b (+ (* (* a b) 0.16666666666666666) (* a 0.5))))))))
y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.45e+40) {
tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y))));
} else if (b <= 7.6e-273) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (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.45d+40)) then
tmp = x * ((1.0d0 / y) + (b * ((b * (((-0.16666666666666666d0) * (b / y)) + (0.5d0 * (1.0d0 / y)))) + ((-1.0d0) / y))))
else if (b <= 7.6d-273) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = (x * (1.0d0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666d0) + (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.45e+40) {
tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y))));
} else if (b <= 7.6e-273) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (a * 0.5)))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.45e+40: tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y)))) elif b <= 7.6e-273: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (a * 0.5)))))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.45e+40) tmp = Float64(x * Float64(Float64(1.0 / y) + Float64(b * Float64(Float64(b * Float64(Float64(-0.16666666666666666 * Float64(b / y)) + Float64(0.5 * Float64(1.0 / y)))) + Float64(-1.0 / y))))); elseif (b <= 7.6e-273) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(Float64(x * Float64(1.0 / Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(Float64(a * b) * 0.16666666666666666) + 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.45e+40) tmp = x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y)))); elseif (b <= 7.6e-273) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = (x * (1.0 / (a + (b * (a + (b * (((a * b) * 0.16666666666666666) + (a * 0.5)))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.45e+40], N[(x * N[(N[(1.0 / y), $MachinePrecision] + N[(b * N[(N[(b * N[(N[(-0.16666666666666666 * N[(b / y), $MachinePrecision]), $MachinePrecision] + N[(0.5 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.6e-273], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(1.0 / N[(a + N[(b * N[(a + N[(b * N[(N[(N[(a * b), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.45 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(\frac{1}{y} + b \cdot \left(b \cdot \left(-0.16666666666666666 \cdot \frac{b}{y} + 0.5 \cdot \frac{1}{y}\right) + \frac{-1}{y}\right)\right)\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-273}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a + b \cdot \left(a + b \cdot \left(\left(a \cdot b\right) \cdot 0.16666666666666666 + a \cdot 0.5\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -1.45000000000000009e40Initial program 100.0%
*-commutative100.0%
associate-/l*96.9%
associate--l+96.9%
fma-define96.9%
sub-neg96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in b around inf 79.9%
neg-mul-179.9%
Simplified79.9%
Taylor expanded in b around 0 63.9%
Taylor expanded in x around 0 75.6%
if -1.45000000000000009e40 < b < 7.6000000000000007e-273Initial program 97.9%
*-commutative97.9%
associate-/l*87.6%
associate--l+87.6%
fma-define87.6%
sub-neg87.6%
metadata-eval87.6%
Simplified87.6%
Taylor expanded in y around 0 75.4%
Taylor expanded in t around 0 34.2%
*-commutative34.2%
exp-diff34.2%
mul-1-neg34.2%
log-rec34.2%
rem-exp-log34.9%
associate-/l/34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in b around 0 35.0%
+-commutative35.0%
mul-1-neg35.0%
unsub-neg35.0%
associate-/l*35.0%
Simplified35.0%
Taylor expanded in b around inf 44.3%
mul-1-neg44.3%
+-commutative44.3%
unsub-neg44.3%
*-commutative44.3%
*-commutative44.3%
associate-*l*45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
if 7.6000000000000007e-273 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
Taylor expanded in t around 0 64.6%
*-commutative64.6%
exp-diff64.6%
mul-1-neg64.6%
log-rec64.6%
rem-exp-log65.3%
associate-/l/65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in b around 0 61.0%
Final simplification59.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.15e+143)
(+ (/ x y) (* b (- (* b (* -0.16666666666666666 (/ (* x b) y))) (/ x y))))
(if (<= b 6.5e-274)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/
x
(*
a
(+
y
(* b (+ y (* b (+ (* 0.16666666666666666 (* y b)) (* y 0.5)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.15e+143) {
tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y)));
} else if (b <= 6.5e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 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 (b <= (-2.15d+143)) then
tmp = (x / y) + (b * ((b * ((-0.16666666666666666d0) * ((x * b) / y))) - (x / y)))
else if (b <= 6.5d-274) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666d0 * (y * b)) + (y * 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 (b <= -2.15e+143) {
tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y)));
} else if (b <= 6.5e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.15e+143: tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y))) elif b <= 6.5e-274: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.15e+143) tmp = Float64(Float64(x / y) + Float64(b * Float64(Float64(b * Float64(-0.16666666666666666 * Float64(Float64(x * b) / y))) - Float64(x / y)))); elseif (b <= 6.5e-274) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(0.16666666666666666 * Float64(y * b)) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.15e+143) tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y))); elseif (b <= 6.5e-274) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.15e+143], N[(N[(x / y), $MachinePrecision] + N[(b * N[(N[(b * N[(-0.16666666666666666 * N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-274], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(0.16666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.15 \cdot 10^{+143}:\\
\;\;\;\;\frac{x}{y} + b \cdot \left(b \cdot \left(-0.16666666666666666 \cdot \frac{x \cdot b}{y}\right) - \frac{x}{y}\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(0.16666666666666666 \cdot \left(y \cdot b\right) + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.15000000000000001e143Initial program 100.0%
*-commutative100.0%
associate-/l*95.0%
associate--l+95.0%
fma-define95.0%
sub-neg95.0%
metadata-eval95.0%
Simplified95.0%
Taylor expanded in b around inf 85.2%
neg-mul-185.2%
Simplified85.2%
Taylor expanded in b around 0 85.3%
Taylor expanded in b around inf 85.3%
if -2.15000000000000001e143 < b < 6.49999999999999959e-274Initial program 98.3%
*-commutative98.3%
associate-/l*90.5%
associate--l+90.5%
fma-define90.5%
sub-neg90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in y around 0 78.2%
Taylor expanded in t around 0 42.8%
*-commutative42.8%
exp-diff42.8%
mul-1-neg42.8%
log-rec42.8%
rem-exp-log43.3%
associate-/l/43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in b around 0 33.2%
+-commutative33.2%
mul-1-neg33.2%
unsub-neg33.2%
associate-/l*33.2%
Simplified33.2%
Taylor expanded in b around inf 41.3%
mul-1-neg41.3%
+-commutative41.3%
unsub-neg41.3%
*-commutative41.3%
*-commutative41.3%
associate-*l*42.2%
*-commutative42.2%
*-commutative42.2%
Simplified42.2%
if 6.49999999999999959e-274 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
associate-/l*83.5%
div-exp68.3%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 66.9%
Taylor expanded in b around 0 59.2%
Final simplification56.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -4e+119)
(+ (/ x y) (* b (* (/ x y) (+ -1.0 (* b 0.5)))))
(if (<= b 1.2e-273)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/ (* x (/ 1.0 (+ a (* b (+ a (* (* a b) 0.5)))))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e+119) {
tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5))));
} else if (b <= 1.2e-273) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4d+119)) then
tmp = (x / y) + (b * ((x / y) * ((-1.0d0) + (b * 0.5d0))))
else if (b <= 1.2d-273) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = (x * (1.0d0 / (a + (b * (a + ((a * b) * 0.5d0)))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e+119) {
tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5))));
} else if (b <= 1.2e-273) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4e+119: tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5)))) elif b <= 1.2e-273: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4e+119) tmp = Float64(Float64(x / y) + Float64(b * Float64(Float64(x / y) * Float64(-1.0 + Float64(b * 0.5))))); elseif (b <= 1.2e-273) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(Float64(x * Float64(1.0 / Float64(a + Float64(b * Float64(a + Float64(Float64(a * b) * 0.5)))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4e+119) tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5)))); elseif (b <= 1.2e-273) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4e+119], N[(N[(x / y), $MachinePrecision] + N[(b * N[(N[(x / y), $MachinePrecision] * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-273], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(1.0 / N[(a + N[(b * N[(a + N[(N[(a * b), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{+119}:\\
\;\;\;\;\frac{x}{y} + b \cdot \left(\frac{x}{y} \cdot \left(-1 + b \cdot 0.5\right)\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-273}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a + b \cdot \left(a + \left(a \cdot b\right) \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -3.99999999999999978e119Initial program 100.0%
*-commutative100.0%
associate-/l*95.5%
associate--l+95.5%
fma-define95.5%
sub-neg95.5%
metadata-eval95.5%
Simplified95.5%
Taylor expanded in b around inf 82.0%
neg-mul-182.0%
Simplified82.0%
Taylor expanded in b around 0 78.2%
Taylor expanded in b around 0 69.4%
mul-1-neg69.4%
+-commutative69.4%
associate-*r/73.8%
*-commutative73.8%
associate-*l*73.8%
*-commutative73.8%
associate-*r*73.8%
mul-1-neg73.8%
distribute-rgt-out73.8%
Simplified73.8%
if -3.99999999999999978e119 < b < 1.19999999999999991e-273Initial program 98.3%
*-commutative98.3%
associate-/l*90.1%
associate--l+90.1%
fma-define90.1%
sub-neg90.1%
metadata-eval90.1%
Simplified90.1%
Taylor expanded in y around 0 78.3%
Taylor expanded in t around 0 42.4%
*-commutative42.4%
exp-diff42.4%
mul-1-neg42.4%
log-rec42.4%
rem-exp-log43.0%
associate-/l/43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in b around 0 34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
associate-/l*34.4%
Simplified34.4%
Taylor expanded in b around inf 41.9%
mul-1-neg41.9%
+-commutative41.9%
unsub-neg41.9%
*-commutative41.9%
*-commutative41.9%
associate-*l*42.9%
*-commutative42.9%
*-commutative42.9%
Simplified42.9%
if 1.19999999999999991e-273 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
Taylor expanded in t around 0 64.6%
*-commutative64.6%
exp-diff64.6%
mul-1-neg64.6%
log-rec64.6%
rem-exp-log65.3%
associate-/l/65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in b around 0 53.3%
Final simplification52.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.15e+143)
(+ (/ x y) (* b (- (* b (* -0.16666666666666666 (/ (* x b) y))) (/ x y))))
(if (<= b 1.4e-273)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/ (* x (/ 1.0 (+ a (* b (+ a (* (* a b) 0.5)))))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.15e+143) {
tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y)));
} else if (b <= 1.4e-273) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.15d+143)) then
tmp = (x / y) + (b * ((b * ((-0.16666666666666666d0) * ((x * b) / y))) - (x / y)))
else if (b <= 1.4d-273) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = (x * (1.0d0 / (a + (b * (a + ((a * b) * 0.5d0)))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.15e+143) {
tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y)));
} else if (b <= 1.4e-273) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.15e+143: tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y))) elif b <= 1.4e-273: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.15e+143) tmp = Float64(Float64(x / y) + Float64(b * Float64(Float64(b * Float64(-0.16666666666666666 * Float64(Float64(x * b) / y))) - Float64(x / y)))); elseif (b <= 1.4e-273) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(Float64(x * Float64(1.0 / Float64(a + Float64(b * Float64(a + Float64(Float64(a * b) * 0.5)))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.15e+143) tmp = (x / y) + (b * ((b * (-0.16666666666666666 * ((x * b) / y))) - (x / y))); elseif (b <= 1.4e-273) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = (x * (1.0 / (a + (b * (a + ((a * b) * 0.5)))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.15e+143], N[(N[(x / y), $MachinePrecision] + N[(b * N[(N[(b * N[(-0.16666666666666666 * N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e-273], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(1.0 / N[(a + N[(b * N[(a + N[(N[(a * b), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.15 \cdot 10^{+143}:\\
\;\;\;\;\frac{x}{y} + b \cdot \left(b \cdot \left(-0.16666666666666666 \cdot \frac{x \cdot b}{y}\right) - \frac{x}{y}\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-273}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a + b \cdot \left(a + \left(a \cdot b\right) \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -2.15000000000000001e143Initial program 100.0%
*-commutative100.0%
associate-/l*95.0%
associate--l+95.0%
fma-define95.0%
sub-neg95.0%
metadata-eval95.0%
Simplified95.0%
Taylor expanded in b around inf 85.2%
neg-mul-185.2%
Simplified85.2%
Taylor expanded in b around 0 85.3%
Taylor expanded in b around inf 85.3%
if -2.15000000000000001e143 < b < 1.39999999999999993e-273Initial program 98.3%
*-commutative98.3%
associate-/l*90.5%
associate--l+90.5%
fma-define90.5%
sub-neg90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in y around 0 78.2%
Taylor expanded in t around 0 42.8%
*-commutative42.8%
exp-diff42.8%
mul-1-neg42.8%
log-rec42.8%
rem-exp-log43.3%
associate-/l/43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in b around 0 33.2%
+-commutative33.2%
mul-1-neg33.2%
unsub-neg33.2%
associate-/l*33.2%
Simplified33.2%
Taylor expanded in b around inf 41.3%
mul-1-neg41.3%
+-commutative41.3%
unsub-neg41.3%
*-commutative41.3%
*-commutative41.3%
associate-*l*42.2%
*-commutative42.2%
*-commutative42.2%
Simplified42.2%
if 1.39999999999999993e-273 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
Taylor expanded in t around 0 64.6%
*-commutative64.6%
exp-diff64.6%
mul-1-neg64.6%
log-rec64.6%
rem-exp-log65.3%
associate-/l/65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in b around 0 53.3%
Final simplification53.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.5e+117)
(+ (/ x y) (* b (* (/ x y) (+ -1.0 (* b 0.5)))))
(if (<= b 1.12e-271)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.5e+117) {
tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5))));
} else if (b <= 1.12e-271) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-7.5d+117)) then
tmp = (x / y) + (b * ((x / y) * ((-1.0d0) + (b * 0.5d0))))
else if (b <= 1.12d-271) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.5e+117) {
tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5))));
} else if (b <= 1.12e-271) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.5e+117: tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5)))) elif b <= 1.12e-271: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.5e+117) tmp = Float64(Float64(x / y) + Float64(b * Float64(Float64(x / y) * Float64(-1.0 + Float64(b * 0.5))))); elseif (b <= 1.12e-271) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.5e+117) tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5)))); elseif (b <= 1.12e-271) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.5e+117], N[(N[(x / y), $MachinePrecision] + N[(b * N[(N[(x / y), $MachinePrecision] * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.12e-271], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+117}:\\
\;\;\;\;\frac{x}{y} + b \cdot \left(\frac{x}{y} \cdot \left(-1 + b \cdot 0.5\right)\right)\\
\mathbf{elif}\;b \leq 1.12 \cdot 10^{-271}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -7.5e117Initial program 100.0%
*-commutative100.0%
associate-/l*95.5%
associate--l+95.5%
fma-define95.5%
sub-neg95.5%
metadata-eval95.5%
Simplified95.5%
Taylor expanded in b around inf 82.0%
neg-mul-182.0%
Simplified82.0%
Taylor expanded in b around 0 78.2%
Taylor expanded in b around 0 69.4%
mul-1-neg69.4%
+-commutative69.4%
associate-*r/73.8%
*-commutative73.8%
associate-*l*73.8%
*-commutative73.8%
associate-*r*73.8%
mul-1-neg73.8%
distribute-rgt-out73.8%
Simplified73.8%
if -7.5e117 < b < 1.11999999999999997e-271Initial program 98.3%
*-commutative98.3%
associate-/l*90.1%
associate--l+90.1%
fma-define90.1%
sub-neg90.1%
metadata-eval90.1%
Simplified90.1%
Taylor expanded in y around 0 78.3%
Taylor expanded in t around 0 42.4%
*-commutative42.4%
exp-diff42.4%
mul-1-neg42.4%
log-rec42.4%
rem-exp-log43.0%
associate-/l/43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in b around 0 34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
associate-/l*34.4%
Simplified34.4%
Taylor expanded in b around inf 41.9%
mul-1-neg41.9%
+-commutative41.9%
unsub-neg41.9%
*-commutative41.9%
*-commutative41.9%
associate-*l*42.9%
*-commutative42.9%
*-commutative42.9%
Simplified42.9%
if 1.11999999999999997e-271 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
associate-/l*83.5%
div-exp68.3%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 66.9%
Taylor expanded in b around 0 42.7%
Final simplification48.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.12e+116)
(+ (/ x y) (* b (* (/ x y) (+ -1.0 (* b 0.5)))))
(if (<= b 6.5e-274)
(* b (- (/ x (* y (* a b))) (/ x (* y a))))
(/ x (* a (+ y (* b (+ y (* 0.5 (* y b))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.12e+116) {
tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5))));
} else if (b <= 6.5e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.12d+116)) then
tmp = (x / y) + (b * ((x / y) * ((-1.0d0) + (b * 0.5d0))))
else if (b <= 6.5d-274) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = x / (a * (y + (b * (y + (0.5d0 * (y * b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.12e+116) {
tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5))));
} else if (b <= 6.5e-274) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.12e+116: tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5)))) elif b <= 6.5e-274: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.12e+116) tmp = Float64(Float64(x / y) + Float64(b * Float64(Float64(x / y) * Float64(-1.0 + Float64(b * 0.5))))); elseif (b <= 6.5e-274) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(0.5 * Float64(y * b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.12e+116) tmp = (x / y) + (b * ((x / y) * (-1.0 + (b * 0.5)))); elseif (b <= 6.5e-274) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.12e+116], N[(N[(x / y), $MachinePrecision] + N[(b * N[(N[(x / y), $MachinePrecision] * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-274], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(0.5 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.12 \cdot 10^{+116}:\\
\;\;\;\;\frac{x}{y} + b \cdot \left(\frac{x}{y} \cdot \left(-1 + b \cdot 0.5\right)\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + 0.5 \cdot \left(y \cdot b\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.12e116Initial program 100.0%
*-commutative100.0%
associate-/l*95.5%
associate--l+95.5%
fma-define95.5%
sub-neg95.5%
metadata-eval95.5%
Simplified95.5%
Taylor expanded in b around inf 82.0%
neg-mul-182.0%
Simplified82.0%
Taylor expanded in b around 0 78.2%
Taylor expanded in b around 0 69.4%
mul-1-neg69.4%
+-commutative69.4%
associate-*r/73.8%
*-commutative73.8%
associate-*l*73.8%
*-commutative73.8%
associate-*r*73.8%
mul-1-neg73.8%
distribute-rgt-out73.8%
Simplified73.8%
if -1.12e116 < b < 6.49999999999999959e-274Initial program 98.3%
*-commutative98.3%
associate-/l*90.1%
associate--l+90.1%
fma-define90.1%
sub-neg90.1%
metadata-eval90.1%
Simplified90.1%
Taylor expanded in y around 0 78.3%
Taylor expanded in t around 0 42.4%
*-commutative42.4%
exp-diff42.4%
mul-1-neg42.4%
log-rec42.4%
rem-exp-log43.0%
associate-/l/43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in b around 0 34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
associate-/l*34.4%
Simplified34.4%
Taylor expanded in b around inf 41.9%
mul-1-neg41.9%
+-commutative41.9%
unsub-neg41.9%
*-commutative41.9%
*-commutative41.9%
associate-*l*42.9%
*-commutative42.9%
*-commutative42.9%
Simplified42.9%
if 6.49999999999999959e-274 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
associate-/l*83.5%
div-exp68.3%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 66.9%
Taylor expanded in b around 0 51.4%
*-commutative51.4%
Simplified51.4%
Final simplification51.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b 8.5e-269) (* b (- (/ x (* y (* a b))) (/ x (* y a)))) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 8.5e-269) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 8.5d-269) then
tmp = b * ((x / (y * (a * b))) - (x / (y * a)))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 8.5e-269) {
tmp = b * ((x / (y * (a * b))) - (x / (y * a)));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 8.5e-269: tmp = b * ((x / (y * (a * b))) - (x / (y * a))) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 8.5e-269) tmp = Float64(b * Float64(Float64(x / Float64(y * Float64(a * b))) - Float64(x / Float64(y * a)))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 8.5e-269) tmp = b * ((x / (y * (a * b))) - (x / (y * a))); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 8.5e-269], N[(b * N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 8.5 \cdot 10^{-269}:\\
\;\;\;\;b \cdot \left(\frac{x}{y \cdot \left(a \cdot b\right)} - \frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < 8.5e-269Initial program 98.8%
*-commutative98.8%
associate-/l*91.7%
associate--l+91.7%
fma-define91.7%
sub-neg91.7%
metadata-eval91.7%
Simplified91.7%
Taylor expanded in y around 0 83.6%
Taylor expanded in t around 0 55.2%
*-commutative55.2%
exp-diff55.2%
mul-1-neg55.2%
log-rec55.2%
rem-exp-log55.6%
associate-/l/55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in b around 0 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
associate-/l*36.4%
Simplified36.4%
Taylor expanded in b around inf 41.5%
mul-1-neg41.5%
+-commutative41.5%
unsub-neg41.5%
*-commutative41.5%
*-commutative41.5%
associate-*l*42.2%
*-commutative42.2%
*-commutative42.2%
Simplified42.2%
if 8.5e-269 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
associate-/l*83.5%
div-exp68.3%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 66.9%
Taylor expanded in b around 0 42.7%
Final simplification42.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -26000.0) (/ (* x (/ b (- a))) y) (if (<= b 1.8e-200) (/ (* x (/ 1.0 a)) y) (/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -26000.0) {
tmp = (x * (b / -a)) / y;
} else if (b <= 1.8e-200) {
tmp = (x * (1.0 / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-26000.0d0)) then
tmp = (x * (b / -a)) / y
else if (b <= 1.8d-200) then
tmp = (x * (1.0d0 / a)) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -26000.0) {
tmp = (x * (b / -a)) / y;
} else if (b <= 1.8e-200) {
tmp = (x * (1.0 / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -26000.0: tmp = (x * (b / -a)) / y elif b <= 1.8e-200: tmp = (x * (1.0 / a)) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -26000.0) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); elseif (b <= 1.8e-200) tmp = Float64(Float64(x * Float64(1.0 / a)) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -26000.0) tmp = (x * (b / -a)) / y; elseif (b <= 1.8e-200) tmp = (x * (1.0 / a)) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -26000.0], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.8e-200], N[(N[(x * N[(1.0 / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -26000:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-200}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -26000Initial program 100.0%
*-commutative100.0%
associate-/l*95.8%
associate--l+95.8%
fma-define95.8%
sub-neg95.8%
metadata-eval95.8%
Simplified95.8%
Taylor expanded in y around 0 93.2%
Taylor expanded in t around 0 78.1%
*-commutative78.1%
exp-diff78.1%
mul-1-neg78.1%
log-rec78.1%
rem-exp-log78.1%
associate-/l/78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in b around 0 43.5%
+-commutative43.5%
mul-1-neg43.5%
unsub-neg43.5%
associate-/l*39.5%
Simplified39.5%
Taylor expanded in b around inf 43.5%
associate-*r/43.5%
mul-1-neg43.5%
*-commutative43.5%
distribute-rgt-neg-in43.5%
neg-mul-143.5%
associate-*r/42.3%
associate-*r/42.3%
mul-1-neg42.3%
distribute-neg-frac242.3%
Simplified42.3%
if -26000 < b < 1.8000000000000001e-200Initial program 97.4%
*-commutative97.4%
associate-/l*88.6%
associate--l+88.6%
fma-define88.6%
sub-neg88.6%
metadata-eval88.6%
Simplified88.6%
Taylor expanded in y around 0 74.2%
Taylor expanded in t around 0 36.5%
*-commutative36.5%
exp-diff36.5%
mul-1-neg36.5%
log-rec36.5%
rem-exp-log37.7%
associate-/l/37.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in b around 0 37.7%
if 1.8000000000000001e-200 < b Initial program 97.8%
*-commutative97.8%
associate-/l*77.0%
associate--l+77.0%
fma-define77.0%
sub-neg77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in y around 0 84.3%
associate-/l*86.0%
div-exp69.3%
exp-to-pow69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in t around 0 69.3%
Taylor expanded in b around 0 42.7%
Final simplification41.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -300000000000.0) (/ (/ (* x b) a) (- y)) (if (<= b 1.05e-199) (/ (* x (/ 1.0 a)) y) (/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -300000000000.0) {
tmp = ((x * b) / a) / -y;
} else if (b <= 1.05e-199) {
tmp = (x * (1.0 / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-300000000000.0d0)) then
tmp = ((x * b) / a) / -y
else if (b <= 1.05d-199) then
tmp = (x * (1.0d0 / a)) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -300000000000.0) {
tmp = ((x * b) / a) / -y;
} else if (b <= 1.05e-199) {
tmp = (x * (1.0 / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -300000000000.0: tmp = ((x * b) / a) / -y elif b <= 1.05e-199: tmp = (x * (1.0 / a)) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -300000000000.0) tmp = Float64(Float64(Float64(x * b) / a) / Float64(-y)); elseif (b <= 1.05e-199) tmp = Float64(Float64(x * Float64(1.0 / a)) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -300000000000.0) tmp = ((x * b) / a) / -y; elseif (b <= 1.05e-199) tmp = (x * (1.0 / a)) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -300000000000.0], N[(N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, 1.05e-199], N[(N[(x * N[(1.0 / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -300000000000:\\
\;\;\;\;\frac{\frac{x \cdot b}{a}}{-y}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-199}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -3e11Initial program 100.0%
*-commutative100.0%
associate-/l*95.8%
associate--l+95.8%
fma-define95.8%
sub-neg95.8%
metadata-eval95.8%
Simplified95.8%
Taylor expanded in y around 0 93.2%
Taylor expanded in t around 0 78.1%
*-commutative78.1%
exp-diff78.1%
mul-1-neg78.1%
log-rec78.1%
rem-exp-log78.1%
associate-/l/78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in b around 0 43.5%
+-commutative43.5%
mul-1-neg43.5%
unsub-neg43.5%
associate-/l*39.5%
Simplified39.5%
Taylor expanded in b around inf 43.5%
if -3e11 < b < 1.05000000000000001e-199Initial program 97.4%
*-commutative97.4%
associate-/l*88.6%
associate--l+88.6%
fma-define88.6%
sub-neg88.6%
metadata-eval88.6%
Simplified88.6%
Taylor expanded in y around 0 74.2%
Taylor expanded in t around 0 36.5%
*-commutative36.5%
exp-diff36.5%
mul-1-neg36.5%
log-rec36.5%
rem-exp-log37.7%
associate-/l/37.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in b around 0 37.7%
if 1.05000000000000001e-199 < b Initial program 97.8%
*-commutative97.8%
associate-/l*77.0%
associate--l+77.0%
fma-define77.0%
sub-neg77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in y around 0 84.3%
associate-/l*86.0%
div-exp69.3%
exp-to-pow69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in t around 0 69.3%
Taylor expanded in b around 0 42.7%
Final simplification41.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.5e-266) (/ (* b (- (/ x (* a b)) (/ x a))) y) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.5e-266) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 4.5d-266) then
tmp = (b * ((x / (a * b)) - (x / a))) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.5e-266) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.5e-266: tmp = (b * ((x / (a * b)) - (x / a))) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.5e-266) tmp = Float64(Float64(b * Float64(Float64(x / Float64(a * b)) - Float64(x / a))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4.5e-266) tmp = (b * ((x / (a * b)) - (x / a))) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.5e-266], N[(N[(b * N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.5 \cdot 10^{-266}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.5000000000000003e-266Initial program 98.8%
*-commutative98.8%
associate-/l*91.7%
associate--l+91.7%
fma-define91.7%
sub-neg91.7%
metadata-eval91.7%
Simplified91.7%
Taylor expanded in y around 0 83.6%
Taylor expanded in t around 0 55.2%
*-commutative55.2%
exp-diff55.2%
mul-1-neg55.2%
log-rec55.2%
rem-exp-log55.6%
associate-/l/55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in b around 0 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
associate-/l*36.4%
Simplified36.4%
Taylor expanded in b around inf 41.6%
if 4.5000000000000003e-266 < b Initial program 97.6%
*-commutative97.6%
associate-/l*78.7%
associate--l+78.7%
fma-define78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 83.6%
associate-/l*83.5%
div-exp68.3%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 66.9%
Taylor expanded in b around 0 42.7%
Final simplification42.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3e-200) (/ (* x (- (/ 1.0 a) (/ b a))) y) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3e-200) {
tmp = (x * ((1.0 / a) - (b / a))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 3d-200) then
tmp = (x * ((1.0d0 / a) - (b / a))) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3e-200) {
tmp = (x * ((1.0 / a) - (b / a))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3e-200: tmp = (x * ((1.0 / a) - (b / a))) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 3e-200) tmp = Float64(Float64(x * Float64(Float64(1.0 / a) - Float64(b / a))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 3e-200) tmp = (x * ((1.0 / a) - (b / a))) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 3e-200], N[(N[(x * N[(N[(1.0 / a), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3 \cdot 10^{-200}:\\
\;\;\;\;\frac{x \cdot \left(\frac{1}{a} - \frac{b}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < 2.99999999999999995e-200Initial program 98.6%
*-commutative98.6%
associate-/l*92.0%
associate--l+92.0%
fma-define92.0%
sub-neg92.0%
metadata-eval92.0%
Simplified92.0%
Taylor expanded in y around 0 83.1%
Taylor expanded in t around 0 56.0%
*-commutative56.0%
exp-diff56.0%
mul-1-neg56.0%
log-rec56.0%
rem-exp-log56.6%
associate-/l/56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in b around 0 39.8%
+-commutative39.8%
mul-1-neg39.8%
unsub-neg39.8%
Simplified39.8%
if 2.99999999999999995e-200 < b Initial program 97.8%
*-commutative97.8%
associate-/l*77.0%
associate--l+77.0%
fma-define77.0%
sub-neg77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in y around 0 84.3%
associate-/l*86.0%
div-exp69.3%
exp-to-pow69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in t around 0 69.3%
Taylor expanded in b around 0 42.7%
Final simplification41.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.8e+14) (* (/ x y) (/ b (- a))) (* x (/ 1.0 (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e+14) {
tmp = (x / y) * (b / -a);
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.8d+14)) then
tmp = (x / y) * (b / -a)
else
tmp = x * (1.0d0 / (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e+14) {
tmp = (x / y) * (b / -a);
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.8e+14: tmp = (x / y) * (b / -a) else: tmp = x * (1.0 / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.8e+14) tmp = Float64(Float64(x / y) * Float64(b / Float64(-a))); else tmp = Float64(x * Float64(1.0 / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.8e+14) tmp = (x / y) * (b / -a); else tmp = x * (1.0 / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.8e+14], N[(N[(x / y), $MachinePrecision] * N[(b / (-a)), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{b}{-a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\end{array}
\end{array}
if b < -2.8e14Initial program 100.0%
*-commutative100.0%
associate-/l*95.8%
associate--l+95.8%
fma-define95.8%
sub-neg95.8%
metadata-eval95.8%
Simplified95.8%
Taylor expanded in y around 0 93.1%
Taylor expanded in t around 0 77.8%
*-commutative77.8%
exp-diff77.8%
mul-1-neg77.8%
log-rec77.8%
rem-exp-log77.8%
associate-/l/77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in b around 0 44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
associate-/l*40.0%
Simplified40.0%
Taylor expanded in b around inf 41.3%
mul-1-neg41.3%
times-frac42.7%
Simplified42.7%
if -2.8e14 < b Initial program 97.6%
*-commutative97.6%
associate-/l*82.3%
associate--l+82.3%
fma-define82.3%
sub-neg82.3%
metadata-eval82.3%
Simplified82.3%
Taylor expanded in y around 0 79.9%
associate-/l*79.5%
div-exp70.3%
exp-to-pow70.9%
sub-neg70.9%
metadata-eval70.9%
Simplified70.9%
Taylor expanded in t around 0 52.4%
Taylor expanded in b around 0 31.2%
*-commutative31.2%
Simplified31.2%
div-inv31.7%
Applied egg-rr31.7%
Final simplification34.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.65e+15) (/ (* x (/ b (- a))) y) (* x (/ 1.0 (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e+15) {
tmp = (x * (b / -a)) / y;
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.65d+15)) then
tmp = (x * (b / -a)) / y
else
tmp = x * (1.0d0 / (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e+15) {
tmp = (x * (b / -a)) / y;
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.65e+15: tmp = (x * (b / -a)) / y else: tmp = x * (1.0 / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.65e+15) tmp = Float64(Float64(x * Float64(b / Float64(-a))) / y); else tmp = Float64(x * Float64(1.0 / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.65e+15) tmp = (x * (b / -a)) / y; else tmp = x * (1.0 / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e+15], N[(N[(x * N[(b / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{+15}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\end{array}
\end{array}
if b < -1.65e15Initial program 100.0%
*-commutative100.0%
associate-/l*95.8%
associate--l+95.8%
fma-define95.8%
sub-neg95.8%
metadata-eval95.8%
Simplified95.8%
Taylor expanded in y around 0 93.1%
Taylor expanded in t around 0 77.8%
*-commutative77.8%
exp-diff77.8%
mul-1-neg77.8%
log-rec77.8%
rem-exp-log77.8%
associate-/l/77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in b around 0 44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
associate-/l*40.0%
Simplified40.0%
Taylor expanded in b around inf 44.1%
associate-*r/44.1%
mul-1-neg44.1%
*-commutative44.1%
distribute-rgt-neg-in44.1%
neg-mul-144.1%
associate-*r/42.8%
associate-*r/42.8%
mul-1-neg42.8%
distribute-neg-frac242.8%
Simplified42.8%
if -1.65e15 < b Initial program 97.6%
*-commutative97.6%
associate-/l*82.3%
associate--l+82.3%
fma-define82.3%
sub-neg82.3%
metadata-eval82.3%
Simplified82.3%
Taylor expanded in y around 0 79.9%
associate-/l*79.5%
div-exp70.3%
exp-to-pow70.9%
sub-neg70.9%
metadata-eval70.9%
Simplified70.9%
Taylor expanded in t around 0 52.4%
Taylor expanded in b around 0 31.2%
*-commutative31.2%
Simplified31.2%
div-inv31.7%
Applied egg-rr31.7%
Final simplification34.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.05e-94) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.05e-94) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 2.05d-94) then
tmp = (x / y) / a
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.05e-94) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.05e-94: tmp = (x / y) / a else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.05e-94) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.05e-94) tmp = (x / y) / a; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.05e-94], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.05 \cdot 10^{-94}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < 2.05e-94Initial program 98.0%
*-commutative98.0%
associate-/l*90.4%
associate--l+90.4%
fma-define90.4%
sub-neg90.4%
metadata-eval90.4%
Simplified90.4%
Taylor expanded in y around 0 81.9%
associate-/l*80.9%
div-exp69.8%
exp-to-pow70.5%
sub-neg70.5%
metadata-eval70.5%
Simplified70.5%
Taylor expanded in t around 0 52.2%
Taylor expanded in b around 0 31.0%
*-commutative31.0%
Simplified31.0%
*-un-lft-identity31.0%
associate-/r*33.8%
Applied egg-rr33.8%
if 2.05e-94 < b Initial program 98.7%
*-commutative98.7%
associate-/l*77.2%
associate--l+77.2%
fma-define77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in y around 0 87.0%
associate-/l*88.1%
div-exp67.8%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in t around 0 74.4%
Taylor expanded in b around 0 27.6%
*-commutative27.6%
Simplified27.6%
Final simplification31.8%
(FPCore (x y z t a b) :precision binary64 (* x (/ 1.0 (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (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 * (1.0d0 / (y * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (y * a));
}
def code(x, y, z, t, a, b): return x * (1.0 / (y * a))
function code(x, y, z, t, a, b) return Float64(x * Float64(1.0 / Float64(y * a))) end
function tmp = code(x, y, z, t, a, b) tmp = x * (1.0 / (y * a)); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{1}{y \cdot a}
\end{array}
Initial program 98.3%
*-commutative98.3%
associate-/l*86.0%
associate--l+86.0%
fma-define86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in y around 0 83.6%
associate-/l*83.2%
div-exp69.2%
exp-to-pow69.6%
sub-neg69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in t around 0 59.4%
Taylor expanded in b around 0 29.9%
*-commutative29.9%
Simplified29.9%
div-inv30.3%
Applied egg-rr30.3%
Final simplification30.3%
(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%
*-commutative98.3%
associate-/l*86.0%
associate--l+86.0%
fma-define86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in y around 0 83.6%
associate-/l*83.2%
div-exp69.2%
exp-to-pow69.6%
sub-neg69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in t around 0 59.4%
Taylor expanded in b around 0 29.9%
*-commutative29.9%
Simplified29.9%
Final simplification29.9%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 98.3%
*-commutative98.3%
associate-/l*86.0%
associate--l+86.0%
fma-define86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in b around inf 44.4%
neg-mul-144.4%
Simplified44.4%
Taylor expanded in b around 0 17.1%
Final simplification17.1%
(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 2024076
(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))