Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ polar
Method
polar
libraries/Complex/complex.cpp:27–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
26
27
void Complex::polar(const float modulus, const float phase)
28
{
29
re = modulus * cos(phase);
30
im = modulus * sin(phase);
31
}
32
33
34
Complex Complex::reciprocal() const
Callers
1
unittest
Function · 0.80
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.64