checkfile=exos/checkfile2.proc
rounding=0
!if $rounding=-1
    rounding=0
    !readproc $remarkdir/rounding.$taal
!endif
!set n=$counter
!if $level =0
    R=$counter
!else
    R=$level
!endif        
exotitle=$empty
#!record 53 of lang/remarks.$taal
image=0
math=0
questiontype=0
var1=0
var2=0
var3=1
mytexsize=+2
keuze=!randitem 0,1
pm=!randitem -1,1
wims_rawmath_variables=x
!if $R=1
    question$n=!record 54 of lang/remarks.$taal
    #@ Los de onderstaande vergelijking <b>exact</b> op:
    g=!randitem 2,3,4,5,6,7,8,9
    a=!randint 1,10
    a=$[$pm*$a]
    formula$n=^{$g}\log \left( x \right) = $a
    !if $pm>0
	answer$n=$[$g^$a]
	texanswer$n= x = $g^{$a} = $(answer$n)
    !else
	answer$n=$g^$a
	b=$[$g^(-1*$a)]
	texanswer$n= x = $g^{$a} = \frac{1}{$g^{$[-1*$a]}}= \frac{1}{$b}	
    !endif	        
 !exit    
!endif

!if $R=2
    question$n=!record 54 of lang/remarks.$taal
    #@ Los de onderstaande vergelijking <b>exact</b> op:
    b=!randint 2,20
    !if $keuze=0
	answer$n=sqrt($b)
        texanswer$n= x^{2} = $b \rightarrow x = \sqrt{$b} 
	formula$n=^{x}\log \left( $b \right) = 2 
    !else
	g=!randitem 2,3,4,5
	a=!randitem 2,3,4
	pm=!randitem +,-
        formula$n=^{$g}\log \left( x $pm $b \right) = $a
	answer$n=$[$g^$a - $pm $b]
	texanswer$n= x $pm $b = $g^{$a} \rightarrow x = $(answer$n)     
    !endif	
 !exit
!endif

!if $R=3
    question$n=!record 54 of lang/remarks.$taal
    #@ Los de onderstaande vergelijking <b>exact</b> op:
    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
	formula$n=^{$g}\log \left( $c \cdot x $pm $b \right) = $a
	answer$n=!exec pari $d/$c
	texanswer$n= $c \cdot x $pm $b = $g^{$a} \rightarrow $c \cdot x = $d \rightarrow x = \frac{$d}{$c} = $(answer$n)  
    !else
	formula$n=$e + ^{$g}\log \left( $c \cdot x $pm $b \right) = $[$a+$e]
	answer$n=!exec pari $d/$c
	texanswer$n= $c \cdot x $pm $b = $g^{$a} \rightarrow $c \cdot x = $d \rightarrow x = \frac{$d}{$c} = $(answer$n)  
    !endif  
 !exit
!endif

!if $R>3
    question$n=!record 55 of lang/remarks.$taal
    #@ Los de onderstaande vergelijking voor alle <em>x</em> &gt; 0 <n>exact</b> op:
    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
        formula$n=^{$g}\log \left( x ^{$b} \right) = $a
    !else
        formula$n=^{$g}\log \left( x ^{$b} \right) $pp $e= $[$a $pp $e]
    !endif
    answer$n=$c^(1/$b)
    !if . notin $[$(answer$n)]
	answer$n=$[$(answer$n)]
        texanswer$n=x^{$b} = $g^{$a}=$c \rightarrow  x =$(answer$n)
    !else
	texanswer$n=x^{$b} = $g^{$a}=$c \rightarrow  x =$c^{\frac{1}{$b}}
    !endif    
!endif
