+ 3

How much math do you need to know for python?

Well, I'm diagnosed with some learning disability with math. Should I even start learning python? How much math is involved in this language?

18th Jun 2017, 6:07 PM
Matby
Matby - avatar
8 ответов
+ 4
Addition, subtraction, division, and multiplication – And really, the computer will be doing the adding, subtracting, dividing, and multiplying for you anyway. You just have to know when you need to do these operations. Mod – The mod operation is the “remainder” and its sign is usually the % percent sign. So 23 divided by 7 is 3 with a remainder of 2. But 23 mod 7 is 2. The even/odd mod test trick – If you want to know if a number is odd or even, mod it by 2. If the result is 0, the number is even. If the result is 1, the number is odd. 23 mod 2 is 1, so you know 23 is odd. 24 mod 2 is 0, so you know 24 is even. If x mod 2 is 0, you know that whatever number is stored in the variable x is even. To get a percentage of a number, multiply that number by the percent number with the decimal point in front of it. So to get 54% of 279, multiple 0.54 * 279. This is why 1.0 often means 100% and 0.0 means 0%. Know what negative numbers are. A negative number times a negative number is a positive. A negative times a positive is negative. That’s about it. Know what a Cartesian coordinate system is. In programming, the (0, 0) origin is the top left corner of the screen or window, and the Y axis increases going down. Know the Pythagorean theorem, and that it can be used to find the distance between two points on a Cartesian coordinate system. The Pythagorean theorem is a^2 + b^2 = c^2. What this usually means in programming is the distance between coordinate (x1, y1) and (x2, y2) will just be sqrt( (x1 – x2)^2 + (y1 – y2)^2 ). Know what decimal, binary, and hexadecimal numbering systems are. Decimal numbers are the numbers we’re used to that have ten digits: 0 to 9. It’s commonly thought that humans develop this system because we have ten fingers and counted on our fingers.
18th Jun 2017, 6:17 PM
Raz
Raz - avatar
+ 12
@neicore, can you give the credits to the original answer or at least, link the complete reference? ^^ Abhay Tandon - https://www.quora.com/What-kind-of-mathematics-is-important-for-programmings
18th Jun 2017, 6:47 PM
Maz
Maz - avatar
+ 9
ya I dunno it unless I ask the magic computer snake.
18th Jun 2017, 11:55 PM
Ahri Fox
Ahri Fox - avatar
+ 7
I don't know what 12*6 is
18th Jun 2017, 11:47 PM
Ahri Fox
Ahri Fox - avatar
+ 2
that's generally for programming buddy I hope you get me
18th Jun 2017, 6:20 PM
Raz
Raz - avatar
18th Jun 2017, 7:08 PM
Raz
Raz - avatar
+ 1
More than I can handle :( Hate math, love coding. God's ironic sense of humour.
18th Jun 2017, 7:40 PM
Jamie
Jamie - avatar
0
@Ahri Fox its twelve times six
18th Jun 2017, 11:49 PM
Raz
Raz - avatar