Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I plot a Venn Diagram in Maple 10??

503 views
Skip to first unread message

Squasher Gauss

unread,
Nov 23, 2006, 10:36:12 PM11/23/06
to
Thanks,

I can't find anything anywere.
I've also checked Euler Circles.
What am I missing?

Thank you,

Art

Alec Mihailovs

unread,
Nov 26, 2006, 5:40:14 PM11/26/06
to
From: "Squasher Gauss" <sqash...@yahoo.com>

> I can't find anything anywere.
> I've also checked Euler Circles.
> What am I missing?

For example,

left:=(x+1)^2+y^2<2:
right:=(x-1)^2+y^2<2:
top:=x^2+(y-sqrt(3))^2<2:
f:=piecewise(top and right,1):
with(plots):
display(implicitplot({left,top,right},x=-3..3,y=-2..4,
color=brown,numpoints=10^5),
implicitplot(f>0.5,x=-3..3,y=-2..4,
filled=true,coloring=[brown,white],numpoints=10^5),
axes=none);

See also my blog at Mapleprimes,

http://www.mapleprimes.com/blog/alec/how_to_color_a_region

Alec


Squasher Gauss

unread,
Nov 27, 2006, 8:20:37 PM11/27/06
to
I was thinking of a logical answer...Or, using sets.
Can Maple come up with a diagram given set data?

Thanks!

Alec Mihailovs

unread,
Nov 27, 2006, 11:00:26 PM11/27/06
to

"Squasher Gauss" <sqash...@yahoo.com> wrote

>I was thinking of a logical answer...Or, using sets.
> Can Maple come up with a diagram given set data?

> On Sun, 26 Nov 2006 22:40:14 GMT, "Alec Mihailovs"
> <al...@mihailovs.com> wrote:

>>f:=piecewise(top and right,1):

top and right is logic, isn't it? If you use A, B, and C instead of left,
top, and right, that would be B and C - why do you think that it is not
logic?

You could also use axes=boxed (with no tickmarks), to make them inside a
square if necessary. Any other logical statement can be used, such as

not (A and B) or not (A and C).

What's wrong with that?

Alec


0 new messages