If a function ,
can we get the conclusion: is a real-analytic function?
No this isn't true. The following example is from 'Loring W. Tu, An Introduction to Manifolds, Springer (2008).'
Consider the function
Then but So the taylor series is in the neighbourhood of the origin, but
The converse is true, however: all analytic functions are on the appropriate domain.