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


Groups > comp.soft-sys.math.mathematica > #15402

Re: "Nice" complex form

From Alexei Boulbitch <Alexei.Boulbitch@iee.lu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: "Nice" complex form
Date 2013-09-10 07:44 +0000
Message-ID <l0mile$lt1$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hi,

Can I get

Assuming[a - 4 < 0, Sqrt[a - 4]]

to "simplify" to

I Sqrt[4 - a]

?

Thanks,

Sam


Hi, Sam,

You can.


Assuming[x > 0,
  Simplify[Sqrt[a - 4] /. a -> 4 - x,
   ComplexityFunction -> (Count[{#1}, Times[-1, _], Infinity] &)]] /.
 x -> 4 - a

I Sqrt[4 - a]

Have fun, Alexei


Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch@iee.lu


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: "Nice" complex form Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-09-10 07:44 +0000

csiph-web