deviant art

Deviant Login Shop  Join deviantART for FREE Take the Tour

Details

Closed to new replies
June 28, 2012
Link

Statistics

Replies: 37

What kind of math do I need to do C and C++?

:iconredfoxbennaton:
~Redfoxbennaton Jun 28, 2012  Student Traditional Artist
I want to program video games and programs. What math do I need to learn. I know algebra. Is there anything I can possibly learn?
Reply

You can no longer comment on this thread as it was closed due to no activity for a month.

Devious Comments

:iconfireflyskys:
*fireflyskys Jul 11, 2012  Hobbyist General Artist
You just need basic math to be able to learn the programming language, but more advanced math skills will help you understand how and why the algorithms work, which is essential unless you're going to stick to very basic programming. It helps you think and solve problems abstractly. Discrete math is always good to know.
Reply
:iconredfoxbennaton:
~Redfoxbennaton Jul 11, 2012  Student Traditional Artist
Okay.
Reply
:icongenstian:
~genstian Jul 9, 2012  Hobbyist Digital Artist
Well, you should understand algorithms. Etc, Karatsuba, Toom-Cook, FFI. Along with how vector and 3D points work. If you do, you pretty much have the knowledge you need to make whatever you want.
Reply
:iconredfoxbennaton:
~Redfoxbennaton Jul 9, 2012  Student Traditional Artist
Okay, but what the heck is Karatsuba, Toom-Cook, FFI
Reply
:icongenstian:
~genstian Jul 9, 2012  Hobbyist Digital Artist
Say you want to multiply two huge numbers, than you would use karatsuba, toom-cook or fft. Since a computer can only multiply a number with a length equal to or below the archicetures address length (for most modern computers thats 64bit), or it's biggest register (for most computers, that 128bit, or 256bit with AVX). While you may not directly use those while making games, you most certainly would use algoritms equal in complexity.
Reply
:iconredfoxbennaton:
~Redfoxbennaton Jul 9, 2012  Student Traditional Artist
I looked into it. It seems a little complicated.
Reply
:iconscnal:
~Scnal Jul 6, 2012  Hobbyist Digital Artist
Unless you're doing some really advanced things, you won't need to know too much math beforehand, just basic algebra should work. Being good at math is important for programming because it gets you into the correct problem-solving sense of thinking, even though math itself isn't the most relevant thing to learn for it. The best way to learn programming is still to actually learn it.
Reply
:iconredfoxbennaton:
~Redfoxbennaton Jul 6, 2012  Student Traditional Artist
Okay.
Reply
:iconxzibiting:
For games it's mostly logic.

Unless you are making the engine, it requires linear algebra. However, you may need to optimize an engine to get it to fit your game. This might require some mathematics. However, math will help in the long run. You can optimize code if you know some mathematical "tricks"
Reply
:iconredfoxbennaton:
~Redfoxbennaton Jul 3, 2012  Student Traditional Artist
Okay,thanks. I am not trying make a engine anyways. But what about physics and what :iconguidingstructures: said.
Reply
Add a Comment: