About 96 results
Open links in new tab
  1. std::abs, std::labs, std::llabs, std::imaxabs - cppreference.com

    If std::abs is called with an unsigned integral argument that cannot be converted to int by integral promotion, the program is ill-formed. Overload (6) of std::abs for std::intmax_t is provided in …

  2. abs, labs, llabs, imaxabs - cppreference.com

    Return value The absolute value of n (i.e. |n|), if it is representable. Notes In 2's complement systems, the absolute value of the most-negative value is out of range, e.g. for 32-bit 2's complement type int, …

  3. std::abs (float), std::fabs, std::fabsf, std::fabsl - cppreference.com

    For integral arguments, the integral overloads of std::abs are likely better matches. If std::abs is called with an unsigned integral argument that cannot be converted to int by integral promotion, the …

  4. std::abs (std::complex) - cppreference.com

    Return value If no errors occur, returns the absolute value (also known as norm, modulus, or magnitude) of z. Errors and special cases are handled as if the function is implemented as std::hypot(std::real(z), …

  5. std::abs (std::valarray) - cppreference.com

    Unqualified function (abs) is used to perform the computation. If such function is not available, std::abs is used due to argument-dependent lookup. The function can be implemented with the return type …

  6. Common mathematical functions - cppreference.com

    Common mathematical functions C++

  7. std::norm (std::complex) - cppreference.com

    The Euclidean norm of a complex number is provided by std::abs, which is more costly to compute. In some situations, it may be replaced by std::norm, for example, if abs(z1) > abs(z2) then norm(z1) > …

  8. cppreference.com

    What links here Related changes Upload file Special pages Printable version Permanent link Page information

  9. Numerics library - cppreference.com

    The C++ numerics library includes common mathematical functions and types, as well as optimized numeric arrays and support for random number generation.

  10. Standard library header <cstdlib> - cppreference.com

    This header was originally in the C standard library as <stdlib.h>. This header provides miscellaneous utilities. Symbols defined here are used by several library components.