Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C (ANSI) PROGRAMMING ASSIGNMENT (college class)

Status
Not open for further replies.

tman

Vendor
Apr 1, 1999
1
US
I'm trying to help my son with one of his C programming classes.<br>
This is the assignment .. any help would be appreciated..<br>
<br>
<br>
An iterative method for computing the inverse of a matrix A is given by A(-1) = -I + B + B(2) + B(3) + B(4) + ..., <br>
()represents power exponent ... example 2(3) = 8 <br>
<br>
Where B = I-A (I is the identy matrix). Compute the invers of <br>
<br>
A = .5 1 0<br>
[ 0 .666 0 ] <br>
-.5 -1 .666 <br>
<br>
Stop at B(10) in the expansion of A(-1). Check the results by computing A(-1) * A
 
Here's a tip:<br>
<br>
Solve the math problem first. Then code the thing.<br>
<br>
Don't try to solve each at the same time as you go along.<br>
<br>
<br>
Trust me, you'll save yourself a LOT of headaches....
 
I agree with Kyrene.<br>
<br>
In doing the math behind it you can end up with pseudo code for the program.
 
First calculate the B + B(1) + B(2)+... till B(10) function iteratively. Then store it in some other variable. Now Add it with I (identity matrix). Simple... Isn't ?<br>
Does it answer your question ?<br>
Thanx,<br>
Siddhartha Singh<br>
<A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top