help i need to make a program that has a three equation and three unknown

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2008
Posts: 6
Reputation: jOhN_pRattZ has a little shameless behaviour in the past 
Solved Threads: 0
jOhN_pRattZ jOhN_pRattZ is offline Offline
Newbie Poster

help i need to make a program that has a three equation and three unknown

 
0
  #1
Aug 20th, 2008
hello im john rico a com sci student could anyone help me to make a program that has three equation and three unknown pls.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 412
Reputation: sciwizeh is on a distinguished road 
Solved Threads: 22
sciwizeh's Avatar
sciwizeh sciwizeh is offline Offline
Posting Pro in Training

Re: help i need to make a program that has a three equation and three unknown

 
0
  #2
Aug 21st, 2008
you mean like this:
  1. x+y+z=18
  2. 2x+y+3z=20
  3. 5x-y+2z=15
  4.  
  5. 1.
  6. [
  7. [ 1 1 1 18 ]
  8. [ 2 1 3 20 ]
  9. [ 5 -1 2 15 ]
  10. ]
  11. 2.
  12. [
  13. [ 1 1 1 18 ]
  14. [ 0 -1 1 -16 ]
  15. [ 5 -1 2 15 ]
  16. ]
  17. 3.
  18. [
  19. [ 1 1 1 18 ]
  20. [ 0 1 -1 16 ]
  21. [ 5 -1 2 15 ]
  22. ]
  23. 4.
  24. [
  25. [ 1 1 1 18 ]
  26. [ 0 1 -1 16 ]
  27. [ 0 -6 -3 -75 ]
  28. ]
  29. 5.
  30. [
  31. [ 1 1 1 18 ]
  32. [ 0 1 -1 16 ]
  33. [ 0 0 -9 -171]
  34. ]
  35. 6.
  36. [
  37. [ 1 1 1 18 ]
  38. [ 0 1 -1 16 ]
  39. [ 0 0 1 19 ]
  40. ]
  41. 7.
  42. z=19
  43. y=35
  44. x=-36
if so, that would require a massive amount of programming. i intended to do this at one time, but decided against it when i had nearly 200 lines of code that still didn't do anything productive. (that and my precal teacher didn't know how to do certain other things, like determinate of a matrix above 3X3)

EDIT: NOTE: i may have made an error in the previous math, as i cannot prove that those numbers are in fact the right ones, oops
Last edited by sciwizeh; Aug 21st, 2008 at 12:38 am.
My site, random PM's from people I haven't hear from before will be DELETED
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "
-Albert Einstein
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 6
Reputation: jOhN_pRattZ has a little shameless behaviour in the past 
Solved Threads: 0
jOhN_pRattZ jOhN_pRattZ is offline Offline
Newbie Poster

Re: help i need to make a program that has a three equation and three unknown

 
-1
  #3
Aug 21st, 2008
hehehe why i know you can do this one hope you can help me as soon as possible and besides your a professor prove it pls i really need your help
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,819
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: help i need to make a program that has a three equation and three unknown

 
1
  #4
Aug 21st, 2008
Originally Posted by jOhN_pRattZ View Post
hehehe why i know you can do this one hope you can help me as soon as possible and besides your a professor prove it pls i really need your help
This post makes no sense. What exactly do you want other than someone to do the entire thing for you and deliver you a finished project?
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,677
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 226
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso

Re: help i need to make a program that has a three equation and three unknown

 
0
  #5
Aug 21st, 2008
Originally Posted by jOhN_pRattZ View Post
hello im john rico a com sci student could anyone help me to make a program that has three equation and three unknown pls.
You can either use Gauss as sciwizeh has suggested,
but if don't know the algorithm you can do it the old fashion way, by solving this equation on paper and programming the results:

a1*x+b1*y+c1*z=q1
a2*x+b2*y+c2*z=q2
a3*x+b3*y+c3*z=q3

By the way you have to show some effort before getting help.
I would suggest to create a method that take as argument the array with the values and return the new modified array
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 6
Reputation: jOhN_pRattZ has a little shameless behaviour in the past 
Solved Threads: 0
jOhN_pRattZ jOhN_pRattZ is offline Offline
Newbie Poster

mark your word you dont know who are you talking to!

 
-3
  #6
Aug 21st, 2008
did i call your name mark my word cause you dont know who are you talking to dont under estimate my knowledge you might see your mistakes soon i suggest you to keep your mouth shot if you dont want to help!!!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 6
Reputation: jOhN_pRattZ has a little shameless behaviour in the past 
Solved Threads: 0
jOhN_pRattZ jOhN_pRattZ is offline Offline
Newbie Poster

hey could you give me a formula

 
0
  #7
Aug 21st, 2008
hello by da way i believe you could give me a formula i know how to do it but unfortunately i dont know the formula could you help pls just a formula
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,677
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 226
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso

Re: mark your word you dont know who are you talking to!

 
0
  #8
Aug 22nd, 2008
Originally Posted by jOhN_pRattZ View Post
did i call your name mark my word cause you dont know who are you talking to dont under estimate my knowledge you might see your mistakes soon i suggest you to keep your mouth shot if you dont want to help!!!!
What do you mean, and to who are you referring to?

As for the formula, describing the Gauss algorithm is very long for this post. But, since I learned it in high school, you should be able to find it in most Math books, or the internet.
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 765
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: help i need to make a program that has a three equation and three unknown

 
0
  #9
Aug 22nd, 2008
These might help you solve your equations:

http://www.mathreference.com/la-det,simeq.html

http://www.themathpage.com/alg/simul...quations-3.htm

They explain the method, or "formula" for what you want. All you have to do is implement it.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC