[Date Index]
[Thread Index]
[Author Index]
Re: Grouping terms under the radical
 To: mathgroup at smc.vnet.net
 Subject: [mg120079] Re: Grouping terms under the radical
 From: Bob Hanlon <hanlonr at cox.net>
 Date: Fri, 8 Jul 2011 04:49:56 0400 (EDT)
 Replyto: hanlonr at cox.net
expr = Sqrt[2*n]
Sqrt[2]*Sqrt[n]
expr /. Sqrt[x_] Sqrt[y_] > HoldForm[Sqrt[x*y]]
HoldForm[Sqrt[2*n]]
% // ReleaseHold
Sqrt[2]*Sqrt[n]
Bob Hanlon
 paulvonhippel at yahoo <paulvonhippel at yahoo.com> wrote:
=============
This must be a classic question. When I input
Sqrt[(2 n)]
Mathematica displays the output as Sqrt[2] Sqrt[n]  i.e., both 2 and
n are under their own radical. The display of output doesn't change if
I impose the assumption that n > 0.
This is fine from a mathematical point of view, but it looks
unconventional when pasted into a paper. It seems to me most authors
would keep the 2 and the n under a common radical  how can I get
Mathematica to do the same?
Thanks!
Prev by Date:
Re: Stacked fractions
Next by Date:
Re: Stacked fractions
Previous by thread:
Grouping terms under the radical
Next by thread:
Re: Grouping terms under the radical
