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.
My submission has failed because the values didn't match the expected output for some test cases.
The value of e(5.0000f) is given as 143.6895 in the problem.
My program is getting 148.41316. I also checked with couple of online calculators(https://www.easycalculation.com/e-power-x.php), the value is 148.
Also java.lang.Math.exp returns 148.
Am I missing something in the problem statement? Can somone please help.
Evaluating e^x
You are viewing a single comment's thread. Return to all comments →
My submission has failed because the values didn't match the expected output for some test cases.
The value of e(5.0000f) is given as 143.6895 in the problem. My program is getting 148.41316. I also checked with couple of online calculators(https://www.easycalculation.com/e-power-x.php), the value is 148. Also java.lang.Math.exp returns 148.
Am I missing something in the problem statement? Can somone please help.