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

MathGroup Archive 2007

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

Search the Archive

Re: Pattern::nodef: No default setting found for Piecewise in position

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81402] Re: Pattern::nodef: No default setting found for Piecewise in position
  • From: Chris Chiasson <chris.chiasson at gmail.com>
  • Date: Sat, 22 Sep 2007 03:24:14 -0400 (EDT)
  • References: <fct8pl$pqu$1@smc.vnet.net><fcvqmc$7jj$1@smc.vnet.net>

On Sep 21, 2:09 am, Szabolcs Horv=E1t <szhor... at gmail.com> wrote:
> Chris Chiasson wrote:
> > Is there a good reason why this shouldn't be fixed?
>
> --> Pattern::nodef: No default setting found for Piecewise in position 2
> when length is 2.
>
> What input produces this message?
>
> --
> Szabolcs

This happens when using Optional in a pattern for the second argument
of Piecewise:

Hold[Piecewise[{{x,blah}}]]/.HoldPattern[Piecewise]
[conditions_,default_.]:>f[whatever]+default

compare with the same command after evaluating:

Unprotect@Piecewise
Default[Piecewise, 2, 2] = 0




  • Prev by Date: I can't see nothing in the notebook. (V5.2)
  • Next by Date: Re: step into dsolve routine on step at a time
  • Previous by thread: Re: Pattern::nodef: No default setting found for Piecewise in position
  • Next by thread: Can i render a Disk[] in Graphics3D?