The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: the 4 ants problem
Replies: 6   Last Post: Aug 21, 2000 9:58 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 486
Registered: 12/7/04
the 4 ants problem
Posted: Aug 20, 2000 5:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

i'd like to simulate the age-old 4-ants problem. for those of you who haven't
heard it:

there are 4 ants on the vertices of a square. at a given moment, each heads
towards another (A heads towards B, B towards C, C towards D and D towards A).
since each ant is constantly moving, the "chaser" ant traces a spiral inside
the square. this happens until the 4 ants meet in the center of the square.
question: how much distance has each ant travelled?

can someone point me to how this can be simulated in matlab? i'd love to see
the movement of the 4 ants ...


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.