(log_total, value)
| 52 | import functools |
| 53 | |
| 54 | def log_sum(log_total, value): |
| 55 | log_value = math.log(value) |
| 56 | return log_total + log_value |
| 57 | |
| 58 | result = functools.reduce(log_sum, [10, 20, 40], 0) |
| 59 | print(math.exp(result)) |
nothing calls this directly
no outgoing calls
no test coverage detected