plaatje=0
!set n=$teller
bewerking=nivo/bewerking1.proc
somtekst$n=!record 3 of lang/remarks.$taal
nivo_title=!record 12 of lang/remarks.$taal

F=f\left(x\right)\,\,=\,\,

R=$graad
!if $graad=0
    R=$teller
!endif    
	
a=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
b=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
c=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
d=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
e=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
!if $b=$d
    b=$[$b+1]
!endif	

pm=!randitem +,-
mp=!randitem +,-
	
!if $R = 1  
    functie=$a*x^$b $pm $e
    opgave$n=$F $a\cdot x^{$b} $pm $e
!endif
!if $R = 2 	
    functie=$a*x^$b $pm $c*x $mp $e
    opgave$n=$F $a\cdot x^{$b} $pm $c\cdot x $mp $e
!endif
!if $R = 3 
    functie=$a*x^$b $pm $c*x^$d 
    opgave$n=$F $a\cdot x^{$b} $pm $c\cdot x^{$d}
!endif
!if $R > 3 
    functie=$a*x^$b $pm $c*x^$d $mp $e
    opgave$n=$F $a\cdot x^{$b} $pm $c\cdot x^{$d} $mp $e
!endif

sommen=!exec pari deriv($functie ,x)\
printtex(deriv($functie,x))
GOED$n=!line 1 of $sommen
goed$n=!line 2 of $sommen
