- Math library functions
- Perform common mathematical calculations
- #include <math.h>
- Format for calling functions
- FunctionName( argument );
- » If multiple arguments, use comma-separated list
- printf( "%.2f", sqrt( 900.0 ) );
- » Calls function sqrt, which returns the square root of its argument
- » All math functions return data type double
- Arguments may be constants, variables, or expressions
Commonly used library functions
continue...
No comments:
Post a Comment