svd basic example


sn0wcrash
08-18-2002, 03:10 PM
Hello,
I've recently been introducted to NR, and I'm having problems using the svd library.

Could someone please post a really simple example (with numeric values) of using svdRoutine() and svdSolve() methods to solve a system of equations.

I have an equation M1*P=P1 and M2*P=P2
I am given:
M1 and M2 are 3x4
P1 & P2 are 3x1

Solving for :
P is 3x1
(x,y,z,1)


Thanks