Math problem solver

The math problem solver is a small program that receives as input the track of a problem and solve it using math mathematical formulas stored in the list in PHP.

It consists of four modules.

The first two modules are composed of checker and analyzer . These modules analyze the sentences in English and translated into Italian.

The Italian translation is passed to the parser of the Italian language .

This module analyzes the phrases and words written in the track of the problem; any numeric data is stored with the unit of measurement; considered as a unit of the first word is the number; problems of geometry meters is chosen.

Example

One side of a rectangle is 60 cm long and a second side of the rectangle is 0.35 m long. Calculate the perimeter and area of the rectangle.

The phrase:One side of a rectangle is 60 cm long and a second side of the rectangle is 0.35 m long

is analyzed from a numerical point of view; number 60 is understood as the number and stores it in a variable on one side of the rectangle; 0.35 the number is stored in a variable to the other side of the rectangle; cm and m are considered unit of measurement.

The phrase: Calculate the perimeter and area of the rectangle is analyzed as a question of the problem, that is, to calculate the perimeter and area.

The Italian program is not just a search engine, but a core of artificial intelligence in mathematics. It combines several mathematical formulas stored in suitable algorithms; whether the data are sufficient resolve the question; if you are missing some data can be obtained with the other algorithms; these data necessary program to solve the problem is also based.

Fixed issue in Italian is translated into Spanish. There may be errors in the two translations; we can deduce that the Italian problem solver is more accurate.

Conduct of the problem

I run the equivalence:
0.35 m = 35 cm

Data
Poligon: rectangle ABCD
basis b = 60 cm
heigth h = 35 cm

Solution

We require the perimeter of a rectangle ABCD whose sides are:
AB = 60 cm
BC = 35 cm
Apply the formula:
p = AB + BC + CD + DA
and get:
p = 60 cm + 35 cm + 60 cm + 35 cm = 190 cm

The perimeter of rectangle ABCD is 190 cm.

Data
Poligon: rectangle ABCD
basis b = 60 cm
heigth h = 35 cm

Solution

It requires the area of rectangle ABCD whose sides are:
AB = 60 cm
BC = 35 cm
Apply the formula:
A = AB x BC
and get:
A = 60 cm x 35 cm = 2100 cm2

The area of rectangle ABCD is 2100 cm2.

Time taken to resolve the problem: 0 seconds

The calculations performed by transforming an equivalence for cm to meters. The design of the geometrical figure is scaled according to the allocated size.

The troubleshooting program can give completely wrong answers.

2014

Nuova pagina 1

Electric School

electricschool - indice