Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. def f(x):
  2. return 23*x**6/720. - 179*x**5/240. + 985*x**4/144. - 150*x**3/48. + 13433*x**2/180. - 5129*x/60. + 38
  3.  
  4. for i in range(1, 30):
  5. print(i, f(i))
  6.  
  7. '''
  8. 1 30.14583333333333
  9. 2 228.16666666666666
  10. 3 764.9375
  11. 4 1808.333333333333
  12. 5 3529.229166666667
  13. 6 6092.5
  14. 7 9671.020833333334
  15. 8 14482.666666666666
  16. 9 20850.3125
  17. 10 29284.833333333343
  18. 11 40591.10416666667
  19. 12 55996.99999999999
  20. 13 77305.39583333331
  21. 14 107069.16666666669
  22. 15 148789.1875
  23. 16 207135.33333333326
  24. 17 288190.4791666666
  25. 18 399717.50000000006
  26. 19 551449.2708333331
  27. 20 755401.666666667
  28. 21 1026209.5624999998
  29. 22 1381485.8333333335
  30. 23 1842203.3541666665
  31. 24 2433100.0
  32. 25 3183106.645833333
  33. 26 4125798.1666666656
  34. 27 5299867.437500001
  35. 28 6749622.333333333
  36. 29 8525505.729166668
  37. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement