Message Boards Message Boards

3 Replies
2 Total Likes
View groups...
Share this post:

Mathematica list multiplication question

Anonymous User
Anonymous User
Posted 10 years ago

Range[1, 9, 2]* Range[3, 11, 2] comes out to be {3, 15, 35, 63, 99} why is it 3,15,35,63,99?

POSTED BY: Anonymous User
3 Replies

...and if you were trying to compute the dot product, look up Dot in the Documentation Center.

POSTED BY: David Reiss

May I suggest a divide and conquer approach?

What does Range[1, 9, 2] do?
What does Range[3, 11, 2] do?
What does "*" (Times) do when given lists?

POSTED BY: Bruce Miller

Why should it be anything else?

In slightly more detail:

(1) What result are you expecting that is different?

(2) What have you checked in documentation that you are not understanding?

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract