Message Boards Message Boards

0
|
2820 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

expansion formula

Posted 10 years ago

I am sorry because probably is a stupid question but how can I multiply a symbol letter for a vector list

c = a.{1, 1} + b.{3, 4}

I would like expand this as {a,a}+{3b,4b} and finally in {a+3b,a+4b}

Thanks in advance.

POSTED BY: Ale Mkz
2 Replies
In[2]:= Clear[a, b]
a {1, 1} + b {3, 4}

Out[3]= {a + 3 b, a + 4 b}

In[4]:= Times[a, {1, 1}] + Times[b, {3, 4}]
Out[4]= {a + 3 b, a + 4 b}
POSTED BY: Udo Krause

In Mathematica the dot is used for inner product between two vectors. For your purpose use the asterisk * (or nothing at all, in this case):

a*{1, 1} + b*{3, 4}
a{1, 1} + b{3, 4}
POSTED BY: Gianluca Gorni
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