Quantcast
Channel: MaplePrimes - Questions and Posts tagged with subset
Browsing index pages (8 articles)
↧

How to Check if one Interval is a Subset of Another

Hi,I am trying to write a procedure that takes two intervals of real numbers (in interval notation) and checks if one is a subset of the other. For example, isSubset([-5,2],[-10,infinity)) would return...

View Article


Image may be NSFW.
Clik here to view.

How do I get an iterator for generating k-subsets

 The function subsets is an iterator for generating the power set of a set one set at a time.  I wanted to get iterators for all  k -subsets , so I modified the codes for getitng  iterators for the...

View Article


How to search if sets in a list are subsets of another list of sets?

Hello I need a procedure P that given two lists of sets A and B returns a list of lists L such that L[i] is the list of j such that A[i] subset B[j]. Here is an example: ans6 := [{alpha[1, 8], alpha[2,...

View Article

combinat:-subset with a chosen number of elements? An alternative?

HelloI need to test a huge amount of subsets and for doing that I was thinking of using combinat:-subset, since it avoids allocating memory for all subsets.  The problem with subset for my specific...

View Article

Need help in optimizing code

Hello everybody,I need help to increase the speed of two procedures.My first (recursive) procedure returns a list of all k - element subsets of a given set {1, ... , n}:nkSubSetList := proc(n ::...

View Article


How to check if a vector is in a subspace of another vector

Lets say we have to vectors u := Vector(3,[0,a_2,a_3]) and v :=Vector(3,[a_1,a_2,a_3]), in which a_1, a_2 and a_3 are arbitrary constants. It is clear that if we set a_1=0 we could see that u is...

View Article

Prime number subset code using set and list conversion feature

hello i was just looking back on some stuff i did a few months back and although im aware there is a function for generating the prime subset up to a given number already featured in a package in mape...

View Article

Check that a segment is a subset of another segment

Is there in Maple a command to verify that one segment on the real axis is a subset of another segment?  For example  RealRange(2, 4) is subset of  RealRange(2, 5) . Of course easy to write a procedure...

View Article

Browsing index pages (8 articles)


Latest Images