ashwin / coursera-heterogeneous

Resources to work offline on the assignments of Heterogenous Parallel Programming course from Coursera.
71 stars 60 forks source link

Error on MP4 DS1. #23

Closed mehaase closed 11 years ago

mehaase commented 11 years ago

I think my solution for MP4 is correct. It runs correctly on the Coursera site. DS0 and DS2-5 run correctly locally. But I am getting the wrong answer when I run DS1 locally:

Solution does not match at item 0. Expecting 1029.6700439453 but got 1029.6650390625.

As you can see, my answer is about .005004 away from the expected answer. I looked at the solution checker and it looks for solutions that are within .005.

Is anybody else having this problem? I believe that the checker on the Coursera site is rounding to two decimal places before checking.

iemejia commented 11 years ago

I ran exactly into the same issue, I just pushed a commit to reduce the precision to make the tests closer to coursera's ones.

ashwin commented 11 years ago

@mehaase The latest merge from @iemejia fixes this issue. Thanks for pointing it out. :smile: