source: git/Tst/Manual/rationalPointConic.tst @ 42ea848

spielwiese
Last change on this file since 42ea848 was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 456 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "paraplanecurves.lib";
3ring R = 0, (x,y,z), dp;
4system("random", 4711);
5poly p = x^2 + 2*y^2 + 5*z^2 - 4*x*y + 3*x*z + 17*y*z;
6def S = rationalPointConic(p); // quadratic field extension,
7// minpoly = a^2 - 2
8testPointConic(p, S);
9setring R;
10p = x^2 - 1857669520 * y^2 + 86709575222179747132487270400 * z^2;
11S = rationalPointConic(p); // same as current basering,
12// no extension needed
13testPointConic(p, S);
14tst_status(1);$
Note: See TracBrowser for help on using the repository browser.