20. Advanced Math (for the Computer, Not You!)

This chapter extends your knowledge of built-in functions to the numeric functions. C helps you do math that the C operators can’t do alone. More than anything else, the C built-in numeric functions supply routines that you don’t have to write yourself.

A lot of C’s built-in math functions are highly technical—not that their uses are difficult, but their purposes might be. Unless you need trigonometric and advanced math functions, you might not find a use for many of the functions described in this chapter.


Some people program in C for years and never need many ...

Get C Programming Absolute Beginner’s Guide, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.