n=$counter
cols=25
rows=8
image=0
math=1
questiontype=0
!if $level=0
    R=$counter
!else
    R=$level
!endif
checkfile=$checkdir/simplify.proc
arglist=$empty
letters=x,y,q,a,b,c,d,e,f,g,h,k,m,p,z
letters=!shuffle $letters
x=!item 1 of $letters
y=!item 2 of $letters
z=!item 3 of $letters
a=!item 4 of $letters
getallen=!shuffle 2,3,4,5,6,7,8,-2,-3,-4,-5,-6,-7,-8
b=!item 1 of $getallen
c=!item 2 of $getallen
d=!item 3 of $getallen
e=!item 4 of $getallen
question$n=!record 8 of lang/remarks.$taal
#@ herleid de volgende macht <br><font size=-1>dus schrijf anders</font>
# var1 is used for checking  "literal typing" of question
mytexsize=+2
!if $R=1
    var1=($x^$a/($x^($b*$a)))*($x/($x^($b*$a))) 
    answer$n=!exec maxima ratsimp($var1);
    texanswer$n=!texmath $(answer$n)
    texanswer$n=\rightarrow $(texanswer$n)
    formula$n=\frac{$x^{$a}}{$x^{$b\cdot $a}} \,\, \times \,\, \frac{$x}{$x^{$b\cdot $a}}
    varlist=!varlist $(answer$n)
    wims_rawmath_variables=$varlist
 !exit
!endif

!if $R=2
    var1=($c*$x^($a)/($x^($b)))*($d*$x^($a)/($x^($b)))
    answer$n=!exec maxima ratsimp($var1);
    texanswer$n=!texmath $(answer$n)
    texanswer$n=\rightarrow $(texanswer$n)
    formula$n=\frac{$c \cdot $x^{$a}}{$x^{$b}} \,\, \times \,\, \frac{$d \cdot $x^{$a}}{$x^{$b}}
    varlist=!varlist $(answer$n)
    wims_rawmath_variables=$varlist
 !exit
!endif

!if $R>2
    var1=($d*$x^($a)/($x^($b)))*($c*$x^($a)/($x^($b)))
    answer$n=!exec maxima ratsimp($var1);
    texanswer$n=!texmath $(answer$n)
    texanswer$n=\rightarrow $(texanswer$n)
    formula$n=\frac{$d \cdot $x^{$a}}{$x^{$b}} \,\, \times \,\, \frac{$c \cdot $x^{$a}}{$x^{$b}}
    varlist=!varlist $(answer$n)
    wims_rawmath_variables=$varlist
 !exit
!endif



