Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 15 16 [17] 18 19 ... 173

Author Topic: Mathematics Help Thread  (Read 227289 times)

Vector

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #240 on: November 08, 2010, 11:46:49 pm »

Because I'm sort of using this as a personal mathematics happiness thread, I was reminiscing about the past and ended up blurting out: "God, I want to write some functions!"

I highly recommend that anyone who feels the same way should try out computability or category theory.  I'm going to go dig into some pleasant work tomorrow morning :D
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 #241 on: November 09, 2010, 08:27:49 am »

Just got to trig functions yesterday. Soh Cah Toa indeed!
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

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Mathematics Help Thread
« Reply #242 on: November 09, 2010, 08:32:57 am »

Somehow I think the dutch mnemonic (Sos Cas Toa) sounds better.
Logged

ed boy

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #243 on: November 09, 2010, 09:07:29 am »

Imagine that you have two dice, one with A sides, and one with B sides.

If you roll both dice, what is the chance that the number gotton from the dice with B sides is greater than the number gotten from the dice with A sides?
Logged

Rysith

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #244 on: November 09, 2010, 10:42:59 am »

Imagine that you have two dice, one with A sides, and one with B sides.

If you roll both dice, what is the chance that the number gotton from the dice with B sides is greater than the number gotten from the dice with A sides?

I, being a computer science person, would do that with case analysis:

Consider each possible result from the die with B sides
  For each result, compute the probability that the roll on A is lesser. Thus, if you are looking at 3 and A=6, then you have a .5 chance.
  But, since each result is only a possible result, divide by the probability of rolling that result.
  Add the probability of each result being greater than the roll on A, multiplied by the probability of getting that result, to a running total.

now, your running total is your answer.
Spoiler: example (click to show/hide)

Logged
Lanternwebs: a community fort
Try my orc mod!
The OP deserves the violent Dwarven equivalent of the Nobel Peace Prize.

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Mathematics Help Thread
« Reply #245 on: November 09, 2010, 12:39:55 pm »

Assuming that each die is numbered 1, 2, 3.... n-1, n with n = A for die A and n = B for die B, we can say:


Each value on both A and b has a chance of 1/A and 1/B respectively.
For each value rolled on A, the amount of values on B that is higher then the given value is B-RA with RA the value rolled on A.
That means that for a given value of RA, the chance that RB will be higher is (B-RA)/B = 1 - RA/B for RA < B and 0 for RA > B.
The chance of rolling each specific value of RA is 1/A, so for each possible value of RA the chance that it occurs and that RA < RB is (B-RA)/(A*B) for B > RA and 0 for B < RA.
Now to calculate the total chance we just add the chances for RA = [1, 2.... A-1, A] together. 
Logged

ed boy

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #246 on: November 09, 2010, 01:47:35 pm »

The die would be numbered from 1 to n, though. A six-sided dice, for example, has numbers {1,2,3,4,5,6}.

I was working on it a bit, and I got the following:

either A=B, A<B, or A=B.
let the values that the dice give be called a and b.

If A=B, then the chances are as follows:
a=b has a A-1 chance of happening.
a>b and a<b each have an equal chance of happening, so 1/2(1-A-1).

If A<B, then we can write B=A+K.
b will have a A/B chance of being less than or equal to A, and a K/B chance of being  greater than A. In this case, there will be the following chances:
a=b has a (A/B)(A-1)=B-1 chance of happening.
a>b has a (A/B)(1/2(1-A-1)=A-1/2B=1/2(A/B-B-1) chance of happening.
a<b has a A-1/2B+K/B=A-1/2B+2(B-A)/2B=1+-A-1/2B=1/2(2-B-1-A/B) chance of happening.

Note that this works if  A=B.

So, if you rearrange A and B into P and Q, where P is greater than or equal to Q, you get:
p=q has a P-1 chance of happening.
p<q has a 1/2(Q/P-P-1) chance of happening.
p>q has a 1/2(2-P-1-Q/P) chance of happening.
Logged

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Re: Mathematics Help Thread
« Reply #247 on: November 09, 2010, 04:41:46 pm »

I've hit a bit of a snag. :-[ How would you do this:
     
(90r6+28r5+2r4+45r3+5r2)/(9r+1)
Logged

Vector

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #248 on: November 09, 2010, 04:42:21 pm »

Look up synthetic division, also known as Horner's Algorithm =)
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".

eerr

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #249 on: November 09, 2010, 04:45:20 pm »

I've hit a bit of a snag. :-[ How would you do this:
     
(90r6+28r5+2r4+45r3+5r2)/(9r+1)

Oh thats a toughie.

But it can be written, with uh, synthetic division?
Logged

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Re: Mathematics Help Thread
« Reply #250 on: November 09, 2010, 04:46:58 pm »

Oh gawd that confused my poor brain even more. This is probably more basic maths than you guys are used to.

Apparently I'm supposed to do something like this:

      _____10r5____________________________
9r+1|90r6+28r5+2r4+45r3+5r2
       90r6+10r5
       _______
              18+2r4

But that didn't work out, as you can see.
« Last Edit: November 09, 2010, 04:57:30 pm by lordnincompoop »
Logged

Vector

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #251 on: November 09, 2010, 04:47:40 pm »

Yeah, and then you keep on going until the end.  Keep going!  Keep going!
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".

Jim Groovester

  • Bay Watcher
  • 1P
    • View Profile
Re: Mathematics Help Thread
« Reply #252 on: November 09, 2010, 04:47:48 pm »

Long division.

But I'll make it simple for you 'cause I can already see how it can be factored because I'm awesome like that and don't you forget it. Just by regrouping things a little bit:

((90r6 + 10r5) + (18r5 + 2r4) + (45r3 + 5r2))/(9r + 1)

And this equals:

10r5 + 2r4 + 5r2

Oh gawd that confused my poor brain even more. This is probably more basic maths than you guys are used to.

Apparently I'm supposed to do something like this:

      _____10r5____________________________
9r+1|90r6+28r5+2r4+45r3+5r2
       90r6+10r5
       _______
              18+45r3

But that didn't work out, as you can see.

What are you doing not dropping the r4 term.
Logged
I understood nothing, contributed nothing, but still got to win, so good game everybody else.

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Mathematics Help Thread
« Reply #253 on: November 09, 2010, 04:49:48 pm »

I've hit a bit of a snag. :-[ How would you do this:
     
(90r6+28r5+2r4+45r3+5r2)/(9r+1)
Code: [Select]
10r5 / 90r6 + 28r5 + 2r4 + 45r3 + 5r2 \ 9r+1
       -90r6 - 10r5 =


10r5+2r4 / 18r5 + 2r4 + 45r3 + 5r2 \ 9r+1
          -18r5 - 2r4 =


10r5+2r4 + 5r2 / 45r3 + 5r2 \ 9r+1
                -45r3 - 5r2 =
                0


So (90r6+28r5+2r4+45r3+5r2)/(9r+1) = 10r5+2r4 + 5r2
« Last Edit: November 09, 2010, 04:53:09 pm by Virex »
Logged

Heron TSG

  • Bay Watcher
  • The Seal Goddess
    • View Profile
Re: Mathematics Help Thread
« Reply #254 on: November 09, 2010, 07:47:20 pm »

Okay, so I have this problem that I can't seem to figure out.

Bobby is playing on a baseball diamond where each side is 90 feet long, and the field is a square. Bobby always runs at 16 feet per second. When Bobby is 30 feet away from first base, running to second, how quickly is his distance to third base changing?

I know that it has to do with taking derivatives, but these new story problems just don't make any sense to me. Can anyone help explain how to do these?
Logged

Est Sularus Oth Mithas
The Artist Formerly Known as Barbarossa TSG
Pages: 1 ... 15 16 [17] 18 19 ... 173