Re: Re: Weird result in Mathematica 6
- To: mathgroup at smc.vnet.net
- Subject: [mg76632] Re: [mg76603] Re: Weird result in Mathematica 6
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Fri, 25 May 2007 06:24:43 -0400 (EDT)
- References: <200705211001.GAA10071@smc.vnet.net> <200705241018.GAA21697@smc.vnet.net> <B5A6A3D6-AEF1-4B39-9152-5B929BB8F5A2@mimuw.edu.pl>
I failed to notice that your input was nonsensical since:
ComplexExpand[x - Conjugate[x] > 0, {x}]
2*I*Im[x] > 0
which is certainly not the same as Im[x]>0.
Nevertheless the advice to use ComplexExpand seems to me still good.
Andrzej Kozlowski
On 24 May 2007, at 23:18, Andrzej Kozlowski wrote:
> Applying ComplexExpand[] to real assumptions and ComplexExpand[ ,
> {x}] to complex ones will normally avoid such problems:
>
> Simplify[Im[x], Assumptions -> {ComplexExpand[x - Conjugate[x] > 0,
> {x}]}]
> Im(x)
>
> Andrzej Kozlowski
>
> On 24 May 2007, at 19:18, Sebastian Meznaric wrote:
>
>> Another related effect can be used to actually derive contradictions
>> in Mathematica. Try this
>> Simplify[Im[x],Assumptions->{x-Conjugate[x]>0}]
>>
>> It returns 0. The assumption was that Im[x]>0 so here Mathematica
>> clearly contradicts the assumption.
>>
>> Obviously this suggests one should be very careful when using
>> inequalities with complex quantities. I think this sort of bugs
>> should
>> really be fixed considering how much trouble Mathematica usually goes
>> into to ensure that real quantities are not assumed in expressions.
>>
>>
>
- References:
- Weird result in Mathematica 6
- From: Sebastian Meznaric <meznaric@gmail.com>
- Re: Weird result in Mathematica 6
- From: Sebastian Meznaric <meznaric@gmail.com>
- Weird result in Mathematica 6