What is the funtion of the predefined function <cmath> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the funtion of the predefined function <cmath>

C++

25th Apr 2020, 2:04 AM
Rhojun Sapon
Rhojun Sapon - avatar
1 Answer
0
The C++ <cmath> header file declares a set of functions to perform mathematical operations such as: sqrt() to calculate the square root, log() to find natural logarithm of a number etc.
25th Apr 2020, 2:25 AM
Prabhat Ranjan
Prabhat Ranjan - avatar