First

Section: Misc. Reference Manual Pages (Usage)
Index Return to Main Contents

 6 "IRIT Version 6.0"   

NAME

First Usage

Commands to IRIT are entered using a textual interface, usually from the same window the program was executed from.

Some important commands to begin with are,

1. include("file.irt"); - will execute the commands in file.irt. Note include can be recursive up to 10 levels. To execute the demo (demo.irt) simply type 'include("demo.irt");'. Another way to run the demo is by typing demo(); which is a predefined procedure defined in iritinit.irt.

2. help(""); - will print all available commands and how to get help on them. A file called irit.hlp will be searched as irit.cfg is being searched (see above), to provide the help.

3. exit(); - close everything and exit IRIT.

Most operators are overloaded. This means that you can multiply two scalars (numbers), or two vectors, or even two matrices, with the same multiplication operator (*). To get the on-line help on the operator '*' type 'help("*");'

The best way to learn this program (like any other program...) is by trying it. Print the manual and study each of the commands available. Study the demo programs (*.irt) provided as well.

The "best" mode to use irit is via the emacs editor. With this distribution an emacs mode for irit files (irt postfix) is provided (irit.el). Make your Irit mode that supports the following three keystrokes:


    Meta-E             Executes the current line
    Meta-R             Executes the current Region (Between Cursor and Mark)
    Meta-S             Executes a single line from input buffer

The first time one of the above keystrokes is hit, emacs will fork an Irit process so that Irit's stdin is controlled via the above commands. This emacs mode was tested under various unix environments and under OS2 2.x.


 

Index

NAME

This document was created by man2html, using the manual pages.
Time: 07:28:42 GMT, July 20, 2024