Identity Principle for Regular and Rational Functions on Irreducible Affine Varieties