C++

<cmath>

Në shqip përdoret i njëjti emër.

ShpjegimiSQ

<cmath> ka funksionet matematikore të C++: std::sqrt, std::pow, std::abs, std::round, std::sin, std::hypot. Është versioni C++ i math.h.

EnglishEN

<cmath> has C++'s maths functions: std::sqrt, std::pow, std::abs, std::round, std::sin, std::hypot. It's the C++ version of math.h.

Si ta mendosh

Si kalkulatori shkencor.

Lexoje në anglisht

Like a scientific calculator.

Shembull kodicpp

#include <cmath>
double h = std::hypot(3.0, 4.0);   // 5
double r = std::round(4.567 * 100) / 100;

Terma të lidhur