Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1991
*January
*February
*March
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1991

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Extracting variables nested in functions

  • To: <MathGroup at yoda.physics.unc.edu>
  • Subject: Re: Extracting variables nested in functions
  • From: Peter Horan <peter at cm.deakin.oz.au>
  • Date: Wed, 16 Oct 91 09:49:17 +1000

Fcc: 
--------
`Part' may be what you want:

In[1]:= Cos[x/Pi][[1]]

        x
Out[1]= --
        Pi

In[3]:= Log[b[1], x[1]][[1]]

            1
Out[3]= ---------	----- See full form below
        Log[b[1]]

In[4]:= Log[b[1], x[1]][[2]]

Out[4]= Log[x[1]]

In[5]:= Log[b[1], x[1]][[1]][[1]]

Out[5]= Log[b[1]]

In[6]:=  Log[b[1], x[1]][[1,1]]

Out[6]= Log[b[1]]

In[7]:= Log[b[1], x[1]][[1,2]]

Out[7]= -1

In[9]:= FullForm[Log[b[1], x[1]]]

Out[9]//FullForm= Times[Power[Log[b[1]], -1], Log[x[1]]]

Peter Horan
peter at aragorn.cm.deakin.oz


  • Prev by Date: Re: Extracting variables nested in functions
  • Next by Date: Re: Extracting variables nested in functions
  • Previous by thread: Re: Extracting variables nested in functions
  • Next by thread: Re: Extracting variables nested in functions