natural_log
Compute the natural logarithm (base e) of a positive number, returning the result or an error for non-positive inputs.
Instructions
Calculate the natural logarithm (base e) of a given number.
Args:
data (SingleNumberOperation): An object containing the input number a.
Returns:
Dict[str, Any]: A dictionary containing the operation result or an error message.
Raises:
ValueError: If the input is non-positive.
Notes:
- Natural log uses base e (approximately 2.718).
- Logs the operation and result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||