combine by dragging

controlled dragging
There are Exercise Tools that are conceived for this kind of exercises while GeoGebra isn't. But with some magic and an advanced skill level you can do this in GeoGebra to. The reward of it is very nice as you can see in next applet[br]See how it works: Goal is to drag the red squares to the yellow squares under the corresponding green ones. Instead of 1, 2, 3 and 4 you can of course insert equations, graphs, sign or slope tables.[br][list][*]The [b]control[/b] button puts the wrong placed squares back to their initial position[/*][*]The [b]reset[/b] button puts all back to its initial position.[/*][/list]
How the magic works
construction[br][list][*]Type the command [b]list1 = Shuffle[{(-4, 0), (0, 0), (4, 0), (8, 0)}][/b] to define list1.[br][/*][*]Define the points [b]A = list1(1), B = list1(2), C = list1(3) and D = list1(4)[/b].[br]These points are the the lower left corners of the green squares at a randomized position[/*][*]Define [b]AA = A + u, BB = B + u[/b] etc. to define the lower right corners of the green squares.[/*][*]Create the 4 green squares as [b]Polygon[A, AA, 4][/b] etc.[/*][*]Create the 4 yellow squares as a vertical translation e.g. [b]Translate[polygon1, v][/b].[br]The translations of the lower left corners willl be named as [b]A', B', C' and D'[/b]. [/*][*]Create the 1st red square starting from a point AAA and A[sub]1[/sub] = AAA + u as [b]Polygon[AAA, A[sub]1[/sub], 4][/b].[br]Create in a similar way the other red squares.[/*][*]Link the position of graphs, equations, texts... to the points A, B, C and D and the corresponding points[br]AAA, BBB, CCC and DDD. Open the properties and mark them as [b]selection not allowed[/b].[br]Now you can drag the red squares and the linked objects will follow the dragging.[/*][/list]button control[br][list][*]create a button with caption [b]control[/b]. It will control the combinations by evaluating the positions of the lower left corners of the red squares: [b]AAA has to be equal to A'[/b] etc. [/*][*]If AAA = A' the combination is correct. If not AAA will be set back to its initial position.[/*][/list]button reset[br][list][*]The script of this button resets the red squares back to their initial position.[/*][*][b]UpdateConstruction[][/b] reshuffles list 1 and thereby the position of A, B, C and D.[/*][/list]Here's a look behind the curtains to see more details of the contructed points and squares:
scripts of the two buttons
Don't start with this kind of applets if your a GeoGebra starter. [br]But if you are a skilled user, it's a challenge with a nice reward![br]I used this kind of exercise to combine the graphs of functions and their derivates on [url=http://users.telenet.be/chris.cambre/chris.cambre/oef_1anal_3afg_reeks1.htm]hellingsgrafieken[/url].

Information: combine by dragging