Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. syms n x pi
  2. a0 = int(x^3 + 3, 0, 1)
  3. an = int((x^3 + 3) * cos(n * pi * x), 0, 1)
  4. f = sym(((1 / n^2) * ((-1)^n - 2 * (-1)^n / (pi^2 * n^2) + 2 / (pi^2 * n^2)) * cos(pi * n * x)) * cos(n * pi * x))
  5. z5 = symsum(f, 'n', 1, 5) * (6 / (pi^2)) + 13/4
  6. z10 = symsum(f, 'n', 1, 10) * (6 / (pi^2)) + 13/4
  7. ezplot(z5, -10, 10)
  8. hold on
  9. ezplot(z10, -10, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement