MathGroup Archive 2010

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

Search the Archive

Positions of Polynomials in expr?

  • To: mathgroup at
  • Subject: [mg109325] Positions of Polynomials in expr?
  • From: Jack L Goldberg 1 <jackgold at>
  • Date: Thu, 22 Apr 2010 03:29:38 -0400 (EDT)

Hi Folks,

"Select" and "Cases" are commands that do essentially the same thing,  
namely, pick out elements of a list which, in the first case matches a  
criterion, in the second case, matches a pattern.  I call these  
parallel commands.  Is there a command parallel to "Position" which  
uses criterion rather than pattern matching?

If no such parallel function exists, can one easily construct one?

I actually have a special case in mind.  I want to find the position  
of all parts of expr which fail the test PolynomialQ[f_,x].  Naively,  
I thought one might Map
Polynomial[#,x]& to all levels of expr and then find the positions of "False".
I haven't tried it because I'm betting someone knows how to do this  
neatly and I do not like to re-invent the wheel.  When I do so, the  
wheel tends to be more like an oval than a circle.



  • Prev by Date: Re: Bug in Mathematica ?
  • Next by Date: How to make make a Dynamic variable to become an ordinary one
  • Previous by thread: How to run GUIKitApplication module as Standalone Java Application?
  • Next by thread: Re: Positions of Polynomials in expr?