Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
160 Days of DSA (Win T-Shirt!)
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
C++
4.1k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
CPP-Library
240+ articles
C-Library
120+ articles
cpp-math
50 posts
Popular Articles
Recent Articles
log2() function in C++ with Examples
Last Updated: 04 May 2020
The function log2() of cmath header file in C++ is used to find the logarithmic value with base 2 of the passed argument. Syntax:log2(x)Para
...read more
CPP-Functions
C++
cpp-math
tgamma() method in C/C++ with Examples
Last Updated: 01 June 2023
The tgamma() function is defined in header math.h header in C and cmath library in C++. This function is used to compute the gamma function
...read more
CPP-Functions
C Language
C++
math
C-Functions
cpp-math
Greatest Integer Function
Last Updated: 05 April 2024
The greatest Integer Function [X] indicates an integral part of the real number [Tex]x [/Tex]which is the nearest and smaller intege
...read more
Mathematical
number-theory
cpp-math
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
C++
4.1k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
CPP-Library
240+ articles
C-Library
120+ articles
C++ Mathematical Functions
Last Updated: 04 August 2023
C++ being a superset of C, supports a large number of useful mathematical functions. These functions are available in standard C++ to suppor
...read more
CPP-Functions
C++
C++ Programs
cpp-math
atan2() function in C++ STL
Last Updated: 21 June 2021
The atan2() is an inbuilt function in C++ STL which returns tangent inverse of (y/x), where y is the proportion of the y-coordinate and x is
...read more
STL
CPP-Functions
C++
cpp-math
modf() in C/C++
Last Updated: 14 April 2023
In C++, modf() is a predefined function used for mathematical calculations. math.h is the header file required for various mathematical func
...read more
CPP-Library
C Language
C++
C-Library
cpp-math
fmax() and fmin() in C++
Last Updated: 06 February 2023
fmax() and fmin() functions are defined in cmath header file.fmax() function: The syntax of this function is:double fmax (double x, double y
...read more
CPP-Library
Programming Language
C++
cpp-math
fabs() in C++
Last Updated: 31 January 2023
The fabs() function returns the absolute value of the argument. Mathematically |a|. If a is value given in the argument. Syntax:double fabs(
...read more
CPP-Library
C++
cpp-math
asin() and atan() functions in C/C++ with Example
Last Updated: 31 August 2022
In C++, asin() and atan() is a predefined function used for mathematical calculations. math.h is the header file required for various mathem
...read more
CPP-Library
C++
cpp-math
std::cbrt() in C++
Last Updated: 24 January 2022
The std::cbrt() is an inbuilt function in C++ STL which is used to calculate the cube root of number. It accepts a number as argument and re
...read more
STL
CPP-Functions
C++
cpp-math
sqrt, sqrtl and sqrtf in C++
Last Updated: 04 July 2024
There are various functions available in the C++ Library to calculate the square root of a number. Most prominently, sqrt is used that is de
...read more
Technical Scripter
CPP-Library
C++
cpp-math
DSA
trunc() , truncf() , truncl() in C language
Last Updated: 06 February 2023
All three functions are used to remove digits after decimal point and return the modified decimal number. trunc() : Truncates a double value
...read more
C Language
C-Library
cpp-math
round() in C++
Last Updated: 26 September 2024
The std::round() in C++ is a standard library function used to round off the given decimal value which can be in float or double. It returns
...read more
STL
CPP-Library
CPP-Functions
C++
cpp-math
Ceil and Floor functions in C++
Last Updated: 11 January 2025
In mathematics and computer science, the floor() and ceil() functions that are defined in cmath header file, map a real number to the greate
...read more
CPP-Library
C++
School Programming
cpp-math
C++ Floating Point Manipulation
Last Updated: 24 May 2023
Like integers, C++11 introduced some basic inbuilt functions for handling simple mathematical computations of floating-point numbers necessa
...read more
CPP-Library
C++
cpp-math
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !