Difference between revisions of "Manuals/calci/LUCAS"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''LUCAS'''(SomeNumber) where '''SomeNumber '''is any real number </div> ---- <div id="1SpaceContent" cla...")
 
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''LUCAS (NumberUpto)'''</div><br/>
 +
*<math>NumberUpto</math> is the number indicating the position.
 +
**LUCAS(),returns the sum of its two immediate previous terms.
  
'''LUCAS'''(SomeNumber)
+
==Description==
 +
*This function gives the Lucas series of the numbers.
 +
*Lucas numbers are similar to the Fibonacci numbers.
 +
*It is generated by added the last two numbers in the series.
 +
*In <math>LUCAS(NumberUpto)</math>, <math>NumberUpto</math> is the numbers position, which is used to displaying the numbers in the given range.
 +
*The difference between Lucas and Fibonacci numbers are with the first two terms <math>L_0=2</math> and <math>L_1=1 </math>, but <math>F_0=0</math> and <math>F_1=1</math>.
 +
*The Lucas numbers  are defined by:
 +
<math>L_n=\begin{Bmatrix}  2  & if &  n=0 \\
 +
          1          &if &  n=1 \\
 +
          L_{n-1}+L_{n-2}  &if & n>1
 +
          \end{Bmatrix}</math>
 +
*The sequence of Lucas numbers is  2,1,3,4,7,11,18,29....
 +
*The relation between Lucas and Fibonacci numbers are:
 +
<math> L_n=F_n+2F_{n-1} </math>
 +
and :
 +
<math> F_n=\frac{L_{n-1}+L_{n+1}}{5}</math> 
 +
where <math>L</math> is the Lucas series with <math> L_n</math> is the <math>n^{th}</math> Lucas number and <math> F_n </math> is the <math>n^{th}</math> Fibonacci number.
 +
    This function will, give the result as error when  <math>NumberUpto</math> is non-numeric or NumberUpto < 0
  
where
+
==Examples==
 +
#=LUCAS(5) = 2  1  3    4  7    11
 +
#=LUCAS(0) = 2
 +
#=LUCAS(1) = 2  1
 +
#=LUCAS(3) = 2  1    3    4 
 +
#=LUCAS(-1) = Null
  
'''SomeNumber '''is any real number
+
==Related Videos==
  
</div>
+
{{#ev:youtube|14-NdQwKz9w|280|center|LUCAS}}
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
  
Calci returns the LUCAS series upto the given number, SomeNumber.
+
==See Also==
 +
*[[Manuals/calci/FIBONNACI| FIBONNACI]]
 +
*[[Manuals/calci/PASCAL| PASCAL]]
 +
*[[Manuals/calci/FOURIERANALYSIS| FOURIERANALYSIS]]
  
</div>
+
==References==
----
+
[http://en.wikipedia.org/wiki/Lucas_number LUCAS]
<div id="7SpaceContent" class="zcontent" align="left">
 
  
LUCAS returns NaN if SomeNumber is not a real number
 
  
</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
LUCAS
 
  
</div></div>
+
*[[Z_API_Functions | List of Main Z Functions]]
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column2Row1)
+
*[[ Z3 Z3 home ]]
 
 
<nowiki>=LUCAS(Column1Row1)</nowiki>
 
 
 
Returns 2,1,3,4  for LUCAS(3)
 
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|+ Default Calci
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 3
 
| class="sshl_f" | 2,1,3,4
 
| class="                    sshl_f" |
 
| class="                                                          sshl_f  sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="      " |
 
| class="          SelectTD1 ChangeBGColor SelectTD1" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
 
| class=" sshl_f" |
 
| class="sshl_f  sshl_f" |
 
|- class="odd"
 
| Row3
 
|
 
| class="sshl_f" |
 
| class="sshl_f   " |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
|
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
|- class="odd"
 
| class=" " | Row5
 
|
 
|
 
| class="sshl_f" |
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
| class="sshl_f" |
 
|
 
|}
 
 
 
{|
 
| <span align="left">[[Image:calci1.gif]]</span>
 
|
 
|
 
[[Image:bold.gif]]
 
|
 
[[Image:italic.gif]]
 
|
 
[[Image:normal.gif]]
 
|
 
[[Image:underline.gif]]
 
|
 
[[Image:border.gif]]
 
|
 
[[Image:numbers.gif]]
 
|
 
[[Image:sort.gif]]
 
|
 
[[Image:formatcells.gif]]
 
|
 
[[Image:graphs.gif]]
 
| $
 
|}
 
 
 
</div>
 
----
 

Latest revision as of 17:26, 25 June 2018

LUCAS (NumberUpto)


  • is the number indicating the position.
    • LUCAS(),returns the sum of its two immediate previous terms.

Description

  • This function gives the Lucas series of the numbers.
  • Lucas numbers are similar to the Fibonacci numbers.
  • It is generated by added the last two numbers in the series.
  • In , is the numbers position, which is used to displaying the numbers in the given range.
  • The difference between Lucas and Fibonacci numbers are with the first two terms and , but and .
  • The Lucas numbers are defined by:

  • The sequence of Lucas numbers is 2,1,3,4,7,11,18,29....
  • The relation between Lucas and Fibonacci numbers are:

and : where is the Lucas series with is the Lucas number and is the Fibonacci number.

   This function will, give the result as error when   is non-numeric or NumberUpto < 0

Examples

  1. =LUCAS(5) = 2 1 3 4 7 11
  2. =LUCAS(0) = 2
  3. =LUCAS(1) = 2 1
  4. =LUCAS(3) = 2 1 3 4
  5. =LUCAS(-1) = Null

Related Videos

LUCAS

See Also

References

LUCAS