Rev 14019 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6509 | bpr | 1 | \title{Tangente 3} |
2 | \range{-5,5} |
||
3 | \real{a = random(-1,1)*randint(1..30)/10} |
||
4 | \real{b = randint(-20..20)/10} |
||
5 | \real{c = randint(-20..20)/10} |
||
6 | \function{f = \a*x^2+simplify(\b*x) + \c} |
||
7 | \real{x0 = randint(-40..40)/10} |
||
8 | \real{y0 = evalue(\f, x = \x0)} |
||
9 | \function{df = diff(\f,x)} |
||
10 | \real{df0 = evalue(\df,x = \x0)} |
||
11 | \function{D = \df0*x - simplify(\df0*\x0 - \y0)} |
||
12 | \integer{xmin = min(-3, \x0 - 2)} |
||
13 | \integer{xmax = max(3, \x0 + 2)} |
||
8514 | bpr | 14 | \text{A = slib(function/bounds \f, x,\xmin,\xmax)} |
6509 | bpr | 15 | \integer{ymin = min(-3, \A[1] - 2)} |
16 | \integer{ymax = max(3, \A[2] + 2)} |
||
17 | \text{rangex = \xmin, \xmax} |
||
18 | \text{rangey = \ymin, \ymax} |
||
184 | bpr | 19 | |
6509 | bpr | 20 | \text{dessin = rangex \rangex |
21 | rangey \rangey |
||
22 | arrow \xmin,0,\xmax,0,10, black |
||
23 | arrow 0,\ymin,0,\ymax,10, black |
||
24 | plot navy,\f |
||
25 | circle \x0,\y0,5, red |
||
26 | text black,0,0,roman,0 |
||
27 | } |
||
28 | \text{url = draw(200,200 |
||
29 | \dessin)} |
||
30 | \text{dessinc = \dessin |
||
31 | plot green,\D |
||
32 | } |
||
33 | \text{urlc = draw(200,200 |
||
34 | \dessinc)} |
||
35 | \real{x1 = \x0+1} |
||
36 | \real{y1 = \df0*\x1 - \df0*\x0 + \y0} |
||
37 | \text{P0 = slib(draw/convpixel \x0,\y0,200,200,\rangex,\rangey,0,pixels)} |
||
38 | \text{P1 = slib(draw/convpixel \x1,\y1,200,200,\rangex,\rangey,0,pixels)} |
||
39 | \text{rep = \url;line,\P0[1],\P0[2],\P1[1],\P1[2]} |
||
184 | bpr | 40 | |
8514 | bpr | 41 | \statement{En utilisant la souris, positionner la tangente |
6509 | bpr | 42 | à la courbe d'équation \(y = \f\) au point d'abscisse \x0. |
8514 | bpr | 43 | <div class="wims_instruction"> |
44 | NB : le tracé sera obtenu en définissant deux points |
||
45 | appartenant à cette tangente. |
||
46 | </div> |
||
47 | <div class="wimscenter">\embed{reply1,200x200}</div> |
||
184 | bpr | 48 | } |
14019 | bpr | 49 | \answer{}{\rep}{type=jsxgraphcurve} |
6509 | bpr | 50 | |
51 | \text{dessinc = \dessin |
||
52 | plot green,\D |
||
184 | bpr | 53 | } |
8514 | bpr | 54 | \solution{La droite tangente au point d'abscisse \x0 est dessinée en vert : |
17280 | bpr | 55 | <p class="wimscenter"><img src="\urlc" alt=""></p> |
6509 | bpr | 56 | } |