Macaulay2 Engine
Loading...
Searching...
No Matches

◆ getreciprocal()

complex complex::getreciprocal ( )
inline

Definition at line 338 of file NAG.hpp.

339{
340 complex t;
341 t.real = real;
342 t.imag = imag * -1;
343 double div;
344 div = (real * real) + (imag * imag);
345 t.real /= div;
346 t.imag /= div;
347 return t;
348}
double imag
Definition NAG.hpp:224
complex()
Definition NAG.hpp:248
double real
Definition NAG.hpp:223

References complex(), imag, and real.