Do you have to be good at math to be good at C/C++?

This is a discussion on Do you have to be good at math to be good at C/C++? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; i want to get good at c++ but i am terrible with math. does this mean i will not become ...

  1. #1
    ima n00b, ok? orion-'s Avatar
    Join Date
    Aug 2005
    Location
    alberta, canada
    Posts
    55

    Do you have to be good at math to be good at C/C++?

    i want to get good at c++ but i am terrible with math. does this mean i will not become good at c++?

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,488
    Nope. Unless you plan to program for math stuff. Like 3D programming, math programming (who would ever know?), physics, engineering, etc...

    In short, your required math skills are mostly those of the project you are involved. And not directly related to the fact you are programming in C++
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    I second mario. Math comes more into game programming than programming in general. Working out percentages and "raise to the power of" is about the limit in standard C/C++. You do not need to be Carol Vordaman to program
    I'm just trying to be a better person - My Name Is Earl

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,069
    Even in game programming, there is room for people who don't excel in math. Logic, structure, and organization play more key roles in any programming environment than math.
    Sent from my iPad®

  5. #5
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    A strong math background may not be absolutely necessary to program in C/C++, but it's neither useless nor irrelevant.

    Mathematics isn't just about calculation. A solid math background will help you develop the skills that Sly refers to. It will also help you to think abstractly and boost your ability to effectively solve problems. The two subjects go very well together, and you will notice that many universities' computer science programs include quite a few math courses, and vice versa.

    I can agree with the previous posts to a point, but don't assume that math won't help.
    There is a difference between tedious and difficult.

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    40
    I wouldn't say that the two are completely independent, but there is a strong correlation between math and programming. A programmer fond of math is probably 'better' than one who hates math.

    When you study CS at a uni, you're not necessarily studying programming. Keep that in mind as well.

  7. #7
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Yes -- perhaps you don't need math to program, but you need math to study computer science.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  8. #8
    Registered Luser risby's Avatar
    Join Date
    Jun 2006
    Posts
    72
    Quote Originally Posted by swgh
    You do not need to be Carol Vordaman to program
    True, swgh, but of all the examples of famous mathematicians you could have chosen, mathematicians with strong computing connections like John Conway or Donald Knuth, or even famous female mathematicians Ada Lovelace and Florence Nightingale, (admittedly she is better known for nursing) you plumb for the great Carol Vordeman :-) Still, I suppose you were looking for an example for someone not to emulate!
    ===
    Don't grumble about what you can't have;
    be grateful you don't get what you deserve.

  9. #9
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    The way I see it, you don't have to be good at math, you just have to know how to use math.
    For an example: the computer is the one figguring out what 1990/201 is, not you. You only have to tell the computer when to, where to, ect...

  10. #10

    Join Date
    May 2005
    Posts
    1,041
    Don't let your fear of math inhibit your interest in programming. I was absolutely horrible at math prior to starting programming. Programming will exercise the left 'logical' portion of your brain (the sequential, mathematical language part). Once I started programming, I got ........ing great at math!
    I'm not immature, I'm refined in the opposite direction.

  11. #11
    Insane Game Developer Nodtveidt's Avatar
    Join Date
    Nov 2006
    Location
    Isabela, PR
    Posts
    105
    If you have a good background in mathematics, any programming becomes easier, although your maths will get better with programming experience, as BobMcGee123 stated. Furthermore, you could do yourself a favor and hit some mathematics tutorials if there's anything in particular that's troubling you. I had to do a "refresher course" in Trig to get back up to speed enough to handle even basic 3D maths.
    Code:
    cout << "Language comparisons are dumb";
    echo("Language comparisons are dumb");
    PRINT "Language comparisons are dumb"
    alert ("Language comparisons are dumb")

  12. #12
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    True, swgh, but of all the examples of famous mathematicians you could have chosen, mathematicians with strong computing connections like John Conway or Donald Knuth, or even famous female mathematicians Ada Lovelace and Florence Nightingale, (admittedly she is better known for nursing) you plumb for the great Carol Vordeman :-) Still, I suppose you were looking for an example for someone not to emulate!
    Ah. but she was the first math-type person I could think of. As much for her good looks as anything!
    I'm just trying to be a better person - My Name Is Earl

  13. #13
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Math and programming have one thing in common: you need logical thinking. If you are terrible in math, because you're not good at logical thinking, then you will probably have problems in programming, too.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  14. #14
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    Hence the need for a quick refresher in basic logic as Nodtveidt suggested. Oh and long time no see maxorator. Good to see your posting again.
    I'm just trying to be a better person - My Name Is Earl

  15. #15
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by swgh
    Hence the need for a quick refresher in basic logic as Nodtveidt suggested. Oh and long time no see maxorator. Good to see your posting again.
    I've been quite busy. (Many projects...)

    I've been solving many math exercises in my own way (totally ignoring the teacher) so it's all about logical thinking, as I already mentioned.
    Last edited by maxorator; 01-07-2007 at 04:18 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Any good tutorials?
    By kimmag in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2008, 06:44 AM
  2. What are some good books on C?
    By php111 in forum C Programming
    Replies: 9
    Last Post: 10-01-2008, 06:16 AM
  3. For the math junkies
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 09-14-2003, 05:09 PM
  4. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM
  5. Library for matrix math/ linear algebra?
    By The V. in forum C++ Programming
    Replies: 0
    Last Post: 09-25-2001, 10:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21