⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mnewt.cwp.lib

📁 su 的源代码库
💻 LIB
字号:
MNEWT - Solve non-linear system of equations f(x) = 0 via Newton's methodmnewt	Solve non-linear system of equations f(x) = 0 via Newton's methodFunction Prototype:int mnewt (int maxiter, float ftol, float dxtol, int n, float *x, void *aux,	void (*fdfdx)(int n, float *x, float *f, float **dfdx, void *aux));Input:maxiter		maximum number of iterationsftol		converged when sum of absolute values of f less than ftoldxtol		converged when sum of absolute values of dx less than dxtoln		number of equationsx		array[n] containing initial guess of solutionaux		pointer to auxiliary parameters to be passed to fdfdxfdfdx		pointer to function to evaluate f(x) and f'(x)Output:x		array[n] containing solutionReturned:	number of iterations; -1 if failed to converge in maxiterInput to the user-supplied function fdfdx:n		number of equationsx		array[n] of x0, x1, ...aux		pointer to auxiliary variables required by fdfdx.Output from the user-supplied function fdfdx:f		array[n] of f0(x), f1(x), ...dfdx		array[n][n] of f'(x);  dfdx[j][i] = dfi/dxjAuthor:  Dave Hale, Colorado School of Mines, 06/06/91

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -