2022-10-27 15:07:13 +00:00
|
|
|
export function fibonacci(value) {
|
|
|
|
// implementar logica aqui
|
2022-10-31 16:50:56 +00:00
|
|
|
let phi = (1 + Math.sqrt(5))/2;
|
|
|
|
let asymp = Math.pow(phi, value) / Math.sqrt(5);
|
|
|
|
|
|
|
|
return Math.round(asymp);
|
2022-10-27 15:07:13 +00:00
|
|
|
}
|