Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do Factorials in VFP with Recursion
Message
From
22/02/2000 00:46:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00335196
Message ID:
00335253
Views:
16
> BTW, we just discussed this subject with my husband, he named two classical examples of recursion - factorials (by definition! :) and Fibbonaci (? how to spell correctly?) numbers.

Both have simple non-recursive definitions too. But, yes, they are usually defined using a recursive formula.
Interesting enough, they are both good examples for where to not use recursive solutions.

The correct spelling is "Fibonacci".

> Determinant is also recursive by defenition, but in this case the Gaussian elimination should work much faster than the recursion. However the recursion code is simpler and closer to math definition.

Yup.

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform