user_guide:shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
user_guide:shell [2019/02/05 13:52] – [The polymake Interactive Shell] fixed link oroehriguser_guide:shell [2019/02/06 18:14] – [Continuation mode] added matrix trick oroehrig
Line 19: Line 19:
 Finally, you can just enter a bare ''help;'' command and get a //very// brief summary of the page you are currently reading. Finally, you can just enter a bare ''help;'' command and get a //very// brief summary of the page you are currently reading.
  
-==== Switching between applications ==== 
- 
-Applications are, collections of object types, functions, and other stuff related to some distinct mathematical subject.  At all times during the interactive session in the polymake shell, there is one //current// application, whose name is permanently displayed in the shell prompt. 
- 
-The only difference between the current application and the rest is that you can call the functions and object constructors of the former without having to qualify them with the application name as a prefix.  When you want to make other application current, you must enter this command: ''%%application "NAME";%%'' 
  
 ==== Continuation mode ==== ==== Continuation mode ====
 Each command must be concluded with a semicolon. If you hit ENTER without doing so, polymake supposes that your expression is going to be continued on the next line; you will see this on the changed input prompt, which will contain the continuation number in parentheses. This is useful for typing in conditional blocks or loops over several lines or the input of multi-line constants (e.g. for matrices). You can press Ctrl-C to escape from the continuation mode. Each command must be concluded with a semicolon. If you hit ENTER without doing so, polymake supposes that your expression is going to be continued on the next line; you will see this on the changed input prompt, which will contain the continuation number in parentheses. This is useful for typing in conditional blocks or loops over several lines or the input of multi-line constants (e.g. for matrices). You can press Ctrl-C to escape from the continuation mode.
 +
 +A neat trick to conveniently enter a matrix using the continuation mode:
 +<code>
 +polytope > $m = <<".";
 +polytope (2)> 1 0 0 0
 +polytope (3)> 1 1 0 0
 +polytope (4)> 1 0 1 0
 +polytope (5)> 1 0 0 1
 +polytope (6)> .
 +</code>
  
 ==== History and replaying ==== ==== History and replaying ====
  • user_guide/shell.txt
  • Last modified: 2021/01/12 15:55
  • by gawrilow