<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Rick,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 21 Aug 2015, at 01:49, Rick Walsh <<a href="mailto:rickmwalsh@gmail.com" class="">rickmwalsh@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">However, I did get an error message in the red box at the base of the screen when testing the 100 m / 10 min dive with 18/45 bottom gas.  Along the lines of the cubic equation has a complex solution.  Sorry, I had no time to track down the cause.</span></div></blockquote></div><br class=""></div><div class="">the cause is that when I replaced the iterative solution with an analytic I made a simplifying assumption that holds in the test cases I looked at but you found a case where it does not hold  and (if there is no further bug) I have to replace my code by a more general expression. Will look into this today.</div><div class=""><br class=""></div><div class="">Best</div><div class="">Robert</div></body></html>