questiontype=0
n=$counter
inputs=1
mathview=0
XSIZE=650
R=$level
!if $level=0
    R=$counter
!endif
insplot_data=$empty
rounding=1000
image=0
wordmax=30
math=0
cols=20
rows=1
applet=1
## checkfile
checkfile=$checkdir/number.proc
varlist=$empty
arglist=$empty
varcnt=0
##
xlabel=t
ylabel=H
exotext=$empty
helptext=$empty
#!record 5 of lang/remarks.$taal
#@ <em>Let op:De grafiek staat op een andere pagina</em>
#helptext=!record 22 of lang/remarks.$taal
#@ Klik hier</a> voor de grafiek <em>(gebruikt een java applet)</em>
!if $R=1
    a=!randitem -3,-2,-1,0,1,2
    x1=!randitem 0,1,4
    x1=$[$x1+$a]
    b=!randitem 8,9,10
    x2=!randitem 9,16,25
    x2=$[$x2+$a]
    c=!randitem -1,-2
    d=!randitem 1,2,3,4
    functie=$d*sqrt(x-($a))
    y1=$[$d*sqrt($x1-$a)]
    y2=$[$d*sqrt($x2-$a)]
    
    tot=!exec pari A=($y2-$y1)/($x2-$x1)\
    printtex(A)
    answer$n=!line 1 of $tot
    texanswer$n=!line 2 of $tot
    texanswer$n=\frac{\Delta $ylabel}{\Delta $xlabel} \,=\, \frac{$y2-$y1}{$x2-$x1}\,=\,$(texanswer$n)
    ss=!record 6 of lang/remarks.$taal
    #@ Bepaal de gemiddelde verandering per tijdseenheid van t=$x1 tot t=$x2<p>
    question$n=$empty
!endif
!if $R=2
    x1=!randitem 0,1,2,3,4
    x2=!randitem 6,7,8,9
    a=!randitem 1,2,3
    b=!randitem 8,9,10
    c=!randitem -1,-2
    functie=$c*(x-$a)*(x-$b)
    y1=$[$c*($x1-$a)*($x1-$b)]
    y2=$[$c*($x2-$a)*($x2-$b)]
    tot=!exec pari A=($y2-$y1)/($x2-$x1)\
    printtex(A)
    answer$n=!line 1 of $tot
    texanswer$n=!line 2 of $tot
    texanswer$n=\frac{\Delta $ylabel}{\Delta $xlabel} \,=\, \frac{$y2-$y1}{$x2-$x1}\,=\,$(texanswer$n)
    ss=!record 6 of lang/remarks.$taal
    #@ Bepaal de gemiddelde verandering per tijdseenheid van t=$x1 tot t=$x2
    question$n=$empty
!endif
!if $R>2
    x1=!randitem 0,1,2,3,4
    x2=!randitem 6,7,8,9
    a=!randitem 1,2,3
    b=!randitem 8,9,10
    c=!randitem -1,-2,1,2
    d=!randitem 7,8,9,10,11,12
    functie=$c*x*(x-$a)*(x-$b)+$d
    y1=$[$c*$x1*($x1-$a)*($x1-$b)+$d]
    y2=$[$c*$x2*($x2-$a)*($x2-$b)+$d]
    tot=!exec pari A=($y2-$y1)/($x2-$x1)\
    printtex(A)
    answer$n=!line 1 of $tot
    texanswer$n=!line 2 of $tot
    texanswer$n=\frac{\Delta $ylabel}{\Delta $xlabel} \,=\, \frac{$y2-$y1}{$x2-$x1}\,=\,$(texanswer$n)
    ss=!record 6 of lang/remarks.$taal
    # Bepaal de gemiddelde verandering per tijdseenheid van t=$x1 tot t=$x2
    question$n=$empty
!endif
question$n=$ss
inputtext1=!record 27 of lang/remarks.$taal
textanswer$n=$ss : $(anser$n)
#<br><input type="submit" style="$mybuttonstyle" value="$send"> 
object$n=<applet codebase="$appletdir" archive="jcm1.0-config.jar" code="SimpleGraph.class" width="640" height="480">\
    <param name="UseFunctionInput" value="no">\
    <param name="CanvasColor" value="255 255 224">\
    <param name="PanelBackground" value="255 255 224">\
    <param name="BackgroundColor" value="255 255 224">\
    <param name="UseGrid" value="yes">\
    <param name="Function" value="$functie">\
    <param name="GraphColor" value="red">\
    <param name="UsePanner" value="yes">\
    <param name="UseZoomButtons" value="yes">\
    <param name="UseMouseZoom" value="yes">\
    <param name="UseLimitsPanel" value="yes">\
    <param name="Limits" value="-20 20 -20 20">\
    <param name="Xlabel" value="$xlabel -axis">\
    <param name="Ylabel" value="$ylabel -axis">\
    $nojava</applet>

