Graphing Rational Functions Game

No preview image

1 collaborator

Default-person Edwin Schasteen (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 5.0.4 • Viewed 755 times • Downloaded 48 times • Run 0 times
Download the 'Graphing Rational Functions Game' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


WHAT IS IT?

In this model, students move dots around to try to find the curve of the function given by y=1/x.

HOW IT WORKS

A dot that is being moved around by the mouse switches color when the dot crosses the graph of the line y=1/x. This allows students to tell when they have dragged a dot across the curve defined by the equation y=1/x.

HOW TO USE IT

Press the setup button. Use mouse to select dots by left-clicking on the dot, and drag the dot around the screen until the dot changes color from green to red, or from red to green. When the dot changes color, you have found part of the curve. Drop dot in place about where the dot changed color, and go get another dot and repeat. The goal is to trace out the curve with the dots, and guess what the function is. In this case, the function will be y=1/x. In a future version of this model, all of the elementary functions, such as sine, cosine, ln, exp, x^2, x^3, ... etc will be selected at random when the setup button is pressed, and the goal will be to guess which function was selected by the shape that emerges as dots are placed on the curve.

THINGS TO TRY

Try guessing the equation of the curve.

EXTENDING THE MODEL

Try adding more functions to the model. You may want to try to add a text field that displays the possible functions, and set up a multiple choice option to "guess" the function. Add scoring system to keep track of highest score.

RELATED MODELS

Conic Sections 1 http://ccl.northwestern.edu/netlogo/models/ConicSections1

Conic Sections 2 http://ccl.northwestern.edu/netlogo/models/ConicSections2

CREDITS AND REFERENCES

Wurzer, G. [Gabriel Wurzer]. (2009, October 27). "Introducing ticks, tick and a simple histeresis for the created line tool" [Video file]. Retrieved from https://www.youtube.com/watch?v=LYmA--eUfdE

Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

;to TurnPatchesGreen
 ; ask patches [set pcolor green]
; end

;to TurnPatchesBlue
 ; ask patches [set pcolor blue]
  
;end
globals [
  
  
  lasttime
  
  ]

to setup
  clear-all
  reset-ticks
  ;numTurtles
  create-turtles 25 [setxy random-xcor random-ycor
     set shape "circle"
     set color green
    ]
  
  set lasttime ticks

  

reset-ticks
end 

to go
  
  move-closest-turtle-to-mouse
  ;turtle-out-if-less-than-vertical-asymptote
  turtle-closer-to-curve-hotter-farther-frome-line-colder
   
   
 
   
   
   ;
   
 tick
end 

to move-closest-turtle-to-mouse
  
  if(mouse-down? and mouse-inside?)[
   let closest turtles with-min [distancexy mouse-xcor mouse-ycor] 
   ask closest [setxy mouse-xcor mouse-ycor]
  ]
end 

to turtle-closer-to-curve-hotter-farther-frome-line-colder
     let grabbed min-one-of turtles [distancexy mouse-xcor mouse-ycor]
     
     if(grabbed != nobody)[let grabbed-number [who] of grabbed
               
               if(grabbed-number != nobody)[ask turtle grabbed-number[
                       
                      ifelse( (ycor - 1 / xcor) < 0)[set color red
                        
                       
                        ;print ycor
                        
                        ][set color green]
               
                                                        ] 
                 
                 
               ]
       
       ]
end 

to turtle-out-if-less-than-vertical-asymptote
    
     if(mouse-down? and mouse-inside? and (ticks - lasttime > 1000))[ 
       set lasttime ticks
       let grabbed min-one-of turtles [ distancexy mouse-xcor mouse-ycor ] 
 
       if(grabbed != nobody)[
               let grabbed-number [who] of grabbed
               ;print grabbed-number
 
               if(grabbed-number != nobody)[ ask turtle grabbed-number [if xcor < 0 [die]]   ]
 
        ]

     ]   
end 

There are 2 versions of this model.

Uploaded by When Description Download
Edwin Schasteen almost 12 years ago This is the first functional version of this model. Download this version
Edwin Schasteen almost 12 years ago Initial upload Download this version

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.