In Mathematica is it possible to define the plot range by an inequality?

100 Views Asked by At

For example, like

Plot[Sin[x], {x, Sin[x]<0.5}]

The above line is not working. I want to know if this idea is possible in Mathematica. Thank you!

1

There are 1 best solutions below

1
On BEST ANSWER

I am not sure your question is well-defined. One way to proceed is to place a Boole around your constraint, e.g. Boole[Sin[x] < .5], and then plot over standard rectangular co-ordinates of your own choice ... e.g.

Plot[Sin[x] Boole[Sin[x] < 0.5], {x, -2 Pi, 2 Pi},  PlotRange -> All]