This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://solutionarium.notion.site/ - решебник сборника задач и упражнений по математическому анализу Б.П. Демидовича | |
| https://t.me/solutionarium_demidovich - телеграм-канал с решениями задач из сборника задач и упражнений по математическому анализу Б.П. Демидовича |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <ctime> | |
| #include <fstream> | |
| using namespace std; | |
| void FillMatrix(int **matrix, const int rows, const int cols){ | |
| for (int i=0; i<rows; i++){ | |
| for (int j=0; j<cols; j++){ | |
| matrix[i][j]=rand()%15; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <iomanip> | |
| #include <cmath> | |
| using namespace std; | |
| int main(){ | |
| int n; | |
| cout << "Введите количество пар точек" << endl; | |
| cin >> n; | |
| double x[n], y[n], a, b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| using namespace std; | |
| double Function(double x){ | |
| return sin(x); | |
| } | |
| double Trapezoid_1 (double a, double b, double N){ //методом трапеций 1 | |
| double Integral = 0, delta_x = (b - a) / N; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| using namespace std; | |
| double f(double x){ | |
| return sin(x); | |
| } | |
| double rightDerivative (double x, double h){ | |
| double rightDer = (f(x+h) - f(x))/h; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <math.h> | |
| using namespace std; | |
| double foo(double x){ | |
| return log(x) - 5; | |
| } | |
| double SecantMethod(double x0, double x1, const double epsilon){ | |
| double x2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <math.h> | |
| using namespace std; | |
| double f(double x){ | |
| return log(x) - 5; | |
| } | |
| double rightDerivative (double x, double h){ | |
| double rightDer = (f(x+h) - f(x))/h; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <math.h> | |
| using namespace std; | |
| double f(double x){ | |
| return log(x)-3; //use your function | |
| } | |
| double BisectionMethod(double Xl, double Xr, double epsilon){ | |
| if (fabs(f(Xl)) < epsilon){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| void clearMemory(double** matrix, int size){ | |
| for (int i = 0; i < size; i++){ | |
| delete[] matrix[i]; | |
| } | |
| delete [] matrix; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| void PrintMatrix(int **matrix, const int size){ | |
| for (int i=0; i<size; i++){ | |
| for (int j=0; j<size+1; j++){ | |
| if (j<size) { | |
| cout << matrix[i][j] << "*X" << j+1 << " "; | |
| } | |
| else{ |
NewerOlder