# optellen en aftrekken [type: 2/xy + 3/x]
questiontype=7
javascript=js/exo1.js
image=0
XSIZE=650
embed=1
mathview=2
cols=20
rows=1
inputs=1
math=1
n=$counter
R=$level
var1=1
#schrijf als 1 breuk
!if $level=0
    R=$counter
!endif    
pm=!randitem +,-
mp=!randitem 1,-1
question$n=!record 8 of lang/remarks.$taal
#@Schrijf als &eacute;&eacute;n breuk:<p align="center">
checkfile=exos/checkfile1.proc
x=!randitem x,a,b,c
y=!randitem y,d,f,m
varlist=$x,$y
exotext=!record 1 of lang/remarks.$taal
sometext=!record 3 of lang/remarks.$taal
exotext=<p><a onmouseover="return escape('$sometext')"> $exotext </a>


!if $R=1
    a=!randitem 1,2,3,4,5,6,7,8,9
    a=$[$mp*$a]
    formula$n=\frac{$a}{$x $y} $pm \frac{1}{$x} \,\, \rightarrow \,\,
    answer$n=($a $pm $y)/($x*$y)
    texanswer$n=\frac{$a}{$x $y} $pm \frac{1}{$x} =  \frac{$a}{$x $y} $pm \frac{$y }{$x $y}=\frac{$a $pm $y}{$x $y}
    var1=$a/($x*$y) $pm 1/$x
 !exit
!endif

!if $R=2
    a=!randitem 1,2,3,4,5,6,7,8,9
    b=!randitem 2,3,4,5
    a=$[$mp*$a]
    formula$n=\frac{$a}{$x $y} $pm \frac{$b}{$x} \,\, \rightarrow \,\,
    answer$n=($a $pm $b*$y)/($x*$y)
    texanswer$n=\frac{$a}{$x $y} $pm \frac{$b}{$x} =  \frac{$a}{$x $y} $pm \frac{$b $y }{$x $y}=\frac{$a $pm $b $y}{$x $y}
    var1=$a/($x*$y) $pm $b/$x
 !exit
!endif

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