Hoai Tran Quoc - MATLAB Cody - MATLAB Central

Hoai Tran Quoc

7932
Rank
5
Badges
775
Score
1 – 50 of 93

Hoai Tran Quoc received Quiz Master badge for Solution 4063818

on 8 Dec 2020

Hoai Tran Quoc submitted a Comment to Solution 1015114

Very interesting. I could not understand why I had not passed the test# 3. It turned out that the two number (x4-x1)*(y2-y1) and (y4-y1)*(x2-x1) are not the same due to floating point. My choice is to compare the absolute difference with 10*eps.

on 14 Oct 2016

Hoai Tran Quoc submitted a Comment to Solution 1015114

Very interesting, why the test# 3 is not passed. It turned out that the two number (x4-x1)*(y2-y1) is not the same as (y4-y1)*(x2-x1) due to floating point. I have to compare the subtraction with 10*eps.

on 13 Oct 2016

Hoai Tran Quoc received Promoter badge for Problem 149. Is my wife right?

on 13 Oct 2016

1 – 50 of 93
Go to top of page