Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Multiplication with mathematica

  1. Jun 12, 2009 #1
    Hi,
    I want to multiply two lists of the format {a1,b1,c1...}*{a2,b2,c2...} to obtain the list {a1*a2,b1*b2,c1*c2,...}. I tried using . to multiply the two lists but that didn't work.
    What command do I have to use to obtain the desired result?
    Thanks
     
  2. jcsd
  3. Jun 12, 2009 #2

    Dale

    Staff: Mentor

    a.b will give the scalar dot product of a and b. You want a b (space between a and b) or a*b either of which will give you the array multiplication of a and b.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Multiplication with mathematica
Loading...