power
Raise a base number to an exponent and return the result, or provide an error message when the operation is undefined, such as a negative base with a fractional exponent.
Instructions
Raise a number to a power.
Args: base: The base number. exponent: The exponent to raise the base to.
Returns: A string with the result of base ** exponent, or an error message if the operation is undefined (e.g. a negative base with a fractional exponent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| exponent | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |