<< pyMul Scithon pySet >>

Scithon >> Scithon > pyPow

pyPow

Finds the value of base raised to power of exponent.

Syntax

pyPow(arg0, arg1)

Arguments

arg0

Variable 1 acts as base

arg1

Variable 2 acts as exponent

Description

Raises the first argument to the power of second argument and returns the result; equivalent to arg1 ** arg2 or arg1 ^ arg2. Arguments can be of type int, double, string, bool or python variable.

Example

startPy
py("a = 5")
var = pyGet("a")
pyPow(var,3)
quitPy

Report an issue
<< pyMul Scithon pySet >>