The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Radical conjugates
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Francisco Javier

Posts: 12
Registered: 5/29/08
Radical conjugates
Posted: Feb 4, 2013 1:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello, I wanted a function that takes a numerical expression of the form

a + b Sqrt[c]


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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.