// output of ./demo/arith/briggs-log-demo.cc: // Description: //% Computation of the logarithm using a method similar to the shift-and-add algorithm. arg 1: 1.41421 == x [Argument for log(x) computation x>=1] default=1.41421 arg 2: 2 == b [Base of logarithm: b>0 and b!=1] default=2 arg 3: 1e-05 == eps [Precision of the result] default=1e-05 -1 1.41421356 0.00000000 +0.70710678 +0.00000000 2 1.41421356 0.00000000 +0.35355339 +0.41503749 2 1.06066017 0.41503749 +0.26516504 +0.41503749 3 1.06066017 0.41503749 +0.13258252 +0.19264507 4 1.06066017 0.41503749 +0.06629126 +0.09310940 5 1.06066017 0.41503749 +0.03314563 +0.04580368 5 1.02751454 0.46084118 +0.03210982 +0.04580368 6 1.02751454 0.46084118 +0.01605491 +0.02272007 6 1.01145962 0.48356126 +0.01580405 +0.02272007 7 1.01145962 0.48356126 +0.00790202 +0.01131531 7 1.00355759 0.49487657 +0.00784029 +0.01131531 8 1.00355759 0.49487657 +0.00392014 +0.00564656 9 1.00355759 0.49487657 +0.00196007 +0.00282051 9 1.00159752 0.49769709 +0.00195624 +0.00282051 10 1.00159752 0.49769709 +0.00097812 +0.00140957 10 1.00061940 0.49910666 +0.00097716 +0.00140957 11 1.00061940 0.49910666 +0.00048858 +0.00070461 11 1.00013081 0.49981128 +0.00048834 +0.00070461 12 1.00013081 0.49981128 +0.00024417 +0.00035226 13 1.00013081 0.49981128 +0.00012208 +0.00017612 13 1.00000873 0.49998740 +0.00012207 +0.00017612 99 1.00000000 0.50000000 +0.00000000 +0.00000000 dl = -1.259810220077817178e-05