MathGroup Archive 1995

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

Search the Archive

Re: counting number of rules in rule base


gaylord at uiuc.edu (richard j. gaylord) wrote:

>i am creating a large number of rewrite rules of the form symb[arg] = rhs
>
>these rules are being generated automatically and i don't know how many
>rules are created [in the case i'm dealing with it, its over 500].
>
>without doing ?symb and then counting the number of rules that come up on
>my monitor screen [i keep losing count around 125 or so], how can i ask
>Mathematica for the number of rules associated with symb?
>

Try:

  Length[DownValues[symb]]

-- 
John M. Lee
University of Washington Dept. of Mathematics
Box 354350
Seattle, WA 98195-4350



  • Prev by Date: Re: Help with NDSolve
  • Next by Date: Re: Thank you very much for your answer :-)
  • Previous by thread: counting number of rules in rule base
  • Next by thread: Re: counting number of rules in rule base