This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/complex/relfun/polar.cpp

10 lines
179 B
C++
Raw Normal View History

#include <complex.h>
void main( void ) {
Complex a (24.98, 30);
cout << "The polar coordinates of " << a << " = "
<< polar( a.real(), a.imag() ) << endl;
}