From WikiChip
Difference between revisions of "c/math functions"
< c

(Created page with "{{C Guide}} While basic arithmetics works well for many tasks, sometimes more complex math is needed. C provides a set of '''math functions''' for pe...")
 
Line 1: Line 1:
 
{{C Guide}}
 
{{C Guide}}
 
While [[basic arithmetics - C|basic arithmetics]] works well for many tasks, sometimes more complex math is needed. C provides a set of '''math functions''' for performing some common math operations which include trigonometric functions, exponential and logarithmic functions, power and absolute-value functions, and nearest integer functions.
 
While [[basic arithmetics - C|basic arithmetics]] works well for many tasks, sometimes more complex math is needed. C provides a set of '''math functions''' for performing some common math operations which include trigonometric functions, exponential and logarithmic functions, power and absolute-value functions, and nearest integer functions.
 +
 +
The function prototype and macro definitions for the math functionality discussed in this article can be can accessed by including the <math.h> standard header.

Revision as of 13:22, 28 December 2013

While basic arithmetics works well for many tasks, sometimes more complex math is needed. C provides a set of math functions for performing some common math operations which include trigonometric functions, exponential and logarithmic functions, power and absolute-value functions, and nearest integer functions.

The function prototype and macro definitions for the math functionality discussed in this article can be can accessed by including the <math.h> standard header.