Real analytic and algebraic geometry