i need a c programm to implement an expression

R

raajagopal.v

hallo comp.lang.c
i am a student trying to sole the bisection method in
numerical methods to find the root of any equation,i need the coding
because i dont know how to implement the polynomial function or
expression that the user gives to execute will any one give the coding
?
please help me
 
V

Vladimir Oka

raajagopal.v said:
hallo comp.lang.c
i am a student trying to sole the bisection method in
numerical methods to find the root of any equation,i need the coding
because i dont know how to implement the polynomial function or
expression that the user gives to execute will any one give the coding
?

Er, no.

Being a student implies learning. You achieve no such thing by being
given solutions. Go study both your numerical analysis and C textbooks.
If you have any specific questions about your efforts in writing a C
program for bisection method, please do come back here and ask.
please help me

I did, believe me.
 
S

santosh

raajagopal.v said:
hallo comp.lang.c
i am a student trying to sole the bisection method in
numerical methods to find the root of any equation,i need the coding
because i dont know how to implement the polynomial function or
expression that the user gives to execute will any one give the coding?

In addition to your mathematics textbook, the following resource should
be helpful on the C side. If you use it, do respect the copyright.

http://library.lanl.gov/numerical/index.html

In particular, chapter 9 should be useful. After making an attempt at
coding, if you have any problems, do come back here and post your
source.
 
O

osmium

raajagopal.v said:
i am a student trying to sole the bisection method in
numerical methods to find the root of any equation,i need the coding
because i dont know how to implement the polynomial function or
expression that the user gives to execute will any one give the coding

The programmer converts the user equation for a polynomial to code on an *ad
hoc* basis. It is not intended that you parse some generalized equations by
writing a solver program; that could be a major undertaking. You write:

double f(double x)
{
double temp;
/* code*/
return temp;
}

In case your problem was not what I understood it to be, here are a couple
of useful links. The one that has C++ code is mostly C, except for the I/O.
Try to ignore the I/O or else treat it as magic.

I used this search target:

<bisection algorithm tutorial -book -books c >

and found these links:

https://www.cs.tcd.ie/Shane.OConchuir/3E2/Week 3 solution.pdf

http://www.minich.com/education/psu/cmpsc201/cmpsc201ch13/ch13prog13-1.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,520
Latest member
KrisMacono

Latest Threads

Top