Please enable JavaScript to view this site.

Function that calculates the power of a value.

Syntax

real pow (real base, real exp)

base

Base (must be > 0)

exp

Exponent

Result

Returns the base result elevated to exp

Validity

Rule, Task

Note

If base is negative and exp is integer then performs power.

If base is negative and exp is fractional returns 0 with error.

If exp = 0 the function returns 1.0

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC