How are formal semantics used in programming?

How is Algebra used in Computer programming?

  • I have been told that algebra is used in computer programming. How is it used. I am really bad at word problems. Can someone explain to me what to expect as I am taking my first computer programming class soon. Thanks.

  • Answer:

    Frankly, it's not. You'll never need to solve for x in a program, unless it's a program dedicated to algebraic problems. On the other hand, the logic and discipline you learn in algebra will be useful in defining algorithms and turning them into running programs. Hope that helps.

Rebekah0... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

in most universities, computer science has been part of the mathematics department for a long time, so those two disciplines are closely related. as an example, geometric algebra is mandatory for computer graphics programming.

sami

In programming you declare and define variables (much like x, y, etc. are used in algebra). That variable can pass on values or accept new values depending upon what you are trying to accomplish. for example: int a; //area int b; //base int h; //height std::cout << "Enter Base"; //printed to screen std::cin >> b; //base data input std::cout << "Enter Height"; //printed to screen std::cin >> h; //height data input a = 0.5 * b * h; //formula where answer is passed onto variable a std::cout << "Area= " << a; //your answer now you can solve for the area of a triangle. I left out some key parts of code, but this gives you a good idea.

Joshua J

There are many areas where in general maths is used for computer programming -- not just algebra.. I am specialized in gaming programming -- so collected some links related to the same. Check the below article for the same. http://markthispage.blogspot.com/2009/06/how-do-you-use-mathematics-for-games.html Hope this helps.

Turning word problems into functions is one of most important parts of recieving a new project. Your ability to do this effectively and quickly will insure you have working, stable and competitive code.

Laz H

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.