假设我有两个数据集:(1)数据框架:地方坐标,每个坐标都带有ID;(2)一个语言距离矩阵,它反映了这些地方之间的语言距离。# My data are similar to this structure id <- c("A","B","C","D","E")
x_coor <- c(0.5,1,1,1.5,2282.842712 1.414214 732.5
我正在试着检查一个三角形在C语言里是不是直角三角形。a、b和c是某些三角形的边的长度。int is_right_triangle(int a, int b, int c) return (a * a + b * b == c * c || a * a + c * c == b* b || b * b + c * c == a * a);如何在求和