Contents
1 Overview
Introduction
Syntax of the DISGCL Command
Syntax of DISGCL Script Files
Syntax of Statements
Data Types
Expressions
Quick Plots
2 Data Types, Variables
Data Types
Variables
System Variables
Specifying Constants
Arrays
Subscripts
Character Arrays and Strings
3 Expressions and Operators
Operators
Array Operations
Type Conversions
Type Conversion Functions
4 Statements
Identification of DISGCL Files
Comment Lines
Calling DISLIN Routines
Calling DISLIN Subroutines
Calling DISLIN Functions
Passing Parameters to DISLIN Routines
DISGCL Commands
Initializing Arrays with { }
The IF Statement
IF Constructs
SWITCH Statements
The DO Statement
The WHILE Statement
The BREAK Statement
The CONTINUE Statement
The GOTO Statement
Executing System Commands
5 GCL Commands
Termination of DISGCL
Getting Help
Including DISGCL Files
Listing Variables
Freeing Variables
The PRINT Command
Logging Commands
Creating Arrays
6 User-defined Subroutines and Functions
Calling User-defined Subroutines
Calling User-defined Functions
The SUBROUTINE Statement
The FUNCTION Statement
The EXTERN Statement
The RETURN Statement
Parameters
7 Quick Plots
The PLOT Command
The SCATTR Command
The PLOT3 Command
The PLOT3R Command
The SURF3 Command
The SURFACE Command
The SURSHADE Command
The CONTOUR Command
The CONSHADE Command
Scaling of Quick Plots
Quick Plot Variables
8 Data Files
Syntax of Data Files
Data File Routines
Example
9 Input and Output
Formatted Output with PRINTF
Formatted Output with SPRINTF
Formatted Input with SCANF
Formatted Input with SSCANF
File Access
Formatted Output to Files
Formatted Input from Files
Text Input and Output Functions
Binary Input and Output Functions
Example
A Intrinsic Functions
Mathematical Functions
Type Conversion Functions
Complex Functions
Array Functions
Variable and Parameter Functions
Data File Functions
Memory Allocating Functions
String Functions
File Functions
Input and Output Functions
System Functions
Time Functions
Random Number Functions
B Examples
Demonstration of CURVE
3-D Colour Plot
Surface Plot
Contour Plot
Shaded Contour Plot
World Coastlines and Lakes
Widgets
C Index