2020-07-21 10:31:56 -0600 | received badge | ● Student (source) |

2020-07-21 09:51:24 -0600 | asked a question | Finding all complex nth roots I would love it if there were a command, let's say all_complex_roots, that returned a list or tuple or whatever of the 2 square roots, 3 cube roots, etc of a number. For instance, an input like all_complex_roots(1,4) would have the expected output [1,-1,I,-I] or some such. Does such a command exist? I've seen workarounds, like finding all complex roots of the polynomial $X^4-1$, but is there something direct? |

2015-09-04 10:53:37 -0600 | received badge | ● Scholar (source) |

2015-09-03 09:29:52 -0600 | asked a question | Finding solutions as numerical values rather than equations The output of solve() returns equations. What's the easiest way to "unwrap" these to get numerical values? For instance, solve(x^2-4==0,x) returns [x==-2, x==2]. I'd like to define the associated list [-2,2]. |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.