MCPcopy 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
34Complex 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

unittestFunction · 0.80

Calls 1

ComplexClass · 0.85

Tested by 1

unittestFunction · 0.64