Math Functions

math.pow()

Compute a real power after converting both operands to float. Use the built-in pow or ** for exact integer powers.

Formal Syntax & Structure

python syntaxpython
math.pow(x, y, /)

Parameters & Attributes

NameTypeDescription
xreal numberInput real value.
yreal numberSecond real value.

Return Value

float

Floating-point result; finite precision and domain restrictions apply.

Working Example

Example Snippetpython
import mathprint(math.pow(3, 4))
Python Reference