YesNoOk
avatar

The amount of math you should know to create for mugen (Read 5842 times)

Started by Speedy9199, October 16, 2014, 06:02:47 pm
Share this topic:

Poll

What level of math should you know?

Algebra 1
12 (38.7%)
Algebra 2
7 (22.6%)
Trigonometry
7 (22.6%)
Calculus 1
1 (3.2%)
Calculus 2 or higher
4 (12.9%)

Total Members Voted: 31

Re: The amount of math you should know to create for mugen
#61  November 11, 2014, 08:07:55 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com
Ah typecasting. The joys of programming, lol.

-[Все слова это только слова.]-
Re: The amount of math you should know to create for mugen
#62  November 11, 2014, 09:13:07 pm
  • ***
  • Make her whiter! Make her whiter!
    • USA
    • speedy9199.webs.com/index.htm
Computers are pretty bad when it comes to floating point mathematics.
All the current implementations (float, double, quadruple) tend to sacrifice precision for range, so you can't properly represent exact real numbers in them.
I had some hilarious situations due to that, as C# defaults floating point values as doubles and I had some float values.
Suddenly, 0.01 was different from 0.01, as one was float and the other double. XD
Never again I forgot to cast numbers when comparing them.

It is fascinating and fun stuff.

It usually depends on the types of numbers you use. For floats any even number works very well in the decimal 0,2,4,6,8,10, if it's odd it works not as well 1,3,5,7,9, and if it is odd and prime it does wacky things 3,5,7. Also for the number 2, since it is basically the one of a kind number that is even AND prime you might have to work "around" somethings when using it.
The only Mugen creator on this site without a "gay" purple name.  :-X

Little known FACT: If you use the equation, (z)velocity = (((x2-x1)^2 + (y2-y1)^2)^.5) / time and z = a small decimal number in mugen you can get something that follows something else. Useful for heat seeking missiles, black holes, magnet effects, a projectile aimed for an enemy's head... Seriously, try it! It's awesome!
Last Edit: November 11, 2014, 09:18:48 pm by Speedy9199
Re: The amount of math you should know to create for mugen
#63  November 11, 2014, 10:11:49 pm
  • *****
    • Peru
    • www.mugenguild.com/renzo
Computer limitations can in fact do something about learning math. When you learn binary or hexadecimal you will learn not all numbers "work" the same way as in normal. In a way you are learning a different math, for example in the language java if you do (.1 + .2 -.3) it will not equal zero but rather 5.7525e-15 or something like that. It does this because in that language the computer cannot calculate the decimal .3 well. So limitations and problems on a computer can teach you things.

I know the limitations because I learned it in a class called "Discrete Mathematics" in school. My point is, if you don't have any idea about math, how will you end up noticing limitations in applied computing?

Fun Fact: They also teached me about FSMs in that class. It was a piece of cake because MUGEN already made me understand the subject very well (even if with negative states MUGEN is not a "pure" FSM).