Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:legacy [2017/05/19 16:18] – [Stored files] some more wrong formatting. oroehrig | user_guide:tutorials:legacy [2019/02/11 16:42] (current) – oroehrig | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======If you have not used polymake in a long time...====== | + | {{page>.:latest:@FILEID@}} |
- | + | ||
- | ...you might want to read up on some things that are important for backward compatibility. | + | |
- | + | ||
- | ==== Numbers ==== | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | < | + | |
- | polytope > $f = new Integer(1); | + | |
- | + | ||
- | polytope > for (my $i = new Integer(100); | + | |
- | + | ||
- | polytope | + | |
- | 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 | + | |
- | </ | + | |
- | + | ||
- | The input of large integer and rational numbers was kind of subtle in the past, but now (since version 2.11) it has become quite intuitive: | + | |
- | < | + | |
- | polytope > $bignum=93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000; | + | |
- | + | ||
- | polytope > print $bignum; | + | |
- | 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 | + | |
- | + | ||
- | polytope > $ratnum=123456/ | + | |
- | + | ||
- | polytope > print $ratnum; | + | |
- | 10288/ | + | |
- | + | ||
- | </ | + | |
- | Each integer constant being too large to fit into a normal perl scalar value is automatically converted to an '' | + | |
- | + | ||
- | + | ||
- | ==== Stored files ==== | + | |
- | + | ||
- | Suppose you still have a file '' | + | |
- | + | ||
- | < | + | |
- | polymake cube.poly N_FACETS | + | |
- | </ | + | |
- | < | + | |
- | N_FACETS | + | |
- | 6 | + | |
- | </ | + | |
- | + | ||
- | from the command line as you used to. This is the backward compatibility mode. While this may give the impression that nothing changed and that you do not have to adapt to the new, this is plain wrong. | + | |
- | - The old stand-alone clients (such as '' | + | |
- | - Once you used the next generation '' | + | |
- | + | ||
- | Equivalent to calling "'' | + | |
- | + | ||
- | < | + | |
- | polymake ' | + | |
- | </ | + | |
- | + | ||
- | A word of warning: It was rarely legal but always popular to edit files that '' | + |