-
一个计算光子晶体的程序,Fortran语言编写,学习光子晶体方向的很好的参考程序...
一个计算光子晶体的程序,Fortran语言编写,学习光子晶体方向的很好的参考程序-A procedure for calculating the photonic crystal, Fortran languages, study of photonic crystal the direction of a good reference procedures
- 2022-01-25 15:34:56下载
- 积分:1
-
在许多情况下我们需要的算法如密码字典穷举组合..
在许多情况下我们需要穷举组合的算法,比如密码词典。这个算法的关键是密码下标进位的问题。另外本例子中的写文件语句效率比较低,为了降低算法复杂度没有优化。如果要提高写文件的效率,可以使用缓冲区,分批写入。-in many cases we need exhaustive combination of algorithms such as password dictionary. The algorithm is the key indices into password-issue. Another example of this document written statement low efficiency, in order to reduce the complexity of the algorithm has not been optimized. If the document was to improve the efficiency, the use of buffer zones, into batches.
- 2022-03-20 01:48:47下载
- 积分:1
-
贪吃蛇matlab程序
用matlab描写贪吃蛇的程序,简单易学,可以在此基础上,丰富贪吃蛇的长度,在转弯处还可以做文章
- 2022-01-23 10:31:35下载
- 积分:1
-
PSO的UPFC
粒子群算法在UPFC中的应用
- 2023-03-27 04:20:03下载
- 积分:1
-
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是...
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是2 个正整数,a≤b,找出a 和b之间约数个数最多的数x。
对于给定的2 个正整数a≤b,编程计算a 和b 之间约数个数最多的数。
数据输入
输入数据由文件名为input.txt的文本文件提供。文件的第1 行有2 个正整数a和b。
结果输出
程序运行结束时,若找到的a 和b 之间约数个数最多的数是x,将div(x)输出到文件output.txt中。
输入文件示例 输出文件示例
input.txt output.txt
1 36 9
-Positive integer x can be about a few of the positive integer x divisible. Positive integer x the approximate number recorded as the number of div (x). For example, 1,2,5,10 are about 10 positive integer number, and div (10) = 4. Set a and b are two positive integers, a ≤ b, to find a and b between about a few number of the largest number of x. For a given two positive integers a ≤ b, Programming calculated a and b between about a few number of the largest number. Data entry input data from the document text file named input.txt provide. File line 1 has two positive integers a and b. The results run the end of the output, if found between a and b of about a few number o
- 2023-04-13 05:20:03下载
- 积分:1
-
两个序列的循环卷积,大家可以对比参考一哈
两个序列的循环卷积,大家可以对比参考一哈-two sequences circular convolution, we can contrast a reference to Kazakhstan
- 2022-01-26 16:28:08下载
- 积分:1
-
基于verilog编写的ram冒泡排序程序
应用背景本程序是基于verilog编写的ram冒泡排序程序,可将任意输入的16个64比特的数进行排序,仿真都通过,可在其上修改进行更大数据量的排序,对开发FPGA有很大的借鉴意义关键技术利用冒泡排序实现的verilog程序,通过构建状态机实现,可由FPGA开发板实现,本程序是对16个数进行排序,可在其上进行任意数任意大小的扩充
- 2022-11-26 19:35:06下载
- 积分:1
-
数值计算,表达式求值, 如计算3 + 2 * ( 3 + 2) / 5 + 8 + Sin( pi() / 180 * 30 ) + 1 + 2 ^ 10, 可...
数值计算,表达式求值, 如计算3 + 2 * ( 3 + 2) / 5 + 8 + Sin( pi() / 180 * 30 ) + 1 + 2 ^ 10, 可自定义函数, 采用递归算法-numerical calculation, in the expression evaluates, as calculated 3 2* (2)/5 8 Sin (pi ()/180* 30) 1 2 ^ 10,- defined functions using recursive algorithm
- 2022-01-26 05:01:19下载
- 积分:1
-
帝国主义的竞争算法
ICA 是新型的全局搜索的启发式算法使用帝国主义和帝国主义比赛过程作为灵感的来源。我们已经开发了这个算法在控制和智能化加工的卓越中心,欧洲经委会大学学院的牢。有关这种算法的详细信息可以在我的主页中找到:
- 2022-11-06 10:15:04下载
- 积分:1
-
飞船相对测站的位置矢量单位矢量在赤道坐标系中的三个分量...
飞船相对测站的位置矢量单位矢量在赤道坐标系中的三个分量-Spacecraft relative position vector of the station unit vector in the equatorial coordinate system of the three subscales
- 2023-04-17 08:30:03下载
- 积分:1