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


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

Radical conjugates

Started byFrancisco Javier García Capitán <garciacapitan@gmail.com>
First post2013-02-04 06:26 +0000
Last post2013-02-04 06:26 +0000
Articles 1 — 1 participant

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


Contents

  Radical conjugates Francisco Javier García Capitán <garciacapitan@gmail.com> - 2013-02-04 06:26 +0000

#13383 — Radical conjugates

FromFrancisco Javier García Capitán <garciacapitan@gmail.com>
Date2013-02-04 06:26 +0000
SubjectRadical conjugates
Message-ID<kenk9r$95b$1@smc.vnet.net>
Hello, I wanted a function that takes a numerical expression of the form

a + b Sqrt[c]

or

a Sqrt[b] + c Sqrt[d]

and returns its conjugate, namely a - b Sqrt[c]  and (a Sqrt[b] - c
Sqrt[d]) respectively.

I wrote

RadicalConjugate[x_] := Module[{c},
  c = Cases[x, Power[_]];
  If[Length[c] > 0, x /. c[[1]] -> -c[[1]], x]
  ]

and it seems that it works. Anyway, do you have a different approach?

Thank you.

--
---
Francisco Javier Garc=EDa Capit=E1n
http://garciacapitan.99on.com

[toc] | [standalone]


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


csiph-web