468,167 Members | 1,870 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,167 developers. It's quick & easy.

c++ program..root of an equation

5
HELP!..PLEASE..i have a project that asks to write a C++ program solving for the root of the equation (x*x*x)-(x*x)-(9x)+(9) ........huhuhu..please help..i really need to pass..please..
Nov 22 '06 #1
6 2055
Hope
5
mmm i just want to know
is that program have to provide a choice for a user to solve any equation with any degree ,, or just with the degree 3 as u post !!

anyway .. as i think it's similar to that problem i have posted before ..
have alook at it


good luck
Nov 22 '06 #2
mismis
5
EI..TNX some1 replied..the output in the 1st screen of this program is written below..pls help..

Enter lower limit (Xa):
Enter upper limit (Xb):
Solve for the root of the equation: (x*x*x)-(x*x)-(9x)+9

the next output in the 2nd screen is written below:

iteration # Xa Xb Xm f(Xm)f(Xa)
1
2
3
4
5
6
7
8
9
10

The root in 10 iterations is:


That's the output of the program,can you pls help..i know that's so easy to you..but for me,i'm having trouble with it..please reply..tnx..
Nov 30 '06 #3
mismis
5
EI..TNX some1 replied..the output in the 1st screen of this program is written below..pls help..

[b]Enter lower limit (Xa):
Enter upper limit (Xb):
Solve for the root of the equation: (x*x*x)-(x*x)-(9x)+9

the next output in the 2nd screen is written below:

iteration # Xa Xb Xm f(Xm)f(Xa)
1
2
3
4
5
6
7
8
9
10

The root in 10 iterations is:

That's the output of the program,can you pls help..i know that's so easy to you..but for me,i'm having trouble with it..please reply..tnx..
Nov 30 '06 #4
mismis
5
help me write a c++ program..the output is written below..




Enter lower limit (Xa):
Enter upper limit (Xb):
Solve for the root of the equation: (x*x*x)-(x*x)-(9x)+9

the next output in the 2nd screen is written below:

iteration # Xa Xb Xm f(Xm)f(Xa)
1
2
3
4
5
6
7
8
9
10

The root in 10 iterations is:
Nov 30 '06 #5
sivadhas2006
142 100+
Hi,

Do u have any code with u?

Regards,
M.Sivadhas.
Nov 30 '06 #6
r035198x
13,262 8TB
Use only one thread per question.

Now you need to use a numerical method for solving the equation.
Bisection, Newton raphson etc. Get the algorithm for one of them, understand it(if you can), and transform the algorithm into c++ code.
Nov 30 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by rockwell | last post: by
5 posts views Thread by CoreyWhite | last post: by
3 posts views Thread by Anjola | last post: by
6 posts views Thread by Trev17 | last post: by
6 posts views Thread by nomana123 | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by kamranasdasdas | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.