ABSTRACT

In the case study of §6.4 we called a version of the BISECT subroutine to solve f(x) = 0, where f(x) = sin (x)−px and p = 12 . Here is the subprogram we used to define the function f(x), revised slightly to store the constant 12 in a variable named P instead of coding the literal 0.5D0 directly in the formula.