Post Reply 
Set theory program for hp prime?
09-30-2022, 04:07 PM
Post: #6
RE: Set theory program for hp prime?
(09-30-2022 03:15 PM)matalog Wrote:  Do you just mean the Venn diagrams?

If so then you could use something like this, although I really hope there is a better way.

Code:
EXPORT RQST()
BEGIN
FOR Y FROM 0 TO 239 DO
FOR X FROM 0 TO 319 DO
IF (X-120)^2+(Y-120)^2<80^2 THEN
PIXON_P(X,Y,RGB(255,0,0));
END;
IF (X-180)^2+(Y-120)^2<80^2 THEN
PIXON_P(X,Y,RGB(0,255,0));
END;
 
IF (X-180)^2+(Y-120)^2<80^2 AND (X-120)^2+(Y-120)^2<80^2 THEN
PIXON_P(X,Y,RGB(0,0,255));
END;
 
  
END;

END;

END;

I ask you a question, do you have an example of use, how can I enter several variables? How can I discriminate by UNION, INTERSECT and DIFFERENCE? thanks again for sharing
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Set theory program for hp prime? - DrEureka - 09-30-2022 04:07 PM



User(s) browsing this thread: 1 Guest(s)