Storing Mathematica output

  • #1

Main Question or Discussion Point

Hi.

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

Can someone help me?
Thanks
 

Answers and Replies

  • #2
29,620
5,924
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 confused_engineer
  • #3
Yes, this seems to work. Thanks.
 

Related Threads on Storing Mathematica output

Replies
6
Views
8K
Replies
4
Views
12K
Replies
5
Views
8K
Replies
2
Views
3K
Replies
5
Views
4K
Replies
5
Views
7K
Replies
1
Views
3K
Replies
2
Views
2K
Replies
3
Views
2K
Replies
9
Views
4K
Top