Re: Simplifying If expressions
- To: mathgroup at smc.vnet.net
- Subject: [mg102939] Re: [mg102884] Simplifying If expressions
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 2 Sep 2009 04:06:46 -0400 (EDT)
- References: <287030.1251791777166.JavaMail.root@n11>
If[x == 0, x, 0]; FullSimplify[%] 0 Piecewise[{{x, x == 0}}, 0]; FullSimplify[%] 0 David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ From: beep.beep [mailto:mephi42 at gmail.com] 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