square_root
Compute the square root of a non-negative number, returning the exact result or raising an error for negative inputs.
Instructions
Compute the square root of a number.
Args: number: The number to take the square root of. Must be non-negative.
Returns: The square root of number.
Raises: NegativeSquareRootError: If number is negative.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |