Re: MuPad 3.0 extraction of individual eigenvectors

From: John O'Flaherty (quiasmox_at_yahoo.com)
Date: 11/11/04

  • Next message: Tony King: "Mathematica digit handling query"
    Date: Thu, 11 Nov 2004 09:56:16 -0600
    
    

    Ralf Hillebrand wrote:

    > Hi Brad,
    >
    > Brad Cooper wrote:
    >
    >> In MuPad 3.0 I can find eigenvectors as follows:
    >>
    >> A := matrix([[1, 1, 1], [1, 1, 1], [1, 1, 1]]):
    >> S := linalg::eigenvectors(A);
    >>
    >> I now want to extract the eigenvectors from S
    >> to use linalg::orthog(S) to orthogonalise these
    >> eigenvectors.
    >
    >
    > Torsten provided a solution in his posting, here is a less
    > verbose one.
    >
    > Use map with op to extract the 3rd operands of the resulting
    > list:
    >
    > >> map(S, op, 3) // or map(S, x -> op(x, 3))
    >
    > -- -- +- -+ +- -+ -- -- +- -+ -- --
    > | | | -1 | | -1 | | | | 1 | | |
    > | | | | | | | | | | | |
    > | | | 1 |, | 0 | |, | | 1 | | |
    > | | | | | | | | | | | |
    > | | | 0 | | 1 | | | | 1 | | |
    > -- -- +- -+ +- -+ -- -- +- -+ -- --
    >
    > And since you want a flat list of vectors another op will do.
    > The command below is equivalent to 'map(S, x -> op(op(x, 3)))'
    > but even shorter and more efficient:
    >
    > >> map(S, op@op, 3)
    >
    > -- +- -+ +- -+ +- -+ --
    > | | -1 | | -1 | | 1 | |
    > | | | | | | | |
    > | | 1 |, | 0 |, | 1 | |
    > | | | | | | | |
    > | | 0 | | 1 | | 1 | |
    > -- +- -+ +- -+ +- -+ --
    >
    > This is a valid input for linalg::orthog:
    >
    > >> linalg::orthog(map(S, op@op, 3))
    >
    > -- +- -+ +- -+ +- -+ --
    > | | -1 | | -1/2 | | 1 | |
    > | | | | | | | |
    > | | 1 |, | -1/2 |, | 1 | |
    > | | | | | | | |
    > | | 0 | | 1 | | 1 | |
    > -- +- -+ +- -+ +- -+ --
    >
    >
    >
    >> I have found the problem I usually have with MuPad
    >> is taking the output from a command and making further
    >> use of that output as input to another command. Just
    >> a general observation.
    >
    >
    > Thats a point. If you find such problems, please tell us.
    > Our bug tracking system (http://www.mupad.de/bugs.shtml) is
    > not only for there for sending bug reports, but also for making
    > suggestions for improvements.
    >
    > We can't fix problems that we don't know of. So, please help
    > us to improve MuPAD by providing suggestions for improvements.
    > A note about problems you find will do, too. Maybe we find a
    > solution. I have just added a suggestion for this problem under
    > the bug number 1542.

    It's often tedious to see how many nested op's,? are needed to get the
    nugget desired. The magical solution would be to select the desired part
    with a mouse, press the F_whatever key, and have the correct expression
    appear on the next line.

    --
    john
    

  • Next message: Tony King: "Mathematica digit handling query"

    Relevant Pages

    • Problems using Expect to parse a file
      ... I'm trying to write a script to automate a program called DeltaE, a powerful thermoacoustic design tool, and to extract performance data from the simulations it runs by parsing through its output files. ... Less, on the other hand, remains open upon reaching the end of a file until it receives the "q" command, so I tried writing a script to step through the file using that, as follows: ... The trouble now is, although manually executing the command "less -c data/1.out" at a tty functions just as you would expect it to, when Expect sends the exact same command as part of the spawn process, and running the script with exp_internal true, apparently none of the data sent to the display by less when started normally is being seen by Expect - all it seems to get is "No tags file\r\n", followed by eof and closure of Less - I'm afraid I haven't a clue what the "No tags file" statement means. ...
      (comp.lang.tcl)
    • Re: Extract single file from XP CD
      ... > about using MSCONFIG to extract a single file from the XP CD, ... (Command Prompt window opens) ... Type in these commands ... regsvr32 oleaut32.dll ...
      (microsoft.public.windowsxp.setup_deployment)
    • Re: Using GZip decompression in VB 6
      ... Decompress the gzip file. ... In the above commands /C after the cmd.exe means for the Command promtp ... Also, do not hardcode the path and name of the Command prompt EXE, if you ... then extract it. ...
      (comp.lang.basic.visual.misc)
    • Re: default stanza in AIX 5.2 /etc/security/limits?
      ... Sorry about the /tmp permissions issue. ... I usually extract to a directory like ... Maybe chsec would be a better command for default stanza, ...
      (AIX-L)
    • Re: default stanza in AIX 5.2 /etc/security/limits?
      ... If you have a base level package can you not ... etc/security/limits is a file from that fileset, when I go to extract or just list the contents of my bos.rte.security fileset from the install medium, I don't see that in there. ... As for the chsec command, that looks to be the one to use, specifically with the "-s default" flag. ... default stanza in AIX 5.2 /etc/security/limits? ...
      (AIX-L)