Jane Street Interview Question

Calculate e^5 up to two decimal numbers without calculation

Interview Answers

Anonymous

Aug 18, 2012

An alternative I just thought of is to remember the value of e= 2.7 e^5 = 2.7^5 = 2^5 +5*.7*2^4+.... (this should be enough for the correct answer). This should require a bit less memory in the old skull drive.

3

Anonymous

Nov 28, 2012

I believe this problem is to safeguard against cheating.

3

Anonymous

Oct 19, 2012

This below formula can be useful (frankly, I don't know it if not for wikipedia): n! ~ sqrt(2*pi*n) * (n/e)^n However, this approximation only yields ~146, while the correct answer should be 148.41

1

Anonymous

Feb 8, 2011

How can someone expect people to answer that ?

1

Anonymous

Sep 15, 2011

Anybody know how to do this?

Anonymous

Aug 18, 2012

This question is truly obnoxious but if you have a good memory its doable. To calculate e^n you need to remember the expansion of the exponential. e^x = 1 + x +x^2/2! + x^3/3!+x^4/4! +x^5/5! + .... The term x^n/n! starts decaying when x>n so to do e^5 you need at least 5 terms, more likely 7 (this is why it is obnoxious to do without a pen and paper).

Anonymous

Aug 22, 2011

yeah, I wouldn't want to work for a company like that.