#list_of_things=['point','line','segment','circle','function','polygon','cone','ellipse','polynomial']
#toolbar=0 , 1 , 10 , 16 , 6
plaatje=0
n=$teller
debug=1
bewerking=nivo/bewerking2.proc
woordmax=300
maxobjects=100
charmax=300
showToolBar=true
showMenuBar=true
framePossible=true
number_of_buttons=1
buttontext1=!record 4 of common/commonremarks.$taal  
width=640
height=480
circles=1
R=$graad
!if $graad=0
    R=$teller
!endif

ggb=../nivo/grid.ggb

!if $R=1
    keuze=!randitem 0,1,1,1,2,2,2
    list_of_things=[ 'circle' ];
    toolbar=34 | 10 | 0 | 6 | 40   
    appletcommand=$empty
    somtekst$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
    r=!randitem 1,2,3,4,5
    b=!randitem 1,2,3,4,5
    pm=!randitem +,-
	
    !if $keuze=1
	opgave$n=\left| z $pm  $b \right| \, = $r
	x=$[-1*($pm $b)]
	GOED$n=$x,0,$r
	goed$n=\left[ \begin{array}{l} M($x:0) \\ Radius\,\,=\,\,$r \end{array}
    !else	
	!if $keuze=2
	    !if $b=1
		opgave$n=\left| z $pm  i \right| \, = $r
	    !else
		opgave$n=\left| z $pm  $b \cdot i \right| \, = $r
	    !endif
	    y=$[-1*($pm $b)]
	    GOED$n=0,$y,$r
	    goed$n=\left[ \begin{array}{l} M(0:$y) \\ Radius\,\,=\,\,$r \end{array}
	!else
	    opgave$n=\left| z \right| \, = \, $r
	    GOED$n=0,0,$r
	    goed$n=\left[ \begin{array}{l} M(0:0) \\ Radius\,\,=\,\,$r \end{array}
	!endif
    !endif
 !exit
!endif

!if $R=2
    list_of_things=[ 'circle' ];
    toolbar=34 | 10 | 0 | 6 | 40   
    appletcommand=$empty
    somtekst$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
    r=!randitem 1,2,3,4,5
    a=!randitem 1,2,3,4,5
    b=!randitem 1,2,3,4,5
    pm=!randitem +,-
    mp=!randitem +,-
    !if $b=1
	opgave$n=\left| z $pm  $a $mp  i \right| \, = $r
    !else
	opgave$n=\left| z $pm  $a $mp $b \cdot i \right| \, = $r
    !endif
    x=$[-1*($pm $a)]
    y=$[-1*($mp $b)]
    GOED$n=$x,$y,$r
    goed$n=\left[ \begin{array}{l} M($x:$y) \\ Radius\,\,=\,\,$r \end{array}
 !exit
!endif

!if $R=3
    keuze=!randitem 0,1
    list_of_things=[ 'circle' ];
    toolbar=34 | 10 | 0 | 6 | 40   
    appletcommand=$empty
    somtekst$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
    r=!randitem 1,2,3,4,5
    b=!randitem 1,2,3,4,5
    !if $keuze=1
	rr=$[$r^2 - $b^2]
	!if $b=1
	    opgave$n=z \cdot \overset{-}z - i \cdot  \overset{-}z + i \cdot z \,\,=\,\,  $rr
	!else
	    opgave$n=z \cdot \overset{-}z - i \cdot $b \cdot  \overset{-}z + i \cdot $b \cdot z \,\,=\,\,  $rr
	!endif
	GOED$n=0,$b,$r
	goed$n=\left[ \begin{array}{l} M(0:$b) \\ Radius\,\,=\,\,$r \end{array}
    !else
	rr=$[$r^2 - $b^2]
	!if $b=1
	    opgave$n=z \cdot \overset{-}z - \overset{-}z - z \,\,=\,\,  $rr
	!else
	    opgave$n=z \cdot \overset{-}z - $b \cdot  \overset{-}z - $b \cdot z \,\,=\,\,  $rr
	!endif
	GOED$n=$b,0,$r
	goed$n=\left[ \begin{array}{l} M($b:0) \\ Radius\,\,=\,\,$r \end{array}    
    !endif
 !exit
!endif

!if $R>3
    keuze=!randitem 0,1
    list_of_things=[ 'circle' ];
    toolbar=34 | 10 | 0 | 6 | 40   
    appletcommand=$empty
    somtekst$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
    r=!randitem 1,2,3,4,5
    b=!randitem 1,2,3,4,5
    a=!randitem 1,2,3,4,5
    keuze=0
    !if $keuze=1
	rr=$[$r^2 - $b^2]
	!if $b=1
	    opgave$n=z \cdot \overset{-}z - \left( $a + i \right) \cdot  \overset{-}z - \left( $a - i \right) \cdot z + $[$a*$a] \,\,=\,\,  $rr
	!else
	    opgave$n=z \cdot \overset{-}z - \left( $a + $b \cdot i \right) \cdot  \overset{-}z - \left( $a - $b \cdot i \right) \cdot z + $[$a*$a] \,\,=\,\,  $rr
	!endif
	GOED$n=$a,$b,$r
	goed$n=\left[ \begin{array}{l} M($a:$b) \\ Radius\,\,=\,\,$r \end{array}
    !else
	rr=$[$r^2 - $b^2 - $a^2]
	!if $b=1
	    opgave$n=z \cdot \overset{-}z + \left( $a -  i \right) \cdot  \overset{-}z + \left( $a + i \right) \cdot z \,\,=\,\, $rr
	!else
	    opgave$n=z \cdot \overset{-}z + \left( $a - $b \cdot i \right) \cdot  \overset{-}z + \left( $a + $b \cdot i \right) \cdot z \,\,=\,\, $rr
	!endif
	GOED$n=$[-1*$a],$b,$r
	goed$n=\left[ \begin{array}{l} M(-$a:$b) \\ Radius\,\,=\,\,$r \end{array}
    !endif
 !exit
!endif

