-
5
说明:
★问题描述:
给出平面上的N 个二维点,求出距离最小的2 个点对。本题中距离定义为他们的直
线距离。例如(0,0) (3,4)的距离为5.
★数据输入:
有多组数据,对于每组数据,第一行是一个数字N 表示点的个数。N=0 的时候说明
输入结束。之后N 行,每行有2 个浮点数x_i,y_i 表示第i 个点的坐标。(1<=N<=10000
0,0<=|x_i|,|y_i|<=10^9)
★结果输出:
输出一个浮点数,表示最近点对的距离除以2,保留2 位小数(四舍五入)。
- 2013-12-03 14:57:02下载
- 积分:1
-
Finite element mesh generation
全面介绍有限元网格生成算法的英文教材,可以作为网格生成算法的编程资料(finite element mesh generation has not been taken as a formal subject of teaching in universities,as it encompasses several disciplines including classical geometry, computational geometry and topology, finite element method, data structures and algorithms, computer programming and, to a certain extent, even computer graphics.)
- 2018-01-29 10:55:18下载
- 积分:1
-
equation
线性方程组的计算,采用的是高斯消元法来实现的。只有主要的算法代码,没有写主函数(Calculation of linear equations using the Gauss elimination method to achieve. Only the main algorithm code, did not write the main function)
- 2010-08-05 19:34:04下载
- 积分:1
-
源代码3一元线性回归
一元线性回归,数值分析方面可参考(one yuan linear regression, numerical analysis can look at the reference)
- 2021-05-09 16:58:35下载
- 积分:1
-
传递熵的计算方法jidt-master
多种传递熵的计算方法,包括离散和连续信号的传递熵计算,包括多种核函数(JIDT: An information-theoretic to olkit for studying the dynamics of complex systems)
- 2016-07-07 10:04:22下载
- 积分:1
-
orthofit
对离散点进行多项式拟合,不同于传统多项式拟合高次出现病态,此程序可以拟合高阶多项式( ORTHOFIT Fit polynomial to data.
YS = ORTHOFIT(X,Y,N) smooths/fits data Y(X) in a least-squares sense
using a polynomial of degree N and returns the smoothed data YS.)
- 2021-02-14 15:49:49下载
- 积分:1
-
MUSCL-master
说明: 利用muscl格式求解可压缩多相流,采用minimod,vanabada限制器(Using muscl scheme to solve the compressible multiphase flow, using Minimod, vanabada limiter)
- 2020-04-22 11:46:10下载
- 积分:1
-
dcl2
电磁炉原理及维修请大家参考,如有问题,请与我联系(Induction Principle and maintenance please refer to, if there are questions, please contact me)
- 2007-11-15 23:39:14下载
- 积分:1
-
pre-distortion
针对功放得到非线性失真,采用查表法预失真对功放的非线性进行补偿,仿真表明了补偿方式的有效性。(Obtained for nonlinear distortion amplifier, using the look-up table predistortion to compensate for non-linear power amplifier, simulation shows the effectiveness of compensation.)
- 2013-11-20 16:15:34下载
- 积分:1
-
9.2.2
最小二乘法拟合形如f(x)=(a+bx)/(1+cx)的函数(9.2.2(1)),并解决人口预测问题(9.2.2(2))(Least squares fit of the form f (x) = (a+bx)/(1+cx) function (9.2.2 (1)), and to solve the population prediction problem (9.2.2 (2)))
- 2021-01-01 14:38:58下载
- 积分:1