Showing posts with label math expression solver. Show all posts
Showing posts with label math expression solver. Show all posts

Tuesday, July 29, 2014

Math Expression Solver in JavaScript

Mathematics plays an important role in our lives everyday we use math buy a product or pay for services rendered to us. Indeed having this knowledge about mathematics is very significant to survive in this world. The computer that we ca enjoying using today is based of mathematics the word computer derive from the word "compute" or to calculate. I have learned reading in the books and watching documentaries about the history of computers that is main reason why it is being developed is during the wartime in World War II to calculate the trajectory of missiles and bombs for the US military. After the war ended the US government and computer scientist and engineers try to think what is the other usage of computers that the time they make computers for commercial use in banks and business to make business transactions much easier and efficient.

In today's society computer are being used in a wide variety of applications not only in military, business, education but also in many fields. In addition computers finds its place in education to teach the students how to use it for their studies and research works and assignments. In this article I would like to share with you a program that I wrote using JavaScript as my programming language I called this program Math Expression Solver in JavaScript. What is program will do is to ask the user to enter basic mathematical expression let say (10*2) + 3 our program will find its result in this case our program will first evaluation the first expression (10*2) that will gives us the result of 20 because we multiply 10 by 2 and in computers once the expression is being put with parenthesis it will be the first one to be process or evaluated by our compiler and then 20 will be added with 3 which gives us the final result of 23.

This program is very useful among students in their mathematics subjects and other people who wish to understand how to program using JavaScript as their programming language.

If you find my work useful please send me an email at jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

Thank you very much.


Sample Output of Our Program