Piecewise defined functions
- To: mathgroup at smc.vnet.net
- Subject: [mg12934] Piecewise defined functions
- From: Edward Neuman <edneuman at siu.edu>
- Date: Wed, 24 Jun 1998 03:44:51 -0400
- Organization: SIUC
- Sender: owner-wri-mathgroup at wolfram.com
I'm working with the piecewise defined functions with a large number of
subintervals. They can be defined using the UnitStep function.
Manipulations
(e.g., plotting, integration, etc.) with a function having a large
number of the UnitStep factors is often a time consuming job. Is it
possible to force Mathematica to create a sequence of rules like this:
g[x_/;x1 <= x <x2] := Expr1
g[x_/;x2 <= x <x3] := Expr2
....
where the lists {x1, x2, ... } and {Expr1, Expr2, ... } are supplied by
a user? Any help would be greatly appreciated.
Regards,
Edward Neuman