6 ms·
There are much more clear-cut examples of math in programming than this. 3D graphics requires matrices, and more. You'll find blog posts all over the Net of g
by dgreensp 13y ago
There are much more clear-cut examples of math in programming than this.
3D graphics requires matrices, and more. You'll find blog posts all over the Net of game programmers teaching themselves quaternions. You don't have to be writing a physics engine to need them, just using one. Even 2D graphics often requires pretty fancy high school math, like testing whether a point is in a polygon.
Proofs. Especially when defining new data types, you often want to prove that certain properties hold in a pretty rigorous manner. If you've never had to prove anything before, even at high school geometry level, it seems unlikely you'd sit down and do this. Or maybe that's completely wrong, and proving things about code is just a programming skill like debugging. It seems worth mentioning, however, because proofs come from the domain of mathematics and require a huge amount of creativity sometimes.
Easing functions for animation; being able to reason about binary and modular arithmetic; having enough foundational knowledge to say sensible things about compression and cryptography. If you do anything in robotics, control systems, or simulation -- differential equations.
If you're not doing anything with numbers, graphics, or data structures, you might be safe.
- pornel 13y ago> all over the Net of game programmers teaching themselves quaternions That's what I did too, but I didn't think of it as math. It seemed like a cool trick for working with arrays of floats — not math. "Math" I knew from school was always boring and useless. I was told to memorize formulas that did some abstract operations on on other things I had to memorize — nobody told me I could be rotating spaceships in 3D!