Toggle navigation
Scanftree.com
Academic Tutorials
Automata
Data Structure
OS
Graph Theory
Microprocessor
Cryptography
Compiler Design
Computer Graphics
IPv4
Parallel Algorithm
Database Concept
DBMS
SQL
SQLite
Programming
Tutorials
C
C++
JAVA
C#
Python
Programs
C
C++
JAVA
Python
Preparation
Syllabus
Gate
Interview
Technical
HR/PI
Gk/Aptitude
Gk
Aptitude
MCQ
C
JAVA
Networking
Miscellaneous
Calculator
Health
Math
Developers
Css/Html Maker
Cheat Sheets
SEO Tools
Other
Math Formulas
IFSC Codes
: Scanftree
c
math.h
SEE THE INDEX
C Getting Started
Introduction
Application Of C
C Vs C++
Compiler Vs Interpreter
Constants
C Operators
Arithmetic
Bitwise
Assignment
Relational
Logical
Conditional
C Looping & Control
For Loop
While Loop
Do While Loop
Break Control
Continue Control
Goto Control
If-Else
Switch
C Function
User Defined Function Types
Call by Value and Call by Reference
Examples On Function
C file(Input/Output)
Files Introduction
C Headers
math.h
time.h
string.h
C Programs
C Interview Question
C MCQ
Math.h
It is commonly used for mathematical operations. Some functions of this header file uses floating point numbers as well as angle in terms of radians are also accepted.
The standard member funtions which are defined under
math.h
are:-
Commonly Used Functions
Function Name
Description
Return
pow
it is used to calculate the value of a number raised to some e power.
Float,Double,Long Double (according to the argument)
remainder
It is used to calculate the remainder of a/b.
Float,Double,Long Double (according to the argument)
round
It is used to calculate the value of argument rounded to the nearest integer.
Float,Double,Long Double (according to the argument)
sqrt
It is used to calculate the square root of a number.
Float,Double,Long Double (according to the argument)
ceil
It is used to calculate the smallest integer value of the floating point number entered which is not less than the number.
Integer
floor
It is used to calculate the largest integer value of the floating point number which is not greater than the number.
Float,Double,Long Double (according to the argument)
log
It is used to calculate natural logarithm for number.
Float,Double,Long Double (according to the argument)
exp
It is used to calculate the natural logarithm (e) raised to the argument power.
Float,Double,Long Double (according to the argument)
fmax
It is used to determine the greater of the two numbers.
Float,Double,Long Double (according to the argument)
fmin
It is used to determine the lesser of the two numbers.
Float,Double,Long Double (according to the argument)
fmod
It is used to determine the remainder of a/b where a and b are any 2 numbers
Float,Double,Long Double (according to the argument)
modf
It is used to decompose a number into its integer and fractional parts.
Floating Point Number pointer
Trignometric Functions
Function Name
Description
Return
sin
It is used to calculate the sine of the argument.
Float,Double ,Long Double (according to the argument)
sinh
It is used to calculate the hyperbolic sine of argument.
Float,Double,Long Double(according to the argument)
asin
It is used to calculate the arc sine of the argument.
Float,Double,Long Double(according to the argument)
asinh
It is used to calculate the arc hyperbolic sine of argument.
Float,Double,Long Double(according to the argument)
cos
It is used to calculate the cosine of the argument.
Float,Double,Long Double(according to the argument)
cosh
It is used to calculate the hyperbolic cosine of the argument
Float,Double,Long Double(according to the argument)
acos
It is used to find the arc cosine of the argument.
Float Double,Long Double (according to the argument)
acosh
It is used to calculate the arc hyperbolic cosine of argument.
Float,Double,Long Double(according to the argument)
tan
It is used to calculate the tangent of the argument.
Float,Double,Long Double (according to the argument)
tanh
It is used to calculate the hyperbolic tangent of the argument
Float,Double,Long Double (according to the argument)
atan
It is used to calculate the arc tangent of argument.
Float,Double,Long Double(according to the argument)
atanh
It is used to calculate the arc hyperbolic tangent of the argument.
Float,Double,Long Double(according to the argument)
Miscellaneous Functions
Function Name
Description
Return
isgreater
It is use to compare between two numbers a and b.
Integer
isgreaterequal
It is used to find whether a is greater than or equal to b where a and b are two numbers.
Integer
isless
It is used to find whether a is less than b where a and b are two numbers.
Integer
islessequal
It is used to find whether a is less than b or equal to b where a and b are two numbers.
Integer
islessgreater
It is used to find whether a is greater than or less than b.
Integer
log2
It is used to calculate the base 2 logarithm for number.
Float,Double,Long Double (according to the argument)
logb
It is used to calculate the exponent of number as a floating point integer value.
Float,Double,Long Double (according to the argument)
fabs
It is used to calculate the absolute value of the number.
Float,Double,Long Double (according to the argument)
exp2
It is used to calculate 2 raised to the argument power.
Float,Double,Long Double,(according to the argument)
expm1
It is used to calculate the natural logarithm (e) raised to the argument power.
Float,Double,Long Double (according to the argument)
nearbyint
It is use to calculate the value of argument rounded to the nearest integer
Float,Double,Long Double (according to the argument)
nextafter
It is use to find the next value after the first argument of the function thich is closer to the next argument.
Float,Double,Long Double (according to the argument)
Quantitative Aptitude
Arithmetic
DI
Reasoning
Logical
Verbal
Nonverbal
Programming
C
C++
C#
Java
CSE
Interview
HR
Technical Interview