Message Boards Message Boards

1 Reply
0 Total Likes
View groups...
Share this post:

Dividing two specific columns of numbers

Posted 9 years ago

I have two columns of data for example: Numer1= Column[{1,2,3,4,5}] and Denom2=Column[{6,7,8,9,10}]

I want to divide for example: 1/6 and 2/7 and 3/8 and so on.... but when I use the divide function it just lists the numbers in column form on top of each other.

I'm sure there is something I am missing.

thanks in advance

POSTED BY: Dylan Mitchell
In[3]:= l1 = Range[5]

Out[3]= {1, 2, 3, 4, 5}

In[4]:= l2 = Range[6, 10]

Out[4]= {6, 7, 8, 9, 10}

In[5]:= l1/l2

Out[5]= {1/6, 2/7, 3/8, 4/9, 1/2}
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract