MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / operator /

Method operator /

libraries/Complex/complex.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89Complex Complex::operator / (const Complex &c) const
90{
91 float f = 1.0/(c.re * c.re + c.im * c.im);
92 float r = (re * c.re + im * c.im) * f;
93 float i = (im * c.re - re * c.im) * f;
94 return Complex(r, i);
95}
96
97
98Complex& Complex::operator += (const Complex &c)

Callers

nothing calls this directly

Calls 1

ComplexClass · 0.85

Tested by

no test coverage detected