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
| Name | Type | Description |
|---|---|---|
| x | real number | Input real value. |
| y | real number | Second real value. |
Return Value
float
Floating-point result; finite precision and domain restrictions apply.
Working Example
Example Snippetpython
import mathprint(math.pow(3, 4))