|
-
Apr 13th, 2004, 01:24 AM
#1
Thread Starter
Dazed Member
Solving systems of linear equations?
Hello. Can anyone tell me how to go about solving two equations
simultaneously. Such as. a - b = 1, a/3 + b/5 = 1. The second equation is a fractional equation so i thought the correct process was to multiply the denoms by a number that both can divide into evenly.
(15/1)a/3 + (15/1)b/5 = 1(15/1) --> 5a + 3b = 15
Now take the first equation equation. a - b = 1 and multiply by -5 to drop one variable. -5(a - b = 1) --> -5a + 5b = -5
Now i end up with two equations --> 3b = 15, 5b = -5
Add the cofficents 8b = 10 --> 8b/8 = 10/8 --> b = 5/4
So if i plug in 5/4 into the first equation a - b = 1 --> a - 5/4 = 1
--> a = 5/4 + 1 --> a = 9/4
I guess i was on the right track.
-
Apr 13th, 2004, 06:32 AM
#2
Fanatic Member
You should've added "resolved" to the title for the fastest-solved post ever.
Don't pay attention to this signature, it's contradictory.
-
Apr 13th, 2004, 03:39 PM
#3
Thread Starter
Dazed Member
I managed to figure it out in mid post. After all that typing i didn't want to scrap a good thread.
-
Apr 14th, 2004, 05:42 AM
#4
New Member
Hi,
Check this link:
http://www.ibrtses.com/delphi/dequ.html
I contains the theory and the code to solve N equations with N unknown, not just this simple problem.
have fun
-
Apr 22nd, 2004, 01:03 AM
#5
Thread Starter
Dazed Member
Pretty cool but a little too complex.
-
Apr 22nd, 2004, 05:47 AM
#6
transcendental analytic
for two equations theres two simple methods: add the equations left side to left side and right side to right side. Alternatively subtract.
For several equations, try googling for linear algebra and gauss elimination
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 3rd, 2004, 10:03 PM
#7
Lively Member
Dilenger4 wrote:
Hello. Can anyone tell me how to go about solving two equations simultaneously. Such as. a - b = 1, a/3 + b/5 = 1. The second equation is a fractional equation so i thought the correct process was to multiply the denoms by a number that both can divide into evenly.
(15/1)a/3 + (15/1)b/5 = 1(15/1) --> 5a + 3b = 15
Now take the first equation equation. a - b = 1 and multiply by -5 to drop one variable. -5(a - b = 1) --> -5a + 5b = -5
Now i end up with two equations --> 3b = 15, 5b = -5
You method is correct, up to the last sentence!. You now really have two equations, namely:
5a + 3b = 15
-5a + 5b = -5
You now add these two, obtaining:
(5a-5a) + (3b+5b) = (15-5), or
0 + 8b = 10, from which
b = 10/8, or
b = 1.25
Then, substituing this value of b in the first equation:
5a + 3*1.25 = 15
5a + 3.75 = 15, from which
a = (15 - 3.75)/5, or
a = 11.25/5. or
a = 2.25
Last edited by RAEsquivelC; May 3rd, 2004 at 10:07 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|