Advertisement
jovanovski

Калкулус Лаб.Веж. 2 - Доказ

Mar 15th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. \!\(f[x_] = \(-1\)/x\[IndentingNewLine]
  2. \(a = 1;\)\[IndentingNewLine]
  3. \(b = 10;\)\[IndentingNewLine]
  4. \(n1 = 100;\)\[IndentingNewLine]
  5. \(dx1 = \((b - a)\)/n1;\)\[IndentingNewLine]
  6. \(xzve1 = a + \((k - 1)\)*dx1;\)\[IndentingNewLine]
  7. \(g1[x_] = dx1*f[xzve1];\)\[IndentingNewLine]\[IndentingNewLine]
  8. ∑\+\(k = 1\)\%n1 g1[x] // N\[IndentingNewLine]
  9. \(r = Plot[f[x], {x, 1, 10}];\)\[IndentingNewLine]
  10. \(j1 = Graphics[
  11. Table[Rectangle[{\((x - 1)\), f[dx1*x]}, {\((\((x)\))\), 0}], {x,
  12. 1, n1, 10/n1}]];\)\[IndentingNewLine]
  13. Show[r, j1]\)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement