Urgent math help (Equation related)

Talk about just about anything else that is non-gaming here, but keep it clean
User avatar
CFFJR
Next-Gen
Posts: 4432
Joined: Sun Feb 21, 2010 7:51 am
Location: Denver, CO

Re: Urgent math help (Equation related)

Post by CFFJR »

Kudos to you guys for giving KillerJuan a hand and teaching him how to work the problems.

Anywhere else on the web, and the best, most polite response he could have expected is a curt "do your own homework". Though cussing and insults would be more likely.

Good ol' Racketboy. :D
GameSack wrote:That's right, only Sega had the skill to make a proper Nintendo game.
dsheinem
Next-Gen
Posts: 23184
Joined: Wed Dec 12, 2007 12:56 pm
Contact:

Re: Urgent math help (Equation related)

Post by dsheinem »

MrPopo wrote:Another way to view it is that you're just using Gaussian elimination.

5x + 8y = 136 (L1)
3x + 10y = 118 (L2)

The goal is to eliminate x from the bottom equation, then y from the top equation (this generalizes for a system of n equations with n unknowns to only have the 1st term in the 1st equation, only the 2nd term in the 2nd equation, etc).

So you add -3/5 * L1 to L2. This will eliminate the x term, and it looks like this:

(-3x - 12/5y = -408/5) = L1, this is added to L2, so L2 becomes (38/5y = 182/5)

Now you eliminate the y term from L1. You multiply the new L2 by -40/38 so that it will eliminate y from the first term. So you get:

(-8y = -728/19) = L2, which is added to the original L1, so L1 becomes (5x = 1856/19).

So now your final system looks like:

5x + 0y = 1856/19
0x + 38/5y = 182/5

Solve for x and y.
I don't think you made it any easier for him :lol:
User avatar
KillerJuan77
Next-Gen
Posts: 1432
Joined: Mon Jun 06, 2011 5:01 am

Re: Urgent math help (Equation related)

Post by KillerJuan77 »

Ok, first of all THANK YOU!!! Second... I'm still stuck, specially on the first one:

a + n = 224
35a + 15n = 4480

I got to the part where I did this: 35(224-n)+15n=4480, then I don't really know what to do :S (Fucking ADD)
Image
Limewater
Next-Gen
Posts: 3392
Joined: Thu Dec 18, 2008 11:01 am
Location: Northern Alabama

Re: Urgent math help (Equation related)

Post by Limewater »

KillerJuan77 wrote:Ok, first of all THANK YOU!!! Second... I'm still stuck, specially on the first one:

a + n = 224
35a + 15n = 4480

I got to the part where I did this: 35(224-n)+15n=4480, then I don't really know what to do :S (Fucking ADD)
You have 35(224 - n) + 15n = 4480.

You want to simplify the equation as much as possible, so you want to get rid of the parentheses. Think about what you can do to the equation so that you don't have to have parentheses in it anymore.
Systems: TI-99/4a, Commodore Vic-20, Atari 2600, NES, SMS, GB, Neo Geo MVS (Big Red 4-slot), Genesis, SNES, 3DO, PS1, N64, DC, PS2, GBA, GCN, NDSi, Wii
User avatar
KillerJuan77
Next-Gen
Posts: 1432
Joined: Mon Jun 06, 2011 5:01 am

Re: Urgent math help (Equation related)

Post by KillerJuan77 »

Limewater wrote:
KillerJuan77 wrote:Ok, first of all THANK YOU!!! Second... I'm still stuck, specially on the first one:

a + n = 224
35a + 15n = 4480

I got to the part where I did this: 35(224-n)+15n=4480, then I don't really know what to do :S (Fucking ADD)
You have 35(224 - n) + 15n = 4480.

You want to simplify the equation as much as possible, so you want to get rid of the parentheses. Think about what you can do to the equation so that you don't have to have parentheses in it anymore.
So: 7840 - n + 15n = 4480 => 7840 -14n = 4480? What should I do next? Substract the 7840? Add it? I'm sorry for asking so many question but I'm terrible at math.
Image
User avatar
J T
Next-Gen
Posts: 12417
Joined: Wed Mar 25, 2009 6:21 pm
Location: Seattle

Re: Urgent math help (Equation related)

Post by J T »

MrPopo wrote:Another way to view it is that you're just using Gaussian elimination.

5x + 8y = 136 (L1)
3x + 10y = 118 (L2)

The goal is to eliminate x from the bottom equation, then y from the top equation (this generalizes for a system of n equations with n unknowns to only have the 1st term in the 1st equation, only the 2nd term in the 2nd equation, etc).

So you add -3/5 * L1 to L2. This will eliminate the x term, and it looks like this:

(-3x - 12/5y = -408/5) = L1, this is added to L2, so L2 becomes (38/5y = 182/5)

Now you eliminate the y term from L1. You multiply the new L2 by -40/38 so that it will eliminate y from the first term. So you get:

(-8y = -728/19) = L2, which is added to the original L1, so L1 becomes (5x = 1856/19).

So now your final system looks like:

5x + 0y = 1856/19
0x + 38/5y = 182/5

Solve for x and y.
I agree with dsheinem, I don't think you made this any easier on him at all. :lol:

However, I've never learned Gaussian Elimination before, so it was kind of interesting to me. It doesn't seem as parsimonious to me, at least from a hand calculation standpoint. Is there any situation where Gaussian Elimination is the preferred method instead of the substitution method?
My contributions to the Racketboy site:
Browser Games ... Free PC Games ... Mixtapes ... Doujin Games ... SotC Poetry
User avatar
alienjesus
Next-Gen
Posts: 8876
Joined: Tue Feb 24, 2009 7:10 pm
Location: London, UK.

Re: Urgent math help (Equation related)

Post by alienjesus »

J T wrote:
MrPopo wrote:Confusing stuff
I agree with dsheinem, I don't think you made this any easier on him at all. :lol:

However, I've never learned Gaussian Elimination before, so it was kind of interesting to me. It doesn't seem as parsimonious to me, at least from a hand calculation standpoint. Is there any situation where Gaussian Elimination is the preferred method instead of the substitution method?
I have to agree, I understood everything up until this post :lol:
KillerJuan77 wrote: So: 7840 - n + 15n = 4480 => 7840 -14n = 4480? What should I do next? Substract the 7840? Add it? I'm sorry for asking so many question but I'm terrible at math.
35(224 - n) + 15n = 4480.
thats actually 7840 - 35n + 15n = 4480

so 7840 - 20n = 4480
Image
gtmtnbiker
Next-Gen
Posts: 4320
Joined: Fri Jan 09, 2009 1:14 pm
Location: Massachusetts

Re: Urgent math help (Equation related)

Post by gtmtnbiker »

MrPopo wrote:Another way to view it is that you're just using Gaussian elimination.

5x + 8y = 136 (L1)
3x + 10y = 118 (L2)

The goal is to eliminate x from the bottom equation, then y from the top equation (this generalizes for a system of n equations with n unknowns to only have the 1st term in the 1st equation, only the 2nd term in the 2nd equation, etc).

So you add -3/5 * L1 to L2. This will eliminate the x term, and it looks like this:

(-3x - 12/5y = -408/5) = L1, this is added to L2, so L2 becomes (38/5y = 182/5)
You have an error there.

It should be

(-3x -24y/5 = -408/5) = L1
L2 becomes (3x + 10y) + (-3x -24y/5) = 118 + -408/5
L2 becomes 10y - 24y/5 = 118 -408/5
Multiply everything by 5
50y - 24y = 590-408
26y = 182
y = 182/26
y = 7

Right?
User avatar
MrPopo
Moderator
Posts: 24194
Joined: Tue Aug 26, 2008 1:01 pm
Location: Orange County, CA

Re: Urgent math help (Equation related)

Post by MrPopo »

J T wrote:
MrPopo wrote:Another way to view it is that you're just using Gaussian elimination.

5x + 8y = 136 (L1)
3x + 10y = 118 (L2)

The goal is to eliminate x from the bottom equation, then y from the top equation (this generalizes for a system of n equations with n unknowns to only have the 1st term in the 1st equation, only the 2nd term in the 2nd equation, etc).

So you add -3/5 * L1 to L2. This will eliminate the x term, and it looks like this:

(-3x - 12/5y = -408/5) = L1, this is added to L2, so L2 becomes (38/5y = 182/5)

Now you eliminate the y term from L1. You multiply the new L2 by -40/38 so that it will eliminate y from the first term. So you get:

(-8y = -728/19) = L2, which is added to the original L1, so L1 becomes (5x = 1856/19).

So now your final system looks like:

5x + 0y = 1856/19
0x + 38/5y = 182/5

Solve for x and y.
I agree with dsheinem, I don't think you made this any easier on him at all. :lol:

However, I've never learned Gaussian Elimination before, so it was kind of interesting to me. It doesn't seem as parsimonious to me, at least from a hand calculation standpoint. Is there any situation where Gaussian Elimination is the preferred method instead of the substitution method?
When you have three or more variables is when you really see the value. With two you can easily use substitution, but once you have three you end up doing gymnastics that are effectively equivalent to Gaussian Elimination. So in a three variable system you'd use the first equation to remove the first term from the other two, then you'd use the second (modified) equation to remove the second term from the first and third equation, then you use the third (modified) equation, which now just has the third term, and remove the third term from the first two. This leaves you with three equations that have one term each, so do the final step to solve for each term.
Blizzard Entertainment Software Developer - All comments and views are my own and not representative of the company.
pakopako
Next-Gen
Posts: 1654
Joined: Wed Jul 07, 2010 2:29 pm

Re: Urgent math help (Equation related)

Post by pakopako »

gtmtnbiker wrote:
MrPopo wrote:Another way to view it is that you're just using Gaussian elimination... This will eliminate the x term, and it looks like this:

(-3x - 12/5y = -408/5) = L1, this is added to L2, so L2 becomes (38/5y = 182/5)
You have an error there. It should be:

[*](-3x -24y/5 = -408/5) = L1
[*]L2 becomes (3x + 10y) + (-3x -24y/5) = 118 + -408/5
[*]L2 becomes 10y - 24y/5 = 118 -408/5
[*]Multiply everything by 5
[*]50y - 24y = 590-408
[*]26y = 182
[*]y = 182/26
[*]y = 7
Y=7 is about all I got from that.

This is still algebra right? I still remember bits of that.

[*]5x + 8y = 136 (L1), 3x + 10y = 118 (L2)
[*]L1 - L2 = 2x -2y = 18
[*](L1 - L2) / 2 = x - y = 9
[*]x = y + 9
[*]L2 = 3(y+9) + 10y = 118
[*]L2 = 3y + 27 + 10y = 118
[*]L2 = 13y = 91
[*]L2 = y = 7

(Gah.. no "/table" BBcode here. "Bullets! Buuulleeeets!")
My scheduling skills have died of dysentery; I hope to visit at least on a monthly basis.
Still, don't forget to tip your waitress.
Post Reply