Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-69
Examples
1. In this example, the integer array I is displayed. The second instance uses the
FORMAT clause to display I as eight seven-digit integers using the I edit
descriptor.
2. In this example, the real array X is displayed. The second instance uses the
FORMAT clause with the repeatable edit descriptors E, F and G to display X as
various ten-digit fields.
3. In this example, the real array D is displayed. The second instance uses the
FORMAT clause with the repeatable edit descriptor D. The third instance shows
the effect of the FOR clause when used in combination with the FORMAT clause.
4. This example shows the logical variable ERROR is displayed using the L edit
descriptor.
-FOROBJ-DISPLAY i
I[1] = 1 2 3 4 5 6 7 8
-FOROBJ-DISPLAY i FORMAT (8I7)
1 2 3 4 5 6 7 8
-FOROBJ-DISPLAY x
X[1] = 3.1416 6.2832 9.424801 12.5664 15.708 18.8496 21.9912
25.1328
-FOROBJ-DISPLAY x FORMAT (E10.4,E10.2E2,F10.4,G10.4)
0.3142E+01 0.63E+01 9.4248 12.57
0.1571E+02 0.19E+02 21.9912 25.13
-FOROBJ-DISPLAY d
D[1] = 9.8696517944335936 39.478607177734376 88.826873779296876
157.9144287109375 246.74127197265625 355.3074951171875 483.61285400390626
631.65771484375
-FOROBJ-DISPLAY d FOR 8 FORMAT (D20.12)
0.986965179443E+01
0.394786071777E+02
0.888268737793E+02
0.157914428711E+03
0.246741271973E+03
0.355307495117E+03
0.483612854004E+03
0.631657714844E+03
-FOROBJ-DISPLAY d[2] FOR 4 FORMAT (D20.12) -- Start at second element.
0.394786071777E+02
0.888268737793E+02
0.157914428711E+03
0.246741271973E+03
-FOROBJ-DISPLAY error FORMAT (L3)
F