Код: Выделить всё
#a, b, c are arrays of shape (N, )
a[0] = c[0]
for i in range(1, N):
a[i] = a[i-1]*b[i] + c[i]
Подробнее здесь: https://stackoverflow.com/questions/783 ... with-numpy
Код: Выделить всё
#a, b, c are arrays of shape (N, )
a[0] = c[0]
for i in range(1, N):
a[i] = a[i-1]*b[i] + c[i]