# Storing Mathematica output

## 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

Related MATLAB, Maple, Mathematica, LaTeX News on Phys.org
Dale
Mentor
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]]}

confused_engineer
Yes, this seems to work. Thanks.