Download presentation
Presentation is loading. Please wait.
Published byGillian Pope Modified over 6 years ago
1
Library Functions Goals of software engineering reliable code
accomplished by code reuse C++ promotes code reuse with predefined classes and functions in the standard library
2
C++ cmath Library Typical mathematical functions
e.g. sqrt, sin, cos, log Function use in an assignment statement y = sqrt(x); Function call Function name Function argument
3
Example: sqrt Function
Function sqrt as a “black box” Square root function X is 16.0 Result is 4.0
4
Some Mathematical Library Functions
5
Some Mathematical Library Functions (continued)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.