Consider the ARMA model
$$X_t = ar_1 X_{t-1} + ... + ar_p X_{t-p}+ma_1 e_{t-1}+...+ma_q e_{t-q}+e_t,$$
where \(e_t\) are the innovations. \(ar_i\), \(i=1, ..., p\), are the AR-coefficients to pass to the
argument ar, \(ma_j\), \(j = 1, ..., q\), are the MA-coefficients
to pass to the argument ma.The function then returns the coefficients
from the corresponding infinite-order MA-representation
$$X_t = c_0 e_t + c_1 e_{t-1}+c_2 e_{t-2} + c_3 e_{t-3} + ...,$$
where \(c_l\), \(l = 0, 1, 2, ...\), are the coefficients. Following this
notation, \(c_0 = 1\) by definition.