import M2
from numpy import frombuffer, float64
with open('Res456.bin', 'rb') as file:
data = file.read()
decoded = frombuffer(data, dtype=float64)
print(f'Оценка мат. ожидания {decoded[-2]}\nОценка медианы {decoded[-1]}')