home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_11 / 612.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-19  |  544KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: 612 Chapter C Library and Preprocessor Facilities On some systems UNIX for example. the mathematical functions are kept in a separate library which must be explicitly searched at link time. This usually involves modif fication of the compiler call so that the linker will know to search the different library In some other systems, all of the libraries are automatically searched at link time The use of the mathematical functions in the C library is illustrated in the program polar.c of Example 11-3. This program converts Cartesian coordinates ofa point to polar coordinates The Cartesian coordinates and the polar coordinates of point are illustrated in Figure 11-1. x,y r,3 Figure 11-1 The Pythagorean theorem gives the conversion formula for obtaining the radius of the polar coordinates from t ...