home *** CD-ROM | disk | FTP | other *** search
-
- Listing 5
- C Instead of FORTRAN?
-
-
- double cos(); /* use cos() function for calculation */
- double y; /* destination for answer */
- ...
- y = bisect(cos,0.0,3.14159,.0001);
- /*
- bisect cos() function
- interval [0.0,3.14159]
- zero tolerance .0001
- */