n=$counter
inputs=1
mathview=0
questiontype=4
math=0
cols=35
rows=1
!if $level=0
    R=$counter
!else
    R=$level
!endif
!if $teaching=0
    helptext=$empty
    exotext=$empty
!else
    helptext=!record 63 of $remarkdir/commonremarks.$taal
    exotext=$empty
!endif
# image 640x328 pixels
# document.applets[0].setColor('A',255,0,0);
showToolBar=true
showMenuBar=false                                                                                             
framePossible=false
checkfile=exos/checkfile6.proc
customToolBar=" 0 | 40 "
var5=lineaal
ggb=ggb/driehoek1.ggb
list_of_things=['text'];
height=600
width=800
!if $R>0
    # random driehoeken met JS
    alfa=!randitem 0,5,10,15,20,25,30
    beta=!randitem 5,10,15,20,25,30,35,40,45
    delta=!randitem 15,20,25,30,35,40,45,50
    a=$[$alfa*pi/180]
    d=$[$delta*pi/180]
    b=$[$beta*pi/180]
    x0=0
    y0=0
    x1=!randitem 5,6,7,8
    y1=$[$x1*tan($a)]
    tan=$[tan($a)]
    y2=$[($x1+$x1*tan($a)*tan($d))/(tan($b) + tan($d))]
    x2=$[$y2*tan($b)]
    h1=$[90-$alfa-$beta]
    h2=$[90+$alfa-$delta]
    h3=$[180-$h1-$h2]
    # hoek in A = $h1
    # hoek in B = $h2
    # hoek in C = $h3
    punten=A,B,C
    hoeken=$h1,$h2,$h3
    keuze=!randitem 1,2,3
    answer$n=!item $keuze of $hoeken
    vraaghoek=!item $keuze of $punten
    appletcommand=\
    document.applets[0].evalCommand("Mx_A=$x0");\
    document.applets[0].evalCommand("My_A=$y0");\
    document.applets[0].evalCommand("Mx_B=$x1");\
    document.applets[0].evalCommand("My_B=$y1");\
    document.applets[0].evalCommand("Mx_C=$x2");\
    document.applets[0].evalCommand("My_C=$y2");\
    document.applets[0].evalCommand("A = (Mx_A,My_A)");\
    document.applets[0].evalCommand("B = (Mx_B,My_B)");\
    document.applets[0].evalCommand("C = (Mx_C,My_C)");\
    document.applets[0].evalCommand("P=Polygon[A,B,C]");

    ss=!record 23 of lang/remarks.$taal
    question$n=$ss
    #@ Bekijk de applet.<br>Daar staat een hoekmeter, die je met de muis kunt bedienen.<br>Bepaal de hoek in punt $vraaghoek en vul je antwoord op het invulveld in.
    rr=!record 24 of lang/remarks.$taal
    inputtext1=$rr
    #@ Hoeveel graden is de hoek in $vraaghoek ?
    helptext=!record 25 of lang/remarks.$taal
    #@ Kijk</a> in de help pagina's <br>voor een kleine fotohandleiding over GeoGebra
    tt=!record 89 of lang/remarks.$taal
    #@ De hoek was dus $(answer$n) <sup>o</sup>
    textanswer$n=$tt
!endif
