- **status**: open --> not-a-bug
- **Comment**:
The first argument to must be a set, and the second must be a predicate (a boolean valued function).
For the example you gave, the first entry is an integer, not a set, and the second is not even a function.
The user documentation for `partition_set`gives some examples that should clarify how to use this function.
Possibly, you want to use the function 'integer_partitions`.
Closing this ticket as `not-a-bug`.
---
**[bugs:#4637] error partition_set**
**Status:** not-a-bug
**Group:** None
**Created:** Thu Nov 27, 2025 03:49 PM UTC by dan hayes
**Last Updated:** Thu Nov 27, 2025 03:49 PM UTC
**Owner:** nobody
partition_set(3,length(lis)=2)
instead of giving the correct answer of [[0,3], [ 1,2])
it gives error like length argument cannot be a symbol.....
ok so it doesn't print out the 0' so i do
partition_set(3,length(lis)<3)
still gives same error
---
Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |