I would be inclined to say natural mathematical functions are not causal to an event but causal to how events “unfold”.
Schematic depiction of a function described metaphorically as a “machine” or “black box” that for each input yields a corresponding output