New structure
This commit is contained in:
31
include/Solver.h
Normal file
31
include/Solver.h
Normal file
@@ -0,0 +1,31 @@
|
||||
// Особенности MSVC
|
||||
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
|
||||
|
||||
#pragma once
|
||||
#include <experimental/filesystem>
|
||||
using namespace std;
|
||||
using namespace std::experimental::filesystem;
|
||||
|
||||
class Solver {
|
||||
private:
|
||||
// Коэффициенты в ДУ
|
||||
double A, B, C, D;
|
||||
// Длина конечного элемента
|
||||
double L;
|
||||
// Количество конечных элементов
|
||||
int N;
|
||||
// Границы частного решения ДУ
|
||||
int upper, lower;
|
||||
public:
|
||||
Solver(double _A, double _B, double _C, double _D, int _N, int _l, int _u);
|
||||
void Execute_Linear(double value_1, double value_2);
|
||||
void Execute_Cubic(double value_1, double value_2);
|
||||
|
||||
bool check_path(string path) {
|
||||
return exists(path);
|
||||
}
|
||||
|
||||
void make_path(string path) {
|
||||
create_directory(path);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user