User Tools

Site Tools


jvs:cigal:manual:chapter2:type

CIGAL Reference Manual, Chapter 2 (Commands): TYPE

TYPE -- Display messages and/or the values of data variables

usage: type varb1 varb2 …

TYPE prints its arguments, displaying the values of data variables. If an argument has multiple values (eg. array, matrix, etc.) then TYPE prints all values. If more than 1 multi-valued argument is specified then each argument is printed in a separate column.

TYPE is a simple version of the more general command, FTYPE. Whereas with FTYPE you specify the format of the display, TYPE's format specification is defined automatically. In general, when looking at data values during a normal interactive CIGAL session TYPE is more useful, whereas FTYPE allows more control over the format of the output and is particularly useful when writing macro programs.

Note: If you want to look at the value(s) of only a single variable, you can simply give the variable name, omitting the word 'type'. This is interpreted as an implicit TYPE command.

Examples:

    Assume the following variables have been defined:
        a1 = { 1.2 3 5.6 99.7 }
        a2 = { 45 55 21 }
        s1 = 'Trial '
        b = 7
        c = 94.1

  Command:                          Output:
    type a1                            1.200     3.000     5.600    99.700
    a1                                 1.200     3.000     5.600    99.700
    type 'Result for' s1 b "= " c     Result for Trial  7 =  94.1
    type a1 a2                         1.200       45
                                       3.000       55
                                       5.600       21
                                      99.700
    type a1 a2 > file2.dat            [Values above stored in file FILE2.DAT]

See REDIRECT(1) for help on redirecting output to disk files or printer.

See FTYPE(2) for information on the formatted version of the TYPE command.

See Also:
FTYPE(2), REDIRECT(1)

CIGAL Home, CIGAL Manual, Commands List, Manual Help

jvs/cigal/manual/chapter2/type.txt · Last modified: 2023/02/23 18:43 (external edit)