Click here to Skip to main content
16,018,637 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
CPallini8-Jul-10 9:22
mveCPallini8-Jul-10 9:22 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
Dr.Walt Fair, PE8-Jul-10 18:09
professionalDr.Walt Fair, PE8-Jul-10 18:09 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
CPallini8-Jul-10 21:22
mveCPallini8-Jul-10 21:22 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
Tim Craig8-Jul-10 21:38
Tim Craig8-Jul-10 21:38 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
CPallini8-Jul-10 22:19
mveCPallini8-Jul-10 22:19 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
Dr.Walt Fair, PE9-Jul-10 4:06
professionalDr.Walt Fair, PE9-Jul-10 4:06 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
CPallini9-Jul-10 4:22
mveCPallini9-Jul-10 4:22 
GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations Pin
Emilio Garavaglia10-Jul-10 4:29
Emilio Garavaglia10-Jul-10 4:29 
Yes, but you can solve

x + y  = 2 + a
x - y  = 0 + b
x + 3y = 4 + c


to find the x and y that makes a2+b2+c2 the minimum possible.

Clearly they will be not the "solution" of the system, but the value that minimize the "error" in having AX != B

Also note that - even in case of linear dependency - the method works well (it just gives the solution with a null minimum squared error, that is the -at that point- one and only solution).

Note also (not directly related to the post in answer) that saying that one particular equation is redundant is improper: all equation have the same dignity. Hence "find which equation to exclude" is a mis-posed problem. I can exclude another and get the same solution.

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


GeneralRe: subroutine to solve linear algebraic equations - fewer unknowns than equations [modified] Pin
CPallini10-Jul-10 5:05
mveCPallini10-Jul-10 5:05 
QuestionSetting File Creation Time Pin
Fareed Rizkalla8-Jul-10 6:53
Fareed Rizkalla8-Jul-10 6:53 
QuestionRe: Setting File Creation Time Pin
CPallini8-Jul-10 6:58
mveCPallini8-Jul-10 6:58 
AnswerRe: Setting File Creation Time Pin
Fareed Rizkalla8-Jul-10 7:47
Fareed Rizkalla8-Jul-10 7:47 
GeneralRe: Setting File Creation Time Pin
CPallini8-Jul-10 22:52
mveCPallini8-Jul-10 22:52 
AnswerRe: Setting File Creation Time Pin
Maximilien8-Jul-10 7:11
Maximilien8-Jul-10 7:11 
GeneralRe: Setting File Creation Time Pin
Fareed Rizkalla8-Jul-10 8:13
Fareed Rizkalla8-Jul-10 8:13 
QuestionRe: Setting File Creation Time Pin
David Crow9-Jul-10 3:18
David Crow9-Jul-10 3:18 
AnswerRe: Setting File Creation Time Pin
Emilio Garavaglia10-Jul-10 4:38
Emilio Garavaglia10-Jul-10 4:38 
QuestionSet C as default in VS2008? Pin
drolfson8-Jul-10 5:32
professionaldrolfson8-Jul-10 5:32 
QuestionRe: Set C as default in VS2008? Pin
CPallini8-Jul-10 6:30
mveCPallini8-Jul-10 6:30 
AnswerRe: Set C as default in VS2008? Pin
Aescleal8-Jul-10 20:25
Aescleal8-Jul-10 20:25 
QuestionShellExecuteEx path question. [modified] (fixed) Pin
Maximilien8-Jul-10 5:11
Maximilien8-Jul-10 5:11 
GeneralRe: ShellExecuteEx path question. Pin
David Crow8-Jul-10 5:37
David Crow8-Jul-10 5:37 
QuestionMS ActiveX Browser Popup Problem Pin
od@ananzi.co.za8-Jul-10 5:09
od@ananzi.co.za8-Jul-10 5:09 
QuestionPointer Corruption on accessing a class member variable Pin
apphia_j_798-Jul-10 4:29
apphia_j_798-Jul-10 4:29 
QuestionRe: Pointer Corruption on accessing a class member variable Pin
David Crow8-Jul-10 4:34
David Crow8-Jul-10 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.