Electrical and Computer Engineering
47
of 48
UAH
CPE 112
Library Function Example
•
Example:
–
#include <iostream>
–
#include <cmath>
// For sqrt() and fabs()
–
–
using namespace std
;
–
.
–
.
–
.
–
float
alpha;
–
float
beta;
–
.
–
.
–
.
–
alpha = sqrt(7.3 + fabs(beta));