Math, asked by dizzy3949, 1 year ago

How do recursive functions work


dizzy3949: how do you solve a recursive function
dizzy3949: preferably in 7th grade words :)
Rayman123: U want that I feel u with explanation

Answers

Answered by Rayman123
2

Definitio

Recursion has something to do with infinity. I know recursion has something to do with infinity. I think I know recursion has something to do with infinity. He is sure I think I know recursion has something to do with infinity. We doubt he is sure I think I know ... We think that you think that we convinced you now that we can go on forever with this example of a recursion from natural language. Recursion is not only a fundamental feature of natural language, but of the human cognitive capacity. Our way of thinking is based on a recursive thinking processes. Even with a very simple grammar, like "An English sentence contains a subject and a predicate, and a predicate contains a verb, an object and a complement", we can demonstrate the infinite possibilities of the natural language. The cognitive scientist and linguist Stephen Pinker phrases it like this: "With a few thousand nouns that can fill the subject slot and a few thousand verbs that can fill the predicate slot, one already has several million ways to open a sentence. The possible combinations quickly multiply out to unimaginably large numbers.

Definition of Recursion

Recursion is a method of programming or coding a problem, in which a function calls itself one or more times in its body. Usually, it is returning the return value of this function call. If a function definition satisfies the condition of recursion, we call this function a recursive function.


Rayman123: Hope it helps you
dizzy3949: it does but im in 7th grade and i really don't understand ths
Rayman123: Oooo no problem iwill tell you in easy words
dizzy3949: ok thanks
Rayman123: Have it
Rayman123: Easy one
Rayman123: There no more eassy one
dizzy3949: ok i understand this one
Rayman123: gooooooood
dizzy3949: :)
Answered by illFated13
2

A function calls itself

eg

int fact (int N)

{

if (N==0||N==1)

return 1;

else

return N*fact(N-1);

}


dizzy3949: what?
Similar questions