# Using CoordinateVector[ ] to extract coordinates of an expression

Posted 1 month ago
243 Views
|
2 Replies
|
1 Total Likes
|
 I have the following basis, (fllngpwr}, and expression, {exp3}: fllngpwr={1,\[Alpha]^UnderBar[1], \[Alpha]^UnderBar[2],\[Alpha]^UnderBar[3]} exp3 = 3 - \[Alpha]^UnderBar[1] + 2\[Alpha]^UnderBar[2] + 5\[Alpha]^UnderBar[3] I would like to extract the coordinates of the expression {exp3} in terms of the basis {fllngpwr} using: cordvect =ResourceFunction[CoordinateVector[{exp3},basis,{\[Alpha]}]] I must have something wrong since it seems to evaluate, by that I mean it fills in the exp3, basis and alpha. For example: ResourceFunction[CoordinateVector[expression,basis, alpha]] Any suggestions would be welcomed.Thanks.
Answer
2 Replies
Sort By:
Posted 1 month ago
 Maybe this? cordvect = ResourceFunction["CoordinateVector"][exp3, fllngpwr, α] (* {{3, -1, 2, 5}} *) 
Answer
Posted 1 month ago
 Wow ... thanks Rohit.I saw the quotation marks in the documentation but ignored them.Ignorance is bliss.Thanks again.
Answer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments