代码搜索结果
找到约 10,000 项符合
7 的代码
al7_7.c
/*案例代码文件名:AL7_7.C*/
/*功能:数组名作为函数参数,求平均成绩*/
float aver(float a[ ]) /*定义求平均值函数,形参为一浮点型数组名*/
{int i;
float av,s=a[0];
for(i=1;i
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"
chap7_7.mdl
Model {
Name "chap7_7"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
chap7_7.mdl
Model {
Name "chap7_7"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
app7_7.java
// app7_7, 调用method并传递参数
class CCircle // 定义类CCircle
{
double pi=3.14; // 将数据成员赋值初值
quiz7_7.java
class A { }
class B extends A { }
public class Quiz7_7 {
public static void main( String[] args ) {
A a = new A();
System.out.println( a instanceof B );
}
}
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"
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
ex7_7.m
a=[1,2,-2;1,1,1;2,2,1];
b=[9;7;6];
[x,n]=jacobi(a,b,[0;0;0])
[x,n]=gauseidel(a,b,[0;0;0])