#<select name="graad" size="1">
#<option value="0">de moeilijkheidsgraad mag gewoon oplopen</option>
#<option value="1">ik wil de gemakkelijkste sommetjes</option>
#<option value="2">ik wil de makkelijke sommetjes</option>
#<option value="3">ik wil de gewone sommetjes</option>
#<option value="4">ik wil de moeilijke sommetjes</option>
#<option value="5">ik wil de moeilijkste sommetjes</option>
#</select>
#voor alle tellers
bewerking=bewerking3.proc
!set n=$teller

!if $graad=0 
    R=$teller
!else
    R=$graad
!endif   
PLAATJE=1
!if $aantal_vragen=1 or $aantal_vragen=3
    aantal_vragen=4
!endif
XSIZE=300
YSIZE=300
XRANGE=-2,2
YRANGE=-2,2
K1=red
K2=cyan
K3=blue
K4=green
TRANSPARENT=sdfsdgz
PUNT$n=!randitem P,Q,R,S,T


!if $R=1
    begin=0
    graden=!shuffle 300,330,360,390
    GOED$n=!randint 1,$aantal_vragen
    BEGIN$n=0
    GRADEN$n=!item $(GOED$n) of $graden
    aantal_beeldjes=$[round($(GRADEN$n)/10)]
    extra=pi,pi/2,pi/4,pi,pi/2,pi/4,pi,pi/2,pi/4
!endif
!if $R>1
    aantal_beeldjes=10
    begin=5,10,15,20,25,30,35,40,45
    begin=!shuffle $begin
    graden=!shuffle 240,270,300,330,360,390,410
    GOED$n=!randint 1,$aantal_vragen
    BEGIN$n=!item $(GOED$n) of $begin
    GRADEN$n=!item $(GOED$n) of $graden
    extra=pi,pi/2,pi/3,pi/4,pi,pi/2,pi/3,pi/4
!endif


    
insdraw_size=$XSIZE,$YSIZE
insdraw_animate=yes
ins_anim_frames=$aantal_beeldjes
ins_anim_loop=1
ins_anim_delay=0.8

!readproc $authordir/eenheidscirkel.proc

!insdraw $(eenheidscirkel$n)
plaatje=insert-1.gif
	

!for q=0 to $(GRADEN$n) step 30
    Q=$[$q*pi/180]
    VLINE=!append line vline $Q,0,blue to $VLINE
    XTEXT=!append line text black,$Q,0,normal,$q to $XTEXT
!next q
#pi/6,pi/3,pi/4,-pi/6,-pi/3,-2*pi/3,2*pi/3
extra=!shuffle $extra
totalehoek=$[$(BEGIN$n)+$(GRADEN$n)] 
nummer=!item $(GOED$n) of $rangwoorden

!if $taal=nl
    hoekverdraaiing=hoekverdraaiing
    antwoord$n=Het goede antwoord is: Het $nummer plaatje
    hint=<p align="left">Algemene Hint:geen hints vandaag...
    LINKTEXT=Klik hier voor de animatie<br>

    somtekst$n=Een punt $(PUNT$n) <font color=red> beweegt </font> tegen de wijzers van de klok in over de eenheidscirkel<br>\
    Zie ook de annimatie<br>\
    De beginhoek die lijnstuk (voerstraal) O$(PUNT$n) maakt met de <em>x</em>-as is <img src="$module_dir/gifs/hoek.gif" alt="&ang;">&nbsp;$(BEGIN$n) <sup>o</sup><br>\
    Het punt beweegt nu over de eenheidscirkel tot het punt $(PUNT$n) een hoek van $totalehoek<sup>o</sup> heeft afgelegd<br>\
    Het punt heeft dus : $totalehoek - $(BEGIN$n) = $(GRADEN$n) <sup>o</sup> doorlopen.<br>\
    $(PUNT$n)<b>'</b> is de projectie van $(PUNT$n) op de <em>x</em>-as . <br>\
    In  de grafiek is de <em>lengte</em> $(PUNT$n) $(PUNT$n)<b>'</b> afgezet tegen de hoekverdraaiing.<br>\
    Klik op het plaatje van de curve die deze situatie weergeeft.<p>
!else
    hoekverdraaiing=rotation
    antwoord$n=the correct answer is: the $nummer image
    hint=<p align="left">General Hint:no hints today...</p>
    LINKTEXT=Click here for the animation<br>
    somtekst$n=A point $(PUNT$n) <font color=red>moves</font> counter-clock wise along the unit circle.\
    <small>(also see the animation)</small><br>\
    At the start of the movement the angle between O$(PUNT$n) and the <em>x</em>-axis is \
    <img src="$module_dir/gifs/hoek.gif" alt="&ang;">&nbsp;$(BEGIN$n) <sup>o</sup>. \
    The point moves along the unit circle until the angle reaches $totalehoek<sup>o</sup>.\
    $(PUNT$n) has rotated : $totalehoek - $(BEGIN$n) = $(GRADEN$n) <sup>o</sup> along the circle.<br>\
    $(PUNT$n)<b>'</b> is the projection of $(PUNT$n) on the <em>x</em>-axis . \
    In the graphs the <em>length</em> of $(PUNT$n) $(PUNT$n)<b>'</b> is plotted against the rotation angle.<br>\
    Click on the graph which represents this situation.<p>
!endif
puntje=!nospace $(PUNT$n) $(PUNT$n) '

!for p=1 to $aantal_vragen
    !if $p=$(GOED$n)
        klikplaatje$p=$XSIZE,$YSIZE\
        xrange $[$(BEGIN$n)*pi/180],$[($(BEGIN$n)+$(GRADEN$n))*pi/180]\
        yrange -2,2\
        linewidth 1\
        $VLINE \
        $XTEXT\
        hline 0,-1,green\
        hline 0,1,green\
        linewidth 2\
        arrow $(BEGIN$n)*pi/180+0.1,-0.1,$(BEGIN$n)*pi/180+0.7,-0.1,5,black\
        arrow $(BEGIN$n)*pi/180+0.1,0.1,$(BEGIN$n)*pi/180+0.1,1,5,black\
        hline 0,0,blue\
        linewidth 3\
        curve red,sin(x)\
        text black,$(BEGIN$n)*pi/180,-0.2,normal,$hoekverdraaiing\
	text black,$(BEGIN$n)*pi/180,1.3,normal,$puntje
    !else
        dx=!item $p of $extra
	klikplaatje$p=$XSIZE,$YSIZE\
        xrange $[$(BEGIN$n)*pi/180],$[($(BEGIN$n)+$(GRADEN$n))*pi/180]\
        yrange -2,2\
        linewidth 1\
        $VLINE \
        $XTEXT\
        hline 0,-1,green\
        hline 0,1,green\
        linewidth 2\
        arrow $(BEGIN$n)*pi/180+0.1,-0.1,$(BEGIN$n)*pi/180+0.7,-0.1,5,black\
        arrow $(BEGIN$n)*pi/180+0.1,0.1,$(BEGIN$n)*pi/180+0.1,1,5,black\
        hline 0,0,blue\
        linewidth 3\
        curve red,sin(x+$dx)\
        text black,$(BEGIN$n)*pi/180,-0.2,normal,$hoekverdraaiing\
	text black,$(BEGIN$n)*pi/180,1.3,normal,$puntje
    !endif
!next p

plaatje$n=$(klikplaatje$(GOED$n))

applet=<applet archive="SinCosTan.jar" code="SinCosTan.class" codebase="$appletdir" width=600 height=300>\
<param name="language" value="English">\</applet></p>
