Difference between revisions of "Manuals/calci/FIBONNACI"

From ZCubes Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=FIBONNACI(SomeNumber)=
+
=FIBONNACI (NumberUpto)=
 
 
 
where,  
 
where,  
*<math>SomeNumber</math> is any real number.
+
*<math>NumberUpto</math> is any real number.
 
+
**FIBONNACI(), returns the fibonnaci sequence.
FIBONNACI() displays the Fibonacci series up to the number specified in argument.
 
  
 
== Description ==
 
== Description ==
  
FIBONNACI(SomeNumber)
+
FIBONNACI(NumberUpto) or FIBONACCI(NumberUpto)
  
 
e.g.  
 
e.g.  
 
FIBONNACI(3) returns ''0, 1, 1, 2'' as a result.
 
FIBONNACI(3) returns ''0, 1, 1, 2'' as a result.
 +
 +
FIBONACCI(6) returns ''0, 1, 1, 2, 3, 5, 8'' 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 a series of numbers in which, after first two numbers each subsequent number is the sum of the previous two numbers.
Line 18: Line 18:
 
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, .......
 
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.  
+
*Argument <math>NumberUpto</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'.
+
e.g. if <math>NumberUpto</math> is '3', Calci displays Fibonacci series up to 3 numbers excluding '0'.
*If <math>SomeNumber</math> &lt; zero(0), Calci displays #NULL error message.
+
*If <math>NumberUpto</math> &lt; zero(0), Calci displays #NULL error message.
*If <math>SomeNumber</math> is not an integer, Calci rounds it up to display the result.
+
*If <math>NumberUpto</math> is not an integer, Calci rounds it up to display the result.
 +
 
 +
*Both spellings supported - FIBONNACI(NumberUpto) or FIBONACCI(NumberUpto)
 
   
 
   
 
== Examples ==
 
== Examples ==
Line 43: Line 45:
 
|- class="odd"
 
|- class="odd"
 
| class="sshl_f" |FIBONNACI(5.4)
 
| class="sshl_f" |FIBONNACI(5.4)
 +
| class="sshl_f" |0, 1, 1, 2, 3, 5, 8
 +
 +
|- class="even"
 +
| class="sshl_f" |FIBONACCI(6)
 
| class="sshl_f" |0, 1, 1, 2, 3, 5, 8
 
| class="sshl_f" |0, 1, 1, 2, 3, 5, 8
  
 
|}
 
|}
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|Bdbc1ZC-vhw|280|center|FIBONNACI}}
  
 
== See Also ==
 
== See Also ==
  
 +
*[[Manuals/calci/NSTEPFIBONACCI | NSTEPFIBONACCI]]
 +
*[[Manuals/calci/NSTEPFIBONACCI| TRIBONACCI]]
 +
*[[Manuals/calci/NSTEPFIBONACCI| TETRANACCI]]
 +
*[[Manuals/calci/NSTEPFIBONACCI| PENTANACCI]]
 +
*[[Manuals/calci/NSTEPFIBONACCI| HEXANACCI]]
 +
*[[Manuals/calci/NSTEPFIBONACCI| HEPTANACCI]]
 
*[[Manuals/calci/FACT | FACT]]
 
*[[Manuals/calci/FACT | FACT]]
  
Line 54: Line 70:
  
 
*[http://en.wikipedia.org/wiki/Fibonacci_number Fibonacci Numbers]
 
*[http://en.wikipedia.org/wiki/Fibonacci_number Fibonacci Numbers]
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 15:57, 16 February 2020

FIBONNACI (NumberUpto)

where,

  • is any real number.
    • FIBONNACI(), returns the fibonnaci sequence.

Description

FIBONNACI(NumberUpto) or FIBONACCI(NumberUpto)

e.g. FIBONNACI(3) returns 0, 1, 1, 2 as a result.

FIBONACCI(6) returns 0, 1, 1, 2, 3, 5, 8 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 specifies the count of numbers for which the sequence is to be displayed.

e.g. if is '3', Calci displays Fibonacci series up to 3 numbers excluding '0'.

  • If < zero(0), Calci displays #NULL error message.
  • If is not an integer, Calci rounds it up to display the result.
  • Both spellings supported - FIBONNACI(NumberUpto) or FIBONACCI(NumberUpto)

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
FIBONACCI(6) 0, 1, 1, 2, 3, 5, 8

Related Videos

FIBONNACI

See Also

References