| 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: , |
|