I want to input: Quaternion[1, 2, 3, 4] to get a list: {1,2,3,4}.
Asked
Active
Viewed 59 times
0
J. M.'s missing motivation
- 124,525
- 11
- 401
- 574
Geoffrey Critzer
- 1,661
- 1
- 11
- 14
List @@ q(seeApply). But then you can do almost anything withq = Quaternion[1,2,3,4]that you can do with{1,2,3,4}. For example, you can extract the 2nd part asq[[2]], etc. I am a bit tempted to vote to close as simple mistake. If you disagree, can you elaborate? – Szabolcs Feb 04 '16 at 10:495and not5 Sqrt[2]or something else. If we treatSqrt[2]as special, we can useCoefficientList[7 + 5 Sqrt[2], Sqrt[2]]. – Szabolcs Feb 08 '16 at 10:35