MCPcopy Create free account
hub / github.com/Singular/Singular / numberToComplex

Function numberToComplex

libpolys/coeffs/mpr_complex.h:312–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310gmp_complex sqrt( const gmp_complex & x );
311
312inline gmp_complex numberToComplex( number num, const coeffs r )
313{
314 if (nCoeff_is_long_C(r))
315 {
316 return *(gmp_complex*)num;
317 }
318 else
319 {
320 return gmp_complex( numberToFloat(num, r) );
321 }
322}
323
324char *complexToStr( gmp_complex & c, const unsigned int oprec, const coeffs src );
325//<-

Callers 2

mpr_numeric.ccFile · 0.85
solverMethod · 0.85

Calls 3

nCoeff_is_long_CFunction · 0.85
gmp_complexClass · 0.85
numberToFloatFunction · 0.85

Tested by

no test coverage detected