-
Finds the polynomial p10 of degree less than or equal to 10 that interpolates...
Finds the polynomial p10 of degree less than or equal to 10 that interpolates
cos x on the interval [0, PI/2] at 11 equally spaced points. Study the error betwee
between the function and the polynomial at 41 equally spaced points over the
same interval. Repeat the latter but use your 11 points to be Chebyshevs.
- 2022-06-21 05:46:33下载
- 积分: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
-
Blei 03年lda实现
代码是blei03年经典paper主题模型的实现——LDA。代码在linux下运行,且LDA是目前主题模型的主流算法之一,是pLSI的进化版本,主要涉及贝叶斯公式、狄利克雷分布等概率知识,能从大量文本中自动提取出隐含在背后的语义主题。
- 2022-01-26 18:47:42下载
- 积分:1
-
Stack在 c中
Stack在 c中
- 2022-01-22 15:11:41下载
- 积分:1
-
径向基RBF多维空间插值算法,用于空间散乱点曲面重建,优于多项式插值...
径向基RBF多维空间插值算法,用于空间散乱点曲面重建,优于多项式插值-RBF RBF multidimensional spatial interpolation algorithm for space scattered surface reconstruction, better than polynomial interpolation
- 2022-10-05 20:15:03下载
- 积分:1
-
数据挖掘中的聚合层次聚类算法,有完整的注释
数据挖掘中的聚合层次聚类算法,有完整的注释-Data Mining syndication hierarchical clustering algorithm, a complete Notes
- 2022-08-09 09:21:49下载
- 积分:1
-
dijkstra求最短路
dijkstra求最短路:最短路问题是重要的最优化问题之一,它不仅可以直接应用于解决实际的许多问题,如管道铺设、线路安排、厂区布局、设备更新等,而且经常被作为一个基本工
具,用于解决其他问题。对于两点间的距离大于或者等于0的问题而言,目前公认的最好的方法是由Dijkstra于1959年提出来的。
- 2022-09-09 03:25:03下载
- 积分:1
-
用vc++实现三角函数的求值,可以求sin cos以及反三角函数的值
用vc++实现三角函数的求值,可以求sin cos以及反三角函数的值-vc used for the realization of trigonometry values can help sin cos Anti-trigonometric functions and values
- 2022-07-11 20:44:30下载
- 积分:1
-
Kruskal 算法
懂得此源代码演示Kruskal 生成树算法
- 2023-08-13 07:00:03下载
- 积分:1
-
C++ Language matrix used in computation, very good, with the reference value.
用C++语言实现矩阵的常用运算,非常不错,具有参考价值。-C++ Language matrix used in computation, very good, with the reference value.
- 2023-02-10 08:20:03下载
- 积分:1