Task 1 is done
This commit is contained in:
parent
f7e5c0b877
commit
23eff9e484
19 changed files with 553 additions and 10 deletions
|
@ -26,34 +26,34 @@ double f1 (double x)
|
|||
|
||||
double f2 (double x)
|
||||
{
|
||||
double x_2 = x * x;
|
||||
// double x_2 = x * x;
|
||||
cl++;
|
||||
return 4 - x_2;
|
||||
return 4 - x * x;
|
||||
}
|
||||
|
||||
double f3 (double x)
|
||||
{
|
||||
double x_2 = x * x;
|
||||
double x_3 = x * x_2;
|
||||
//double x_2 = x * x;
|
||||
//double x_3 = x * x_2;
|
||||
cl++;
|
||||
|
||||
return x_3 + 3 * x_2 + 16;
|
||||
return x * x * x + 3 * x * x + 16;
|
||||
}
|
||||
|
||||
double f4 (double x)
|
||||
{
|
||||
double x_2 = x * x;
|
||||
double x_4 = x_2 * x_2;
|
||||
//double x_2 = x * x;
|
||||
//double x_4 = x_2 * x_2;
|
||||
cl++;
|
||||
|
||||
return 3 - 2 * x_2 - x_4;
|
||||
return 3 - 2 * x * x - x * x * x * x;
|
||||
}
|
||||
|
||||
double f5 (double x)
|
||||
{
|
||||
double sq_x = sqrt(fabs(x) + 1);
|
||||
//double sq_x = sqrt(fabs(x) + 1);
|
||||
cl++;
|
||||
return sq_x - 2;
|
||||
return sqrt(fabs(x) + 1) - 2;
|
||||
}
|
||||
|
||||
double f6 (double x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue