Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6820 > unrolled thread

Re: Cancel order

Started byAndrzej Kozlowski <akoz@mimuw.edu.pl>
First post2011-11-29 12:42 +0000
Last post2011-11-29 12:42 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Cancel order Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-11-29 12:42 +0000

#6820 — Re: Cancel order

FromAndrzej Kozlowski <akoz@mimuw.edu.pl>
Date2011-11-29 12:42 +0000
SubjectRe: Cancel order
Message-ID<jb2jva$68m$1@smc.vnet.net>

On 29 Nov 2011, at 13:05, =E9=81=93 =E5=8E=9A wrote:

> How can I make Sqrt[(v1^2+v2^2)(g^2+gp^2)]/Sqrt[v1^2+v2^2] simple in
> mathematica?
>

You need the assumption that the expressions under the square root are positive. So:

Assuming[g^2 + gp^2 >= 0 && v1^2 + v2^2 > 0,
   Simplify[Sqrt[(g^2 + gp^2)*(v1^2 + v2^2)]/Sqrt[v1^2 + v2^2]]]

Sqrt[g^2 + gp^2]

In particular, this will be true if everything in your expression is real:

Assuming[Element[_, Reals],
   Simplify[Sqrt[(g^2 + gp^2)*(v1^2 + v2^2)]/
       Sqrt[v1^2 + v2^2]]]

Sqrt[g^2 + gp^2]

Andrzej Kozlowski


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web