fieker-DuValspielwiese
Last change
on this file since 5eeaa6 was
f534a3,
checked in by Michael Brickenstein <bricken@…>, 19 years ago
|
*bricken: initial version
git-svn-id: file:///usr/local/Singular/svn/trunk@8505 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
336 bytes
|
Line | |
---|
1 | ring r=0,x,lp; |
---|
2 | python_module::python("from Singular import number |
---|
3 | n=number(6) |
---|
4 | m=number(7) |
---|
5 | print \"+\", n+m |
---|
6 | print \"*\", n*m |
---|
7 | print \"-\", n-m |
---|
8 | print \"/\", n/m |
---|
9 | print -n |
---|
10 | print ((number(4)/number(2))==number(2)) |
---|
11 | print number(6)/number(5)+1; |
---|
12 | n+=3 |
---|
13 | print n |
---|
14 | n*=2 |
---|
15 | print n |
---|
16 | n/=2 |
---|
17 | print n |
---|
18 | n-=3 |
---|
19 | print n |
---|
20 | print 2+n |
---|
21 | print 2*n |
---|
22 | print 12/n |
---|
23 | print 10-n |
---|
24 | "); |
---|
25 | $ |
---|
Note: See
TracBrowser
for help on using the repository browser.