Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: Piecewise functions

  • To: mathgroup at
  • Subject: [mg8895] Re: [mg8876] Piecewise functions
  • From: Eric Maiken <maiken at>
  • Date: Thu, 2 Oct 1997 22:56:48 -0400
  • Organization: SONY
  • Sender: owner-wri-mathgroup at

Venkateswara Rao Ayyadevara wrote:

> I would like to know how to represent piecewise linear functions in
> Mathematica.  

Ref:Abell and Braselton's "Mathematica by Example." The key is the "/;"
for definition of different domains.

f[x]:= (definition 1)/; (domain 1)
f[x]:= (definition 2)/; (domain 2)

Specify domains by: # <x<= # for example.



Eric Maiken, PhD			

SONY Corporation Research Center	Phone:	81 45 353-6845
Center For Enviornmental Technology	Fax:	81 45 353-6906
174 Fujitsuka-cho, Hodogaya-ku		email:	maiken at
Yokohama 240					EricMaiken at

  • Prev by Date: RE: a[[2]][[3]] = 1 error? why?
  • Next by Date: Re: Absolute error calculation with math software
  • Previous by thread: Re: Shaded Symbols in MultipleListPlot
  • Next by thread: Re: Piecewise functions