Mathematical
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ abs │ "stdlib.h" │ abs
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ absolute │
│ │ │ │ value of │
│ │ │ │ an │
│ │ │ │ integer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ ceil │ "math.h" │ ceil
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ double │
│ │ │ │ value │
│ │ │ │ repres- │
│ │ │ │ enting │
│ │ │ │ the │
│ │ │ │ smallest │
│ │ │ │ integer │
│ │ │ │ that is │
│ │ │ │ greater │
│ │ │ │ than or │
│ │ │ │ equal to │
│ │ │ │ a number. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ div │ "stdlib.h" │ div
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ quotient │
│ │ │ │ and │
│ │ │ │ remainder │
│ │ │ │ of an │
│ │ │ │ integer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ erf │ "math.h" │ erf
- erfc │ Calcu- │
│ │ │ │ lates the │
│ │ │ │ error │
│ │ │ │ function. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ erfc │ "math.h" │ erf
- erfc │ Calcu- │
│ │ │ │ lates the │
│ │ │ │ error │
│ │ │ │ function │
│ │ │ │ for large │
│ │ │ │ numbers. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ exp │ "math.h" │ exp
│ Calcu- │
│ │ │ │ lates an │
│ │ │ │ exponen- │
│ │ │ │ tial │
│ │ │ │ function. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fabs │ "math.h" │ fabs
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ absolute │
│ │ │ │ value of │
│ │ │ │ a │
│ │ │ │ floating- │
│ │ │ │ point │
│ │ │ │ number. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ floor │ "math.h" │ floor
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ double │
│ │ │ │ value │
│ │ │ │ repres- │
│ │ │ │ enting │
│ │ │ │ the │
│ │ │ │ largest │
│ │ │ │ integer │
│ │ │ │ that is │
│ │ │ │ less than │
│ │ │ │ or equal │
│ │ │ │ to a │
│ │ │ │ number. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ fmod │ "math.h" │ fmod
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ floating │
│ │ │ │ point │
│ │ │ │ remainder │
│ │ │ │ of one │
│ │ │ │ argument │
│ │ │ │ divided │
│ │ │ │ by │
│ │ │ │ another. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ frexp │ "math.h" │ frexp
│ Separates │
│ │ │ │ a │
│ │ │ │ floating- │
│ │ │ │ point │
│ │ │ │ number │
│ │ │ │ into its │
│ │ │ │ mantissa │
│ │ │ │ and expo- │
│ │ │ │ nent. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ gamma │ "math.h" │ gamma
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ gamma │
│ │ │ │ function. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ hypot │ "math.h" │ hypot
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ hypotenuse│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ labs │ "stdlib.h" │ labs
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ absolute │
│ │ │ │ value of │
│ │ │ │ a long │
│ │ │ │ integer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ ldexp │ "math.h" │ ldexp
│ Multi- │
│ │ │ │ plies a │
│ │ │ │ floating- │
│ │ │ │ point │
│ │ │ │ number by │
│ │ │ │ an inte- │
│ │ │ │ gral │
│ │ │ │ power of │
│ │ │ │ 2. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ ldiv │ "stdlib.h" │ ldiv
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ quotient │
│ │ │ │ and │
│ │ │ │ remainder │
│ │ │ │ of a long │
│ │ │ │ integer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ log │ "math.h" │ log
│ Calcu- │
│ │ │ │ lates │
│ │ │ │ natural │
│ │ │ │ loga- │
│ │ │ │ rithm. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ log10 │ "math.h" │ log10
│ Calcu- │
│ │ │ │ lates │
│ │ │ │ base 10 │
│ │ │ │ loga- │
│ │ │ │ rithm. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ max │ "stdlib.h" │ max
│ Compares │
│ │ │ │ two │
│ │ │ │ values │
│ │ │ │ and │
│ │ │ │ returns │
│ │ │ │ the │
│ │ │ │ larger of │
│ │ │ │ the two. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ min │ "stdlib.h" │ min
│ Compares │
│ │ │ │ two │
│ │ │ │ values │
│ │ │ │ and │
│ │ │ │ returns │
│ │ │ │ the │
│ │ │ │ smaller │
│ │ │ │ of the │
│ │ │ │ two. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ modf │ "math.h" │ modf
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ signed │
│ │ │ │ frac- │
│ │ │ │ tional │
│ │ │ │ portion │
│ │ │ │ of the │
│ │ │ │ argument. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ pow │ "math.h" │ pow
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ value of │
│ │ │ │ an argu- │
│ │ │ │ ment │
│ │ │ │ raised to │
│ │ │ │ a power. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ sqrt │ "math.h" │ sqrt
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ square │
│ │ │ │ root of a │
│ │ │ │ number. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: Regular Expressions]
[Next: Trigonometric Functions]