445,820 Members | 1,189 Online
Need help? Post your question and get tips & solutions from a community of 445,820 IT Pros & Developers. It's quick & easy.

computer program

 P: n/a plz people help me in writing theses programs Write a computer program (in C or C++) that computes langrange interpolation polynomials for the function f(x) = Cos(x) at 10 equally spaced points of the interval [0,2]. Write a computer program (in C or C++) that reads n coefficients of each of the n linear equations and solves these equations, using gauss Elimination method and prints appropriate solution Nov 2 '06 #1
9 Replies

 P: n/a "anuj"

 P: n/a anuj wrote: plz people help me in writing theses programs You've phrased your request wrongly (apart from the obscenity of "plz" and "theses"). What you meant was "please write these programs for me" - to which the answer is "no". We don't offer a "do your homework for free" service. If you do some work, make an attempt and post what you've written together with a description of the problems you've encountered, we'll help. Nov 2 '06 #3

 P: n/a "anuj" wrote: Write a computer program (in C or C++) that computes langrange interpolation polynomials for the function f(x) = Cos(x) at 10 equally spaced points of the interval [0,2]. Write a computer program (in C or C++) that reads n coefficients of each of the n linear equations and solves these equations, using gauss Elimination method and prints appropriate solution Could you, given enough time, do this with pencil and paper and a scientific calculator? If not, this is a math question, not a computer programming question. Wikipedia is often a good starting point for questions such as this. Did you mean LaGrange? Spelling is important when dealing with computers, they are very unforgiving. There are tons of hits on

 P: n/a anuj wrote: plz people help me in writing theses programs Write a computer program (in C or C++) that computes langrange interpolation polynomials for the function f(x) = Cos(x) at 10 equally spaced points of the interval [0,2]. Def: http://mathworld.wolfram.com/Lagrang...olynomial.html Do it this way: http://mathworld.wolfram.com/NevillesAlgorithm.html Write a computer program (in C or C++) that reads n coefficients of each of the n linear equations and solves these equations, using gauss Elimination method and prints appropriate solution http://mathworld.wolfram.com/GaussianElimination.html The first exercise is trivial, and the second one is harder. Once you have some code, show it to us and we will offer handy suggestions. Nov 2 '06 #5

 P: n/a On Thu, 02 Nov 2006 11:02:47 +0000, Richard Bos wrote: "anuj" plz people help me in writing theses programs plz st00dents do yr own homework L0L!!!11! Richard OMG .. OH NOOES!! WHAT EVER SHALL WE DOES NOW?! I NEED THIZ EDJUCĂ†ISHĂ…N FĂ…R MAI FUTURE EMPLĂ…YMENT! PLZ GIVEZ IT TO ME -- PLEEEZ! -- Lars Rune NĂ¸stdal http://lars.nostdal.org/ Nov 2 '06 #6

 P: n/a Lars Rune N?stdal

 P: n/a Christopher Benson-Manica wrote: Lars Rune N?stdal

 P: n/a dc*****@connx.com wrote: A google search will turn up source code for both of his assignments (and a few thousand hits each at least). But it does require a bit of understanding to pick a program that actually solves the problem; picking an essay that is at least *about* King Lear is not too difficult. -- C. Benson Manica | I *should* know what I'm talking about - if I cbmanica(at)gmail.com | don't, I need to know. Flames welcome. Nov 2 '06 #9

 P: n/a Christopher Benson-Manica wrote: dc*****@connx.com wrote: A google search will turn up source code for both of his assignments (and a few thousand hits each at least). But it does require a bit of understanding to pick a program that actually solves the problem; picking an essay that is at least *about* King Lear is not too difficult. Back in the day, we would trudge on down to the Academic Computer Center and crack open TAOCP (Knuth) volume <1/2/3as needed, and translate his algorithm from MIX into whatever we need, put in a citation and turn it in. {I even wrote my own MIX emulator so that I could be sure I had it right.} One has to wonder deeply if there has ever been a computer science problem posed that has not already been solved by Knuth back in the 1970's. Which goes to show -- when you tell where you found it, it's research. When you just snag it and turn it in, it's plagiarism. ;-) -- C. Benson Manica | I *should* know what I'm talking about - if I cbmanica(at)gmail.com | don't, I need to know. Flames welcome. Nov 3 '06 #10