# vereenvoudig [ type: 2a*(a+b)/(4a^2(a+b)) ] 
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
helptext=$empty
keuze=!randitem 1,2
var1=1
#schrijf als 1 breuk
question$n=!record 12 of lang/remarks.$taal
#@Vereenvoudig;
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>
teaching=0

# var1= letterlijke vraag in wiskunde
!if $R=1
    a=!randitem 2,3,4,5
    b=!randitem 2,3,4,5
    c=$[$a+1]
    !if $keuze=1
        formula$n=\frac{$a ($x+$y)}{ $c ($x+$y) } \rightarrow
	answer$n=$a/$c
	texanswer$n=\frac{$a ($x+$y)}{ $c($x+$y)} = \frac{$a}{$c}
	var1=$a*($x+$y)/($c*($x+$y))
    !else
        formula$n=\frac{$a $x ($x+$y)}{ $c ($x+$y) } \rightarrow
	answer$n=$a*$x/$c
	texanswer$n=\frac{$a $x ($x+$y)}{ $c($x+$y)} = \frac{$a}{$c}
	var1=$a*$x*($x+$y)/($c*($x+$y))
	varlist=$x
	wims_rawmath_variables=$varlist
    !endif
 !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]
    d=!randitem 2,3,4,5,6,7,8,9
    !if $keuze=1
        formula$n=\frac{$c ($x $pm $y)}{ $a $x ($x $pm $y) } \rightarrow
	answer$n=$b/$x
	texanswer$n=\frac{$c ($x $pm $y)}{ $a $x ($x $pm $y)} = \frac{$c}{$a $x}=\frac{$b}{$x}
	var1=$c*($x $pm $y)/($a*$x*($x $pm $y))
    !else
        formula$n=\frac{$b $x ($x $pm $d)}{ $c $x } \rightarrow
	answer$n=($x $pm $d)/$a
	texanswer$n=\frac{$b $x ($x $pm $d)}{ $c $x} = \frac{$b ($x $pm $d)}{$c}=\frac{$x $pm $d}{$a}
	var1=$b*$x*($x $pm $d)/($c*$x)
    !endif
    varlist=$x
    wims_rawmath_variables=$varlist
 !exit
!endif

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

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