淘宝官方店     推荐课程     在线工具     联系方式     关于我们  
 
 

微波射频仿真设计   Ansoft Designer 中文培训教程   |   HFSS视频培训教程套装

 

Agilent ADS 视频培训教程   |   CST微波工作室视频教程   |   AWR Microwave Office

          首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档


Ansoft Designer / Ansys Designer 在线帮助文档:


Designer File Formats >
   Nexxim Netlist Format >
       Expressions >
           Operator Precedence in Nexxim Expressions               


Operator Precedence in Nexxim Expressions

Expressions are evaluated using the following order of operator precedence.

1. Parentheses may be used to group operations. Operations in the innermost pair of parentheses are evaluated first. The result of the operations within a set of parentheses becomes an operand for the next level of evaluation.

2. The arguments to functions can be expressions. An expression that is used as the argument to a function is evaluated before the function is called.

3. Functions have higher precedence than operators outside of functions. When functions are nested, the innermost function is evaluated first.

4. Unary minus (-) and unary NOT (!) operators are applied to their operands before binary operators are applied. If parentheses are not used, a unary operator applies only to the very next operand.

• For example, if A=2 and B=4, '-A+B' is evaluated as '(-A)+(B)' with value 2, while
'-(A+B)'
is evaluated as '(-A)+(-B)' with value -6.

• Similarly, if A=2 and B=4, the expression '!A<B' is evaluated as '(!2)< 4', with value 1 or true, while '!(A<B)' is evaluated as '!(1)', with value 0 or false.

5. Power (**) is the highest binary operator. When two exponentiation operations are present without parentheses to control the precedence, evaluation is left to right.

• For example, 'A**B**C' is evaluated as '(A**B)**C)'.

6. Multiply (*) and divide (/) have equal precedence. When two multiplies or divides are present without parentheses to control the precedence, evaluation is left to right.

• For example, '-A/B/C' is evaluated as '((-A)/B)/C'.

7. Add (+) and subtract (-) have equal precedence. When two additions or subtractions are present without parentheses to control the precedence, evaluation is left to right.

• For example, 'A+B-C' is evaluated as '(A+B)-C'.

8. Relational operators (>, <, =, ==, <>, >=, <=) have equal precedence. When two relational operators are present without parentheses to control the precedence, evaluation is left to right.

• For example, 'A>B=C' is evaluated as '(A>B)=C'.




HFSS视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

                HFSS视频教程                                      ADS视频教程                               CST视频教程                           Ansoft Designer 中文教程


 

      Copyright © 2006 - 2013   微波EDA网, All Rights Reserved    业务联系:mweda@163.com