home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news
- From: rao@halcyon.usc.edu (Anil Rao)
- Newsgroups: sci.math.symbolic
- Subject: Mathematica: defining functions. HELP!
- Date: 13 Aug 1992 23:28:20 -0700
- Organization: University of Southern California, Los Angeles, CA
- Lines: 17
- Sender: rao@halcyon.usc.edu (Anil Rao)
- Message-ID: <l8mkk4INN5ll@halcyon.usc.edu>
- NNTP-Posting-Host: halcyon.usc.edu
-
- Hi all,
- I went through the Wolfram book but was still unable to do the
- following 'trivial' task:
-
- define a function f(x) = x between x = 2 and x = 5
- = x^2/2 for x < 2
- = 5 x - 20 for x > 5
-
- basically, I want a function to behave 'differently' in different regions.
- How does one do this in Mma?
-
- Many thanks in advance for your help.
-
- Anil Rao.
- rao@halcyon.usc.edu
-
-
-