Click here to Skip to main content
16,020,345 members
Home / Discussions / C#
   

C#

 
GeneralRe: Optimizing Fibonacci Calculation Pin
OriginalGriff18-Apr-13 2:51
mveOriginalGriff18-Apr-13 2:51 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 2:53
professionalMax Holder18-Apr-13 2:53 
GeneralRe: Optimizing Fibonacci Calculation Pin
OriginalGriff18-Apr-13 2:57
mveOriginalGriff18-Apr-13 2:57 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 2:59
professionalMax Holder18-Apr-13 2:59 
AnswerRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 3:06
mvaKenneth Haugland18-Apr-13 3:06 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 3:14
professionalMax Holder18-Apr-13 3:14 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 3:23
mvaKenneth Haugland18-Apr-13 3:23 
AnswerRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 3:51
mvaKenneth Haugland18-Apr-13 3:51 
This is faster on my computer:
VB
Private Function Fibonacci2(ByVal n As Integer) As Double
    ' Golden ration = 1.61803398874989484820458683436563811772030917980576286213544862270526046281890244970720720418939113748475
    Dim gold As Double = 1.6180339887498949
    Dim gold2 As Double = 0.6180339887498949
    Dim sqrt1over5 As Double = 0.44721359549995793
    Return sqrt1over5 * ((gold) ^ n - (gold2) ^ n)
End Function

GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 3:57
professionalMax Holder18-Apr-13 3:57 
QuestionRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 4:08
mvaKenneth Haugland18-Apr-13 4:08 
AnswerRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 4:10
professionalMax Holder18-Apr-13 4:10 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 4:16
mvaKenneth Haugland18-Apr-13 4:16 
GeneralRe: Optimizing Fibonacci Calculation Pin
Richard Deeming18-Apr-13 4:23
mveRichard Deeming18-Apr-13 4:23 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 4:26
mvaKenneth Haugland18-Apr-13 4:26 
GeneralRe: Optimizing Fibonacci Calculation Pin
Richard Deeming18-Apr-13 5:05
mveRichard Deeming18-Apr-13 5:05 
GeneralRe: Optimizing Fibonacci Calculation Pin
Kenneth Haugland18-Apr-13 5:14
mvaKenneth Haugland18-Apr-13 5:14 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 5:02
professionalMax Holder18-Apr-13 5:02 
GeneralRe: Optimizing Fibonacci Calculation Pin
Jasmine250118-Apr-13 6:38
Jasmine250118-Apr-13 6:38 
GeneralRe: Optimizing Fibonacci Calculation Pin
harold aptroot18-Apr-13 4:25
harold aptroot18-Apr-13 4:25 
GeneralRe: Optimizing Fibonacci Calculation Pin
Max Holder18-Apr-13 21:20
professionalMax Holder18-Apr-13 21:20 
GeneralRe: Optimizing Fibonacci Calculation Pin
harold aptroot18-Apr-13 21:25
harold aptroot18-Apr-13 21:25 
GeneralRe: Optimizing Fibonacci Calculation Pin
PIEBALDconsult24-Apr-13 4:23
mvePIEBALDconsult24-Apr-13 4:23 
GeneralRe: Optimizing Fibonacci Calculation Pin
PIEBALDconsult20-Apr-13 6:31
mvePIEBALDconsult20-Apr-13 6:31 
GeneralRe: Optimizing Fibonacci Calculation Pin
harold aptroot20-Apr-13 6:41
harold aptroot20-Apr-13 6:41 
GeneralRe: Optimizing Fibonacci Calculation Pin
PIEBALDconsult20-Apr-13 9:36
mvePIEBALDconsult20-Apr-13 9:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.