Re: Symbolic inverse of a 12x12 matrix



spasmous wrote:

> Actually I retract what I said - MATLAB bails out after a few minutes
> for a 10x10 symbolic inverse.
>
>
> syms A a b c d e f g h i j k l m n o p q r s t u v w x y z;
> syms aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv;
> A = [a 0 b 0 c 0 d 0 e 0 ;
> f 0 0 g h 0 0 i j pp;
> 0 k l 0 0 m n o 0 0 ;
> p 0 0 q r s 0 0 t 0 ;
> 0 u 0 v w 0 x y 0 qq;
> aa 0 0 bb 0 0 cc 0 0 rr;
> 0 dd ee 0 0 0 ff 0 gg 0 ;
> hh ii 0 0 0 0 0 0 jj 0 ;
> 0 0 0 0 0 kk ll mm nn ss;
> tt 0 0 0 uu 0 0 0 vv 0];
>
> B=inv(A);
> ??? Error using ==> sym.inv
> Error, (in normal/nlinear) integer too large in context

Thanks for the two posts though. I could have wasted some time trying out
matlab for this.

Mathematica is happily handling the problem (the raw inverse of the 12x12
matrix takes about 11 seconds), except that a subsequent FullSimplify step
to clean up the expressions is causing some memory problems on some
machines.

Matlab/octave are good for numerical problems involving matrices (though I
would always code anything that needed a lot of speed in f95) but as far as
symbolic stuff goes, Mathematica is very nearly the king (my experience of
maxima is limited, and of maple, almost non-existent).
.



Relevant Pages

  • Mathematica Symbolic Toolbox for MATLAB--Version 2.0
    ... The Mathematica Symbolic Toolbox for MATLAB ... He is responsible for leading the MathLink ... The Mathematica Symbolic Toolbox for MATLAB is ...
    (sci.math.symbolic)
  • Re: Mathematica Vs. Matlab
    ... Mathematica is a powerful CAS. ... Maple, REDUCE, MuPAD (it can be legally obtained for free at some circumstances, ... There are a number of programs to do numerical calculations with usual ... One example is Matlab; ...
    (sci.math.symbolic)
  • Re: Mathematica Vs. Matlab. It is not a superset
    ... Initially you deemed ANY comparison of Matlab vs. Mathematica invalid, ... a natural language. ... > I don't think the Dean of your ...
    (sci.math.symbolic)
  • Re: Mathematica Vs. Matlab. It is not a superset
    ... hmmm, reading the previous emails in this email chain, you were an ardent ... opponent of any comparison of any kind between Mathematica and Matlab, ... Mathematica is really much superior to Matlab? ... specially engineering problems. ...
    (sci.math.symbolic)
  • Maple vs Mathematica questions: symbolic & MacOS aspects only.
    ... has perhaps come to change CAS. ... I will keep on using Matlab at this ... than Maple where numerics are concerned. ... Mathematica, but will do so. ...
    (sci.math.symbolic)