Timeline for RegionIntersection not returning what I expected
Current License: CC BY-SA 4.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 10, 2019 at 6:29 | history | edited | J. M.'s missing motivation♦ | CC BY-SA 4.0 |
edited title
|
Mar 5, 2019 at 13:55 | vote | accept | apt45 | ||
Mar 5, 2019 at 13:51 | answer | added | Michael E2 | timeline score: 4 | |
Mar 5, 2019 at 3:01 | history | tweeted | twitter.com/StackMma/status/1102766021633589253 | ||
Mar 5, 2019 at 2:41 | history | edited | m_goldberg | CC BY-SA 4.0 |
Routine cleanup
|
Mar 5, 2019 at 2:04 | answer | added | mjw | timeline score: -1 | |
Mar 4, 2019 at 16:14 | comment | added | Michael E2 |
Maybe this helps: MapAt[Simplify, ImplicitRegion[reg, {C11}], 1] -- in previous comment, I meant reg to be wrapped in ImplicitRegion[..]
|
|
Mar 4, 2019 at 13:07 | comment | added | Michael E2 |
Maybe this helps: RegionIntersection[reg, ImplicitRegion[-Infinity < x < Infinity, {x}]]
|
|
Mar 4, 2019 at 12:51 | comment | added | Michael E2 |
RegionDimension yields -Infinity , which is consistent with EmptyRegion[1] and not with a single Point (which is what DiscretizeRegion returns). -- Update: RegionIntersection[reg, reg] fails but RegionIntersection[ImplicitRegion[C11 > 0 && C11 < 0, {C11}], ImplicitRegion[C11 < 0 && C11 > 0, {C11}]] returns EmptyRegion[1] ...Hmm, I suspect RegionIntersection[r] does nothing in all cases, perhaps.
|
|
Mar 4, 2019 at 12:49 | comment | added | apt45 | @UlrichNeumann thanks for the tip, but it is only effective for one-dimensional regions (I have a code working with multi-variate regions). I need to understand why RegionIntersection is not returning EmptyRegion[]. | |
Mar 4, 2019 at 12:46 | history | edited | apt45 | CC BY-SA 4.0 |
deleted 1787 characters in body
|
Mar 4, 2019 at 12:45 | comment | added | apt45 | @MichaelE2 I am going to edit it | |
Mar 4, 2019 at 12:44 | comment | added | Michael E2 | Reply to comment: If I knew why, I'd answer. You could simplify the question, though, by editing to the question to show a "minimal working code example". | |
Mar 4, 2019 at 12:43 | comment | added | Ulrich Neumann |
RegionIntersection[ImplicitRegion[C11 > 0 && C11 < 0, {C11}]] //ArcLength evaluates to zero!
|
|
Mar 4, 2019 at 12:41 | comment | added | Michael E2 |
Try DiscretizeRegion[ImplicitRegion[reg, {C11}]] -- I suppose regions are closed (i.e. boundaries are added). I don't know for sure though.
|
|
Mar 4, 2019 at 12:40 | comment | added | apt45 |
@MichaelE2 Thanks. So, why it is not returning EmptyRegion[] ? Are my expectations wrong?
|
|
Mar 4, 2019 at 12:38 | comment | added | Michael E2 |
A simpler example (MWE): RegionIntersection[ImplicitRegion[C11 > 0 && C11 < 0, {C11}]]
|
|
Mar 4, 2019 at 12:32 | history | asked | apt45 | CC BY-SA 4.0 |