Fibonacci sequence: Difference between revisions
Content added Content deleted
m (→{{header|PL/SQL}}: Added error check for non-integer input) |
PatGarrett (talk | contribs) (→{{header|TI-83 BASIC}}: Add the natural way) |
||
Line 11,296: | Line 11,296: | ||
=={{header|TI-83 BASIC}}== |
=={{header|TI-83 BASIC}}== |
||
Sequence table: |
|||
<lang ti83b>[Y=] |
|||
nMin=0 |
|||
u(n)=u(n-1)+u(n-2) |
|||
u(nMin)={1,0} |
|||
[TABLE] |
|||
n u(n) |
|||
------- ------- |
|||
0 0 |
|||
1 1 |
|||
2 1 |
|||
3 2 |
|||
4 3 |
|||
5 5 |
|||
6 8 |
|||
7 13 |
|||
8 21 |
|||
9 34 |
|||
10 55 |
|||
11 89 |
|||
12 144 </lang> |
|||
Iterative: |
Iterative: |
||
<lang ti83b>{0,1 |
<lang ti83b>{0,1 |