Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. In [1]: 2*x/(x**2+y**2)+cos(x)
  2. Out[1]:
  3. 2⋅x
  4. ─────── + cos(x)
  5. 2 2
  6. x + y
  7.  
  8. In [2]: 2*(x**2+y**2+y)/(x**2+y**2)
  9. Out[2]:
  10. 2 2
  11. 2⋅x + 2⋅y + 2⋅y
  12. ─────────────────
  13. 2 2
  14. x + y
  15.  
  16. In [3]: exp(2*t)*cos(t)
  17. Out[3]:
  18. 2⋅t
  19. ℯ ⋅cos(t)
  20.  
  21. In [4]: t*exp(3*t**2)
  22. Out[4]:
  23. 2
  24. 3⋅t
  25. t⋅ℯ
  26.  
  27. In [5]: _1.subs({x:_3,y:_4})*_2.diff(t)
  28. Out[5]: 0
  29.  
  30. In [6]: _1.subs({x:_3,y:_4})*_3.diff(t)
  31. Out[6]:
  32. ⎛ 2⋅t ⎞
  33. ⎛ 2⋅t 2⋅t ⎞ ⎜ ⎛ 2⋅t ⎞ 2⋅ℯ ⋅cos(t) ⎟
  34. ⎝- ℯ ⋅sin(t) + 2⋅ℯ ⋅cos(t)⎠⋅⎜cos⎝ℯ ⋅cos(t)⎠ + ───────────────────────⎟
  35. ⎜ 2 ⎟
  36. ⎜ 2 6⋅t 4⋅t 2 ⎟
  37. ⎝ t ⋅ℯ + ℯ ⋅cos (t)⎠
  38.  
  39. In [7]: _2.subs({x:_3,y:_4})*_4.diff(t)
  40. Out[7]:
  41. ⎛ 2 2⎞ ⎛ 2 2 ⎞
  42. ⎜ 2 3⋅t 3⋅t ⎟ ⎜ 2 6⋅t 3⋅t 4⋅t 2 ⎟
  43. ⎝6⋅t ⋅ℯ + ℯ ⎠⋅⎝2⋅t ⋅ℯ + 2⋅t⋅ℯ + 2⋅ℯ ⋅cos (t)⎠
  44. ──────────────────────────────────────────────────────────────
  45. 2
  46. 2 6⋅t 4⋅t 2
  47. t ⋅ℯ + ℯ ⋅cos (t)
  48.  
  49. In [8]: integrate(
  50. KeyboardInterrupt
  51.  
  52. In [8]: simplify(_6+_7)
  53. Out[8]:
  54. ⎛ 2 2⎞ ⎛ 2 2 ⎞
  55. ⎜ 2 3⋅t 3⋅t ⎟ ⎜ 2 6⋅t 3⋅t 4⋅t 2 ⎟ ⎛ 2⋅t
  56. ⎝6⋅t ⋅ℯ + ℯ ⎠⋅⎝2⋅t ⋅ℯ + 2⋅t⋅ℯ + 2⋅ℯ ⋅cos (t)⎠ ⎛ 2⋅t 2⋅t ⎞ ⎜ ⎛ 2⋅t ⎞ 2⋅ℯ ⋅cos(t)
  57. ────────────────────────────────────────────────────────────── + ⎝- ℯ ⋅sin(t) + 2⋅ℯ ⋅cos(t)⎠⋅⎜cos⎝ℯ ⋅cos(t)⎠ + ───────────────────
  58. 2 ⎜ 2
  59. 2 6⋅t 4⋅t 2 ⎜ 2 6⋅t 4⋅t
  60. t ⋅ℯ + ℯ ⋅cos (t) ⎝ t ⋅ℯ + ℯ ⋅cos
  61.  
  62.  
  63. ────⎟
  64. 2 ⎟
  65. (t)⎠
  66.  
  67.  
  68. In [9]: Integral(_8, (t,0,1)).n()
  69. Out[9]: 44.6165874413244
  70.  
  71.  
  72. In [13]: log(cos(1)**2+exp(2))+4+sin(exp(2)*cos(1)) + 2*exp(3)-sin(1)
  73. Out[13]:
  74. ⎛ 2 ⎞ ⎛ 2 2⎞ 3
  75. -sin(1) + sin⎝ℯ ⋅cos(1)⎠ + log⎝cos (1) + ℯ ⎠ + 4 + 2⋅ℯ
  76.  
  77. In [14]: _.n()
  78. Out[14]: 44.6165874413244
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement