MathGroup Archive 1995

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

Search the Archive

Re: counting number of rules in rule base

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1561] Re: counting number of rules in rule base
  • From: "John M. Lee" <lee at math.washington.edu>
  • Date: Sat, 24 Jun 1995 05:59:10 -0400
  • Organization: University of Washington Department of Mathematics

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