Define a function
- To: mathgroup at smc.vnet.net
- Subject: [mg34556] Define a function
- From: "Michael Popp" <popp.michael at gmx.at>
- Date: Mon, 27 May 2002 01:17:11 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello I want to define a function in Mathematica. But just f[x_]:=... does not work, because I have to define different functions for different ranges of the variable x. For example: x < 10: f(x) = 0 10 < x < 20: f(x) = x 20 < x: f(x) = x/2 How to do this? Thanks, greetings Michael