Difference between revisions of "Manuals/calci/FIBONNACI"
Jump to navigation
Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''FIBONNACI'''(SomeNumber) where '''SomeNumber '''is any real number </div> ---- <div id="1SpaceContent"...") |
|||
| Line 1: | Line 1: | ||
| − | + | =FIBONNACI(SomeNumber)= | |
| − | + | where, | |
| + | *<math>SomeNumber</math> is any real number. | ||
| − | + | FIBONNACI() displays the Fibonacci series up to the specified number as argument. | |
| − | + | == Description == | |
| − | + | FIBONACCI(SomeNumber) | |
| − | |||
| − | |||
| − | + | e.g. | |
| + | FIBONNACI(3) returns ''0, 1, 1, 2'' as a result. | ||
| − | + | *Fibonacci sequence is a series of numbers in which, after first two numbers each subsequent number is the sum of the previous two numbers. | |
| − | - | + | *Fibonacci sequence is as follows - |
| − | |||
| − | + | 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ....... | |
| + | |||
| + | *Argument <math>SomeNumber</math> specifies the count of numbers for which the sequence is to be displayed. | ||
| − | </ | + | e.g. if <math>SomeNumber</math> is '3', Calci displays Fibonacci series up to 3 numbers excluding '0'. |
| − | + | *If <math>SomeNumber</math> < zero(0), Calci displays #NULL error message. | |
| − | < | + | *If <math>SomeNumber</math> is not an integer, Calci rounds it up to display the result. |
| + | |||
| + | == Examples == | ||
| − | + | <div id="6SpaceContent" class="zcontent" align="left"> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | <div id=" | ||
{| id="TABLE3" class="SpreadSheet blue" | {| id="TABLE3" class="SpreadSheet blue" | ||
| − | |||
|- class="even" | |- class="even" | ||
| − | | class=" " | | + | | class=" " | '''Function''' |
| − | | | + | | class=" " | '''Output''' |
| − | + | ||
| − | | | ||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | | class=" " | | + | | class="sshl_f" |FIBONNACI(5) |
| − | | class=" | + | | class="sshl_f" |0, 1, 1, 2, 3, 5 |
| − | + | ||
| − | |||
| − | |||
|- class="even" | |- class="even" | ||
| − | | class=" | + | | class="sshl_f" |FIBONNACI(6) |
| − | + | | class="sshl_f" |0, 1, 1, 2, 3, 5, 8 | |
| − | + | ||
| − | |||
| − | | class=" sshl_f" | | ||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | + | | class="sshl_f" |FIBONNACI(5.4) | |
| − | + | | class="sshl_f" |0, 1, 1, 2, 3, 5, 8 | |
| − | + | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | class="sshl_f" | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | class="sshl_f" | | ||
| − | |||
|} | |} | ||
| − | + | == See Also == | |
| − | + | ||
| − | + | *[[Manuals/calci/FACTORIAL | FACTORIAL]] | |
| − | + | ||
| − | [[ | + | == References == |
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | *[http://en.wikipedia.org/wiki/Fibonacci_number Fibonacci Numbers] | |
| − | |||
Revision as of 16:26, 22 February 2014
FIBONNACI(SomeNumber)
where,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle SomeNumber} is any real number.
FIBONNACI() displays the Fibonacci series up to the specified number as argument.
Description
FIBONACCI(SomeNumber)
e.g. FIBONNACI(3) returns 0, 1, 1, 2 as a result.
- Fibonacci sequence is a series of numbers in which, after first two numbers each subsequent number is the sum of the previous two numbers.
- Fibonacci sequence is as follows -
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, .......
- Argument Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle SomeNumber} specifies the count of numbers for which the sequence is to be displayed.
e.g. if Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle SomeNumber} is '3', Calci displays Fibonacci series up to 3 numbers excluding '0'.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle SomeNumber} < zero(0), Calci displays #NULL error message.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle SomeNumber} is not an integer, Calci rounds it up to display the result.
Examples
| Function | Output |
| FIBONNACI(5) | 0, 1, 1, 2, 3, 5 |
| FIBONNACI(6) | 0, 1, 1, 2, 3, 5, 8 |
| FIBONNACI(5.4) | 0, 1, 1, 2, 3, 5, 8 |