C++ Useful Math Functions

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=WmsXJcHCHSs



Duration: 0:00
305 views
20


CMath C++ library. So far, we've gone over arithmetic operators for math in C++, including addition, subtraction, multiplication, divison, modulus, decrement, and increment. Outside of these operators, we can utilize the cmath library in C++ to computer more complex mathematical expressions. In this video we'll go over the most commonly used math functions for the average programmer, specifically, min, max, abs, floor, ceil, round pow, sqrt. We'll also go over some practical use cases for these functions.

Learn the random function in C++ by coding rock paper scissors:
   • Rock Paper Scissors Game in C++  

List of math functions in the cmath library:
https://cplusplus.com/reference/cmath/

C++ Playlist:
   • C++ Programming Tutorial  

Install C++ with VS Code:
   • How to set up C++ in Visual Studio Code  

Subscribe for more coding tutorials 😄 !