Subversion Repositories wimsdev

Rev

Rev 8514 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6509 bpr 1
\title{Tangente 2}
2
\range{-5,5}
184 bpr 3
 
6509 bpr 4
\real{a = random(-1,1)*randint(1..30)/10}
5
\real{b = randint(-20..20)/10}
6
\real{c = randint(-20..20)/10}
7
\function{f = \a*x^2 + simplify(\b*x) + \c}
8
\real{x0 = randint(-40..40)/10}
9
\rational{y0 = evalue(\f, x = \x0)}
10
\function{df = diff(\f, x)}
11
\rational{df0 = evalue(\df, x = \x0)}
12
\function{D = \df0*x-simplify(\df0*\x0 - \y0)}
184 bpr 13
 
6509 bpr 14
\integer{xmin = min(-3,\x0-2)}
15
\integer{xmax = max(3,\x0+2)}
8514 bpr 16
\text{A = slib(function/bounds \f, x, \xmin, \xmax)}
6509 bpr 17
\integer{ymin = min(-3,\A[1]-2)}
18
\integer{ymax = max(3,\A[2]+2)}
19
\text{rangex = \xmin,\xmax}
20
\text{rangey = \ymin,\ymax}
21
\text{dessin = rangex \rangex
22
  rangey \rangey
23
  arrow \xmin,0,\xmax,0,10, black
24
  arrow 0,\ymin,0,\ymax,10, black
25
  plot navy,\f
26
  circle \x0,\y0,5, red
27
  text black,0,0,roman,0
184 bpr 28
}
6509 bpr 29
\text{url = draw(200,200
30
  \dessin)}
31
\text{dessinc = \dessin
32
 plot green,\D
184 bpr 33
}
6509 bpr 34
\text{urlc = draw(200,200
35
  \dessinc)}
36
 
8514 bpr 37
\statement{Donner l'équation de la tangente à la courbe
6509 bpr 38
  d'équation  \(y = \f\) au point  d'abscisse \x0.
17280 bpr 39
  <div class="wimscenter"><img src="\url" alt=""></div>
184 bpr 40
}
6509 bpr 41
\answer{y=}{\D,x}{type = function}
42
\text{dessinc = \dessin
43
 plot green,\D
44
}
8514 bpr 45
\solution{La droite tangente au point d'abscisse \x0 est dessinée en vert :
17280 bpr 46
    <p class="wimscenter"><img src="\urlc" alt=""></p> }