Numeric Functions

Numerical computations are very powerful in programming, and C++ provides a diverse range of mathematical functions.

There are two libraries for numerics in C++: the random numbers library and the mathematical functions, which C++ inherited from C.

The random numbers library consists of two parts. On one side there is the random number generator, on the other hand, the distribution of the generated random numbers. The random number generator generates a stream of numbers between a minimum and a maximum value, which the random number distribution maps onto the concrete distribution.

Because of C, C++ has a lot of standard mathematical functions. For example, there are logarithmic, exponential and trigonometric functions.

In the next lesson, I will talk about Text Processing in C++.

Get hands-on with 1200+ tech skills courses.