代码搜索结果
找到约 10,000 项符合
7 的代码
ch7_7.cpp
//*********************
//** ch7_7.cpp **
//*********************
#include
int maximum(int[][4],int,int);
void main()
{
int sg[3][4]={{68,77,73,86},
examp7_7.m
t_final=100; x0=[0;0;1e-10];
[t,x]=ode45('lorenzeq',[0,t_final],x0);plot(t,x),
figure; % 打开新图形窗口
plot3(x(:,1),x(:,2),x(:,3));
axis([10 42 -20 20 -20 25]); % 根据实际数值手动设置坐标系
comet3(x(:,1),x(:,2)
plot_7_7.m
% make figure 7.7
Z2=zeros(4,491);
load run2
tail=[0 5 8 66];
z=sum(real(E).^2,2);
[y ind]=sort(z);
newE=E(ind,:);
for i=1:4,
Z2(i,:)=sum((real(newE(1:400-tail(i),:)).^2))/(400-tail(i));
lind7-7.c
#include
int a[100][100];
int i,j,z,n;
getn()
{
printf("Please input n(n%2==1).\n");
scanf("%d",&n);
if(n%2==0)
{
printf("A fault number.\n\n");
getn();
return;
}
e
ex7_7.m
G=tf(10, [1,10,35,50,24]);
[k,L,T]=getfod(G); [k,L,T]
[Gc1,Kp3,Ti3,Td3]=ziegler(3,[k,L,T,10]); [Kp3,Ti3,Td3]
[k,L,T]=getfod(G,1); [k,L,T]
[Gc2,Kp4,Ti4,Td4]=ziegler(3,[k,L,T,10]); [Kp4,Ti4,Td
l7_7.cpp
//用普里姆算法求无向网的最小生成树
#include
const int n=6; //定义网中顶点数
const int e=10; //定义网中边数
struct edgeset //定义一条生成树的边
{ int fromvex; //边的起点
int endvex;
algo7-7.cpp
// algo7-7.cpp 实现算法7.16的程序
#define MAX_NAME 5 // 顶点字符串的最大长度+1
#define MAX_INFO 20 // 相关信息字符串的最大长度+1
typedef int VRType;
typedef char VertexType[MAX_NAME];
typedef char InfoType;
#include"