Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 31. Working with Numerics

<feature>
  • Learn about the standard math functions

  • See how to generate random numbers

  • Learn about complex numbers and valarrays

  • Explore the generic numeric algorithms

</feature>

Identifying Numeric Headers

The Standard C++ Library provides loads of functionality for numeric processing, a common programming task. Table 31.1 describes each of the standard headers that support numeric operations for standard C++.

Table 31.1. Standard Headers That Support Numeric Operations

Header

Purpose

<cmath>

Includes the standard C header <math.h> within the std namespace, providing standard math functions.

<cstdlib>

Includes the standard C header <stdlib.h> within the std namespace, providing random number generation.

<complex>

Provides a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book