文件名称:Fibonacci
-
所属分类:
- 标签属性:
- 上传时间:2013-03-15
-
文件大小:1.94kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
(1)编写一个矩阵操作类库,具体实现要求如下:
实现构造函数动态创建不同大小的二维矩阵m*n
实现函数完成两个矩阵的相加、求差与矩阵各个元素相乘运算;
实现函数可以得到矩阵中指定元素数值。
(2)Fibonacci数列是一个自然数数列,第1项和第2项均为1,从第3项开始,F(n)= F(n-1)+ F(n-2).定义一个数组,前两个元素初始化为Fibonacci数列的第1,2项,求出数列的前20项。-(1) the preparation of a matrix operation class libraries, specific requirements are as follows: the constructor to dynamically create two-dimensional matrix of size m* n function completes the addition of two matrices, differencing the individual elements of the matrix multiplication The function can be specified element numerical matrix. (2) the Fibonacci series is a natural number sequence, 1 and 2 Xiang are from the 3, F (n) = F (n-1)+ F (n-2). Definition of an array, Fibonacci sequence in the first two elements are initialized to 1 and 2, find the number of columns 20.
实现构造函数动态创建不同大小的二维矩阵m*n
实现函数完成两个矩阵的相加、求差与矩阵各个元素相乘运算;
实现函数可以得到矩阵中指定元素数值。
(2)Fibonacci数列是一个自然数数列,第1项和第2项均为1,从第3项开始,F(n)= F(n-1)+ F(n-2).定义一个数组,前两个元素初始化为Fibonacci数列的第1,2项,求出数列的前20项。-(1) the preparation of a matrix operation class libraries, specific requirements are as follows: the constructor to dynamically create two-dimensional matrix of size m* n function completes the addition of two matrices, differencing the individual elements of the matrix multiplication The function can be specified element numerical matrix. (2) the Fibonacci series is a natural number sequence, 1 and 2 Xiang are from the 3, F (n) = F (n-1)+ F (n-2). Definition of an array, Fibonacci sequence in the first two elements are initialized to 1 and 2, find the number of columns 20.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.2/.classpath
1.2/.project
1.2/.settings/org.eclipse.jdt.core.prefs
1.2/bin/Fibonacci.class
1.2/src/Fibonacci.java
1.2/.settings
1.2/bin
1.2/src
1.2
1.2/.project
1.2/.settings/org.eclipse.jdt.core.prefs
1.2/bin/Fibonacci.class
1.2/src/Fibonacci.java
1.2/.settings
1.2/bin
1.2/src
1.2
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.