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

Method gonioHelper1

libraries/Complex/complex.cpp:229–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229Complex Complex::gonioHelper1(const byte mode) const
230{
231 Complex c = (one - this->c_sqr()).c_sqrt();
232 if (mode == 0)
233 {
234 c = c + *this * Complex(0,-1);
235 }
236 else
237 {
238 c = *this + c * Complex(0,-1);
239 }
240 c = c.c_log() * Complex(0,1);
241 return c;
242}
243
244
245Complex Complex::c_asin() const

Callers

nothing calls this directly

Calls 4

c_sqrMethod · 0.95
ComplexClass · 0.85
c_sqrtMethod · 0.80
c_logMethod · 0.80

Tested by

no test coverage detected