Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: Arithmetic Expressions Up: Expressions Previous: Atomic Expressions

Unary Operators

Glish provides three basic unary operators: +, -, and !. The first simply yields the value of its operand; the second, its arithmetic negation; and the third, its logical negation. All require numeric operands and yield a numeric or boolean (for ``!") result, and all work on vectors as well as scalars.

In addition to these basic operators, all of the regular expression operators are also available: ~, =~, !~. These operators are used to apply regular expressions to strings, and they can be used as either binary or unary operators.

(See § 3.2.3, page [*] for a description of + and -, § 3.2.4, page [*] for a description of !, and § 4.9, page [*] for a description of the regular expression operators.)


next up previous contents index
Next: Arithmetic Expressions Up: Expressions Previous: Atomic Expressions   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15