next up previous
Next: References Up: Built-in relations Previous: LEVI!-CIVITA switch

RELATION command

 

Except for the the relations activated by the two switches of the system, the others can be used by the command RELATION. Its syntax is

myverbatim792

A relation list is like a rule list; a group of relations in a list. Relation lists can be named, for example

myverbatim794

What happens after these commands are given? The system tries to apply the listed relations in the evaluated expressions. The order of the relations is fixed and if a complete list is to be created from the relations declared by the commands RELATION:

myverbatim800

then it would show in which order and relations are applied. There are five types of the relations (partly from syntactical, partly from algorithmical points of view) that are implemented:

In order that the program will apply a given relation the quantities from the expression must be defined. If that has not happened then the calculated expression will be given back without any effect. Therefore if the result does not differ from the input expression one has to check first whether all the objects are introduced or the relations make a loop.

Since the large number of the built-in relations offers many possible combinations, it is a convenient way to name relation lists. The system gives a possibility to use the relation lists locally, in a completely analogous way to the rule lists, by the keyword RELATION in a WHERE statement. Naturally the left hand side must be a relation list or the name of a relation list:

It may sometimes be a problem to remember which identifiers were introduced as tensors or symbols or which relations are activated. The command STATUS; helps to display the required information.

Acknowledgments

I greatly appreciated the many stimulating conversations with Dr. Magda Zimányi and the invaluable correspondence with Dr. Eberhard Schrüfer. The programming ideas from Dr. Schrüfer's EXCALC[9] package were most useful in developing the presented program.

This work was supported by OTKA (National Scientific Research Fund, Hungary) and was finished at GMD (Gesellschaft für Mathematik und Datenverarbeitung mbH, Germany) with support from DAAD (Deutscher Akademischer Austauschdienst, Germany).

References


next up previous
Next: References Up: Built-in relations Previous: LEVI!-CIVITA switch

gopher adminisztrator
Fri Sep 27 16:41:26 MET DST 1996