QASA
system:sage


<p>$$<br />a \log_2\left(\frac{a}{5}\right) + (1-a) \log_2\left(\frac{1-a}{15}\right) =<br />\frac{\log_2\left(\frac{1}{2}\right)}{2} + \frac{19\,<br />\log_2\left(\frac{1}{38}\right)}{38}<br />$$</p>

<p>$$<br />\mathrm{H}_\alpha(S) = \frac{1}{1-\alpha}\,\log_2\left(\sum\limits_{i=1}^{N}<br />{p_i}^{\alpha}\right)<br />$$</p>

{{{id=1|
a=var('a')
g=(a*log(a/5,2)+(1-a)*log((1-a)/15,2))==((log(1/2,2))/2+(19*log(1/38,2))/38)
///
}}}

{{{id=15|
latex(g)
///
<html><script type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}\frac{a \log\left(\frac{1}{5} \, a\right)}{\log\left(2\right)} - \frac{{\left(a - 1\right)} \log\left(-\frac{1}{15} \, a + \frac{1}{15}\right)}{\log\left(2\right)} = \frac{\log\left(\frac{1}{2}\right)}{2 \, \log\left(2\right)} + \frac{\log\left(\frac{1}{38}\right)}{2 \, \log\left(2\right)}</script></html>
}}}

<p class="shrunk">$$\frac{a \log\left(\frac{1}{5} \, a\right)}{\log\left(2\right)} - \frac{{\left(a - 1\right)} \log\left(-\frac{1}{15} \, a + \frac{1}{15}\right)}{\log\left(2\right)} = \frac{\log\left(\frac{1}{2}\right)}{2 \, \log\left(2\right)} + \frac{\log\left(\frac{1}{38}\right)}{2 \, \log\left(2\right)}$$</p>

{{{id=5|
a_root=find_root(g, 0.01, 0.99)
///
}}}

{{{id=11|
maxima.find_root(g, a, 0.1, 0.9, abserr=1e-120)
///
<html><script type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}.8609734386099384</script></html>
}}}

{{{id=7|
plot(g, 0.01, 0.99)
///
<html><font color='black'><img src='cell://sage0.png'></font></html>
}}}

{{{id=10|
a_root
///
<html><script type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}0.86097343861</script></html>
}}}