| HOME |
Global function is a kind of stand alone function,
consisting of a function name followed by a parenthesis. In side the
parenthesis are arguments, if any. For example,
->a = sin((x + y) / 0.45)
Here"sin" is a global function, whose arguments,
inside the parenthesis, must be of numerical data type. If the number
of arguments or data type of the arguments are not agreeable to
those predefined by the function, an error message is reported.
It is worthwhile to note that all class names
are global functions, for example
->A = Matrix(2,3)
Here "Matrix" is a global function, whose job
is to define a Matrix object, and assigned to a variable "A". Details of global functions
that define objects are in
class and class function.