Message Boards Message Boards

0
|
3973 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How to display all complex solutions of an expression

Posted 10 years ago

Hello everyone, I'm recently working with complex numbers and trying to figure out a way to say to Mathematica 10 to compute in enter image description here and not in enter image description here. I mean, when I prompt enter image description here my outpu is obviously 1, since enter image description here set allows three results for this expression, I would like to make them all displayed like : enter image description here

I searched on the manual and on internet for domain restrictions and stuff like that, but I could not find anything helpful. I hope someone will help me, thank you!

POSTED BY: Edoardo Ottoni
2 Replies

If you really insist on that form of output, here is a hack using obscure typesetting commands:

HoldForm[DisplayForm@RadicalBox[1, 3]] == 
 DisplayForm@
  Cell[BoxData[
    RowBox[{"{", 
      Grid[{z} /. ComplexExpand[Solve[z^3 == 1, z]], 
       Alignment -> Left]}]], SpanMaxSize -> Infinity]

I wonder if it can be done more easily...

I would like to insert a TraditionalForm, but anybody knows where?

POSTED BY: Gianluca Gorni
In[2]:= Solve[x^3 == 1, x] // ComplexExpand

Out[2]= {{x -> 
   1}, {x -> -(1/2) - (I Sqrt[3])/2}, {x -> -(1/2) + (I Sqrt[3])/2}}
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract