Opened 2 years ago

Last modified 5 months ago

#30263 new defect

declare_union yields wrong results — at Initial Version

Reported by: gh-mjungmath Owned by:
Priority: major Milestone: sage-9.7
Component: manifolds Keywords: sets, union
Cc: egourgoulhon, tscrim Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


sage: M = Manifold(3, 'M')
sage: U = M.open_subset('U'); V = M.open_subset('V'); W = M.open_subset('W')
sage: M.declare_union(U, V, W)
TypeError                                 Traceback (most recent call last)
<ipython-input-3-c7f527dcc1ea> in <module>()
----> 1 M.declare_union(U, V, W)

TypeError: declare_union() takes 3 positional arguments but 4 were given
sage: M.declare_union(U, V.union(W))
sage: U.union(V).union(W)
Open subset U_union_V_union_W of the 3-dimensional differentiable manifold M
sage: U.union(V.union(W))
3-dimensional differentiable manifold M

I propose to allow more than two arguments for declare_union. Furthermore, something went wrong with the commutativity of the union. This should be investigated, too.

Change History (0)

Note: See TracTickets for help on using tickets.