I would like to obtain the sum (or some other reduction) from a set which is the result of a previous operation:
NSolve[z^5 == 1, z, Complexes]
{{z -> -0.809017 - 0.587785 I}, {z -> -0.809017 + 0.587785 I}, {z ->
0.309017 - 0.951057 I}, {z -> 0.309017 + 0.951057 I}, {z -> 1.}}
How do I address these elements individually and how can I form a sum (or product)?
sol = NSolve[z^5 == 1, z, Complexes]; {Plus @@ (z /. sol), Times @@ (z /. sol)}
$\endgroup$Plus@@soln[[All,1,2]]
andTimes@@soln[[All,1,2]]
$\endgroup$