MathGroup Archive 2009

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

Search the Archive

Simplifying If expressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102884] Simplifying If expressions
  • From: "beep.beep" <mephi42 at gmail.com>
  • Date: Tue, 1 Sep 2009 03:53:11 -0400 (EDT)

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


  • Prev by Date: Nesting functional commands
  • Next by Date: upwind scheme in Mathematica?
  • Previous by thread: Re: Nesting functional commands
  • Next by thread: Re: Simplifying If expressions