bewerking=nivo/bewerking2.proc
!set n=$teller
!if $graad =0
    R=$teller
!else
    R=$graad
!endif        
nivo_title=$empty
#!record 53 of lang/remarks.$taal
plaatje=0
log=0
breuk=0
varlist=1
wims_texsize=+2
keuze=!randitem 0,1
pm=!randitem -1,1
wims_rawmath_variables=x
!if $R=1
    somtekst$n=!record 54 of lang/remarks.$taal
    g=!randitem 2,3,4,5,6,7,8,9
    a=!randint 1,10
    a=$[$pm*$a]
    opgave$n=^{$g}\log \left( x \right) = $a
    !if $pm>0
	GOED$n=$[$g^$a]
	goed$n= x = $g^{$a} = $(GOED$n)
    !else
	GOED$n=$g^$a
	b=$[$g^(-1*$a)]
	goed$n= x = $g^{$a} = \frac{1}{$g^{$[-1*$a]}}= \frac{1}{$b}	
    !endif	        
 !exit    
!endif

!if $R=2
    somtekst$n=!record 54 of lang/remarks.$taal
    b=!randint 2,20
    !if $keuze=0
	GOED$n=sqrt($b)
        goed$n= x^{2} = $b \rightarrow x = \sqrt{$b} 
	opgave$n=^{x}\log \left( $b \right) = 2 
    !else
	g=!randitem 2,3,4,5
	a=!randitem 2,3,4
	pm=!randitem +,-
        opgave$n=^{$g}\log \left( x $pm $b \right) = $a
	GOED$n=$[$g^$a - $pm $b]
	goed$n= x $pm $b = $g^{$a} \rightarrow x = $(GOED$n)     
    !endif	
 !exit
!endif

!if $R=3
    somtekst$n=!record 54 of lang/remarks.$taal
    g=!randitem 2,3,4,5,6,7
    a=!randitem 2,3,4,5
    b=!randint 1,20
    c=!randitem 2,3,4,5,6,7,8,-2,-3,-4,-5,-6,-7,-8
    pm=!randitem +,-
    d=$[$g^$a - $pm $b]
    e=!randitem 1,2,3,4,5,6,7,8,9
    !if $keuze=0
	opgave$n=^{$g}\log \left( $c \cdot x $pm $b \right) = $a
	GOED$n=!exec pari $d/$c
	goed$n= $c \cdot x $pm $b = $g^{$a} \rightarrow $c \cdot x = $d \rightarrow x = \frac{$d}{$c} = $(GOED$n)  
    !else
	opgave$n=$e + ^{$g}\log \left( $c \cdot x $pm $b \right) = $[$a+$e]
	GOED$n=!exec pari $d/$c
	goed$n= $c \cdot x $pm $b = $g^{$a} \rightarrow $c \cdot x = $d \rightarrow x = \frac{$d}{$c} = $(GOED$n)  
    !endif  
 !exit
!endif

!if $R>3
    somtekst$n=!record 55 of lang/remarks.$taal
    g=!randitem 2,3,4,5
    a=!randitem 2,3,4,5
    b=!randitem 2,3,4,5,6,7,8
    c=$[$g^$a]
    e=!randitem 1,2,3,4,5,6,7,8,9
    !if $pm=1
	pp=+
	mm=-
    !else
	pp=-
	mm=+
    !endif		
    !if $keuze=0
        opgave$n=^{$g}\log \left( x ^{$b} \right) = $a
    !else
        opgave$n=^{$g}\log \left( x ^{$b} \right) $pp $e= $[$a $pp $e]
    !endif
    GOED$n=$c^(1/$b)
    !if . notin $[$(GOED$n)]
	GOED$n=$[$(GOED$n)]
        goed$n=x^{$b} = $g^{$a}=$c \rightarrow  x =$(GOED$n)
    !else
	goed$n=x^{$b} = $g^{$a}=$c \rightarrow  x =$c^{\frac{1}{$b}}
    !endif    
!endif
