By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,820 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
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
Share this Question
Share on Google+
9 Replies


P: n/a
"anuj" <an*********@gmail.comwrote:
plz people help me in writing theses programs
plz st00dents do yr own homework L0L!!!11!

Richard
Nov 2 '06 #2

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 <lagrange
interpolationon Google.
Nov 2 '06 #4

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" <an*********@gmail.comwrote:
>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 <la*********@gmail.comwrote:
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!
S1f, f00! Mai d3gr33 R teh pr3ciousssss!!

(It's rather nice that programming is somewhat more difficult to cheat
at than, say, English. All those free essay sites should be
imprisoned for contributing to the delinquency of minors.)

--
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 #7

P: n/a

Christopher Benson-Manica wrote:
Lars Rune N?stdal <la*********@gmail.comwrote:
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!

S1f, f00! Mai d3gr33 R teh pr3ciousssss!!

(It's rather nice that programming is somewhat more difficult to cheat
at than, say, English. All those free essay sites should be
imprisoned for contributing to the delinquency of minors.)
A google search will turn up source code for both of his assignments
(and a few thousand hits each at least).
--
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 #8

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

This discussion thread is closed

Replies have been disabled for this discussion.