source: git/Tst/Short/solve_s.tst @ a35862

fieker-DuValspielwiese
Last change on this file since a35862 was 796e5a, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* solve stuff cleanup git-svn-id: file:///usr/local/Singular/svn/trunk@3853 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.5 KB
Line 
1//
2// solve_s.tst - short tests for
3
4LIB "tst.lib";
5tst_init();
6tst_ignore("CVS ID $Id: solve_s.tst,v 1.2 1999-11-18 16:38:36 obachman Exp $");
7
8LIB "solve.lib";
9
10////////////////////////////
11
12tst_ignore( "ring rs1 = 0,(x,y,z),lp;" );
13ring rs1 = 0,(h,x,y,z),lp;
14
15poly f0= x+y+z+1;
16poly f1= x^2 + 6*x + 3*y + 6*z - 4;
17poly f2= y^2 + 2*x -7*y + 5 + 2*z;
18poly f3= x^2 + y^2 + z^2 - 1;
19ideal i=f1,f2,f3;
20ideal im=f0,f1,f2,f3;
21
22ures_solve(homog(i,h),1);
23mp_res_mat(homog(im,h),1);
24
25tst_ignore( "ring rs2 = 0,(x,y,z),lp;" );
26ring rs2 = 0,(x,y,z),lp;
27
28poly f0= x+y+z;
29poly f1= x^2 + 6*x + 3*y + 6*z - 4;
30poly f2= y^2 + 2*x -7*y + 5 + 2*z;
31poly f3= x^2 + y^2 + z^2 - 1;
32ideal i=f1,f2,f3;
33ideal im=f0,f1,f2,f3;
34
35ures_solve(i);
36mp_res_mat(im);
37
38fglm_solve(i,30);
39rlist;
40
41setring rs2;
42triangL_solve(i,30);
43rlist;
44
45setring rs2;
46triangLf_solve(i,30);
47rlist;
48
49setring rs2;
50triangM_solve(i,30);
51rlist;
52
53////////////////////////////
54
55tst_ignore( "ring rs6= 0,(x,y),lp;" );
56ring rs6= 0,(x,y),lp;
57poly f = 15x5 + x3 + x2 - 10;
58laguerre_solve(f);
59
60laguerre_solve(f,10);
61
62tst_ignore( "ring rsc= (real,20,I),x,lp;" );
63ring rsc= (real,20,I),x,lp;
64poly f = (15.4+I*5)*x^5 + (25.0e-2+I*2)*x^3 + x2 - 10*I;
65laguerre_solve(f);
66
67////////////////////////////
68
69ring rs7 = 0,(x),lp;
70ideal v=16,0,11376,1046880,85949136;
71interpolate( 3, v, 4 );
72
73ring rs8 = 0,(x,y),dp;
74ideal p = 2,3;
75ideal v= 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16;
76poly ip= interpolate( p,v,3 );
77ip;
78
79////////////////////////////
80
81tst_status(1);$
82
Note: See TracBrowser for help on using the repository browser.