home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!ut-emx!che.utexas.edu!jamull
- From: jamull@che.utexas.edu (Tony Mullins)
- Newsgroups: sci.math.symbolic
- Subject: Mma: Capturing function arguments
- Keywords: Mathematica, functions, arguments, matching
- Message-ID: <76285@ut-emx.uucp>
- Date: 21 Jul 92 04:33:24 GMT
- Sender: news@ut-emx.uucp
- Reply-To: jamull@che.utexas.edu (Tony Mullins)
- Distribution: usa
- Organization: UT Department of Chemical Engineering
- Lines: 17
- Originator: jamull@ward.che.utexas.edu
-
- I have an array with entries like g[1,1,1], g[1,2,3], etc. For
- example A[[2,3]] might be g[1,2,2].
-
- I need to grab an element of A, and capture the first argument of its
- entry, i.e. '1' in the examples above, and assign it to a variable.
- How can this be easily accomplished in Mathematica?
-
- Rapid responses appreciated. I'll summarize if there is interest.
-
- Thanks for the help.
-
-
- --
- Tony Mullins (jamull@che.utexas.edu)
- Dept. of Chemical Engineering, CPE 5.438
- University of Texas - Austin
- Austin, TX 78712-1062
-