daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Feb 24th, 2015 780 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. R=PolynomialRing(QQ,'x')                                
  2. sage: f = R.lagrange_polynomial([(0,1),(1,3),(2,7),(3,8),(4,21),(5,49),(6,76),(7,224),(8,467),(9,514),(10,1155),(11,2683),(12,5216),(13,10544),(14,26867),(15,51510)]); f
  3. -673909/1307674368000*x^15 + 5004253/87178291200*x^14 - 151337/52254720*x^13 + 9320029/106444800*x^12 - 25409989753/14370048000*x^11 + 2192506957/87091200*x^10 - 19011117413/73156608*x^9 + 1200887962891/609638400*x^8 - 3585932821063/326592000*x^7 + 647416874047/14515200*x^6 - 18586394742863/143700480*x^5 + 30899291755337/119750400*x^4 - 274137631043849/825552000*x^3 + 36933161067083/151351200*x^2 - 87781079/1155*x + 1
  4. sage: for i in range(0,17):
  5.     print f(i)
  6. ....:    
  7. 1
  8. 3
  9. 7
  10. 8
  11. 21
  12. 49
  13. 76
  14. 224
  15. 467
  16. 514
  17. 1155
  18. 2683
  19. 5216
  20. 10544
  21. 26867
  22. 51510
  23. -1514935
  24. sage:
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