MathGroup Archive 1996

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

Search the Archive

Re: Simplifying=> Sqrt[Meter^2/Second^2]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg2988] Re: Simplifying=> Sqrt[Meter^2/Second^2]
  • From: ianc (Ian Collier)
  • Date: Fri, 19 Jan 1996 02:26:20 -0500
  • Organization: Wolfram Research, Inc.

In article <4dksvr$h5q at dragonfly.wri.com>, justin at fns.net wrote:

> Does anyone know if mathematica can be "taught" that an
> expression of the Sqrt[Meter^2/Second^2] is equivalent to and should
> be simplified to Meter/Second?
> 
> Thanks in Advance
>    Justin at fns.net
>    UF Mechanical Engineering


You can use Power Expand to do this.

In[21]:=

    ?PowerExpand
    PowerExpand[expr] expands nested powers, powers of products,
       logarithms of powers, and logarithms of products.
       PowerExpand[expr, {x1, x2, ...}] expands expr with
       respect to the x1. Use PowerExpand with caution because
       PowerExpand does not pay attention to branch cuts.

In[22]:=
    PowerExpand[ Sqrt[Meter^2/Second^2] ]
Out[22]=
    Meter
    ------
    Second

I hope this helps.

--Ian

-----------------------------------------------------------
Ian Collier
Technical Sales Support
Wolfram Research, Inc.
-----------------------------------------------------------
tel:(217) 398-0700     fax:(217) 398-0747      ianc at wri.com
Wolfram Research Home Page:             http://www.wri.com/
-----------------------------------------------------------

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Segmentation fault under Solaris 2.5
  • Next by Date: Re: NIntegrate
  • Previous by thread: Re: Simplifying=> Sqrt[Meter^2/Second^2]
  • Next by thread: Re: Simplifying=> Sqrt[Meter^2/Second^2]