Здравствуйте, нужна блок-схема к коду:
double MethodOfHalving(double a, double b, int& k, func res, int max) {
k = 1;
while ( k eps)
{
if ((res(a) * res((a + b) / 2) < 0)) b = (a + b) / 2;
if ((res(b) * res((a + b) / 2) < 0)) a = (a + b) / 2;
if (res(a) == 0) return(a);
if (res(b) == 0) return(b);
k++;
}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2025 SCHOLAR.TIPS - All rights reserved.