MathGroup Archive 2007

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

Search the Archive

Matching two patterns?


Can two patterns be matched with each other, to find if they
intersect?

What I mean is that  { _, 1} matches {1, _ } in the sense that there
are lists that fit both, in this case {1,1}.
However, { _, 1} doesn't match { _, 2} in the sense that no list can
fit both.

For lists it seems easy to write a function that does that, but I
wondered if such a function already exists and can it be more general?

Thanks,

Neri



  • Prev by Date: Re: Precision available with NIntegrate {Method -> Oscillatory}
  • Next by Date: Re: How to rotate AxesLabel ?
  • Previous by thread: infinity problem in mathematica
  • Next by thread: Re: Matching two patterns?