09.03.2013 Views

Simulator 16 User Guide - PowerWorld

Simulator 16 User Guide - PowerWorld

Simulator 16 User Guide - PowerWorld

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Functions and Operators Available<br />

Below is a list of functions and operators that are available for use in Defining Custom Expressions:<br />

Symbol Equivalent Description Example<br />

( ) Prioritizes an<br />

expression<br />

©2011 <strong>PowerWorld</strong> Corporation<br />

<strong>16</strong>5<br />

5*(1+1) = 10<br />

! FACT Factorial 5! = 120fact(5) =<br />

120<br />

% Percentage 35% = 0.35<br />

^ ** Raised to the<br />

power of<br />

4 ^ 5 = 1024<br />

* Multiply by 3 * 6 = 18<br />

/ Divide by 9 / 2 = 4.5<br />

\ DIV Integer divide<br />

by<br />

MOD Modulo<br />

(remainder)<br />

9 \ 2 = 4<br />

7 mod 4 = 3<br />

+ Add 1 + 1 = 2<br />

- Subtract 9 - 5 = 4<br />

> Greater than 9 > 2 = 1 * see<br />

note<br />

< Less than 7 < 4 = 0<br />

== = Equal test 5 == 4 = 0<br />

>= => Greater or<br />

equal<br />

3 >= 3 = 1<br />

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

Saved successfully!

Ooh no, something went wrong!