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
    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?
  2. jcsd
  3. Jun 12, 2009 #2


    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook