agentchat.contrib.captainagent.tools.math
agentchat.contrib.captainagent.tools.math.sum_of_digit_factorials
sum_of_digit_factorials
Calculates the sum of the factorial of each digit in a number, often used in problems involving curious numbers like 145.
Arguments:
number
int - The number for which to calculate the sum of digit factorials.
Returns:
int
- The sum of the factorials of the digits in the given number.