Ask Your Question

DaveG's profile - activity

2023-07-09 10:20:39 +0200 received badge  Notable Question (source)
2023-07-09 10:20:39 +0200 received badge  Popular Question (source)
2021-04-05 07:47:30 +0200 received badge  Popular Question (source)
2020-07-21 17:31:56 +0200 received badge  Student (source)
2020-07-21 16:51:24 +0200 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 17:53:37 +0200 received badge  Scholar (source)
2015-09-03 16:29:52 +0200 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].