# How to define inclusions in Mathematica?

Posted 10 years ago
3663 Views
|
4 Replies
|
0 Total Likes
|
 Dear members of the Wolfram Community,Does any one has define inclusions (set valued maps) such asy=0 for x>0 and y=(-inf,0] for x=0, in Mathematica??ThanksJesus Rico
4 Replies
Sort By:
Posted 10 years ago
 It's not really a function.  It has an infinite number of values of y for x = 0.  I don't think Plot can handle that.
Posted 10 years ago
 y = Piecewise[{{0, x > 0}, {Interval[{-\[Infinity], 0}], x == 0}}]
Posted 10 years ago
 Thanks! I used your definition within a Plot function Plot[y, {x, -1, 1}, Exclusions -> None]and get only a horizontal line that not correspond to expected function.What am I doing wrong?Jesus
Posted 10 years ago
 Differential inclusions are very interesting generalizations of ordinary differential equations and definitions like the one you help me with are needed.Thanks indeed!Jesus
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.