Discuss / Java / 强迫症

强迫症

Topic source

何梓猪

#1 Created at ... [Delete] [Delete and Lock User]

double r1 = (-b + Math.sqrt(Math.pow(b , 2) - 4 * a * c)) / (2 * a);

double r2 = (-b - Math.sqrt(Math.pow(b , 2) - 4 * a * c)) / (2 * a);

int r1 = (int)x1;

int r2 = (int)x2;

何梓猪

#2 Created at ... [Delete] [Delete and Lock User]

评论没有删除功能?好尴尬,变量名忘记改了。。。

double x1 = (-b + Math.sqrt(Math.pow(b , 2) - 4 * a * c)) / (2 * a);

double x2 = (-b - Math.sqrt(Math.pow(b , 2) - 4 * a * c)) / (2 * a);

int r1 = (int)x1;

int r2 = (int)x2;



  • 1

Reply