#list_of_things=['point','line','segment','circle','function','polygon','cone','ellipse','polynomial']
#customToolBar=0 , 1 , 10 , 16 , 6
questiontype=4
mathview=0
n=$counter
checkfile=exos/checkfile2.proc
wordmax=300
maxobjects=100
charmax=300
showToolBar=true
showMenuBar=false
framePossible=false
lijn=!record 67 of lang/remarks.$taal
textanswer$n=!record 73 of lang/remarks.$taal
width=640
height=480
inputs=0
math=0
# hoeveel lijnen verwachten we? let op dat: circles=0
list_of_things=[ 'line' , 'circle' ];
lines=1
circles=0

R=$level
!if $level=0
    R=$counter
!endif
ggb=ggb/grid.ggb
keuze=!randitem 0,1
customToolBar=" 2 | 34 | 10 | 40 | 6 | 0 | 41 | 42 "

!if $R=1
    appletcommand=$empty
    question$n=!record 12 of lang/remarks.$taal
    # prefix my_ maakt dat geogebra2wims.js ze niet ook opstuurt
    # GEOGEBRA: lijn  => name @ slope @ constant                                                                                                          
    # GEOGEBRA: lijn  =>  name @ perp @ x=number
    #appletcommand=!append line document.applets[0].evalCommand("$B = ($x,$y)"); to $appletcommand
    #appletcommand=!append line document.applets[0].evalCommand("$name = $vector[My_A,$B]"); to $appletcommand
    #appletcommand=!append line document.applets[0].setVisible('$B' , false ); to $appletcommand
    #appletcommand=!append line document.applets[0].setColor('$name',255,0,0); to $appletcommand
    a=!randitem -5,-4,-3,-2,-1,1,2,3,4,5
    !if $keuze=0
	formula$n=Re\left( z \right)\,\,=\,\, $a
	answer$n=perp,$a
	ln=vline $a,0,green
	texanswer$n=$lijn \,Re\,=\,$a
    !else
	formula$n=Im\left( z \right)\,\,=\,\, $a
	answer$n=0,$a
	ln=hline 0,$a,green
	texanswer$n=$lijn \,Im\,=\,$a
    !endif
    
    !if $showanswer=1
	var1=300,300\
	transparant white\
	xrange -10,10\
	yrange -10,10\
	linewidth 1\
	hline 0,0,blue\
	vline 0,0,blue\
	linewidth 2\
	$ln
	
    !endif
 !exit
!endif

!if $R=2
    appletcommand=$empty
    question$n=!record 12 of lang/remarks.$taal
    # prefix my_ maakt dat geogebra2wims.js ze niet ook opstuurt
    #appletcommand=!append line document.applets[0].evalCommand("$B = ($x,$y)"); to $appletcommand
    #appletcommand=!append line document.applets[0].evalCommand("$name = vector[My_A,$B]"); to $appletcommand
    #appletcommand=!append line document.applets[0].setVisible('$B' , false ); to $appletcommand
    #appletcommand=!append line document.applets[0].setColor('$name',255,0,0); to $appletcommand
    a=!randitem -3,-2,-1,1,2,3
    !if $keuze=0
	!if $a=1 or $a=-1
	    rc=$a
	    lrc=$a
	!else
	    rc=1/$a
	    lrc=\frac{1}{$a}
	!endif
	formula$n=$a \cdot Im\left( z \right)\,\,=\,\, Re\left( z \right)
	answer$n=$rc,0
	ln=curve green,$rc*x
	texanswer$n=$lijn \,Im\,=\,$lrc \cdot Re
    !else
	formula$n=$a \cdot Re\left( z \right)\,\,=\,\, Im\left( z \right)
	answer$n=$a,0
	ln=curve green,$a*x
	texanswer$n=$lijn \,Im\,=\,$a \cdot Re
    !endif

    !if $showanswer=1
	var1=300,300\
	transparant white\
	xrange -10,10\
	yrange -10,10\
	linewidth 1\
	hline 0,0,blue\
	vline 0,0,blue\
	linewidth 2\
	$ln
	
    !endif
 !exit
!endif

!if $R>2
    appletcommand=$empty
    question$n=!record 12 of lang/remarks.$taal
    # prefix my_ maakt dat geogebra2wims.js ze niet ook opstuurt
    #appletcommand=!append line document.applets[0].evalCommand("$B = ($x,$y)"); to $appletcommand
    #appletcommand=!append line document.applets[0].evalCommand("$name = vector[My_A,$B]"); to $appletcommand
    #appletcommand=!append line document.applets[0].setVisible('$B' , false ); to $appletcommand
    #appletcommand=!append line document.applets[0].setColor('$name',255,0,0); to $appletcommand
    a=!randitem 2,3,1/2,1/3,1/4,4,1/5,2/3,3/4,2/5,3/5
    b=!randitem -3,-2,-1,1,2,3
    !if $b>0
	# alleen voor latex representatie van het goede antwoord... 
	pm=+
	lb=$b
    !else
	pm=-
	lb=$[-1*$b]
    !endif
    !if $keuze=0
	formula$n=Im\left( z \right)\, - \, $a \cdot Re\left( z \right)\,\,=\,\,$b
	answer$n=$a,$b
	texanswer$n=$lijn \,Im\,=\,$a \cdot Re \, $pm \,$lb
	ln=curve green,$a*x+($b)
    !else
	formula$n=Im\left( z \right)\, + \, $a \cdot Re\left( z \right)\,\,=\,\,$b
	answer$n=$[-1*$a],$b
	texanswer$n=$lijn \,Im\,=\,-$a \cdot Re \, $pm \,$lb
	ln=curve green,-$a*x+($b)
    !endif

    !if $showanswer=1
	var1=300,300\
	transparant white\
	xrange -10,10\
	yrange -10,10\
	linewidth 1\
	hline 0,0,blue\
	vline 0,0,blue\
	linewidth 2\
	$ln
	
    !endif
 !exit
!endif

#!if $R>1
#    list_of_things=[ 'circle' ];
#    customToolBar=34 | 0 | 6    
#    appletcommand=$empty
#    # prefix my_ maakt dat geogebra2wims.js ze niet ook opstuurt
#    #appletcommand=!append line document.applets[0].evalCommand("$B = ($x,$y)"); to $appletcommand
#    #appletcommand=!append line document.applets[0].evalCommand("$name = vector[My_A,$B]"); to $appletcommand
#    #appletcommand=!append line document.applets[0].setVisible('$B' , false ); to $appletcommand
#    #appletcommand=!append line document.applets[0].setColor('$name',255,0,0); to $appletcommand
#    question$n=
#    formula$n=
#    answer$n=
#    texanswer$n=
# !exit
#!endif
#
