Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.8K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Code with RegionDimension and ImplicitRegion doesn't work?

Posted 3 years ago

Based on the example here, I tried the following code snippet, but it doesn't work at all:

In[143]:= RegionDimension@ImplicitRegion[x == 1 && y == 2 || (x < 1 && y < 2), {x, y}]
RegionDimension@ImplicitRegion[x == 1 && y == 2, {x, y}]

Out[143]= RegionDimension[
 ImplicitRegion[(x == 1 && y == 2) || (x < 1 && y < 2), {x, y}]]

Out[144]= RegionDimension[ImplicitRegion[x == 1 && y == 2, {x, y}]]

As represented on stackoverflow, the posted answer there has the following output:

enter image description here

I don't understand why I run the same code and get nothing.

Regards, Zhao

POSTED BY: Hongyi Zhao
2 Replies
Posted 3 years ago

Yes. It does the trick.

POSTED BY: Hongyi Zhao
Posted 3 years ago

I get the same answer as Stack Overflow. x or y must be Set to something. Try Clear[x, y].

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard