Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do Factorials in VFP with Recursion
Message
De
22/02/2000 00:46:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00335196
Message ID:
00335253
Vues:
17
> 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform