home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!lunic!eru.mt.luth.se!wucm
- From: wucm@mt.luth.se (Wu Changming)
- Newsgroups: sci.math.symbolic
- Subject: Help needed with numerical inverse of a matrix in Maple
- Message-ID: <1985@eru.mt.luth.se>
- Date: 30 Jul 92 14:41:00 GMT
- Reply-To: Wu Changming <wucm@mt.luth.se>
- Organization: University of Lulea, Sweden
- Lines: 50
- UUCP-Path: {uunet,mcvax}!sunic!mt.luth.se!wucm
-
-
- I am using Maple V, but I do not know much about Maple, so I need some help here.
-
- I need to do an inverse of a 8x8 matrix. Since the computer never gives the
- result, I plan to do the inverse numerically. However I got the error message:
-
- ##################################################
- Error, (in normal/doit) floats not handled
- --------------------------------------------
-
- Then I use the following to do a test.
-
- ##################################################
- K := array(1..4, 1..4):
- for ii from 1 by 1 to 4 do
- for jj from 1 by 1 to 4 do
- K[ii, jj] := Pi**(1/ii*jj) + I**(ii+jj) :
- od;
- od;
-
- IK := inverse(K):
- IK := map(evalc, map(evalf, map(evalm, IK ) ) ):
- print(IK);
- ---------------------------------------------------
-
- which gives the symbolic solution first, and then the numerical solution.
-
- The I do the above calculation in this way:
-
- ##################################################
- K := array(1..4, 1..4):
- for ii from 1 by 1 to 4 do
- for jj from 1 by 1 to 4 do
- K[ii, jj] := evalc( evalf( Pi**(1/ii*jj) + I**(ii+jj) )):
- od;
- od;
-
- IK := inverse(K) :
- print(IK)
- -----------------------------------------------------
-
-
- The program gives `Error, (in normal/doit) floats not handled' when it is doing
- the inverse.
-
- Could someone help me to do numerical inverse of a large matrix?
-
- Thanks
-
- Wu Changming
-