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


next up previous contents index
Next: Relational Expressions Up: Expressions Previous: Unary Operators

Arithmetic Expressions

Glish supports the usual arithmetic operations: addition, subtraction, multiplication, division, modulus, and exponentiation. The corresponding operators are +, -, *, /, %, and ^. All work element-by-element given two equal-sized vectors, or pair a scalar with every element in a vector in turn given one scalar and one vector. Arithmetic operators applied to arrays operate the same way as arithmetic operators applied to vectors, but the result is an array instead of a vector. All require numeric operands and yield a numeric result. (See § 3.2.3, page [*], for details.)


next up previous contents index
Next: Relational Expressions Up: Expressions Previous: Unary Operators   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