|
Mathematical
Library Functions:
All of the higher
level languages have rich libraries which contain many of the functions
used in calculus. Examples of those can be found in your book.
In particular we list the following:
- The
exponential function
: exp(x) for ex
- The
power function
: pow(x,n) for xn
- The
trigonometric functions:
sin(x), cos(x), tan(x), asin(x) ,
..NOTE: You must use radians not degrees
- The
absolute value function for integer arguments:
abs(number)
- The
absolute value function for float or double arguments:
fabs(decimal_number)
- The
square root function
: xsqrt(x) , same result as
pow(x,0.5)
- The
logarithmic function
: log(x) for natural logarithm
- The
logarithmic function
: log10(x) for logarithm
of base 10
All
of these functions are included by the <math.h>
header
We also suggest that you check the help section of your software.
For example in Visual C++ from HELP Index we can find the following:
|
|