Re: how to effectively define a subsection function
- To: mathgroup at smc.vnet.net
- Subject: [mg49772] Re: how to effectively define a subsection function
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Fri, 30 Jul 2004 06:02:24 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 7/29/04 at 7:45 AM, dbjunxiao at hotmail.com (Xiaoxun) wrote: >For example, if I want to specify Z[x_,y_] to have different >function form at different region of R{x,y}, There are a number of ways this can be accomplished, For example, z[x_]:=If[x<0, x, x^2] z[x_]:=x/; x<=0 z[x_]:=x^2/;x>0 z[x]:=(x^2 - x)UnitStep[x] + x Here, I've used a single variable function to make things simple. But all of these can be extended to multi-variable functions by adding whatever criteria is needed for the additional variables -- To reply via email subtract one hundred and four