缩进改用空格;修复错误
This commit is contained in:
parent
8051c780e3
commit
502434e49a
1 changed files with 90 additions and 93 deletions
|
@ -156,9 +156,6 @@ int main()
|
||||||
double fa = 2 * pow(a, 3) - 4 * pow(a, 2) + 3 * a - 6;
|
double fa = 2 * pow(a, 3) - 4 * pow(a, 2) + 3 * a - 6;
|
||||||
double fc = 2 * pow(c, 3) - 4 * pow(c, 2) + 3 * c - 6;
|
double fc = 2 * pow(c, 3) - 4 * pow(c, 2) + 3 * c - 6;
|
||||||
while (fabs(2 * pow(c, 3) - 4 * pow(c, 2) + 3 * c - 6) >= t) {
|
while (fabs(2 * pow(c, 3) - 4 * pow(c, 2) + 3 * c - 6) >= t) {
|
||||||
if (fabs(fc) < t) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (fa * fc < 0) {
|
if (fa * fc < 0) {
|
||||||
b = c;
|
b = c;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue