The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: how to define and analyze function with multiple parts
Replies: 4   Last Post: Apr 20, 2013 5:56 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Murray Eisenberg

Posts: 2,105
Registered: 12/6/04
Re: how to define and analyze function with multiple parts
Posted: Apr 20, 2013 5:55 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Perhaps you have in mind something like the following (for n = 3)?

u2[{x_,y_,z_}]:=10x y z

u[{x_, y_, z_}] :=
Piecewise[{{u1[{x, y, z}], x^2 + y^2 + 3 z^2 <= 1},
{u2[{x, y, z}], x^2 + y^2 + z^3 > 100}}]

On Apr 19, 2013, at 1:17 AM, wrote:

> Hi, I have a function on the plane that has 2 different formulation for 2 different regions. Let x = (x1, ..., xn). I want to define it as
> U(x) = U_1(x) if x is in region 1
> = U_2(x) if x is in region 2
> Then I want to analyze such a defined function, like find its max, etc, using NMaximize, or put in some other expressions in place of x, to see behavior of U.
> Essentially, how does one define a multipart function, so that we can analyze it in the same way we may analyze a single part function or polynomial?
> Thanks.
> Prabhu

Murray Eisenberg
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2838 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.