We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
x^0 = x^(1-1) = x/x = 1 if and only if x != 0. When x = 0 you don't know (by definition). E.g. 0^x is 0 so 0^0 is 0. Btw we generally accept that 0^0 = 1 for (more) convenient.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Evaluating e^x
You are viewing a single comment's thread. Return to all comments →
The first term should explicitely be 1.
x^0 = x^(1-1) = x/x = 1 if and only if x != 0. When x = 0 you don't know (by definition). E.g. 0^x is 0 so 0^0 is 0. Btw we generally accept that 0^0 = 1 for (more) convenient.