新人求解。数据处理问题
p1 = a * A / (a - A);p2 = b * B / (b - B);
p3 = c * C / (c - C);
x4 = (p1 * x1 + p2 * x2 + p3 * x3) / (p1 + p2 + p3);
y4 = (p1 * y1 + p2 * y2 + p3 * y3) / (p1 + p2 + p3);
计算过程中,从监视里看
p1 = 0 p3=0 p2 = 0.00000000000000012246063538223773
p1 * x1 + p2 * x2 + p3 * x3 = 0.00000000000000012246063538223773
导致结果x4 = 1 而事实x4 = 0 。请问该如何解决这个问题?
这些变量都是double型的