Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Dot product in Mathematica won't evaluate...?' topicStudent Support Forum > General > Archives > "Dot product in Mathematica won't evaluate...?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Johnny
09/18/09 12:28pm


Here's the code:
--------------------------------------
A = {{1, 2, 3}} // MatrixForm;
B = {{4, 5, 6}} // MatrixForm;
Dot[A, B]
--------------------------------------

A and B are 1-by-3 vectors.
The output of A and B work fine (even though suppressed).

The problem is I get the two (vector dot vector) stuck together instead of having the dot product evaluated (as shown):
------------------
(1 2 3) . (4 5 6)
------------------

The output should be a scalar (4+10+18). What is the problem? Is there a package that needs to be loaded?

Thanks in advance


URL: ,

Subject (listing for 'Dot product in Mathematica won't evaluate...?')
Author Date Posted
Dot product in Mathematica won't evaluate...? Johnny 09/18/09 12:28pm
Re: Dot product in Mathematica won't evaluate...? Bill 09/19/09 01:59am
Re: Dot product in Mathematica won't evaluate...? Peter Pein 09/19/09 6:14pm
Re: Dot product in Mathematica won't evaluate...? yehuda ben-s... 09/21/09 00:55am
Next Comment >Help | Reply To Topic