This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float golden_ratio = 1.61803398874989484820; | |
float root_5 = 2.2360679774997896964091736687313; | |
int get_fibonacci(int n){ | |
float fib_num = 0.0; | |
fib_num = (powf(golden_ratio,(float)n) - powf(1 - golden_ratio,(float)n)) / root_5; | |
return (int)fib_num; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `ls -a` ; do mv $i ./`echo $i | sed 's/\.//g'`;done |