代码搜索:相差法
找到约 10,000 项符合「相差法」的源代码
代码结果 10,000
www.eeworm.com/read/324255/13276936
cpp exercise_7.cpp
/*
幂法求矩阵的特征值和特征向量
1. 初始化矩阵,向量,误差
2. 置u=0。
3. 求xr=>λ
4. 计算
Y=X/λ,X=AY
5. 若|λ-u|
www.eeworm.com/read/318849/13471158
cpp 线性时间选择.cpp
#include
#include
using std::cout;
using std::cin;
using std::endl;
#define N 10
//用快速排序法随机化版本将数组分成两组,一直分到第i小的元素,输出这个元素
//快速排序随机化版本
int rand_partition(int a[],int
www.eeworm.com/read/313067/13597287
m 15-优化设计的分析与计算-1.m
% 例1-水槽定截面时周长最小的二维无约束优化
% 1----无约束优化函数命令程序
% 初始点
x0=[25;45];
% 调用梯度法搜索
[x,Fmin]=fminunc('sc_wysyh',x0);
disp ' ******** 输出最优解 ********'
fprintf (1,' 截面高度h x(1)
www.eeworm.com/read/307077/13731789
m ch10_2_2.m
%频率采样法
Hd = zeros(11,11); Hd(4:8,4:8) = 1;
[f1,f2] = freqspace(11,'meshgrid');
mesh(f1,f2,Hd), axis([-1 1 -1 1 0 1.2]), colormap(jet(64))
h = fsamp2(Hd);
figure, freqz2(h,[32 32]), axis([-1 1 -1
www.eeworm.com/read/307077/13731790
m ch10_2_3.m
%窗口法
%利用函数find1
Hd = zeros(11,11); Hd(4:8,4:8) = 1;
[f1,f2] = freqspace(11,'meshgrid');
mesh(f1,f2,Hd);
axis([-1 1 -1 1 0 1.2]), colormap(jet(64))
h = fwind1(Hd,hamming(11));
figure, freqz2(h,[
www.eeworm.com/read/304833/13785545
os_
OS,n.操作系统
oscillate,v.振动;彷徨
oscillation,n.振动;动摇
oscillator,n.振动者;发振器
oscillatory,adj.振动的;动摇的
oscillogram,n.示波图;波形图
oscillograph,n.示波器
oscillography,n.示波法
oscilloscope,n.示波镜;示波器
osculate,v.接
www.eeworm.com/read/304826/13786079
txt 06-24.txt
例6-24 cumsum函数采用求积法来求解积分。
解:在命令窗口中输入如下命令,并按Enter键确认。
>> x1=[1 2 3 4 5 6 7 8]
x1 =
1 2 3 4 5 6 7 8
>> cumsum(x1)
ans =
1 3 6 10 15 21 2
www.eeworm.com/read/302176/13840112
cpp fanmi.cpp
//二范数幂法
#include
#include
#include
#include
void main()
{
int i,j,k=0;
double b1=0,b2=0,sum2,sum3,err,a[3][3]={{6,-12,6},{-21,-3,24},{-12,-12,51}},u[
www.eeworm.com/read/153991/6294068
cpp vc0302.cpp
// Example 3.2:用牛顿迭代公式求平方根
#include //基本输入输出库
#include //数学运算库
#define EPS 1.0e-10
// 函数 newton_sqrt(): 用牛顿迭代法求平方根
double newton_sqrt(double x)
{
double x0, x1;
www.eeworm.com/read/389070/6353157
m c4_4.m
%C4_4.m
%用牛顿法求f(x)=0的一个根
function C4_4
ep=input('Tolerance:ep?');
x=input('Initial guess?');
a=input('多项式的系数(升幂排列):');
m=length(a);
n=0;
xb=x;
xp=0;
fprintf('It.No, x(n-1), y(n-1),