-
JavaScript重写C语言为mt19937
MT19937的javascript:Real number version genrand()为每个调用生成一个伪随机实数(double),它均匀分布在[0,1]间隔上。sgenrand(seed)将初始值设置为624个字的工作区。在genrand()之前,sgenrand(seed)必须是
- 2022-01-25 22:46:57下载
- 积分:1
-
一种使用经典GP算法计算关联维数的程序源代码,比较好用!
一种使用经典GP算法计算关联维数的程序源代码,比较好用!-A classical GP algorithm using the correlation dimension of the source code, more easy to use!
- 2022-07-13 15:06:16下载
- 积分:1
-
蒙特卡洛方法求PI
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Threading;
namespace WinRandomPI
{
public partial class GetPIValue : Form
- 2022-03-13 01:46:26下载
- 积分:1
-
viterbi编译码
卷积码的编译码,信道为AWGN信道,BPSK调制,码率为1/2,译码为viterbi硬判决,并画出了BER的曲线
- 2022-12-23 16:50:03下载
- 积分:1
-
哈希表实现
哈希表实现- The Hasche table realizes
- 2022-12-11 02:35:02下载
- 积分:1
-
混合SPMD 模拟退火算法及其应用
混合SPMD 模拟退火算法及其应用-mixed SPMD simulated annealing algorithm and its application
- 2022-04-18 19:05:36下载
- 积分: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
-
K-means聚类算法
k-means聚类算法 机器学习 数据分析K-means算法是将样本聚类成k个簇(cluster)
- 2022-03-24 08:12:07下载
- 积分:1
-
用蒙特卡罗方法求积分的小程序,可以设置求解精度
用蒙特卡罗方法求积分的小程序,可以设置求解精度-using the Monte Carlo method for the integration of small procedures, the setting up of Accuracy
- 2022-12-06 16:30:02下载
- 积分:1
-
VB编写的赫斯特指数计算程序
利用Visual Basic语言编写的赫斯特指数计算程序,请多多指教!
- 2022-01-26 08:30:26下载
- 积分:1