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

Function printNumber

kernel/linear_algebra/linearAlgebra.cc:506–517  ·  view source on GitHub ↗

for debugging: for printing numbers to the console DELETE LATER */

Source from the content-addressed store, hash-verified

504 for printing numbers to the console
505 DELETE LATER */
506void printNumber(const number z)
507{
508 if (nIsZero(z)) printf("number = 0\n");
509 else
510 {
511 poly p = pOne();
512 pSetCoeff(p, nCopy(z));
513 pSetm(p);
514 printf("number = %s\n", pString(p));
515 pDelete(&p);
516 }
517}
518
519/* for debugging:
520 for printing matrices to the console

Callers 1

printSolutionsFunction · 0.85

Calls 1

pStringFunction · 0.85

Tested by

no test coverage detected