But that isn't what we mean with recursive function. We don't call this recursive:
x = x + 1
Its just incrementing x.That's not a recursive function as it's written, but you could certainly consider it a form of symbolic recursion. This just isn't a very useful characterization in an iterative/imperative context. You could frame incrementing as recursive, though—this is just peano axioms/church encoding.
- Defining recursion is linguistic
- Defining a function recursively is mathmatic
Besides, a lot of what people mean when they say they're bad at math is that they're bad at arithmetic, which is honestly understandable.