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
/
Groovy
/
fibonacci-sequence-3.groovy
3 lines
92 B
Groovy
Raw
Permalink
Normal View
History
Unescape
Escape
2016 Update
2016-12-05 22:15:40 +01:00
final
φ
=
(
1
+
5
*
*
(
1
/2))/
2
def
aFib
=
{
(
φ
*
*
it
-
(
-
φ
)
*
*
(
-
it
)
)
/(5**(1/
2
)
)
as
BigInteger
}
Reference in a new issue
Copy permalink