| 1 |
%%
|
|
|
| 2 |
import matplotlib.pyplot as plt
|
|
|
| 3 |
import matplotlib.animation as animation
|
|
|
| 4 |
fig, ax = plt.subplots()
|
|
|
| 5 |
N = 100
|
|
|
| 6 |
xx = list(range(0, N + 1))
|
|
|
| 7 |
def animate(i):
|
|
|
| 8 |
yy = [((x * i) ** 0.5) % 7 for x in xx]
|
|
|
| 9 |
ax.clear() # Чистим холст. Можно было бы и по частям править, но лень
|
|
|
| 10 |
ax.plot(xx, yy, 'o', label='Что-то')
|
|
|
| 11 |
ax.axvspan(1.25, 11.55, facecolor='g', alpha=0.5) # Зелёная вертикальная линия
|
|
|
| 12 |
ax.set_title('Формала Байеса')
|
|
|
| 13 |
ax.set_xlabel('Номер гипотезы')
|
|
|
| 14 |
ax.set_ylabel('Вероятность гипотезы')
|
|
|
| 15 |
return []
|
|
|
| 16 |
anim = animation.FuncAnimation(fig, animate, list(range(50)), interval=333)
|
|
|
| 17 |
plt.show()
|
|
|
| 22 |
===Новости===
|
12 |
#|
|
| |
|
13 |
*| | | |*
|
| |
|
14 |
*|**Решаем сейчас**|*
|
| |
|
15 |
||((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 Результаты))||
|
| |
|
16 |
||((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 Результаты))||
|
| |
|
17 |
|| ((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 Результаты)) ||
|
| |
|
18 |
||((https://server.179.ru/tasks/python/2022a/pgm38__Polynomials.html 38. Класс Poly многочленов)) | ((http://server.179.ru/cgi-bin/new-client?locale_id=1&contest_id=865 Вход для сдачи [865] ))|((https://server.179.ru/shashkov/stand_b22.php?contest=865&pen=20&marks&ignore=2 Результаты))||
|
| |
|
19 |
|#
|
| |
|
20 |
((https://server.179.ru/shashkov/stand_b22.php?from=690&to=874&stat_date=2019-11-04 Решено с 2019-11-04 в столбце DT+))
|
| |
|
21 |
|
| |
|
22 |
----
|
| 23 |
Друзья, разную информацию про походы, фотографии, листки по матану и прочее мы будем выкладывать на форуме:
|
23 |
Друзья, разную информацию про походы, фотографии, листки по матану и прочее мы будем выкладывать на форуме:
|
| 24 |
http://www.shashkovs.ru/179. Например, ((https://shashkovs.ru/forum179/viewtopic.php?f=38&t=270 вот листки)), ((https://www.shashkovs.ru/forum179/conduit/b22/ вот кондуиты)).
|
24 |
http://www.shashkovs.ru/179. Например, ((https://shashkovs.ru/forum179/viewtopic.php?f=38&t=270 вот листки)), ((https://www.shashkovs.ru/forum179/conduit/b22/ вот кондуиты)).
|
| 25 |
----
|
25 |
----
|
| 118 |
|| ((https://server.179.ru/tasks/python/2022a/pgm36.2__Date_is_hard.html 36.2★. Задачки на даты и времена посложнее)) | ((https://server.179.ru/cgi-bin/new-client?contest_id=861&locale_id=1 Вход для сдачи [861])) | ((https://server.179.ru/shashkov/stand_b22.php?contest=861 Результаты)) ||
|
117 |
|| ((https://server.179.ru/tasks/python/2022a/pgm36.2__Date_is_hard.html 36.2★. Задачки на даты и времена посложнее)) | ((https://server.179.ru/cgi-bin/new-client?contest_id=861&locale_id=1 Вход для сдачи [861])) | ((https://server.179.ru/shashkov/stand_b22.php?contest=861 Результаты)) ||
|
| 119 |
|| ((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 Результаты)) ||
|
118 |
|| ((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 Результаты)) ||
|
| 120 |
|| ((https://server.179.ru/tasks/python/2022a/pgm37.4__Stack,_queue,_deque.html 37.4★. Стеки, очереди и деки)) | ((https://server.179.ru/cgi-bin/new-client?contest_id=864&locale_id=1 Вход для сдачи [864])) | ((https://server.179.ru/shashkov/stand_b22.php?contest=864 Результаты)) ||
|
119 |
|| ((https://server.179.ru/tasks/python/2022a/pgm37.4__Stack,_queue,_deque.html 37.4★. Стеки, очереди и деки)) | ((https://server.179.ru/cgi-bin/new-client?contest_id=864&locale_id=1 Вход для сдачи [864])) | ((https://server.179.ru/shashkov/stand_b22.php?contest=864 Результаты)) ||
|