The rational invariants of the tame quivers