Date: Mon, 23 Aug 2010 15:58:19 -0500 (CDT) From: Mark Jacobson To: 810-025-01-fall@uni.edu Subject: Computational Modeling and Simulation 9 MWF = 025 Hello 025 students, 810:025 is Computational Modeling and Simulation. 025 1 2 3 123 1234567890123456789012345678901234567 3 or 37 keystrokes.... --- ---- Thus, I will usually use the course number 025 instead of the 37 character class name after this email. Here are the links to the web pages shown in class this morning. I will try to update the web page sometime tonight or tomorrow. http://www.cs.uni.edu/~jacobson/025/r/ Here is the link to last semester's web page: http://www.cs.uni.edu/~jacobson/025/ This semester's class web page will be created soon! The class will be much different from last spring, but you can get an idea of some of what we will do by looking http://www.cs.uni.edu/~jacobson/025/ if you wish to. The Computer Consulting Center is ground floor ITT 36 of this building we have our classroom in. Be sure to go there if you need to get your password reset. http://www.uni.edu/its/us/ccc/index.html#hours Hours of CCC are: Until 9 p.m. Monday through Thursday Until 5 p.m. Friday Closed on Saturday Until 10 p.m. on Sunday NetLogo turtles graphics shown today will be reviewed again on Wednesday. Hopefully, all of you will be able to get in your accounts that day, or at least more of you. (Don't forget to stop at CCC to get your PASSWORD RESET, if needed). Netlogo shown today: Create 16 turtles Move forward 6 turtle steps ----------------- --------------------------- cro 16 fd 6 Put your pen down Lift your pen (or turtle tail) up ----------------- --------------------------------- pd pu Turn right 90 degrees Clear all (erase everything) --------------------- ---------------------------- rt 90 ca Draw a square (if your Pen is Down - PD you will see square) ------------------------------------------------------------ repeat 4 [ fd 3 rt 90 ] The above square has a side length of 3 Draw a cool pattern of 36 spiralling squares (if PD pen down) ------------------------------------------------------------- repeat 36 [ rt 10 repeat 4 [ fd 3 rt 90 ] ] What is 36 times 10? 360 degrees. So you will have a complete round the world circle of squares. Observer mode commands: ca, cro, Turtles mode commands: fd, rt, pd, pu Note: repeat is used in either mode, depending on what you need to do. repeat howManyTimes [ what you want to do ] What would the following repeat create, if we assume the pens of the turtles were down (PD or pd) so we could see the trail left by the turtle tails (or pens, aka pens)? repeat 8 [ fd 3 rt 45 ] <---- draws what???? repeat 4 [ fd 3 rt 90 ] <---- draws a square Here are the first three paragraphs of our textbook: Turtles, Termites, and Traffic Jams http://www.cs.uni.edu/~jacobson/025/r/flockOfBirds.jpg Also, if you like to preview what we will get to next week and what NetLogo can do: http://www.cs.uni.edu/~jacobson/025/boids/birds.html See you on Wednesday! Mark