spielwiese
Last change
on this file since 4e2486 was
4e2486,
checked in by Michael Brickenstein <bricken@…>, 19 years ago
|
*bricken: more work on vectors
git-svn-id: file:///usr/local/Singular/svn/trunk@8515 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
424 bytes
|
Line | |
---|
1 | ring r=0,(x,y,z),lp; |
---|
2 | timer=1; |
---|
3 | python_module::python("from Singular import number, polynomial |
---|
4 | zero=number(0) |
---|
5 | one=number(1) |
---|
6 | zerop=polynomial(0) |
---|
7 | onep=polynomial(1) |
---|
8 | xy=polynomial('xy') |
---|
9 | print xy |
---|
10 | comp=polynomial('xy+1') |
---|
11 | print comp |
---|
12 | #the same as only monomials are build |
---|
13 | |
---|
14 | z=polynomial(xy); |
---|
15 | z*=number(3); |
---|
16 | print z,xy |
---|
17 | print xy+number(1) |
---|
18 | print z+xy |
---|
19 | print z,xy |
---|
20 | #print xy+xy*xy |
---|
21 | print xy |
---|
22 | for t in (xy*xy+xy+polynomial(1)): |
---|
23 | print t |
---|
24 | "); |
---|
25 | $ |
---|
Note: See
TracBrowser
for help on using the repository browser.