Re:Thinking About Recursion
by clusmore on Wednesday March 08, 2017 @07:30PM
(#13825452)
In mathematics, variables don't change inside expressions -- they define a family of expressions, each with a different value. For example, in the function
the value of x in the right-hand-side expression doesn't change in the same sense that variables in imperative languages change. But it allows the single expression "x^2 + x + 1" to have a value which varies by the value of x. For example, f(2) yields the value 7 while f(3) yields the value 13.
[ Parent
| on HN ]
There are no comments on this comment yet.