Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Warning from Piecewise

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61539] Re: Warning from Piecewise
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 22 Oct 2005 00:35:23 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <dja298$fhh$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

what does Verbatim[] ?? when you  do that:
Comm[Verbatim[Piecewise][A : {{_, _} ..}],
Verbatim[Piecewise][B : {{_, _} ..}]] :=
Comm[Testy[A], Testy2[B]]



Regards
  Jens

"Chris Rodgers" 
<rodgers at physchem.NOSPAMox.aREMOVEc.uk> schrieb im 
Newsbeitrag news:dja298$fhh$1 at smc.vnet.net...
| Hi,
|
| When I try to set a delayed expression like 
this:
|
| Comm[Piecewise[A:{{_, _}..}], Piecewise[B:{{_, 
_}..}]] :=
|   Comm[Testy[A], Testy2[B]]
|
| I get a warning from Piecewise that says:
|
| Piecewise::pairs: The first argument A : {{_, _} 
..} of Piecewise is not
| a list of pairs.
|
| I thought that the HoldAll attribute on 
SetDelayed should prevent
| evaluation of the LHS argument, so where is this 
warning coming from?
|
| Can I ignore a warning like this, or should I 
instead use a different
| sort of pattern?
|
| Many thanks,
|
| Chris Rodgers.
| 



  • Prev by Date: Baffling change to partial derivative in version 5.1
  • Next by Date: Eliminating parameters
  • Previous by thread: Re: Re: Warning from Piecewise
  • Next by thread: Re: Warning from Piecewise