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.
Sumar and the Floating Rocks
Sumar and the Floating Rocks
Sort by
recency
|
56 Discussions
|
Please Login in order to post a comment
"Sumar and the Floating Rocks" is an intriguing blend of fantasy and adventure, captivating with its imaginative world and compelling storytelling. Skyexchange bet login
JS:
Equation of Line (y-y1)=(y2-y1)/(x2-x1) (x-x1)
=> y(x2-x1) - y1 (x2-x1) = x (y2-y1) - x1 (y2-y1)
=> y(x2-x1) - x (y2-y1) = - x1 (y2-y1) + y1 (x2-x1)
=> - x (y2-y1) + y(x2-x1) = - x1 (y2-y1) + y1 (x2-x1)
=> a=(x2-x1), b=(y2-y1)
as per the Extended Euclid Algorithm : for integral solution to this equation, the RHS should be multiple of gcd(a,b) i.e. gcd (|x2-x1| ,| y2-y1|)
This problem is very insightful and has a simple solution after working it out. Let. a/b = (y2 - y1)/(x2 - x1) be the slope in the reduced form. Sabexch Registration