Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(x):
- 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
- for i in range(1, 30):
- print(i, f(i))
- '''
- 1 30.14583333333333
- 2 228.16666666666666
- 3 764.9375
- 4 1808.333333333333
- 5 3529.229166666667
- 6 6092.5
- 7 9671.020833333334
- 8 14482.666666666666
- 9 20850.3125
- 10 29284.833333333343
- 11 40591.10416666667
- 12 55996.99999999999
- 13 77305.39583333331
- 14 107069.16666666669
- 15 148789.1875
- 16 207135.33333333326
- 17 288190.4791666666
- 18 399717.50000000006
- 19 551449.2708333331
- 20 755401.666666667
- 21 1026209.5624999998
- 22 1381485.8333333335
- 23 1842203.3541666665
- 24 2433100.0
- 25 3183106.645833333
- 26 4125798.1666666656
- 27 5299867.437500001
- 28 6749622.333333333
- 29 8525505.729166668
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement