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