The study of the foundations, methods, and implications of science, including its epistemology, logic, and ethics.