forked from ParkSuMin/MemMAPR-MKE
Start solver with new arguments
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#include "Header.h"
|
||||
#include "Solver.h"
|
||||
|
||||
#include <Eigen/Dense>
|
||||
using namespace Eigen;
|
||||
int main() {
|
||||
Solver slv(3., 2., 5., 20, 1, 6);
|
||||
Solver slv(5., 4., 0., 1., 30, 0, 10);
|
||||
std::cout << "Linear element:" << std::endl;
|
||||
slv.Execute_Linear(-5, -10);
|
||||
std::cout << "\nCubic element:" << std::endl;
|
||||
slv.Execute_Cubic(-5, -10);
|
||||
slv.Execute_Linear(0, 5);
|
||||
//std::cout << "\nCubic element:" << std::endl;
|
||||
//slv.Execute_Cubic(0, 5);
|
||||
return 0;
|
||||
}
|
||||
5
Solver.h
5
Solver.h
@@ -1,10 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
class Solver {
|
||||
private:
|
||||
double A, B, C, L, dx;
|
||||
double A, B, C, D, L, dx;
|
||||
int N, upper, lower;
|
||||
public:
|
||||
Solver(double _A, double _B, double _C, int _N, int _l, int _u);
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user