MathGroup Archive 2002

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

Search the Archive

Re: Re: Re: Bug in Simplify?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33292] Re: [mg33265] Re: [mg33216] Re: Bug in Simplify?
  • From: Gianluca Gorni <gorni at dimi.uniud.it>
  • Date: Thu, 14 Mar 2002 02:21:53 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com


> As best I can tell, however, nothing that you said explains why
> we should expect Simplify[x/y, x==0 && y==0] to yield 0. This
> still puzzles me.
> 
> Regards,
> David
> 

It seems that Simplify will not look at denominators to see when
they vanish. For example

Simplify[x/y == 1 && y == 0]

will return the argument unevaluated. Also Solve has the same problem:
Solve[x/y == 1] will not warn you that x=y=0 is not a solution.

A function that cares for vanishing denominators is Reduce:

Reduce[x/y == 1 && y == 0] gives False

Also, Reduce[x/y == 1] gives x == y && y != 0

I don't know how relevant it is, but 2 years ago Adam Strzebonski,
in response to why Simplify[Sqrt[x^2], x == 1 + Sqrt[2]] did not
return x, wrote:

> I am not convinced that Simplify should be
> optimized for assumptions of the form x==constant. I would
> expect that in most cases what one really wants is
> Simplify[expr/.x->constant]
> rather than 
> Simplify[expr, x==constant].

Best regards,

                  Gianluca Gorni

-- 


 +---------------------------------+
 | Gianluca Gorni                  |
 | Universita` di Udine            |
 | Dipartimento di Matematica      |
 |   e Informatica                 |
 | via delle Scienze 208           |
 | I-33100 Udine UD                |
 | Italy                           |
 +---------------------------------+
 | Ph.: (39) 0432-558422           |
 | Fax: (39) 0432-558499           |
 | mailto:gorni at dimi.uniud.it      |
 | http://www.dimi.uniud.it/~gorni |
 +---------------------------------+



  • Prev by Date: Re: symbolic solution (ArcTan)
  • Next by Date: Re: long Framelabels
  • Previous by thread: Re: Re: Bug in Simplify?
  • Next by thread: Re: Bug in Simplify?