Message Boards Message Boards

0
|
4148 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Using CoordinateVector[ ] to extract coordinates of an expression

Posted 3 years ago

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.

POSTED BY: Thomas Vermaak
2 Replies
Posted 3 years ago

Maybe this?

cordvect = ResourceFunction["CoordinateVector"][exp3, fllngpwr, α]
(* {{3, -1, 2, 5}} *)
POSTED BY: Rohit Namjoshi

Wow ... thanks Rohit.

I saw the quotation marks in the documentation but ignored them.

Ignorance is bliss.

Thanks again.

POSTED BY: Thomas Vermaak
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract