MathGroup Archive 2007

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

Search the Archive

Re: [TS 28872]--Re:Pattern::nodef: No default setting found for Piecewise in position 2 when length is 2.

It would come up when people are constructing other expressions from
Piecewise objects or when people are constructing Piecewise objects
from other expressions, especially in any environment where there are
OwnValues or DownValues that must be prevented from executing (which
may or may not occur as part of a pattern or condition test).

I found it when I was writing my second response in this thread,
though I constructed my solution without it:

Lastly, the present behavior doesn't fit in with the rest of the
Mathematica framework.

On Tue, 2 Oct 2007 17:30:01 UT, mathgroup <mathgroup at> wrote:
>  -- Wolfram Research Technical Support --
> This is a response to your email.
> The reply to your question can be found at the bottom of this message.
> Our classification number for this message is: [TS 28872]
> Please give this number in any future correspondence
> related to this question. If you leave this number in
> the Subject: header in the form [TS 28872], it will
> automatically be reassigned to the original technician.
> From: "Chris Chiasson" <chris at>
> Date: Wed, 19 Sep 2007 10:01:13 -0500
> Subject: Pattern::nodef: No default setting found for Piecewise in position 2 when length is 2.
> To: mathgroup <mathgroup at>,"Wolfram Research Support" <support at>
> Is there a good reason why this shouldn't be fixed?
> --
> _________________________________________________________________________
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Chris,
> I looked at the example you posted to mathgroup:
> Hold[Piecewise[{{x,blah}}]]/.HoldPattern[Piecewise]
> [conditions_,default_.]:>f[whatever]+default
> It is not clear to me when this would come up.  If you have a "this is
> a problem because ...  or this is a problem when ..." I will add that to
> the report.
> Tom Zeller
> Wolfram Research Technical Support
> ----------------------------------------------------------------------------
> If this issue is resolved, please consider taking a few minutes
> to give us some feedback on your experience. Please visit
> and give your honest answers to these three short questions.
> Thanks for taking the time to help us improve.


  • Prev by Date: Re: Re: Equivalent functionality to colorbar in Mathematica?
  • Next by Date: Re: Re: Delayed Derivative Operator
  • Previous by thread: Optional arguments & FilterRules
  • Next by thread: Strange result for a definite integral: Unknown Symbol (\.10) returned