# Talk:Soloway's recurring rainfall

## Implementation details

The task states:

- For languages where the user is inputting data, the number of data inputs can be "infinite"

Is this meant to imply the average must be calculated as:
`current average + ( latest value / number of values ) + ( current average / number of values )`

?

None of the samples could handle "infinite" inputs, even the ones that calclate the average as above would still have problems counting an "infinite" number of values.

Also, if there was a language where the user wasn't inputting the values, would that mean it's OK to calculate the average using `sum / number of values`

: ) ? --Tigerofdarkness (talk) 17:44, 11 September 2022 (UTC)

- Looking at a provided sample implementation, "infinite" has a total which is smaller than INT_MAX as defined in limits.h. --Rdm (talk) 16:33, 12 September 2022 (UTC)
- An old and perhaps settled mathematical problem, can an infinite set of numbers, say the set of reciprocals, have an average and what does it mean? Before climate change over time daily rainfall would be between a minimum (0 even occasionally in the UK) and a maximum with the average over time tending to a particular value. Post climate catastrophe who knows, 0 seems to be the average all summer.--Nigel Galloway (talk) 13:09, 13 September 2022 (UTC)