Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Tangent[f_, x_] := Module[{},
  2. Manipulate[
  3. Show[
  4. Plot [f'[p] (x - p) + f[p], {x, p - 1, p + 1},
  5. PlotStyle -> {Thick, Orange},
  6. PlotRange -> {{-10, 10}, {-70, 70}}],
  7. Plot[f[x], {x, -10, 10}, PlotRange -> {{-10, 10}, {-70, 70}},
  8. PlotStyle -> {color}]
  9. ], {p, -10, 10,
  10. 0.2}, {color, {Purple -> "Purple", Blue -> "Blue"}}]
  11. ]
  12.  
  13. f[x_]:=x^2 Sin[x];
  14.  
  15. Tangent[f,x]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement