㈠ MATLAB EIG命令好像与线性代数中的不太一样啊
这里的V是矩阵,而不是列向量,它的列向量才是所谓本征向量。
你把线代里的关系写错了,应该依然是AV=VD。
㈡ 数据库填空题
1.共享、统一管理;2,逻辑模式;3 关系模式,逻辑模式,存储模式 ;4函数依赖,等价 5差 6数据完整性规则 7数据库安全 8外键 9 ;10人工管理,文件系统,数据库;11select,update,delete;12 实体完整性规则;13 行列子集视图 14并,差,交,笛卡尔积;15 数据查询,数据更新
㈢ 数据库 关系代数
Every database management system must define a query language to allow users to access the data stored in the database.Relational Algebrais a proceral query language used to query the database tables to access data in different ways.
每个数据库管理系统都必须定义一种查询语言,以允许用户访问存储在数据库中的数据。关系代数是一种过程查询语言,用于查询数据库表以不同方式访问数据。
In relational algebra, input is a relation(table from which data has to be accessed) and output is also a relation(a temporary table holding the data asked for by the user).
在关系代数中,输入是一个关系(必须从中访问数据的表),而输出也是一个关系(一个保存用户要求的数据的临时表)。

Relational Algebra works on the whole table at once, so we do not have to use loops etc to iterate over all the rows(tuples) of data one by one. All we have to do is specify the table name from which we need the data, and in a single line of command, relational algebra will traverse the entire given table to fetch data for you.
关系代数可一次在整个表上工作,因此我们不必使用循环等来遍历数据的所有行(元组)。 我们要做的就是指定要从中获取数据的表名,并且在单行命令中,关系代数将遍历整个给定表以为您获取数据。
㈣ 在代数中A的秩怎么在电脑中打出
你是要算出来,还是文档打出来
1 这个要一些软件来实现,比如maple,matlab,命令都是det(A)
2 文档的话,不专业的直接中文写就行,用det(A)表示也行,专业的用winedit,mathtype(写论文)他有内置的大量符号可以用
㈤ 线性代数(需要matlab命令)问题求解
>> m = ~eye(5) %m的传递矩阵m(i,j)=1表示i可以传给j
m =
0 1 1 1 1
1 0 1 1 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 0
>> n4 = m^4; %n4是4次传递矩阵
>> n4(1,1) %1传给1有52种方法
ans =
52
>> n2 = m^2; %2次传递矩阵
>> n3 = m^3; %3次传递矩阵
>> m(1,2) + n2(1,2) + n3(1,2) %17种
ans =
17
㈥ matlab中 a=[1,2,3;4,5,6;7,8,9] b=a(3:-1:1,1:3) 这个是什么意思
a=[1,2,3;4,5,6;7,8,9]表示的是输入矩阵a,第一行是1,2,3;第二行是4,5,6;第三行是7,8,9 。
b=a(3:-1:1,1:3)表示b等于a矩阵的第3、2、1行,所有列,就是b是a上下翻转的矩阵,相当于b=flipud(a)。

(6)在命令代数中扩展阅读:
matlab的优势特点:
1、 高效的数值计算及符号计算功能,能使用户从繁杂的数学运算分析中解脱出来。
2、具有完备的图形处理功能,实现计算结果和编程的可视化。
3、友好的用户界面及接近数学表达式的自然化语言,使学者易于学习和掌握。
4、 功能丰富的应用工具箱(如信号处理工具箱、通信工具箱等) ,为用户提供了大量方便实用的处理工具。
㈦ 代数汇编指令集当中没有除法指令,请问除法该怎么实现呢
怎么没有不是有DIV指令嘛,
mov ax,16
mov bl,5
div bl
不过不用他也没关系,
效率高点的话可以用移位指令如果是除1.2.4.8.。。。的话
比如
1)16/2可以换成mov ax,16
ral ax,1
2)16/4
ral ax,2
3)16/8
ral ax,3
㈧ 线性代数中的符号如何输入
在Word中输入公式(符号),请用自带的公式编辑器,单击菜单【插入】,【对象】,选择”microsoft 公式编辑3.0”,打开公式编辑器后根据需要输入即可。或者下载安装Mathtype公式编辑器。功能比Microsoft 公式编辑器多,使用方法一样。
㈨ 如何在命令行中使用intel c++编译器,并使用openmp和mkl来编译自己的程序,并运算
1、icc
Intel C/C++编译器接受遵守ANSI C/C++ , ISO C/C++ standards,GNU inline ASM for IA-32 architecture标准的输入。与linux下常用的gcc兼容并支持更大的C语言扩展,包括源文件、命令行参数、目标文件。不支持gcc的inline方式的汇编。例,f.c
#include<stdio.h>
int main(int argc, char* argv[]){
printf("Hello\n");
return 0;
}
编译:icc -c f.cpp -o f.o
链接:icc f.o -o f
运行:./f
注意,编译与链接都由icc来完成,icc常用命令行参数:
-o 输出文件命名
-I include路径
-L lib路径
-l 包含的lib名
-c 仅生成目标文件(*.o),不链接
-On n=0,1,2,3 编译器优化选项,n=0关闭编译器优化,n=3使用最激进的优化
-c99[-] 打开/关闭 c99规范的支持
详细的请参照icc的manpage.
2、ifort
Intel Fortran编译器支持F77/90/95标准并与CFV(Compaq Visual Fortran)兼容。例,f.f90
program f
print *, "Hello"
stop
end
编译:ifort -c f.f90 -o f.o
链接:ifort f.o -o f
运行:./f
编译与连接同样由ifort来完成,ifort常用命令行参数:
-o 输出文件命名
-I include路径
-L lib路径
-l 包含的lib名
-c 仅生成目标文件(*.o),不链接
-On n=0,1,2,3 编译器优化选项,n=0关闭编译器优化,n=3使用最激进的优化
-std90 使用F90标准编译
-std95 使用F 95标准编译
-f77rtl 编译使用F77运行方式的代码(用于解决特殊问题)
These options optimize application performance for a particular Intel? processor or family of processors. The compiler generates code that takes advantage of features of the specified processor.
Option
Description
tpp5 or G5 Optimizes for Intel? Pentium? and Pentium? with MMX? technology processors.
tpp6 or G6 Optimizes for Intel? Pentium? Pro, Pentium? II and Pentium? III processors.
tpp7 or G7 Optimizes for Intel? Pentium? 4, Intel? Xeon?, Intel? Pentium? M processors, and Intel? Pentium? 4 processors with Streaming SIMD Extensions 3 (SSE3) instruction support.
On Intel? EM64T systems, only option tpp7 (Linux) or G7 (Windows) is valid.
About tpp:
http://www.ncsa.illinois.e/UserInfo/Resources/Software/Intel/Compilers/9.0/main_for/mergedProjects/copts_for/common_options/option_tpp567_g567.htm
https://wiki.ke.e/display/SCSC/Compilers+and+Libraries
Intel Fortran Compiler Options: http://geco.mines.e/guide/ifort.html
Intel(R) Fortran Compiler Options: http://www.rcac.pure.e/userinfo/resources/common/compile/compilers/intel/man/ifort.txt
ifort编译器提供了非常多的优化参数
$ ifort --help | more 查看就可以
也可以定位到某个参数
$ifort --help | grep -5 '-mkl'
-5表示显示查找到的行及下面5行的内容。
3、Intel MKL数学库针对Intel系列处理器进行了专门的优化,主要包含的库有:
基本线形代数运算(BLAS)
向量与向量、向量与矩阵、矩阵与矩阵的运算
稀疏线形代数运算
快速傅立叶变换(单精度/双精度)
LAPACK(求解线形方程组、最小方差、特征值、Sylvester方程等)
向量数学库(VML)
向量统计学库(VSL)
高级离散傅立叶变换
编译:
icc multi.c -I/opt/intel/mkl/include –L/intel/mkl/lib –lmpi_ipf –o multi
4、MPI程序编译
消息传递接口(MPI)并行程序设计模型程序的编译命令。例,f.c
include<stdio.h>
#include<mpi.h>
main(argc,argv)
int argc;
char *argv[];
{
char name[BUFSIZ];
int length;
MPI_Init(&argc,&argv);
MPI_Get_processor_name(name, &length);
printf("%s: hello world\n", name);
MPI_Finalize();
}
编译与连接均使用mpicc,参数与mpicc中定义的编译器相同,这里与icc相同。
mpicc –c hello.c –o hello.o
mpicc hello.o –o hello
运行使用mpirun 命令,将运行需要的节点定义在文件中并在-machinfile中制定。
文件: nodelist
node1
node1
node2
node3
运行:
$mpirun –machefile nodelist –np 4 ./hello
node1: hello world
node1: hello world
node2: hello world
node3: hello world
5、32位向64位的移植
32位程序到64位移植中应注意的常见问题:
数据截断:
由于long类型变量的运算(赋值、比较、移位等)产生。long定义在x86上为32bits,而在ia64上为64bits.容易在与int型变量运算时出现异常。
处理方法:尽量避免不同类型变量间的运算,避免将长度较长的变量赋值到较短的变量中,统一变量长度可以解决这个问题。简单的对于32位转移到64位可以将所有long定义转换为int定义。