Given a formal power series $f \in k[[X]]$, where $k$ is a or commutative field, is there any good way to tell whether or not $f\in k(X)$?