# vereenvoudig [ type: 2a^2b^2/(4ab) ] 
questiontype=7
javascript=js/exo1.js
image=0
XSIZE=650
embed=1
mathview=2
cols=20
rows=1
inputs=1
n=$counter
math=1
R=$level
!if $level=0
    R=$counter
!endif    
pm=!randitem +,-
ppm=!randitem +,-
mp=!randitem 1,-1
var1=1
#schrijf als 1 breuk
question$n=!record 12 of lang/remarks.$taal
#@Schrijf als &eacute;&eacute;n breuk;
checkfile=exos/checkfile1.proc    
x=!randitem x,t,c
y=!randitem y,p,h,v
exotext=!record 1 of lang/remarks.$taal
sometext=!record 3 of lang/remarks.$taal
exotext=<p><a onmouseover="return escape('$sometext')"> $exotext </a>
# var1= letterlijke vraag in wiskunde
!if $R=1
    a=!randitem 2,3,4,5
    b=!randitem 2,3,4,5
    c=$[$a*$b]
    formula$n=\frac{$a $x $y}{ $c $y } \rightarrow
    answer$n=$x/$b
    texanswer$n=\frac{$a $x $y}{ $c $y} = \frac{$a \cdot $x \cdot $y}{$a \cdot $b \cdot $y} = \frac{$x}{$b}
    var1=$a*$x*$y/($c*$y)
    varlist=$x
    wims_rawmath_variables=$varlist
 !exit
!endif

!if $R=2
    a=!randitem 2,3,4,5
    b=!randitem -6,-5,-4,-3,-2,2,3,4,5,6
    c=$[$a*$b]
    keuze=!randitem 1,2
    !if $keuze=1
        formula$n=\frac{$c $y}{ $a $y $x } \rightarrow
        answer$n=$b/$x
        texanswer$n=\frac{$c $y}{ $a $y $x} = \frac{$a \cdot $b \cdot $y}{$a \cdot $x \cdot $y} = \frac{$b}{$x}
        var1=$c*$y/($a*$y*$x)
    !else
        formula$n=\frac{$c $x $y}{ $a $y} \rightarrow
        answer$n=$b*$x
        texanswer$n=\frac{$c $x $y}{ $a $y} = \frac{$a \cdot $b \cdot $x \cdot $y}{$a \cdot $y} = $b \cdot $x
        var1=$c*$x*$y/($a*$y)
    !endif
    varlist=$x
    wims_rawmath_variables=$varlist
 !exit
!endif

!if $R=3
    a=!randitem 2,3,4,5
    b=!randitem 2,3,4,5
    g=!randitem 3,4,5,6
    h=!randitem 3,4,5
    pm=!randitem 1,-1
    c=$[$pm*$a*$b]
    d=$[$b+1]
    f=$[$a*$d]
    e=$[$g-1]
    b=$[$pm*$b]
    k=$[$h-1]
    formula$n=\frac{$c $y $x^{$g}}{$f $x $y^{$h}} \rightarrow
    answer$n=($b*$x^$e)/($d*$y^$k)
    texanswer$n=\frac{$c $y $x^{$g}}{$f $x $y^{$h}} =  \frac{ $a \cdot $b \cdot $y \cdot $x \cdot $x^{$e} }{$a \cdot $d \cdot $x \cdot $y \cdot $y^{$k}} = \frac{ $b \cdot $x^$e }{ $d \cdot $y^{$k} }
    var1=($c*$y*$x^$g)/($f*$x*$y^$h)
    varlist=$x , $y
    wims_rawmath_variables=$varlist
 !exit
!endif

!if $R>3
    a=!randitem 2,3,4,5
    b=!randitem 2,3,4,5
    e=!randitem 2,3,4
    g=!randitem 6,7,8,9
    pm=!randitem 1,-1

    c=$[$pm*$a*$b]
    d=$[$b+1]
    f=$[$a*$d]
    h=$[$g-$e]
    b=$[$pm*$b]
    k=!randitem 2,3,4
    m=$[$k-1]
    formula$n=\frac{$c $x^{$e} $y^{$k}}{ $f $x^{$g} $y} \rightarrow
    !if $k=2
        answer$n=($b*$y)/($d*$x^$h)
        texanswer$n=\frac{$c $x^{$e} $y^{$k}}{ $f $x^{$g} $y} =\frac{ $a \cdot $b \cdot $x^{$e} \cdot $y \cdot $y}{$a \cdot $d \cdot $x^{$e} \cdot $x^{$h} \cdot $y} = \frac{$b \cdot $y}{$d \cdot $x^{$h}}
    !else
        answer$n=($b*$y^$m)/($d*$x^$h)
        texanswer$n=\frac{$c $x^{$e} $y^{$k}}{ $f $x^{$g} $y} =\frac{ $a \cdot $b \cdot $x^{$e} \cdot $y \cdot $y^{$m}}{$a \cdot $d \cdot $x^{$e} \cdot $x^{$h} \cdot $y} = \frac{$b \cdot $y^{$m}}{$d \cdot $x^{$h}}
    !endif
    var1=($c*$x^$e*$y^$k)/($f*$x^$g*$y)
    varlist=$x , $y
    wims_rawmath_variables=$varlist
 !exit
!endif
