SHARE
TWEET

Untitled

a guest Jun 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. syms x y
  2. p = 1 + x + y + x*y
  3. tic
  4. for i=1:10000
  5. coeffs(p);
  6. end
  7. toc
  8. tic
  9. for i=1:10000
  10. q=expand(p*p);
  11. end
  12. toc
  13.      
  14. p := 1 + x + y + x*y
  15. for i from 1 to 10000 do coeff(p);monomials(p); end_for
  16. for i from 1 to 10000 do q:=expand(p*p); end_for
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top