# eagle2com/Expander

Struggling with the filling -.-

BIN LaplaceInverse.sdf
Binary file not shown.
BIN LaplaceInverse.suo
Binary file not shown.
2 LaplaceInverse/src/LinearSystem.cpp
 @@ -63,7 +63,7 @@ void LinearSystem::DivideLine(int n, long double coef) } } -inline void LinearSystem::Add(int n, int m, long double value) +void LinearSystem::Add(int n, int m, long double value) { Set(n,m,Get(n,m) + value); }
2 LaplaceInverse/src/LinearSystem.h
 @@ -6,7 +6,7 @@ class LinearSystem ~LinearSystem(void); inline const long double Get(int n, int m); // line, column inline void Set(int n, int m, long double value); - inline void Add(int n, int m,long double value); + void Add(int n, int m, long double value); void Solve(void);
21 LaplaceInverse/src/TransferFunction.cpp
 @@ -52,7 +52,7 @@ void TransferFunction::FindFactors(void) denominator[i]->Print(); cout << endl; cout << "We will need "<GetMaxPower(); - if(power == 1) + for(int pow = 0; pow < denominator.size()*2-2;pow++) // -2: we ommit one factor { - - } - else if(power == 2) - { - - } - else - { - cout << "We have a higher than 2 power denominator, cannot solve, sorry :("<Get(pow); + if(!temp) + continue; + + linear_system.Add(pow+1,i*2,temp->coef); + linear_system.Add(pow,i*2+1,temp->coef); } } }