09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Pow Calculates the power of a value<br />

Example<br />

Pow (Power) is used to calculate the exponential value in any base.<br />

VAR num x;<br />

VAR num y<br />

VAR num reg1;<br />

.<br />

reg1:= Pow(x, y);<br />

reg1 is assigned the value x y .<br />

Return value Data type: num<br />

Arguments<br />

Limitations<br />

Syntax<br />

The value of the base x raised to the power of the exponent y ( x y ) .<br />

Pow (Base Exponent)<br />

Base Data type: num<br />

The base argument value.<br />

Exponent Data type: num<br />

The exponent argument value.<br />

The execution of the function x y will give an error if:<br />

. x < 0 and y is not an integer;<br />

. x = 0 and y ≤<br />

0.<br />

Pow’(’<br />

[Base ’:=’] ’,’<br />

[Exponent ’:=’] <br />

’)’<br />

<strong>RAPID</strong> Reference Manual 9-Pow-1

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

Saved successfully!

Ooh no, something went wrong!