Hacker News new | past | comments | ask | show | jobs | submit login

Exponentiation is almost never shippable code, most languages have an operator or standard library for that.



For certain ranges of numbers.

But you could imagine this being part of, say, a "big integer" library. (Which C, C++, PHP, JS all lack.)



If you like esoteric, I learned this algorithm for obtaining the exponent of a 2x2 matrix, which amusingly enough is part of an interesting fibonaccialgorithm.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: