| 1 |
|
%% import matplotlib.pyplot as plt
|
| 2 |
|
import matplotlib.animation as animation
|
| 3 |
|
fig, ax = plt.subplots()
|
| 4 |
|
N = 100
|
| 5 |
|
xx = list(range(0, N + 1))
|
| 6 |
|
def animate(i):
|
| 7 |
|
yy = [((x * i) ** 0.5) % 7 for x in xx]
|
| 8 |
|
ax.clear() # Чистим холст. Можно было бы и по частям править, но лень
|
| 9 |
|
ax.plot(xx, yy, 'o', label='Что-то')
|
| 10 |
|
ax.legend(loc='Формала Байеса', frameon=False)
|
| 11 |
|
ax.set_xlabel('Номер гипотезы')
|
| 12 |
|
ax.set_ylabel('Вероятность гипотезы')
|
| 13 |
|
return []
|
| 14 |
|
anim = animation.FuncAnimation(fig, animate, list(range(50)), interval=333)
|
| 15 |
|
plt.show()
|
| 16 |
|
%%
|
| 17 |
|
|
| |
1 |
#|
|
| |
2 |
*| | | |*
|
| |
3 |
*|**Решаем сейчас**|*
|
| |
4 |
||((https://server.179.ru/tasks/python/2022a/pgm35__Decimal&Fraction.html 35. Введение в ООП. Классы Fraction, Decimal)) | ((http://server.179.ru/cgi-bin/new-client?locale_id=1&contest_id=859 Вход для сдачи [859]))|((https://server.179.ru/shashkov/stand_b22.php?contest=859&pen=20&marks&ignore=1 Результаты))||
|
| |
5 |
||((https://server.179.ru/tasks/python/2022a/pgm37__Fractions_class.html 37. Реализация Fraction, цепные и периодические дроби)) | ((http://server.179.ru/cgi-bin/new-client?locale_id=1&contest_id=862 Вход для сдачи [862]))|((https://server.179.ru/shashkov/stand_b22.php?contest=862&pen=20&marks&ignore=3 Результаты))||
|
| |
6 |
|| ((https://server.179.ru/tasks/python/2022a/pgm37.2__Complex_numbers.html 37.2★. Класс комплексных чисел)) | ((https://server.179.ru/cgi-bin/new-client?contest_id=863&locale_id=1 Вход для сдачи [863])) | ((https://server.179.ru/shashkov/stand_b22.php?contest=863 Результаты)) ||
|
| |
7 |
|#
|