Differences
This shows you the differences between two versions of the page.
— | user_guide:tutorials:latest:legacy [2023/11/06 10:57] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== If you have not used polymake in a long time... ====== | ||
+ | |||
+ | ...you might want to read up on some things that are important for backward compatibility. | ||
+ | |||
+ | ==== Numbers ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | <code perl> | ||
+ | > $f = new Integer(1); | ||
+ | > for (my $i = new Integer(100); | ||
+ | > print $f; | ||
+ | 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 | ||
+ | </ | ||
+ | The input of large integer and rational numbers was kind of subtle in the past, but now it has become quite intuitive: | ||
+ | |||
+ | <code perl> | ||
+ | > $bignum=93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000; | ||
+ | > print $bignum; | ||
+ | 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 | ||
+ | > $ratnum=123456/ | ||
+ | > print $ratnum; | ||
+ | 10288/65751 | ||
+ | </ | ||
+ | Each integer constant being too large to fit into a normal perl scalar value is automatically converted to an '' | ||
+ | |||
+ | ==== Command line ==== | ||
+ | |||
+ | With early polymake versions, you had to issue a separate polymake command from shell command line for every single step. Starting with version 3.0, this way of working has been deprecated in favor of a much more comfortable and powerful interactive shell. In the version 4.0, the support for old command line mode has been dropped completely. | ||
+ | |||
+ | If necessary, you can resemble the old behavior using one-line scripts like the following ones: | ||
+ | |||
+ | Instead of "'' | ||
+ | |||
+ | < | ||
+ | polymake ' | ||
+ | </ | ||
+ | Instead of "'' | ||
+ | |||
+ | < | ||
+ | polymake 'my $c=load(" | ||
+ | </ | ||
+ | Please keep in mind that this would be a rather uneconomic way of using polymake, since loading applications and rules every time causes a sizeable delay. | ||
+ | |||
+ | ==== Stored files ==== | ||
+ | |||
+ | polymake understands data files both in ancient plain ASCII format and in XML produced by 3.x releases. Upon loading, the data will be transformed to the current model and eventually stored in JSON format. You won't be able to use any old version of polymake with these files later. | ||
+ | |||
+ | A word of warning: It was rarely legal but always popular to edit files that '' | ||
+ | |||