We construct the numerical solution for a class of operator differential equations with the coefficients depending on one variable by using the Green function and the corresponding differential analogues in the field of Mikusiński operators $\mathcal F$ (see [1]). Also, we estimate the error of approximation.