Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 173

Author Topic: Mathematics Help Thread  (Read 227926 times)

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Mathematics Help Thread
« on: September 28, 2010, 10:10:08 pm »

As pretty much everyone I've ever come in contact with knows, I'm not the most mathematically inclined person on the face of the planet. Far from it, in fact. So, since there's been a little bit of talk about it, I present to you, the Mathematics Help Thread, where you can come get a little bit of help from the numerous mathematical people on Bay12, should they wish to participate.

Also, I wanted to get the ball rolling. Nyah.

So, to kick this thing off:

I'm converting Base 10 to binary. Is there a less retarded way than "Divide everything by 2 and see if there's a remainder,"?
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

ToonyMan

  • Bay Watcher
  • Danger Magnet
    • View Profile
Re: Mathematics Help Thread
« Reply #1 on: September 28, 2010, 10:12:42 pm »

Bases eh?

I've done base 2, 8, and 16.  What would 10 be used for?
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Mathematics Help Thread
« Reply #2 on: September 28, 2010, 10:14:25 pm »

Counting. In kindergarten. And other everyday, practical uses.
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Vector

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #3 on: September 28, 2010, 10:18:47 pm »

I'm converting Base 10 to binary. Is there a less retarded way than "Divide everything by 2 and see if there's a remainder,"?

Familiarize yourself with the powers of base 2--I compute them for fun when I'm bored (gotten up to 100 before).  You'll start to recognize the largest power of two that can go into the number.

So, to take a random large number:

327 - 256 = 71
71 - 64 = 7
7 = 4 + 2 + 1

-> 327 = 256 + 64 + 4 + 2 + 1
-> 101000111
Logged
"The question of the usefulness of poetry arises only in periods of its decline, while in periods of its flowering, no one doubts its total uselessness." - Boris Pasternak

nonbinary/genderfluid/genderqueer renegade mathematician and mafia subforum limpet. please avoid quoting me.

pronouns: prefer neutral ones, others are fine. height: 5'3".

ToonyMan

  • Bay Watcher
  • Danger Magnet
    • View Profile
Re: Mathematics Help Thread
« Reply #4 on: September 28, 2010, 10:20:15 pm »

Oh decimal, why didn't you say so.
Vector already answered that though, I like the fact I understand it.  One month ago I wouldn't have.

From what I know, going from binary to decimal is easy.  For decimal to binary I just work with the largest number I have and work my way down.

Like say you got the decimal number 137.

Highest you could use there is 128, then 8, then 1.  128+8+1=137

Or 10001001
« Last Edit: September 28, 2010, 10:22:49 pm by ToonyMan »
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Mathematics Help Thread
« Reply #5 on: September 28, 2010, 10:20:48 pm »

See, I thought that was a way to do it, but I was told not to do it that way. I'm rebelling tomorrow.
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Aqizzar

  • Bay Watcher
  • There is no 'U'.
    • View Profile
Re: Mathematics Help Thread
« Reply #6 on: September 28, 2010, 10:22:22 pm »

-> 327 = 256 + 64 + 4 + 2 + 1
-> 101000111

I find bases pretty easy to grasp, but I'm not following your trick here.  How does 256+64+4+2+1 turn into 101000111 in one step?
Logged
And here is where my beef pops up like a looming awkward boner.
Please amplify your relaxed states.
Quote from: PTTG??
The ancients built these quote pyramids to forever store vast quantities of rage.

ToonyMan

  • Bay Watcher
  • Danger Magnet
    • View Profile
Re: Mathematics Help Thread
« Reply #7 on: September 28, 2010, 10:23:29 pm »

-> 327 = 256 + 64 + 4 + 2 + 1
-> 101000111

I find bases pretty easy to grasp, but I'm not following your trick here.  How does 256+64+4+2+1 turn into 101000111 in one step?

Each number multiples by 2 for binary.  1 means it's HIGH or active while 0 means it's LOW or inactive.
Logged

Vector

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #8 on: September 28, 2010, 10:24:37 pm »

-> 327 = 256 + 64 + 4 + 2 + 1
-> 101000111

I find bases pretty easy to grasp, but I'm not following your trick here.  How does 256+64+4+2+1 turn into 101000111 in one step?

Knowing the powers of two ^_^;  I just counted 'em off and put a 1 where I had a power of 2, a 0 where I didn't.
Logged
"The question of the usefulness of poetry arises only in periods of its decline, while in periods of its flowering, no one doubts its total uselessness." - Boris Pasternak

nonbinary/genderfluid/genderqueer renegade mathematician and mafia subforum limpet. please avoid quoting me.

pronouns: prefer neutral ones, others are fine. height: 5'3".

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Mathematics Help Thread
« Reply #9 on: September 28, 2010, 10:25:59 pm »

Okay, here's another stupid question that I forgot to ask in class. When writing numbers above 256 in binary, (Say, 9054, or something like that), do I just write a big string of 1s and 0s, or do I break it into bytes?
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Urist Imiknorris

  • Bay Watcher
  • In the flesh, on the phone and in your account...
    • View Profile
Re: Mathematics Help Thread
« Reply #10 on: September 28, 2010, 10:26:53 pm »

-> 327 = 256 + 64 + 4 + 2 + 1
-> 101000111

I find bases pretty easy to grasp, but I'm not following your trick here.  How does 256+64+4+2+1 turn into 101000111 in one step?

Knowing the powers of two ^_^;  I just counted 'em off and put a 1 where I had a power of 2, a 0 where I didn't.

I count by powers of two on my fingers.
Logged
Quote from: LordSlowpoke
I don't know how it works. It does.
Quote from: Jim Groovester
YOU CANT NOT HAVE SUSPECTS IN A GAME OF MAFIA

ITS THE WHOLE POINT OF THE GAME
Quote from: Cheeetar
If Tiruin redirected the lynch, then this means that, and... the Illuminati! Of course!

ToonyMan

  • Bay Watcher
  • Danger Magnet
    • View Profile
Re: Mathematics Help Thread
« Reply #11 on: September 28, 2010, 10:27:10 pm »

It goes from right to left.

So 0000 would be 0
0001 would be 1
0010 would be 2
0100 would be 4
1000 would be 8

with those basics you can do stuff like

1001 is 9
1110 is 14
1111 is 15

when you want 16 you move up a row

10000 is 16
10001 is 17
10010 is 18

and such
« Last Edit: September 28, 2010, 10:29:00 pm by ToonyMan »
Logged

dragnar

  • Bay Watcher
  • [Glub]
    • View Profile
Re: Mathematics Help Thread
« Reply #12 on: September 28, 2010, 10:29:15 pm »

Okay, here's another stupid question that I forgot to ask in class. When writing numbers above 256 in binary, (Say, 9054, or something like that), do I just write a big string of 1s and 0s, or do I break it into bytes?
Depends. In math, no. You just use a giant string of 0s and 1s. In electronics there might or might not be a reason to write it as multiple bytes(like, say, if you're using an 8-bit system.)
Logged
From this thread, I learned that video cameras have a dangerosity of 60 kiloswords per second.  Thanks again, Mad Max.

Euld

  • Bay Watcher
  • There's coffee in that nebula ಠ_ರೃ
    • View Profile
Re: Mathematics Help Thread
« Reply #13 on: September 28, 2010, 10:29:46 pm »

-> 327 = 256 + 64 + 4 + 2 + 1
-> 101000111

I find bases pretty easy to grasp, but I'm not following your trick here.  How does 256+64+4+2+1 turn into 101000111 in one step?

Knowing the powers of two ^_^;  I just counted 'em off and put a 1 where I had a power of 2, a 0 where I didn't.

I count by powers of two on my fingers.
You can count to 1023 on your fingers?... D: *head esplode*

ToonyMan

  • Bay Watcher
  • Danger Magnet
    • View Profile
Re: Mathematics Help Thread
« Reply #14 on: September 28, 2010, 10:30:07 pm »

Okay, here's another stupid question that I forgot to ask in class. When writing numbers above 256 in binary, (Say, 9054, or something like that), do I just write a big string of 1s and 0s, or do I break it into bytes?
Depends. In math, no. You just use a giant string of 0s and 1s. In electronics there might or might not be a reason to write it as multiple bytes(like, say, if you're using an 8-bit system.)
Yeah it depends, my teacher tells me to do both.
Logged
Pages: [1] 2 3 ... 173