How can I think of math in programming?

I'm not sure if this is for SO or not. I read some of my old math textbooks and try to understand math in general. Not how to come up with something. I can do this, but rather, this is what math does.

I'm sure this is painfully obvious, but I never thought about it until I thought more about game programming. Is it right to think of mathematics as a "language" that is used to explain, to explain exactly why everything works?

It’s hard for me to ask about this again, I’m sure that this is obvious for most, but after many years of mathematics I finally think when someone asks “to find the equation of the line” that people have learned certain characteristics of the line (y = mx + b) in space and the relationship found. They need something next to a huge paragraph (like this) and something very accurate. We call this mathematics and on its basis it is nothing but a symbolic way of representing things.

In fact, I thought: "I know why they said" find the equation of the line. "

So now I’m thinking, and not just searching by a formula that tells me how to turn a curve with a person walking or following a path, but why and how I represent it mathematically and then programmatically.

I just hope for comments on mathematics in programming.

+3
11

"" - . :

  • = -
  • , ...

. , - , "", , (, ) , .

: , - .

, 30 (, ) , , .

+4
+4

, . :

, .

, , ,

  • -
+1

. , , .

+1

, ... :

+1

, - , , . . , , , , , .

, . , ( ) , .

, . , , , , .

+1

. - . , 32 . ( ) , , , , , (, ..), .

, . , .

0

- ( ) - , , .

, , , ( , / ..), "" , / (, 1 1 ).

, (Numericical Recipes - ). , .

0

, , , , Macbook .

0

, .

/ ... . , " " , . , "" ( , ?). - . y = mx + b, , . , , , (, ..). , /, .

, , . , , , . ( N-), .

, , .

0

, , - " " (.. , , ). .

, Schaum Outline - (~ $13) .

There are other ways to find problems in mathematics to solve problems such as simply solving problems with the design of the game. Here are two: 1) show an object moving in a circle at a constant speed, and 2) show two objects moving in different lines that do not intersect, and draw a line between them. Or you could get a book that will guide you through these things. But you must solve a number of problems to make you think about yourself.

0
source

Source: https://habr.com/ru/post/1712385/


All Articles