Results 1 to 7 of 7

Math Help - How do I do vector product / scalar product using maxima?

  1. #1
    s3a
    s3a is offline
    Super Member
    Joined
    Nov 2008
    Posts
    597

    How do I do vector product / scalar product using maxima?

    What I want, basically, is something like [2,3]*[4,7] = 29.

    Any input would be GREATLY appreciated!
    Thanks in advance!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by s3a View Post
    What I want, basically, is something like [2,3]*[4,7] = 29.

    Any input would be GREATLY appreciated!
    Thanks in advance!
    Search the help system for "dot product"

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    s3a
    s3a is offline
    Super Member
    Joined
    Nov 2008
    Posts
    597
    I did that before starting this thread. I do not understand what it says though.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    What is so difficult?

    Dot Product

    The operator . represents noncommutative multiplication and scalar product. When the operands are 1-column or 1-row matrices a and b, the expression a.b is equivalent to sum (a[i]*b[i], i, 1, length(a)). If a and b are not complex, this is the scalar product, also called the inner product or dot product, of a and b. The scalar product is defined as conjugate(a).b when a and b are complex; innerproduct in the eigen package provides the complex scalar product.

    When the operands are more general matrices, the product is the matrix product a and b. The number of rows of b must equal the number of columns of a, and the result has number of rows equal to the number of rows of a and number of columns equal to the number of columns of b.

    To distinguish . as an arithmetic operator from the decimal point in a floating point number, it may be necessary to leave spaces on either side. For example, 5.e3 is 5000.0 but 5 . e3 is 5 times e3.

    There are several flags which govern the simplification of expressions involving ., namely dot, dot0nscsimp, dot0simp, dot1simp, dotassoc, dotconstrules, dotdistrib, dotexptsimp, dotident, and dotscrules.
    Attached Thumbnails Attached Thumbnails How do I do vector product / scalar product using maxima?-gash.png  
    Follow Math Help Forum on Facebook and Google+

  5. #5
    s3a
    s3a is offline
    Super Member
    Joined
    Nov 2008
    Posts
    597
    I still don't get the maxima documentation but I get what you said. But for the maxima documentation, is "There are several flags which govern the simplification of expressions involving ., namely dot, dot0nscsimp, dot0simp, dot1simp, dotassoc, dotconstrules, dotdistrib, dotexptsimp, dotident, and dotscrules." supposed to be the instructions? If so, then why do they use words instead of actual examples?
    Follow Math Help Forum on Facebook and Google+

  6. #6
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,824
    Thanks
    1717
    Awards
    1
    Quote Originally Posted by s3a View Post
    I still don't get the maxima documentation but I get what you said.
    Have you ever considered that you may not be read for this topic?
    <a,b>\cdot<x,y>=ax+by and <a,b,c>\cdot<x,y,z>=ax+by+cz
    Nothing can be simpler. What is your problem?
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by s3a View Post
    I still don't get the maxima documentation but I get what you said. But for the maxima documentation, is "There are several flags which govern the simplification of expressions involving ., namely dot, dot0nscsimp, dot0simp, dot1simp, dotassoc, dotconstrules, dotdistrib, dotexptsimp, dotident, and dotscrules." supposed to be the instructions? If so, then why do they use words instead of actual examples?
    Each of these flags has their own enry in the help system, which you can read if you want, but they are not applicable in general to scalar products but to the use of "," as the matrix multiplication operator.

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: November 27th 2009, 05:33 PM
  2. multivariable differential for inner product(scalar product)?
    Posted in the Differential Geometry Forum
    Replies: 2
    Last Post: October 23rd 2009, 05:40 PM
  3. dot product/scalar product
    Posted in the Algebra Forum
    Replies: 3
    Last Post: June 5th 2009, 08:58 AM
  4. Replies: 1
    Last Post: October 31st 2008, 12:32 AM
  5. Dot and Scalar Product
    Posted in the Advanced Applied Math Forum
    Replies: 8
    Last Post: September 9th 2008, 08:03 PM

Search Tags


/mathhelpforum @mathhelpforum