solvelib
::splitVectorSet
Factor a set of vectors into a cartesian product
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
solvelib::splitVectorSet(S
)
solvelib::splitVectorSet(S)
returns a list S1,
…, Sn of
sets of complex numbers such that S
is the cartesian
product of the Si,
or FAIL
if
such factorization could not be found.
The set S
may be finite or infinite, of any
type.
We split a finite set of vectors into its factors:
solvelib::splitVectorSet({[1, 2], [1, 3], [0, 2], [0, 3]})
The following set cannot be written as a cartesian product:
solvelib::splitVectorSet({[1, 2], [0, 2], [0, 3]})
Infinite sets can also be handled:
S:= Dom::ImageSet([k*PI, l*PI+2], [k, l], [Z_, Z_])
solvelib::splitVectorSet(S)
delete S:
|
Set of vectors |