Store Mathematica output from Roots as a vector

  • Topic: Mathematica 
  • Thread starter confused_engineer
  • Start date
  • Tags Tags
    Mathematica Output
2 replies · 2K views · last reply
confused_engineer
Messages
34
Reaction score
1
Hi.

I want to store the output of Roots[LegendreP[3.0, x] == 0, x] as a vector.

Can someone help me?
Thanks
 
confused_engineer said:
Hi.

I want to store the output of Roots[LegendreP[3.0, x] == 0, x] as a vector.

Can someone help me?
Thanks
Try
Code:
{ToRules[Roots[LegendreP[3.0, x] == 0, x]]}
 
  • Like
Likes   Reactions: confused_engineer