Re: function that gives list of roots

*To*: mathgroup at smc.vnet.net*Subject*: [mg47399] Re: function that gives list of roots*From*: bobhanlon at aol.com (Bob Hanlon)*Date*: Thu, 8 Apr 2004 05:45:57 -0400 (EDT)*References*: <c5273s$ds8$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

f[a_,b_,c_,d_] := Evaluate[x/.Solve[x^4+a*x^3+b*x^2+c*x+d==0, x]]; Bob Hanlon In article <c5273s$ds8$1 at smc.vnet.net>, e9926600 at stud4.tuwien.ac.at (philipp) wrote: << i would like to define a function, that gives me back the nth root (symbolic) of a given 4thorder equation; i want the result as a list of only expressions and not with that "x->" there is for sure no problem in solving the equation; i did it already outside the function; outside the function i also could transform the solutions into a normal list by using x/.%, but inside that wont work