MathGroup Archive 2007

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

Search the Archive

Matching two patterns?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74105] Matching two patterns?
  • From: "Neri" <nkafkafi at yahoo.com>
  • Date: Sat, 10 Mar 2007 06:52:26 -0500 (EST)

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?