MathGroup Archive 2009

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

Search the Archive

Re: Piecewise vs. /; ?

  • To: mathgroup at
  • Subject: [mg103935] Re: Piecewise vs. /; ?
  • From: Erik Max Francis <max at>
  • Date: Tue, 13 Oct 2009 07:20:02 -0400 (EDT)
  • References: <hashpc$qu8$> <hav19a$4gr$>

Szabolcs Horv=E1t wrote:
> In short, /; is a programming construct that affects evaluation.
> Piecewise[] is used to represent a mathematical concept: piecewise
> functions.
> If you want to do mathematical operations like integration, then use
> Piecewise[].  Condition[] (/;) is a lot more general than Piecewise[],
> for example one could write a "function" that returns a different value
> in the evening than in the morning, which is obviously not a function in
> the mathematical sense, and thus can't be integrated.

Got it!  Thanks to you and David for responding.

Erik Max Francis && max at &&
  San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
   God is love, but get it in writing.
    -- Gypsy Rose Lee

  • Prev by Date: Re: Convert Graphics3D to Graphics2D. Is it possible?
  • Next by Date: ErrorListPlot with Indeterminate list elements
  • Previous by thread: Re: Piecewise vs. /; ?
  • Next by thread: Re: Piecewise vs. /; ?