\embed{definition}{ }

    \title\lbrac Equation de droite affine \rbrac
    \language\lbrac fr \rbrac
    \author\lbrac Bernadette Perrin-Riou \rbrac
    \email\lbrac bpr@math.u-psud.fr \rbrac
    \computeanswer\lbrac no \rbrac
    \format\lbrac html \rbrac
    \precision\lbrac 10000 \rbrac
    \range\lbrac -5..5 \rbrac
    \integer\lbrac a  =  \randint( -4..4 ) \rbrac
    \integer\lbrac b  =  \randint( -4..4 ) \rbrac
    \integer\lbrac a  = \\a = 0 and \\b = 0? \randint(1..4)*\random(1,-1) \rbrac
    \function\lbrac eq = \simplify(\\a*x + (\\b)) \rbrac

    \statement\lbrac Donner l'équation de la droite tracée :
     <center>
        \\draw\lbrac 200,200 \rbrac\lbrac
         xrange -5.2, 5.2
         yrange -5.2, 5.2
         hline 0,0, black
         vline 0,0, black
         parallel -5,-5,5,-5,0,1,10, grey
         parallel -5,-5,-5,5,1,0,10, grey
         arrow 0,0,1,0,10, black
         arrow 0,0,0,1,10, black
         plot blue, \\eq \rbrac
     </center>
     <center>\(y = ) \\embed\lbrac reply 1, 15 \rbrac </center> \rbrac

    \answer\lbrac \((y = ) \rbrac\lbrac \\eq \rbrac\lbrac type = function \rbrac
    \text\lbrac test=\simplify(\\reply1-(\\eq)) \rbrac
    \text\lbrac dessin = xrange -5.2, 5.2
         yrange -5.2, 5.2
         hline 0,0, black
         vline 0,0, black
         parallel -5,-5,5,-5,0,1,10, grey
         parallel -5,-5,-5,5,1,0,10, grey
         arrow 0,0,1,0,8, black
         arrow 0,0,0,1,8, black
         plot red, \\reply1
         plot blue,\\eq \rbrac

    \feedback\lbrac \\test<>0 \rbrac\lbrac Voici en rouge la droite dont vous avez donné l'équation
         <center>\\draw\lbrac 200,200 \rbrac\lbrac \\dessin \rbrac </center> \rbrac