MathGroup Archive 2000

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

Search the Archive

Re: Simlifying Sqrt[x^2] type args.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24622] Re: Simlifying Sqrt[x^2] type args.
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Fri, 28 Jul 2000 17:24:00 -0400 (EDT)
  • References: <8lgsmk$2d0@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Jaime,

PowerExpand[Sqrt[k^2 r^2 Sin[theta]^2] ]

k r Sin[theta]

But please note that this is not always valid:

Sqrt[4.0^2 4.0^2 Sin[4.0]^2]

12.1088

4.0  4.0  Sin[4.0]

-12.1088

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Jaime Morales" <jaimem at primenet.com> wrote in message
news:8lgsmk$2d0 at smc.vnet.net...
> Hello,
>
> I am curious if there is a way to do symbolics in mathematica
> where objects like
>
> Sqrt[k^2 r^2 Sin[theta]^2]
>
> are set to
>
> k r Sin[theta]
>
> ..
>
> I am doing a long calculation and objects as the above
> occur in many places, usualy as arguments to BesselJ
> functions, and it would be nice to have mathematica
> resolve these for me, it would even be nicer if it could
> be done globaly for all calculations withing the notbook.
>
> thanks,
>
> -Jaime
> jaime at rsm1.physics.uiuc.edu
>
>
> --
>
>




  • Prev by Date: Re: insect population dynamics
  • Next by Date: Re: Ron Knapp's time function
  • Previous by thread: Re: Simlifying Sqrt[x^2] type args.
  • Next by thread: Sort Solve Results