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

Method c_sqr

libraries/Complex/complex.cpp:138–143  ·  view source on GitHub ↗

POWER FUNCTIONS

Source from the content-addressed store, hash-verified

136// POWER FUNCTIONS
137//
138Complex Complex::c_sqr() const
139{
140 float r = re * re - im * im;
141 float i = 2 * re * im;
142 return Complex(r, i);
143}
144
145
146Complex Complex::c_sqrt() const

Callers 2

gonioHelper1Method · 0.95
unittestFunction · 0.80

Calls 1

ComplexClass · 0.85

Tested by 1

unittestFunction · 0.64