Re: Truth-Plot
- To: mathgroup@smc.vnet.net
- Subject: [mg10825] Re: Truth-Plot
- From: Allan Hayes <hay@haystack.demon.co.uk>
- Date: Tue, 10 Feb 1998 21:01:38 -0500
- References: <6bao7p$cbu@smc.vnet.net>
Veit Sanner wrote: > How can I plot/evaluate the following equation in Mathematica 3.0? > (x^2+y^3) MOD 4 < 2 > > In my HP48 I just choose 'Truth' as plotting style and it works, but I > can't find any 'TruthPlot[]' in Mathematica. ContourPlot[Mod[x^2+y^3 ,4 ], {x,-3,3},{y,-3,3}, Contours ->{2}, PlotPoints -> 50]; ("True" is black) PlotPoints -> 50 increases plot definition. Contours ->{2} causes the contour at height 2 to be drawn. -- Allan Hayes Mathematica Training and Consulting Leicester, UK hay@haystack.demon.co.uk http://www.haystack.demon.co.uk voice: +44 (0)116 271 4198 fax: +44 (0)116 271 8642