differential equation??

This is a discussion on differential equation?? within the Game Programming forums, part of the General Programming Boards category; I started to learn differential equation after learning calculus,self study.After few days,I couldn't get beyond the concept. I know differential ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    71

    differential equation??

    I started to learn differential equation after learning calculus,self study.After few days,I couldn't get beyond the concept.
    I know differential equation have some part in algorithms to construct fluid simulation and other area of computer graphics but that I believe have something to do with simulation stuff ....
    But in practice,do you encounter any instance where you need to understand differential equation for use in building games.
    Right now,I can't think of anything hence my low motivation right now in learning differential equation.

  2. #2
    Registered User Stonehambey's Avatar
    Join Date
    Jan 2008
    Location
    Kent, UK
    Posts
    118
    Differential equations are exceptionally useful in real world simulations.

    They're usually encountered at undergraduate level, and are used extensively afterwards, which should give you some indication of their complexity. You could fill (and indeed there are) many tomes on differential equations. It is not surprising you are having difficulty if you are trying to learn them through self study, although don't let me put you off.

    I can't say how much they're used in games design, although I did hear that the games design industry is short on maths graduates (good news for me, should I ever choose to pursue a career in that area), perhaps this is one of the reasons. But I'm just guessing at that.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Whilst differential equations are indeed important in all sorts of different maths-related areas, for most purposes (particularly in games), you can usually just use an already existing formula to derive the result where a derivation is needed.

    Of course, games programming covers MANY different areas. You can't be expected to be an expert in ALL those areas.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    71
    Thanks for your answers
    I fail my maths in high school but now self-studying mathematics after I realize I couldn't get very far in programming especially computer graphics stuff which I'm very passionate...

    Btw,This message board is awesome,the replies came not even 1 hour mark after I post my original question.Hell yeah,maybe cboard banner should have the same slogan as pizza deliveries XD
    Last edited by kypronite; 09-01-2008 at 11:06 AM. Reason: fix my spelling

  5. #5
    Registered User Stonehambey's Avatar
    Join Date
    Jan 2008
    Location
    Kent, UK
    Posts
    118
    Well I don't want to put you off, but if you failed maths at high school then you're going to struggle.

    There is some good news though. DE's are a massive area of maths, it's equivalent to learning "programming", in fact even more so (they've been around a lot longer than computers). You can break it down into so many sub categories. My advice would be to forgo them for now, and if you find you do need them in the future, just learn what you need.

    I'm not a games programmer, but I've heard that a good area of maths to study is linear algebra, especially for 3d programming.

    In addition, there are also books you can buy which specifically teach you the maths needed for games design and 3d programming. I haven't read them myself, but they would be a good place to start.

    Good luck

  6. #6

    Join Date
    May 2005
    Posts
    1,041
    I must mention that you do not absolutely have to know everything about differential equations in order to use them and make games. The biggest usage of DEs in game programming would be physics simulation, in which case you can use a physics library.
    I'm not immature, I'm refined in the opposite direction.

  7. #7
    Registered User
    Join Date
    Jul 2008
    Posts
    71
    Thanks for all your replies and encouragement.
    I was scouring the bookstore today and after half an hour,I found differential equation for dummies,just one of a few books on differential equation.I was hesistant in buying because of it titles,but the author of the dummies book is Steve Holzner.I remember enjoying his vtc screencasts.
    Yeah,so now I'm learning...not giving up yet

  8. #8
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Well, if you do this:
    Code:
    pos.x += vel.x * frameTime;
    pos.y += vel.y * frameTime;
    you are solving a differential equation numerically.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  9. #9
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368
    I didn't get a great maths grade despite having been into coding since I was 8. But I have quite a 'mathematical' mind in the sense that I can solve a fairly simple mathematical problem just by sitting down and reasoning, despite lacking the parlance and tools of traditional maths.

    But now I'm finding myself more interested in the concepts I found boring at school so I'm always looking things up on the net and learning more.
    MSVC++ 6.0

  10. #10
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Game programming is like any other field that uses applied mathematics. In that, I am simply saying that you are applying rules, and formulas for the most part. You are not usually deriving them, you are not usually reworking them, you are just taking something that is well studied and putting it to use. It is nice to be the guy in the corner of your office who can actually explain how these equations are derived when someone invariably asks though.

  11. #11
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    I often find complex math formulas and things such as DE's to flesh themselves out much clearer in the realm of computers than on paper. Essentially they are simpler with a computer as long as you understand the basic premise. Actually implementing them is quite simple as Sang-drax has illustrated.

    And unless you are someone like Bob I highly doubt you will ever be deriving complex formulas for a game since most of the equations are computed by a third party library or have been derived and figured out long before you ever see the code line. Funny thing is that the hardest part about a physics engine is not really the math for computing mass moment of inertia, impulses, etc., but actually detecting the collision between the objects. So in the end collision detection, at least for me, becomes the most complex and difficult part of game programming.

  12. #12
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    These days entire books and libraries (that is, as in compiled code libraries, not the ones that contains the books) are devoted to teaching the end result of a lot of the mathematical theories that are used in modern computer science. Some stuff seems trivial enough to figure out on your own, while other stuff may not be so easily derived without doing some reading.

    Collision is one of the harder things to get exactly right. Like most game developers, you can probably even see flawed collision detection bugs in almost every game you play (btw, I notice that writing your own code either adds a fun level of constructive critisism to playing games, or an evil level of picking them apart).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help needed! Finding Root of an Equation?
    By reader in forum C Programming
    Replies: 4
    Last Post: 06-13-2008, 10:10 AM
  2. Replies: 15
    Last Post: 11-04-2006, 03:06 AM
  3. IDEA: Equation solver
    By Magos in forum Contests Board
    Replies: 2
    Last Post: 01-07-2003, 10:46 AM
  4. why different answers for this equation
    By james_nkh in forum C Programming
    Replies: 2
    Last Post: 05-21-2002, 12:29 PM
  5. Quadratic Equation Program
    By Ambizzy in forum C Programming
    Replies: 4
    Last Post: 02-19-2002, 08:21 PM

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