Question: how are math and computer science related?
Answer: So in a way, computer science is actually a branch of mathematics. ... Logic is the mathematical foundation of computers. Other fields such as calculus, set theory and probability theory are fields of mathematics that are implemented in computer programs but are not fundamental to it.