!set titb=Le fichier
!set keyw=
!set datm=20040610
!set prev=
!set next=
!set upbl=affine
!set dat1=19000101
!set dat2=24000101


!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
!exit

:content

!read primitives.phtml 1, embed, definition, &nbsp; 
<pre class="fichier">
<div class="variable">
$m_title$m_lbrac Equation de droite affine $m_rbrac
$m_language$m_lbrac fr $m_rbrac
$m_author$m_lbrac Bernadette Perrin-Riou $m_rbrac
$m_email$m_lbrac bpr@math.u-psud.fr $m_rbrac
$m_computeanswer$m_lbrac no $m_rbrac
$m_format$m_lbrac html $m_rbrac
$m_precision$m_lbrac 10000 $m_rbrac
$m_range$m_lbrac -5<tt class="w">..</tt>5 $m_rbrac
$m_integer$m_lbrac a  =  $m_randint( -4<tt class="w">..</tt>4 ) $m_rbrac
$m_integer$m_lbrac b  =  $m_randint( -4<tt class="w">..</tt>4 ) $m_rbrac
$m_integer$m_lbrac a  = \a = 0 <tt class="op">and</tt> \b = 0? $m_randint(1<tt class="w">..</tt>4)*$m_random(1,-1) $m_rbrac
$m_function$m_lbrac eq = $m_simplify(\a*x + (\b)) $m_rbrac </div>
<div class="statement">
$m_statement$m_lbrac Donner l'équation de la droite tracée &#58;
 &lt;center>   
    <tt class=comm>\draw</tt>$m_lbrac 200,200 $m_rbrac$m_lbrac 
     <tt class="des">xrange</tt> -5.2, 5.2
     <tt class="des">yrange</tt> -5.2, 5.2
     <tt class="des">hline</tt> 0,0, black
     <tt class="des">vline</tt> 0,0, black
     <tt class="des">parallel</tt> -5,-5,5,-5,0,1,10, grey
     <tt class="des">parallel</tt> -5,-5,-5,5,1,0,10, grey
     <tt class="des">arrow</tt> 0,0,1,0,10, black
     <tt class="des">arrow</tt> 0,0,0,1,10, black
     <tt class="des">plot</tt> blue, \eq $m_rbrac 
 &lt;/center> 
 &lt;center>&#92;(y = ) <tt class=comm>\embed</tt>$m_lbrac <tt class="reply">reply 1</tt>, 15 $m_rbrac &lt;/center> $m_rbrac </div>
<div class="variable">
$m_answer$m_lbrac &#92;((y = ) $m_rbrac$m_lbrac \eq $m_rbrac$m_lbrac <tt class="type">type = function</tt> $m_rbrac
$m_text$m_lbrac test=$m_simplify(<tt class="reply">\reply1</tt>-(\eq)) $m_rbrac
$m_text$m_lbrac dessin = <tt class="des">xrange</tt> -5.2, 5.2
     <tt class="des">yrange</tt> -5.2, 5.2
     <tt class="des">hline</tt> 0,0, black
     <tt class="des">vline</tt> 0,0, black
     <tt class="des">parallel</tt> -5,-5,5,-5,0,1,10, grey
     <tt class="des">parallel</tt> -5,-5,-5,5,1,0,10, grey
     <tt class="des">arrow</tt> 0,0,1,0,8, black
     <tt class="des">arrow</tt> 0,0,0,1,8, black
     <tt class="des">plot</tt> red, <tt class="reply">\reply1</tt>
     <tt class="des">plot</tt> blue,\eq $m_rbrac </div>
<div class="statement">      
$m_feedback$m_lbrac \test&lt;>0 $m_rbrac$m_lbrac Voici en rouge la droite dont vous avez donné l'équation
     &lt;center><tt class=comm>\draw</tt>$m_lbrac 200,200 $m_rbrac$m_lbrac \dessin $m_rbrac &lt;/center> $m_rbrac </div>
</pre>

