943,522 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1028
  • Java RSS
Aug 20th, 2008
0

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

Expand 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.
Similar Threads
Reputation Points: 5
Solved Threads: 0
Newbie Poster
jOhN_pRattZ is offline Offline
6 posts
since Aug 2008
Aug 21st, 2008
0

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

you mean like this:
Java Syntax (Toggle Plain Text)
  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.
Reputation Points: 73
Solved Threads: 22
Posting Pro in Training
sciwizeh is offline Offline
423 posts
since Jun 2008
Aug 21st, 2008
-1

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

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
Reputation Points: 5
Solved Threads: 0
Newbie Poster
jOhN_pRattZ is offline Offline
6 posts
since Aug 2008
Aug 21st, 2008
1

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

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?
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,371 posts
since Jan 2008
Aug 21st, 2008
0

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

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
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,258 posts
since Dec 2007
Aug 21st, 2008
-3

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

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!!!!
Reputation Points: 5
Solved Threads: 0
Newbie Poster
jOhN_pRattZ is offline Offline
6 posts
since Aug 2008
Aug 21st, 2008
0

hey could you give me a formula

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
Reputation Points: 5
Solved Threads: 0
Newbie Poster
jOhN_pRattZ is offline Offline
6 posts
since Aug 2008
Aug 22nd, 2008
0

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

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.
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,258 posts
since Dec 2007
Aug 22nd, 2008
0

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

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.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: java platform game
Next Thread in Java Forum Timeline: send message from pc to mobile via net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC