Results 1 to 17 of 17

Thread: Does Math play a big role in programming?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2006
    Posts
    108

    Does Math play a big role in programming?

    A few years ago in college i was taking computer science. I found out that the math was really complicated subject for me. So i wanted to know if someone is not that good with math can they still be a good programmer? or math revolves around programming and is very important?

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    Toronto, ON
    Posts
    1,093

    Re: Does Math play a big role in programming?

    It depends what you're programming.

    If you're writing an accounting program or a guidance system for a rocket, i'd say that math would be a helpful skill. If you're writing a business application that doesn't use much math, then probably not so much.

    Sometimes you come across situations where knowing mathematical concepts will help you out, but for the vast majority of programming, it would be fairly moot whether you know it or not.

    Now, if you want to delve behind the scenes to more fully understand what the program is doing and why, then mathematical concepts are useful, but they're not at all necessary to being a good programmer.

  3. #3
    Addicted Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    169

    Re: Does Math play a big role in programming?

    Some of the more advanced math I learned in college I find is not really useful at all in writing code unless you get into game programming - then it is good to have a thorough understanding of Geometry and Calculus. However, most of the stuff that I write for companies is just boring reporting stuff and there it is more useful to understand how to use SQL to write complex queries. The most advanced math I ever needed was in writing a GPS tracking system that had to calculate distance on a curved surface (ie. the earth).

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: Does Math play a big role in programming?

    For work: I'm lucky if I get to use simple addition.
    For hobby: Algebra and geometry all the time.

    Basically, don't worry too much about it.
    My usual boring signature: Nothing

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2006
    Posts
    108

    Re: Does Math play a big role in programming?

    Thank for the feedback.

    I was thinking that math helps you solve problems better while programming. I didnt mean it like using actual math in the programs.

    does logic play a big role? I have basic knowledge of VB6. im interested in fully learning vb.net but someone advised me i should learn c or c++ to learn the logic first. He also advised i take some courses in c or c++. Did you guys learn all on your own?

    Thanks

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: Does Math play a big role in programming?

    I have never taken a course in computers or programming, but that's just because I'm old enough to have missed them.

    I doubt math helps all that much with logic, but logic helps plenty with programming.

    As for C/C++, I think that learning C++ gives a good overview of all the concepts, but whether or not it is essential is a different matter. You will learn OO concepts in VB, and the added stuff you would learn in C++ isn't going to make that much of a difference. It pretty much depends on what you want to work in.
    My usual boring signature: Nothing

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Does Math play a big role in programming?

    This question has been asked a few times before. Here is another thread on this topic from just last December.

  8. #8
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Does Math play a big role in programming?

    If you do games programming then the maths can get quite hard, i have been learning some 3D development recently with XNA and there is some maths i need to do. I guess the MathHelper helps out a little

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Does Math play a big role in programming?

    When it comes down to the basics, I think these (in order) are some of the skills a developer needs:

    1) Logic - more than anything else, programming is about logic.
    2) Creativity - despite being a science, programming does have a certain amount of creativity to it
    3) Math - programming involves some amount of math, for the most part & for most people, it's pretty basic and simple stuff. The complexity in the math is usually a derivative of the logic that was applied. Take our system, we generate invoices. Actually our system allows our clients to create invoices for their customers. At any rate, there is a pricing module, boiled down, it's a simple a * b function. but the logic around what a and b are makes most peoples heads explode --now if you get into gaming, then this moves up to #2
    4) Adaptability - it's important to be able to adapt to the situation. thinking outside the box. Sometimes it means you have to climb back in the box too.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Sep 2006
    Posts
    108

    Re: Does Math play a big role in programming?

    Quote Originally Posted by techgnome
    When it comes down to the basics, I think these (in order) are some of the skills a developer needs:

    1) Logic - more than anything else, programming is about logic.
    2) Creativity - despite being a science, programming does have a certain amount of creativity to it
    3) Math - programming involves some amount of math, for the most part & for most people, it's pretty basic and simple stuff. The complexity in the math is usually a derivative of the logic that was applied. Take our system, we generate invoices. Actually our system allows our clients to create invoices for their customers. At any rate, there is a pricing module, boiled down, it's a simple a * b function. but the logic around what a and b are makes most peoples heads explode --now if you get into gaming, then this moves up to #2
    4) Adaptability - it's important to be able to adapt to the situation. thinking outside the box. Sometimes it means you have to climb back in the box too.

    -tg
    Very good post. Thanks for the useful information.
    And thanks to everyone else too.

    This forum board is the best one on the NET!!!

  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Does Math play a big role in programming?

    Set theory helps a lot with databases.

    Logic is the basis of programming. I wouldn't say that maths helps with logic, but logic definitely helps with maths. And lots of mathematical laws can be reached with simple logic.
    The ability to do critical, analytic thinking is far more important.


    So, yes: what the others said.

  12. #12
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Does Math play a big role in programming?

    I'd add these to techgnomes list

    tedium
    minutiae



    There are not many programs without some math("Hello World"). And as has been discussed here, some a lot more than others.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  13. #13
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Does Math play a big role in programming?

    The hardest math based sort of stuff i have come across so far has been nested loops also involving some rescaling of an image. Otherwise it really won't get harder than that unless it is some sort of stock market, taxation or something along those lines sort of application

  14. #14
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Does Math play a big role in programming?

    Adaptability

    I was a brakeman on the railroad and I learned some valuable lessons about adaptability and logic. Here is my favorite problem, see if you can figure it out. Place CAR b at X. In my day the solution was not legal according to the railroad, but it didn't stop them from telling you to deliver the car.


    A ==RED--CAR c -- CAR b -- CAR a -- ENGINE === Direction of Travel-->> B
    *************************************+
    **************************************\
    ***************************************\
    ****************************************\=========X==C


    See http://en.wikipedia.org/wiki/Railroad_switch The A B C line up in the crude drawing and link.

    Three people involved. Engineer must remain at controls at all times. Two brakemen that can be used and positioned where you want.

    = track
    + switch
    * rocks - for spacing purposes here, not part of problem or solution
    \ siding track
    RED rear end device - in my day it was a caboose

    edit - your solution doesn't have to be 100% technically correct i.e. brakes. it is unlikely that you know how they work, even if you think you do.

    There is a name for the procedure.
    Last edited by dbasnett; Mar 13th, 2008 at 09:53 AM.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  15. #15
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Does Math play a big role in programming?

    hehehe.... the term is "humping".... engine takes cars A & B & places them on the line where X is.... decouples from b.... engine then routes A to alternate siding. Everyone then pushes car b until it starts to roll , then lets it go and it rolls into spot X... -OR- after car b is spotted, brakes are set, once all cars, engine and personnel are clear, brakes are released and everything rolls down hill. Yeah, RRs don't like it when their cars are humped.... never mind the fact that it's done all the time in the larger yards, where there is a hump at one end and they let gravity do it's job - which is where the term comes from.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  16. #16
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Does Math play a big role in programming?

    This isn't humping, the problem is ONLY what is shown. See the link.

    The direction of travel is from A to B and the engine is in the lead, which is the problem. If the direction of travel was B to A it would be easy.

    Railroads use humping all the time.

    http://www.uprr.com/aboutup/faciliti...ey/index.shtml
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  17. #17
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Does Math play a big role in programming?

    Solution is called a 'dutch drop'.

    One brakeman at switch
    Other brakeman
    disconnects between b & c
    rides on b at the b--a end
    Engine accelerates toward switch with a and b. Before reaching switch brakeman disconnects b.
    Engine speeds up
    When engine and a are clear of switch the other brakeman throws switch
    and b goes down siding. Hand brake is used to stop car b at X.

    I knew some guys that 'dutch dropped' a load of steel at a factory on a Sunday morning. All went well until the chain that operates the hand brake failed. The factory had a nice big hole in their massive garage like doors, both sets. Mass and momentum
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width