n=$teller
bewerking=bewerking1.proc
rc=!randitem de richtingsco&euml;fficient(=hellingsgetal), het hellingsgetal
nivo_title=Vul de tabel in aan de hand van een gegeven vergelijking
#soort is HAVO/VMBO of VWO
!if $graad=0
    R=$teller
!else
    R=$graad
!endif        
!if $printbaar=0
    white=white
!else
    white=magenta
!endif  
######
rc=!randitem slope,inclination
nivo_title=Fill in the table with the given formula<br>and describe the inclination
#soort is HAVO/VMBO of VWO
!if $R=1
    letter1=!randitem u,v,w,a,b,c
    letter2=!randitem r,s,t,d,f,g
    q=!randint 1,20
    m=!randint 2,10
    mp=!randitem -1,1
    m=$[$m*$mp]
    pm=!randitem +,-
    lijn=$m*x $pm $q
    X=!randint -10,10
    D=!randitem 1,2
    !for p=1 to $aantal_vragen
	ant=$[$m*$X $pm $q]
	goed$n=!append item $ant to $(goed$n)
	TD=!append line <td><font size="+1">$X</font></td><td><input size=15 name="ant$p" value=""></td><tr> to $TD
        TDD=!append line <td><font size="+1">$X</font></td><td><input size=4 name="ant$p" value="$ant"></td><tr> to $TDD
	X=$[$X + $D]
    !next
    
    !if $m >0
	stijgend=increasing
    !else
	stijgend=decreasing
    !endif

	GOED$n=$m
	!if $PLAATJE=1
	    XSIZE=300
	    YSIZE=400
	    knipperen=0
	    plaatje$n=$XSIZE,$YSIZE\
	    transparent $white\
	    xrange -20,20\
	    yrange -40,40\
	    linewidth 3\
	    vline 0,0,blue\
	    hline 0,0,blue\
	    linewidth 2\
	    curve red,$lijn\
	    rect -20,-40,20,40,black
	!endif
    somtekst$n=<p align="center">Given is the line <b><em>$letter2 = <font size=-1>$m</font>$letter1 $pm $q</em></b> <br>\
    Fill in the table ,according to this formula...</p><div align="center">\
    <table border=1 cellpadding="10"><th><em>$letter1 -value</em></th><th><em>$letter2 -value</em></th><tr>$TD</table>\
    <p>And what do you thinkm is dit a increasing or decreasing line.

    antwoord$n=It's a $stijgend line<br>\
    <table border=1 cellpadding="10"><th<em>$letter1 -value</em></th><th><em>$letter2 -value</em></th><tr>$TDD</table> 

!endif
!if $R>1 
    nivo_title=Fill in the table according to the java applet	
    m=!randitem 2,3,1,1/2,1/4,1/3,1/5,-2,-3,-1,-1/2,-1/4,-1/3,-1/5
    letter1=x
    letter2=y
    wims_rawmath_variables=$letter1
    GOED$n=$m
    !if $m >0
	stijgend=increasing
    !else
	stijgend=decreasing
    !endif
    Xmin=!randitem -5,-4,-3,-2,-1,0
    Xmax=$[$Xmin + $aantal_vragen]
    Ymin=abs($[$m*$Xmin])
    Ymax=abs($[$m*$Xmax])
    !if $Ymax > $Ymin
        Ymin=$[-1*$Ymax]
    !else
	Ymax=$Ymin
	Ymin=$[-1*$Ymin]
    !endif    
    !for q=$[$Xmin] to $[$Xmax]
	getallen=!append item $q to $getallen
    !next q	
    !for p=1 to $aantal_vragen
	getal=!item $p of $getallen
	ant=$[$m*$getal] 
	goed$n=!append item $ant to $(goed$n)
    	TD=!append line <td><font size="+1">$getal</font></td><td><input size=15 name="ant$p" value=""></td><tr> to $TD
	TDD=!append line <td><font size="+1">$getal</font></td><td><input size=5 name="ant$p" value="$ant"></td><tr> to $TDD
    !next p

    somtekst$n=<p align="center">Take a good look at the apples, and fill in the table\
    <br><small>assume nice and round numbers...</small></p>\
    <p align="left"><font size=-2>Attention:<br>you can also "zoom in" by changing the<br>\
    <em>xmin & xmax</em> and <em>ymin &  ymax</em>...<br>\
    followed by klicking <table bgcolor=lightgrey><th>Set Limits</th></table><br>\
    With the slider you can move the cross along the line.<br>\
    It's als possible to just fill in a <em>x</em>-value...</font></p>\
    <div align="center"><table border=1 cellpadding="10"><th><em>$letter1 -value</em></th><th><em>$letter2 -value</em></th><tr>$TD</table>\
    <br>And what do you think, is this line increasing or decreasing.

    antwoord$n=The equation of the line in the applet is:<br> <b>$letter2 = <font size=-1>$m</font>$letter1</b><br>\
    the $rc =$(GOED$n) and so its a $stijgend line.\
    <table border=1 cellpadding="10"><th<em>$letter1 -value</em></th><th><em>$letter2 -value</em></th><tr>$TDD</table>

	PLAATJE=0
	APPLET=1
	BGCOLOR2=176 160 240
    	applet$n=<applet  codebase="$appletdir" archive="jcm1.0-config.jar" code="SimpleGraph.class" width="400" height="400">\
    		<param name="BackgroundColor" value="$BGCOLOR2">\
    		<param name="Limits" value="-10,10,-10,10">\
    		<param name="PanelBackground" value="$BGCOLOR2">\
    		<param name="CanvasColor" value="255, 255, 200">\
    		<param name="UseMouseZoom" value="no">\
    		<param name="UsePanner" value = "yes">\
    		<param name="UseRestoreButton" value="yes">\
    		<param name="UseFunctionInput" value="no">\
    		<param name-"ShowPoint" value="yes">\
		<param name="OptionalStars" value="yes">\
    		<param name="GraphColor" value="180 0 0">\
    		<param name="UseGrid" value="yes">\
    		<param name="LineColor" value="black">\
    		<param name="Function" value="$m*x">\
		</applet>
!endif
    hint=no hints
