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

Method modulus

libraries/Complex/complex.h:37–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 void polar(const float modulus, const float phase);
36 float phase() const { return atan2(im, re); };
37 float modulus() const { return hypot(re, im); };
38 // conjugate is the number mirrored in x-axis
39 Complex conjugate() const { return Complex(re, -im); };
40 Complex reciprocal() const;

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64