当前位置:网站首页>Newton Raphson iterative method
Newton Raphson iterative method
2022-07-27 11:45:00 【char~lie】
Newton-Raphson Iterative method
history
Newton's method was first developed by Isaac · Newton is in 《 Stream number method 》(Method of Fluxions,1671 Years to complete , After Newton's death 1736 Published in ). Joseph · Lafferson also 1690 In Analysis Aequationum This method is proposed in .
Algorithm
For example, to calculate a Greater than 0 The square root of (a>0), You can define f ( x ) = x 2 − 5 f(x) = x^2-5 f(x)=x2−5
Take a value close to the real solution first, such as 2, Write it down as x0 Then it is always calculated according to the following recursive formula xn: x n + 1 = x n − f ( x n ) f ′ ( x n ) x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)} xn+1=xn−f′(xn)f(xn)
For example, use C Language can write like this :
double eps=1e-10;
double x1=2,x0=2;
do{
x1 = x0-(pow(x0,2)-5)/(2*x0);
x0=x1;
}while((x0-sqrt(5))>eps||(x0-sqrt(5))<(-eps));// It can't be used here abs function , because abs Back to plastic surgery
printf("x=%.10f",x0-sqrt(5);
give the result as follows :
Limiting conditions
Not all functions can be solved in this way , Not all of them x0 Can be used as the initial value , Only functions converged by Newton's method can be used .
边栏推荐
- Maker harmony OS application development training notes 01
- C custom set
- 希腊字母读法
- LeetCode 01: T1. 两数之和 ; T1108. IP 地址无效化 ; T344. 反转字符串
- EfficientNet
- Error while unzipping file in win10: unable to create symbolic link. You may need to run WinRAR with administrator privileges. The client does not have the required privileges
- LAN SDN hard core technology insider 25 looking forward to the future - RDMA (Part 2)
- LAN SDN technology hard core insider 12 cloud CP's daily love - hardware vxlan forwarding plane
- [machine learning whiteboard derivation series] learning notes --- conditional random fields
- Shell脚本文本三剑客之sed
猜你喜欢

Everything cannot be searched for startup_ Lpc11x.s file
![[machine learning whiteboard derivation series] learning notes - support vector machine and principal component analysis](/img/54/dc232f737da99c7097c395a326e74f.png)
[machine learning whiteboard derivation series] learning notes - support vector machine and principal component analysis

Digital triangle model acwing 1015. Picking flowers

你真的会写二分查找吗——变种二分查找

第13章 IO流

暂用 Solo,博客选择困难

Moveit2 -- 2. Quick start of moveit in rviz

IDEA: Can‘t use Subversion command line client:svn 解决方案

【机器学习-白板推导系列】学习笔记---支持向量机和主成分分析法

【机器学习-白板推导系列】学习笔记---条件随机场
随机推荐
箱型图介绍
EfficientNet
Adobe Audition提示 音频输入的采样率与输出设备不匹配——问题解决
第7章 异常处理
数据库 cli 工具 docker 镜像
Newton-Raphson迭代法
Moveit2 - 1. Start
USB 网卡驱动数据流
为什么TCP三次握手的时候ACK=Seq+1
本地虚拟机初始化脚本
Moveit2 -- 2. Quick start of moveit in rviz
ZABBIX custom monitoring items
Vscode removes style / syntax highlighting / code highlighting / black background when copying code
LAN SDN hard core technology insider 25 looking forward to the future - RDMA (Part 2)
Win10 vscode code code format setting and remote breakpoint debugging
Installation and use of GTEST and gmock
Maker Hongmeng application development training 04
The C programming language -- (2nd) -- Notes -- 4.11.2
N ¨UWA: Visual Synthesis Pre-training for Neural visUal World creAtionChenfei
Arduino常见供电问题与解决