牛顿拉斐逊 [英] Newton Raphson
问题描述
请,我需要一个用java语言编写的程序来解决下面这个问题:
- 应用Newton Raphson方法,找到3x-2tanx = 0的根,假设馅饼之间存在根/ 6和pie / 3.
谢谢。
Please, I need a program in java language to solve the question below:
-By applying Newton Raphson method,find the root of 3x-2tanx=0 given that there is a root between pie/6 and pie/3.
Thank you.
推荐答案
请,我需要一个用java语言编写的程序来解决下面的问题:
- 应用Newton Raphson方法,找到3x-2tanx = 0的根,假设在pie / 6和pie / 3之间有一个根。
谢谢。
Please, I need a program in java language to solve the question below:
-By applying Newton Raphson method,find the root of 3x-2tanx=0 given that there is a root between pie/6 and pie/3.
Thank you.
您需要该表达式的一阶导数才能执行NR步骤。
你要么自己想出一个,要么近似它如下:
f''(x)==(f(x + h)-f(x))/ h表示小的h值。 NR步骤很简单:
x(n + 1)== x(n)-f(x(n))/ f''(x(n))
亲切的问候,
Jos
You need the first derivative of that expression in order to perform a NR step.
You either figure that one out yourself or you approximate it as follows:
f''(x) == (f(x+h)-f(x))/h for a small value of h. The NR step is simply:
x(n+1) == x(n)-f(x(n))/f''(x(n))
kind regards,
Jos
本网站的专家非常乐意帮助您问题,但他们无法为您完成任务/计划。首先尝试自己的作业/计划并发布有关您遇到的任何困难或有关您不知道如何实现的特定代码功能的问题。
请阅读< a href =http://www.thescripts.com/forum/faq.php?faq=posting_guidelines\"target =_ blank>发布指南,特别是课程作业发布指南。
然后当你准备好发布一个新的这个帖子中的问题。
MODERATOR
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don''t know how to achieve.
Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.
Then when you are ready post a new question in this thread.
MODERATOR
Mmmmmmmmmmmmmmmmm ...馅饼!
Mmmmmmmmmmmmmmmmmm... pie!
这篇关于牛顿拉斐逊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!