Skip to content
UPEEC

Numerics Library

`<numeric>`, `<cmath>`, `<complex>`, `<numbers>`, `<bit>`: accumulate, gcd, lcm, complex numbers, π, popcount.

Intermediate
Comments 0

std::accumulate(v.begin(), v.end(), 0.0); std::numbers::pi; std::popcount(x).

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.