Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: inconsistent refinement behavior
Replies: 2   Last Post: Jul 17, 2013 1:45 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alex Krasnov

Posts: 11
Registered: 7/12/13
Re: inconsistent refinement behavior
Posted: Jul 16, 2013 5:53 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Refine treats Reals as a subset of Complexes, as expected:

In: Assuming[Element[x, Reals], Refine[Element[x, Complexes]]]
Out: True

Of course, the same holds for the other two examples:

In: Assuming[x>0, Refine[Element[x, Complexes]]]
Out: True

In: Assuming[x>=0, Refine[Element[x, Complexes]]]
Out: True

However, Refine recognizes that the stronger condition Element[x, Reals]
holds for all three examples.

Alex


On Sun, 14 Jul 2013, Bill Rowe wrote:

> On 7/12/13 at 2:49 AM, akrasnov@cory.eecs.berkeley.edu (Alex Krasnov)
> wrote:
>

>> Firstly, x==0 also implicitly assumes that x is in Reals, since 0 is
>> in Reals, as the following examples demonstrate:

>
>> In: Assuming[x==0, Refine[Element[x, Reals]]] Out: True
>
>> In: Assuming[{Element[x, Reals], x==0}, Refine[Infinity/x]]
>> Out: ComplexInfinity

>
> No so. Consider
>
> In[1]:= Assuming[x == 0, Refine[Element[x, Complexes]]]
>
> Out[1]= True
>
>





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.