## section 7.8.6: Mathematical Functions

page 168
Note that the `pow` function is how you do
exponentiation in C--C does not have a built-in
exponentiation operator
(such as `**` or `^` in some other languages).

Before calling these functions,
remember to `#include <math.h>`.
(It's always a good idea to `#include` the appropriate
header(s) before using any library functions,
but the math functions are particularly unlikely to work
correctly if you forget.)
Also,
under Unix,
you may have to explicitly request the math library
by adding the `-lm` option at the end of the command line
when compiling/linking.

Read sequentially:
prev
next
up
top

This page by Steve Summit
// Copyright 1995, 1996
// mail feedback