This website requires JavaScript.
Explore
Help
Register
Sign in
aparler
/
RosettaCodeData
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
12
Pull requests
3
Projects
Releases
Packages
Wiki
Activity
Actions
master
RosettaCodeData
/
Task
/
Fibonacci-sequence
/
CoffeeScript
/
fibonacci-sequence-1.coffee
5 lines
109 B
CoffeeScript
Raw
Permalink
Normal View
History
Unescape
Escape
A-M baby
2013-04-10 21:29:02 -07:00
fib_ana =
(n) ->
sqrt =
Math
.
sqrt
phi =
(
(
1
+
sqrt
(
5
)
)
/
2
)
June 2018 Update
2018-06-22 20:57:24 +00:00
Math
.
round
(
(
Math
.
pow
(
phi
,
n
)
/
sqrt
(
5
)
)
)
Reference in a new issue
Copy permalink