MathGroup Archive 2013

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

Search the Archive

Re: "Nice" complex form


The form that you are seeking is not "simpler" so you would need to force
it.


(expr1 = Sqrt[a - 4]) // LeafCount


7


expr2 = expr1 /. Sqrt[x_] -> I Sqrt[-x]


I*Sqrt[4 - a]


expr2 // LeafCount


13


Simplify[expr1 == expr2, a - 4 < 0]


True



Bob Hanlon




On Mon, Sep 9, 2013 at 12:06 AM, <sam.takoy at yahoo.com> wrote:

> Hi,
>
> Can I get
>
> Assuming[a - 4 < 0, Sqrt[a - 4]]
>
> to "simplify" to
>
> I Sqrt[4 - a]
>
> ?
>
> Thanks,
>
> Sam
>
>
>



  • Prev by Date: basic namespace question, and access to BinarySearch
  • Next by Date: question about ndsolve
  • Previous by thread: Re: "Nice" complex form
  • Next by thread: DelayedRule assembly