Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ reciprocal
Method
reciprocal
libraries/Complex/complex.cpp:34–40 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
33
34
Complex Complex::reciprocal() const
35
{
36
float f = 1.0 / (re * re + im * im);
37
float r = re * f;
38
float i = -im * f;
39
return Complex(r, i);
40
}
41
42
//
43
// EQUALITIES
Callers
1
unittest
Function · 0.80
Calls
1
Complex
Class · 0.85
Tested by
1
unittest
Function · 0.64