I hate GU3

This commit is contained in:
2025-10-02 15:46:22 +03:00
parent 1fc2925f8f
commit 1585c76980
2 changed files with 26 additions and 17 deletions

View File

@@ -1,12 +1,18 @@
#include "Header.h"
#include "Solver.h"
#include <Eigen/Dense>
#define A 5.
#define B 4.
#define C 0.
#define D 1.
using namespace Eigen;
int main() {
Solver slv(5., 4., 0., 1., 30, 0, 10);
std::cout << A << "u''" << " + " << B << "u'" << "+ " << C << "u + " << D << " = 0" << std::endl;
Solver slv(5., 4., 0., 1., 2, 0, 10);
std::cout << "Linear element:";
slv.Execute_Linear(0, 5);
std::cout << "\nCubic element:";
slv.Execute_Cubic(0, 5);
//slv.Execute_Cubic(0, 5);
return 0;
}