The Mathematical Core of AI — Weights, Temperature, and Why AI Responses Change