home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / sci / math / symbolic / 2198 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  787 b 

  1. Path: sparky!uunet!usc!news
  2. From: rao@halcyon.usc.edu (Anil Rao)
  3. Newsgroups: sci.math.symbolic
  4. Subject: Mathematica: defining functions. HELP!
  5. Date: 13 Aug 1992 23:28:20 -0700
  6. Organization: University of Southern California, Los Angeles, CA
  7. Lines: 17
  8. Sender: rao@halcyon.usc.edu (Anil Rao)
  9. Message-ID: <l8mkk4INN5ll@halcyon.usc.edu>
  10. NNTP-Posting-Host: halcyon.usc.edu
  11.  
  12. Hi all,
  13.   I went through the Wolfram book but was still unable to do the
  14. following 'trivial' task:
  15.  
  16. define a function f(x) = x between x = 2 and x = 5
  17.                        = x^2/2 for x < 2
  18.                        = 5 x - 20 for x > 5
  19.  
  20. basically, I want a function to behave 'differently' in different regions.
  21. How does one do this in Mma?    
  22.  
  23. Many thanks in advance for your help.
  24.  
  25. Anil Rao. 
  26. rao@halcyon.usc.edu
  27.  
  28.  
  29.