Guest User

Untitled

a guest
Jun 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. f = Sin@a*Cos@b + Sin@a*Sin@b + Sin@a;
  2. poly = Series[f, {a, 0, 1}, {b, 0, 1}] // Normal
  3.  
  4. (* a (2 + b) *)
  5.  
  6. c = CoefficientRules[poly, {a, b}]
  7.  
  8. {{1, 1} -> 1, {1, 0} -> 2}
  9.  
  10. s = Select[c, Total@(#[[1]]) <= 1 &]
  11.  
  12. {{1, 0} -> 2}
  13.  
  14. FromCoefficientRules[s, {a, b}]
  15.  
  16. (* 2 a *)
Add Comment
Please, Sign In to add comment