使用C查找曲线下方的区域 [英] To find the area under the curve using C

查看:68
本文介绍了使用C查找曲线下方的区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


我试图找到曲线下面积f(x)= sin(x)/ x,x = 1到

3"


a)使用梯形规则方法。证明你的梯形规则

方法是二阶的

准确(使用他的程序)

b)使用Romberg方法。使用TR(a部分)与Romberg方法比较网格大小,以获得

收敛到1e-8之内。


这将是非常有帮助的如果你们可以用C编程并指导我...


谢谢

Anand

Dear all,

I am trying to "find the area under the curve f(x)=sin(x)/x for x=1 to
3"

a) Use the trapezoidal rule method. Prove that your trapezoidal rule
method is second order
accurate (using he program)
b) Use the Romberg method. Compare the grid size neccessary to get
convergence to within 1e-8 using TR (part a) versus the Romberg method.

It would be of great help if you guys can programm in C and guide me..

thanks
Anand

推荐答案

anand写道:
anand wrote:
亲爱的,

我试图找到曲线下面积f(x) )= sin(x)/ x for x = 1 to
3"

a)使用梯形规则方法。证明你的梯形规则
方法是二阶的准确(使用他的程序)
b)使用Romberg方法。使用TR(第一部分)与Romberg
方法比较网格大小,以便在1e-8内获得收敛。

如果你们能做到这一点,那将会很有帮助程序在C和指导我..
Dear all,

I am trying to "find the area under the curve f(x)=sin(x)/x for x=1 to
3"

a) Use the trapezoidal rule method. Prove that your trapezoidal rule
method is second order
accurate (using he program)
b) Use the Romberg method. Compare the grid size neccessary to get
convergence to within 1e-8 using TR (part a) versus the Romberg
method.

It would be of great help if you guys can programm in C and guide me..




我们可以在C编程。我们也可以指导你。


我们不能也不会做的就是为你做功课。显示你已经付出了很多努力(在C中),我们可以帮助你解决遇到的任何问题。


为了帮助您前进,请通过你的数值分析教科书

确定你提到的方法。接下来,修改你的C课程到目前为止。


最后,尝试实际实现你学到的东西。


沿途任何C语言问题,这里的好人很可能会给b $ b尝试帮助。

-

BR,弗拉基米尔


为耶稣杀死未出生的同性恋雌鲸。



We can program in C. We can probably guide you as well.

What we can''t and won''t do is do your homework for you. Show you''ve made
an effort (in C) and we can help you with any problems you encounter.

To get you going, go through your numerical analysis textbooks to
identify the methods you mention. Next, revise your C course to date.

Finally, try to actually implement what you learned.

Any C language problems along the way, and good people here will likely
try to help.
--
BR, Vladimir

Nuke the unborn gay female whales for Jesus.


" anand" <一个************** @ gmail.com>写道:
"anand" <an**************@gmail.com> writes:
我试图找到曲线下面积为f(x)= sin(x)/ x为x = 1到
3

a)使用梯形规则方法。证明你的梯形规则
方法是二阶的准确(使用他的程序)
b)使用Romberg方法。使用TR(第一部分)与Romberg方法比较网格大小,以获得收敛到1e-8之内。

如果你们可以用C语言进行编程,那将会很有帮助。引导我..
I am trying to "find the area under the curve f(x)=sin(x)/x for x=1 to
3"

a) Use the trapezoidal rule method. Prove that your trapezoidal rule
method is second order
accurate (using he program)
b) Use the Romberg method. Compare the grid size neccessary to get
convergence to within 1e-8 using TR (part a) versus the Romberg method.

It would be of great help if you guys can programm in C and guide me..




我很肯定会的。


给我们你的导师的电子邮件我们可以直接提交我们的

解决方案。如果需要额外付费,我们会提到你的名字。 (或者

也许我们应该收取额外费用*而不是*提及你的名字。)


-

Keith Thompson(The_Other_Keith ) ks***@mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *> < http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。



I''m sure it would.

Give us your instructor''s e-mail address so we can submit our
solutions directly. For an extra fee, we''ll mention your name. (Or
perhaps we should charge extra for *not* mentioning your name.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


anand写道:
亲爱的,

我正试图找到曲线下面积f(x)= sin(x)/ x对于x = 1到
3

a)使用梯形法则方法。证明你的梯形规则
方法是二阶的准确(使用他的程序)
b)使用Romberg方法。使用TR(第一部分)与Romberg方法比较网格大小,以获得收敛到1e-8之内。

如果你们可以用C语言进行编程,那将会很有帮助。引导我..
Dear all,

I am trying to "find the area under the curve f(x)=sin(x)/x for x=1 to
3"

a) Use the trapezoidal rule method. Prove that your trapezoidal rule
method is second order
accurate (using he program)
b) Use the Romberg method. Compare the grid size neccessary to get
convergence to within 1e-8 using TR (part a) versus the Romberg method.

It would be of great help if you guys can programm in C and guide me..




正如你很快就会发现的那样,大多数常客在做其他人的时候都不是很大。为他们做作业,特别是当你自己没有尝试
时。


如果你有C,给你最好的拍摄问题语言问题

沿途你可以随意回来。如果你有一个算法问题,请查阅你的微积分书或在别处询问

,因为这里的讨论是偏离主题的。


Robert Gamble



As you will likely soon discover, the majority of regulars aren''t big
on doing other peoples'' homework for them, especially when you haven''t
even given it a try yourself.

Give the problem your best shot, if you have a C language question
along the way feel free to come back with what you have so far. If you
have an algorithm question, consult your calculus book or ask elsewhere
as such discussion is off-topic here.

Robert Gamble


这篇关于使用C查找曲线下方的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆