A coil with active resistance RRR and inductance LLL was connected at the moment t=0t=0t=0 to a source of voltage V=VmcosωtV=V_{m} \cos \omega tV=Vmcosωt. Find the current in the coil as a function of time ttt.