computer program

A

anuj

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
 
M

mark_bluemel

anuj said:
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.
 
O

osmium

anuj said:
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
interpolation> on Google.
 
D

dcorbit

anuj said:
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/LagrangeInterpolatingPolynomial.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.
 
?

=?iso-8859-1?q?Lars_Rune_N=F8stdal?=

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!
 
C

Christopher Benson-Manica

Lars Rune N?stdal said:
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.)
 
D

dcorbit

Christopher said:
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

Christopher Benson-Manica

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.
 
D

dcorbit

Christopher said:
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/3> as 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.
;-)
 

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
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top