Horje
complex phase python Code Example
complex phase python
# calc the magnitude (abs) and the phase of a complex number 
from cmath import phase # No need to import abs()

c = 1 + 2j
print(abs(c)) # Should print 2.23606797749979
print(phase(c)) # Should print 1.1071487177940904




Python

Related
python startswith method Code Example python startswith method Code Example
iterate over every alternate character in string python Code Example iterate over every alternate character in string python Code Example
how shorten with enter long script python Code Example how shorten with enter long script python Code Example
string to bits python Code Example string to bits python Code Example
python cgi get raw post data Code Example python cgi get raw post data Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8