for debugging: for printing numbers to the console DELETE LATER */
| 504 | for printing numbers to the console |
| 505 | DELETE LATER */ |
| 506 | void 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 |
no test coverage detected