CTK Exchange
CTK Wiki Math
Front Page
Movie shortcuts
Personal info
Awards
Terms of use
Privacy Policy

Interactive Activities

Cut The Knot!
MSET99 Talk
Games & Puzzles
Arithmetic/Algebra
Geometry
Probability
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
My Logo
Math Poll
Other Math sit's
Guest book
News sit's

Recommend this site

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Products to download and subscription Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

CTK Exchange

Subject: "applet problem; a line in a square grid"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences The CTK Exchange Thoughts and Suggestions Topic #68
Reading Topic #68
sejeongy
Member since Aug-17-09
Aug-17-09, 07:20 AM (EST)
Click to EMail sejeongy Click to view user profileClick to add this user to your buddy list  
"applet problem; a line in a square grid"
 
   Hello.

I was looking at the applet "A line in a square grid" at https://www.cut-the-knot.org/Curriculum/Geometry/LineThroughGrid.shtml

I entered M=27 and N=40. According to the final formula, the line should pass through M+N-1 = 66 squares (since the gcd = 1). However, I only counted 60 squares colored in grey by the applet. Furthermore, the line appeared to pass through grid nodes, which would indicate a common divisor > 1

Is there a problem with the applet's drawing resolution capacity? I see that "40" is the limit for M and N. Could there be a problem with the applet's algorithm when MAX values are employed?

Otherewise, this is an extraordinary web-page. Very fun!

Jody Nagel


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
alexbadmin
Charter Member
2426 posts
Aug-17-09, 08:03 AM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
2. "RE: applet problem; a line in a square grid"
In response to message #0
 
   Thank you for the kind words, the perseverance, and for locating and pointing out an error. It is fixed now.

You may need to clean up your cache or use a different browser to see the effect of the modifications.

Thank you again.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top

Conferences | Forums | Topics | Previous Topic | Next Topic

You may be curious to have a look at the old CTK Exchange archive.
Please do not post there.

Copyright © 1996-2018 Alexander Bogomolny

Search:
Keywords:

Google
Web CTK