n=$teller
nivo_title=Vergelijkingen, Functies & Tabellen <br>en vul in die tabel !! 	
bewerking=bewerking1.proc
hint=hier staat een hint
woordmax=10
punten=!randitem 3,4,5,6
X1=!randint -10,10
bereik=!randint 10,20
X2=$[$X1+$bereik]
punten=$[$punten+1]    
!if $graad=0
    R=$teller
!else
    R=$graad
!endif    
!if $R=1
    a=!randitem 2,3,4,5,-2,-3,-4,-5
    b=!randitem 1,2,3,4,5
    pm=!randitem +,-
    functie$n=$a*x $pm $b
    opgave$n= y=$a\cdot x $pm $b
    !goto PLAATJE
!endif
!if $R=2
    a1=!randitem 2,3,4,5,6,7
    a2= !randitem 10,12,14,16,18,20,22
    b=!randitem 1,2,3,4,5
    pm=!randitem +,-
    tussen=!exec pari A=($a1/$a2)*x $pm $b\
    printtex(A)
    functie$n=!line 1 of $tussen
    opgave$n=!line 2 of $tussen
    opgave$n=y\,\,=\,\, $(opgave$n)
    !goto PLAATJE
!endif
!if $R=3
    a1=!randint 2,10
    a2=!randint 6,20
    b=!randitem 1,2,3,4,5
    pm=!randitem +,-
    mp=!randitem -1,1
    m=$mp*$a1/$a2
    tussen=!exec pari A=($m)*x $pm $b\
    printtex(A)
    functie$n=!line 1 of $tussen
    opgave$n=!line 2 of $tussen
    opgave$n=y\,\,=\,\, $(opgave$n)
    !goto PLAATJE
!endif
!if $R>3
    keuze=!randitem 1,2,3
    !if $keuze=1
	pm=!randitem +,-
	a1=!randitem 1,2,3,4,5,6,7,8
	a2=!randitem 1,2,3,4,5,6,7,8,10,11,12,14,15
	tussen=!exec pari A=($a1/$a2)*x^2\
	printtex(A) 
	functie$n=!line 1 of $tussen
	functie$n=!replace internal ^ by ** in $(functie$n)
	opgave$n=!line 2 of $tussen
	opgave$n= y\,\,=\,\,$(opgave$n)
    !else
	!if $keuze=2
	    a=!randitem 1,2,3,4
	    b=!randitem 2,3,4,5,6,7,8,9,10
	    pm=!randitem +,-
    	    functie$n=$a*x**2 $pm $b
	    opgave$n= y=$a\cdot x^{2} $pm $b
	!else	
	    a=!randitem 1,2,3,4,5
	    b=!randitem 2,3,4,5
	    pm=!randitem +,-
	    functie$n=(x**2 $pm $a)/$b
	    opgave$n= y=\frac{x^{2}$pm $a}{$b}
	!endif
    !endif
!endif

:PLAATJE
insplot_set=border ; xzeroaxis linetype 3 ; yzeroaxis linetype 3 ; autoscale ; tmargin 1 ; rmargin 1 ; grid ; xlabel "x-as" ; ylabel "y-as" ;xtics ;ytics;mxtics 2 ;mytics 2
plotsettings$n=$insplot_set
plaatje$n=$(functie$n)  notitle 

!exit