home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / math / symbolic / 2030 next >
Encoding:
Internet Message Format  |  1992-07-20  |  1012 b 

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!ut-emx!che.utexas.edu!jamull
  2. From: jamull@che.utexas.edu (Tony Mullins)
  3. Newsgroups: sci.math.symbolic
  4. Subject: Mma:  Capturing function arguments
  5. Keywords: Mathematica, functions, arguments, matching
  6. Message-ID: <76285@ut-emx.uucp>
  7. Date: 21 Jul 92 04:33:24 GMT
  8. Sender: news@ut-emx.uucp
  9. Reply-To: jamull@che.utexas.edu (Tony Mullins)
  10. Distribution: usa
  11. Organization: UT Department of Chemical Engineering
  12. Lines: 17
  13. Originator: jamull@ward.che.utexas.edu
  14.  
  15. I have an array with entries like g[1,1,1], g[1,2,3], etc.  For
  16. example A[[2,3]] might be g[1,2,2].
  17.  
  18. I need to grab an element of A, and capture the first argument of its
  19. entry, i.e. '1' in the examples above, and assign it to a variable.
  20. How can this be easily accomplished in Mathematica?
  21.  
  22. Rapid responses appreciated.  I'll summarize if there is interest.
  23.  
  24. Thanks for the help.
  25.  
  26.  
  27. -- 
  28. Tony Mullins (jamull@che.utexas.edu)
  29. Dept. of Chemical Engineering, CPE 5.438
  30. University of Texas - Austin
  31. Austin, TX  78712-1062
  32.