MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / complex__log

Function complex__log

inst/include/Rcpp/sugar/functions/complex.h:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 return y ;
73}
74inline Rcomplex complex__log( Rcomplex x){
75 Rcomplex y ;
76 y.i = ::atan2(x.i, x.r);
77 y.r = ::log(::hypot(x.r, x.i));
78 return y ;
79}
80inline Rcomplex complex__sqrt(Rcomplex z){
81 Rcomplex r ;
82 double mag;

Callers

nothing calls this directly

Calls 2

hypotFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected