Jump to content

What level of math do you need to know before programming?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
60 replies to this topic

#1
relapse

relapse

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 476 posts
A friend and I were arguing again. Yes, it is the same douche bag that picks up chicks bragging about HTML being a programming language. He said programming doesn't require any level of math knowledge beyond the basics (addition, subtraction, division, multiplication). I told him he was full of **** and that any decent programmer would know algebra and geometry at the very least while recommended was probably trig. What do you think? What math level do you know?

#2
Hignar

Hignar

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 420 posts
As a general guide I'd say you're about right. Some knowledge of algebra is a must and most will probably find a need for basic geometry and trigonometry at some point. How much you need to know depends on what you want to work on though.

What is perhaps more important than the actual level of maths knowledge is the sort of logical thinking studying maths at a more advanced level develops.

Unless I work on some very specific scientific software I doubt my maths will ever hold me back. I've got a masters in pure maths.
If there's a new way, I'll be the first in line.

But, it better work this time.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I had a disagreement with a student about this very topic. He insisted that he didn't need math for programming, and his programming teacher (who didn't like math) had said as much. He came to me a few months later looking for information about graphics. He was shocked/horrified that he would need trig extensively for simple graphics.

Reality: algebra is almost essential. Boolean logic is vital. Trig, graph theory, combinatorics, formal logic, and linear algebra are useful on a regular basis. Calculus, numerical analysis, statistics, and number theory also come in handy, as can complex analysis. I use abstract algebra as my mental model for classes, inheritance, and operator overloading.

Think of it this way: it's hard to model something in the real world without being able to do the math that is necessary for the associated discipline.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
It depends on what you are doing. 90% of the programming I do (both academic and industry) only requires basic arithmetic, basic logic and the concept of a variable (which one might consider algebra).

#5
oliver.rush

oliver.rush

    Newbie

  • Members
  • PipPip
  • 24 posts
Yeah, for stupid things nobody needs a lot of math. But if you are going to do something really cool, you will need tons of math. Otherwise, all your programs will do is use brute force to solve every single problem. Can you say it is a good method?

Have any of you seem the last round of Google Code Jam? Here's my tip, relapse: ask your friend to solve those problems, then let's see what he thinks about programming and math.

#6
Guest

Guest

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,414 posts
You can program with limited math, but limited math means limited programming. I think good programming skills have a direct stem from good math skills. You need good math skills to come up with efficient algorithms. Even simple things in programs can rely heavily on boolean logic and the use of variables, so if you aren't up to par with your algebra skills, programming will be very hard. My level of math is Pre-Calculus, and it helps me a lot in my programming.
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)

#7
Shaddix

Shaddix

    Programmer

  • Members
  • PipPipPipPip
  • 102 posts
I always s*cked at math, I always only had enough for it at school, and one year I had to do my year over because of maths

but for programming I'm doing quite ok for programming

#8
MathX

MathX

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,001 posts
Can we say it like this: A good Mathematician = A good Pogrammer ?

Interested in participating in community events?
Want to harness your programming skill and turn it into absolute prowess?
Come join our programming events!


#9
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
No, unfortunately. I've known several talented mathematicians who could barely use a computer.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#10
Shaddix

Shaddix

    Programmer

  • Members
  • PipPipPipPip
  • 102 posts
both math scientists and programmers need to be able to think logically, it's the most important factor, but it's not the only one, so that factor doesn't always aply

#11
Grogerian

Grogerian

    Newbie

  • Members
  • Pip
  • 3 posts
Now this depends, a "real" programmer I suppose will understand how the sytem works, how the programming code works (Big O-notaton, cache and memory, etc.) this is a lot of math and of course being good in math can help you as a programmer for problems in programming.

Math has all those word problems everyone loves so much ;) and these allow you to sift through information and how to place it to get a solution. I work like this a lot when programming anything. I usually build a table with what is needed and how I can put it together.

However ANYONE can learn how to program, with no background in math - either by trial and error, or tutorials.

I myself at the university I go to, to take any of the programming courses (which are all 2nd year) Calculus 1 & 2 are pre-requisites, and they reccomend to be taking Discrete structures as well.

#12
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
I use algebra, trig and geometry regularly. For good graphics you also need some knowledge of optics, for physics you need to know physics, etc. But I agree, algebra and trig is the minimum for games, and even for more basic stuff you still need to understand boolean logic at least. Math != programming, but good programming => good math.
Watches: Nanoha, Haruhi, AzuDai. Listens to: E-Type, Dj Melodie, Nightcore.
"When people are wrong they need to be corrected. And then when they can't accept it, an argument ensues." - MeTh0Dz