<p>A quick googling tourned out with this:</p>
<p><a href="http://www.scielo.br/scielo.php?script=sci_arttext&amp;pid=S0102-05362004000300006">http://www.scielo.br/scielo.php?script=sci_arttext&amp;pid=S0102-05362004000300006</a></p>
<p>Which seems to be related to what you are looking for... only a lot more complex than a simple formula.</p>
<p>I suspect a look-up table does  mot seem so bad, now :-) </p>
<p>Ciao<br>
-------<br>
FB<br></p>