5.0

5.0 | 1 rating Rate this file 199 downloads (last 30 days) File Size: 656 Bytes File ID: #5094

Lucas.m

by David Terr

 

03 Jun 2004 (Updated 27 Dec 2004)

No BSD License  

Given a nonnegative integer n, return the nth Lucas number.

Download Now | Watch this File

File Information
Description

Given a nonnegative integer n, return the nth Lucas number. Return an error message if the argument is not an integer.

Acknowledgements
This submission has inspired the following:
Fermat-like tuples, Fibonacci and Lucas numbers
MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
09 Oct 2005 ali alibahri  
Please login to add a comment or rating.
Updates
27 Dec 2004

I fixed a warning bug by eliminating the final end statement.

Tag Activity for this File
Tag Applied By Date/Time
symbolic math David Terr 22 Oct 2008 07:21:55
lucas number David Terr 22 Oct 2008 07:21:55
fibonacci number David Terr 22 Oct 2008 07:21:56
mathematics David Terr 22 Oct 2008 07:21:56
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com