IBM Release 1.93 PDAs & Smartphones User Manual


 
3.8. Predefined Mathematical Functions
Figure 2.17: Detail of the CAD output for one iteration of the glass ridge waveguide to free
space coupler.
3.8.1. Arithmetic Operators
The user-facing part of POEMS is implemented in REXX, so the arithmetic and logical
operators and many of the simpler mathematical functions are native REXX constructs,
and have REXX syntax and semantics.
+ (addition)
- (subtraction)
* (multiplication)
/ (division (real numbers))
// remainder (remainder has the same sign as the numerator)
% integer division
a. Differences from C/C++
C programmers should beware of a few things: the ’%’ operator, which in C and C++ is
the modulus (remainder) operator, is used for ordinary integer division in REXX (and so
in POEMS). Use the double-slash (’//’) operator for modulus.
43