Can a Computer learn maths?

Purvanshi Mehta
2 min readDec 28, 2017

--

I always wondered what all a neural network can do. Wanted to know the limit. From entertainment to network security they can be used in pretty much everything and everywhere.

But can they be used to make a computer learn mathematics?

YES!! Challenge me said the Neural Network!!

I worked on a system which solves arithmetic problems.

Examples —

There are 10 short trees in the park. There are 44 tall trees currently in the park. Park workers will plant 5 short trees today. How many short trees will the park have when the workers are finished?

There were 28 bales of hay in the barn. Tim stacked some bales in the barn today. There are now 54 bales of hay in the barn. How many bales did he store in the barn?

These are the steps -

Flowchart

Finding relevant quantities

Finding what numerical quantities given are relevant to the question which is asked. For example 44 tall trees becomes irrelevant as the question is asked about the short trees.

Operator Prediction

We predicted what operator(Plus, Minus, Multiplication or Division) should be applied between our relevant numbers.

The model looks like this -

Architechture

Generating the Equation

Finally we generated the Equation and found the answer by solving it.

For more technical details you can go through http://www.aclweb.org/anthology/I17-3017

Code is available on — https://github.com/purvanshi/operation-prediction

--

--