#include<cstdio>
#include<cstdlib>
#include<cmath>
#define eps 1e-8
#define max 1000000
struct Point
{
float x ;
float y ;
};
Point point[max];
using namespace std ;
int main()
{
int n = 0 ;
state:
printf("请输入点的个数(上限不要超过1000,000):/n");
scanf("%d",&n) ; //input the number of points
while(n<3)
{
printf("输入点个数小于三个,无法确定唯一圆,请重新输入!/n");
scanf("%d",&n);
}
double sum_x = 0 ;
double sum_y = 0 ;
double sum_xy = 0 ;
double sum_x_2 = 0 ;
double sum_y_2 = 0 ;
double sum_x_
最小拟合圆
最新推荐文章于 2024-09-19 09:44:39 发布