Re: Piecewise functions
- To: mathgroup at smc.vnet.net
- Subject: [mg8895] Re: [mg8876] Piecewise functions
- From: Eric Maiken <maiken at src.sony.co.jp>
- Date: Thu, 2 Oct 1997 22:56:48 -0400
- Organization: SONY
- Sender: owner-wri-mathgroup at wolfram.com
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. Best, EM -- 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 src.sony.co.jp Yokohama 240 EricMaiken at aol.com Japan