i want to evaluate fibonacci numbers using the Closed form expression given in wiki
http://upload.wikimedia.org/math/9/6...9a765ce708.png
i tried using this...
but its not working! what shall i do?Code:double result; result = ( pow(GOLDEN_RATIO,n) - pow(1-GOLDEN_RATIO,n) ) /sqrt(5); printf("%f \n", result);