Applications of Math in Computer Science

March 1, 2021

Usage of Math in Computer Science

Photo by Michael Dziedzic on Unsplash


When most think about computer science, they think about learning how to code. However, they may not think about calculus, time complexities, and other uses of math in computer science. Though the fields of math and computer science may seem to be very different, they are in fact interrelated in numerous ways. 

Fundamentally, computers themselves work thanks to math. The base of computer science lies in computer number systems, a mathematics topic. When a programmer runs code, his or her computer is in fact running a binary file containing only the numbers 1 and 0. Being able to read and perform mathematical expressions using basic arithmetic in binary is essential  for a computer to function. Standard arithmetic operations such as addition, subtraction, multiplication, and division in binary are used in numerous functions of computer programming. Statistics also plays a role in computer science. The main role of statistics is to use models and representations for a given set of experimental data. Some common statistical measures include mean and skewness, which are used to classify a distribution. Some common applications of statistics in computer science are data mining, speech recognition, image analysis, traffic modeling, and artificial intelligence.

Finally, one of the most widely used topics in math, calculus, is very valuable to computer science. Calculus techniques are used to find the rate of change at a specific moment in time and find the area under a curve. These ideas are used in many fields of computer science, including creating graphs, visuals, and simulations; problem solving; and the design and analysis of algorithms. 

Overall, it is clear that math’s use in computer science is very valuable, and is vital to programs being able to give the desired output. As we grow into a very technological world, it’s important to remember that computer science is developed from other fields, including mathematics. From its use in modeling and graphing to creating the most efficient algorithms, these two fields are very interdependent. So the next time you open your computer to code, make sure to remember to thank math for making it possible!

Latest Articles

All Articles

A Mini Guide to Competitive Programming

Entering the world of competitive programming can be an exciting moment. The possibility of being awarded for a skill you have honed in on for years is incredibly intriguing, but at the same time, it is the beginning of your competitive programming career, and as always, there are a couple of novice mistakes to be made.

Productivity

The Wrong Approach to a Programming Project

The most difficult part of a good programming project is coming up with a good idea in the first place. Why? Because millions of people know how to code and some of them are very good at it, and there are countless ways to efficiently learn how to code but any tips for coming up with ideas are inevitably vague.

Coding

The History of Java and its Applications Today

Computer Science originated with the birth of the first electronic computer in the 1940’s. Prominent coding languages like Java did not exist at the time, requiring programmers to code in Binary or other complex languages such as UNIVAC Short Code.

Java