Your output difference may come down to the tiny differences you're going to get if you enter values by typing them in vs. caching them after you've calculated them once. You may be losing a few bits of precision. The
exp($loghyp1 - $loghyp2) expression could also be causing you to lose precision because of
subtractive cancellation.