代码搜索:相差法
找到约 10,000 项符合「相差法」的源代码
代码结果 10,000
www.eeworm.com/read/363970/9927522
m gauss.m
function s=Gauss(a,b,x0,eps)
% Gauss-Seidel迭代法解线性方程组
% a为系数矩阵,b为方程组ax=b的右端项,x0为初值
if nargin==3
eps=1.0e-6;
elseif nargin
www.eeworm.com/read/363970/9927525
m gauss.m
function s=Gauss(a,b,x0,eps)
% Gauss-Seidel迭代法解线性方程组
% a为系数矩阵,b为方程组ax=b的右端项,x0为初值
if nargin==3
eps=1.0e-6;
elseif nargin
www.eeworm.com/read/416348/10002631
cpp ep2_14.cpp
/* 2.14 用迭代法求方程x*x+10cosx=0的根,误差限为10-5。迭代公式如下:
x'=(x*x-10*(x*sin(x+cos(x)))/(2*x-10*sin(x))
*/
#include
#include
using namespace std;
const double e=1e-5;
int main(){
d
www.eeworm.com/read/166632/10010604
m nagsint.m
function g=nagsint(fname,a,b,n,m)
%用途:定步长Gauss法求函数的积分
%格式:t=nagsint(fname,a,b,n,m) fname是被积函数,a,b分别为下上限,n为等份数
% m为每段Gauss点数
switch m
case 1
t=0, A=2;
case 2
t=[-1/sqrt(3), 1/sqrt
www.eeworm.com/read/361396/10055109
cpp rootleastsquaregeneralizedinverse1.cpp
//RootLeastSquareGeneralizedInverse1.cpp
//非线性方程组最小二乘解的广义逆法示例1
#include //输入输出流头文件
#include "LinearEquation.h" //线性方程组求解头文件
#include "NonLinearEquation.h" //非线性方程(组)求解头文件
using n
www.eeworm.com/read/361396/10055116
cpp rootquasinewton.cpp
//RootQuasiNewton.cpp 拟牛顿法求解非线性方程组一组实根
#include //输入输出流头文件
#include "polynomials.h" //多项式及连分式求值头文件
#include "NonLinearEquation.h" //非线性方程(组)求解头文件
using namespace std; //名字空间
www.eeworm.com/read/361396/10055121
cpp rootleastsquaregeneralizedinverse2.cpp
//RootLeastSquareGeneralizedInverse2.cpp
//非线性方程组最小二乘解的广义逆法示例2
#include //输入输出流头文件
#include "LinearEquation.h" //线性方程组求解头文件
#include "NonLinearEquation.h" //非线性方程(组)求解头文件
using
www.eeworm.com/read/359637/10132355
m federal_rk1.m
function federal_rk
%状态方程正向用微分方程法解算
%global Re e wie g0 ppm ug deg min sec hur dph PKG PKA %全局变量
glb;
tt = 0.02; %龙格-库塔步长
Gt = w/sqrt(tt/2); %在数值解法中,系统噪声离散化
fi
www.eeworm.com/read/163671/10151149
m rightf.m
%右函数定义的,用于单步龙格库塔法计算。
%如果需要使用全局变量,要使用global定义。
% 这种格式的,也完全可以被ode45函数调用。
function dy = rightF(t,y) % right functions
global XNC VM;
dy = zeros(5,1); % a column vector
dy(1) = XNC/VM;
dy(
www.eeworm.com/read/355433/10266262
m 画球求解.m
%主程序
global zu1 ok; %定义全局变量
[O,F,M,E]=fminimax(@(X) leida(X),[-25193 6129 24100]) %应用画球法求解目标位置
plot3(zu1(:,1),zu1(:,2),zu1(:,3),'*')
hold on
plot3(ok(:,1),ok(:,2),ok(:,3),'.k')
x0