Changeset 06df101 in git for libpolys/tests/coeffs_test.h
- Timestamp:
- Jul 6, 2011, 4:41:07 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 6c19d854882ab99fd19b9b972a32606106c2f2ee
- Parents:
- 2d3091c7bb239cd4787574560ab475ac88621da7
- git-author:
- Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-07-06 16:41:07+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:12+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/tests/coeffs_test.h
r2d3091c r06df101 481 481 setGMPFloatDigits( 10, 5 ); // Init global variables in mpr_complex.cc for gmp_float's... // Note that this seems also to be required for Z_2^m (and Zn?)!???? 482 482 simple(n_long_C); 483 } 484 485 486 // polynomial rings needed for extentions: n_algExt, n_transExt ! 487 483 } 484 485 void test_Q_special() 486 { 487 const coeffs cf = nInitChar(n_Q, NULLp); 488 489 if (cf == NULLp) 490 clog << ( "Test: could not get this coeff. domain" ); 491 492 TS_ASSERT_DIFFERS(cf->cfCoeffWrite, NULLp); 493 494 if (cf->cfCoeffWrite != NULL ) 495 { 496 clog << "Coeff-domain: " << endl; 497 n_CoeffWrite(cf); PrintLn(); 498 } 499 500 number q1 = n_Init(21, cf); 501 number q2 = n_Init(2, cf); 502 number q3 = n_Div(q1, q2, cf); 503 number q4 = n_Init(30, cf); 504 number q5 = n_Mult(q3, q4, cf); 505 TS_ASSERT(n_Test(q5, cf)); 506 Print("21/2 * 30 = %d\n", n_Int(q5, cf)); 507 TS_ASSERT(n_Test(q5, cf)); 508 n_Delete(&q1, cf); 509 n_Delete(&q2, cf); 510 n_Delete(&q3, cf); 511 n_Delete(&q4, cf); 512 n_Delete(&q5, cf); 513 } 488 514 }; 489 515
Note: See TracChangeset
for help on using the changeset viewer.