Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Técnicas Avançadas de Contagem
(view source)
Revision as of 14:03, 25 November 2015
6 bytes removed
,
14:03, 25 November 2015
no edit summary
No capítulo 3 descobrimos como representar de forma eficiente a seqüência de Fibonacci pelo procedimento:
<pre> Fibonacci := proc(n::posint) option remember;
if n = 1 or n = 2 then RETURN( 1 ); fi;
Fibonacci2(n-1) + Fibonacci2(n-2);</pre>
Paulohq
53
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages