11.01.2013 Views

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - Kxcad.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10<br />

Parameters<br />

Arithmetic Operators<br />

The allowable arithmetic operations are shown in the table below in the order of<br />

execution precedence. Parentheses are used to change the order of precedence.<br />

Operations within parentheses are performed first, with the usual order of precedence<br />

being maintained within the parentheses.<br />

Operator Operation Sample Expressions Interpreted As<br />

–,+ Negative or Positive<br />

immediately preceded<br />

by exponentiation<br />

In general, mixed mode expressions are not supported. For example, to compute<br />

A=B*C, where A and B are complex, but C is real, it is necessary to convert C to a<br />

complex number: A=B*CMPLX (C), where CMPLX is described under “Intrinsic<br />

Functions” in this section.<br />

Character Operator<br />

X–Y X(–Y)<br />

** Exponentiation –X**Y –(X**Y)<br />

–,+ Negative or Positive –X – Y (–X) – Y<br />

*,/ Multiplication or<br />

Division<br />

X*Y+Z (X*Y)+Z<br />

+,– Addition or Subtraction X+Y X+Y<br />

The only character operation is concatenation. Its form is shown below.<br />

Operator Operation Sample Expressions<br />

& Concatenation ‘ABC’ & ‘DE’ = ‘ABCDE’

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!