| 1 | initial version |
piecewise currently only supports a single variable, but in your case you could factor out the x and define
f(x,y) = x * piecewise([[(-oo,0), sin(y)/y], [[0,0], 1], [(0,oo), sin(y)/y]])
The square brackets around the origin denote a closed domain to ensure that point is included.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.