MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Simplifying If expressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102900] Re: [mg102884] Simplifying If expressions
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Wed, 2 Sep 2009 03:59:46 -0400 (EDT)
  • References: <200909010753.DAA18779@smc.vnet.net>

On 1 Sep 2009, at 09:53, beep.beep wrote:

> Hi,
>
> When I try to Simplify[If[x==0,x,0]] Mathematica returns If[x==0,x, 
> 0] rather than 0. It seems that it does not take into account that  
> left and right if-branches should be simplified using  
> ($Assumptions)&&if-condition and ($Assumptions)&&!if-condition  
> respectively. Is there a way to force that behaviour?
>
> Best regards,
> Ilya
>

FullSimplify[If[x == 0, x, 0]]

0


Andrzej Kozlowski


  • Prev by Date: Re: Simplifying If expressions
  • Next by Date: Frequency shifting an audio file tia sal22
  • Previous by thread: Simplifying If expressions
  • Next by thread: Re: Simplifying If expressions