Combining expressions for plotting.

11 views
Skip to first unread message

Bharath M R

unread,
Jul 3, 2012, 11:47:59 AM7/3/12
to sy...@googlegroups.com
I was trying to implement combining two or more expressions in plot_implicit, ie
plot_implicit (x**2 + y**2 <5 and x > y) 
plot_implicit(y> sin(x) or x > sin(y) and y > x)
The first one can be done using piecewise functions. I could not find a way to 
implement the `or` type of inequalities/ equations.

I don't know the approach I should take to implement something like that? Is there
an easy way? Want some ideas :).

Thanks,
Bharath M R

Aaron Meurer

unread,
Jul 3, 2012, 2:21:07 PM7/3/12
to sy...@googlegroups.com
Just do Or(x < 5, x > y) or And(x < 5, x > y). 

Aaron Meurer
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/mVc98IEHRFoJ.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.

Bharath M R

unread,
Jul 3, 2012, 2:44:43 PM7/3/12
to sy...@googlegroups.com
That was easy :). Thanks.
Reply all
Reply to author
Forward
0 new messages