n=$teller
nivo_title=!record 17 of lang/remarks.$taal
somtekst$n=!record 15 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   
e=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
pm=!randitem +,-
mp=!randitem +,-
keuze=!randitem 1,2
s=!randitem -1,1
a=$[$s*$a]

!if $R = 1 
    !if $keuze=1
	sin=!randitem sin,cos,tan
        GOED$n=$a*$sin(x)
        goed$n=$F $a\cdot \$sin \left( x \right) + C
    !else
	sin=!randitem sin,tan
        GOED$n=$a*$sin(x) $pm $b*cos(x)
        goed$n=$F $a\cdot \$sin \left( x \right) $pm $b\cdot \cos \left( x \right) + C
    !endif
!endif 
!if $R = 2
    !if $keuze=1 
        sin=!randitem sin,cos,tan
        GOED$n=$a*$sin(x^$b)
        goed$n=$F $a\cdot\$sin\left( x^{$b} \right) + C
    !else
        sin=!randitem sin,cos,tan
        sin=!randitem tan
        GOED$n=$a*$sin($b*x)
        goed$n=$F $a\cdot\$sin\left( $b x \right) + C
    !endif
!endif
!if $R = 3 
    sin=!randitem sin,cos,tan
    !if $keuze=1
        GOED$n=$a*x^$d*$sin($b*x)
        goed$n=$F $a\cdot x^{$d} \cdot \$sin\left($b  x \right) + C
    !else
        GOED$n=$b^x*$sin(x)
        goed$n=$F $b^{x} \cdot \$sin\left(x \right) + C
    !endif
!endif
!if $R > 3 
    sin=!randitem sin,cos
    !if $keuze=1
        GOED$n=$sin($a*x)/($b*x)
        goed$n=$F \frac {\$sin \left($a x \right)}{$b \cdot x} + C
    !else
        GOED$n=$sin(x)/($b*x)
        goed$n=$F \frac {\$sin \left(x \right)}{$b \cdot x} + C
    !endif
!endif
	
opgave$n=!exec maxima diff($(GOED$n),x);        
opgave$n=!line 1 of $(opgave$n)
opgave$n=!texmath f(x) = $(opgave$n)
!if $sin=tan
    bewerking=nivo/bewerking3.proc
!else
    bewerking=nivo/bewerking2.proc
!endif
