Message Boards Message Boards

0
|
3308 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Convert root to coordinate form

Posted 10 years ago
POSTED BY: Niklas VM

On my system I get the result {Null}. That's because Do executes but does not give an output. This seems to work:

zero1 = x /. {ToRules[Roots[x^2 - 4 == 0, x]]};
xval[k_] := zero1[[k]]
yval = 0
Table[{xval[b], yval}, {b, Exponent[x^2, x]}]

However, I would rather achieve the goal this way:

{Re[x], Im[x]} /. NSolve[x^2 - 4 == 0, x]
POSTED BY: Gianluca Gorni
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