Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Impossible?



Hello,

I would like to construct a function which gives me an absolute Level of
subexpression in expression.  For example I want:

a*(b+c*(d+AbsoluteLevelQ[e])) 

evaluate to 

Level[a*(b+c*(d+e)),e].
( AbsoiuteLevelQ climbs up until reaches  In[], after  that calls Level
)

More generally, I would like to control absolute level (level in respect
to In[%]) at  which patter matching take place. For example if pattern
matches at Level n>3,  then rule is applied,  but if it matches at
Level n<3 then not. 

I suspect, that evaluation machinery here is hardly involved. Do
Mathematica language provides tools for such a control? Please comment
if solution don't exist.



                                      Arturas Acus
Institute of Theoretical
Physics and Astronomy
Gostauto 12, 2600,Vilnius
Lithuania 


E-mail: acus@itpa.lt
   Fax: 370-2-225361
   Tel: 370-2-612906



  • Prev by Date: List Manipulation
  • Next by Date: Questions on MultipleListPlot
  • Prev by thread: Re: List Manipulation
  • Next by thread: Re: Impossible?