Piecewise integration of f[x,y]
- To: mathgroup at smc.vnet.net
- Subject: [mg15773] Piecewise integration of f[x,y]
- From: sergio at scisun.sci.ccny.cuny.edu
- Date: Sun, 7 Feb 1999 02:03:52 -0500 (EST)
- Organization: Deja News - The Leader in Internet Discussion
- Sender: owner-wri-mathgroup at wolfram.com
(* Hello everyone: Could somebody point out how to integrate a piecewise function like: *) f[x_, y_] := Which[x >= 0. && x <= 2. && y >= 0. && y <= 1., -0.5*(-2. + x)*(0. + y), True, 0]; (* How to do: *) x1=-3; x2=3; y1=0.2; y2=4; Integrate[f[x,y],{x,x1,x2},{y,y1,y2}]; (* Sergio E-mail: sergio at scisun.sci.ccny.cuny.edu *) -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own