answersLogoWhite

0

A recursive function is one in which the value of a function at each point depends on its value at one or more previous points. A rercursive function requires the first few values to be defined normally - these are called bases.

Perhaps one of the most famous recursive function is the Fibonacci series, which has

f(1) = 1

f(2) = 1

f(n) = f(n-1) + f(n-2) for n = 3, 4, 5, ...

There are two bases and each subsequent value is defined in terms of the preceding two.

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve

Add your answer:

Earn +20 pts
Q: What is recursive function?
Write your answer...
Submit
Still have questions?
magnify glass
imp